Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ibus-libzhuyin 1.10.4.
4 #
5 # Report bugs to <https://github.com/libzhuyin/ibus-libzhuyin/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/libzhuyin/ibus-libzhuyin/issues/new
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='ibus-libzhuyin'
617 PACKAGE_TARNAME='ibus-libzhuyin'
618 PACKAGE_VERSION='1.10.4'
619 PACKAGE_STRING='ibus-libzhuyin 1.10.4'
620 PACKAGE_BUGREPORT='https://github.com/libzhuyin/ibus-libzhuyin/issues/new'
621 PACKAGE_URL=''
622
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 gt_needs=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 GSETTINGS_RULES
661 GLIB_COMPILE_SCHEMAS
662 gsettingsschemadir
663 GSETTINGS_DISABLE_SCHEMAS_COMPILE
664 GIO2_LIBS
665 GIO2_CFLAGS
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 LTLIBICONV
671 LIBICONV
672 INTL_MACOSX_LIBS
673 XGETTEXT_EXTRA_OPTIONS
674 MSGMERGE_FOR_MSGFMT_OPTION
675 MSGMERGE
676 XGETTEXT_015
677 XGETTEXT
678 GMSGFMT_015
679 GMSGFMT
680 MSGFMT
681 GETTEXT_MACRO_VERSION
682 USE_NLS
683 GETTEXT_PACKAGE
684 OPENCC_LIBS
685 OPENCC_CFLAGS
686 HAVE_BOOST_FALSE
687 HAVE_BOOST_TRUE
688 CPP
689 BOOST_CPPFLAGS
690 DISTCHECK_CONFIGURE_FLAGS
691 BOOST_ROOT
692 pkgpyexecdir
693 pyexecdir
694 pkgpythondir
695 pythondir
696 PYTHON_EXEC_PREFIX
697 PYTHON_PREFIX
698 PYTHON_PLATFORM
699 PYTHON_VERSION
700 PYTHON
701 ENV
702 DATABASE_FORMAT
703 LIBZHUYIN_LIBS
704 LIBZHUYIN_CFLAGS
705 IBUS_LIBS
706 IBUS_CFLAGS
707 PKG_CONFIG_LIBDIR
708 PKG_CONFIG_PATH
709 PKG_CONFIG
710 CXXCPP
711 LT_SYS_LIBRARY_PATH
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 MANIFEST_TOOL
718 RANLIB
719 ac_ct_AR
720 AR
721 DLLTOOL
722 OBJDUMP
723 FILECMD
724 LN_S
725 NM
726 ac_ct_DUMPBIN
727 DUMPBIN
728 LD
729 FGREP
730 SED
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 LIBTOOL
740 EGREP
741 GREP
742 am__fastdepCXX_FALSE
743 am__fastdepCXX_TRUE
744 CXXDEPMODE
745 ac_ct_CXX
746 CXXFLAGS
747 CXX
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 PACKAGE_VERSION_RELEASE
752 PACKAGE_VERSION_NANO
753 PACKAGE_VERSION_MICRO
754 PACKAGE_VERSION_MINOR
755 PACKAGE_VERSION_MAJOR
756 am__fastdepCC_FALSE
757 am__fastdepCC_TRUE
758 CCDEPMODE
759 am__nodep
760 AMDEPBACKSLASH
761 AMDEP_FALSE
762 AMDEP_TRUE
763 am__include
764 DEPDIR
765 OBJEXT
766 EXEEXT
767 ac_ct_CC
768 CPPFLAGS
769 LDFLAGS
770 CFLAGS
771 CC
772 am__xargs_n
773 am__rm_f_notfound
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 CSCOPE
779 ETAGS
780 CTAGS
781 am__untar
782 am__tar
783 AMTAR
784 am__leading_dot
785 SET_MAKE
786 AWK
787 mkdir_p
788 MKDIR_P
789 INSTALL_STRIP_PROGRAM
790 STRIP
791 install_sh
792 MAKEINFO
793 AUTOHEADER
794 AUTOMAKE
795 AUTOCONF
796 ACLOCAL
797 VERSION
798 PACKAGE
799 CYGPATH_W
800 am__isrc
801 INSTALL_DATA
802 INSTALL_SCRIPT
803 INSTALL_PROGRAM
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 runstatedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL
843 am__quote'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_silent_rules
848 enable_dependency_tracking
849 enable_maintainer_mode
850 enable_static
851 enable_shared
852 enable_pic
853 with_pic
854 enable_fast_install
855 enable_aix_soname
856 with_aix_soname
857 with_gnu_ld
858 with_sysroot
859 enable_libtool_lock
860 with_python
861 with_python_sys_prefix
862 with_python_prefix
863 with_python_exec_prefix
864 enable_boost
865 with_boost
866 enable_opencc
867 enable_nls
868 enable_rpath
869 with_libiconv_prefix
870 with_libintl_prefix
871 enable_schemas_compile
872 '
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 CXX
882 CXXFLAGS
883 CCC
884 LT_SYS_LIBRARY_PATH
885 CXXCPP
886 PKG_CONFIG
887 PKG_CONFIG_PATH
888 PKG_CONFIG_LIBDIR
889 IBUS_CFLAGS
890 IBUS_LIBS
891 LIBZHUYIN_CFLAGS
892 LIBZHUYIN_LIBS
893 PYTHON
894 BOOST_ROOT
895 CPP
896 OPENCC_CFLAGS
897 OPENCC_LIBS
898 GIO2_CFLAGS
899 GIO2_LIBS
900 GLIB_COMPILE_SCHEMAS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 runstatedir='${localstatedir}/run'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *=) ac_optarg= ;;
966 *) ac_optarg=yes ;;
967 esac
968
969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 bindir=$ac_optarg ;;
977
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
992
993 -datadir | --datadir | --datadi | --datad)
994 ac_prev=datadir ;;
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
997
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: '$ac_useropt'"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1030
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: '$ac_useropt'"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1055
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1058 with_gas=yes ;;
1059
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1066
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1071
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 ac_prev=htmldir ;;
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 | --ht=*)
1076 htmldir=$ac_optarg ;;
1077
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1084
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 ac_prev=infodir ;;
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1089
1090 -libdir | --libdir | --libdi | --libd)
1091 ac_prev=libdir ;;
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1094
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1101
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1106
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1113
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 ac_prev=mandir ;;
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1118
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1121 with_fp=no ;;
1122
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1125 no_create=yes ;;
1126
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 no_recursion=yes ;;
1130
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1139
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 ac_prev=prefix ;;
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1144
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1151
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1158
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1175
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 ac_prev=pdfdir ;;
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1180
1181 -psdir | --psdir | --psdi | --psd | --ps)
1182 ac_prev=psdir ;;
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 psdir=$ac_optarg ;;
1185
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1188 silent=yes ;;
1189
1190 -runstatedir | --runstatedir | --runstatedi | --runstated \
1191 | --runstate | --runstat | --runsta | --runst | --runs \
1192 | --run | --ru | --r)
1193 ac_prev=runstatedir ;;
1194 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1195 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1196 | --run=* | --ru=* | --r=*)
1197 runstatedir=$ac_optarg ;;
1198
1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 ac_prev=sbindir ;;
1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 | --sbi=* | --sb=*)
1203 sbindir=$ac_optarg ;;
1204
1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207 | --sharedst | --shareds | --shared | --share | --shar \
1208 | --sha | --sh)
1209 ac_prev=sharedstatedir ;;
1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 | --sha=* | --sh=*)
1214 sharedstatedir=$ac_optarg ;;
1215
1216 -site | --site | --sit)
1217 ac_prev=site ;;
1218 -site=* | --site=* | --sit=*)
1219 site=$ac_optarg ;;
1220
1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 ac_prev=srcdir ;;
1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224 srcdir=$ac_optarg ;;
1225
1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227 | --syscon | --sysco | --sysc | --sys | --sy)
1228 ac_prev=sysconfdir ;;
1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231 sysconfdir=$ac_optarg ;;
1232
1233 -target | --target | --targe | --targ | --tar | --ta | --t)
1234 ac_prev=target_alias ;;
1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236 target_alias=$ac_optarg ;;
1237
1238 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 verbose=yes ;;
1240
1241 -version | --version | --versio | --versi | --vers | -V)
1242 ac_init_version=: ;;
1243
1244 -with-* | --with-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: '$ac_useropt'"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=\$ac_optarg ;;
1259
1260 -without-* | --without-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid package name: '$ac_useropt'"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=no ;;
1275
1276 --x)
1277 # Obsolete; use --with-x.
1278 with_x=yes ;;
1279
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285 x_includes=$ac_optarg ;;
1286
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292 x_libraries=$ac_optarg ;;
1293
1294 -*) as_fn_error $? "unrecognized option: '$ac_option'
1295 Try '$0 --help' for more information"
1296 ;;
1297
1298 *=*)
1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' | [0-9]* | *[!_$as_cr_alnum]* )
1303 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1304 esac
1305 eval $ac_envvar=\$ac_optarg
1306 export $ac_envvar ;;
1307
1308 *)
1309 # FIXME: should be removed in autoconf 3.0.
1310 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 ;;
1315
1316 esac
1317 done
1318
1319 if test -n "$ac_prev"; then
1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $? "missing argument to $ac_option"
1322 fi
1323
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1326 no) ;;
1327 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1328 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 esac
1330 fi
1331
1332 # Check all directory arguments for consistency.
1333 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir runstatedir
1337 do
1338 eval ac_val=\$$ac_var
1339 # Remove trailing slashes.
1340 case $ac_val in
1341 */ )
1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\$ac_val;;
1344 esac
1345 # Be sure to have absolute directory names.
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 done
1352
1353 # There might be people who depend on the old broken behavior: '$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1359
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $? "working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $? "pwd does not report name of working directory"
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 printf "%s\n" X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\).*/{
1406 s//\1/
1407 q
1408 }
1409 s/.*/./; q'`
1410 srcdir=$ac_confdir
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 srcdir=..
1413 fi
1414 else
1415 ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 fi
1421 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1428 fi
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 done
1441
1442 #
1443 # Report the --help message.
1444 #
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1448 cat <<_ACEOF
1449 'configure' configures ibus-libzhuyin 1.10.4 to adapt to many kinds of systems.
1450
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1455
1456 Defaults for the options are specified in brackets.
1457
1458 Configuration:
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print 'checking ...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for '--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or '..']
1468
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 [PREFIX]
1474
1475 By default, 'make install' will install all the files in
1476 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than '$ac_default_prefix' using '--prefix',
1478 for instance '--prefix=\$HOME'.
1479
1480 For better control, use the options below.
1481
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/ibus-libzhuyin]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1503 _ACEOF
1504
1505 cat <<\_ACEOF
1506
1507 Program names:
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511
1512 System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515 _ACEOF
1516 fi
1517
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of ibus-libzhuyin 1.10.4:";;
1521 esac
1522 cat <<\_ACEOF
1523
1524 Optional Features:
1525 --disable-option-checking ignore unrecognized --enable/--with options
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-silent-rules less verbose build output (undo: "make V=1")
1529 --disable-silent-rules verbose build output (undo: "make V=0")
1530 --enable-dependency-tracking
1531 do not reject slow dependency extractors
1532 --disable-dependency-tracking
1533 speeds up one-time build
1534 --enable-maintainer-mode
1535 enable make rules and dependencies not useful (and
1536 sometimes confusing) to the casual installer
1537 --enable-static[=PKGS] build static libraries [default=no]
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --enable-aix-soname=aix|svr4|both
1544 shared library versioning (aka "SONAME") variant to
1545 provide on AIX, [default=aix].
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --enable-boost Use boost to replace stdc++0x.
1548 --enable-opencc Use opencc for simplified and traditional Chinese
1549 conversion
1550 --disable-nls do not use Native Language Support
1551 --disable-rpath do not hardcode runtime library paths
1552 --disable-schemas-compile
1553 Disable regeneration of gschemas.compiled on install
1554
1555 Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1560 compiler's sysroot if not specified).
1561 --with-python=PATH Select python2 or python3
1562 --with-python-sys-prefix
1563 use Python's sys.prefix and sys.exec_prefix values
1564 --with-python_prefix override the default PYTHON_PREFIX
1565 --with-python_exec_prefix
1566 override the default PYTHON_EXEC_PREFIX
1567 --with-boost=DIR prefix of Boost 1.39 [guess]
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1569 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1570 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1571 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1572 --without-libintl-prefix don't search for libintl in includedir and libdir
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 LT_SYS_LIBRARY_PATH
1585 User-defined run-time library search path.
1586 CXXCPP C++ preprocessor
1587 PKG_CONFIG path to pkg-config utility
1588 PKG_CONFIG_PATH
1589 directories to add to pkg-config's search path
1590 PKG_CONFIG_LIBDIR
1591 path overriding pkg-config's built-in search path
1592 IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1593 IBUS_LIBS linker flags for IBUS, overriding pkg-config
1594 LIBZHUYIN_CFLAGS
1595 C compiler flags for LIBZHUYIN, overriding pkg-config
1596 LIBZHUYIN_LIBS
1597 linker flags for LIBZHUYIN, overriding pkg-config
1598 PYTHON the Python interpreter
1599 BOOST_ROOT Location of Boost installation
1600 CPP C preprocessor
1601 OPENCC_CFLAGS
1602 C compiler flags for OPENCC, overriding pkg-config
1603 OPENCC_LIBS linker flags for OPENCC, overriding pkg-config
1604 GIO2_CFLAGS C compiler flags for GIO2, overriding pkg-config
1605 GIO2_LIBS linker flags for GIO2, overriding pkg-config
1606 GLIB_COMPILE_SCHEMAS
1607 value of glib_compile_schemas for gio-2.0, overriding pkg-config
1608
1609 Use these variables to override the choices made by 'configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 Report bugs to <https://github.com/libzhuyin/ibus-libzhuyin/issues/new>.
1613 _ACEOF
1614 ac_status=$?
1615 fi
1616
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
1623 ac_builddir=.
1624
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *)
1628 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1640
1641 case $srcdir in
1642 .) # We are building in place.
1643 ac_srcdir=.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for configure.gnu first; this name is used for a wrapper for
1659 # Metaconfig's "Configure" on case-insensitive file systems.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure" --help=recursive
1666 else
1667 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 fi || ac_status=$?
1669 cd "$ac_pwd" || { ac_status=$?; break; }
1670 done
1671 fi
1672
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1675 cat <<\_ACEOF
1676 ibus-libzhuyin configure 1.10.4
1677 generated by GNU Autoconf 2.72
1678
1679 Copyright (C) 2023 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683 exit
1684 fi
1685
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1689
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam
1697 if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext
1716 then :
1717 ac_retval=0
1718 else case e in #(
1719 e) printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1 ;;
1723 esac
1724 fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_compile
1729
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 printf %s "checking for $2... " >&6; }
1739 if eval test \${$3+y}
1740 then :
1741 printf %s "(cached) " >&6
1742 else case e in #(
1743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"
1749 then :
1750 eval "$3=yes"
1751 else case e in #(
1752 e) eval "$3=no" ;;
1753 esac
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1756 esac
1757 fi
1758 eval ac_res=\$$3
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 printf "%s\n" "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_header_compile
1764
1765 # ac_fn_cxx_try_compile LINENO
1766 # ----------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_cxx_try_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext conftest.beam
1772 if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 printf "%s\n" "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_cxx_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext
1791 then :
1792 ac_retval=0
1793 else case e in #(
1794 e) printf "%s\n" "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1 ;;
1798 esac
1799 fi
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_cxx_try_compile
1804
1805 # ac_fn_c_try_link LINENO
1806 # -----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_link ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 printf "%s\n" "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 test -x conftest$ac_exeext
1833 }
1834 then :
1835 ac_retval=0
1836 else case e in #(
1837 e) printf "%s\n" "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1 ;;
1841 esac
1842 fi
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_link
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 printf %s "checking for $2... " >&6; }
1861 if eval test \${$3+y}
1862 then :
1863 printf %s "(cached) " >&6
1864 else case e in #(
1865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1870
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (void); below. */
1873
1874 #include <limits.h>
1875 #undef $2
1876
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 (void);
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1890
1891 int
1892 main (void)
1893 {
1894 return $2 ();
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"
1900 then :
1901 eval "$3=yes"
1902 else case e in #(
1903 e) eval "$3=no" ;;
1904 esac
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1907 conftest$ac_exeext conftest.$ac_ext ;;
1908 esac
1909 fi
1910 eval ac_res=\$$3
1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 printf "%s\n" "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_func
1916
1917 # ac_fn_cxx_try_cpp LINENO
1918 # ------------------------
1919 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_cpp ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 printf "%s\n" "$ac_try_echo"; } >&5
1930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } > conftest.i && {
1939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 }
1942 then :
1943 ac_retval=0
1944 else case e in #(
1945 e) printf "%s\n" "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1 ;;
1949 esac
1950 fi
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_cxx_try_cpp
1955
1956 # ac_fn_cxx_try_link LINENO
1957 # -------------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_link ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 printf "%s\n" "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1984 }
1985 then :
1986 ac_retval=0
1987 else case e in #(
1988 e) printf "%s\n" "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_retval=1 ;;
1992 esac
1993 fi
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2001
2002 } # ac_fn_cxx_try_link
2003
2004 # ac_fn_c_try_cpp LINENO
2005 # ----------------------
2006 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_c_try_cpp ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_cpp conftest.$ac_ext"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 printf "%s\n" "$ac_try_echo"; } >&5
2017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2023 fi
2024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } > conftest.i && {
2026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2027 test ! -s conftest.err
2028 }
2029 then :
2030 ac_retval=0
2031 else case e in #(
2032 e) printf "%s\n" "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_retval=1 ;;
2036 esac
2037 fi
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2040
2041 } # ac_fn_c_try_cpp
2042
2043 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2044 # ---------------------------------------------------------
2045 # Tests whether HEADER exists and can be compiled using the include files in
2046 # INCLUDES, setting the cache variable VAR accordingly.
2047 ac_fn_cxx_check_header_compile ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 printf %s "checking for $2... " >&6; }
2052 if eval test \${$3+y}
2053 then :
2054 printf %s "(cached) " >&6
2055 else case e in #(
2056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_cxx_try_compile "$LINENO"
2062 then :
2063 eval "$3=yes"
2064 else case e in #(
2065 e) eval "$3=no" ;;
2066 esac
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2069 esac
2070 fi
2071 eval ac_res=\$$3
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 printf "%s\n" "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_cxx_check_header_compile
2077
2078 # ac_fn_c_try_run LINENO
2079 # ----------------------
2080 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2081 # executables *can* be run.
2082 ac_fn_c_try_run ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 printf "%s\n" "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>&5
2093 ac_status=$?
2094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096 { { case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099 esac
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 printf "%s\n" "$ac_try_echo"; } >&5
2102 (eval "$ac_try") 2>&5
2103 ac_status=$?
2104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; }; }
2106 then :
2107 ac_retval=0
2108 else case e in #(
2109 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2110 printf "%s\n" "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 ac_retval=$ac_status ;;
2114 esac
2115 fi
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2119
2120 } # ac_fn_c_try_run
2121 ac_configure_args_raw=
2122 for ac_arg
2123 do
2124 case $ac_arg in
2125 *\'*)
2126 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 esac
2128 as_fn_append ac_configure_args_raw " '$ac_arg'"
2129 done
2130
2131 case $ac_configure_args_raw in
2132 *$as_nl*)
2133 ac_safe_unquote= ;;
2134 *)
2135 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2136 ac_unsafe_a="$ac_unsafe_z#~"
2137 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2138 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2139 esac
2140
2141 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2144
2145 It was created by ibus-libzhuyin $as_me 1.10.4, which was
2146 generated by GNU Autoconf 2.72. Invocation command line was
2147
2148 $ $0$ac_configure_args_raw
2149
2150 _ACEOF
2151 exec 5>>config.log
2152 {
2153 cat <<_ASUNAME
2154 ## --------- ##
2155 ## Platform. ##
2156 ## --------- ##
2157
2158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2166
2167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2174
2175 _ASUNAME
2176
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 case $as_dir in #(((
2182 '') as_dir=./ ;;
2183 */) ;;
2184 *) as_dir=$as_dir/ ;;
2185 esac
2186 printf "%s\n" "PATH: $as_dir"
2187 done
2188 IFS=$as_save_IFS
2189
2190 } >&5
2191
2192 cat >&5 <<_ACEOF
2193
2194
2195 ## ----------- ##
2196 ## Core tests. ##
2197 ## ----------- ##
2198
2199 _ACEOF
2200
2201
2202 # Keep a trace of the command line.
2203 # Strip out --no-create and --no-recursion so they do not pile up.
2204 # Strip out --silent because we don't want to record it for future runs.
2205 # Also quote any args containing shell meta-characters.
2206 # Make two passes to allow for proper duplicate-argument suppression.
2207 ac_configure_args=
2208 ac_configure_args0=
2209 ac_configure_args1=
2210 ac_must_keep_next=false
2211 for ac_pass in 1 2
2212 do
2213 for ac_arg
2214 do
2215 case $ac_arg in
2216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2218 | -silent | --silent | --silen | --sile | --sil)
2219 continue ;;
2220 *\'*)
2221 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2222 esac
2223 case $ac_pass in
2224 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2225 2)
2226 as_fn_append ac_configure_args1 " '$ac_arg'"
2227 if test $ac_must_keep_next = true; then
2228 ac_must_keep_next=false # Got value, back to normal.
2229 else
2230 case $ac_arg in
2231 *=* | --config-cache | -C | -disable-* | --disable-* \
2232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2234 | -with-* | --with-* | -without-* | --without-* | --x)
2235 case "$ac_configure_args0 " in
2236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2237 esac
2238 ;;
2239 -* ) ac_must_keep_next=true ;;
2240 esac
2241 fi
2242 as_fn_append ac_configure_args " '$ac_arg'"
2243 ;;
2244 esac
2245 done
2246 done
2247 { ac_configure_args0=; unset ac_configure_args0;}
2248 { ac_configure_args1=; unset ac_configure_args1;}
2249
2250 # When interrupted or exit'd, cleanup temporary files, and complete
2251 # config.log. We remove comments because anyway the quotes in there
2252 # would cause problems or look ugly.
2253 # WARNING: Use '\'' to represent an apostrophe within the trap.
2254 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2255 trap 'exit_status=$?
2256 # Sanitize IFS.
2257 IFS=" "" $as_nl"
2258 # Save into config.log some information that might help in debugging.
2259 {
2260 echo
2261
2262 printf "%s\n" "## ---------------- ##
2263 ## Cache variables. ##
2264 ## ---------------- ##"
2265 echo
2266 # The following way of writing the cache mishandles newlines in values,
2267 (
2268 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in #(
2271 *${as_nl}*)
2272 case $ac_var in #(
2273 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2274 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2275 esac
2276 case $ac_var in #(
2277 _ | IFS | as_nl) ;; #(
2278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2279 *) { eval $ac_var=; unset $ac_var;} ;;
2280 esac ;;
2281 esac
2282 done
2283 (set) 2>&1 |
2284 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2285 *${as_nl}ac_space=\ *)
2286 sed -n \
2287 "s/'\''/'\''\\\\'\'''\''/g;
2288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2289 ;; #(
2290 *)
2291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2292 ;;
2293 esac |
2294 sort
2295 )
2296 echo
2297
2298 printf "%s\n" "## ----------------- ##
2299 ## Output variables. ##
2300 ## ----------------- ##"
2301 echo
2302 for ac_var in $ac_subst_vars
2303 do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in
2306 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307 esac
2308 printf "%s\n" "$ac_var='\''$ac_val'\''"
2309 done | sort
2310 echo
2311
2312 if test -n "$ac_subst_files"; then
2313 printf "%s\n" "## ------------------- ##
2314 ## File substitutions. ##
2315 ## ------------------- ##"
2316 echo
2317 for ac_var in $ac_subst_files
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 printf "%s\n" "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326 fi
2327
2328 if test -s confdefs.h; then
2329 printf "%s\n" "## ----------- ##
2330 ## confdefs.h. ##
2331 ## ----------- ##"
2332 echo
2333 cat confdefs.h
2334 echo
2335 fi
2336 test "$ac_signal" != 0 &&
2337 printf "%s\n" "$as_me: caught signal $ac_signal"
2338 printf "%s\n" "$as_me: exit $exit_status"
2339 } >&5
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342 exit $exit_status
2343 ' 0
2344 for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346 done
2347 ac_signal=0
2348
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2351
2352 printf "%s\n" "/* confdefs.h */" > confdefs.h
2353
2354 # Predefined preprocessor variables.
2355
2356 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2357
2358 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2359
2360 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2361
2362 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2363
2364 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2365
2366 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2367
2368
2369 # Let the site file select an alternate cache file if it wants to.
2370 # Prefer an explicitly selected file to automatically selected ones.
2371 if test -n "$CONFIG_SITE"; then
2372 ac_site_files="$CONFIG_SITE"
2373 elif test "x$prefix" != xNONE; then
2374 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2375 else
2376 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2377 fi
2378
2379 for ac_site_file in $ac_site_files
2380 do
2381 case $ac_site_file in #(
2382 */*) :
2383 ;; #(
2384 *) :
2385 ac_site_file=./$ac_site_file ;;
2386 esac
2387 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2389 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2390 sed 's/^/| /' "$ac_site_file" >&5
2391 . "$ac_site_file" \
2392 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2393 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2394 as_fn_error $? "failed to load site script $ac_site_file
2395 See 'config.log' for more details" "$LINENO" 5; }
2396 fi
2397 done
2398
2399 if test -r "$cache_file"; then
2400 # Some versions of bash will fail to source /dev/null (special files
2401 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2405 case $cache_file in
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
2408 esac
2409 fi
2410 else
2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2413 >$cache_file
2414 fi
2415
2416 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2417 # Test code for whether the C compiler supports C89 (global declarations)
2418 ac_c_conftest_c89_globals='
2419 /* Does the compiler advertise C89 conformance?
2420 Do not test the value of __STDC__, because some compilers set it to 0
2421 while being otherwise adequately conformant. */
2422 #if !defined __STDC__
2423 # error "Compiler does not advertise C89 conformance"
2424 #endif
2425
2426 #include <stddef.h>
2427 #include <stdarg.h>
2428 struct stat;
2429 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2430 struct buf { int x; };
2431 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2432 static char *e (char **p, int i)
2433 {
2434 return p[i];
2435 }
2436 static char *f (char * (*g) (char **, int), char **p, ...)
2437 {
2438 char *s;
2439 va_list v;
2440 va_start (v,p);
2441 s = g (p, va_arg (v,int));
2442 va_end (v);
2443 return s;
2444 }
2445
2446 /* C89 style stringification. */
2447 #define noexpand_stringify(a) #a
2448 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2449
2450 /* C89 style token pasting. Exercises some of the corner cases that
2451 e.g. old MSVC gets wrong, but not very hard. */
2452 #define noexpand_concat(a,b) a##b
2453 #define expand_concat(a,b) noexpand_concat(a,b)
2454 extern int vA;
2455 extern int vbee;
2456 #define aye A
2457 #define bee B
2458 int *pvA = &expand_concat(v,aye);
2459 int *pvbee = &noexpand_concat(v,bee);
2460
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2462 function prototypes and stuff, but not \xHH hex character constants.
2463 These do not provoke an error unfortunately, instead are silently treated
2464 as an "x". The following induces an error, until -std is added to get
2465 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2466 array size at least. It is necessary to write \x00 == 0 to get something
2467 that is true only with -std. */
2468 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2469
2470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2471 inside strings and character constants. */
2472 #define FOO(x) '\''x'\''
2473 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2474
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2479 int, int);'
2480
2481 # Test code for whether the C compiler supports C89 (body of main).
2482 ac_c_conftest_c89_main='
2483 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2484 '
2485
2486 # Test code for whether the C compiler supports C99 (global declarations)
2487 ac_c_conftest_c99_globals='
2488 /* Does the compiler advertise C99 conformance? */
2489 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2490 # error "Compiler does not advertise C99 conformance"
2491 #endif
2492
2493 // See if C++-style comments work.
2494
2495 #include <stdbool.h>
2496 extern int puts (const char *);
2497 extern int printf (const char *, ...);
2498 extern int dprintf (int, const char *, ...);
2499 extern void *malloc (size_t);
2500 extern void free (void *);
2501
2502 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2503 // dprintf is used instead of fprintf to avoid needing to declare
2504 // FILE and stderr.
2505 #define debug(...) dprintf (2, __VA_ARGS__)
2506 #define showlist(...) puts (#__VA_ARGS__)
2507 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2508 static void
2509 test_varargs_macros (void)
2510 {
2511 int x = 1234;
2512 int y = 5678;
2513 debug ("Flag");
2514 debug ("X = %d\n", x);
2515 showlist (The first, second, and third items.);
2516 report (x>y, "x is %d but y is %d", x, y);
2517 }
2518
2519 // Check long long types.
2520 #define BIG64 18446744073709551615ull
2521 #define BIG32 4294967295ul
2522 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2523 #if !BIG_OK
2524 #error "your preprocessor is broken"
2525 #endif
2526 #if BIG_OK
2527 #else
2528 #error "your preprocessor is broken"
2529 #endif
2530 static long long int bignum = -9223372036854775807LL;
2531 static unsigned long long int ubignum = BIG64;
2532
2533 struct incomplete_array
2534 {
2535 int datasize;
2536 double data[];
2537 };
2538
2539 struct named_init {
2540 int number;
2541 const wchar_t *name;
2542 double average;
2543 };
2544
2545 typedef const char *ccp;
2546
2547 static inline int
2548 test_restrict (ccp restrict text)
2549 {
2550 // Iterate through items via the restricted pointer.
2551 // Also check for declarations in for loops.
2552 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2553 continue;
2554 return 0;
2555 }
2556
2557 // Check varargs and va_copy.
2558 static bool
2559 test_varargs (const char *format, ...)
2560 {
2561 va_list args;
2562 va_start (args, format);
2563 va_list args_copy;
2564 va_copy (args_copy, args);
2565
2566 const char *str = "";
2567 int number = 0;
2568 float fnumber = 0;
2569
2570 while (*format)
2571 {
2572 switch (*format++)
2573 {
2574 case '\''s'\'': // string
2575 str = va_arg (args_copy, const char *);
2576 break;
2577 case '\''d'\'': // int
2578 number = va_arg (args_copy, int);
2579 break;
2580 case '\''f'\'': // float
2581 fnumber = va_arg (args_copy, double);
2582 break;
2583 default:
2584 break;
2585 }
2586 }
2587 va_end (args_copy);
2588 va_end (args);
2589
2590 return *str && number && fnumber;
2591 }
2592 '
2593
2594 # Test code for whether the C compiler supports C99 (body of main).
2595 ac_c_conftest_c99_main='
2596 // Check bool.
2597 _Bool success = false;
2598 success |= (argc != 0);
2599
2600 // Check restrict.
2601 if (test_restrict ("String literal") == 0)
2602 success = true;
2603 char *restrict newvar = "Another string";
2604
2605 // Check varargs.
2606 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2607 test_varargs_macros ();
2608
2609 // Check flexible array members.
2610 struct incomplete_array *ia =
2611 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2612 ia->datasize = 10;
2613 for (int i = 0; i < ia->datasize; ++i)
2614 ia->data[i] = i * 1.234;
2615 // Work around memory leak warnings.
2616 free (ia);
2617
2618 // Check named initializers.
2619 struct named_init ni = {
2620 .number = 34,
2621 .name = L"Test wide string",
2622 .average = 543.34343,
2623 };
2624
2625 ni.number = 58;
2626
2627 int dynamic_array[ni.number];
2628 dynamic_array[0] = argv[0][0];
2629 dynamic_array[ni.number - 1] = 543;
2630
2631 // work around unused variable warnings
2632 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2633 || dynamic_array[ni.number - 1] != 543);
2634 '
2635
2636 # Test code for whether the C compiler supports C11 (global declarations)
2637 ac_c_conftest_c11_globals='
2638 /* Does the compiler advertise C11 conformance? */
2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2640 # error "Compiler does not advertise C11 conformance"
2641 #endif
2642
2643 // Check _Alignas.
2644 char _Alignas (double) aligned_as_double;
2645 char _Alignas (0) no_special_alignment;
2646 extern char aligned_as_int;
2647 char _Alignas (0) _Alignas (int) aligned_as_int;
2648
2649 // Check _Alignof.
2650 enum
2651 {
2652 int_alignment = _Alignof (int),
2653 int_array_alignment = _Alignof (int[100]),
2654 char_alignment = _Alignof (char)
2655 };
2656 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2657
2658 // Check _Noreturn.
2659 int _Noreturn does_not_return (void) { for (;;) continue; }
2660
2661 // Check _Static_assert.
2662 struct test_static_assert
2663 {
2664 int x;
2665 _Static_assert (sizeof (int) <= sizeof (long int),
2666 "_Static_assert does not work in struct");
2667 long int y;
2668 };
2669
2670 // Check UTF-8 literals.
2671 #define u8 syntax error!
2672 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2673
2674 // Check duplicate typedefs.
2675 typedef long *long_ptr;
2676 typedef long int *long_ptr;
2677 typedef long_ptr long_ptr;
2678
2679 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2680 struct anonymous
2681 {
2682 union {
2683 struct { int i; int j; };
2684 struct { int k; long int l; } w;
2685 };
2686 int m;
2687 } v1;
2688 '
2689
2690 # Test code for whether the C compiler supports C11 (body of main).
2691 ac_c_conftest_c11_main='
2692 _Static_assert ((offsetof (struct anonymous, i)
2693 == offsetof (struct anonymous, w.k)),
2694 "Anonymous union alignment botch");
2695 v1.i = 2;
2696 v1.w.k = 5;
2697 ok |= v1.i != 5;
2698 '
2699
2700 # Test code for whether the C compiler supports C11 (complete).
2701 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2702 ${ac_c_conftest_c99_globals}
2703 ${ac_c_conftest_c11_globals}
2704
2705 int
2706 main (int argc, char **argv)
2707 {
2708 int ok = 0;
2709 ${ac_c_conftest_c89_main}
2710 ${ac_c_conftest_c99_main}
2711 ${ac_c_conftest_c11_main}
2712 return ok;
2713 }
2714 "
2715
2716 # Test code for whether the C compiler supports C99 (complete).
2717 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2718 ${ac_c_conftest_c99_globals}
2719
2720 int
2721 main (int argc, char **argv)
2722 {
2723 int ok = 0;
2724 ${ac_c_conftest_c89_main}
2725 ${ac_c_conftest_c99_main}
2726 return ok;
2727 }
2728 "
2729
2730 # Test code for whether the C compiler supports C89 (complete).
2731 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2732
2733 int
2734 main (int argc, char **argv)
2735 {
2736 int ok = 0;
2737 ${ac_c_conftest_c89_main}
2738 return ok;
2739 }
2740 "
2741
2742 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2743 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2744 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2745 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2746 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2747 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2748 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2749 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2750 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2751 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2752 # Test code for whether the C++ compiler supports C++98 (global declarations)
2753 ac_cxx_conftest_cxx98_globals='
2754 // Does the compiler advertise C++98 conformance?
2755 #if !defined __cplusplus || __cplusplus < 199711L
2756 # error "Compiler does not advertise C++98 conformance"
2757 #endif
2758
2759 // These inclusions are to reject old compilers that
2760 // lack the unsuffixed header files.
2761 #include <cstdlib>
2762 #include <exception>
2763
2764 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2765 extern void assert (int);
2766 namespace std {
2767 extern int strcmp (const char *, const char *);
2768 }
2769
2770 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2771 using std::exception;
2772 using std::strcmp;
2773
2774 namespace {
2775
2776 void test_exception_syntax()
2777 {
2778 try {
2779 throw "test";
2780 } catch (const char *s) {
2781 // Extra parentheses suppress a warning when building autoconf itself,
2782 // due to lint rules shared with more typical C programs.
2783 assert (!(strcmp) (s, "test"));
2784 }
2785 }
2786
2787 template <typename T> struct test_template
2788 {
2789 T const val;
2790 explicit test_template(T t) : val(t) {}
2791 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2792 };
2793
2794 } // anonymous namespace
2795 '
2796
2797 # Test code for whether the C++ compiler supports C++98 (body of main)
2798 ac_cxx_conftest_cxx98_main='
2799 assert (argc);
2800 assert (! argv[0]);
2801 {
2802 test_exception_syntax ();
2803 test_template<double> tt (2.0);
2804 assert (tt.add (4) == 6.0);
2805 assert (true && !false);
2806 }
2807 '
2808
2809 # Test code for whether the C++ compiler supports C++11 (global declarations)
2810 ac_cxx_conftest_cxx11_globals='
2811 // Does the compiler advertise C++ 2011 conformance?
2812 #if !defined __cplusplus || __cplusplus < 201103L
2813 # error "Compiler does not advertise C++11 conformance"
2814 #endif
2815
2816 namespace cxx11test
2817 {
2818 constexpr int get_val() { return 20; }
2819
2820 struct testinit
2821 {
2822 int i;
2823 double d;
2824 };
2825
2826 class delegate
2827 {
2828 public:
2829 delegate(int n) : n(n) {}
2830 delegate(): delegate(2354) {}
2831
2832 virtual int getval() { return this->n; };
2833 protected:
2834 int n;
2835 };
2836
2837 class overridden : public delegate
2838 {
2839 public:
2840 overridden(int n): delegate(n) {}
2841 virtual int getval() override final { return this->n * 2; }
2842 };
2843
2844 class nocopy
2845 {
2846 public:
2847 nocopy(int i): i(i) {}
2848 nocopy() = default;
2849 nocopy(const nocopy&) = delete;
2850 nocopy & operator=(const nocopy&) = delete;
2851 private:
2852 int i;
2853 };
2854
2855 // for testing lambda expressions
2856 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2857 {
2858 return f(v);
2859 }
2860
2861 // for testing variadic templates and trailing return types
2862 template <typename V> auto sum(V first) -> V
2863 {
2864 return first;
2865 }
2866 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2867 {
2868 return first + sum(rest...);
2869 }
2870 }
2871 '
2872
2873 # Test code for whether the C++ compiler supports C++11 (body of main)
2874 ac_cxx_conftest_cxx11_main='
2875 {
2876 // Test auto and decltype
2877 auto a1 = 6538;
2878 auto a2 = 48573953.4;
2879 auto a3 = "String literal";
2880
2881 int total = 0;
2882 for (auto i = a3; *i; ++i) { total += *i; }
2883
2884 decltype(a2) a4 = 34895.034;
2885 }
2886 {
2887 // Test constexpr
2888 short sa[cxx11test::get_val()] = { 0 };
2889 }
2890 {
2891 // Test initializer lists
2892 cxx11test::testinit il = { 4323, 435234.23544 };
2893 }
2894 {
2895 // Test range-based for
2896 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2897 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2898 for (auto &x : array) { x += 23; }
2899 }
2900 {
2901 // Test lambda expressions
2902 using cxx11test::eval;
2903 assert (eval ([](int x) { return x*2; }, 21) == 42);
2904 double d = 2.0;
2905 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2906 assert (d == 5.0);
2907 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2908 assert (d == 5.0);
2909 }
2910 {
2911 // Test use of variadic templates
2912 using cxx11test::sum;
2913 auto a = sum(1);
2914 auto b = sum(1, 2);
2915 auto c = sum(1.0, 2.0, 3.0);
2916 }
2917 {
2918 // Test constructor delegation
2919 cxx11test::delegate d1;
2920 cxx11test::delegate d2();
2921 cxx11test::delegate d3(45);
2922 }
2923 {
2924 // Test override and final
2925 cxx11test::overridden o1(55464);
2926 }
2927 {
2928 // Test nullptr
2929 char *c = nullptr;
2930 }
2931 {
2932 // Test template brackets
2933 test_template<::test_template<int>> v(test_template<int>(12));
2934 }
2935 {
2936 // Unicode literals
2937 char const *utf8 = u8"UTF-8 string \u2500";
2938 char16_t const *utf16 = u"UTF-8 string \u2500";
2939 char32_t const *utf32 = U"UTF-32 string \u2500";
2940 }
2941 '
2942
2943 # Test code for whether the C compiler supports C++11 (complete).
2944 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2945 ${ac_cxx_conftest_cxx11_globals}
2946
2947 int
2948 main (int argc, char **argv)
2949 {
2950 int ok = 0;
2951 ${ac_cxx_conftest_cxx98_main}
2952 ${ac_cxx_conftest_cxx11_main}
2953 return ok;
2954 }
2955 "
2956
2957 # Test code for whether the C compiler supports C++98 (complete).
2958 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2959 int
2960 main (int argc, char **argv)
2961 {
2962 int ok = 0;
2963 ${ac_cxx_conftest_cxx98_main}
2964 return ok;
2965 }
2966 "
2967
2968 gt_needs="$gt_needs "
2969
2970 # Auxiliary files required by this configure script.
2971 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
2972
2973 # Locations in which to look for auxiliary files.
2974 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2975
2976 # Search for a directory containing all of the required auxiliary files,
2977 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2978 # If we don't find one directory that contains all the files we need,
2979 # we report the set of missing files from the *first* directory in
2980 # $ac_aux_dir_candidates and give up.
2981 ac_missing_aux_files=""
2982 ac_first_candidate=:
2983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 as_found=false
2986 for as_dir in $ac_aux_dir_candidates
2987 do
2988 IFS=$as_save_IFS
2989 case $as_dir in #(((
2990 '') as_dir=./ ;;
2991 */) ;;
2992 *) as_dir=$as_dir/ ;;
2993 esac
2994 as_found=:
2995
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2997 ac_aux_dir_found=yes
2998 ac_install_sh=
2999 for ac_aux in $ac_aux_files
3000 do
3001 # As a special case, if "install-sh" is required, that requirement
3002 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3003 # and $ac_install_sh is set appropriately for whichever one is found.
3004 if test x"$ac_aux" = x"install-sh"
3005 then
3006 if test -f "${as_dir}install-sh"; then
3007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3008 ac_install_sh="${as_dir}install-sh -c"
3009 elif test -f "${as_dir}install.sh"; then
3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3011 ac_install_sh="${as_dir}install.sh -c"
3012 elif test -f "${as_dir}shtool"; then
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3014 ac_install_sh="${as_dir}shtool install -c"
3015 else
3016 ac_aux_dir_found=no
3017 if $ac_first_candidate; then
3018 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3019 else
3020 break
3021 fi
3022 fi
3023 else
3024 if test -f "${as_dir}${ac_aux}"; then
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3026 else
3027 ac_aux_dir_found=no
3028 if $ac_first_candidate; then
3029 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3030 else
3031 break
3032 fi
3033 fi
3034 fi
3035 done
3036 if test "$ac_aux_dir_found" = yes; then
3037 ac_aux_dir="$as_dir"
3038 break
3039 fi
3040 ac_first_candidate=false
3041
3042 as_found=false
3043 done
3044 IFS=$as_save_IFS
3045 if $as_found
3046 then :
3047
3048 else case e in #(
3049 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3050 esac
3051 fi
3052
3053
3054 # These three variables are undocumented and unsupported,
3055 # and are intended to be withdrawn in a future Autoconf release.
3056 # They can cause serious problems if a builder's source tree is in a directory
3057 # whose full name contains unusual characters.
3058 if test -f "${ac_aux_dir}config.guess"; then
3059 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3060 fi
3061 if test -f "${ac_aux_dir}config.sub"; then
3062 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3063 fi
3064 if test -f "$ac_aux_dir/configure"; then
3065 ac_configure="$SHELL ${ac_aux_dir}configure"
3066 fi
3067
3068 # Check that the precious variables saved in the cache have kept the same
3069 # value.
3070 ac_cache_corrupted=false
3071 for ac_var in $ac_precious_vars; do
3072 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3073 eval ac_new_set=\$ac_env_${ac_var}_set
3074 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3075 eval ac_new_val=\$ac_env_${ac_var}_value
3076 case $ac_old_set,$ac_new_set in
3077 set,)
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3079 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3080 ac_cache_corrupted=: ;;
3081 ,set)
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3083 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3084 ac_cache_corrupted=: ;;
3085 ,);;
3086 *)
3087 if test "x$ac_old_val" != "x$ac_new_val"; then
3088 # differences in whitespace do not lead to failure.
3089 ac_old_val_w=`echo x $ac_old_val`
3090 ac_new_val_w=`echo x $ac_new_val`
3091 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3093 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3094 ac_cache_corrupted=:
3095 else
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3097 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3098 eval $ac_var=\$ac_old_val
3099 fi
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3101 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3103 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3104 fi;;
3105 esac
3106 # Pass precious variables to config.status.
3107 if test "$ac_new_set" = set; then
3108 case $ac_new_val in
3109 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3110 *) ac_arg=$ac_var=$ac_new_val ;;
3111 esac
3112 case " $ac_configure_args " in
3113 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3114 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3115 esac
3116 fi
3117 done
3118 if $ac_cache_corrupted; then
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3120 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3122 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3123 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3124 and start over" "$LINENO" 5
3125 fi
3126 ## -------------------- ##
3127 ## Main body of script. ##
3128 ## -------------------- ##
3129
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135
3136
3137 am__api_version='1.17'
3138
3139
3140
3141 # Find a good install program. We prefer a C program (faster),
3142 # so one script is as good as another. But avoid the broken or
3143 # incompatible versions:
3144 # SysV /etc/install, /usr/sbin/install
3145 # SunOS /usr/etc/install
3146 # IRIX /sbin/install
3147 # AIX /bin/install
3148 # AmigaOS /C/install, which installs bootblocks on floppy discs
3149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3152 # OS/2's system install, which has a completely different semantic
3153 # ./install, which can be erroneously created by make from ./install.sh.
3154 # Reject install programs that cannot install multiple files.
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3156 printf %s "checking for a BSD-compatible install... " >&6; }
3157 if test -z "$INSTALL"; then
3158 if test ${ac_cv_path_install+y}
3159 then :
3160 printf %s "(cached) " >&6
3161 else case e in #(
3162 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 case $as_dir in #(((
3167 '') as_dir=./ ;;
3168 */) ;;
3169 *) as_dir=$as_dir/ ;;
3170 esac
3171 # Account for fact that we put trailing slashes in our PATH walk.
3172 case $as_dir in #((
3173 ./ | /[cC]/* | \
3174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3175 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3176 /usr/ucb/* ) ;;
3177 *)
3178 # OSF1 and SCO ODT 3.0 have their own names for install.
3179 # Don't use installbsd from OSF since it installs stuff as root
3180 # by default.
3181 for ac_prog in ginstall scoinst install; do
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3184 if test $ac_prog = install &&
3185 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3186 # AIX install. It has an incompatible calling convention.
3187 :
3188 elif test $ac_prog = install &&
3189 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3190 # program-specific install script used by HP pwplus--don't use.
3191 :
3192 else
3193 rm -rf conftest.one conftest.two conftest.dir
3194 echo one > conftest.one
3195 echo two > conftest.two
3196 mkdir conftest.dir
3197 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3198 test -s conftest.one && test -s conftest.two &&
3199 test -s conftest.dir/conftest.one &&
3200 test -s conftest.dir/conftest.two
3201 then
3202 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3203 break 3
3204 fi
3205 fi
3206 fi
3207 done
3208 done
3209 ;;
3210 esac
3211
3212 done
3213 IFS=$as_save_IFS
3214
3215 rm -rf conftest.one conftest.two conftest.dir
3216 ;;
3217 esac
3218 fi
3219 if test ${ac_cv_path_install+y}; then
3220 INSTALL=$ac_cv_path_install
3221 else
3222 # As a last resort, use the slow shell script. Don't cache a
3223 # value for INSTALL within a source directory, because that will
3224 # break other packages using the cache if that directory is
3225 # removed, or if the value is a relative name.
3226 INSTALL=$ac_install_sh
3227 fi
3228 fi
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3230 printf "%s\n" "$INSTALL" >&6; }
3231
3232 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3233 # It thinks the first close brace ends the variable substitution.
3234 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3235
3236 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3237
3238 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3239
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3241 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3242 if test ${am_cv_sleep_fractional_seconds+y}
3243 then :
3244 printf %s "(cached) " >&6
3245 else case e in #(
3246 e) if sleep 0.001 2>/dev/null
3247 then :
3248 am_cv_sleep_fractional_seconds=yes
3249 else case e in #(
3250 e) am_cv_sleep_fractional_seconds=no ;;
3251 esac
3252 fi
3253 ;;
3254 esac
3255 fi
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3257 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3258
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3260 printf %s "checking filesystem timestamp resolution... " >&6; }
3261 if test ${am_cv_filesystem_timestamp_resolution+y}
3262 then :
3263 printf %s "(cached) " >&6
3264 else case e in #(
3265 e) # Default to the worst case.
3266 am_cv_filesystem_timestamp_resolution=2
3267
3268 # Only try to go finer than 1 sec if sleep can do it.
3269 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3270 # - 1 sec is not much of a win compared to 2 sec, and
3271 # - it takes 2 seconds to perform the test whether 1 sec works.
3272 #
3273 # Instead, just use the default 2s on platforms that have 1s resolution,
3274 # accept the extra 1s delay when using $sleep in the Automake tests, in
3275 # exchange for not incurring the 2s delay for running the test for all
3276 # packages.
3277 #
3278 am_try_resolutions=
3279 if test "$am_cv_sleep_fractional_seconds" = yes; then
3280 # Even a millisecond often causes a bunch of false positives,
3281 # so just try a hundredth of a second. The time saved between .001 and
3282 # .01 is not terribly consequential.
3283 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3284 fi
3285
3286 # In order to catch current-generation FAT out, we must *modify* files
3287 # that already exist; the *creation* timestamp is finer. Use names
3288 # that make ls -t sort them differently when they have equal
3289 # timestamps than when they have distinct timestamps, keeping
3290 # in mind that ls -t prints the *newest* file first.
3291 rm -f conftest.ts?
3292 : > conftest.ts1
3293 : > conftest.ts2
3294 : > conftest.ts3
3295
3296 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3297 # clobber the current shell's arguments. (Outer-level square brackets
3298 # are removed by m4; they're present so that m4 does not expand
3299 # <dollar><star>; be careful, easy to get confused.)
3300 if (
3301 set X `ls -t conftest.ts[12]` &&
3302 {
3303 test "$*" != "X conftest.ts1 conftest.ts2" ||
3304 test "$*" != "X conftest.ts2 conftest.ts1";
3305 }
3306 ); then :; else
3307 # If neither matched, then we have a broken ls. This can happen
3308 # if, for instance, CONFIG_SHELL is bash and it inherits a
3309 # broken ls alias from the environment. This has actually
3310 # happened. Such a system could not be considered "sane".
3311 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3313 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3314 as_fn_error $? "ls -t produces unexpected output.
3315 Make sure there is not a broken ls alias in your environment.
3316 See 'config.log' for more details" "$LINENO" 5; }
3317 fi
3318
3319 for am_try_res in $am_try_resolutions; do
3320 # Any one fine-grained sleep might happen to cross the boundary
3321 # between two values of a coarser actual resolution, but if we do
3322 # two fine-grained sleeps in a row, at least one of them will fall
3323 # entirely within a coarse interval.
3324 echo alpha > conftest.ts1
3325 sleep $am_try_res
3326 echo beta > conftest.ts2
3327 sleep $am_try_res
3328 echo gamma > conftest.ts3
3329
3330 # We assume that 'ls -t' will make use of high-resolution
3331 # timestamps if the operating system supports them at all.
3332 if (set X `ls -t conftest.ts?` &&
3333 test "$2" = conftest.ts3 &&
3334 test "$3" = conftest.ts2 &&
3335 test "$4" = conftest.ts1); then
3336 #
3337 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3338 # because we don't need to test make.
3339 make_ok=true
3340 if test $am_try_res != 1; then
3341 # But if we've succeeded so far with a subsecond resolution, we
3342 # have one more thing to check: make. It can happen that
3343 # everything else supports the subsecond mtimes, but make doesn't;
3344 # notably on macOS, which ships make 3.81 from 2006 (the last one
3345 # released under GPLv2). https://bugs.gnu.org/68808
3346 #
3347 # We test $MAKE if it is defined in the environment, else "make".
3348 # It might get overridden later, but our hope is that in practice
3349 # it does not matter: it is the system "make" which is (by far)
3350 # the most likely to be broken, whereas if the user overrides it,
3351 # probably they did so with a better, or at least not worse, make.
3352 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3353 #
3354 # Create a Makefile (real tab character here):
3355 rm -f conftest.mk
3356 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3357 echo ' touch conftest.ts2' >>conftest.mk
3358 #
3359 # Now, running
3360 # touch conftest.ts1; touch conftest.ts2; make
3361 # should touch ts1 because ts2 is newer. This could happen by luck,
3362 # but most often, it will fail if make's support is insufficient. So
3363 # test for several consecutive successes.
3364 #
3365 # (We reuse conftest.ts[12] because we still want to modify existing
3366 # files, not create new ones, per above.)
3367 n=0
3368 make=${MAKE-make}
3369 until test $n -eq 3; do
3370 echo one > conftest.ts1
3371 sleep $am_try_res
3372 echo two > conftest.ts2 # ts2 should now be newer than ts1
3373 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3374 make_ok=false
3375 break # out of $n loop
3376 fi
3377 n=`expr $n + 1`
3378 done
3379 fi
3380 #
3381 if $make_ok; then
3382 # Everything we know to check worked out, so call this resolution good.
3383 am_cv_filesystem_timestamp_resolution=$am_try_res
3384 break # out of $am_try_res loop
3385 fi
3386 # Otherwise, we'll go on to check the next resolution.
3387 fi
3388 done
3389 rm -f conftest.ts?
3390 # (end _am_filesystem_timestamp_resolution)
3391 ;;
3392 esac
3393 fi
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3395 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3396
3397 # This check should not be cached, as it may vary across builds of
3398 # different projects.
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3400 printf %s "checking whether build environment is sane... " >&6; }
3401 # Reject unsafe characters in $srcdir or the absolute working directory
3402 # name. Accept space and tab only in the latter.
3403 am_lf='
3404 '
3405 case `pwd` in
3406 *[\\\"\#\$\&\'\`$am_lf]*)
3407 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3408 esac
3409 case $srcdir in
3410 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3411 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3412 esac
3413
3414 # Do 'set' in a subshell so we don't clobber the current shell's
3415 # arguments. Must try -L first in case configure is actually a
3416 # symlink; some systems play weird games with the mod time of symlinks
3417 # (eg FreeBSD returns the mod time of the symlink's containing
3418 # directory).
3419 am_build_env_is_sane=no
3420 am_has_slept=no
3421 rm -f conftest.file
3422 for am_try in 1 2; do
3423 echo "timestamp, slept: $am_has_slept" > conftest.file
3424 if (
3425 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3426 if test "$*" = "X"; then
3427 # -L didn't work.
3428 set X `ls -t "$srcdir/configure" conftest.file`
3429 fi
3430 test "$2" = conftest.file
3431 ); then
3432 am_build_env_is_sane=yes
3433 break
3434 fi
3435 # Just in case.
3436 sleep "$am_cv_filesystem_timestamp_resolution"
3437 am_has_slept=yes
3438 done
3439
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3441 printf "%s\n" "$am_build_env_is_sane" >&6; }
3442 if test "$am_build_env_is_sane" = no; then
3443 as_fn_error $? "newly created file is older than distributed files!
3444 Check your system clock" "$LINENO" 5
3445 fi
3446
3447 # If we didn't sleep, we still need to ensure time stamps of config.status and
3448 # generated files are strictly newer.
3449 am_sleep_pid=
3450 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3451 then :
3452
3453 else case e in #(
3454 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3455 am_sleep_pid=$!
3456 ;;
3457 esac
3458 fi
3459
3460 rm -f conftest.file
3461
3462 test "$program_prefix" != NONE &&
3463 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3464 # Use a double $ so make ignores it.
3465 test "$program_suffix" != NONE &&
3466 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3467 # Double any \ or $.
3468 # By default was 's,x,x', remove it if useless.
3469 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3470 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3471
3472
3473 # Expand $ac_aux_dir to an absolute path.
3474 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3475
3476
3477 if test x"${MISSING+set}" != xset; then
3478 MISSING="\${SHELL} '$am_aux_dir/missing'"
3479 fi
3480 # Use eval to expand $SHELL
3481 if eval "$MISSING --is-lightweight"; then
3482 am_missing_run="$MISSING "
3483 else
3484 am_missing_run=
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3486 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3487 fi
3488
3489 if test x"${install_sh+set}" != xset; then
3490 case $am_aux_dir in
3491 *\ * | *\ *)
3492 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3493 *)
3494 install_sh="\${SHELL} $am_aux_dir/install-sh"
3495 esac
3496 fi
3497
3498 # Installed binaries are usually stripped using 'strip' when the user
3499 # run "make install-strip". However 'strip' might not be the right
3500 # tool to use in cross-compilation environments, therefore Automake
3501 # will honor the 'STRIP' environment variable to overrule this program.
3502 if test "$cross_compiling" != no; then
3503 if test -n "$ac_tool_prefix"; then
3504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3505 set dummy ${ac_tool_prefix}strip; ac_word=$2
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 printf %s "checking for $ac_word... " >&6; }
3508 if test ${ac_cv_prog_STRIP+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else case e in #(
3512 e) if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 case $as_dir in #(((
3520 '') as_dir=./ ;;
3521 */) ;;
3522 *) as_dir=$as_dir/ ;;
3523 esac
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi ;;
3535 esac
3536 fi
3537 STRIP=$ac_cv_prog_STRIP
3538 if test -n "$STRIP"; then
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3540 printf "%s\n" "$STRIP" >&6; }
3541 else
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 printf "%s\n" "no" >&6; }
3544 fi
3545
3546
3547 fi
3548 if test -z "$ac_cv_prog_STRIP"; then
3549 ac_ct_STRIP=$STRIP
3550 # Extract the first word of "strip", so it can be a program name with args.
3551 set dummy strip; ac_word=$2
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 printf %s "checking for $ac_word... " >&6; }
3554 if test ${ac_cv_prog_ac_ct_STRIP+y}
3555 then :
3556 printf %s "(cached) " >&6
3557 else case e in #(
3558 e) if test -n "$ac_ct_STRIP"; then
3559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 case $as_dir in #(((
3566 '') as_dir=./ ;;
3567 */) ;;
3568 *) as_dir=$as_dir/ ;;
3569 esac
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_ac_ct_STRIP="strip"
3573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi ;;
3581 esac
3582 fi
3583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3584 if test -n "$ac_ct_STRIP"; then
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3586 printf "%s\n" "$ac_ct_STRIP" >&6; }
3587 else
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 printf "%s\n" "no" >&6; }
3590 fi
3591
3592 if test "x$ac_ct_STRIP" = x; then
3593 STRIP=":"
3594 else
3595 case $cross_compiling:$ac_tool_warned in
3596 yes:)
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned=yes ;;
3600 esac
3601 STRIP=$ac_ct_STRIP
3602 fi
3603 else
3604 STRIP="$ac_cv_prog_STRIP"
3605 fi
3606
3607 fi
3608 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3609
3610
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3612 printf %s "checking for a race-free mkdir -p... " >&6; }
3613 if test -z "$MKDIR_P"; then
3614 if test ${ac_cv_path_mkdir+y}
3615 then :
3616 printf %s "(cached) " >&6
3617 else case e in #(
3618 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3620 do
3621 IFS=$as_save_IFS
3622 case $as_dir in #(((
3623 '') as_dir=./ ;;
3624 */) ;;
3625 *) as_dir=$as_dir/ ;;
3626 esac
3627 for ac_prog in mkdir gmkdir; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3630 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3631 'mkdir ('*'coreutils) '* | \
3632 *'BusyBox '* | \
3633 'mkdir (fileutils) '4.1*)
3634 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3635 break 3;;
3636 esac
3637 done
3638 done
3639 done
3640 IFS=$as_save_IFS
3641 ;;
3642 esac
3643 fi
3644
3645 test -d ./--version && rmdir ./--version
3646 if test ${ac_cv_path_mkdir+y}; then
3647 MKDIR_P="$ac_cv_path_mkdir -p"
3648 else
3649 # As a last resort, use plain mkdir -p,
3650 # in the hope it doesn't have the bugs of ancient mkdir.
3651 MKDIR_P='mkdir -p'
3652 fi
3653 fi
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3655 printf "%s\n" "$MKDIR_P" >&6; }
3656
3657 for ac_prog in gawk mawk nawk awk
3658 do
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy $ac_prog; ac_word=$2
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 printf %s "checking for $ac_word... " >&6; }
3663 if test ${ac_cv_prog_AWK+y}
3664 then :
3665 printf %s "(cached) " >&6
3666 else case e in #(
3667 e) if test -n "$AWK"; then
3668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 case $as_dir in #(((
3675 '') as_dir=./ ;;
3676 */) ;;
3677 *) as_dir=$as_dir/ ;;
3678 esac
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_AWK="$ac_prog"
3682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 fi ;;
3690 esac
3691 fi
3692 AWK=$ac_cv_prog_AWK
3693 if test -n "$AWK"; then
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3695 printf "%s\n" "$AWK" >&6; }
3696 else
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 printf "%s\n" "no" >&6; }
3699 fi
3700
3701
3702 test -n "$AWK" && break
3703 done
3704
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3706 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3707 set x ${MAKE-make}
3708 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3709 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3710 then :
3711 printf %s "(cached) " >&6
3712 else case e in #(
3713 e) cat >conftest.make <<\_ACEOF
3714 SHELL = /bin/sh
3715 all:
3716 @echo '@@@%%%=$(MAKE)=@@@%%%'
3717 _ACEOF
3718 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3719 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3720 *@@@%%%=?*=@@@%%%*)
3721 eval ac_cv_prog_make_${ac_make}_set=yes;;
3722 *)
3723 eval ac_cv_prog_make_${ac_make}_set=no;;
3724 esac
3725 rm -f conftest.make ;;
3726 esac
3727 fi
3728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 printf "%s\n" "yes" >&6; }
3731 SET_MAKE=
3732 else
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3735 SET_MAKE="MAKE=${MAKE-make}"
3736 fi
3737
3738 rm -rf .tst 2>/dev/null
3739 mkdir .tst 2>/dev/null
3740 if test -d .tst; then
3741 am__leading_dot=.
3742 else
3743 am__leading_dot=_
3744 fi
3745 rmdir .tst 2>/dev/null
3746
3747 AM_DEFAULT_VERBOSITY=1
3748 # Check whether --enable-silent-rules was given.
3749 if test ${enable_silent_rules+y}
3750 then :
3751 enableval=$enable_silent_rules;
3752 fi
3753
3754 am_make=${MAKE-make}
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3756 printf %s "checking whether $am_make supports nested variables... " >&6; }
3757 if test ${am_cv_make_support_nested_variables+y}
3758 then :
3759 printf %s "(cached) " >&6
3760 else case e in #(
3761 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3762 BAR0=false
3763 BAR1=true
3764 V=1
3765 am__doit:
3766 @$(TRUE)
3767 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3768 am_cv_make_support_nested_variables=yes
3769 else
3770 am_cv_make_support_nested_variables=no
3771 fi ;;
3772 esac
3773 fi
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3775 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3776 AM_BACKSLASH='\'
3777
3778 am__rm_f_notfound=
3779 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3780 then :
3781
3782 else case e in #(
3783 e) am__rm_f_notfound='""' ;;
3784 esac
3785 fi
3786
3787
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3789 printf %s "checking xargs -n works... " >&6; }
3790 if test ${am_cv_xargs_n_works+y}
3791 then :
3792 printf %s "(cached) " >&6
3793 else case e in #(
3794 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3795 3"
3796 then :
3797 am_cv_xargs_n_works=yes
3798 else case e in #(
3799 e) am_cv_xargs_n_works=no ;;
3800 esac
3801 fi ;;
3802 esac
3803 fi
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3805 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3806 if test "$am_cv_xargs_n_works" = yes
3807 then :
3808 am__xargs_n='xargs -n'
3809 else case e in #(
3810 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3811 ;;
3812 esac
3813 fi
3814
3815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3816 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3817 # is not polluted with repeated "-I."
3818 am__isrc=' -I$(srcdir)'
3819 # test to see if srcdir already configured
3820 if test -f $srcdir/config.status; then
3821 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3822 fi
3823 fi
3824
3825 # test whether we have cygpath
3826 if test -z "$CYGPATH_W"; then
3827 if (cygpath --version) >/dev/null 2>/dev/null; then
3828 CYGPATH_W='cygpath -w'
3829 else
3830 CYGPATH_W=echo
3831 fi
3832 fi
3833
3834
3835 # Define the identity of the package.
3836 PACKAGE='ibus-libzhuyin'
3837 VERSION='1.10.4'
3838
3839
3840 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3841
3842
3843 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3844
3845 # Some tools Automake needs.
3846
3847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3848
3849
3850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3851
3852
3853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3854
3855
3856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3857
3858
3859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3860
3861 # For better backward compatibility. To be removed once Automake 1.9.x
3862 # dies out for good. For more background, see:
3863 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3864 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3865 mkdir_p='$(MKDIR_P)'
3866
3867 # We need awk for the "check" target (and possibly the TAP driver). The
3868 # system "awk" is bad on some platforms.
3869 # Always define AMTAR for backward compatibility. Yes, it's still used
3870 # in the wild :-( We should find a proper way to deprecate it ...
3871 AMTAR='$${TAR-tar}'
3872
3873
3874 # We'll loop over all known methods to create a tar archive until one works.
3875 _am_tools='gnutar pax cpio none'
3876
3877 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3878
3879
3880
3881
3882
3883 # Variables for tags utilities; see am/tags.am
3884 if test -z "$CTAGS"; then
3885 CTAGS=ctags
3886 fi
3887
3888 if test -z "$ETAGS"; then
3889 ETAGS=etags
3890 fi
3891
3892 if test -z "$CSCOPE"; then
3893 CSCOPE=cscope
3894 fi
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911 DEPDIR="${am__leading_dot}deps"
3912
3913 ac_config_commands="$ac_config_commands depfiles"
3914
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3916 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3917 cat > confinc.mk << 'END'
3918 am__doit:
3919 @echo this is the am__doit target >confinc.out
3920 .PHONY: am__doit
3921 END
3922 am__include="#"
3923 am__quote=
3924 # BSD make does it like this.
3925 echo '.include "confinc.mk" # ignored' > confmf.BSD
3926 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3927 echo 'include confinc.mk # ignored' > confmf.GNU
3928 _am_result=no
3929 for s in GNU BSD; do
3930 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3931 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }
3935 case $?:`cat confinc.out 2>/dev/null` in #(
3936 '0:this is the am__doit target') :
3937 case $s in #(
3938 BSD) :
3939 am__include='.include' am__quote='"' ;; #(
3940 *) :
3941 am__include='include' am__quote='' ;;
3942 esac ;; #(
3943 *) :
3944 ;;
3945 esac
3946 if test "$am__include" != "#"; then
3947 _am_result="yes ($s style)"
3948 break
3949 fi
3950 done
3951 rm -f confinc.* confmf.*
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3953 printf "%s\n" "${_am_result}" >&6; }
3954
3955 # Check whether --enable-dependency-tracking was given.
3956 if test ${enable_dependency_tracking+y}
3957 then :
3958 enableval=$enable_dependency_tracking;
3959 fi
3960
3961 if test "x$enable_dependency_tracking" != xno; then
3962 am_depcomp="$ac_aux_dir/depcomp"
3963 AMDEPBACKSLASH='\'
3964 am__nodep='_no'
3965 fi
3966 if test "x$enable_dependency_tracking" != xno; then
3967 AMDEP_TRUE=
3968 AMDEP_FALSE='#'
3969 else
3970 AMDEP_TRUE='#'
3971 AMDEP_FALSE=
3972 fi
3973
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 printf %s "checking for $ac_word... " >&6; }
3985 if test ${ac_cv_prog_CC+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else case e in #(
3989 e) if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 case $as_dir in #(((
3997 '') as_dir=./ ;;
3998 */) ;;
3999 *) as_dir=$as_dir/ ;;
4000 esac
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi ;;
4012 esac
4013 fi
4014 CC=$ac_cv_prog_CC
4015 if test -n "$CC"; then
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017 printf "%s\n" "$CC" >&6; }
4018 else
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 printf "%s\n" "no" >&6; }
4021 fi
4022
4023
4024 fi
4025 if test -z "$ac_cv_prog_CC"; then
4026 ac_ct_CC=$CC
4027 # Extract the first word of "gcc", so it can be a program name with args.
4028 set dummy gcc; ac_word=$2
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 printf %s "checking for $ac_word... " >&6; }
4031 if test ${ac_cv_prog_ac_ct_CC+y}
4032 then :
4033 printf %s "(cached) " >&6
4034 else case e in #(
4035 e) if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 case $as_dir in #(((
4043 '') as_dir=./ ;;
4044 */) ;;
4045 *) as_dir=$as_dir/ ;;
4046 esac
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_ac_ct_CC="gcc"
4050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057 fi ;;
4058 esac
4059 fi
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063 printf "%s\n" "$ac_ct_CC" >&6; }
4064 else
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 printf "%s\n" "no" >&6; }
4067 fi
4068
4069 if test "x$ac_ct_CC" = x; then
4070 CC=""
4071 else
4072 case $cross_compiling:$ac_tool_warned in
4073 yes:)
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4077 esac
4078 CC=$ac_ct_CC
4079 fi
4080 else
4081 CC="$ac_cv_prog_CC"
4082 fi
4083
4084 if test -z "$CC"; then
4085 if test -n "$ac_tool_prefix"; then
4086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4087 set dummy ${ac_tool_prefix}cc; ac_word=$2
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 printf %s "checking for $ac_word... " >&6; }
4090 if test ${ac_cv_prog_CC+y}
4091 then :
4092 printf %s "(cached) " >&6
4093 else case e in #(
4094 e) if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 case $as_dir in #(((
4102 '') as_dir=./ ;;
4103 */) ;;
4104 *) as_dir=$as_dir/ ;;
4105 esac
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_CC="${ac_tool_prefix}cc"
4109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112 done
4113 done
4114 IFS=$as_save_IFS
4115
4116 fi ;;
4117 esac
4118 fi
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 printf "%s\n" "$CC" >&6; }
4123 else
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 printf "%s\n" "no" >&6; }
4126 fi
4127
4128
4129 fi
4130 fi
4131 if test -z "$CC"; then
4132 # Extract the first word of "cc", so it can be a program name with args.
4133 set dummy cc; ac_word=$2
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 printf %s "checking for $ac_word... " >&6; }
4136 if test ${ac_cv_prog_CC+y}
4137 then :
4138 printf %s "(cached) " >&6
4139 else case e in #(
4140 e) if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 ac_prog_rejected=no
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 case $as_dir in #(((
4149 '') as_dir=./ ;;
4150 */) ;;
4151 *) as_dir=$as_dir/ ;;
4152 esac
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4155 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4156 ac_prog_rejected=yes
4157 continue
4158 fi
4159 ac_cv_prog_CC="cc"
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 if test $ac_prog_rejected = yes; then
4168 # We found a bogon in the path, so make sure we never use it.
4169 set dummy $ac_cv_prog_CC
4170 shift
4171 if test $# != 0; then
4172 # We chose a different compiler from the bogus one.
4173 # However, it has the same basename, so the bogon will be chosen
4174 # first if we set CC to just the basename; use the full file name.
4175 shift
4176 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4177 fi
4178 fi
4179 fi ;;
4180 esac
4181 fi
4182 CC=$ac_cv_prog_CC
4183 if test -n "$CC"; then
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185 printf "%s\n" "$CC" >&6; }
4186 else
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 printf "%s\n" "no" >&6; }
4189 fi
4190
4191
4192 fi
4193 if test -z "$CC"; then
4194 if test -n "$ac_tool_prefix"; then
4195 for ac_prog in cl.exe
4196 do
4197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 printf %s "checking for $ac_word... " >&6; }
4201 if test ${ac_cv_prog_CC+y}
4202 then :
4203 printf %s "(cached) " >&6
4204 else case e in #(
4205 e) if test -n "$CC"; then
4206 ac_cv_prog_CC="$CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 case $as_dir in #(((
4213 '') as_dir=./ ;;
4214 */) ;;
4215 *) as_dir=$as_dir/ ;;
4216 esac
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi ;;
4228 esac
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 printf "%s\n" "$CC" >&6; }
4234 else
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 printf "%s\n" "no" >&6; }
4237 fi
4238
4239
4240 test -n "$CC" && break
4241 done
4242 fi
4243 if test -z "$CC"; then
4244 ac_ct_CC=$CC
4245 for ac_prog in cl.exe
4246 do
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 printf %s "checking for $ac_word... " >&6; }
4251 if test ${ac_cv_prog_ac_ct_CC+y}
4252 then :
4253 printf %s "(cached) " >&6
4254 else case e in #(
4255 e) if test -n "$ac_ct_CC"; then
4256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261 IFS=$as_save_IFS
4262 case $as_dir in #(((
4263 '') as_dir=./ ;;
4264 */) ;;
4265 *) as_dir=$as_dir/ ;;
4266 esac
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_CC="$ac_prog"
4270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4276
4277 fi ;;
4278 esac
4279 fi
4280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4283 printf "%s\n" "$ac_ct_CC" >&6; }
4284 else
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 printf "%s\n" "no" >&6; }
4287 fi
4288
4289
4290 test -n "$ac_ct_CC" && break
4291 done
4292
4293 if test "x$ac_ct_CC" = x; then
4294 CC=""
4295 else
4296 case $cross_compiling:$ac_tool_warned in
4297 yes:)
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300 ac_tool_warned=yes ;;
4301 esac
4302 CC=$ac_ct_CC
4303 fi
4304 fi
4305
4306 fi
4307 if test -z "$CC"; then
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}clang; ac_word=$2
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 printf %s "checking for $ac_word... " >&6; }
4313 if test ${ac_cv_prog_CC+y}
4314 then :
4315 printf %s "(cached) " >&6
4316 else case e in #(
4317 e) if test -n "$CC"; then
4318 ac_cv_prog_CC="$CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323 IFS=$as_save_IFS
4324 case $as_dir in #(((
4325 '') as_dir=./ ;;
4326 */) ;;
4327 *) as_dir=$as_dir/ ;;
4328 esac
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CC="${ac_tool_prefix}clang"
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi ;;
4340 esac
4341 fi
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 printf "%s\n" "$CC" >&6; }
4346 else
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 printf "%s\n" "no" >&6; }
4349 fi
4350
4351
4352 fi
4353 if test -z "$ac_cv_prog_CC"; then
4354 ac_ct_CC=$CC
4355 # Extract the first word of "clang", so it can be a program name with args.
4356 set dummy clang; ac_word=$2
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 printf %s "checking for $ac_word... " >&6; }
4359 if test ${ac_cv_prog_ac_ct_CC+y}
4360 then :
4361 printf %s "(cached) " >&6
4362 else case e in #(
4363 e) if test -n "$ac_ct_CC"; then
4364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369 IFS=$as_save_IFS
4370 case $as_dir in #(((
4371 '') as_dir=./ ;;
4372 */) ;;
4373 *) as_dir=$as_dir/ ;;
4374 esac
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_ac_ct_CC="clang"
4378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4379 break 2
4380 fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 fi ;;
4386 esac
4387 fi
4388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4389 if test -n "$ac_ct_CC"; then
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4391 printf "%s\n" "$ac_ct_CC" >&6; }
4392 else
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 printf "%s\n" "no" >&6; }
4395 fi
4396
4397 if test "x$ac_ct_CC" = x; then
4398 CC=""
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4405 esac
4406 CC=$ac_ct_CC
4407 fi
4408 else
4409 CC="$ac_cv_prog_CC"
4410 fi
4411
4412 fi
4413
4414
4415 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4416 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4417 as_fn_error $? "no acceptable C compiler found in \$PATH
4418 See 'config.log' for more details" "$LINENO" 5; }
4419
4420 # Provide some information about the compiler.
4421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4422 set X $ac_compile
4423 ac_compiler=$2
4424 for ac_option in --version -v -V -qversion -version; do
4425 { { ac_try="$ac_compiler $ac_option >&5"
4426 case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429 esac
4430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431 printf "%s\n" "$ac_try_echo"; } >&5
4432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4433 ac_status=$?
4434 if test -s conftest.err; then
4435 sed '10a\
4436 ... rest of stderr output deleted ...
4437 10q' conftest.err >conftest.er1
4438 cat conftest.er1 >&5
4439 fi
4440 rm -f conftest.er1 conftest.err
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }
4443 done
4444
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447
4448 int
4449 main (void)
4450 {
4451
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 ac_clean_files_save=$ac_clean_files
4457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4458 # Try to create an executable without -o first, disregard a.out.
4459 # It will help us diagnose broken compilers, and finding out an intuition
4460 # of exeext.
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4462 printf %s "checking whether the C compiler works... " >&6; }
4463 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4464
4465 # The possible output files:
4466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4467
4468 ac_rmfiles=
4469 for ac_file in $ac_files
4470 do
4471 case $ac_file in
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4474 esac
4475 done
4476 rm -f $ac_rmfiles
4477
4478 if { { ac_try="$ac_link_default"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 printf "%s\n" "$ac_try_echo"; } >&5
4485 (eval "$ac_link_default") 2>&5
4486 ac_status=$?
4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4489 then :
4490 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4491 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4492 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4493 # so that the user can short-circuit this test for compilers unknown to
4494 # Autoconf.
4495 for ac_file in $ac_files ''
4496 do
4497 test -f "$ac_file" || continue
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4500 ;;
4501 [ab].out )
4502 # We found the default executable, but exeext='' is most
4503 # certainly right.
4504 break;;
4505 *.* )
4506 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4507 then :; else
4508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4509 fi
4510 # We set ac_cv_exeext here because the later test for it is not
4511 # safe: cross compilers may not add the suffix if given an '-o'
4512 # argument, so we may need to know it at that point already.
4513 # Even if this section looks crufty: it has the advantage of
4514 # actually working.
4515 break;;
4516 * )
4517 break;;
4518 esac
4519 done
4520 test "$ac_cv_exeext" = no && ac_cv_exeext=
4521
4522 else case e in #(
4523 e) ac_file='' ;;
4524 esac
4525 fi
4526 if test -z "$ac_file"
4527 then :
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 printf "%s\n" "no" >&6; }
4530 printf "%s\n" "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4534 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4535 as_fn_error 77 "C compiler cannot create executables
4536 See 'config.log' for more details" "$LINENO" 5; }
4537 else case e in #(
4538 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 printf "%s\n" "yes" >&6; } ;;
4540 esac
4541 fi
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543 printf %s "checking for C compiler default output file name... " >&6; }
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545 printf "%s\n" "$ac_file" >&6; }
4546 ac_exeext=$ac_cv_exeext
4547
4548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4549 ac_clean_files=$ac_clean_files_save
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551 printf %s "checking for suffix of executables... " >&6; }
4552 if { { ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 printf "%s\n" "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }
4563 then :
4564 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4565 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4566 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4567 # 'rm'.
4568 for ac_file in conftest.exe conftest conftest.*; do
4569 test -f "$ac_file" || continue
4570 case $ac_file in
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4573 break;;
4574 * ) break;;
4575 esac
4576 done
4577 else case e in #(
4578 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4581 See 'config.log' for more details" "$LINENO" 5; } ;;
4582 esac
4583 fi
4584 rm -f conftest conftest$ac_cv_exeext
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4586 printf "%s\n" "$ac_cv_exeext" >&6; }
4587
4588 rm -f conftest.$ac_ext
4589 EXEEXT=$ac_cv_exeext
4590 ac_exeext=$EXEEXT
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <stdio.h>
4594 int
4595 main (void)
4596 {
4597 FILE *f = fopen ("conftest.out", "w");
4598 if (!f)
4599 return 1;
4600 return ferror (f) || fclose (f) != 0;
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 ac_clean_files="$ac_clean_files conftest.out"
4607 # Check that the compiler produces executables we can run. If not, either
4608 # the compiler is broken, or we cross compile.
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4610 printf %s "checking whether we are cross compiling... " >&6; }
4611 if test "$cross_compiling" != yes; then
4612 { { ac_try="$ac_link"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618 printf "%s\n" "$ac_try_echo"; } >&5
4619 (eval "$ac_link") 2>&5
4620 ac_status=$?
4621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }
4623 if { ac_try='./conftest$ac_cv_exeext'
4624 { { case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629 printf "%s\n" "$ac_try_echo"; } >&5
4630 (eval "$ac_try") 2>&5
4631 ac_status=$?
4632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633 test $ac_status = 0; }; }; then
4634 cross_compiling=no
4635 else
4636 if test "$cross_compiling" = maybe; then
4637 cross_compiling=yes
4638 else
4639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4640 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4641 as_fn_error 77 "cannot run C compiled programs.
4642 If you meant to cross compile, use '--host'.
4643 See 'config.log' for more details" "$LINENO" 5; }
4644 fi
4645 fi
4646 fi
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4648 printf "%s\n" "$cross_compiling" >&6; }
4649
4650 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4651 conftest.o conftest.obj conftest.out
4652 ac_clean_files=$ac_clean_files_save
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4654 printf %s "checking for suffix of object files... " >&6; }
4655 if test ${ac_cv_objext+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else case e in #(
4659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661
4662 int
4663 main (void)
4664 {
4665
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.o conftest.obj
4671 if { { ac_try="$ac_compile"
4672 case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675 esac
4676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677 printf "%s\n" "$ac_try_echo"; } >&5
4678 (eval "$ac_compile") 2>&5
4679 ac_status=$?
4680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }
4682 then :
4683 for ac_file in conftest.o conftest.obj conftest.*; do
4684 test -f "$ac_file" || continue;
4685 case $ac_file in
4686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4688 break;;
4689 esac
4690 done
4691 else case e in #(
4692 e) printf "%s\n" "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4696 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4697 as_fn_error $? "cannot compute suffix of object files: cannot compile
4698 See 'config.log' for more details" "$LINENO" 5; } ;;
4699 esac
4700 fi
4701 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4702 esac
4703 fi
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4705 printf "%s\n" "$ac_cv_objext" >&6; }
4706 OBJEXT=$ac_cv_objext
4707 ac_objext=$OBJEXT
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4709 printf %s "checking whether the compiler supports GNU C... " >&6; }
4710 if test ${ac_cv_c_compiler_gnu+y}
4711 then :
4712 printf %s "(cached) " >&6
4713 else case e in #(
4714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718 main (void)
4719 {
4720 #ifndef __GNUC__
4721 choke me
4722 #endif
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"
4729 then :
4730 ac_compiler_gnu=yes
4731 else case e in #(
4732 e) ac_compiler_gnu=no ;;
4733 esac
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737 ;;
4738 esac
4739 fi
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4741 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743
4744 if test $ac_compiler_gnu = yes; then
4745 GCC=yes
4746 else
4747 GCC=
4748 fi
4749 ac_test_CFLAGS=${CFLAGS+y}
4750 ac_save_CFLAGS=$CFLAGS
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4752 printf %s "checking whether $CC accepts -g... " >&6; }
4753 if test ${ac_cv_prog_cc_g+y}
4754 then :
4755 printf %s "(cached) " >&6
4756 else case e in #(
4757 e) ac_save_c_werror_flag=$ac_c_werror_flag
4758 ac_c_werror_flag=yes
4759 ac_cv_prog_cc_g=no
4760 CFLAGS="-g"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main (void)
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"
4773 then :
4774 ac_cv_prog_cc_g=yes
4775 else case e in #(
4776 e) CFLAGS=""
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main (void)
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"
4789 then :
4790
4791 else case e in #(
4792 e) ac_c_werror_flag=$ac_save_c_werror_flag
4793 CFLAGS="-g"
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796
4797 int
4798 main (void)
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"
4806 then :
4807 ac_cv_prog_cc_g=yes
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4810 esac
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4813 esac
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4816 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4817 esac
4818 fi
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4820 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4821 if test $ac_test_CFLAGS; then
4822 CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824 if test "$GCC" = yes; then
4825 CFLAGS="-g -O2"
4826 else
4827 CFLAGS="-g"
4828 fi
4829 else
4830 if test "$GCC" = yes; then
4831 CFLAGS="-O2"
4832 else
4833 CFLAGS=
4834 fi
4835 fi
4836 ac_prog_cc_stdc=no
4837 if test x$ac_prog_cc_stdc = xno
4838 then :
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4840 printf %s "checking for $CC option to enable C11 features... " >&6; }
4841 if test ${ac_cv_prog_cc_c11+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else case e in #(
4845 e) ac_cv_prog_cc_c11=no
4846 ac_save_CC=$CC
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 $ac_c_conftest_c11_program
4850 _ACEOF
4851 for ac_arg in '' -std=gnu11
4852 do
4853 CC="$ac_save_CC $ac_arg"
4854 if ac_fn_c_try_compile "$LINENO"
4855 then :
4856 ac_cv_prog_cc_c11=$ac_arg
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.beam
4859 test "x$ac_cv_prog_cc_c11" != "xno" && break
4860 done
4861 rm -f conftest.$ac_ext
4862 CC=$ac_save_CC ;;
4863 esac
4864 fi
4865
4866 if test "x$ac_cv_prog_cc_c11" = xno
4867 then :
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4869 printf "%s\n" "unsupported" >&6; }
4870 else case e in #(
4871 e) if test "x$ac_cv_prog_cc_c11" = x
4872 then :
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4874 printf "%s\n" "none needed" >&6; }
4875 else case e in #(
4876 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4877 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4878 CC="$CC $ac_cv_prog_cc_c11" ;;
4879 esac
4880 fi
4881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4882 ac_prog_cc_stdc=c11 ;;
4883 esac
4884 fi
4885 fi
4886 if test x$ac_prog_cc_stdc = xno
4887 then :
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4889 printf %s "checking for $CC option to enable C99 features... " >&6; }
4890 if test ${ac_cv_prog_cc_c99+y}
4891 then :
4892 printf %s "(cached) " >&6
4893 else case e in #(
4894 e) ac_cv_prog_cc_c99=no
4895 ac_save_CC=$CC
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 $ac_c_conftest_c99_program
4899 _ACEOF
4900 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4901 do
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"
4904 then :
4905 ac_cv_prog_cc_c99=$ac_arg
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam
4908 test "x$ac_cv_prog_cc_c99" != "xno" && break
4909 done
4910 rm -f conftest.$ac_ext
4911 CC=$ac_save_CC ;;
4912 esac
4913 fi
4914
4915 if test "x$ac_cv_prog_cc_c99" = xno
4916 then :
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4918 printf "%s\n" "unsupported" >&6; }
4919 else case e in #(
4920 e) if test "x$ac_cv_prog_cc_c99" = x
4921 then :
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4923 printf "%s\n" "none needed" >&6; }
4924 else case e in #(
4925 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4926 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4927 CC="$CC $ac_cv_prog_cc_c99" ;;
4928 esac
4929 fi
4930 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4931 ac_prog_cc_stdc=c99 ;;
4932 esac
4933 fi
4934 fi
4935 if test x$ac_prog_cc_stdc = xno
4936 then :
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4938 printf %s "checking for $CC option to enable C89 features... " >&6; }
4939 if test ${ac_cv_prog_cc_c89+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else case e in #(
4943 e) ac_cv_prog_cc_c89=no
4944 ac_save_CC=$CC
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 $ac_c_conftest_c89_program
4948 _ACEOF
4949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4950 do
4951 CC="$ac_save_CC $ac_arg"
4952 if ac_fn_c_try_compile "$LINENO"
4953 then :
4954 ac_cv_prog_cc_c89=$ac_arg
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.beam
4957 test "x$ac_cv_prog_cc_c89" != "xno" && break
4958 done
4959 rm -f conftest.$ac_ext
4960 CC=$ac_save_CC ;;
4961 esac
4962 fi
4963
4964 if test "x$ac_cv_prog_cc_c89" = xno
4965 then :
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4967 printf "%s\n" "unsupported" >&6; }
4968 else case e in #(
4969 e) if test "x$ac_cv_prog_cc_c89" = x
4970 then :
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4972 printf "%s\n" "none needed" >&6; }
4973 else case e in #(
4974 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4975 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4976 CC="$CC $ac_cv_prog_cc_c89" ;;
4977 esac
4978 fi
4979 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4980 ac_prog_cc_stdc=c89 ;;
4981 esac
4982 fi
4983 fi
4984
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990
4991
4992 ac_ext=c
4993 ac_cpp='$CPP $CPPFLAGS'
4994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4998 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4999 if test ${am_cv_prog_cc_c_o+y}
5000 then :
5001 printf %s "(cached) " >&6
5002 else case e in #(
5003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005
5006 int
5007 main (void)
5008 {
5009
5010 ;
5011 return 0;
5012 }
5013 _ACEOF
5014 # Make sure it works both with $CC and with simple cc.
5015 # Following AC_PROG_CC_C_O, we do the test twice because some
5016 # compilers refuse to overwrite an existing .o file with -o,
5017 # though they will create one.
5018 am_cv_prog_cc_c_o=yes
5019 for am_i in 1 2; do
5020 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5021 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } \
5025 && test -f conftest2.$ac_objext; then
5026 : OK
5027 else
5028 am_cv_prog_cc_c_o=no
5029 break
5030 fi
5031 done
5032 rm -f core conftest*
5033 unset am_i ;;
5034 esac
5035 fi
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5037 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5038 if test "$am_cv_prog_cc_c_o" != yes; then
5039 # Losing compiler, so override with the script.
5040 # FIXME: It is wrong to rewrite CC.
5041 # But if we don't then we get into trouble of one sort or another.
5042 # A longer-term fix would be to have automake use am__CC in this case,
5043 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5044 CC="$am_aux_dir/compile $CC"
5045 fi
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052
5053 depcc="$CC" am_compiler_list=
5054
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5056 printf %s "checking dependency style of $depcc... " >&6; }
5057 if test ${am_cv_CC_dependencies_compiler_type+y}
5058 then :
5059 printf %s "(cached) " >&6
5060 else case e in #(
5061 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5062 # We make a subdir and do the tests there. Otherwise we can end up
5063 # making bogus files that we don't know about and never remove. For
5064 # instance it was reported that on HP-UX the gcc test will end up
5065 # making a dummy file named 'D' -- because '-MD' means "put the output
5066 # in D".
5067 rm -rf conftest.dir
5068 mkdir conftest.dir
5069 # Copy depcomp to subdir because otherwise we won't find it if we're
5070 # using a relative directory.
5071 cp "$am_depcomp" conftest.dir
5072 cd conftest.dir
5073 # We will build objects and dependencies in a subdirectory because
5074 # it helps to detect inapplicable dependency modes. For instance
5075 # both Tru64's cc and ICC support -MD to output dependencies as a
5076 # side effect of compilation, but ICC will put the dependencies in
5077 # the current directory while Tru64 will put them in the object
5078 # directory.
5079 mkdir sub
5080
5081 am_cv_CC_dependencies_compiler_type=none
5082 if test "$am_compiler_list" = ""; then
5083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5084 fi
5085 am__universal=false
5086 case " $depcc " in #(
5087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5088 esac
5089
5090 for depmode in $am_compiler_list; do
5091 # Setup a source with many dependencies, because some compilers
5092 # like to wrap large dependency lists on column 80 (with \), and
5093 # we should not choose a depcomp mode which is confused by this.
5094 #
5095 # We need to recreate these files for each test, as the compiler may
5096 # overwrite some of them when testing with obscure command lines.
5097 # This happens at least with the AIX C compiler.
5098 : > sub/conftest.c
5099 for i in 1 2 3 4 5 6; do
5100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5101 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5102 # Solaris 10 /bin/sh.
5103 echo '/* dummy */' > sub/conftst$i.h
5104 done
5105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5106
5107 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5108 # mode. It turns out that the SunPro C++ compiler does not properly
5109 # handle '-M -o', and we need to detect this. Also, some Intel
5110 # versions had trouble with output in subdirs.
5111 am__obj=sub/conftest.${OBJEXT-o}
5112 am__minus_obj="-o $am__obj"
5113 case $depmode in
5114 gcc)
5115 # This depmode causes a compiler race in universal mode.
5116 test "$am__universal" = false || continue
5117 ;;
5118 nosideeffect)
5119 # After this tag, mechanisms are not by side-effect, so they'll
5120 # only be used when explicitly requested.
5121 if test "x$enable_dependency_tracking" = xyes; then
5122 continue
5123 else
5124 break
5125 fi
5126 ;;
5127 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5128 # This compiler won't grok '-c -o', but also, the minuso test has
5129 # not run yet. These depmodes are late enough in the game, and
5130 # so weak that their functioning should not be impacted.
5131 am__obj=conftest.${OBJEXT-o}
5132 am__minus_obj=
5133 ;;
5134 none) break ;;
5135 esac
5136 if depmode=$depmode \
5137 source=sub/conftest.c object=$am__obj \
5138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5140 >/dev/null 2>conftest.err &&
5141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5145 # icc doesn't choke on unknown options, it will just issue warnings
5146 # or remarks (even with -Werror). So we grep stderr for any message
5147 # that says an option was ignored or not supported.
5148 # When given -MP, icc 7.0 and 7.1 complain thus:
5149 # icc: Command line warning: ignoring option '-M'; no argument required
5150 # The diagnosis changed in icc 8.0:
5151 # icc: Command line remark: option '-MP' not supported
5152 if (grep 'ignoring option' conftest.err ||
5153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5154 am_cv_CC_dependencies_compiler_type=$depmode
5155 break
5156 fi
5157 fi
5158 done
5159
5160 cd ..
5161 rm -rf conftest.dir
5162 else
5163 am_cv_CC_dependencies_compiler_type=none
5164 fi
5165 ;;
5166 esac
5167 fi
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5169 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5171
5172 if
5173 test "x$enable_dependency_tracking" != xno \
5174 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5175 am__fastdepCC_TRUE=
5176 am__fastdepCC_FALSE='#'
5177 else
5178 am__fastdepCC_TRUE='#'
5179 am__fastdepCC_FALSE=
5180 fi
5181
5182
5183
5184 ac_header= ac_cache=
5185 for ac_item in $ac_header_c_list
5186 do
5187 if test $ac_cache; then
5188 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5189 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5190 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5191 fi
5192 ac_header= ac_cache=
5193 elif test $ac_header; then
5194 ac_cache=$ac_item
5195 else
5196 ac_header=$ac_item
5197 fi
5198 done
5199
5200
5201
5202
5203
5204
5205
5206
5207 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5208 then :
5209
5210 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5211
5212 fi
5213
5214
5215
5216
5217
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5220 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5221 if test ${ac_cv_safe_to_define___extensions__+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else case e in #(
5225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227
5228 # define __EXTENSIONS__ 1
5229 $ac_includes_default
5230 int
5231 main (void)
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"
5239 then :
5240 ac_cv_safe_to_define___extensions__=yes
5241 else case e in #(
5242 e) ac_cv_safe_to_define___extensions__=no ;;
5243 esac
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5246 esac
5247 fi
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5249 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5250
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5252 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5253 if test ${ac_cv_should_define__xopen_source+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else case e in #(
5257 e) ac_cv_should_define__xopen_source=no
5258 if test $ac_cv_header_wchar_h = yes
5259 then :
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262
5263 #include <wchar.h>
5264 mbstate_t x;
5265 int
5266 main (void)
5267 {
5268
5269 ;
5270 return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"
5274 then :
5275
5276 else case e in #(
5277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279
5280 #define _XOPEN_SOURCE 500
5281 #include <wchar.h>
5282 mbstate_t x;
5283 int
5284 main (void)
5285 {
5286
5287 ;
5288 return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_c_try_compile "$LINENO"
5292 then :
5293 ac_cv_should_define__xopen_source=yes
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5296 esac
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5299 fi ;;
5300 esac
5301 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5303 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5304
5305 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5306
5307 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5308
5309 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5310
5311 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5312
5313 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5314
5315 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5316
5317 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5318
5319 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5320
5321 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5322
5323 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5324
5325 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5326
5327 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5328
5329 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5330
5331 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5332
5333 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5334
5335 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5336
5337 if test $ac_cv_header_minix_config_h = yes
5338 then :
5339 MINIX=yes
5340 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5341
5342 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5343
5344 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5345
5346 else case e in #(
5347 e) MINIX= ;;
5348 esac
5349 fi
5350 if test $ac_cv_safe_to_define___extensions__ = yes
5351 then :
5352 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5353
5354 fi
5355 if test $ac_cv_should_define__xopen_source = yes
5356 then :
5357 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5358
5359 fi
5360
5361
5362
5363 ac_config_headers="$ac_config_headers config.h"
5364
5365
5366
5367 AM_DEFAULT_VERBOSITY=0
5368
5369 # define PACKAGE_VERSION_* variables
5370
5371 PACKAGE_VERSION_MAJOR=$(echo 1.10.4 | cut -d'.' -f1)
5372 PACKAGE_VERSION_MINOR=$(echo 1.10.4 | cut -d'.' -f2)
5373 PACKAGE_VERSION_MICRO=$(echo 1.10.4 | cut -d'.' -f3)
5374
5375
5376
5377
5378
5379
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
5381 printf %s "checking nano version... " >&6; }
5382
5383 NANO=$(echo 1.10.4 | cut -d'.' -f4)
5384
5385 if test x"$NANO" = x || test "x$NANO" = "x0" ; then
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
5387 printf "%s\n" "0 (release)" >&6; }
5388 NANO=0
5389 PACKAGE_VERSION_RELEASE=1
5390 :
5391 else
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
5393 printf "%s\n" "$NANO" >&6; }
5394 PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
5395 :
5396 fi
5397 PACKAGE_VERSION_NANO=$NANO
5398
5399
5400
5401
5402 # This check should not be cached, as it may vary across builds of
5403 # different projects.
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5405 printf %s "checking whether build environment is sane... " >&6; }
5406 # Reject unsafe characters in $srcdir or the absolute working directory
5407 # name. Accept space and tab only in the latter.
5408 am_lf='
5409 '
5410 case `pwd` in
5411 *[\\\"\#\$\&\'\`$am_lf]*)
5412 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5413 esac
5414 case $srcdir in
5415 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5416 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5417 esac
5418
5419 # Do 'set' in a subshell so we don't clobber the current shell's
5420 # arguments. Must try -L first in case configure is actually a
5421 # symlink; some systems play weird games with the mod time of symlinks
5422 # (eg FreeBSD returns the mod time of the symlink's containing
5423 # directory).
5424 am_build_env_is_sane=no
5425 am_has_slept=no
5426 rm -f conftest.file
5427 for am_try in 1 2; do
5428 echo "timestamp, slept: $am_has_slept" > conftest.file
5429 if (
5430 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5431 if test "$*" = "X"; then
5432 # -L didn't work.
5433 set X `ls -t "$srcdir/configure" conftest.file`
5434 fi
5435 test "$2" = conftest.file
5436 ); then
5437 am_build_env_is_sane=yes
5438 break
5439 fi
5440 # Just in case.
5441 sleep "$am_cv_filesystem_timestamp_resolution"
5442 am_has_slept=yes
5443 done
5444
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
5446 printf "%s\n" "$am_build_env_is_sane" >&6; }
5447 if test "$am_build_env_is_sane" = no; then
5448 as_fn_error $? "newly created file is older than distributed files!
5449 Check your system clock" "$LINENO" 5
5450 fi
5451
5452 # If we didn't sleep, we still need to ensure time stamps of config.status and
5453 # generated files are strictly newer.
5454 am_sleep_pid=
5455 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
5456 then :
5457
5458 else case e in #(
5459 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
5460 am_sleep_pid=$!
5461 ;;
5462 esac
5463 fi
5464
5465 rm -f conftest.file
5466
5467
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5469 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5470 # Check whether --enable-maintainer-mode was given.
5471 if test ${enable_maintainer_mode+y}
5472 then :
5473 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5474 else case e in #(
5475 e) USE_MAINTAINER_MODE=no ;;
5476 esac
5477 fi
5478
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5480 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
5481 if test $USE_MAINTAINER_MODE = yes; then
5482 MAINTAINER_MODE_TRUE=
5483 MAINTAINER_MODE_FALSE='#'
5484 else
5485 MAINTAINER_MODE_TRUE='#'
5486 MAINTAINER_MODE_FALSE=
5487 fi
5488
5489 MAINT=$MAINTAINER_MODE_TRUE
5490
5491
5492 # Check whether --enable-static was given.
5493 if test ${enable_static+y}
5494 then :
5495 enableval=$enable_static; p=${PACKAGE-default}
5496 case $enableval in
5497 yes) enable_static=yes ;;
5498 no) enable_static=no ;;
5499 *)
5500 enable_static=no
5501 # Look at the argument we got. We use all the common list separators.
5502 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5503 for pkg in $enableval; do
5504 IFS=$lt_save_ifs
5505 if test "X$pkg" = "X$p"; then
5506 enable_static=yes
5507 fi
5508 done
5509 IFS=$lt_save_ifs
5510 ;;
5511 esac
5512 else case e in #(
5513 e) enable_static=no ;;
5514 esac
5515 fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525 ac_ext=c
5526 ac_cpp='$CPP $CPPFLAGS'
5527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 printf %s "checking for $ac_word... " >&6; }
5535 if test ${ac_cv_prog_CC+y}
5536 then :
5537 printf %s "(cached) " >&6
5538 else case e in #(
5539 e) if test -n "$CC"; then
5540 ac_cv_prog_CC="$CC" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 case $as_dir in #(((
5547 '') as_dir=./ ;;
5548 */) ;;
5549 *) as_dir=$as_dir/ ;;
5550 esac
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557 done
5558 done
5559 IFS=$as_save_IFS
5560
5561 fi ;;
5562 esac
5563 fi
5564 CC=$ac_cv_prog_CC
5565 if test -n "$CC"; then
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5567 printf "%s\n" "$CC" >&6; }
5568 else
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 printf "%s\n" "no" >&6; }
5571 fi
5572
5573
5574 fi
5575 if test -z "$ac_cv_prog_CC"; then
5576 ac_ct_CC=$CC
5577 # Extract the first word of "gcc", so it can be a program name with args.
5578 set dummy gcc; ac_word=$2
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 printf %s "checking for $ac_word... " >&6; }
5581 if test ${ac_cv_prog_ac_ct_CC+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else case e in #(
5585 e) if test -n "$ac_ct_CC"; then
5586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 case $as_dir in #(((
5593 '') as_dir=./ ;;
5594 */) ;;
5595 *) as_dir=$as_dir/ ;;
5596 esac
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_CC="gcc"
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi ;;
5608 esac
5609 fi
5610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5611 if test -n "$ac_ct_CC"; then
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5613 printf "%s\n" "$ac_ct_CC" >&6; }
5614 else
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 printf "%s\n" "no" >&6; }
5617 fi
5618
5619 if test "x$ac_ct_CC" = x; then
5620 CC=""
5621 else
5622 case $cross_compiling:$ac_tool_warned in
5623 yes:)
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628 CC=$ac_ct_CC
5629 fi
5630 else
5631 CC="$ac_cv_prog_CC"
5632 fi
5633
5634 if test -z "$CC"; then
5635 if test -n "$ac_tool_prefix"; then
5636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5637 set dummy ${ac_tool_prefix}cc; ac_word=$2
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 printf %s "checking for $ac_word... " >&6; }
5640 if test ${ac_cv_prog_CC+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else case e in #(
5644 e) if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 case $as_dir in #(((
5652 '') as_dir=./ ;;
5653 */) ;;
5654 *) as_dir=$as_dir/ ;;
5655 esac
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_CC="${ac_tool_prefix}cc"
5659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662 done
5663 done
5664 IFS=$as_save_IFS
5665
5666 fi ;;
5667 esac
5668 fi
5669 CC=$ac_cv_prog_CC
5670 if test -n "$CC"; then
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5672 printf "%s\n" "$CC" >&6; }
5673 else
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 printf "%s\n" "no" >&6; }
5676 fi
5677
5678
5679 fi
5680 fi
5681 if test -z "$CC"; then
5682 # Extract the first word of "cc", so it can be a program name with args.
5683 set dummy cc; ac_word=$2
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 printf %s "checking for $ac_word... " >&6; }
5686 if test ${ac_cv_prog_CC+y}
5687 then :
5688 printf %s "(cached) " >&6
5689 else case e in #(
5690 e) if test -n "$CC"; then
5691 ac_cv_prog_CC="$CC" # Let the user override the test.
5692 else
5693 ac_prog_rejected=no
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697 IFS=$as_save_IFS
5698 case $as_dir in #(((
5699 '') as_dir=./ ;;
5700 */) ;;
5701 *) as_dir=$as_dir/ ;;
5702 esac
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5705 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5706 ac_prog_rejected=yes
5707 continue
5708 fi
5709 ac_cv_prog_CC="cc"
5710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 if test $ac_prog_rejected = yes; then
5718 # We found a bogon in the path, so make sure we never use it.
5719 set dummy $ac_cv_prog_CC
5720 shift
5721 if test $# != 0; then
5722 # We chose a different compiler from the bogus one.
5723 # However, it has the same basename, so the bogon will be chosen
5724 # first if we set CC to just the basename; use the full file name.
5725 shift
5726 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5727 fi
5728 fi
5729 fi ;;
5730 esac
5731 fi
5732 CC=$ac_cv_prog_CC
5733 if test -n "$CC"; then
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5735 printf "%s\n" "$CC" >&6; }
5736 else
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 printf "%s\n" "no" >&6; }
5739 fi
5740
5741
5742 fi
5743 if test -z "$CC"; then
5744 if test -n "$ac_tool_prefix"; then
5745 for ac_prog in cl.exe
5746 do
5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 printf %s "checking for $ac_word... " >&6; }
5751 if test ${ac_cv_prog_CC+y}
5752 then :
5753 printf %s "(cached) " >&6
5754 else case e in #(
5755 e) if test -n "$CC"; then
5756 ac_cv_prog_CC="$CC" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761 IFS=$as_save_IFS
5762 case $as_dir in #(((
5763 '') as_dir=./ ;;
5764 */) ;;
5765 *) as_dir=$as_dir/ ;;
5766 esac
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi ;;
5778 esac
5779 fi
5780 CC=$ac_cv_prog_CC
5781 if test -n "$CC"; then
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5783 printf "%s\n" "$CC" >&6; }
5784 else
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 printf "%s\n" "no" >&6; }
5787 fi
5788
5789
5790 test -n "$CC" && break
5791 done
5792 fi
5793 if test -z "$CC"; then
5794 ac_ct_CC=$CC
5795 for ac_prog in cl.exe
5796 do
5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 printf %s "checking for $ac_word... " >&6; }
5801 if test ${ac_cv_prog_ac_ct_CC+y}
5802 then :
5803 printf %s "(cached) " >&6
5804 else case e in #(
5805 e) if test -n "$ac_ct_CC"; then
5806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 case $as_dir in #(((
5813 '') as_dir=./ ;;
5814 */) ;;
5815 *) as_dir=$as_dir/ ;;
5816 esac
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_CC="$ac_prog"
5820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi ;;
5828 esac
5829 fi
5830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5831 if test -n "$ac_ct_CC"; then
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5833 printf "%s\n" "$ac_ct_CC" >&6; }
5834 else
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 printf "%s\n" "no" >&6; }
5837 fi
5838
5839
5840 test -n "$ac_ct_CC" && break
5841 done
5842
5843 if test "x$ac_ct_CC" = x; then
5844 CC=""
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850 ac_tool_warned=yes ;;
5851 esac
5852 CC=$ac_ct_CC
5853 fi
5854 fi
5855
5856 fi
5857 if test -z "$CC"; then
5858 if test -n "$ac_tool_prefix"; then
5859 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5860 set dummy ${ac_tool_prefix}clang; ac_word=$2
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 printf %s "checking for $ac_word... " >&6; }
5863 if test ${ac_cv_prog_CC+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else case e in #(
5867 e) if test -n "$CC"; then
5868 ac_cv_prog_CC="$CC" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 case $as_dir in #(((
5875 '') as_dir=./ ;;
5876 */) ;;
5877 *) as_dir=$as_dir/ ;;
5878 esac
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_CC="${ac_tool_prefix}clang"
5882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi ;;
5890 esac
5891 fi
5892 CC=$ac_cv_prog_CC
5893 if test -n "$CC"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5895 printf "%s\n" "$CC" >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 printf "%s\n" "no" >&6; }
5899 fi
5900
5901
5902 fi
5903 if test -z "$ac_cv_prog_CC"; then
5904 ac_ct_CC=$CC
5905 # Extract the first word of "clang", so it can be a program name with args.
5906 set dummy clang; ac_word=$2
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 printf %s "checking for $ac_word... " >&6; }
5909 if test ${ac_cv_prog_ac_ct_CC+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else case e in #(
5913 e) if test -n "$ac_ct_CC"; then
5914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 case $as_dir in #(((
5921 '') as_dir=./ ;;
5922 */) ;;
5923 *) as_dir=$as_dir/ ;;
5924 esac
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_ac_ct_CC="clang"
5928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi ;;
5936 esac
5937 fi
5938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5939 if test -n "$ac_ct_CC"; then
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5941 printf "%s\n" "$ac_ct_CC" >&6; }
5942 else
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 printf "%s\n" "no" >&6; }
5945 fi
5946
5947 if test "x$ac_ct_CC" = x; then
5948 CC=""
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 CC=$ac_ct_CC
5957 fi
5958 else
5959 CC="$ac_cv_prog_CC"
5960 fi
5961
5962 fi
5963
5964
5965 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5966 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5967 as_fn_error $? "no acceptable C compiler found in \$PATH
5968 See 'config.log' for more details" "$LINENO" 5; }
5969
5970 # Provide some information about the compiler.
5971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5972 set X $ac_compile
5973 ac_compiler=$2
5974 for ac_option in --version -v -V -qversion -version; do
5975 { { ac_try="$ac_compiler $ac_option >&5"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5981 printf "%s\n" "$ac_try_echo"; } >&5
5982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5983 ac_status=$?
5984 if test -s conftest.err; then
5985 sed '10a\
5986 ... rest of stderr output deleted ...
5987 10q' conftest.err >conftest.er1
5988 cat conftest.er1 >&5
5989 fi
5990 rm -f conftest.er1 conftest.err
5991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; }
5993 done
5994
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5996 printf %s "checking whether the compiler supports GNU C... " >&6; }
5997 if test ${ac_cv_c_compiler_gnu+y}
5998 then :
5999 printf %s "(cached) " >&6
6000 else case e in #(
6001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003
6004 int
6005 main (void)
6006 {
6007 #ifndef __GNUC__
6008 choke me
6009 #endif
6010
6011 ;
6012 return 0;
6013 }
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"
6016 then :
6017 ac_compiler_gnu=yes
6018 else case e in #(
6019 e) ac_compiler_gnu=no ;;
6020 esac
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6024 ;;
6025 esac
6026 fi
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6028 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030
6031 if test $ac_compiler_gnu = yes; then
6032 GCC=yes
6033 else
6034 GCC=
6035 fi
6036 ac_test_CFLAGS=${CFLAGS+y}
6037 ac_save_CFLAGS=$CFLAGS
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6039 printf %s "checking whether $CC accepts -g... " >&6; }
6040 if test ${ac_cv_prog_cc_g+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else case e in #(
6044 e) ac_save_c_werror_flag=$ac_c_werror_flag
6045 ac_c_werror_flag=yes
6046 ac_cv_prog_cc_g=no
6047 CFLAGS="-g"
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050
6051 int
6052 main (void)
6053 {
6054
6055 ;
6056 return 0;
6057 }
6058 _ACEOF
6059 if ac_fn_c_try_compile "$LINENO"
6060 then :
6061 ac_cv_prog_cc_g=yes
6062 else case e in #(
6063 e) CFLAGS=""
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066
6067 int
6068 main (void)
6069 {
6070
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 if ac_fn_c_try_compile "$LINENO"
6076 then :
6077
6078 else case e in #(
6079 e) ac_c_werror_flag=$ac_save_c_werror_flag
6080 CFLAGS="-g"
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083
6084 int
6085 main (void)
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"
6093 then :
6094 ac_cv_prog_cc_g=yes
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6097 esac
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6100 esac
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6103 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6104 esac
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6107 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6108 if test $ac_test_CFLAGS; then
6109 CFLAGS=$ac_save_CFLAGS
6110 elif test $ac_cv_prog_cc_g = yes; then
6111 if test "$GCC" = yes; then
6112 CFLAGS="-g -O2"
6113 else
6114 CFLAGS="-g"
6115 fi
6116 else
6117 if test "$GCC" = yes; then
6118 CFLAGS="-O2"
6119 else
6120 CFLAGS=
6121 fi
6122 fi
6123 ac_prog_cc_stdc=no
6124 if test x$ac_prog_cc_stdc = xno
6125 then :
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6127 printf %s "checking for $CC option to enable C11 features... " >&6; }
6128 if test ${ac_cv_prog_cc_c11+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else case e in #(
6132 e) ac_cv_prog_cc_c11=no
6133 ac_save_CC=$CC
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 $ac_c_conftest_c11_program
6137 _ACEOF
6138 for ac_arg in '' -std=gnu11
6139 do
6140 CC="$ac_save_CC $ac_arg"
6141 if ac_fn_c_try_compile "$LINENO"
6142 then :
6143 ac_cv_prog_cc_c11=$ac_arg
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext conftest.beam
6146 test "x$ac_cv_prog_cc_c11" != "xno" && break
6147 done
6148 rm -f conftest.$ac_ext
6149 CC=$ac_save_CC ;;
6150 esac
6151 fi
6152
6153 if test "x$ac_cv_prog_cc_c11" = xno
6154 then :
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6156 printf "%s\n" "unsupported" >&6; }
6157 else case e in #(
6158 e) if test "x$ac_cv_prog_cc_c11" = x
6159 then :
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6161 printf "%s\n" "none needed" >&6; }
6162 else case e in #(
6163 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6164 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6165 CC="$CC $ac_cv_prog_cc_c11" ;;
6166 esac
6167 fi
6168 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6169 ac_prog_cc_stdc=c11 ;;
6170 esac
6171 fi
6172 fi
6173 if test x$ac_prog_cc_stdc = xno
6174 then :
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6176 printf %s "checking for $CC option to enable C99 features... " >&6; }
6177 if test ${ac_cv_prog_cc_c99+y}
6178 then :
6179 printf %s "(cached) " >&6
6180 else case e in #(
6181 e) ac_cv_prog_cc_c99=no
6182 ac_save_CC=$CC
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 $ac_c_conftest_c99_program
6186 _ACEOF
6187 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6188 do
6189 CC="$ac_save_CC $ac_arg"
6190 if ac_fn_c_try_compile "$LINENO"
6191 then :
6192 ac_cv_prog_cc_c99=$ac_arg
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.beam
6195 test "x$ac_cv_prog_cc_c99" != "xno" && break
6196 done
6197 rm -f conftest.$ac_ext
6198 CC=$ac_save_CC ;;
6199 esac
6200 fi
6201
6202 if test "x$ac_cv_prog_cc_c99" = xno
6203 then :
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6205 printf "%s\n" "unsupported" >&6; }
6206 else case e in #(
6207 e) if test "x$ac_cv_prog_cc_c99" = x
6208 then :
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6210 printf "%s\n" "none needed" >&6; }
6211 else case e in #(
6212 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6213 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6214 CC="$CC $ac_cv_prog_cc_c99" ;;
6215 esac
6216 fi
6217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6218 ac_prog_cc_stdc=c99 ;;
6219 esac
6220 fi
6221 fi
6222 if test x$ac_prog_cc_stdc = xno
6223 then :
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6225 printf %s "checking for $CC option to enable C89 features... " >&6; }
6226 if test ${ac_cv_prog_cc_c89+y}
6227 then :
6228 printf %s "(cached) " >&6
6229 else case e in #(
6230 e) ac_cv_prog_cc_c89=no
6231 ac_save_CC=$CC
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 $ac_c_conftest_c89_program
6235 _ACEOF
6236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6237 do
6238 CC="$ac_save_CC $ac_arg"
6239 if ac_fn_c_try_compile "$LINENO"
6240 then :
6241 ac_cv_prog_cc_c89=$ac_arg
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.beam
6244 test "x$ac_cv_prog_cc_c89" != "xno" && break
6245 done
6246 rm -f conftest.$ac_ext
6247 CC=$ac_save_CC ;;
6248 esac
6249 fi
6250
6251 if test "x$ac_cv_prog_cc_c89" = xno
6252 then :
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6254 printf "%s\n" "unsupported" >&6; }
6255 else case e in #(
6256 e) if test "x$ac_cv_prog_cc_c89" = x
6257 then :
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6259 printf "%s\n" "none needed" >&6; }
6260 else case e in #(
6261 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6262 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6263 CC="$CC $ac_cv_prog_cc_c89" ;;
6264 esac
6265 fi
6266 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6267 ac_prog_cc_stdc=c89 ;;
6268 esac
6269 fi
6270 fi
6271
6272 ac_ext=c
6273 ac_cpp='$CPP $CPPFLAGS'
6274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277
6278
6279 ac_ext=c
6280 ac_cpp='$CPP $CPPFLAGS'
6281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6285 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6286 if test ${am_cv_prog_cc_c_o+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else case e in #(
6290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292
6293 int
6294 main (void)
6295 {
6296
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 # Make sure it works both with $CC and with simple cc.
6302 # Following AC_PROG_CC_C_O, we do the test twice because some
6303 # compilers refuse to overwrite an existing .o file with -o,
6304 # though they will create one.
6305 am_cv_prog_cc_c_o=yes
6306 for am_i in 1 2; do
6307 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6308 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } \
6312 && test -f conftest2.$ac_objext; then
6313 : OK
6314 else
6315 am_cv_prog_cc_c_o=no
6316 break
6317 fi
6318 done
6319 rm -f core conftest*
6320 unset am_i ;;
6321 esac
6322 fi
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6324 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6325 if test "$am_cv_prog_cc_c_o" != yes; then
6326 # Losing compiler, so override with the script.
6327 # FIXME: It is wrong to rewrite CC.
6328 # But if we don't then we get into trouble of one sort or another.
6329 # A longer-term fix would be to have automake use am__CC in this case,
6330 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6331 CC="$am_aux_dir/compile $CC"
6332 fi
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339
6340 depcc="$CC" am_compiler_list=
6341
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6343 printf %s "checking dependency style of $depcc... " >&6; }
6344 if test ${am_cv_CC_dependencies_compiler_type+y}
6345 then :
6346 printf %s "(cached) " >&6
6347 else case e in #(
6348 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6349 # We make a subdir and do the tests there. Otherwise we can end up
6350 # making bogus files that we don't know about and never remove. For
6351 # instance it was reported that on HP-UX the gcc test will end up
6352 # making a dummy file named 'D' -- because '-MD' means "put the output
6353 # in D".
6354 rm -rf conftest.dir
6355 mkdir conftest.dir
6356 # Copy depcomp to subdir because otherwise we won't find it if we're
6357 # using a relative directory.
6358 cp "$am_depcomp" conftest.dir
6359 cd conftest.dir
6360 # We will build objects and dependencies in a subdirectory because
6361 # it helps to detect inapplicable dependency modes. For instance
6362 # both Tru64's cc and ICC support -MD to output dependencies as a
6363 # side effect of compilation, but ICC will put the dependencies in
6364 # the current directory while Tru64 will put them in the object
6365 # directory.
6366 mkdir sub
6367
6368 am_cv_CC_dependencies_compiler_type=none
6369 if test "$am_compiler_list" = ""; then
6370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6371 fi
6372 am__universal=false
6373 case " $depcc " in #(
6374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6375 esac
6376
6377 for depmode in $am_compiler_list; do
6378 # Setup a source with many dependencies, because some compilers
6379 # like to wrap large dependency lists on column 80 (with \), and
6380 # we should not choose a depcomp mode which is confused by this.
6381 #
6382 # We need to recreate these files for each test, as the compiler may
6383 # overwrite some of them when testing with obscure command lines.
6384 # This happens at least with the AIX C compiler.
6385 : > sub/conftest.c
6386 for i in 1 2 3 4 5 6; do
6387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6388 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6389 # Solaris 10 /bin/sh.
6390 echo '/* dummy */' > sub/conftst$i.h
6391 done
6392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6393
6394 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6395 # mode. It turns out that the SunPro C++ compiler does not properly
6396 # handle '-M -o', and we need to detect this. Also, some Intel
6397 # versions had trouble with output in subdirs.
6398 am__obj=sub/conftest.${OBJEXT-o}
6399 am__minus_obj="-o $am__obj"
6400 case $depmode in
6401 gcc)
6402 # This depmode causes a compiler race in universal mode.
6403 test "$am__universal" = false || continue
6404 ;;
6405 nosideeffect)
6406 # After this tag, mechanisms are not by side-effect, so they'll
6407 # only be used when explicitly requested.
6408 if test "x$enable_dependency_tracking" = xyes; then
6409 continue
6410 else
6411 break
6412 fi
6413 ;;
6414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6415 # This compiler won't grok '-c -o', but also, the minuso test has
6416 # not run yet. These depmodes are late enough in the game, and
6417 # so weak that their functioning should not be impacted.
6418 am__obj=conftest.${OBJEXT-o}
6419 am__minus_obj=
6420 ;;
6421 none) break ;;
6422 esac
6423 if depmode=$depmode \
6424 source=sub/conftest.c object=$am__obj \
6425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6427 >/dev/null 2>conftest.err &&
6428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6432 # icc doesn't choke on unknown options, it will just issue warnings
6433 # or remarks (even with -Werror). So we grep stderr for any message
6434 # that says an option was ignored or not supported.
6435 # When given -MP, icc 7.0 and 7.1 complain thus:
6436 # icc: Command line warning: ignoring option '-M'; no argument required
6437 # The diagnosis changed in icc 8.0:
6438 # icc: Command line remark: option '-MP' not supported
6439 if (grep 'ignoring option' conftest.err ||
6440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6441 am_cv_CC_dependencies_compiler_type=$depmode
6442 break
6443 fi
6444 fi
6445 done
6446
6447 cd ..
6448 rm -rf conftest.dir
6449 else
6450 am_cv_CC_dependencies_compiler_type=none
6451 fi
6452 ;;
6453 esac
6454 fi
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6456 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6457 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6458
6459 if
6460 test "x$enable_dependency_tracking" != xno \
6461 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6462 am__fastdepCC_TRUE=
6463 am__fastdepCC_FALSE='#'
6464 else
6465 am__fastdepCC_TRUE='#'
6466 am__fastdepCC_FALSE=
6467 fi
6468
6469
6470
6471
6472
6473
6474
6475
6476 ac_ext=cpp
6477 ac_cpp='$CXXCPP $CPPFLAGS'
6478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6481 if test -z "$CXX"; then
6482 if test -n "$CCC"; then
6483 CXX=$CCC
6484 else
6485 if test -n "$ac_tool_prefix"; then
6486 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6487 do
6488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 printf %s "checking for $ac_word... " >&6; }
6492 if test ${ac_cv_prog_CXX+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else case e in #(
6496 e) if test -n "$CXX"; then
6497 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 case $as_dir in #(((
6504 '') as_dir=./ ;;
6505 */) ;;
6506 *) as_dir=$as_dir/ ;;
6507 esac
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514 done
6515 done
6516 IFS=$as_save_IFS
6517
6518 fi ;;
6519 esac
6520 fi
6521 CXX=$ac_cv_prog_CXX
6522 if test -n "$CXX"; then
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6524 printf "%s\n" "$CXX" >&6; }
6525 else
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 printf "%s\n" "no" >&6; }
6528 fi
6529
6530
6531 test -n "$CXX" && break
6532 done
6533 fi
6534 if test -z "$CXX"; then
6535 ac_ct_CXX=$CXX
6536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6537 do
6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 printf %s "checking for $ac_word... " >&6; }
6542 if test ${ac_cv_prog_ac_ct_CXX+y}
6543 then :
6544 printf %s "(cached) " >&6
6545 else case e in #(
6546 e) if test -n "$ac_ct_CXX"; then
6547 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552 IFS=$as_save_IFS
6553 case $as_dir in #(((
6554 '') as_dir=./ ;;
6555 */) ;;
6556 *) as_dir=$as_dir/ ;;
6557 esac
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_ac_ct_CXX="$ac_prog"
6561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi ;;
6569 esac
6570 fi
6571 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6572 if test -n "$ac_ct_CXX"; then
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6574 printf "%s\n" "$ac_ct_CXX" >&6; }
6575 else
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 printf "%s\n" "no" >&6; }
6578 fi
6579
6580
6581 test -n "$ac_ct_CXX" && break
6582 done
6583
6584 if test "x$ac_ct_CXX" = x; then
6585 CXX="g++"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593 CXX=$ac_ct_CXX
6594 fi
6595 fi
6596
6597 fi
6598 fi
6599 # Provide some information about the compiler.
6600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6601 set X $ac_compile
6602 ac_compiler=$2
6603 for ac_option in --version -v -V -qversion; do
6604 { { ac_try="$ac_compiler $ac_option >&5"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6610 printf "%s\n" "$ac_try_echo"; } >&5
6611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6612 ac_status=$?
6613 if test -s conftest.err; then
6614 sed '10a\
6615 ... rest of stderr output deleted ...
6616 10q' conftest.err >conftest.er1
6617 cat conftest.er1 >&5
6618 fi
6619 rm -f conftest.er1 conftest.err
6620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; }
6622 done
6623
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6625 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6626 if test ${ac_cv_cxx_compiler_gnu+y}
6627 then :
6628 printf %s "(cached) " >&6
6629 else case e in #(
6630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632
6633 int
6634 main (void)
6635 {
6636 #ifndef __GNUC__
6637 choke me
6638 #endif
6639
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 if ac_fn_cxx_try_compile "$LINENO"
6645 then :
6646 ac_compiler_gnu=yes
6647 else case e in #(
6648 e) ac_compiler_gnu=no ;;
6649 esac
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6652 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6653 ;;
6654 esac
6655 fi
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6657 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6659
6660 if test $ac_compiler_gnu = yes; then
6661 GXX=yes
6662 else
6663 GXX=
6664 fi
6665 ac_test_CXXFLAGS=${CXXFLAGS+y}
6666 ac_save_CXXFLAGS=$CXXFLAGS
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6668 printf %s "checking whether $CXX accepts -g... " >&6; }
6669 if test ${ac_cv_prog_cxx_g+y}
6670 then :
6671 printf %s "(cached) " >&6
6672 else case e in #(
6673 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6674 ac_cxx_werror_flag=yes
6675 ac_cv_prog_cxx_g=no
6676 CXXFLAGS="-g"
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679
6680 int
6681 main (void)
6682 {
6683
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 if ac_fn_cxx_try_compile "$LINENO"
6689 then :
6690 ac_cv_prog_cxx_g=yes
6691 else case e in #(
6692 e) CXXFLAGS=""
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695
6696 int
6697 main (void)
6698 {
6699
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 if ac_fn_cxx_try_compile "$LINENO"
6705 then :
6706
6707 else case e in #(
6708 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6709 CXXFLAGS="-g"
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712
6713 int
6714 main (void)
6715 {
6716
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_cxx_try_compile "$LINENO"
6722 then :
6723 ac_cv_prog_cxx_g=yes
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6726 esac
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6729 esac
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6733 esac
6734 fi
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6736 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6737 if test $ac_test_CXXFLAGS; then
6738 CXXFLAGS=$ac_save_CXXFLAGS
6739 elif test $ac_cv_prog_cxx_g = yes; then
6740 if test "$GXX" = yes; then
6741 CXXFLAGS="-g -O2"
6742 else
6743 CXXFLAGS="-g"
6744 fi
6745 else
6746 if test "$GXX" = yes; then
6747 CXXFLAGS="-O2"
6748 else
6749 CXXFLAGS=
6750 fi
6751 fi
6752 ac_prog_cxx_stdcxx=no
6753 if test x$ac_prog_cxx_stdcxx = xno
6754 then :
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6756 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6757 if test ${ac_cv_prog_cxx_cxx11+y}
6758 then :
6759 printf %s "(cached) " >&6
6760 else case e in #(
6761 e) ac_cv_prog_cxx_cxx11=no
6762 ac_save_CXX=$CXX
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 $ac_cxx_conftest_cxx11_program
6766 _ACEOF
6767 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6768 do
6769 CXX="$ac_save_CXX $ac_arg"
6770 if ac_fn_cxx_try_compile "$LINENO"
6771 then :
6772 ac_cv_prog_cxx_cxx11=$ac_arg
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.beam
6775 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6776 done
6777 rm -f conftest.$ac_ext
6778 CXX=$ac_save_CXX ;;
6779 esac
6780 fi
6781
6782 if test "x$ac_cv_prog_cxx_cxx11" = xno
6783 then :
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6785 printf "%s\n" "unsupported" >&6; }
6786 else case e in #(
6787 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6788 then :
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6790 printf "%s\n" "none needed" >&6; }
6791 else case e in #(
6792 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6793 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6794 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6795 esac
6796 fi
6797 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6798 ac_prog_cxx_stdcxx=cxx11 ;;
6799 esac
6800 fi
6801 fi
6802 if test x$ac_prog_cxx_stdcxx = xno
6803 then :
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6805 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6806 if test ${ac_cv_prog_cxx_cxx98+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else case e in #(
6810 e) ac_cv_prog_cxx_cxx98=no
6811 ac_save_CXX=$CXX
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 $ac_cxx_conftest_cxx98_program
6815 _ACEOF
6816 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6817 do
6818 CXX="$ac_save_CXX $ac_arg"
6819 if ac_fn_cxx_try_compile "$LINENO"
6820 then :
6821 ac_cv_prog_cxx_cxx98=$ac_arg
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.beam
6824 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6825 done
6826 rm -f conftest.$ac_ext
6827 CXX=$ac_save_CXX ;;
6828 esac
6829 fi
6830
6831 if test "x$ac_cv_prog_cxx_cxx98" = xno
6832 then :
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6834 printf "%s\n" "unsupported" >&6; }
6835 else case e in #(
6836 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6837 then :
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6839 printf "%s\n" "none needed" >&6; }
6840 else case e in #(
6841 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6842 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6843 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6844 esac
6845 fi
6846 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6847 ac_prog_cxx_stdcxx=cxx98 ;;
6848 esac
6849 fi
6850 fi
6851
6852 ac_ext=c
6853 ac_cpp='$CPP $CPPFLAGS'
6854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6857
6858 depcc="$CXX" am_compiler_list=
6859
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6861 printf %s "checking dependency style of $depcc... " >&6; }
6862 if test ${am_cv_CXX_dependencies_compiler_type+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else case e in #(
6866 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6867 # We make a subdir and do the tests there. Otherwise we can end up
6868 # making bogus files that we don't know about and never remove. For
6869 # instance it was reported that on HP-UX the gcc test will end up
6870 # making a dummy file named 'D' -- because '-MD' means "put the output
6871 # in D".
6872 rm -rf conftest.dir
6873 mkdir conftest.dir
6874 # Copy depcomp to subdir because otherwise we won't find it if we're
6875 # using a relative directory.
6876 cp "$am_depcomp" conftest.dir
6877 cd conftest.dir
6878 # We will build objects and dependencies in a subdirectory because
6879 # it helps to detect inapplicable dependency modes. For instance
6880 # both Tru64's cc and ICC support -MD to output dependencies as a
6881 # side effect of compilation, but ICC will put the dependencies in
6882 # the current directory while Tru64 will put them in the object
6883 # directory.
6884 mkdir sub
6885
6886 am_cv_CXX_dependencies_compiler_type=none
6887 if test "$am_compiler_list" = ""; then
6888 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6889 fi
6890 am__universal=false
6891 case " $depcc " in #(
6892 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6893 esac
6894
6895 for depmode in $am_compiler_list; do
6896 # Setup a source with many dependencies, because some compilers
6897 # like to wrap large dependency lists on column 80 (with \), and
6898 # we should not choose a depcomp mode which is confused by this.
6899 #
6900 # We need to recreate these files for each test, as the compiler may
6901 # overwrite some of them when testing with obscure command lines.
6902 # This happens at least with the AIX C compiler.
6903 : > sub/conftest.c
6904 for i in 1 2 3 4 5 6; do
6905 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6906 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6907 # Solaris 10 /bin/sh.
6908 echo '/* dummy */' > sub/conftst$i.h
6909 done
6910 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6911
6912 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6913 # mode. It turns out that the SunPro C++ compiler does not properly
6914 # handle '-M -o', and we need to detect this. Also, some Intel
6915 # versions had trouble with output in subdirs.
6916 am__obj=sub/conftest.${OBJEXT-o}
6917 am__minus_obj="-o $am__obj"
6918 case $depmode in
6919 gcc)
6920 # This depmode causes a compiler race in universal mode.
6921 test "$am__universal" = false || continue
6922 ;;
6923 nosideeffect)
6924 # After this tag, mechanisms are not by side-effect, so they'll
6925 # only be used when explicitly requested.
6926 if test "x$enable_dependency_tracking" = xyes; then
6927 continue
6928 else
6929 break
6930 fi
6931 ;;
6932 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6933 # This compiler won't grok '-c -o', but also, the minuso test has
6934 # not run yet. These depmodes are late enough in the game, and
6935 # so weak that their functioning should not be impacted.
6936 am__obj=conftest.${OBJEXT-o}
6937 am__minus_obj=
6938 ;;
6939 none) break ;;
6940 esac
6941 if depmode=$depmode \
6942 source=sub/conftest.c object=$am__obj \
6943 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6944 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6945 >/dev/null 2>conftest.err &&
6946 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6948 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6950 # icc doesn't choke on unknown options, it will just issue warnings
6951 # or remarks (even with -Werror). So we grep stderr for any message
6952 # that says an option was ignored or not supported.
6953 # When given -MP, icc 7.0 and 7.1 complain thus:
6954 # icc: Command line warning: ignoring option '-M'; no argument required
6955 # The diagnosis changed in icc 8.0:
6956 # icc: Command line remark: option '-MP' not supported
6957 if (grep 'ignoring option' conftest.err ||
6958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6959 am_cv_CXX_dependencies_compiler_type=$depmode
6960 break
6961 fi
6962 fi
6963 done
6964
6965 cd ..
6966 rm -rf conftest.dir
6967 else
6968 am_cv_CXX_dependencies_compiler_type=none
6969 fi
6970 ;;
6971 esac
6972 fi
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6974 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6975 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6976
6977 if
6978 test "x$enable_dependency_tracking" != xno \
6979 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6980 am__fastdepCXX_TRUE=
6981 am__fastdepCXX_FALSE='#'
6982 else
6983 am__fastdepCXX_TRUE='#'
6984 am__fastdepCXX_FALSE=
6985 fi
6986
6987
6988
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6990 printf %s "checking for library containing strerror... " >&6; }
6991 if test ${ac_cv_search_strerror+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else case e in #(
6995 e) ac_func_search_save_LIBS=$LIBS
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998
6999 /* Override any GCC internal prototype to avoid an error.
7000 Use char because int might match the return type of a GCC
7001 builtin and then its argument prototype would still apply.
7002 The 'extern "C"' is for builds by C++ compilers;
7003 although this is not generally supported in C code supporting it here
7004 has little cost and some practical benefit (sr 110532). */
7005 #ifdef __cplusplus
7006 extern "C"
7007 #endif
7008 char strerror (void);
7009 int
7010 main (void)
7011 {
7012 return strerror ();
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 for ac_lib in '' cposix
7018 do
7019 if test -z "$ac_lib"; then
7020 ac_res="none required"
7021 else
7022 ac_res=-l$ac_lib
7023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7024 fi
7025 if ac_fn_c_try_link "$LINENO"
7026 then :
7027 ac_cv_search_strerror=$ac_res
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7030 conftest$ac_exeext
7031 if test ${ac_cv_search_strerror+y}
7032 then :
7033 break
7034 fi
7035 done
7036 if test ${ac_cv_search_strerror+y}
7037 then :
7038
7039 else case e in #(
7040 e) ac_cv_search_strerror=no ;;
7041 esac
7042 fi
7043 rm conftest.$ac_ext
7044 LIBS=$ac_func_search_save_LIBS ;;
7045 esac
7046 fi
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7048 printf "%s\n" "$ac_cv_search_strerror" >&6; }
7049 ac_res=$ac_cv_search_strerror
7050 if test "$ac_res" != no
7051 then :
7052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7053
7054 fi
7055
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7057 printf %s "checking for grep that handles long lines and -e... " >&6; }
7058 if test ${ac_cv_path_GREP+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else case e in #(
7062 e) if test -z "$GREP"; then
7063 ac_path_GREP_found=false
7064 # Loop through the user's path and test for each of PROGNAME-LIST
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7067 do
7068 IFS=$as_save_IFS
7069 case $as_dir in #(((
7070 '') as_dir=./ ;;
7071 */) ;;
7072 *) as_dir=$as_dir/ ;;
7073 esac
7074 for ac_prog in grep ggrep
7075 do
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7078 as_fn_executable_p "$ac_path_GREP" || continue
7079 # Check for GNU ac_path_GREP and select it if it is found.
7080 # Check for GNU $ac_path_GREP
7081 case `"$ac_path_GREP" --version 2>&1` in #(
7082 *GNU*)
7083 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7084 #(
7085 *)
7086 ac_count=0
7087 printf %s 0123456789 >"conftest.in"
7088 while :
7089 do
7090 cat "conftest.in" "conftest.in" >"conftest.tmp"
7091 mv "conftest.tmp" "conftest.in"
7092 cp "conftest.in" "conftest.nl"
7093 printf "%s\n" 'GREP' >> "conftest.nl"
7094 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7096 as_fn_arith $ac_count + 1 && ac_count=$as_val
7097 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7098 # Best one so far, save it but keep looking for a better one
7099 ac_cv_path_GREP="$ac_path_GREP"
7100 ac_path_GREP_max=$ac_count
7101 fi
7102 # 10*(2^10) chars as input seems more than enough
7103 test $ac_count -gt 10 && break
7104 done
7105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7106 esac
7107
7108 $ac_path_GREP_found && break 3
7109 done
7110 done
7111 done
7112 IFS=$as_save_IFS
7113 if test -z "$ac_cv_path_GREP"; then
7114 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7115 fi
7116 else
7117 ac_cv_path_GREP=$GREP
7118 fi
7119 ;;
7120 esac
7121 fi
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7123 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7124 GREP="$ac_cv_path_GREP"
7125
7126
7127 # Autoupdate added the next two lines to ensure that your configure
7128 # script's behavior did not change. They are probably safe to remove.
7129
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7131 printf %s "checking for egrep... " >&6; }
7132 if test ${ac_cv_path_EGREP+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else case e in #(
7136 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7137 then ac_cv_path_EGREP="$GREP -E"
7138 else
7139 if test -z "$EGREP"; then
7140 ac_path_EGREP_found=false
7141 # Loop through the user's path and test for each of PROGNAME-LIST
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7144 do
7145 IFS=$as_save_IFS
7146 case $as_dir in #(((
7147 '') as_dir=./ ;;
7148 */) ;;
7149 *) as_dir=$as_dir/ ;;
7150 esac
7151 for ac_prog in egrep
7152 do
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7155 as_fn_executable_p "$ac_path_EGREP" || continue
7156 # Check for GNU ac_path_EGREP and select it if it is found.
7157 # Check for GNU $ac_path_EGREP
7158 case `"$ac_path_EGREP" --version 2>&1` in #(
7159 *GNU*)
7160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7161 #(
7162 *)
7163 ac_count=0
7164 printf %s 0123456789 >"conftest.in"
7165 while :
7166 do
7167 cat "conftest.in" "conftest.in" >"conftest.tmp"
7168 mv "conftest.tmp" "conftest.in"
7169 cp "conftest.in" "conftest.nl"
7170 printf "%s\n" 'EGREP' >> "conftest.nl"
7171 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7173 as_fn_arith $ac_count + 1 && ac_count=$as_val
7174 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7175 # Best one so far, save it but keep looking for a better one
7176 ac_cv_path_EGREP="$ac_path_EGREP"
7177 ac_path_EGREP_max=$ac_count
7178 fi
7179 # 10*(2^10) chars as input seems more than enough
7180 test $ac_count -gt 10 && break
7181 done
7182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7183 esac
7184
7185 $ac_path_EGREP_found && break 3
7186 done
7187 done
7188 done
7189 IFS=$as_save_IFS
7190 if test -z "$ac_cv_path_EGREP"; then
7191 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7192 fi
7193 else
7194 ac_cv_path_EGREP=$EGREP
7195 fi
7196
7197 fi ;;
7198 esac
7199 fi
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7201 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7202 EGREP="$ac_cv_path_EGREP"
7203
7204 EGREP_TRADITIONAL=$EGREP
7205 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7206
7207
7208 case `pwd` in
7209 *\ * | *\ *)
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7211 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7212 esac
7213
7214
7215
7216 macro_version='2.5.4'
7217 macro_revision='2.5.4'
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232 ltmain=$ac_aux_dir/ltmain.sh
7233
7234
7235
7236 # Make sure we can run config.sub.
7237 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7238 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7239
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7241 printf %s "checking build system type... " >&6; }
7242 if test ${ac_cv_build+y}
7243 then :
7244 printf %s "(cached) " >&6
7245 else case e in #(
7246 e) ac_build_alias=$build_alias
7247 test "x$ac_build_alias" = x &&
7248 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7249 test "x$ac_build_alias" = x &&
7250 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7251 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7252 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7253 ;;
7254 esac
7255 fi
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7257 printf "%s\n" "$ac_cv_build" >&6; }
7258 case $ac_cv_build in
7259 *-*-*) ;;
7260 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7261 esac
7262 build=$ac_cv_build
7263 ac_save_IFS=$IFS; IFS='-'
7264 set x $ac_cv_build
7265 shift
7266 build_cpu=$1
7267 build_vendor=$2
7268 shift; shift
7269 # Remember, the first character of IFS is used to create $*,
7270 # except with old shells:
7271 build_os=$*
7272 IFS=$ac_save_IFS
7273 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7274
7275
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7277 printf %s "checking host system type... " >&6; }
7278 if test ${ac_cv_host+y}
7279 then :
7280 printf %s "(cached) " >&6
7281 else case e in #(
7282 e) if test "x$host_alias" = x; then
7283 ac_cv_host=$ac_cv_build
7284 else
7285 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7286 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7287 fi
7288 ;;
7289 esac
7290 fi
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7292 printf "%s\n" "$ac_cv_host" >&6; }
7293 case $ac_cv_host in
7294 *-*-*) ;;
7295 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7296 esac
7297 host=$ac_cv_host
7298 ac_save_IFS=$IFS; IFS='-'
7299 set x $ac_cv_host
7300 shift
7301 host_cpu=$1
7302 host_vendor=$2
7303 shift; shift
7304 # Remember, the first character of IFS is used to create $*,
7305 # except with old shells:
7306 host_os=$*
7307 IFS=$ac_save_IFS
7308 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7309
7310
7311 # Backslashify metacharacters that are still active within
7312 # double-quoted strings.
7313 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7314
7315 # Same as above, but do not quote variable references.
7316 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7317
7318 # Sed substitution to delay expansion of an escaped shell variable in a
7319 # double_quote_subst'ed string.
7320 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7321
7322 # Sed substitution to delay expansion of an escaped single quote.
7323 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7324
7325 # Sed substitution to avoid accidental globbing in evaled expressions
7326 no_glob_subst='s/\*/\\\*/g'
7327
7328 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7329 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7330 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7331
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7333 printf %s "checking how to print strings... " >&6; }
7334 # Test print first, because it will be a builtin if present.
7335 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7336 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7337 ECHO='print -r --'
7338 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7339 ECHO='printf %s\n'
7340 else
7341 # Use this function as a fallback that always works.
7342 func_fallback_echo ()
7343 {
7344 eval 'cat <<_LTECHO_EOF
7345 $1
7346 _LTECHO_EOF'
7347 }
7348 ECHO='func_fallback_echo'
7349 fi
7350
7351 # func_echo_all arg...
7352 # Invoke $ECHO with all args, space-separated.
7353 func_echo_all ()
7354 {
7355 $ECHO ""
7356 }
7357
7358 case $ECHO in
7359 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7360 printf "%s\n" "printf" >&6; } ;;
7361 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7362 printf "%s\n" "print -r" >&6; } ;;
7363 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7364 printf "%s\n" "cat" >&6; } ;;
7365 esac
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7381 printf %s "checking for a sed that does not truncate output... " >&6; }
7382 if test ${ac_cv_path_SED+y}
7383 then :
7384 printf %s "(cached) " >&6
7385 else case e in #(
7386 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7387 for ac_i in 1 2 3 4 5 6 7; do
7388 ac_script="$ac_script$as_nl$ac_script"
7389 done
7390 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7391 { ac_script=; unset ac_script;}
7392 if test -z "$SED"; then
7393 ac_path_SED_found=false
7394 # Loop through the user's path and test for each of PROGNAME-LIST
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398 IFS=$as_save_IFS
7399 case $as_dir in #(((
7400 '') as_dir=./ ;;
7401 */) ;;
7402 *) as_dir=$as_dir/ ;;
7403 esac
7404 for ac_prog in sed gsed
7405 do
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7408 as_fn_executable_p "$ac_path_SED" || continue
7409 # Check for GNU ac_path_SED and select it if it is found.
7410 # Check for GNU $ac_path_SED
7411 case `"$ac_path_SED" --version 2>&1` in #(
7412 *GNU*)
7413 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7414 #(
7415 *)
7416 ac_count=0
7417 printf %s 0123456789 >"conftest.in"
7418 while :
7419 do
7420 cat "conftest.in" "conftest.in" >"conftest.tmp"
7421 mv "conftest.tmp" "conftest.in"
7422 cp "conftest.in" "conftest.nl"
7423 printf "%s\n" '' >> "conftest.nl"
7424 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7426 as_fn_arith $ac_count + 1 && ac_count=$as_val
7427 if test $ac_count -gt ${ac_path_SED_max-0}; then
7428 # Best one so far, save it but keep looking for a better one
7429 ac_cv_path_SED="$ac_path_SED"
7430 ac_path_SED_max=$ac_count
7431 fi
7432 # 10*(2^10) chars as input seems more than enough
7433 test $ac_count -gt 10 && break
7434 done
7435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7436 esac
7437
7438 $ac_path_SED_found && break 3
7439 done
7440 done
7441 done
7442 IFS=$as_save_IFS
7443 if test -z "$ac_cv_path_SED"; then
7444 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7445 fi
7446 else
7447 ac_cv_path_SED=$SED
7448 fi
7449 ;;
7450 esac
7451 fi
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7453 printf "%s\n" "$ac_cv_path_SED" >&6; }
7454 SED="$ac_cv_path_SED"
7455 rm -f conftest.sed
7456
7457 test -z "$SED" && SED=sed
7458 Xsed="$SED -e 1s/^X//"
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7471 printf %s "checking for fgrep... " >&6; }
7472 if test ${ac_cv_path_FGREP+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else case e in #(
7476 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7477 then ac_cv_path_FGREP="$GREP -F"
7478 else
7479 if test -z "$FGREP"; then
7480 ac_path_FGREP_found=false
7481 # Loop through the user's path and test for each of PROGNAME-LIST
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7484 do
7485 IFS=$as_save_IFS
7486 case $as_dir in #(((
7487 '') as_dir=./ ;;
7488 */) ;;
7489 *) as_dir=$as_dir/ ;;
7490 esac
7491 for ac_prog in fgrep
7492 do
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7495 as_fn_executable_p "$ac_path_FGREP" || continue
7496 # Check for GNU ac_path_FGREP and select it if it is found.
7497 # Check for GNU $ac_path_FGREP
7498 case `"$ac_path_FGREP" --version 2>&1` in #(
7499 *GNU*)
7500 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7501 #(
7502 *)
7503 ac_count=0
7504 printf %s 0123456789 >"conftest.in"
7505 while :
7506 do
7507 cat "conftest.in" "conftest.in" >"conftest.tmp"
7508 mv "conftest.tmp" "conftest.in"
7509 cp "conftest.in" "conftest.nl"
7510 printf "%s\n" 'FGREP' >> "conftest.nl"
7511 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7513 as_fn_arith $ac_count + 1 && ac_count=$as_val
7514 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7515 # Best one so far, save it but keep looking for a better one
7516 ac_cv_path_FGREP="$ac_path_FGREP"
7517 ac_path_FGREP_max=$ac_count
7518 fi
7519 # 10*(2^10) chars as input seems more than enough
7520 test $ac_count -gt 10 && break
7521 done
7522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7523 esac
7524
7525 $ac_path_FGREP_found && break 3
7526 done
7527 done
7528 done
7529 IFS=$as_save_IFS
7530 if test -z "$ac_cv_path_FGREP"; then
7531 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7532 fi
7533 else
7534 ac_cv_path_FGREP=$FGREP
7535 fi
7536
7537 fi ;;
7538 esac
7539 fi
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7541 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7542 FGREP="$ac_cv_path_FGREP"
7543
7544
7545 test -z "$GREP" && GREP=grep
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 # Check whether --with-gnu-ld was given.
7566 if test ${with_gnu_ld+y}
7567 then :
7568 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7569 else case e in #(
7570 e) with_gnu_ld=no ;;
7571 esac
7572 fi
7573
7574 ac_prog=ld
7575 if test yes = "$GCC"; then
7576 # Check if gcc -print-prog-name=ld gives a path.
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7578 printf %s "checking for ld used by $CC... " >&6; }
7579 case $host in
7580 *-*-mingw* | *-*-windows*)
7581 # gcc leaves a trailing carriage return, which upsets mingw
7582 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7583 *)
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7585 esac
7586 case $ac_prog in
7587 # Accept absolute paths.
7588 [\\/]* | ?:[\\/]*)
7589 re_direlt='/[^/][^/]*/\.\./'
7590 # Canonicalize the pathname of ld
7591 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7592 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7593 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7594 done
7595 test -z "$LD" && LD=$ac_prog
7596 ;;
7597 "")
7598 # If it fails, then pretend we aren't using GCC.
7599 ac_prog=ld
7600 ;;
7601 *)
7602 # If it is relative, then search for the first ld in PATH.
7603 with_gnu_ld=unknown
7604 ;;
7605 esac
7606 elif test yes = "$with_gnu_ld"; then
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7608 printf %s "checking for GNU ld... " >&6; }
7609 else
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7611 printf %s "checking for non-GNU ld... " >&6; }
7612 fi
7613 if test ${lt_cv_path_LD+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else case e in #(
7617 e) if test -z "$LD"; then
7618 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7619 for ac_dir in $PATH; do
7620 IFS=$lt_save_ifs
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7623 lt_cv_path_LD=$ac_dir/$ac_prog
7624 # Check to see if the program is GNU ld. I'd rather use --version,
7625 # but apparently some variants of GNU ld only accept -v.
7626 # Break only if it was the GNU/non-GNU ld that we prefer.
7627 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7628 *GNU* | *'with BFD'*)
7629 test no != "$with_gnu_ld" && break
7630 ;;
7631 *)
7632 test yes != "$with_gnu_ld" && break
7633 ;;
7634 esac
7635 fi
7636 done
7637 IFS=$lt_save_ifs
7638 else
7639 lt_cv_path_LD=$LD # Let the user override the test with a path.
7640 fi ;;
7641 esac
7642 fi
7643
7644 LD=$lt_cv_path_LD
7645 if test -n "$LD"; then
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647 printf "%s\n" "$LD" >&6; }
7648 else
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 printf "%s\n" "no" >&6; }
7651 fi
7652 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7654 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7655 if test ${lt_cv_prog_gnu_ld+y}
7656 then :
7657 printf %s "(cached) " >&6
7658 else case e in #(
7659 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7660 case `$LD -v 2>&1 </dev/null` in
7661 *GNU* | *'with BFD'*)
7662 lt_cv_prog_gnu_ld=yes
7663 ;;
7664 *)
7665 lt_cv_prog_gnu_ld=no
7666 ;;
7667 esac ;;
7668 esac
7669 fi
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7671 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7672 with_gnu_ld=$lt_cv_prog_gnu_ld
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7683 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7684 if test ${lt_cv_path_NM+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else case e in #(
7688 e) if test -n "$NM"; then
7689 # Let the user override the test.
7690 lt_cv_path_NM=$NM
7691 else
7692 lt_nm_to_check=${ac_tool_prefix}nm
7693 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7694 lt_nm_to_check="$lt_nm_to_check nm"
7695 fi
7696 for lt_tmp_nm in $lt_nm_to_check; do
7697 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7698 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7699 IFS=$lt_save_ifs
7700 test -z "$ac_dir" && ac_dir=.
7701 tmp_nm=$ac_dir/$lt_tmp_nm
7702 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7703 # Check to see if the nm accepts a BSD-compat flag.
7704 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7705 # nm: unknown option "B" ignored
7706 # Tru64's nm complains that /dev/null is an invalid object file
7707 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7708 case $build_os in
7709 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7710 *) lt_bad_file=/dev/null ;;
7711 esac
7712 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7713 *$lt_bad_file* | *'Invalid file or object type'*)
7714 lt_cv_path_NM="$tmp_nm -B"
7715 break 2
7716 ;;
7717 *)
7718 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7719 */dev/null*)
7720 lt_cv_path_NM="$tmp_nm -p"
7721 break 2
7722 ;;
7723 *)
7724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7725 continue # so that we can try to find one that supports BSD flags
7726 ;;
7727 esac
7728 ;;
7729 esac
7730 fi
7731 done
7732 IFS=$lt_save_ifs
7733 done
7734 : ${lt_cv_path_NM=no}
7735 fi ;;
7736 esac
7737 fi
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7739 printf "%s\n" "$lt_cv_path_NM" >&6; }
7740 if test no != "$lt_cv_path_NM"; then
7741 NM=$lt_cv_path_NM
7742 else
7743 # Didn't find any BSD compatible name lister, look for dumpbin.
7744 if test -n "$DUMPBIN"; then :
7745 # Let the user override the test.
7746 else
7747 if test -n "$ac_tool_prefix"; then
7748 for ac_prog in dumpbin "link -dump"
7749 do
7750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 printf %s "checking for $ac_word... " >&6; }
7754 if test ${ac_cv_prog_DUMPBIN+y}
7755 then :
7756 printf %s "(cached) " >&6
7757 else case e in #(
7758 e) if test -n "$DUMPBIN"; then
7759 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 case $as_dir in #(((
7766 '') as_dir=./ ;;
7767 */) ;;
7768 *) as_dir=$as_dir/ ;;
7769 esac
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 fi ;;
7781 esac
7782 fi
7783 DUMPBIN=$ac_cv_prog_DUMPBIN
7784 if test -n "$DUMPBIN"; then
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7786 printf "%s\n" "$DUMPBIN" >&6; }
7787 else
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 printf "%s\n" "no" >&6; }
7790 fi
7791
7792
7793 test -n "$DUMPBIN" && break
7794 done
7795 fi
7796 if test -z "$DUMPBIN"; then
7797 ac_ct_DUMPBIN=$DUMPBIN
7798 for ac_prog in dumpbin "link -dump"
7799 do
7800 # Extract the first word of "$ac_prog", so it can be a program name with args.
7801 set dummy $ac_prog; ac_word=$2
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 printf %s "checking for $ac_word... " >&6; }
7804 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else case e in #(
7808 e) if test -n "$ac_ct_DUMPBIN"; then
7809 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 case $as_dir in #(((
7816 '') as_dir=./ ;;
7817 */) ;;
7818 *) as_dir=$as_dir/ ;;
7819 esac
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi ;;
7831 esac
7832 fi
7833 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7834 if test -n "$ac_ct_DUMPBIN"; then
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7836 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7837 else
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 printf "%s\n" "no" >&6; }
7840 fi
7841
7842
7843 test -n "$ac_ct_DUMPBIN" && break
7844 done
7845
7846 if test "x$ac_ct_DUMPBIN" = x; then
7847 DUMPBIN=":"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850 yes:)
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 DUMPBIN=$ac_ct_DUMPBIN
7856 fi
7857 fi
7858
7859 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7860 *COFF*)
7861 DUMPBIN="$DUMPBIN -symbols -headers"
7862 ;;
7863 *)
7864 DUMPBIN=:
7865 ;;
7866 esac
7867 fi
7868
7869 if test : != "$DUMPBIN"; then
7870 NM=$DUMPBIN
7871 fi
7872 fi
7873 test -z "$NM" && NM=nm
7874
7875
7876
7877
7878
7879
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7881 printf %s "checking the name lister ($NM) interface... " >&6; }
7882 if test ${lt_cv_nm_interface+y}
7883 then :
7884 printf %s "(cached) " >&6
7885 else case e in #(
7886 e) lt_cv_nm_interface="BSD nm"
7887 echo "int some_variable = 0;" > conftest.$ac_ext
7888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7889 (eval "$ac_compile" 2>conftest.err)
7890 cat conftest.err >&5
7891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7893 cat conftest.err >&5
7894 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7895 cat conftest.out >&5
7896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7897 lt_cv_nm_interface="MS dumpbin"
7898 fi
7899 rm -f conftest* ;;
7900 esac
7901 fi
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7903 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7904
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7906 printf %s "checking whether ln -s works... " >&6; }
7907 LN_S=$as_ln_s
7908 if test "$LN_S" = "ln -s"; then
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910 printf "%s\n" "yes" >&6; }
7911 else
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7913 printf "%s\n" "no, using $LN_S" >&6; }
7914 fi
7915
7916 # find the maximum length of command line arguments
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7918 printf %s "checking the maximum length of command line arguments... " >&6; }
7919 if test ${lt_cv_sys_max_cmd_len+y}
7920 then :
7921 printf %s "(cached) " >&6
7922 else case e in #(
7923 e) i=0
7924 teststring=ABCD
7925
7926 case $build_os in
7927 msdosdjgpp*)
7928 # On DJGPP, this test can blow up pretty badly due to problems in libc
7929 # (any single argument exceeding 2000 bytes causes a buffer overrun
7930 # during glob expansion). Even if it were fixed, the result of this
7931 # check would be larger than it should be.
7932 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7933 ;;
7934
7935 gnu* | ironclad*)
7936 # Under GNU Hurd and Ironclad, this test is not required because there
7937 # is no limit to the length of command line arguments.
7938 # Libtool will interpret -1 as no limit whatsoever
7939 lt_cv_sys_max_cmd_len=-1;
7940 ;;
7941
7942 cygwin* | mingw* | windows* | cegcc*)
7943 # On Win9x/ME, this test blows up -- it succeeds, but takes
7944 # about 5 minutes as the teststring grows exponentially.
7945 # Worse, since 9x/ME are not pre-emptively multitasking,
7946 # you end up with a "frozen" computer, even though with patience
7947 # the test eventually succeeds (with a max line length of 256k).
7948 # Instead, let's just punt: use the minimum linelength reported by
7949 # all of the supported platforms: 8192 (on NT/2K/XP).
7950 lt_cv_sys_max_cmd_len=8192;
7951 ;;
7952
7953 mint*)
7954 # On MiNT this can take a long time and run out of memory.
7955 lt_cv_sys_max_cmd_len=8192;
7956 ;;
7957
7958 amigaos*)
7959 # On AmigaOS with pdksh, this test takes hours, literally.
7960 # So we just punt and use a minimum line length of 8192.
7961 lt_cv_sys_max_cmd_len=8192;
7962 ;;
7963
7964 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7965 # This has been around since 386BSD, at least. Likely further.
7966 if test -x /sbin/sysctl; then
7967 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7968 elif test -x /usr/sbin/sysctl; then
7969 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7970 else
7971 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7972 fi
7973 # And add a safety zone
7974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7976 ;;
7977
7978 interix*)
7979 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7980 lt_cv_sys_max_cmd_len=196608
7981 ;;
7982
7983 os2*)
7984 # The test takes a long time on OS/2.
7985 lt_cv_sys_max_cmd_len=8192
7986 ;;
7987
7988 osf*)
7989 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7990 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7991 # nice to cause kernel panics so lets avoid the loop below.
7992 # First set a reasonable default.
7993 lt_cv_sys_max_cmd_len=16384
7994 #
7995 if test -x /sbin/sysconfig; then
7996 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7997 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7998 esac
7999 fi
8000 ;;
8001 sco3.2v5*)
8002 lt_cv_sys_max_cmd_len=102400
8003 ;;
8004 sysv5* | sco5v6* | sysv4.2uw2*)
8005 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8006 if test -n "$kargmax"; then
8007 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8008 else
8009 lt_cv_sys_max_cmd_len=32768
8010 fi
8011 ;;
8012 *)
8013 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8014 if test -n "$lt_cv_sys_max_cmd_len" && \
8015 test undefined != "$lt_cv_sys_max_cmd_len"; then
8016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8018 else
8019 # Make teststring a little bigger before we do anything with it.
8020 # a 1K string should be a reasonable start.
8021 for i in 1 2 3 4 5 6 7 8; do
8022 teststring=$teststring$teststring
8023 done
8024 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8025 # If test is not a shell built-in, we'll probably end up computing a
8026 # maximum length that is only half of the actual maximum length, but
8027 # we can't tell.
8028 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8029 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8030 test 17 != "$i" # 1/2 MB should be enough
8031 do
8032 i=`expr $i + 1`
8033 teststring=$teststring$teststring
8034 done
8035 # Only check the string length outside the loop.
8036 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8037 teststring=
8038 # Add a significant safety factor because C++ compilers can tack on
8039 # massive amounts of additional arguments before passing them to the
8040 # linker. It appears as though 1/2 is a usable value.
8041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8042 fi
8043 ;;
8044 esac
8045 ;;
8046 esac
8047 fi
8048
8049 if test -n "$lt_cv_sys_max_cmd_len"; then
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8051 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8052 else
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8054 printf "%s\n" "none" >&6; }
8055 fi
8056 max_cmd_len=$lt_cv_sys_max_cmd_len
8057
8058
8059
8060
8061
8062
8063 : ${CP="cp -f"}
8064 : ${MV="mv -f"}
8065 : ${RM="rm -f"}
8066
8067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8068 lt_unset=unset
8069 else
8070 lt_unset=false
8071 fi
8072
8073
8074
8075
8076
8077 # test EBCDIC or ASCII
8078 case `echo X|tr X '\101'` in
8079 A) # ASCII based system
8080 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8081 lt_SP2NL='tr \040 \012'
8082 lt_NL2SP='tr \015\012 \040\040'
8083 ;;
8084 *) # EBCDIC based system
8085 lt_SP2NL='tr \100 \n'
8086 lt_NL2SP='tr \r\n \100\100'
8087 ;;
8088 esac
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8099 printf %s "checking how to convert $build file names to $host format... " >&6; }
8100 if test ${lt_cv_to_host_file_cmd+y}
8101 then :
8102 printf %s "(cached) " >&6
8103 else case e in #(
8104 e) case $host in
8105 *-*-mingw* )
8106 case $build in
8107 *-*-mingw* | *-*-windows* ) # actually msys
8108 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8109 ;;
8110 *-*-cygwin* )
8111 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8112 ;;
8113 * ) # otherwise, assume *nix
8114 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8115 ;;
8116 esac
8117 ;;
8118 *-*-cygwin* )
8119 case $build in
8120 *-*-mingw* | *-*-windows* ) # actually msys
8121 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8122 ;;
8123 *-*-cygwin* )
8124 lt_cv_to_host_file_cmd=func_convert_file_noop
8125 ;;
8126 * ) # otherwise, assume *nix
8127 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8128 ;;
8129 esac
8130 ;;
8131 * ) # unhandled hosts (and "normal" native builds)
8132 lt_cv_to_host_file_cmd=func_convert_file_noop
8133 ;;
8134 esac
8135 ;;
8136 esac
8137 fi
8138
8139 to_host_file_cmd=$lt_cv_to_host_file_cmd
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8141 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8142
8143
8144
8145
8146
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8148 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8149 if test ${lt_cv_to_tool_file_cmd+y}
8150 then :
8151 printf %s "(cached) " >&6
8152 else case e in #(
8153 e) #assume ordinary cross tools, or native build.
8154 lt_cv_to_tool_file_cmd=func_convert_file_noop
8155 case $host in
8156 *-*-mingw* | *-*-windows* )
8157 case $build in
8158 *-*-mingw* | *-*-windows* ) # actually msys
8159 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8160 ;;
8161 esac
8162 ;;
8163 esac
8164 ;;
8165 esac
8166 fi
8167
8168 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8170 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8171
8172
8173
8174
8175
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8177 printf %s "checking for $LD option to reload object files... " >&6; }
8178 if test ${lt_cv_ld_reload_flag+y}
8179 then :
8180 printf %s "(cached) " >&6
8181 else case e in #(
8182 e) lt_cv_ld_reload_flag='-r' ;;
8183 esac
8184 fi
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8186 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8187 reload_flag=$lt_cv_ld_reload_flag
8188 case $reload_flag in
8189 "" | " "*) ;;
8190 *) reload_flag=" $reload_flag" ;;
8191 esac
8192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8193 case $host_os in
8194 cygwin* | mingw* | windows* | pw32* | cegcc*)
8195 if test yes != "$GCC"; then
8196 reload_cmds=false
8197 fi
8198 ;;
8199 darwin*)
8200 if test yes = "$GCC"; then
8201 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8202 else
8203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8204 fi
8205 ;;
8206 esac
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 # Extract the first word of "file", so it can be a program name with args.
8217 set dummy file; ac_word=$2
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 printf %s "checking for $ac_word... " >&6; }
8220 if test ${ac_cv_prog_FILECMD+y}
8221 then :
8222 printf %s "(cached) " >&6
8223 else case e in #(
8224 e) if test -n "$FILECMD"; then
8225 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 case $as_dir in #(((
8232 '') as_dir=./ ;;
8233 */) ;;
8234 *) as_dir=$as_dir/ ;;
8235 esac
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_FILECMD="file"
8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8247 fi ;;
8248 esac
8249 fi
8250 FILECMD=$ac_cv_prog_FILECMD
8251 if test -n "$FILECMD"; then
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8253 printf "%s\n" "$FILECMD" >&6; }
8254 else
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 printf "%s\n" "no" >&6; }
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 printf %s "checking for $ac_word... " >&6; }
8271 if test ${ac_cv_prog_OBJDUMP+y}
8272 then :
8273 printf %s "(cached) " >&6
8274 else case e in #(
8275 e) if test -n "$OBJDUMP"; then
8276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 case $as_dir in #(((
8283 '') as_dir=./ ;;
8284 */) ;;
8285 *) as_dir=$as_dir/ ;;
8286 esac
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297 fi ;;
8298 esac
8299 fi
8300 OBJDUMP=$ac_cv_prog_OBJDUMP
8301 if test -n "$OBJDUMP"; then
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8303 printf "%s\n" "$OBJDUMP" >&6; }
8304 else
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 printf "%s\n" "no" >&6; }
8307 fi
8308
8309
8310 fi
8311 if test -z "$ac_cv_prog_OBJDUMP"; then
8312 ac_ct_OBJDUMP=$OBJDUMP
8313 # Extract the first word of "objdump", so it can be a program name with args.
8314 set dummy objdump; ac_word=$2
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 printf %s "checking for $ac_word... " >&6; }
8317 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8318 then :
8319 printf %s "(cached) " >&6
8320 else case e in #(
8321 e) if test -n "$ac_ct_OBJDUMP"; then
8322 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327 IFS=$as_save_IFS
8328 case $as_dir in #(((
8329 '') as_dir=./ ;;
8330 */) ;;
8331 *) as_dir=$as_dir/ ;;
8332 esac
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8335 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339 done
8340 done
8341 IFS=$as_save_IFS
8342
8343 fi ;;
8344 esac
8345 fi
8346 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8347 if test -n "$ac_ct_OBJDUMP"; then
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8349 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8350 else
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 printf "%s\n" "no" >&6; }
8353 fi
8354
8355 if test "x$ac_ct_OBJDUMP" = x; then
8356 OBJDUMP="false"
8357 else
8358 case $cross_compiling:$ac_tool_warned in
8359 yes:)
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8361 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8362 ac_tool_warned=yes ;;
8363 esac
8364 OBJDUMP=$ac_ct_OBJDUMP
8365 fi
8366 else
8367 OBJDUMP="$ac_cv_prog_OBJDUMP"
8368 fi
8369
8370 test -z "$OBJDUMP" && OBJDUMP=objdump
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8381 printf %s "checking how to recognize dependent libraries... " >&6; }
8382 if test ${lt_cv_deplibs_check_method+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else case e in #(
8386 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8387 lt_cv_file_magic_test_file=
8388 lt_cv_deplibs_check_method='unknown'
8389 # Need to set the preceding variable on all platforms that support
8390 # interlibrary dependencies.
8391 # 'none' -- dependencies not supported.
8392 # 'unknown' -- same as none, but documents that we really don't know.
8393 # 'pass_all' -- all dependencies passed with no checks.
8394 # 'file_magic [[regex]]' -- check by looking for files in library path
8395 # that responds to the $file_magic_cmd with a given extended regex.
8396 # If you have 'file' or equivalent on your system and you're not sure
8397 # whether 'pass_all' will *always* work, you probably want this one.
8398
8399 case $host_os in
8400 aix[4-9]*)
8401 lt_cv_deplibs_check_method=pass_all
8402 ;;
8403
8404 beos*)
8405 lt_cv_deplibs_check_method=pass_all
8406 ;;
8407
8408 bsdi[45]*)
8409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8410 lt_cv_file_magic_cmd='$FILECMD -L'
8411 lt_cv_file_magic_test_file=/shlib/libc.so
8412 ;;
8413
8414 cygwin*)
8415 # func_win32_libid is a shell function defined in ltmain.sh
8416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8417 lt_cv_file_magic_cmd='func_win32_libid'
8418 ;;
8419
8420 mingw* | windows* | pw32*)
8421 # Base MSYS/MinGW do not provide the 'file' command needed by
8422 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8423 # unless we find 'file', for example because we are cross-compiling.
8424 if ( file / ) >/dev/null 2>&1; then
8425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8426 lt_cv_file_magic_cmd='func_win32_libid'
8427 else
8428 # Keep this pattern in sync with the one in func_win32_libid.
8429 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8430 lt_cv_file_magic_cmd='$OBJDUMP -f'
8431 fi
8432 ;;
8433
8434 cegcc*)
8435 # use the weaker test based on 'objdump'. See mingw*.
8436 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8437 lt_cv_file_magic_cmd='$OBJDUMP -f'
8438 ;;
8439
8440 darwin* | rhapsody*)
8441 lt_cv_deplibs_check_method=pass_all
8442 ;;
8443
8444 freebsd* | dragonfly* | midnightbsd*)
8445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8446 case $host_cpu in
8447 i*86 )
8448 # Not sure whether the presence of OpenBSD here was a mistake.
8449 # Let's accept both of them until this is cleared up.
8450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8451 lt_cv_file_magic_cmd=$FILECMD
8452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8453 ;;
8454 esac
8455 else
8456 lt_cv_deplibs_check_method=pass_all
8457 fi
8458 ;;
8459
8460 haiku*)
8461 lt_cv_deplibs_check_method=pass_all
8462 ;;
8463
8464 hpux10.20* | hpux11*)
8465 lt_cv_file_magic_cmd=$FILECMD
8466 case $host_cpu in
8467 ia64*)
8468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8470 ;;
8471 hppa*64*)
8472 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]'
8473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8474 ;;
8475 *)
8476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8478 ;;
8479 esac
8480 ;;
8481
8482 interix[3-9]*)
8483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8485 ;;
8486
8487 irix5* | irix6* | nonstopux*)
8488 case $LD in
8489 *-32|*"-32 ") libmagic=32-bit;;
8490 *-n32|*"-n32 ") libmagic=N32;;
8491 *-64|*"-64 ") libmagic=64-bit;;
8492 *) libmagic=never-match;;
8493 esac
8494 lt_cv_deplibs_check_method=pass_all
8495 ;;
8496
8497 # This must be glibc/ELF.
8498 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8499 lt_cv_deplibs_check_method=pass_all
8500 ;;
8501
8502 *-mlibc)
8503 lt_cv_deplibs_check_method=pass_all
8504 ;;
8505
8506 netbsd* | netbsdelf*-gnu)
8507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8509 else
8510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8511 fi
8512 ;;
8513
8514 newos6*)
8515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8516 lt_cv_file_magic_cmd=$FILECMD
8517 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8518 ;;
8519
8520 *nto* | *qnx*)
8521 lt_cv_deplibs_check_method=pass_all
8522 ;;
8523
8524 openbsd*)
8525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8527 else
8528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8529 fi
8530 ;;
8531
8532 osf3* | osf4* | osf5*)
8533 lt_cv_deplibs_check_method=pass_all
8534 ;;
8535
8536 rdos*)
8537 lt_cv_deplibs_check_method=pass_all
8538 ;;
8539
8540 serenity*)
8541 lt_cv_deplibs_check_method=pass_all
8542 ;;
8543
8544 solaris*)
8545 lt_cv_deplibs_check_method=pass_all
8546 ;;
8547
8548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8549 lt_cv_deplibs_check_method=pass_all
8550 ;;
8551
8552 sysv4 | sysv4.3*)
8553 case $host_vendor in
8554 motorola)
8555 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]'
8556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8557 ;;
8558 ncr)
8559 lt_cv_deplibs_check_method=pass_all
8560 ;;
8561 sequent)
8562 lt_cv_file_magic_cmd='/bin/file'
8563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8564 ;;
8565 sni)
8566 lt_cv_file_magic_cmd='/bin/file'
8567 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8568 lt_cv_file_magic_test_file=/lib/libc.so
8569 ;;
8570 siemens)
8571 lt_cv_deplibs_check_method=pass_all
8572 ;;
8573 pc)
8574 lt_cv_deplibs_check_method=pass_all
8575 ;;
8576 esac
8577 ;;
8578
8579 tpf*)
8580 lt_cv_deplibs_check_method=pass_all
8581 ;;
8582 os2*)
8583 lt_cv_deplibs_check_method=pass_all
8584 ;;
8585 esac
8586 ;;
8587 esac
8588 fi
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8590 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8591
8592 file_magic_glob=
8593 want_nocaseglob=no
8594 if test "$build" = "$host"; then
8595 case $host_os in
8596 mingw* | windows* | pw32*)
8597 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8598 want_nocaseglob=yes
8599 else
8600 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8601 fi
8602 ;;
8603 esac
8604 fi
8605
8606 file_magic_cmd=$lt_cv_file_magic_cmd
8607 deplibs_check_method=$lt_cv_deplibs_check_method
8608 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 if test -n "$ac_tool_prefix"; then
8632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8633 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 printf %s "checking for $ac_word... " >&6; }
8636 if test ${ac_cv_prog_DLLTOOL+y}
8637 then :
8638 printf %s "(cached) " >&6
8639 else case e in #(
8640 e) if test -n "$DLLTOOL"; then
8641 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 case $as_dir in #(((
8648 '') as_dir=./ ;;
8649 */) ;;
8650 *) as_dir=$as_dir/ ;;
8651 esac
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8654 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658 done
8659 done
8660 IFS=$as_save_IFS
8661
8662 fi ;;
8663 esac
8664 fi
8665 DLLTOOL=$ac_cv_prog_DLLTOOL
8666 if test -n "$DLLTOOL"; then
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8668 printf "%s\n" "$DLLTOOL" >&6; }
8669 else
8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 printf "%s\n" "no" >&6; }
8672 fi
8673
8674
8675 fi
8676 if test -z "$ac_cv_prog_DLLTOOL"; then
8677 ac_ct_DLLTOOL=$DLLTOOL
8678 # Extract the first word of "dlltool", so it can be a program name with args.
8679 set dummy dlltool; ac_word=$2
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 printf %s "checking for $ac_word... " >&6; }
8682 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8683 then :
8684 printf %s "(cached) " >&6
8685 else case e in #(
8686 e) if test -n "$ac_ct_DLLTOOL"; then
8687 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692 IFS=$as_save_IFS
8693 case $as_dir in #(((
8694 '') as_dir=./ ;;
8695 */) ;;
8696 *) as_dir=$as_dir/ ;;
8697 esac
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8700 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8702 break 2
8703 fi
8704 done
8705 done
8706 IFS=$as_save_IFS
8707
8708 fi ;;
8709 esac
8710 fi
8711 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8712 if test -n "$ac_ct_DLLTOOL"; then
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8714 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8715 else
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 printf "%s\n" "no" >&6; }
8718 fi
8719
8720 if test "x$ac_ct_DLLTOOL" = x; then
8721 DLLTOOL="false"
8722 else
8723 case $cross_compiling:$ac_tool_warned in
8724 yes:)
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8727 ac_tool_warned=yes ;;
8728 esac
8729 DLLTOOL=$ac_ct_DLLTOOL
8730 fi
8731 else
8732 DLLTOOL="$ac_cv_prog_DLLTOOL"
8733 fi
8734
8735 test -z "$DLLTOOL" && DLLTOOL=dlltool
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8747 printf %s "checking how to associate runtime and link libraries... " >&6; }
8748 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8749 then :
8750 printf %s "(cached) " >&6
8751 else case e in #(
8752 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8753
8754 case $host_os in
8755 cygwin* | mingw* | windows* | pw32* | cegcc*)
8756 # two different shell functions defined in ltmain.sh;
8757 # decide which one to use based on capabilities of $DLLTOOL
8758 case `$DLLTOOL --help 2>&1` in
8759 *--identify-strict*)
8760 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8761 ;;
8762 *)
8763 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8764 ;;
8765 esac
8766 ;;
8767 *)
8768 # fallback: assume linklib IS sharedlib
8769 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8770 ;;
8771 esac
8772 ;;
8773 esac
8774 fi
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8776 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8777 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8778 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8779
8780
8781
8782
8783
8784
8785
8786 if test -n "$ac_tool_prefix"; then
8787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 printf %s "checking for $ac_word... " >&6; }
8791 if test ${ac_cv_prog_RANLIB+y}
8792 then :
8793 printf %s "(cached) " >&6
8794 else case e in #(
8795 e) if test -n "$RANLIB"; then
8796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801 IFS=$as_save_IFS
8802 case $as_dir in #(((
8803 '') as_dir=./ ;;
8804 */) ;;
8805 *) as_dir=$as_dir/ ;;
8806 esac
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813 done
8814 done
8815 IFS=$as_save_IFS
8816
8817 fi ;;
8818 esac
8819 fi
8820 RANLIB=$ac_cv_prog_RANLIB
8821 if test -n "$RANLIB"; then
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8823 printf "%s\n" "$RANLIB" >&6; }
8824 else
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 printf "%s\n" "no" >&6; }
8827 fi
8828
8829
8830 fi
8831 if test -z "$ac_cv_prog_RANLIB"; then
8832 ac_ct_RANLIB=$RANLIB
8833 # Extract the first word of "ranlib", so it can be a program name with args.
8834 set dummy ranlib; ac_word=$2
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 printf %s "checking for $ac_word... " >&6; }
8837 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8838 then :
8839 printf %s "(cached) " >&6
8840 else case e in #(
8841 e) if test -n "$ac_ct_RANLIB"; then
8842 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847 IFS=$as_save_IFS
8848 case $as_dir in #(((
8849 '') as_dir=./ ;;
8850 */) ;;
8851 *) as_dir=$as_dir/ ;;
8852 esac
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_ac_ct_RANLIB="ranlib"
8856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859 done
8860 done
8861 IFS=$as_save_IFS
8862
8863 fi ;;
8864 esac
8865 fi
8866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8867 if test -n "$ac_ct_RANLIB"; then
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8869 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8870 else
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 printf "%s\n" "no" >&6; }
8873 fi
8874
8875 if test "x$ac_ct_RANLIB" = x; then
8876 RANLIB=":"
8877 else
8878 case $cross_compiling:$ac_tool_warned in
8879 yes:)
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8881 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8882 ac_tool_warned=yes ;;
8883 esac
8884 RANLIB=$ac_ct_RANLIB
8885 fi
8886 else
8887 RANLIB="$ac_cv_prog_RANLIB"
8888 fi
8889
8890 if test -n "$ac_tool_prefix"; then
8891 for ac_prog in ar
8892 do
8893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_prog_AR+y}
8898 then :
8899 printf %s "(cached) " >&6
8900 else case e in #(
8901 e) if test -n "$AR"; then
8902 ac_cv_prog_AR="$AR" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907 IFS=$as_save_IFS
8908 case $as_dir in #(((
8909 '') as_dir=./ ;;
8910 */) ;;
8911 *) as_dir=$as_dir/ ;;
8912 esac
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919 done
8920 done
8921 IFS=$as_save_IFS
8922
8923 fi ;;
8924 esac
8925 fi
8926 AR=$ac_cv_prog_AR
8927 if test -n "$AR"; then
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8929 printf "%s\n" "$AR" >&6; }
8930 else
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 printf "%s\n" "no" >&6; }
8933 fi
8934
8935
8936 test -n "$AR" && break
8937 done
8938 fi
8939 if test -z "$AR"; then
8940 ac_ct_AR=$AR
8941 for ac_prog in ar
8942 do
8943 # Extract the first word of "$ac_prog", so it can be a program name with args.
8944 set dummy $ac_prog; ac_word=$2
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 printf %s "checking for $ac_word... " >&6; }
8947 if test ${ac_cv_prog_ac_ct_AR+y}
8948 then :
8949 printf %s "(cached) " >&6
8950 else case e in #(
8951 e) if test -n "$ac_ct_AR"; then
8952 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8953 else
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH
8956 do
8957 IFS=$as_save_IFS
8958 case $as_dir in #(((
8959 '') as_dir=./ ;;
8960 */) ;;
8961 *) as_dir=$as_dir/ ;;
8962 esac
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8965 ac_cv_prog_ac_ct_AR="$ac_prog"
8966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8967 break 2
8968 fi
8969 done
8970 done
8971 IFS=$as_save_IFS
8972
8973 fi ;;
8974 esac
8975 fi
8976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8977 if test -n "$ac_ct_AR"; then
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8979 printf "%s\n" "$ac_ct_AR" >&6; }
8980 else
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 printf "%s\n" "no" >&6; }
8983 fi
8984
8985
8986 test -n "$ac_ct_AR" && break
8987 done
8988
8989 if test "x$ac_ct_AR" = x; then
8990 AR="false"
8991 else
8992 case $cross_compiling:$ac_tool_warned in
8993 yes:)
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8996 ac_tool_warned=yes ;;
8997 esac
8998 AR=$ac_ct_AR
8999 fi
9000 fi
9001
9002 : ${AR=ar}
9003
9004
9005
9006
9007
9008
9009 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9010 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9011 # higher priority because that's what people were doing historically (setting
9012 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9013 # variable obsoleted/removed.
9014
9015 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9016 lt_ar_flags=$AR_FLAGS
9017
9018
9019
9020
9021
9022
9023 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9024 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9025
9026
9027
9028
9029
9030
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9032 printf %s "checking for archiver @FILE support... " >&6; }
9033 if test ${lt_cv_ar_at_file+y}
9034 then :
9035 printf %s "(cached) " >&6
9036 else case e in #(
9037 e) lt_cv_ar_at_file=no
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 int
9042 main (void)
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"
9050 then :
9051 echo conftest.$ac_objext > conftest.lst
9052 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9054 (eval $lt_ar_try) 2>&5
9055 ac_status=$?
9056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9057 test $ac_status = 0; }
9058 if test 0 -eq "$ac_status"; then
9059 # Ensure the archiver fails upon bogus file names.
9060 rm -f conftest.$ac_objext libconftest.a
9061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9062 (eval $lt_ar_try) 2>&5
9063 ac_status=$?
9064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9065 test $ac_status = 0; }
9066 if test 0 -ne "$ac_status"; then
9067 lt_cv_ar_at_file=@
9068 fi
9069 fi
9070 rm -f conftest.* libconftest.a
9071
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9074 ;;
9075 esac
9076 fi
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9078 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9079
9080 if test no = "$lt_cv_ar_at_file"; then
9081 archiver_list_spec=
9082 else
9083 archiver_list_spec=$lt_cv_ar_at_file
9084 fi
9085
9086
9087
9088
9089
9090
9091
9092 if test -n "$ac_tool_prefix"; then
9093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9094 set dummy ${ac_tool_prefix}strip; ac_word=$2
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 printf %s "checking for $ac_word... " >&6; }
9097 if test ${ac_cv_prog_STRIP+y}
9098 then :
9099 printf %s "(cached) " >&6
9100 else case e in #(
9101 e) if test -n "$STRIP"; then
9102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107 IFS=$as_save_IFS
9108 case $as_dir in #(((
9109 '') as_dir=./ ;;
9110 */) ;;
9111 *) as_dir=$as_dir/ ;;
9112 esac
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9117 break 2
9118 fi
9119 done
9120 done
9121 IFS=$as_save_IFS
9122
9123 fi ;;
9124 esac
9125 fi
9126 STRIP=$ac_cv_prog_STRIP
9127 if test -n "$STRIP"; then
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9129 printf "%s\n" "$STRIP" >&6; }
9130 else
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 printf "%s\n" "no" >&6; }
9133 fi
9134
9135
9136 fi
9137 if test -z "$ac_cv_prog_STRIP"; then
9138 ac_ct_STRIP=$STRIP
9139 # Extract the first word of "strip", so it can be a program name with args.
9140 set dummy strip; ac_word=$2
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 printf %s "checking for $ac_word... " >&6; }
9143 if test ${ac_cv_prog_ac_ct_STRIP+y}
9144 then :
9145 printf %s "(cached) " >&6
9146 else case e in #(
9147 e) if test -n "$ac_ct_STRIP"; then
9148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153 IFS=$as_save_IFS
9154 case $as_dir in #(((
9155 '') as_dir=./ ;;
9156 */) ;;
9157 *) as_dir=$as_dir/ ;;
9158 esac
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9161 ac_cv_prog_ac_ct_STRIP="strip"
9162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9163 break 2
9164 fi
9165 done
9166 done
9167 IFS=$as_save_IFS
9168
9169 fi ;;
9170 esac
9171 fi
9172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9173 if test -n "$ac_ct_STRIP"; then
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9175 printf "%s\n" "$ac_ct_STRIP" >&6; }
9176 else
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 printf "%s\n" "no" >&6; }
9179 fi
9180
9181 if test "x$ac_ct_STRIP" = x; then
9182 STRIP=":"
9183 else
9184 case $cross_compiling:$ac_tool_warned in
9185 yes:)
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9188 ac_tool_warned=yes ;;
9189 esac
9190 STRIP=$ac_ct_STRIP
9191 fi
9192 else
9193 STRIP="$ac_cv_prog_STRIP"
9194 fi
9195
9196 test -z "$STRIP" && STRIP=:
9197
9198
9199
9200
9201
9202
9203
9204 test -z "$RANLIB" && RANLIB=:
9205
9206
9207
9208
9209
9210
9211 # Determine commands to create old-style static archives.
9212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9213 old_postinstall_cmds='chmod 644 $oldlib'
9214 old_postuninstall_cmds=
9215
9216 if test -n "$RANLIB"; then
9217 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9218 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9219 fi
9220
9221 case $host_os in
9222 darwin*)
9223 lock_old_archive_extraction=yes ;;
9224 *)
9225 lock_old_archive_extraction=no ;;
9226 esac
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 # If no C compiler was specified, use CC.
9267 LTCC=${LTCC-"$CC"}
9268
9269 # If no C compiler flags were specified, use CFLAGS.
9270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9271
9272 # Allow CC to be a program name with arguments.
9273 compiler=$CC
9274
9275
9276 # Check for command to grab the raw symbol name followed by C symbol from nm.
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9278 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9279 if test ${lt_cv_sys_global_symbol_pipe+y}
9280 then :
9281 printf %s "(cached) " >&6
9282 else case e in #(
9283 e)
9284 # These are sane defaults that work on at least a few old systems.
9285 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9286
9287 # Character class describing NM global symbol codes.
9288 symcode='[BCDEGRST]'
9289
9290 # Regexp to match symbols that can be accessed directly from C.
9291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9292
9293 # Define system-specific variables.
9294 case $host_os in
9295 aix*)
9296 symcode='[BCDT]'
9297 ;;
9298 cygwin* | mingw* | windows* | pw32* | cegcc*)
9299 symcode='[ABCDGISTW]'
9300 ;;
9301 hpux*)
9302 if test ia64 = "$host_cpu"; then
9303 symcode='[ABCDEGRST]'
9304 fi
9305 ;;
9306 irix* | nonstopux*)
9307 symcode='[BCDEGRST]'
9308 ;;
9309 osf*)
9310 symcode='[BCDEGQRST]'
9311 ;;
9312 solaris*)
9313 symcode='[BCDRT]'
9314 ;;
9315 sco3.2v5*)
9316 symcode='[DT]'
9317 ;;
9318 sysv4.2uw2*)
9319 symcode='[DT]'
9320 ;;
9321 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9322 symcode='[ABDT]'
9323 ;;
9324 sysv4)
9325 symcode='[DFNSTU]'
9326 ;;
9327 esac
9328
9329 # If we're using GNU nm, then use its standard symbol codes.
9330 case `$NM -V 2>&1` in
9331 *GNU* | *'with BFD'*)
9332 symcode='[ABCDGIRSTW]' ;;
9333 esac
9334
9335 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9336 # Gets list of data symbols to import.
9337 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9338 # Adjust the below global symbol transforms to fixup imported variables.
9339 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9340 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9341 lt_c_name_lib_hook="\
9342 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9343 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9344 else
9345 # Disable hooks by default.
9346 lt_cv_sys_global_symbol_to_import=
9347 lt_cdecl_hook=
9348 lt_c_name_hook=
9349 lt_c_name_lib_hook=
9350 fi
9351
9352 # Transform an extracted symbol line into a proper C declaration.
9353 # Some systems (esp. on ia64) link data and code symbols differently,
9354 # so use this general approach.
9355 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9356 $lt_cdecl_hook\
9357 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9358 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9359
9360 # Transform an extracted symbol line into symbol name and symbol address
9361 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9362 $lt_c_name_hook\
9363 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9364 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9365
9366 # Transform an extracted symbol line into symbol name with lib prefix and
9367 # symbol address.
9368 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9369 $lt_c_name_lib_hook\
9370 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9371 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9372 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9373
9374 # Handle CRLF in mingw tool chain
9375 opt_cr=
9376 case $build_os in
9377 mingw* | windows*)
9378 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9379 ;;
9380 esac
9381
9382 # Try without a prefix underscore, then with it.
9383 for ac_symprfx in "" "_"; do
9384
9385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9386 symxfrm="\\1 $ac_symprfx\\2 \\2"
9387
9388 # Write the raw and C identifiers.
9389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9390 # Fake it for dumpbin and say T for any non-static function,
9391 # D for any global variable and I for any imported variable.
9392 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9393 # which start with @ or ?.
9394 lt_cv_sys_global_symbol_pipe="$AWK '"\
9395 " {last_section=section; section=\$ 3};"\
9396 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9397 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9398 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9399 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9400 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9401 " \$ 0!~/External *\|/{next};"\
9402 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9403 " {if(hide[section]) next};"\
9404 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9405 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9406 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9407 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9408 " ' prfx=^$ac_symprfx"
9409 else
9410 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9411 fi
9412 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9413
9414 # Check to see that the pipe works correctly.
9415 pipe_works=no
9416
9417 rm -f conftest*
9418 cat > conftest.$ac_ext <<_LT_EOF
9419 #ifdef __cplusplus
9420 extern "C" {
9421 #endif
9422 char nm_test_var;
9423 void nm_test_func(void);
9424 void nm_test_func(void){}
9425 #ifdef __cplusplus
9426 }
9427 #endif
9428 int main(void){nm_test_var='a';nm_test_func();return(0);}
9429 _LT_EOF
9430
9431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9432 (eval $ac_compile) 2>&5
9433 ac_status=$?
9434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9435 test $ac_status = 0; }; then
9436 # Now try to grab the symbols.
9437 nlist=conftest.nm
9438 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9439 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9440 # Try sorting and uniquifying the output.
9441 if sort "$nlist" | uniq > "$nlist"T; then
9442 mv -f "$nlist"T "$nlist"
9443 else
9444 rm -f "$nlist"T
9445 fi
9446
9447 # Make sure that we snagged all the symbols we need.
9448 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9449 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9450 cat <<_LT_EOF > conftest.$ac_ext
9451 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9452 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9453 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9454 relocations are performed -- see ld's documentation on pseudo-relocs. */
9455 # define LT_DLSYM_CONST
9456 #elif defined __osf__
9457 /* This system does not cope well with relocations in const data. */
9458 # define LT_DLSYM_CONST
9459 #else
9460 # define LT_DLSYM_CONST const
9461 #endif
9462
9463 #ifdef __cplusplus
9464 extern "C" {
9465 #endif
9466
9467 _LT_EOF
9468 # Now generate the symbol file.
9469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9470
9471 cat <<_LT_EOF >> conftest.$ac_ext
9472
9473 /* The mapping between symbol names and symbols. */
9474 LT_DLSYM_CONST struct {
9475 const char *name;
9476 void *address;
9477 }
9478 lt__PROGRAM__LTX_preloaded_symbols[] =
9479 {
9480 { "@PROGRAM@", (void *) 0 },
9481 _LT_EOF
9482 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9483 cat <<\_LT_EOF >> conftest.$ac_ext
9484 {0, (void *) 0}
9485 };
9486
9487 /* This works around a problem in FreeBSD linker */
9488 #ifdef FREEBSD_WORKAROUND
9489 static const void *lt_preloaded_setup() {
9490 return lt__PROGRAM__LTX_preloaded_symbols;
9491 }
9492 #endif
9493
9494 #ifdef __cplusplus
9495 }
9496 #endif
9497 _LT_EOF
9498 # Now try linking the two files.
9499 mv conftest.$ac_objext conftstm.$ac_objext
9500 lt_globsym_save_LIBS=$LIBS
9501 lt_globsym_save_CFLAGS=$CFLAGS
9502 LIBS=conftstm.$ac_objext
9503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9505 (eval $ac_link) 2>&5
9506 ac_status=$?
9507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9508 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9509 pipe_works=yes
9510 fi
9511 LIBS=$lt_globsym_save_LIBS
9512 CFLAGS=$lt_globsym_save_CFLAGS
9513 else
9514 echo "cannot find nm_test_func in $nlist" >&5
9515 fi
9516 else
9517 echo "cannot find nm_test_var in $nlist" >&5
9518 fi
9519 else
9520 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9521 fi
9522 else
9523 echo "$progname: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 fi
9526 rm -rf conftest* conftst*
9527
9528 # Do not use the global_symbol_pipe unless it works.
9529 if test yes = "$pipe_works"; then
9530 break
9531 else
9532 lt_cv_sys_global_symbol_pipe=
9533 fi
9534 done
9535 ;;
9536 esac
9537 fi
9538
9539 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9540 lt_cv_sys_global_symbol_to_cdecl=
9541 fi
9542 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9544 printf "%s\n" "failed" >&6; }
9545 else
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9547 printf "%s\n" "ok" >&6; }
9548 fi
9549
9550 # Response file support.
9551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9552 nm_file_list_spec='@'
9553 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9554 nm_file_list_spec='@'
9555 fi
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9594 printf %s "checking for sysroot... " >&6; }
9595
9596 # Check whether --with-sysroot was given.
9597 if test ${with_sysroot+y}
9598 then :
9599 withval=$with_sysroot;
9600 else case e in #(
9601 e) with_sysroot=no ;;
9602 esac
9603 fi
9604
9605
9606 lt_sysroot=
9607 case $with_sysroot in #(
9608 yes)
9609 if test yes = "$GCC"; then
9610 # Trim trailing / since we'll always append absolute paths and we want
9611 # to avoid //, if only for less confusing output for the user.
9612 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9613 fi
9614 ;; #(
9615 /*)
9616 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9617 ;; #(
9618 no|'')
9619 ;; #(
9620 *)
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9622 printf "%s\n" "$with_sysroot" >&6; }
9623 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9624 ;;
9625 esac
9626
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9628 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9629
9630
9631
9632
9633
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9635 printf %s "checking for a working dd... " >&6; }
9636 if test ${ac_cv_path_lt_DD+y}
9637 then :
9638 printf %s "(cached) " >&6
9639 else case e in #(
9640 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9641 cat conftest.i conftest.i >conftest2.i
9642 : ${lt_DD:=$DD}
9643 if test -z "$lt_DD"; then
9644 ac_path_lt_DD_found=false
9645 # Loop through the user's path and test for each of PROGNAME-LIST
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $PATH
9648 do
9649 IFS=$as_save_IFS
9650 case $as_dir in #(((
9651 '') as_dir=./ ;;
9652 */) ;;
9653 *) as_dir=$as_dir/ ;;
9654 esac
9655 for ac_prog in dd
9656 do
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9659 as_fn_executable_p "$ac_path_lt_DD" || continue
9660 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9661 cmp -s conftest.i conftest.out \
9662 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9663 fi
9664 $ac_path_lt_DD_found && break 3
9665 done
9666 done
9667 done
9668 IFS=$as_save_IFS
9669 if test -z "$ac_cv_path_lt_DD"; then
9670 :
9671 fi
9672 else
9673 ac_cv_path_lt_DD=$lt_DD
9674 fi
9675
9676 rm -f conftest.i conftest2.i conftest.out ;;
9677 esac
9678 fi
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9680 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9681
9682
9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9684 printf %s "checking how to truncate binary pipes... " >&6; }
9685 if test ${lt_cv_truncate_bin+y}
9686 then :
9687 printf %s "(cached) " >&6
9688 else case e in #(
9689 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9690 cat conftest.i conftest.i >conftest2.i
9691 lt_cv_truncate_bin=
9692 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9693 cmp -s conftest.i conftest.out \
9694 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9695 fi
9696 rm -f conftest.i conftest2.i conftest.out
9697 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9698 esac
9699 fi
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9701 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9702
9703
9704
9705
9706
9707
9708
9709 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9710 func_cc_basename ()
9711 {
9712 for cc_temp in $*""; do
9713 case $cc_temp in
9714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9716 \-*) ;;
9717 *) break;;
9718 esac
9719 done
9720 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9721 }
9722
9723 # Check whether --enable-libtool-lock was given.
9724 if test ${enable_libtool_lock+y}
9725 then :
9726 enableval=$enable_libtool_lock;
9727 fi
9728
9729 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9730
9731 # Some flags need to be propagated to the compiler or linker for good
9732 # libtool support.
9733 case $host in
9734 ia64-*-hpux*)
9735 # Find out what ABI is being produced by ac_compile, and set mode
9736 # options accordingly.
9737 echo 'int i;' > conftest.$ac_ext
9738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9739 (eval $ac_compile) 2>&5
9740 ac_status=$?
9741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9742 test $ac_status = 0; }; then
9743 case `$FILECMD conftest.$ac_objext` in
9744 *ELF-32*)
9745 HPUX_IA64_MODE=32
9746 ;;
9747 *ELF-64*)
9748 HPUX_IA64_MODE=64
9749 ;;
9750 esac
9751 fi
9752 rm -rf conftest*
9753 ;;
9754 *-*-irix6*)
9755 # Find out what ABI is being produced by ac_compile, and set linker
9756 # options accordingly.
9757 echo '#line '$LINENO' "configure"' > 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762 test $ac_status = 0; }; then
9763 if test yes = "$lt_cv_prog_gnu_ld"; then
9764 case `$FILECMD conftest.$ac_objext` in
9765 *32-bit*)
9766 LD="${LD-ld} -melf32bsmip"
9767 ;;
9768 *N32*)
9769 LD="${LD-ld} -melf32bmipn32"
9770 ;;
9771 *64-bit*)
9772 LD="${LD-ld} -melf64bmip"
9773 ;;
9774 esac
9775 else
9776 case `$FILECMD conftest.$ac_objext` in
9777 *32-bit*)
9778 LD="${LD-ld} -32"
9779 ;;
9780 *N32*)
9781 LD="${LD-ld} -n32"
9782 ;;
9783 *64-bit*)
9784 LD="${LD-ld} -64"
9785 ;;
9786 esac
9787 fi
9788 fi
9789 rm -rf conftest*
9790 ;;
9791
9792 mips64*-*linux*)
9793 # Find out what ABI is being produced by ac_compile, and set linker
9794 # options accordingly.
9795 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9797 (eval $ac_compile) 2>&5
9798 ac_status=$?
9799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800 test $ac_status = 0; }; then
9801 emul=elf
9802 case `$FILECMD conftest.$ac_objext` in
9803 *32-bit*)
9804 emul="${emul}32"
9805 ;;
9806 *64-bit*)
9807 emul="${emul}64"
9808 ;;
9809 esac
9810 case `$FILECMD conftest.$ac_objext` in
9811 *MSB*)
9812 emul="${emul}btsmip"
9813 ;;
9814 *LSB*)
9815 emul="${emul}ltsmip"
9816 ;;
9817 esac
9818 case `$FILECMD conftest.$ac_objext` in
9819 *N32*)
9820 emul="${emul}n32"
9821 ;;
9822 esac
9823 LD="${LD-ld} -m $emul"
9824 fi
9825 rm -rf conftest*
9826 ;;
9827
9828 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9829 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9830 # Find out what ABI is being produced by ac_compile, and set linker
9831 # options accordingly. Note that the listed cases only cover the
9832 # situations where additional linker options are needed (such as when
9833 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9834 # vice versa); the common cases where no linker options are needed do
9835 # not appear in the list.
9836 echo 'int i;' > conftest.$ac_ext
9837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9838 (eval $ac_compile) 2>&5
9839 ac_status=$?
9840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; }; then
9842 case `$FILECMD conftest.o` in
9843 *32-bit*)
9844 case $host in
9845 x86_64-*kfreebsd*-gnu)
9846 LD="${LD-ld} -m elf_i386_fbsd"
9847 ;;
9848 x86_64-*linux*|x86_64-gnu*)
9849 case `$FILECMD conftest.o` in
9850 *x86-64*)
9851 LD="${LD-ld} -m elf32_x86_64"
9852 ;;
9853 *)
9854 LD="${LD-ld} -m elf_i386"
9855 ;;
9856 esac
9857 ;;
9858 powerpc64le-*linux*)
9859 LD="${LD-ld} -m elf32lppclinux"
9860 ;;
9861 powerpc64-*linux*)
9862 LD="${LD-ld} -m elf32ppclinux"
9863 ;;
9864 s390x-*linux*)
9865 LD="${LD-ld} -m elf_s390"
9866 ;;
9867 sparc64-*linux*)
9868 LD="${LD-ld} -m elf32_sparc"
9869 ;;
9870 esac
9871 ;;
9872 *64-bit*)
9873 case $host in
9874 x86_64-*kfreebsd*-gnu)
9875 LD="${LD-ld} -m elf_x86_64_fbsd"
9876 ;;
9877 x86_64-*linux*|x86_64-gnu*)
9878 LD="${LD-ld} -m elf_x86_64"
9879 ;;
9880 powerpcle-*linux*)
9881 LD="${LD-ld} -m elf64lppc"
9882 ;;
9883 powerpc-*linux*)
9884 LD="${LD-ld} -m elf64ppc"
9885 ;;
9886 s390*-*linux*|s390*-*tpf*)
9887 LD="${LD-ld} -m elf64_s390"
9888 ;;
9889 sparc*-*linux*)
9890 LD="${LD-ld} -m elf64_sparc"
9891 ;;
9892 esac
9893 ;;
9894 esac
9895 fi
9896 rm -rf conftest*
9897 ;;
9898
9899 *-*-sco3.2v5*)
9900 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9901 SAVE_CFLAGS=$CFLAGS
9902 CFLAGS="$CFLAGS -belf"
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9904 printf %s "checking whether the C compiler needs -belf... " >&6; }
9905 if test ${lt_cv_cc_needs_belf+y}
9906 then :
9907 printf %s "(cached) " >&6
9908 else case e in #(
9909 e) ac_ext=c
9910 ac_cpp='$CPP $CPPFLAGS'
9911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9914
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917
9918 int
9919 main (void)
9920 {
9921
9922 ;
9923 return 0;
9924 }
9925 _ACEOF
9926 if ac_fn_c_try_link "$LINENO"
9927 then :
9928 lt_cv_cc_needs_belf=yes
9929 else case e in #(
9930 e) lt_cv_cc_needs_belf=no ;;
9931 esac
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9934 conftest$ac_exeext conftest.$ac_ext
9935 ac_ext=c
9936 ac_cpp='$CPP $CPPFLAGS'
9937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9940 ;;
9941 esac
9942 fi
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9944 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9945 if test yes != "$lt_cv_cc_needs_belf"; then
9946 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9947 CFLAGS=$SAVE_CFLAGS
9948 fi
9949 ;;
9950 *-*solaris*)
9951 # Find out what ABI is being produced by ac_compile, and set linker
9952 # options accordingly.
9953 echo 'int i;' > conftest.$ac_ext
9954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9955 (eval $ac_compile) 2>&5
9956 ac_status=$?
9957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9958 test $ac_status = 0; }; then
9959 case `$FILECMD conftest.o` in
9960 *64-bit*)
9961 case $lt_cv_prog_gnu_ld in
9962 yes*)
9963 case $host in
9964 i?86-*-solaris*|x86_64-*-solaris*)
9965 LD="${LD-ld} -m elf_x86_64"
9966 ;;
9967 sparc*-*-solaris*)
9968 LD="${LD-ld} -m elf64_sparc"
9969 ;;
9970 esac
9971 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9972 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9973 LD=${LD-ld}_sol2
9974 fi
9975 ;;
9976 *)
9977 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9978 LD="${LD-ld} -64"
9979 fi
9980 ;;
9981 esac
9982 ;;
9983 esac
9984 fi
9985 rm -rf conftest*
9986 ;;
9987 esac
9988
9989 need_locks=$enable_libtool_lock
9990
9991 if test -n "$ac_tool_prefix"; then
9992 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9993 set dummy ${ac_tool_prefix}mt; ac_word=$2
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 printf %s "checking for $ac_word... " >&6; }
9996 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9997 then :
9998 printf %s "(cached) " >&6
9999 else case e in #(
10000 e) if test -n "$MANIFEST_TOOL"; then
10001 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006 IFS=$as_save_IFS
10007 case $as_dir in #(((
10008 '') as_dir=./ ;;
10009 */) ;;
10010 *) as_dir=$as_dir/ ;;
10011 esac
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10014 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018 done
10019 done
10020 IFS=$as_save_IFS
10021
10022 fi ;;
10023 esac
10024 fi
10025 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10026 if test -n "$MANIFEST_TOOL"; then
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10028 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10029 else
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 printf "%s\n" "no" >&6; }
10032 fi
10033
10034
10035 fi
10036 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10037 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10038 # Extract the first word of "mt", so it can be a program name with args.
10039 set dummy mt; ac_word=$2
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 printf %s "checking for $ac_word... " >&6; }
10042 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10043 then :
10044 printf %s "(cached) " >&6
10045 else case e in #(
10046 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
10047 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052 IFS=$as_save_IFS
10053 case $as_dir in #(((
10054 '') as_dir=./ ;;
10055 */) ;;
10056 *) as_dir=$as_dir/ ;;
10057 esac
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10067
10068 fi ;;
10069 esac
10070 fi
10071 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10072 if test -n "$ac_ct_MANIFEST_TOOL"; then
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10074 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10075 else
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 printf "%s\n" "no" >&6; }
10078 fi
10079
10080 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10081 MANIFEST_TOOL=":"
10082 else
10083 case $cross_compiling:$ac_tool_warned in
10084 yes:)
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10087 ac_tool_warned=yes ;;
10088 esac
10089 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10090 fi
10091 else
10092 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10093 fi
10094
10095 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10097 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10098 if test ${lt_cv_path_manifest_tool+y}
10099 then :
10100 printf %s "(cached) " >&6
10101 else case e in #(
10102 e) lt_cv_path_manifest_tool=no
10103 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10104 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10105 cat conftest.err >&5
10106 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10107 lt_cv_path_manifest_tool=yes
10108 fi
10109 rm -f conftest* ;;
10110 esac
10111 fi
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10113 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10114 if test yes != "$lt_cv_path_manifest_tool"; then
10115 MANIFEST_TOOL=:
10116 fi
10117
10118
10119
10120
10121
10122
10123 case $host_os in
10124 rhapsody* | darwin*)
10125 if test -n "$ac_tool_prefix"; then
10126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 printf %s "checking for $ac_word... " >&6; }
10130 if test ${ac_cv_prog_DSYMUTIL+y}
10131 then :
10132 printf %s "(cached) " >&6
10133 else case e in #(
10134 e) if test -n "$DSYMUTIL"; then
10135 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10136 else
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10139 do
10140 IFS=$as_save_IFS
10141 case $as_dir in #(((
10142 '') as_dir=./ ;;
10143 */) ;;
10144 *) as_dir=$as_dir/ ;;
10145 esac
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10150 break 2
10151 fi
10152 done
10153 done
10154 IFS=$as_save_IFS
10155
10156 fi ;;
10157 esac
10158 fi
10159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10160 if test -n "$DSYMUTIL"; then
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10162 printf "%s\n" "$DSYMUTIL" >&6; }
10163 else
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 printf "%s\n" "no" >&6; }
10166 fi
10167
10168
10169 fi
10170 if test -z "$ac_cv_prog_DSYMUTIL"; then
10171 ac_ct_DSYMUTIL=$DSYMUTIL
10172 # Extract the first word of "dsymutil", so it can be a program name with args.
10173 set dummy dsymutil; ac_word=$2
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 printf %s "checking for $ac_word... " >&6; }
10176 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10177 then :
10178 printf %s "(cached) " >&6
10179 else case e in #(
10180 e) if test -n "$ac_ct_DSYMUTIL"; then
10181 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186 IFS=$as_save_IFS
10187 case $as_dir in #(((
10188 '') as_dir=./ ;;
10189 */) ;;
10190 *) as_dir=$as_dir/ ;;
10191 esac
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198 done
10199 done
10200 IFS=$as_save_IFS
10201
10202 fi ;;
10203 esac
10204 fi
10205 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10206 if test -n "$ac_ct_DSYMUTIL"; then
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10208 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10209 else
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 printf "%s\n" "no" >&6; }
10212 fi
10213
10214 if test "x$ac_ct_DSYMUTIL" = x; then
10215 DSYMUTIL=":"
10216 else
10217 case $cross_compiling:$ac_tool_warned in
10218 yes:)
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10221 ac_tool_warned=yes ;;
10222 esac
10223 DSYMUTIL=$ac_ct_DSYMUTIL
10224 fi
10225 else
10226 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10227 fi
10228
10229 if test -n "$ac_tool_prefix"; then
10230 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10231 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 printf %s "checking for $ac_word... " >&6; }
10234 if test ${ac_cv_prog_NMEDIT+y}
10235 then :
10236 printf %s "(cached) " >&6
10237 else case e in #(
10238 e) if test -n "$NMEDIT"; then
10239 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10240 else
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10243 do
10244 IFS=$as_save_IFS
10245 case $as_dir in #(((
10246 '') as_dir=./ ;;
10247 */) ;;
10248 *) as_dir=$as_dir/ ;;
10249 esac
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10252 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10254 break 2
10255 fi
10256 done
10257 done
10258 IFS=$as_save_IFS
10259
10260 fi ;;
10261 esac
10262 fi
10263 NMEDIT=$ac_cv_prog_NMEDIT
10264 if test -n "$NMEDIT"; then
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10266 printf "%s\n" "$NMEDIT" >&6; }
10267 else
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 printf "%s\n" "no" >&6; }
10270 fi
10271
10272
10273 fi
10274 if test -z "$ac_cv_prog_NMEDIT"; then
10275 ac_ct_NMEDIT=$NMEDIT
10276 # Extract the first word of "nmedit", so it can be a program name with args.
10277 set dummy nmedit; ac_word=$2
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 printf %s "checking for $ac_word... " >&6; }
10280 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else case e in #(
10284 e) if test -n "$ac_ct_NMEDIT"; then
10285 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10286 else
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10289 do
10290 IFS=$as_save_IFS
10291 case $as_dir in #(((
10292 '') as_dir=./ ;;
10293 */) ;;
10294 *) as_dir=$as_dir/ ;;
10295 esac
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302 done
10303 done
10304 IFS=$as_save_IFS
10305
10306 fi ;;
10307 esac
10308 fi
10309 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10310 if test -n "$ac_ct_NMEDIT"; then
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10312 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10313 else
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 printf "%s\n" "no" >&6; }
10316 fi
10317
10318 if test "x$ac_ct_NMEDIT" = x; then
10319 NMEDIT=":"
10320 else
10321 case $cross_compiling:$ac_tool_warned in
10322 yes:)
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10324 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10325 ac_tool_warned=yes ;;
10326 esac
10327 NMEDIT=$ac_ct_NMEDIT
10328 fi
10329 else
10330 NMEDIT="$ac_cv_prog_NMEDIT"
10331 fi
10332
10333 if test -n "$ac_tool_prefix"; then
10334 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10335 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 printf %s "checking for $ac_word... " >&6; }
10338 if test ${ac_cv_prog_LIPO+y}
10339 then :
10340 printf %s "(cached) " >&6
10341 else case e in #(
10342 e) if test -n "$LIPO"; then
10343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10344 else
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10347 do
10348 IFS=$as_save_IFS
10349 case $as_dir in #(((
10350 '') as_dir=./ ;;
10351 */) ;;
10352 *) as_dir=$as_dir/ ;;
10353 esac
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10356 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360 done
10361 done
10362 IFS=$as_save_IFS
10363
10364 fi ;;
10365 esac
10366 fi
10367 LIPO=$ac_cv_prog_LIPO
10368 if test -n "$LIPO"; then
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10370 printf "%s\n" "$LIPO" >&6; }
10371 else
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 printf "%s\n" "no" >&6; }
10374 fi
10375
10376
10377 fi
10378 if test -z "$ac_cv_prog_LIPO"; then
10379 ac_ct_LIPO=$LIPO
10380 # Extract the first word of "lipo", so it can be a program name with args.
10381 set dummy lipo; ac_word=$2
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 printf %s "checking for $ac_word... " >&6; }
10384 if test ${ac_cv_prog_ac_ct_LIPO+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else case e in #(
10388 e) if test -n "$ac_ct_LIPO"; then
10389 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394 IFS=$as_save_IFS
10395 case $as_dir in #(((
10396 '') as_dir=./ ;;
10397 */) ;;
10398 *) as_dir=$as_dir/ ;;
10399 esac
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_ac_ct_LIPO="lipo"
10403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406 done
10407 done
10408 IFS=$as_save_IFS
10409
10410 fi ;;
10411 esac
10412 fi
10413 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10414 if test -n "$ac_ct_LIPO"; then
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10416 printf "%s\n" "$ac_ct_LIPO" >&6; }
10417 else
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 printf "%s\n" "no" >&6; }
10420 fi
10421
10422 if test "x$ac_ct_LIPO" = x; then
10423 LIPO=":"
10424 else
10425 case $cross_compiling:$ac_tool_warned in
10426 yes:)
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10428 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10429 ac_tool_warned=yes ;;
10430 esac
10431 LIPO=$ac_ct_LIPO
10432 fi
10433 else
10434 LIPO="$ac_cv_prog_LIPO"
10435 fi
10436
10437 if test -n "$ac_tool_prefix"; then
10438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10439 set dummy ${ac_tool_prefix}otool; ac_word=$2
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 printf %s "checking for $ac_word... " >&6; }
10442 if test ${ac_cv_prog_OTOOL+y}
10443 then :
10444 printf %s "(cached) " >&6
10445 else case e in #(
10446 e) if test -n "$OTOOL"; then
10447 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452 IFS=$as_save_IFS
10453 case $as_dir in #(((
10454 '') as_dir=./ ;;
10455 */) ;;
10456 *) as_dir=$as_dir/ ;;
10457 esac
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464 done
10465 done
10466 IFS=$as_save_IFS
10467
10468 fi ;;
10469 esac
10470 fi
10471 OTOOL=$ac_cv_prog_OTOOL
10472 if test -n "$OTOOL"; then
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10474 printf "%s\n" "$OTOOL" >&6; }
10475 else
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 printf "%s\n" "no" >&6; }
10478 fi
10479
10480
10481 fi
10482 if test -z "$ac_cv_prog_OTOOL"; then
10483 ac_ct_OTOOL=$OTOOL
10484 # Extract the first word of "otool", so it can be a program name with args.
10485 set dummy otool; ac_word=$2
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 printf %s "checking for $ac_word... " >&6; }
10488 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10489 then :
10490 printf %s "(cached) " >&6
10491 else case e in #(
10492 e) if test -n "$ac_ct_OTOOL"; then
10493 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498 IFS=$as_save_IFS
10499 case $as_dir in #(((
10500 '') as_dir=./ ;;
10501 */) ;;
10502 *) as_dir=$as_dir/ ;;
10503 esac
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_ac_ct_OTOOL="otool"
10507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510 done
10511 done
10512 IFS=$as_save_IFS
10513
10514 fi ;;
10515 esac
10516 fi
10517 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10518 if test -n "$ac_ct_OTOOL"; then
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10520 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10521 else
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 printf "%s\n" "no" >&6; }
10524 fi
10525
10526 if test "x$ac_ct_OTOOL" = x; then
10527 OTOOL=":"
10528 else
10529 case $cross_compiling:$ac_tool_warned in
10530 yes:)
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533 ac_tool_warned=yes ;;
10534 esac
10535 OTOOL=$ac_ct_OTOOL
10536 fi
10537 else
10538 OTOOL="$ac_cv_prog_OTOOL"
10539 fi
10540
10541 if test -n "$ac_tool_prefix"; then
10542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10543 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 printf %s "checking for $ac_word... " >&6; }
10546 if test ${ac_cv_prog_OTOOL64+y}
10547 then :
10548 printf %s "(cached) " >&6
10549 else case e in #(
10550 e) if test -n "$OTOOL64"; then
10551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10552 else
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10555 do
10556 IFS=$as_save_IFS
10557 case $as_dir in #(((
10558 '') as_dir=./ ;;
10559 */) ;;
10560 *) as_dir=$as_dir/ ;;
10561 esac
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10564 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568 done
10569 done
10570 IFS=$as_save_IFS
10571
10572 fi ;;
10573 esac
10574 fi
10575 OTOOL64=$ac_cv_prog_OTOOL64
10576 if test -n "$OTOOL64"; then
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10578 printf "%s\n" "$OTOOL64" >&6; }
10579 else
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 printf "%s\n" "no" >&6; }
10582 fi
10583
10584
10585 fi
10586 if test -z "$ac_cv_prog_OTOOL64"; then
10587 ac_ct_OTOOL64=$OTOOL64
10588 # Extract the first word of "otool64", so it can be a program name with args.
10589 set dummy otool64; ac_word=$2
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 printf %s "checking for $ac_word... " >&6; }
10592 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10593 then :
10594 printf %s "(cached) " >&6
10595 else case e in #(
10596 e) if test -n "$ac_ct_OTOOL64"; then
10597 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602 IFS=$as_save_IFS
10603 case $as_dir in #(((
10604 '') as_dir=./ ;;
10605 */) ;;
10606 *) as_dir=$as_dir/ ;;
10607 esac
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10610 ac_cv_prog_ac_ct_OTOOL64="otool64"
10611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10612 break 2
10613 fi
10614 done
10615 done
10616 IFS=$as_save_IFS
10617
10618 fi ;;
10619 esac
10620 fi
10621 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10622 if test -n "$ac_ct_OTOOL64"; then
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10624 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10625 else
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 printf "%s\n" "no" >&6; }
10628 fi
10629
10630 if test "x$ac_ct_OTOOL64" = x; then
10631 OTOOL64=":"
10632 else
10633 case $cross_compiling:$ac_tool_warned in
10634 yes:)
10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10637 ac_tool_warned=yes ;;
10638 esac
10639 OTOOL64=$ac_ct_OTOOL64
10640 fi
10641 else
10642 OTOOL64="$ac_cv_prog_OTOOL64"
10643 fi
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10672 printf %s "checking for -single_module linker flag... " >&6; }
10673 if test ${lt_cv_apple_cc_single_mod+y}
10674 then :
10675 printf %s "(cached) " >&6
10676 else case e in #(
10677 e) lt_cv_apple_cc_single_mod=no
10678 if test -z "$LT_MULTI_MODULE"; then
10679 # By default we will add the -single_module flag. You can override
10680 # by either setting the environment variable LT_MULTI_MODULE
10681 # non-empty at configure time, or by adding -multi_module to the
10682 # link flags.
10683 rm -rf libconftest.dylib*
10684 echo "int foo(void){return 1;}" > conftest.c
10685 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10686 -dynamiclib -Wl,-single_module conftest.c" >&5
10687 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10688 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10689 _lt_result=$?
10690 # If there is a non-empty error log, and "single_module"
10691 # appears in it, assume the flag caused a linker warning
10692 if test -s conftest.err && $GREP single_module conftest.err; then
10693 cat conftest.err >&5
10694 # Otherwise, if the output was created with a 0 exit code from
10695 # the compiler, it worked.
10696 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10697 lt_cv_apple_cc_single_mod=yes
10698 else
10699 cat conftest.err >&5
10700 fi
10701 rm -rf libconftest.dylib*
10702 rm -f conftest.*
10703 fi ;;
10704 esac
10705 fi
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10707 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10708
10709 # Feature test to disable chained fixups since it is not
10710 # compatible with '-undefined dynamic_lookup'
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10712 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10713 if test ${lt_cv_support_no_fixup_chains+y}
10714 then :
10715 printf %s "(cached) " >&6
10716 else case e in #(
10717 e) save_LDFLAGS=$LDFLAGS
10718 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721
10722 int
10723 main (void)
10724 {
10725
10726 ;
10727 return 0;
10728 }
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"
10731 then :
10732 lt_cv_support_no_fixup_chains=yes
10733 else case e in #(
10734 e) lt_cv_support_no_fixup_chains=no
10735 ;;
10736 esac
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LDFLAGS=$save_LDFLAGS
10741
10742 ;;
10743 esac
10744 fi
10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10746 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10747
10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10749 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10750 if test ${lt_cv_ld_exported_symbols_list+y}
10751 then :
10752 printf %s "(cached) " >&6
10753 else case e in #(
10754 e) lt_cv_ld_exported_symbols_list=no
10755 save_LDFLAGS=$LDFLAGS
10756 echo "_main" > conftest.sym
10757 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760
10761 int
10762 main (void)
10763 {
10764
10765 ;
10766 return 0;
10767 }
10768 _ACEOF
10769 if ac_fn_c_try_link "$LINENO"
10770 then :
10771 lt_cv_ld_exported_symbols_list=yes
10772 else case e in #(
10773 e) lt_cv_ld_exported_symbols_list=no ;;
10774 esac
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10777 conftest$ac_exeext conftest.$ac_ext
10778 LDFLAGS=$save_LDFLAGS
10779 ;;
10780 esac
10781 fi
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10783 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10784
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10786 printf %s "checking for -force_load linker flag... " >&6; }
10787 if test ${lt_cv_ld_force_load+y}
10788 then :
10789 printf %s "(cached) " >&6
10790 else case e in #(
10791 e) lt_cv_ld_force_load=no
10792 cat > conftest.c << _LT_EOF
10793 int forced_loaded() { return 2;}
10794 _LT_EOF
10795 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10796 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10797 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10798 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10799 echo "$RANLIB libconftest.a" >&5
10800 $RANLIB libconftest.a 2>&5
10801 cat > conftest.c << _LT_EOF
10802 int main(void) { return 0;}
10803 _LT_EOF
10804 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10805 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10806 _lt_result=$?
10807 if test -s conftest.err && $GREP force_load conftest.err; then
10808 cat conftest.err >&5
10809 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10810 lt_cv_ld_force_load=yes
10811 else
10812 cat conftest.err >&5
10813 fi
10814 rm -f conftest.err libconftest.a conftest conftest.c
10815 rm -rf conftest.dSYM
10816 ;;
10817 esac
10818 fi
10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10820 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10821 case $host_os in
10822 rhapsody* | darwin1.[012])
10823 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10824 darwin1.*)
10825 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10826 darwin*)
10827 case $MACOSX_DEPLOYMENT_TARGET,$host in
10828 10.[012],*|,*powerpc*-darwin[5-8]*)
10829 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10830 *)
10831 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10832 if test yes = "$lt_cv_support_no_fixup_chains"; then
10833 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10834 fi
10835 ;;
10836 esac
10837 ;;
10838 esac
10839 if test yes = "$lt_cv_apple_cc_single_mod"; then
10840 _lt_dar_single_mod='$single_module'
10841 fi
10842 _lt_dar_needs_single_mod=no
10843 case $host_os in
10844 rhapsody* | darwin1.*)
10845 _lt_dar_needs_single_mod=yes ;;
10846 darwin*)
10847 # When targeting Mac OS X 10.4 (darwin 8) or later,
10848 # -single_module is the default and -multi_module is unsupported.
10849 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10850 # target any OS version that needs -single_module.
10851 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10852 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10853 _lt_dar_needs_single_mod=yes ;;
10854 esac
10855 ;;
10856 esac
10857 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10858 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10859 else
10860 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10861 fi
10862 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10863 _lt_dsymutil='~$DSYMUTIL $lib || :'
10864 else
10865 _lt_dsymutil=
10866 fi
10867 ;;
10868 esac
10869
10870 # func_munge_path_list VARIABLE PATH
10871 # -----------------------------------
10872 # VARIABLE is name of variable containing _space_ separated list of
10873 # directories to be munged by the contents of PATH, which is string
10874 # having a format:
10875 # "DIR[:DIR]:"
10876 # string "DIR[ DIR]" will be prepended to VARIABLE
10877 # ":DIR[:DIR]"
10878 # string "DIR[ DIR]" will be appended to VARIABLE
10879 # "DIRP[:DIRP]::[DIRA:]DIRA"
10880 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10881 # "DIRA[ DIRA]" will be appended to VARIABLE
10882 # "DIR[:DIR]"
10883 # VARIABLE will be replaced by "DIR[ DIR]"
10884 func_munge_path_list ()
10885 {
10886 case x$2 in
10887 x)
10888 ;;
10889 *:)
10890 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10891 ;;
10892 x:*)
10893 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10894 ;;
10895 *::*)
10896 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10897 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10898 ;;
10899 *)
10900 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10901 ;;
10902 esac
10903 }
10904
10905 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10906 "
10907 if test "x$ac_cv_header_dlfcn_h" = xyes
10908 then :
10909 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10910
10911 fi
10912
10913
10914
10915
10916 func_stripname_cnf ()
10917 {
10918 case $2 in
10919 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10920 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10921 esac
10922 } # func_stripname_cnf
10923
10924
10925
10926
10927
10928 # Set options
10929
10930
10931
10932 enable_dlopen=no
10933
10934
10935 enable_win32_dll=no
10936
10937
10938 # Check whether --enable-shared was given.
10939 if test ${enable_shared+y}
10940 then :
10941 enableval=$enable_shared; p=${PACKAGE-default}
10942 case $enableval in
10943 yes) enable_shared=yes ;;
10944 no) enable_shared=no ;;
10945 *)
10946 enable_shared=no
10947 # Look at the argument we got. We use all the common list separators.
10948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10949 for pkg in $enableval; do
10950 IFS=$lt_save_ifs
10951 if test "X$pkg" = "X$p"; then
10952 enable_shared=yes
10953 fi
10954 done
10955 IFS=$lt_save_ifs
10956 ;;
10957 esac
10958 else case e in #(
10959 e) enable_shared=yes ;;
10960 esac
10961 fi
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972 # Check whether --enable-pic was given.
10973 if test ${enable_pic+y}
10974 then :
10975 enableval=$enable_pic; lt_p=${PACKAGE-default}
10976 case $enableval in
10977 yes|no) pic_mode=$enableval ;;
10978 *)
10979 pic_mode=default
10980 # Look at the argument we got. We use all the common list separators.
10981 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10982 for lt_pkg in $enableval; do
10983 IFS=$lt_save_ifs
10984 if test "X$lt_pkg" = "X$lt_p"; then
10985 pic_mode=yes
10986 fi
10987 done
10988 IFS=$lt_save_ifs
10989 ;;
10990 esac
10991 else case e in #(
10992 e) # Check whether --with-pic was given.
10993 if test ${with_pic+y}
10994 then :
10995 withval=$with_pic; lt_p=${PACKAGE-default}
10996 case $withval in
10997 yes|no) pic_mode=$withval ;;
10998 *)
10999 pic_mode=default
11000 # Look at the argument we got. We use all the common list separators.
11001 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11002 for lt_pkg in $withval; do
11003 IFS=$lt_save_ifs
11004 if test "X$lt_pkg" = "X$lt_p"; then
11005 pic_mode=yes
11006 fi
11007 done
11008 IFS=$lt_save_ifs
11009 ;;
11010 esac
11011 else case e in #(
11012 e) pic_mode=default ;;
11013 esac
11014 fi
11015
11016 ;;
11017 esac
11018 fi
11019
11020
11021
11022
11023
11024
11025
11026
11027 # Check whether --enable-fast-install was given.
11028 if test ${enable_fast_install+y}
11029 then :
11030 enableval=$enable_fast_install; p=${PACKAGE-default}
11031 case $enableval in
11032 yes) enable_fast_install=yes ;;
11033 no) enable_fast_install=no ;;
11034 *)
11035 enable_fast_install=no
11036 # Look at the argument we got. We use all the common list separators.
11037 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11038 for pkg in $enableval; do
11039 IFS=$lt_save_ifs
11040 if test "X$pkg" = "X$p"; then
11041 enable_fast_install=yes
11042 fi
11043 done
11044 IFS=$lt_save_ifs
11045 ;;
11046 esac
11047 else case e in #(
11048 e) enable_fast_install=yes ;;
11049 esac
11050 fi
11051
11052
11053
11054
11055
11056
11057
11058
11059 shared_archive_member_spec=
11060 case $host,$enable_shared in
11061 power*-*-aix[5-9]*,yes)
11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11063 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11064 # Check whether --enable-aix-soname was given.
11065 if test ${enable_aix_soname+y}
11066 then :
11067 enableval=$enable_aix_soname; case $enableval in
11068 aix|svr4|both)
11069 ;;
11070 *)
11071 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11072 ;;
11073 esac
11074 lt_cv_with_aix_soname=$enable_aix_soname
11075 else case e in #(
11076 e) # Check whether --with-aix-soname was given.
11077 if test ${with_aix_soname+y}
11078 then :
11079 withval=$with_aix_soname; case $withval in
11080 aix|svr4|both)
11081 ;;
11082 *)
11083 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11084 ;;
11085 esac
11086 lt_cv_with_aix_soname=$with_aix_soname
11087 else case e in #(
11088 e) if test ${lt_cv_with_aix_soname+y}
11089 then :
11090 printf %s "(cached) " >&6
11091 else case e in #(
11092 e) lt_cv_with_aix_soname=aix ;;
11093 esac
11094 fi
11095 ;;
11096 esac
11097 fi
11098
11099 enable_aix_soname=$lt_cv_with_aix_soname ;;
11100 esac
11101 fi
11102
11103 with_aix_soname=$enable_aix_soname
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11105 printf "%s\n" "$with_aix_soname" >&6; }
11106 if test aix != "$with_aix_soname"; then
11107 # For the AIX way of multilib, we name the shared archive member
11108 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11109 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11110 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11111 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11112 if test 64 = "${OBJECT_MODE-32}"; then
11113 shared_archive_member_spec=shr_64
11114 else
11115 shared_archive_member_spec=shr
11116 fi
11117 fi
11118 ;;
11119 *)
11120 with_aix_soname=aix
11121 ;;
11122 esac
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133 # This can be used to rebuild libtool when needed
11134 LIBTOOL_DEPS=$ltmain
11135
11136 # Always use our own libtool.
11137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 test -z "$LN_S" && LN_S="ln -s"
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183 if test -n "${ZSH_VERSION+set}"; then
11184 setopt NO_GLOB_SUBST
11185 fi
11186
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11188 printf %s "checking for objdir... " >&6; }
11189 if test ${lt_cv_objdir+y}
11190 then :
11191 printf %s "(cached) " >&6
11192 else case e in #(
11193 e) rm -f .libs 2>/dev/null
11194 mkdir .libs 2>/dev/null
11195 if test -d .libs; then
11196 lt_cv_objdir=.libs
11197 else
11198 # MS-DOS does not allow filenames that begin with a dot.
11199 lt_cv_objdir=_libs
11200 fi
11201 rmdir .libs 2>/dev/null ;;
11202 esac
11203 fi
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11205 printf "%s\n" "$lt_cv_objdir" >&6; }
11206 objdir=$lt_cv_objdir
11207
11208
11209
11210
11211
11212 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11213
11214
11215
11216
11217 case $host_os in
11218 aix3*)
11219 # AIX sometimes has problems with the GCC collect2 program. For some
11220 # reason, if we set the COLLECT_NAMES environment variable, the problems
11221 # vanish in a puff of smoke.
11222 if test set != "${COLLECT_NAMES+set}"; then
11223 COLLECT_NAMES=
11224 export COLLECT_NAMES
11225 fi
11226 ;;
11227 esac
11228
11229 # Global variables:
11230 ofile=libtool
11231 can_build_shared=yes
11232
11233 # All known linkers require a '.a' archive for static linking (except MSVC and
11234 # ICC, which need '.lib').
11235 libext=a
11236
11237 with_gnu_ld=$lt_cv_prog_gnu_ld
11238
11239 old_CC=$CC
11240 old_CFLAGS=$CFLAGS
11241
11242 # Set sane defaults for various variables
11243 test -z "$CC" && CC=cc
11244 test -z "$LTCC" && LTCC=$CC
11245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11246 test -z "$LD" && LD=ld
11247 test -z "$ac_objext" && ac_objext=o
11248
11249 func_cc_basename $compiler
11250 cc_basename=$func_cc_basename_result
11251
11252
11253 # Only perform the check for file, if the check method requires it
11254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11255 case $deplibs_check_method in
11256 file_magic*)
11257 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11259 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11260 if test ${lt_cv_path_MAGIC_CMD+y}
11261 then :
11262 printf %s "(cached) " >&6
11263 else case e in #(
11264 e) case $MAGIC_CMD in
11265 [\\/*] | ?:[\\/]*)
11266 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11267 ;;
11268 *)
11269 lt_save_MAGIC_CMD=$MAGIC_CMD
11270 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11271 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11272 for ac_dir in $ac_dummy; do
11273 IFS=$lt_save_ifs
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11276 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11277 if test -n "$file_magic_test_file"; then
11278 case $deplibs_check_method in
11279 "file_magic "*)
11280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11281 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11283 $EGREP "$file_magic_regex" > /dev/null; then
11284 :
11285 else
11286 cat <<_LT_EOF 1>&2
11287
11288 *** Warning: the command libtool uses to detect shared libraries,
11289 *** $file_magic_cmd, produces output that libtool cannot recognize.
11290 *** The result is that libtool may fail to recognize shared libraries
11291 *** as such. This will affect the creation of libtool libraries that
11292 *** depend on shared libraries, but programs linked with such libtool
11293 *** libraries will work regardless of this problem. Nevertheless, you
11294 *** may want to report the problem to your system manager and/or to
11295 *** [email protected]
11296
11297 _LT_EOF
11298 fi ;;
11299 esac
11300 fi
11301 break
11302 fi
11303 done
11304 IFS=$lt_save_ifs
11305 MAGIC_CMD=$lt_save_MAGIC_CMD
11306 ;;
11307 esac ;;
11308 esac
11309 fi
11310
11311 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11312 if test -n "$MAGIC_CMD"; then
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11314 printf "%s\n" "$MAGIC_CMD" >&6; }
11315 else
11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 printf "%s\n" "no" >&6; }
11318 fi
11319
11320
11321
11322
11323
11324 if test -z "$lt_cv_path_MAGIC_CMD"; then
11325 if test -n "$ac_tool_prefix"; then
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11327 printf %s "checking for file... " >&6; }
11328 if test ${lt_cv_path_MAGIC_CMD+y}
11329 then :
11330 printf %s "(cached) " >&6
11331 else case e in #(
11332 e) case $MAGIC_CMD in
11333 [\\/*] | ?:[\\/]*)
11334 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11335 ;;
11336 *)
11337 lt_save_MAGIC_CMD=$MAGIC_CMD
11338 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11340 for ac_dir in $ac_dummy; do
11341 IFS=$lt_save_ifs
11342 test -z "$ac_dir" && ac_dir=.
11343 if test -f "$ac_dir/file"; then
11344 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11345 if test -n "$file_magic_test_file"; then
11346 case $deplibs_check_method in
11347 "file_magic "*)
11348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11349 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11351 $EGREP "$file_magic_regex" > /dev/null; then
11352 :
11353 else
11354 cat <<_LT_EOF 1>&2
11355
11356 *** Warning: the command libtool uses to detect shared libraries,
11357 *** $file_magic_cmd, produces output that libtool cannot recognize.
11358 *** The result is that libtool may fail to recognize shared libraries
11359 *** as such. This will affect the creation of libtool libraries that
11360 *** depend on shared libraries, but programs linked with such libtool
11361 *** libraries will work regardless of this problem. Nevertheless, you
11362 *** may want to report the problem to your system manager and/or to
11363 *** [email protected]
11364
11365 _LT_EOF
11366 fi ;;
11367 esac
11368 fi
11369 break
11370 fi
11371 done
11372 IFS=$lt_save_ifs
11373 MAGIC_CMD=$lt_save_MAGIC_CMD
11374 ;;
11375 esac ;;
11376 esac
11377 fi
11378
11379 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11380 if test -n "$MAGIC_CMD"; then
11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11382 printf "%s\n" "$MAGIC_CMD" >&6; }
11383 else
11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 printf "%s\n" "no" >&6; }
11386 fi
11387
11388
11389 else
11390 MAGIC_CMD=:
11391 fi
11392 fi
11393
11394 fi
11395 ;;
11396 esac
11397
11398 # Use C for the default configuration in the libtool script
11399
11400 lt_save_CC=$CC
11401 ac_ext=c
11402 ac_cpp='$CPP $CPPFLAGS'
11403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406
11407
11408 # Source file extension for C test sources.
11409 ac_ext=c
11410
11411 # Object file extension for compiled C test sources.
11412 objext=o
11413 objext=$objext
11414
11415 # Code to be used in simple compile tests
11416 lt_simple_compile_test_code="int some_variable = 0;"
11417
11418 # Code to be used in simple link tests
11419 lt_simple_link_test_code='int main(void){return(0);}'
11420
11421
11422
11423
11424
11425
11426
11427 # If no C compiler was specified, use CC.
11428 LTCC=${LTCC-"$CC"}
11429
11430 # If no C compiler flags were specified, use CFLAGS.
11431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11432
11433 # Allow CC to be a program name with arguments.
11434 compiler=$CC
11435
11436 # Save the default compiler, since it gets overwritten when the other
11437 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11438 compiler_DEFAULT=$CC
11439
11440 # save warnings/boilerplate of simple test code
11441 ac_outfile=conftest.$ac_objext
11442 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11443 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11444 _lt_compiler_boilerplate=`cat conftest.err`
11445 $RM conftest*
11446
11447 ac_outfile=conftest.$ac_objext
11448 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11449 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11450 _lt_linker_boilerplate=`cat conftest.err`
11451 $RM -r conftest*
11452
11453
11454 ## CAVEAT EMPTOR:
11455 ## There is no encapsulation within the following macros, do not change
11456 ## the running order or otherwise move them around unless you know exactly
11457 ## what you are doing...
11458 if test -n "$compiler"; then
11459
11460 lt_prog_compiler_no_builtin_flag=
11461
11462 if test yes = "$GCC"; then
11463 case $cc_basename in
11464 nvcc*)
11465 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11466 *)
11467 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11468 esac
11469
11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11471 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11472 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11473 then :
11474 printf %s "(cached) " >&6
11475 else case e in #(
11476 e) lt_cv_prog_compiler_rtti_exceptions=no
11477 ac_outfile=conftest.$ac_objext
11478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11479 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11480 # Insert the option either (1) after the last *FLAGS variable, or
11481 # (2) before a word containing "conftest.", or (3) at the end.
11482 # Note that $ac_compile itself does not contain backslashes and begins
11483 # with a dollar sign (not a hyphen), so the echo should work correctly.
11484 # The option is referenced via a variable to avoid confusing sed.
11485 lt_compile=`echo "$ac_compile" | $SED \
11486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11488 -e 's:$: $lt_compiler_flag:'`
11489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11490 (eval "$lt_compile" 2>conftest.err)
11491 ac_status=$?
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 if (exit $ac_status) && test -s "$ac_outfile"; then
11495 # The compiler can only warn and ignore the option if not recognized
11496 # So say no if there are warnings other than the usual output.
11497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11500 lt_cv_prog_compiler_rtti_exceptions=yes
11501 fi
11502 fi
11503 $RM conftest*
11504 ;;
11505 esac
11506 fi
11507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11508 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11509
11510 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11512 else
11513 :
11514 fi
11515
11516 fi
11517
11518
11519
11520
11521
11522
11523 lt_prog_compiler_wl=
11524 lt_prog_compiler_pic=
11525 lt_prog_compiler_static=
11526
11527
11528 if test yes = "$GCC"; then
11529 lt_prog_compiler_wl='-Wl,'
11530 lt_prog_compiler_static='-static'
11531
11532 case $host_os in
11533 aix*)
11534 # All AIX code is PIC.
11535 if test ia64 = "$host_cpu"; then
11536 # AIX 5 now supports IA64 processor
11537 lt_prog_compiler_static='-Bstatic'
11538 fi
11539 lt_prog_compiler_pic='-fPIC'
11540 ;;
11541
11542 amigaos*)
11543 case $host_cpu in
11544 powerpc)
11545 # see comment about AmigaOS4 .so support
11546 lt_prog_compiler_pic='-fPIC'
11547 ;;
11548 m68k)
11549 # FIXME: we need at least 68020 code to build shared libraries, but
11550 # adding the '-m68020' flag to GCC prevents building anything better,
11551 # like '-m68040'.
11552 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11553 ;;
11554 esac
11555 ;;
11556
11557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11558 # PIC is the default for these OSes.
11559 ;;
11560
11561 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11562 # This hack is so that the source file can tell whether it is being
11563 # built for inclusion in a dll (and should export symbols for example).
11564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11565 # (--disable-auto-import) libraries
11566 lt_prog_compiler_pic='-DDLL_EXPORT'
11567 case $host_os in
11568 os2*)
11569 lt_prog_compiler_static='$wl-static'
11570 ;;
11571 esac
11572 ;;
11573
11574 darwin* | rhapsody*)
11575 # PIC is the default on this platform
11576 # Common symbols not allowed in MH_DYLIB files
11577 lt_prog_compiler_pic='-fno-common'
11578 ;;
11579
11580 haiku*)
11581 # PIC is the default for Haiku.
11582 # The "-static" flag exists, but is broken.
11583 lt_prog_compiler_static=
11584 ;;
11585
11586 hpux*)
11587 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11588 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11589 # sets the default TLS model and affects inlining.
11590 case $host_cpu in
11591 hppa*64*)
11592 # +Z the default
11593 ;;
11594 *)
11595 lt_prog_compiler_pic='-fPIC'
11596 ;;
11597 esac
11598 ;;
11599
11600 interix[3-9]*)
11601 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11602 # Instead, we relocate shared libraries at runtime.
11603 ;;
11604
11605 msdosdjgpp*)
11606 # Just because we use GCC doesn't mean we suddenly get shared libraries
11607 # on systems that don't support them.
11608 lt_prog_compiler_can_build_shared=no
11609 enable_shared=no
11610 ;;
11611
11612 *nto* | *qnx*)
11613 # QNX uses GNU C++, but need to define -shared option too, otherwise
11614 # it will coredump.
11615 lt_prog_compiler_pic='-fPIC -shared'
11616 ;;
11617
11618 sysv4*MP*)
11619 if test -d /usr/nec; then
11620 lt_prog_compiler_pic=-Kconform_pic
11621 fi
11622 ;;
11623
11624 *)
11625 lt_prog_compiler_pic='-fPIC'
11626 ;;
11627 esac
11628
11629 case $cc_basename in
11630 nvcc*) # Cuda Compiler Driver 2.2
11631 lt_prog_compiler_wl='-Xlinker '
11632 if test -n "$lt_prog_compiler_pic"; then
11633 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11634 fi
11635 ;;
11636 esac
11637 else
11638 # PORTME Check for flag to pass linker flags through the system compiler.
11639 case $host_os in
11640 aix*)
11641 lt_prog_compiler_wl='-Wl,'
11642 if test ia64 = "$host_cpu"; then
11643 # AIX 5 now supports IA64 processor
11644 lt_prog_compiler_static='-Bstatic'
11645 else
11646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11647 fi
11648 ;;
11649
11650 darwin* | rhapsody*)
11651 # PIC is the default on this platform
11652 # Common symbols not allowed in MH_DYLIB files
11653 lt_prog_compiler_pic='-fno-common'
11654 case $cc_basename in
11655 nagfor*)
11656 # NAG Fortran compiler
11657 lt_prog_compiler_wl='-Wl,-Wl,,'
11658 lt_prog_compiler_pic='-PIC'
11659 lt_prog_compiler_static='-Bstatic'
11660 ;;
11661 esac
11662 ;;
11663
11664 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11665 # This hack is so that the source file can tell whether it is being
11666 # built for inclusion in a dll (and should export symbols for example).
11667 lt_prog_compiler_pic='-DDLL_EXPORT'
11668 case $host_os in
11669 os2*)
11670 lt_prog_compiler_static='$wl-static'
11671 ;;
11672 esac
11673 ;;
11674
11675 hpux9* | hpux10* | hpux11*)
11676 lt_prog_compiler_wl='-Wl,'
11677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11678 # not for PA HP-UX.
11679 case $host_cpu in
11680 hppa*64*|ia64*)
11681 # +Z the default
11682 ;;
11683 *)
11684 lt_prog_compiler_pic='+Z'
11685 ;;
11686 esac
11687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11688 lt_prog_compiler_static='$wl-a ${wl}archive'
11689 ;;
11690
11691 irix5* | irix6* | nonstopux*)
11692 lt_prog_compiler_wl='-Wl,'
11693 # PIC (with -KPIC) is the default.
11694 lt_prog_compiler_static='-non_shared'
11695 ;;
11696
11697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11698 case $cc_basename in
11699 # old Intel for x86_64, which still supported -KPIC.
11700 ecc*)
11701 lt_prog_compiler_wl='-Wl,'
11702 lt_prog_compiler_pic='-KPIC'
11703 lt_prog_compiler_static='-static'
11704 ;;
11705 *flang* | ftn | f18* | f95*)
11706 # Flang compiler.
11707 lt_prog_compiler_wl='-Wl,'
11708 lt_prog_compiler_pic='-fPIC'
11709 lt_prog_compiler_static='-static'
11710 ;;
11711 # icc used to be incompatible with GCC.
11712 # ICC 10 doesn't accept -KPIC any more.
11713 icc* | ifort*)
11714 lt_prog_compiler_wl='-Wl,'
11715 lt_prog_compiler_pic='-fPIC'
11716 lt_prog_compiler_static='-static'
11717 ;;
11718 # Lahey Fortran 8.1.
11719 lf95*)
11720 lt_prog_compiler_wl='-Wl,'
11721 lt_prog_compiler_pic='--shared'
11722 lt_prog_compiler_static='--static'
11723 ;;
11724 nagfor*)
11725 # NAG Fortran compiler
11726 lt_prog_compiler_wl='-Wl,-Wl,,'
11727 lt_prog_compiler_pic='-PIC'
11728 lt_prog_compiler_static='-Bstatic'
11729 ;;
11730 tcc*)
11731 # Fabrice Bellard et al's Tiny C Compiler
11732 lt_prog_compiler_wl='-Wl,'
11733 lt_prog_compiler_pic='-fPIC'
11734 lt_prog_compiler_static='-static'
11735 ;;
11736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11737 # Portland Group compilers (*not* the Pentium gcc compiler,
11738 # which looks to be a dead project)
11739 lt_prog_compiler_wl='-Wl,'
11740 lt_prog_compiler_pic='-fpic'
11741 lt_prog_compiler_static='-Bstatic'
11742 ;;
11743 ccc*)
11744 lt_prog_compiler_wl='-Wl,'
11745 # All Alpha code is PIC.
11746 lt_prog_compiler_static='-non_shared'
11747 ;;
11748 xl* | bgxl* | bgf* | mpixl*)
11749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11750 lt_prog_compiler_wl='-Wl,'
11751 lt_prog_compiler_pic='-qpic'
11752 lt_prog_compiler_static='-qstaticlink'
11753 ;;
11754 *)
11755 case `$CC -V 2>&1 | $SED 5q` in
11756 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11758 lt_prog_compiler_pic='-KPIC'
11759 lt_prog_compiler_static='-Bstatic'
11760 lt_prog_compiler_wl=''
11761 ;;
11762 *Sun\ F* | *Sun*Fortran*)
11763 lt_prog_compiler_pic='-KPIC'
11764 lt_prog_compiler_static='-Bstatic'
11765 lt_prog_compiler_wl='-Qoption ld '
11766 ;;
11767 *Sun\ C*)
11768 # Sun C 5.9
11769 lt_prog_compiler_pic='-KPIC'
11770 lt_prog_compiler_static='-Bstatic'
11771 lt_prog_compiler_wl='-Wl,'
11772 ;;
11773 *Intel*\ [CF]*Compiler*)
11774 lt_prog_compiler_wl='-Wl,'
11775 lt_prog_compiler_pic='-fPIC'
11776 lt_prog_compiler_static='-static'
11777 ;;
11778 *Portland\ Group*)
11779 lt_prog_compiler_wl='-Wl,'
11780 lt_prog_compiler_pic='-fpic'
11781 lt_prog_compiler_static='-Bstatic'
11782 ;;
11783 esac
11784 ;;
11785 esac
11786 ;;
11787
11788 newsos6)
11789 lt_prog_compiler_pic='-KPIC'
11790 lt_prog_compiler_static='-Bstatic'
11791 ;;
11792
11793 *-mlibc)
11794 lt_prog_compiler_wl='-Wl,'
11795 lt_prog_compiler_pic='-fPIC'
11796 lt_prog_compiler_static='-static'
11797 ;;
11798
11799 *nto* | *qnx*)
11800 # QNX uses GNU C++, but need to define -shared option too, otherwise
11801 # it will coredump.
11802 lt_prog_compiler_pic='-fPIC -shared'
11803 ;;
11804
11805 osf3* | osf4* | osf5*)
11806 lt_prog_compiler_wl='-Wl,'
11807 # All OSF/1 code is PIC.
11808 lt_prog_compiler_static='-non_shared'
11809 ;;
11810
11811 rdos*)
11812 lt_prog_compiler_static='-non_shared'
11813 ;;
11814
11815 serenity*)
11816 ;;
11817
11818 solaris*)
11819 lt_prog_compiler_pic='-KPIC'
11820 lt_prog_compiler_static='-Bstatic'
11821 case $cc_basename in
11822 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11823 lt_prog_compiler_wl='-Qoption ld ';;
11824 *)
11825 lt_prog_compiler_wl='-Wl,';;
11826 esac
11827 ;;
11828
11829 sunos4*)
11830 lt_prog_compiler_wl='-Qoption ld '
11831 lt_prog_compiler_pic='-PIC'
11832 lt_prog_compiler_static='-Bstatic'
11833 ;;
11834
11835 sysv4 | sysv4.2uw2* | sysv4.3*)
11836 lt_prog_compiler_wl='-Wl,'
11837 lt_prog_compiler_pic='-KPIC'
11838 lt_prog_compiler_static='-Bstatic'
11839 ;;
11840
11841 sysv4*MP*)
11842 if test -d /usr/nec; then
11843 lt_prog_compiler_pic='-Kconform_pic'
11844 lt_prog_compiler_static='-Bstatic'
11845 fi
11846 ;;
11847
11848 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11849 lt_prog_compiler_wl='-Wl,'
11850 lt_prog_compiler_pic='-KPIC'
11851 lt_prog_compiler_static='-Bstatic'
11852 ;;
11853
11854 unicos*)
11855 lt_prog_compiler_wl='-Wl,'
11856 lt_prog_compiler_can_build_shared=no
11857 ;;
11858
11859 uts4*)
11860 lt_prog_compiler_pic='-pic'
11861 lt_prog_compiler_static='-Bstatic'
11862 ;;
11863
11864 *)
11865 lt_prog_compiler_can_build_shared=no
11866 ;;
11867 esac
11868 fi
11869
11870 case $host_os in
11871 # For platforms that do not support PIC, -DPIC is meaningless:
11872 *djgpp*)
11873 lt_prog_compiler_pic=
11874 ;;
11875 *)
11876 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11877 ;;
11878 esac
11879
11880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11881 printf %s "checking for $compiler option to produce PIC... " >&6; }
11882 if test ${lt_cv_prog_compiler_pic+y}
11883 then :
11884 printf %s "(cached) " >&6
11885 else case e in #(
11886 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11887 esac
11888 fi
11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11890 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11891 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11892
11893 #
11894 # Check to make sure the PIC flag actually works.
11895 #
11896 if test -n "$lt_prog_compiler_pic"; then
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11898 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11899 if test ${lt_cv_prog_compiler_pic_works+y}
11900 then :
11901 printf %s "(cached) " >&6
11902 else case e in #(
11903 e) lt_cv_prog_compiler_pic_works=no
11904 ac_outfile=conftest.$ac_objext
11905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11906 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11907 # Insert the option either (1) after the last *FLAGS variable, or
11908 # (2) before a word containing "conftest.", or (3) at the end.
11909 # Note that $ac_compile itself does not contain backslashes and begins
11910 # with a dollar sign (not a hyphen), so the echo should work correctly.
11911 # The option is referenced via a variable to avoid confusing sed.
11912 lt_compile=`echo "$ac_compile" | $SED \
11913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11915 -e 's:$: $lt_compiler_flag:'`
11916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11917 (eval "$lt_compile" 2>conftest.err)
11918 ac_status=$?
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 if (exit $ac_status) && test -s "$ac_outfile"; then
11922 # The compiler can only warn and ignore the option if not recognized
11923 # So say no if there are warnings other than the usual output.
11924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11927 lt_cv_prog_compiler_pic_works=yes
11928 fi
11929 fi
11930 $RM conftest*
11931 ;;
11932 esac
11933 fi
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11935 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11936
11937 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11938 case $lt_prog_compiler_pic in
11939 "" | " "*) ;;
11940 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11941 esac
11942 else
11943 lt_prog_compiler_pic=
11944 lt_prog_compiler_can_build_shared=no
11945 fi
11946
11947 fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959 #
11960 # Check to make sure the static flag actually works.
11961 #
11962 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11964 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11965 if test ${lt_cv_prog_compiler_static_works+y}
11966 then :
11967 printf %s "(cached) " >&6
11968 else case e in #(
11969 e) lt_cv_prog_compiler_static_works=no
11970 save_LDFLAGS=$LDFLAGS
11971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11974 # The linker can only warn and ignore the option if not recognized
11975 # So say no if there are warnings
11976 if test -s conftest.err; then
11977 # Append any errors to the config.log.
11978 cat conftest.err 1>&5
11979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11981 if diff conftest.exp conftest.er2 >/dev/null; then
11982 lt_cv_prog_compiler_static_works=yes
11983 fi
11984 else
11985 lt_cv_prog_compiler_static_works=yes
11986 fi
11987 fi
11988 $RM -r conftest*
11989 LDFLAGS=$save_LDFLAGS
11990 ;;
11991 esac
11992 fi
11993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11994 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11995
11996 if test yes = "$lt_cv_prog_compiler_static_works"; then
11997 :
11998 else
11999 lt_prog_compiler_static=
12000 fi
12001
12002
12003
12004
12005
12006
12007
12008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12009 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12010 if test ${lt_cv_prog_compiler_c_o+y}
12011 then :
12012 printf %s "(cached) " >&6
12013 else case e in #(
12014 e) lt_cv_prog_compiler_c_o=no
12015 $RM -r conftest 2>/dev/null
12016 mkdir conftest
12017 cd conftest
12018 mkdir out
12019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12020
12021 lt_compiler_flag="-o out/conftest2.$ac_objext"
12022 # Insert the option either (1) after the last *FLAGS variable, or
12023 # (2) before a word containing "conftest.", or (3) at the end.
12024 # Note that $ac_compile itself does not contain backslashes and begins
12025 # with a dollar sign (not a hyphen), so the echo should work correctly.
12026 lt_compile=`echo "$ac_compile" | $SED \
12027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12029 -e 's:$: $lt_compiler_flag:'`
12030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12031 (eval "$lt_compile" 2>out/conftest.err)
12032 ac_status=$?
12033 cat out/conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12036 then
12037 # The compiler can only warn and ignore the option if not recognized
12038 # So say no if there are warnings
12039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12042 lt_cv_prog_compiler_c_o=yes
12043 fi
12044 fi
12045 chmod u+w . 2>&5
12046 $RM conftest*
12047 # SGI C++ compiler will create directory out/ii_files/ for
12048 # template instantiation
12049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12050 $RM out/* && rmdir out
12051 cd ..
12052 $RM -r conftest
12053 $RM conftest*
12054 ;;
12055 esac
12056 fi
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12058 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12059
12060
12061
12062
12063
12064
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12066 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12067 if test ${lt_cv_prog_compiler_c_o+y}
12068 then :
12069 printf %s "(cached) " >&6
12070 else case e in #(
12071 e) lt_cv_prog_compiler_c_o=no
12072 $RM -r conftest 2>/dev/null
12073 mkdir conftest
12074 cd conftest
12075 mkdir out
12076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12077
12078 lt_compiler_flag="-o out/conftest2.$ac_objext"
12079 # Insert the option either (1) after the last *FLAGS variable, or
12080 # (2) before a word containing "conftest.", or (3) at the end.
12081 # Note that $ac_compile itself does not contain backslashes and begins
12082 # with a dollar sign (not a hyphen), so the echo should work correctly.
12083 lt_compile=`echo "$ac_compile" | $SED \
12084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12086 -e 's:$: $lt_compiler_flag:'`
12087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12088 (eval "$lt_compile" 2>out/conftest.err)
12089 ac_status=$?
12090 cat out/conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12093 then
12094 # The compiler can only warn and ignore the option if not recognized
12095 # So say no if there are warnings
12096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12099 lt_cv_prog_compiler_c_o=yes
12100 fi
12101 fi
12102 chmod u+w . 2>&5
12103 $RM conftest*
12104 # SGI C++ compiler will create directory out/ii_files/ for
12105 # template instantiation
12106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12107 $RM out/* && rmdir out
12108 cd ..
12109 $RM -r conftest
12110 $RM conftest*
12111 ;;
12112 esac
12113 fi
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12115 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12116
12117
12118
12119
12120 hard_links=nottested
12121 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12122 # do not overwrite the value of need_locks provided by the user
12123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12124 printf %s "checking if we can lock with hard links... " >&6; }
12125 hard_links=yes
12126 $RM conftest*
12127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12128 touch conftest.a
12129 ln conftest.a conftest.b 2>&5 || hard_links=no
12130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12132 printf "%s\n" "$hard_links" >&6; }
12133 if test no = "$hard_links"; then
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12135 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12136 need_locks=warn
12137 fi
12138 else
12139 need_locks=no
12140 fi
12141
12142
12143
12144
12145
12146
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12148 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12149
12150 runpath_var=
12151 allow_undefined_flag=
12152 always_export_symbols=no
12153 archive_cmds=
12154 archive_expsym_cmds=
12155 compiler_needs_object=no
12156 enable_shared_with_static_runtimes=no
12157 export_dynamic_flag_spec=
12158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12159 hardcode_automatic=no
12160 hardcode_direct=no
12161 hardcode_direct_absolute=no
12162 hardcode_libdir_flag_spec=
12163 hardcode_libdir_separator=
12164 hardcode_minus_L=no
12165 hardcode_shlibpath_var=unsupported
12166 inherit_rpath=no
12167 link_all_deplibs=unknown
12168 module_cmds=
12169 module_expsym_cmds=
12170 old_archive_from_new_cmds=
12171 old_archive_from_expsyms_cmds=
12172 thread_safe_flag_spec=
12173 whole_archive_flag_spec=
12174 # include_expsyms should be a list of space-separated symbols to be *always*
12175 # included in the symbol list
12176 include_expsyms=
12177 # exclude_expsyms can be an extended regexp of symbols to exclude
12178 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12179 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12180 # as well as any symbol that contains 'd'.
12181 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12183 # platforms (ab)use it in PIC code, but their linkers get confused if
12184 # the symbol is explicitly referenced. Since portable code cannot
12185 # rely on this symbol name, it's probably fine to never include it in
12186 # preloaded symbol tables.
12187 # Exclude shared library initialization/finalization symbols.
12188 extract_expsyms_cmds=
12189
12190 case $host_os in
12191 cygwin* | mingw* | windows* | pw32* | cegcc*)
12192 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12193 # When not using gcc, we currently assume that we are using
12194 # Microsoft Visual C++ or Intel C++ Compiler.
12195 if test yes != "$GCC"; then
12196 with_gnu_ld=no
12197 fi
12198 ;;
12199 interix*)
12200 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12201 with_gnu_ld=yes
12202 ;;
12203 esac
12204
12205 ld_shlibs=yes
12206
12207 # On some targets, GNU ld is compatible enough with the native linker
12208 # that we're better off using the native interface for both.
12209 lt_use_gnu_ld_interface=no
12210 if test yes = "$with_gnu_ld"; then
12211 case $host_os in
12212 aix*)
12213 # The AIX port of GNU ld has always aspired to compatibility
12214 # with the native linker. However, as the warning in the GNU ld
12215 # block says, versions before 2.19.5* couldn't really create working
12216 # shared libraries, regardless of the interface used.
12217 case `$LD -v 2>&1` in
12218 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12219 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12220 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12221 *)
12222 lt_use_gnu_ld_interface=yes
12223 ;;
12224 esac
12225 ;;
12226 *)
12227 lt_use_gnu_ld_interface=yes
12228 ;;
12229 esac
12230 fi
12231
12232 if test yes = "$lt_use_gnu_ld_interface"; then
12233 # If archive_cmds runs LD, not CC, wlarc should be empty
12234 wlarc='$wl'
12235
12236 # Set some defaults for GNU ld with shared library support. These
12237 # are reset later if shared libraries are not supported. Putting them
12238 # here allows them to be overridden if necessary.
12239 runpath_var=LD_RUN_PATH
12240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12241 export_dynamic_flag_spec='$wl--export-dynamic'
12242 # ancient GNU ld didn't support --whole-archive et. al.
12243 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12244 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12245 else
12246 whole_archive_flag_spec=
12247 fi
12248 supports_anon_versioning=no
12249 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12250 *GNU\ gold*) supports_anon_versioning=yes ;;
12251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12254 *\ 2.11.*) ;; # other 2.11 versions
12255 *) supports_anon_versioning=yes ;;
12256 esac
12257
12258 # See if GNU ld supports shared libraries.
12259 case $host_os in
12260 aix[3-9]*)
12261 # On AIX/PPC, the GNU linker is very broken
12262 if test ia64 != "$host_cpu"; then
12263 ld_shlibs=no
12264 cat <<_LT_EOF 1>&2
12265
12266 *** Warning: the GNU linker, at least up to release 2.19, is reported
12267 *** to be unable to reliably create shared libraries on AIX.
12268 *** Therefore, libtool is disabling shared libraries support. If you
12269 *** really care for shared libraries, you may want to install binutils
12270 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12271 *** You will then need to restart the configuration process.
12272
12273 _LT_EOF
12274 fi
12275 ;;
12276
12277 amigaos*)
12278 case $host_cpu in
12279 powerpc)
12280 # see comment about AmigaOS4 .so support
12281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12282 archive_expsym_cmds=''
12283 ;;
12284 m68k)
12285 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)'
12286 hardcode_libdir_flag_spec='-L$libdir'
12287 hardcode_minus_L=yes
12288 ;;
12289 esac
12290 ;;
12291
12292 beos*)
12293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12294 allow_undefined_flag=unsupported
12295 # Joseph Beckenbach <[email protected]> says some releases of gcc
12296 # support --undefined. This deserves some investigation. FIXME
12297 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12298 else
12299 ld_shlibs=no
12300 fi
12301 ;;
12302
12303 cygwin* | mingw* | windows* | pw32* | cegcc*)
12304 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12305 # as there is no search path for DLLs.
12306 hardcode_libdir_flag_spec='-L$libdir'
12307 export_dynamic_flag_spec='$wl--export-all-symbols'
12308 allow_undefined_flag=unsupported
12309 always_export_symbols=no
12310 enable_shared_with_static_runtimes=yes
12311 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'
12312 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12313 file_list_spec='@'
12314
12315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12317 # If the export-symbols file already is a .def file, use it as
12318 # is; otherwise, prepend EXPORTS...
12319 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12320 cp $export_symbols $output_objdir/$soname.def;
12321 else
12322 echo EXPORTS > $output_objdir/$soname.def;
12323 cat $export_symbols >> $output_objdir/$soname.def;
12324 fi~
12325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12326 else
12327 ld_shlibs=no
12328 fi
12329 ;;
12330
12331 haiku*)
12332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12333 link_all_deplibs=no
12334 ;;
12335
12336 os2*)
12337 hardcode_libdir_flag_spec='-L$libdir'
12338 hardcode_minus_L=yes
12339 allow_undefined_flag=unsupported
12340 shrext_cmds=.dll
12341 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12342 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12343 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12344 $ECHO EXPORTS >> $output_objdir/$libname.def~
12345 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12346 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12347 emximp -o $lib $output_objdir/$libname.def'
12348 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12351 $ECHO EXPORTS >> $output_objdir/$libname.def~
12352 prefix_cmds="$SED"~
12353 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12354 prefix_cmds="$prefix_cmds -e 1d";
12355 fi~
12356 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12357 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12359 emximp -o $lib $output_objdir/$libname.def'
12360 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12361 enable_shared_with_static_runtimes=yes
12362 file_list_spec='@'
12363 ;;
12364
12365 interix[3-9]*)
12366 hardcode_direct=no
12367 hardcode_shlibpath_var=no
12368 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12369 export_dynamic_flag_spec='$wl-E'
12370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12371 # Instead, shared libraries are loaded at an image base (0x10000000 by
12372 # default) and relocated if they conflict, which is a slow very memory
12373 # consuming and fragmenting process. To avoid this, we pick a random,
12374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12377 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'
12378 ;;
12379
12380 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12381 tmp_diet=no
12382 if test linux-dietlibc = "$host_os"; then
12383 case $cc_basename in
12384 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12385 esac
12386 fi
12387 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12388 && test no = "$tmp_diet"
12389 then
12390 tmp_addflag=' $pic_flag'
12391 tmp_sharedflag='-shared'
12392 case $cc_basename,$host_cpu in
12393 pgcc*) # Portland Group C compiler
12394 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'
12395 tmp_addflag=' $pic_flag'
12396 ;;
12397 pgf77* | pgf90* | pgf95* | pgfortran*)
12398 # Portland Group f77 and f90 compilers
12399 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'
12400 tmp_addflag=' $pic_flag -Mnomain' ;;
12401 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12402 tmp_addflag=' -i_dynamic' ;;
12403 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12404 tmp_addflag=' -i_dynamic -nofor_main' ;;
12405 ifc* | ifort*) # Intel Fortran compiler
12406 tmp_addflag=' -nofor_main' ;;
12407 lf95*) # Lahey Fortran 8.1
12408 whole_archive_flag_spec=
12409 tmp_sharedflag='--shared' ;;
12410 nagfor*) # NAGFOR 5.3
12411 tmp_sharedflag='-Wl,-shared' ;;
12412 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12413 tmp_sharedflag='-qmkshrobj'
12414 tmp_addflag= ;;
12415 nvcc*) # Cuda Compiler Driver 2.2
12416 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'
12417 compiler_needs_object=yes
12418 ;;
12419 esac
12420 case `$CC -V 2>&1 | $SED 5q` in
12421 *Sun\ C*) # Sun C 5.9
12422 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'
12423 compiler_needs_object=yes
12424 tmp_sharedflag='-G' ;;
12425 *Sun\ F*) # Sun Fortran 8.3
12426 tmp_sharedflag='-G' ;;
12427 esac
12428 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12429
12430 if test yes = "$supports_anon_versioning"; then
12431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12432 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12433 echo "local: *; };" >> $output_objdir/$libname.ver~
12434 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12435 fi
12436
12437 case $cc_basename in
12438 tcc*)
12439 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12440 export_dynamic_flag_spec='-rdynamic'
12441 ;;
12442 xlf* | bgf* | bgxlf* | mpixlf*)
12443 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12444 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12446 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12447 if test yes = "$supports_anon_versioning"; then
12448 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12449 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12450 echo "local: *; };" >> $output_objdir/$libname.ver~
12451 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12452 fi
12453 ;;
12454 esac
12455 else
12456 ld_shlibs=no
12457 fi
12458 ;;
12459
12460 *-mlibc)
12461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12463 ;;
12464
12465 netbsd* | netbsdelf*-gnu)
12466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12467 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12468 wlarc=
12469 else
12470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12471 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12472 fi
12473 ;;
12474
12475 solaris*)
12476 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12477 ld_shlibs=no
12478 cat <<_LT_EOF 1>&2
12479
12480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12481 *** create shared libraries on Solaris systems. Therefore, libtool
12482 *** is disabling shared libraries support. We urge you to upgrade GNU
12483 *** binutils to release 2.9.1 or newer. Another option is to modify
12484 *** your PATH or compiler configuration so that the native linker is
12485 *** used, and then restart.
12486
12487 _LT_EOF
12488 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12491 else
12492 ld_shlibs=no
12493 fi
12494 ;;
12495
12496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12497 case `$LD -v 2>&1` in
12498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12499 ld_shlibs=no
12500 cat <<_LT_EOF 1>&2
12501
12502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12503 *** reliably create shared libraries on SCO systems. Therefore, libtool
12504 *** is disabling shared libraries support. We urge you to upgrade GNU
12505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12506 *** your PATH or compiler configuration so that the native linker is
12507 *** used, and then restart.
12508
12509 _LT_EOF
12510 ;;
12511 *)
12512 # For security reasons, it is highly recommended that you always
12513 # use absolute paths for naming shared libraries, and exclude the
12514 # DT_RUNPATH tag from executables and libraries. But doing so
12515 # requires that you compile everything twice, which is a pain.
12516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12520 else
12521 ld_shlibs=no
12522 fi
12523 ;;
12524 esac
12525 ;;
12526
12527 sunos4*)
12528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12529 wlarc=
12530 hardcode_direct=yes
12531 hardcode_shlibpath_var=no
12532 ;;
12533
12534 *)
12535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12538 else
12539 ld_shlibs=no
12540 fi
12541 ;;
12542 esac
12543
12544 if test no = "$ld_shlibs"; then
12545 runpath_var=
12546 hardcode_libdir_flag_spec=
12547 export_dynamic_flag_spec=
12548 whole_archive_flag_spec=
12549 fi
12550 else
12551 # PORTME fill in a description of your system's linker (not GNU ld)
12552 case $host_os in
12553 aix3*)
12554 allow_undefined_flag=unsupported
12555 always_export_symbols=yes
12556 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'
12557 # Note: this linker hardcodes the directories in LIBPATH if there
12558 # are no directories specified by -L.
12559 hardcode_minus_L=yes
12560 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12561 # Neither direct hardcoding nor static linking is supported with a
12562 # broken collect2.
12563 hardcode_direct=unsupported
12564 fi
12565 ;;
12566
12567 aix[4-9]*)
12568 if test ia64 = "$host_cpu"; then
12569 # On IA64, the linker does run time linking by default, so we don't
12570 # have to do anything special.
12571 aix_use_runtimelinking=no
12572 exp_sym_flag='-Bexport'
12573 no_entry_flag=
12574 else
12575 # If we're using GNU nm, then we don't want the "-C" option.
12576 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12577 # Without the "-l" option, or with the "-B" option, AIX nm treats
12578 # weak defined symbols like other global defined symbols, whereas
12579 # GNU nm marks them as "W".
12580 # While the 'weak' keyword is ignored in the Export File, we need
12581 # it in the Import File for the 'aix-soname' feature, so we have
12582 # to replace the "-B" option with "-P" for AIX nm.
12583 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12584 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'
12585 else
12586 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 == "L") || (\$ 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'
12587 fi
12588 aix_use_runtimelinking=no
12589
12590 # Test if we are trying to use run time linking or normal
12591 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12592 # have runtime linking enabled, and use it for executables.
12593 # For shared libraries, we enable/disable runtime linking
12594 # depending on the kind of the shared library created -
12595 # when "with_aix_soname,aix_use_runtimelinking" is:
12596 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12597 # "aix,yes" lib.so shared, rtl:yes, for executables
12598 # lib.a static archive
12599 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12600 # lib.a(lib.so.V) shared, rtl:no, for executables
12601 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12602 # lib.a(lib.so.V) shared, rtl:no
12603 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12604 # lib.a static archive
12605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12606 for ld_flag in $LDFLAGS; do
12607 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12608 aix_use_runtimelinking=yes
12609 break
12610 fi
12611 done
12612 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12613 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12614 # so we don't have lib.a shared libs to link our executables.
12615 # We have to force runtime linking in this case.
12616 aix_use_runtimelinking=yes
12617 LDFLAGS="$LDFLAGS -Wl,-brtl"
12618 fi
12619 ;;
12620 esac
12621
12622 exp_sym_flag='-bexport'
12623 no_entry_flag='-bnoentry'
12624 fi
12625
12626 # When large executables or shared objects are built, AIX ld can
12627 # have problems creating the table of contents. If linking a library
12628 # or program results in "error TOC overflow" add -mminimal-toc to
12629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12631
12632 archive_cmds=''
12633 hardcode_direct=yes
12634 hardcode_direct_absolute=yes
12635 hardcode_libdir_separator=':'
12636 link_all_deplibs=yes
12637 file_list_spec='$wl-f,'
12638 case $with_aix_soname,$aix_use_runtimelinking in
12639 aix,*) ;; # traditional, no import file
12640 svr4,* | *,yes) # use import file
12641 # The Import File defines what to hardcode.
12642 hardcode_direct=no
12643 hardcode_direct_absolute=no
12644 ;;
12645 esac
12646
12647 if test yes = "$GCC"; then
12648 case $host_os in aix4.[012]|aix4.[012].*)
12649 # We only want to do this on AIX 4.2 and lower, the check
12650 # below for broken collect2 doesn't work under 4.3+
12651 collect2name=`$CC -print-prog-name=collect2`
12652 if test -f "$collect2name" &&
12653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12654 then
12655 # We have reworked collect2
12656 :
12657 else
12658 # We have old collect2
12659 hardcode_direct=unsupported
12660 # It fails to find uninstalled libraries when the uninstalled
12661 # path is not listed in the libpath. Setting hardcode_minus_L
12662 # to unsupported forces relinking
12663 hardcode_minus_L=yes
12664 hardcode_libdir_flag_spec='-L$libdir'
12665 hardcode_libdir_separator=
12666 fi
12667 ;;
12668 esac
12669 shared_flag='-shared'
12670 if test yes = "$aix_use_runtimelinking"; then
12671 shared_flag="$shared_flag "'$wl-G'
12672 fi
12673 # Need to ensure runtime linking is disabled for the traditional
12674 # shared library, or the linker may eventually find shared libraries
12675 # /with/ Import File - we do not want to mix them.
12676 shared_flag_aix='-shared'
12677 shared_flag_svr4='-shared $wl-G'
12678 else
12679 # not using gcc
12680 if test ia64 = "$host_cpu"; then
12681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12682 # chokes on -Wl,-G. The following line is correct:
12683 shared_flag='-G'
12684 else
12685 if test yes = "$aix_use_runtimelinking"; then
12686 shared_flag='$wl-G'
12687 else
12688 shared_flag='$wl-bM:SRE'
12689 fi
12690 shared_flag_aix='$wl-bM:SRE'
12691 shared_flag_svr4='$wl-G'
12692 fi
12693 fi
12694
12695 export_dynamic_flag_spec='$wl-bexpall'
12696 # It seems that -bexpall does not export symbols beginning with
12697 # underscore (_), so it is better to generate a list of symbols to export.
12698 always_export_symbols=yes
12699 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12700 # Warning - without using the other runtime loading flags (-brtl),
12701 # -berok will link without error, but may produce a broken library.
12702 allow_undefined_flag='-berok'
12703 # Determine the default libpath from the value encoded in an
12704 # empty executable.
12705 if test set = "${lt_cv_aix_libpath+set}"; then
12706 aix_libpath=$lt_cv_aix_libpath
12707 else
12708 if test ${lt_cv_aix_libpath_+y}
12709 then :
12710 printf %s "(cached) " >&6
12711 else case e in #(
12712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714
12715 int
12716 main (void)
12717 {
12718
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"
12724 then :
12725
12726 lt_aix_libpath_sed='
12727 /Import File Strings/,/^$/ {
12728 /^0/ {
12729 s/^0 *\([^ ]*\) *$/\1/
12730 p
12731 }
12732 }'
12733 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12734 # Check for a 64-bit object if we didn't find anything.
12735 if test -z "$lt_cv_aix_libpath_"; then
12736 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12737 fi
12738 fi
12739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12740 conftest$ac_exeext conftest.$ac_ext
12741 if test -z "$lt_cv_aix_libpath_"; then
12742 lt_cv_aix_libpath_=/usr/lib:/lib
12743 fi
12744 ;;
12745 esac
12746 fi
12747
12748 aix_libpath=$lt_cv_aix_libpath_
12749 fi
12750
12751 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12752 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
12753 else
12754 if test ia64 = "$host_cpu"; then
12755 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12756 allow_undefined_flag="-z nodefs"
12757 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"
12758 else
12759 # Determine the default libpath from the value encoded in an
12760 # empty executable.
12761 if test set = "${lt_cv_aix_libpath+set}"; then
12762 aix_libpath=$lt_cv_aix_libpath
12763 else
12764 if test ${lt_cv_aix_libpath_+y}
12765 then :
12766 printf %s "(cached) " >&6
12767 else case e in #(
12768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770
12771 int
12772 main (void)
12773 {
12774
12775 ;
12776 return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_link "$LINENO"
12780 then :
12781
12782 lt_aix_libpath_sed='
12783 /Import File Strings/,/^$/ {
12784 /^0/ {
12785 s/^0 *\([^ ]*\) *$/\1/
12786 p
12787 }
12788 }'
12789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12790 # Check for a 64-bit object if we didn't find anything.
12791 if test -z "$lt_cv_aix_libpath_"; then
12792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12793 fi
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12796 conftest$ac_exeext conftest.$ac_ext
12797 if test -z "$lt_cv_aix_libpath_"; then
12798 lt_cv_aix_libpath_=/usr/lib:/lib
12799 fi
12800 ;;
12801 esac
12802 fi
12803
12804 aix_libpath=$lt_cv_aix_libpath_
12805 fi
12806
12807 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12808 # Warning - without using the other run time loading flags,
12809 # -berok will link without error, but may produce a broken library.
12810 no_undefined_flag=' $wl-bernotok'
12811 allow_undefined_flag=' $wl-berok'
12812 if test yes = "$with_gnu_ld"; then
12813 # We only use this code for GNU lds that support --whole-archive.
12814 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12815 else
12816 # Exported symbols can be pulled into shared objects from archives
12817 whole_archive_flag_spec='$convenience'
12818 fi
12819 archive_cmds_need_lc=yes
12820 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12821 # -brtl affects multiple linker settings, -berok does not and is overridden later
12822 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12823 if test svr4 != "$with_aix_soname"; then
12824 # This is similar to how AIX traditionally builds its shared libraries.
12825 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'
12826 fi
12827 if test aix != "$with_aix_soname"; then
12828 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'
12829 else
12830 # used by -dlpreopen to get the symbols
12831 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12832 fi
12833 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12834 fi
12835 fi
12836 ;;
12837
12838 amigaos*)
12839 case $host_cpu in
12840 powerpc)
12841 # see comment about AmigaOS4 .so support
12842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12843 archive_expsym_cmds=''
12844 ;;
12845 m68k)
12846 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)'
12847 hardcode_libdir_flag_spec='-L$libdir'
12848 hardcode_minus_L=yes
12849 ;;
12850 esac
12851 ;;
12852
12853 bsdi[45]*)
12854 export_dynamic_flag_spec=-rdynamic
12855 ;;
12856
12857 cygwin* | mingw* | windows* | pw32* | cegcc*)
12858 # When not using gcc, we currently assume that we are using
12859 # Microsoft Visual C++ or Intel C++ Compiler.
12860 # hardcode_libdir_flag_spec is actually meaningless, as there is
12861 # no search path for DLLs.
12862 case $cc_basename in
12863 cl* | icl*)
12864 # Native MSVC or ICC
12865 hardcode_libdir_flag_spec=' '
12866 allow_undefined_flag=unsupported
12867 always_export_symbols=yes
12868 file_list_spec='@'
12869 # Tell ltmain to make .lib files, not .a files.
12870 libext=lib
12871 # Tell ltmain to make .dll files, not .so files.
12872 shrext_cmds=.dll
12873 # FIXME: Setting linknames here is a bad hack.
12874 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12876 cp "$export_symbols" "$output_objdir/$soname.def";
12877 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12878 else
12879 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12880 fi~
12881 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12882 linknames='
12883 # The linker will not automatically build a static lib if we build a DLL.
12884 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12885 enable_shared_with_static_runtimes=yes
12886 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12888 # Don't use ranlib
12889 old_postinstall_cmds='chmod 644 $oldlib'
12890 postlink_cmds='lt_outputfile="@OUTPUT@"~
12891 lt_tool_outputfile="@TOOL_OUTPUT@"~
12892 case $lt_outputfile in
12893 *.exe|*.EXE) ;;
12894 *)
12895 lt_outputfile=$lt_outputfile.exe
12896 lt_tool_outputfile=$lt_tool_outputfile.exe
12897 ;;
12898 esac~
12899 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12900 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12901 $RM "$lt_outputfile.manifest";
12902 fi'
12903 ;;
12904 *)
12905 # Assume MSVC and ICC wrapper
12906 hardcode_libdir_flag_spec=' '
12907 allow_undefined_flag=unsupported
12908 # Tell ltmain to make .lib files, not .a files.
12909 libext=lib
12910 # Tell ltmain to make .dll files, not .so files.
12911 shrext_cmds=.dll
12912 # FIXME: Setting linknames here is a bad hack.
12913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12914 # The linker will automatically build a .lib file if we build a DLL.
12915 old_archive_from_new_cmds='true'
12916 # FIXME: Should let the user specify the lib program.
12917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12918 enable_shared_with_static_runtimes=yes
12919 ;;
12920 esac
12921 ;;
12922
12923 darwin* | rhapsody*)
12924
12925
12926 archive_cmds_need_lc=no
12927 hardcode_direct=no
12928 hardcode_automatic=yes
12929 hardcode_shlibpath_var=unsupported
12930 if test yes = "$lt_cv_ld_force_load"; then
12931 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\"`'
12932
12933 else
12934 whole_archive_flag_spec=''
12935 fi
12936 link_all_deplibs=yes
12937 allow_undefined_flag=$_lt_dar_allow_undefined
12938 case $cc_basename in
12939 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12940 *) _lt_dar_can_shared=$GCC ;;
12941 esac
12942 if test yes = "$_lt_dar_can_shared"; then
12943 output_verbose_link_cmd=func_echo_all
12944 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12945 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12946 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"
12947 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"
12948
12949 else
12950 ld_shlibs=no
12951 fi
12952
12953 ;;
12954
12955 dgux*)
12956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12957 hardcode_libdir_flag_spec='-L$libdir'
12958 hardcode_shlibpath_var=no
12959 ;;
12960
12961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12962 # support. Future versions do this automatically, but an explicit c++rt0.o
12963 # does not break anything, and helps significantly (at the cost of a little
12964 # extra space).
12965 freebsd2.2*)
12966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12967 hardcode_libdir_flag_spec='-R$libdir'
12968 hardcode_direct=yes
12969 hardcode_shlibpath_var=no
12970 ;;
12971
12972 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12973 freebsd2.*)
12974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12975 hardcode_direct=yes
12976 hardcode_minus_L=yes
12977 hardcode_shlibpath_var=no
12978 ;;
12979
12980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12981 freebsd* | dragonfly* | midnightbsd*)
12982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12983 hardcode_libdir_flag_spec='-R$libdir'
12984 hardcode_direct=yes
12985 hardcode_shlibpath_var=no
12986 ;;
12987
12988 hpux9*)
12989 if test yes = "$GCC"; then
12990 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'
12991 else
12992 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'
12993 fi
12994 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12995 hardcode_libdir_separator=:
12996 hardcode_direct=yes
12997
12998 # hardcode_minus_L: Not really in the search PATH,
12999 # but as the default location of the library.
13000 hardcode_minus_L=yes
13001 export_dynamic_flag_spec='$wl-E'
13002 ;;
13003
13004 hpux10*)
13005 if test yes,no = "$GCC,$with_gnu_ld"; then
13006 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13007 else
13008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13009 fi
13010 if test no = "$with_gnu_ld"; then
13011 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13012 hardcode_libdir_separator=:
13013 hardcode_direct=yes
13014 hardcode_direct_absolute=yes
13015 export_dynamic_flag_spec='$wl-E'
13016 # hardcode_minus_L: Not really in the search PATH,
13017 # but as the default location of the library.
13018 hardcode_minus_L=yes
13019 fi
13020 ;;
13021
13022 hpux11*)
13023 if test yes,no = "$GCC,$with_gnu_ld"; then
13024 case $host_cpu in
13025 hppa*64*)
13026 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13027 ;;
13028 ia64*)
13029 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13030 ;;
13031 *)
13032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13033 ;;
13034 esac
13035 else
13036 case $host_cpu in
13037 hppa*64*)
13038 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13039 ;;
13040 ia64*)
13041 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13042 ;;
13043 *)
13044
13045 # Older versions of the 11.00 compiler do not understand -b yet
13046 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13048 printf %s "checking if $CC understands -b... " >&6; }
13049 if test ${lt_cv_prog_compiler__b+y}
13050 then :
13051 printf %s "(cached) " >&6
13052 else case e in #(
13053 e) lt_cv_prog_compiler__b=no
13054 save_LDFLAGS=$LDFLAGS
13055 LDFLAGS="$LDFLAGS -b"
13056 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13058 # The linker can only warn and ignore the option if not recognized
13059 # So say no if there are warnings
13060 if test -s conftest.err; then
13061 # Append any errors to the config.log.
13062 cat conftest.err 1>&5
13063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13065 if diff conftest.exp conftest.er2 >/dev/null; then
13066 lt_cv_prog_compiler__b=yes
13067 fi
13068 else
13069 lt_cv_prog_compiler__b=yes
13070 fi
13071 fi
13072 $RM -r conftest*
13073 LDFLAGS=$save_LDFLAGS
13074 ;;
13075 esac
13076 fi
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13078 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13079
13080 if test yes = "$lt_cv_prog_compiler__b"; then
13081 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13082 else
13083 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13084 fi
13085
13086 ;;
13087 esac
13088 fi
13089 if test no = "$with_gnu_ld"; then
13090 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13091 hardcode_libdir_separator=:
13092
13093 case $host_cpu in
13094 hppa*64*|ia64*)
13095 hardcode_direct=no
13096 hardcode_shlibpath_var=no
13097 ;;
13098 *)
13099 hardcode_direct=yes
13100 hardcode_direct_absolute=yes
13101 export_dynamic_flag_spec='$wl-E'
13102
13103 # hardcode_minus_L: Not really in the search PATH,
13104 # but as the default location of the library.
13105 hardcode_minus_L=yes
13106 ;;
13107 esac
13108 fi
13109 ;;
13110
13111 irix5* | irix6* | nonstopux*)
13112 if test yes = "$GCC"; then
13113 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'
13114 # Try to use the -exported_symbol ld option, if it does not
13115 # work, assume that -exports_file does not work either and
13116 # implicitly export all symbols.
13117 # This should be the same for all languages, so no per-tag cache variable.
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13119 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13120 if test ${lt_cv_irix_exported_symbol+y}
13121 then :
13122 printf %s "(cached) " >&6
13123 else case e in #(
13124 e) save_LDFLAGS=$LDFLAGS
13125 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 int foo (void) { return 0; }
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"
13131 then :
13132 lt_cv_irix_exported_symbol=yes
13133 else case e in #(
13134 e) lt_cv_irix_exported_symbol=no ;;
13135 esac
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13138 conftest$ac_exeext conftest.$ac_ext
13139 LDFLAGS=$save_LDFLAGS ;;
13140 esac
13141 fi
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13143 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13144 if test yes = "$lt_cv_irix_exported_symbol"; then
13145 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'
13146 fi
13147 else
13148 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'
13149 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'
13150 fi
13151 archive_cmds_need_lc='no'
13152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13153 hardcode_libdir_separator=:
13154 inherit_rpath=yes
13155 link_all_deplibs=yes
13156 ;;
13157
13158 linux*)
13159 case $cc_basename in
13160 tcc*)
13161 # Fabrice Bellard et al's Tiny C Compiler
13162 ld_shlibs=yes
13163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13165 ;;
13166 esac
13167 ;;
13168
13169 *-mlibc)
13170 ;;
13171
13172 netbsd* | netbsdelf*-gnu)
13173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13175 else
13176 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13177 fi
13178 hardcode_libdir_flag_spec='-R$libdir'
13179 hardcode_direct=yes
13180 hardcode_shlibpath_var=no
13181 ;;
13182
13183 newsos6)
13184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13185 hardcode_direct=yes
13186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13187 hardcode_libdir_separator=:
13188 hardcode_shlibpath_var=no
13189 ;;
13190
13191 *nto* | *qnx*)
13192 ;;
13193
13194 openbsd*)
13195 if test -f /usr/libexec/ld.so; then
13196 hardcode_direct=yes
13197 hardcode_shlibpath_var=no
13198 hardcode_direct_absolute=yes
13199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13202 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13203 export_dynamic_flag_spec='$wl-E'
13204 else
13205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13206 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13207 fi
13208 else
13209 ld_shlibs=no
13210 fi
13211 ;;
13212
13213 os2*)
13214 hardcode_libdir_flag_spec='-L$libdir'
13215 hardcode_minus_L=yes
13216 allow_undefined_flag=unsupported
13217 shrext_cmds=.dll
13218 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13219 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13220 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13221 $ECHO EXPORTS >> $output_objdir/$libname.def~
13222 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13223 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13224 emximp -o $lib $output_objdir/$libname.def'
13225 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13226 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13227 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13228 $ECHO EXPORTS >> $output_objdir/$libname.def~
13229 prefix_cmds="$SED"~
13230 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13231 prefix_cmds="$prefix_cmds -e 1d";
13232 fi~
13233 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13234 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13235 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13236 emximp -o $lib $output_objdir/$libname.def'
13237 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13238 enable_shared_with_static_runtimes=yes
13239 file_list_spec='@'
13240 ;;
13241
13242 osf3*)
13243 if test yes = "$GCC"; then
13244 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13245 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'
13246 else
13247 allow_undefined_flag=' -expect_unresolved \*'
13248 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'
13249 fi
13250 archive_cmds_need_lc='no'
13251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13252 hardcode_libdir_separator=:
13253 ;;
13254
13255 osf4* | osf5*) # as osf3* with the addition of -msym flag
13256 if test yes = "$GCC"; then
13257 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13258 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'
13259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13260 else
13261 allow_undefined_flag=' -expect_unresolved \*'
13262 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'
13263 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~
13264 $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'
13265
13266 # Both c and cxx compiler support -rpath directly
13267 hardcode_libdir_flag_spec='-rpath $libdir'
13268 fi
13269 archive_cmds_need_lc='no'
13270 hardcode_libdir_separator=:
13271 ;;
13272
13273 serenity*)
13274 ;;
13275
13276 solaris*)
13277 no_undefined_flag=' -z defs'
13278 if test yes = "$GCC"; then
13279 wlarc='$wl'
13280 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13282 $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'
13283 else
13284 case `$CC -V 2>&1` in
13285 *"Compilers 5.0"*)
13286 wlarc=''
13287 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13289 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13290 ;;
13291 *)
13292 wlarc='$wl'
13293 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13295 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13296 ;;
13297 esac
13298 fi
13299 hardcode_libdir_flag_spec='-R$libdir'
13300 hardcode_shlibpath_var=no
13301 case $host_os in
13302 solaris2.[0-5] | solaris2.[0-5].*) ;;
13303 *)
13304 # The compiler driver will combine and reorder linker options,
13305 # but understands '-z linker_flag'. GCC discards it without '$wl',
13306 # but is careful enough not to reorder.
13307 # Supported since Solaris 2.6 (maybe 2.5.1?)
13308 if test yes = "$GCC"; then
13309 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13310 else
13311 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13312 fi
13313 ;;
13314 esac
13315 link_all_deplibs=yes
13316 ;;
13317
13318 sunos4*)
13319 if test sequent = "$host_vendor"; then
13320 # Use $CC to link under sequent, because it throws in some extra .o
13321 # files that make .init and .fini sections work.
13322 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13323 else
13324 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13325 fi
13326 hardcode_libdir_flag_spec='-L$libdir'
13327 hardcode_direct=yes
13328 hardcode_minus_L=yes
13329 hardcode_shlibpath_var=no
13330 ;;
13331
13332 sysv4)
13333 case $host_vendor in
13334 sni)
13335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13336 hardcode_direct=yes # is this really true???
13337 ;;
13338 siemens)
13339 ## LD is ld it makes a PLAMLIB
13340 ## CC just makes a GrossModule.
13341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13342 reload_cmds='$CC -r -o $output$reload_objs'
13343 hardcode_direct=no
13344 ;;
13345 motorola)
13346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13347 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13348 ;;
13349 esac
13350 runpath_var='LD_RUN_PATH'
13351 hardcode_shlibpath_var=no
13352 ;;
13353
13354 sysv4.3*)
13355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 hardcode_shlibpath_var=no
13357 export_dynamic_flag_spec='-Bexport'
13358 ;;
13359
13360 sysv4*MP*)
13361 if test -d /usr/nec; then
13362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13363 hardcode_shlibpath_var=no
13364 runpath_var=LD_RUN_PATH
13365 hardcode_runpath_var=yes
13366 ld_shlibs=yes
13367 fi
13368 ;;
13369
13370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13371 no_undefined_flag='$wl-z,text'
13372 archive_cmds_need_lc=no
13373 hardcode_shlibpath_var=no
13374 runpath_var='LD_RUN_PATH'
13375
13376 if test yes = "$GCC"; then
13377 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13378 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 else
13380 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13381 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 fi
13383 ;;
13384
13385 sysv5* | sco3.2v5* | sco5v6*)
13386 # Note: We CANNOT use -z defs as we might desire, because we do not
13387 # link with -lc, and that would cause any symbols used from libc to
13388 # always be unresolved, which means just about no library would
13389 # ever link correctly. If we're not using GNU ld we use -z text
13390 # though, which does catch some bad symbols but isn't as heavy-handed
13391 # as -z defs.
13392 no_undefined_flag='$wl-z,text'
13393 allow_undefined_flag='$wl-z,nodefs'
13394 archive_cmds_need_lc=no
13395 hardcode_shlibpath_var=no
13396 hardcode_libdir_flag_spec='$wl-R,$libdir'
13397 hardcode_libdir_separator=':'
13398 link_all_deplibs=yes
13399 export_dynamic_flag_spec='$wl-Bexport'
13400 runpath_var='LD_RUN_PATH'
13401
13402 if test yes = "$GCC"; then
13403 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13404 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13405 else
13406 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 fi
13409 ;;
13410
13411 uts4*)
13412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 hardcode_libdir_flag_spec='-L$libdir'
13414 hardcode_shlibpath_var=no
13415 ;;
13416
13417 *)
13418 ld_shlibs=no
13419 ;;
13420 esac
13421
13422 if test sni = "$host_vendor"; then
13423 case $host in
13424 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13425 export_dynamic_flag_spec='$wl-Blargedynsym'
13426 ;;
13427 esac
13428 fi
13429 fi
13430
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13432 printf "%s\n" "$ld_shlibs" >&6; }
13433 test no = "$ld_shlibs" && can_build_shared=no
13434
13435 with_gnu_ld=$with_gnu_ld
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451 #
13452 # Do we need to explicitly link libc?
13453 #
13454 case "x$archive_cmds_need_lc" in
13455 x|xyes)
13456 # Assume -lc should be added
13457 archive_cmds_need_lc=yes
13458
13459 if test yes,yes = "$GCC,$enable_shared"; then
13460 case $archive_cmds in
13461 *'~'*)
13462 # FIXME: we may have to deal with multi-command sequences.
13463 ;;
13464 '$CC '*)
13465 # Test whether the compiler implicitly links with -lc since on some
13466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13467 # to ld, don't add -lc before -lgcc.
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13469 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13470 if test ${lt_cv_archive_cmds_need_lc+y}
13471 then :
13472 printf %s "(cached) " >&6
13473 else case e in #(
13474 e) $RM conftest*
13475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13476
13477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13478 (eval $ac_compile) 2>&5
13479 ac_status=$?
13480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13481 test $ac_status = 0; } 2>conftest.err; then
13482 soname=conftest
13483 lib=conftest
13484 libobjs=conftest.$ac_objext
13485 deplibs=
13486 wl=$lt_prog_compiler_wl
13487 pic_flag=$lt_prog_compiler_pic
13488 compiler_flags=-v
13489 linker_flags=-v
13490 verstring=
13491 output_objdir=.
13492 libname=conftest
13493 lt_save_allow_undefined_flag=$allow_undefined_flag
13494 allow_undefined_flag=
13495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13496 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13497 ac_status=$?
13498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; }
13500 then
13501 lt_cv_archive_cmds_need_lc=no
13502 else
13503 lt_cv_archive_cmds_need_lc=yes
13504 fi
13505 allow_undefined_flag=$lt_save_allow_undefined_flag
13506 else
13507 cat conftest.err 1>&5
13508 fi
13509 $RM conftest*
13510 ;;
13511 esac
13512 fi
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13514 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13515 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13516 ;;
13517 esac
13518 fi
13519 ;;
13520 esac
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13674 printf %s "checking dynamic linker characteristics... " >&6; }
13675
13676 if test yes = "$GCC"; then
13677 case $host_os in
13678 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13679 *) lt_awk_arg='/^libraries:/' ;;
13680 esac
13681 case $host_os in
13682 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13683 *) lt_sed_strip_eq='s|=/|/|g' ;;
13684 esac
13685 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13686 case $lt_search_path_spec in
13687 *\;*)
13688 # if the path contains ";" then we assume it to be the separator
13689 # otherwise default to the standard path separator (i.e. ":") - it is
13690 # assumed that no part of a normal pathname contains ";" but that should
13691 # okay in the real world where ";" in dirpaths is itself problematic.
13692 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13693 ;;
13694 *)
13695 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13696 ;;
13697 esac
13698 # Ok, now we have the path, separated by spaces, we can step through it
13699 # and add multilib dir if necessary...
13700 lt_tmp_lt_search_path_spec=
13701 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13702 # ...but if some path component already ends with the multilib dir we assume
13703 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13704 case "$lt_multi_os_dir; $lt_search_path_spec " in
13705 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13706 lt_multi_os_dir=
13707 ;;
13708 esac
13709 for lt_sys_path in $lt_search_path_spec; do
13710 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13712 elif test -n "$lt_multi_os_dir"; then
13713 test -d "$lt_sys_path" && \
13714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13715 fi
13716 done
13717 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13718 BEGIN {RS = " "; FS = "/|\n";} {
13719 lt_foo = "";
13720 lt_count = 0;
13721 for (lt_i = NF; lt_i > 0; lt_i--) {
13722 if ($lt_i != "" && $lt_i != ".") {
13723 if ($lt_i == "..") {
13724 lt_count++;
13725 } else {
13726 if (lt_count == 0) {
13727 lt_foo = "/" $lt_i lt_foo;
13728 } else {
13729 lt_count--;
13730 }
13731 }
13732 }
13733 }
13734 if (lt_foo != "") { lt_freq[lt_foo]++; }
13735 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13736 }'`
13737 # AWK program above erroneously prepends '/' to C:/dos/paths
13738 # for these hosts.
13739 case $host_os in
13740 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13741 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13742 esac
13743 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13744 else
13745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13746 fi
13747 library_names_spec=
13748 libname_spec='lib$name'
13749 soname_spec=
13750 shrext_cmds=.so
13751 postinstall_cmds=
13752 postuninstall_cmds=
13753 finish_cmds=
13754 finish_eval=
13755 shlibpath_var=
13756 shlibpath_overrides_runpath=unknown
13757 version_type=none
13758 dynamic_linker="$host_os ld.so"
13759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13760 need_lib_prefix=unknown
13761 hardcode_into_libs=no
13762
13763 # when you set need_version to no, make sure it does not cause -set_version
13764 # flags to be left without arguments
13765 need_version=unknown
13766
13767
13768
13769 case $host_os in
13770 aix3*)
13771 version_type=linux # correct to gnu/linux during the next big refactor
13772 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13773 shlibpath_var=LIBPATH
13774
13775 # AIX 3 has no versioning support, so we append a major version to the name.
13776 soname_spec='$libname$release$shared_ext$major'
13777 ;;
13778
13779 aix[4-9]*)
13780 version_type=linux # correct to gnu/linux during the next big refactor
13781 need_lib_prefix=no
13782 need_version=no
13783 hardcode_into_libs=yes
13784 if test ia64 = "$host_cpu"; then
13785 # AIX 5 supports IA64
13786 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13787 shlibpath_var=LD_LIBRARY_PATH
13788 else
13789 # With GCC up to 2.95.x, collect2 would create an import file
13790 # for dependence libraries. The import file would start with
13791 # the line '#! .'. This would cause the generated library to
13792 # depend on '.', always an invalid library. This was fixed in
13793 # development snapshots of GCC prior to 3.0.
13794 case $host_os in
13795 aix4 | aix4.[01] | aix4.[01].*)
13796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13797 echo ' yes '
13798 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13799 :
13800 else
13801 can_build_shared=no
13802 fi
13803 ;;
13804 esac
13805 # Using Import Files as archive members, it is possible to support
13806 # filename-based versioning of shared library archives on AIX. While
13807 # this would work for both with and without runtime linking, it will
13808 # prevent static linking of such archives. So we do filename-based
13809 # shared library versioning with .so extension only, which is used
13810 # when both runtime linking and shared linking is enabled.
13811 # Unfortunately, runtime linking may impact performance, so we do
13812 # not want this to be the default eventually. Also, we use the
13813 # versioned .so libs for executables only if there is the -brtl
13814 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13815 # To allow for filename-based versioning support, we need to create
13816 # libNAME.so.V as an archive file, containing:
13817 # *) an Import File, referring to the versioned filename of the
13818 # archive as well as the shared archive member, telling the
13819 # bitwidth (32 or 64) of that shared object, and providing the
13820 # list of exported symbols of that shared object, eventually
13821 # decorated with the 'weak' keyword
13822 # *) the shared object with the F_LOADONLY flag set, to really avoid
13823 # it being seen by the linker.
13824 # At run time we better use the real file rather than another symlink,
13825 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13826
13827 case $with_aix_soname,$aix_use_runtimelinking in
13828 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13829 # soname into executable. Probably we can add versioning support to
13830 # collect2, so additional links can be useful in future.
13831 aix,yes) # traditional libtool
13832 dynamic_linker='AIX unversionable lib.so'
13833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13834 # instead of lib<name>.a to let people know that these are not
13835 # typical AIX shared libraries.
13836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13837 ;;
13838 aix,no) # traditional AIX only
13839 dynamic_linker='AIX lib.a(lib.so.V)'
13840 # We preserve .a as extension for shared libraries through AIX4.2
13841 # and later when we are not doing run time linking.
13842 library_names_spec='$libname$release.a $libname.a'
13843 soname_spec='$libname$release$shared_ext$major'
13844 ;;
13845 svr4,*) # full svr4 only
13846 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13847 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13848 # We do not specify a path in Import Files, so LIBPATH fires.
13849 shlibpath_overrides_runpath=yes
13850 ;;
13851 *,yes) # both, prefer svr4
13852 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13853 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13854 # unpreferred sharedlib libNAME.a needs extra handling
13855 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"'
13856 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"'
13857 # We do not specify a path in Import Files, so LIBPATH fires.
13858 shlibpath_overrides_runpath=yes
13859 ;;
13860 *,no) # both, prefer aix
13861 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13862 library_names_spec='$libname$release.a $libname.a'
13863 soname_spec='$libname$release$shared_ext$major'
13864 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13865 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)'
13866 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"'
13867 ;;
13868 esac
13869 shlibpath_var=LIBPATH
13870 fi
13871 ;;
13872
13873 amigaos*)
13874 case $host_cpu in
13875 powerpc)
13876 # Since July 2007 AmigaOS4 officially supports .so libraries.
13877 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13879 ;;
13880 m68k)
13881 library_names_spec='$libname.ixlibrary $libname.a'
13882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13883 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'
13884 ;;
13885 esac
13886 ;;
13887
13888 beos*)
13889 library_names_spec='$libname$shared_ext'
13890 dynamic_linker="$host_os ld.so"
13891 shlibpath_var=LIBRARY_PATH
13892 ;;
13893
13894 bsdi[45]*)
13895 version_type=linux # correct to gnu/linux during the next big refactor
13896 need_version=no
13897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13898 soname_spec='$libname$release$shared_ext$major'
13899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13903 # the default ld.so.conf also contains /usr/contrib/lib and
13904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13905 # libtool to hard-code these into programs
13906 ;;
13907
13908 cygwin* | mingw* | windows* | pw32* | cegcc*)
13909 version_type=windows
13910 shrext_cmds=.dll
13911 need_version=no
13912 need_lib_prefix=no
13913
13914 case $GCC,$cc_basename in
13915 yes,*)
13916 # gcc
13917 library_names_spec='$libname.dll.a'
13918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13919 # If user builds GCC with multilib enabled,
13920 # it should just install on $(libdir)
13921 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13922 if test xyes = x"$multilib"; then
13923 postinstall_cmds='base_file=`basename \$file`~
13924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13925 dldir=$destdir/`dirname \$dlpath`~
13926 $install_prog $dir/$dlname $destdir/$dlname~
13927 chmod a+x $destdir/$dlname~
13928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13929 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13930 fi'
13931 else
13932 postinstall_cmds='base_file=`basename \$file`~
13933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13934 dldir=$destdir/`dirname \$dlpath`~
13935 test -d \$dldir || mkdir -p \$dldir~
13936 $install_prog $dir/$dlname \$dldir/$dlname~
13937 chmod a+x \$dldir/$dlname~
13938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13940 fi'
13941 fi
13942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13943 dlpath=$dir/\$dldll~
13944 $RM \$dlpath'
13945 shlibpath_overrides_runpath=yes
13946
13947 case $host_os in
13948 cygwin*)
13949 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13950 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13951
13952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13953 ;;
13954 mingw* | windows* | cegcc*)
13955 # MinGW DLLs use traditional 'lib' prefix
13956 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13957 ;;
13958 pw32*)
13959 # pw32 DLLs use 'pw' prefix rather than 'lib'
13960 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13961 ;;
13962 esac
13963 dynamic_linker='Win32 ld.exe'
13964 ;;
13965
13966 *,cl* | *,icl*)
13967 # Native MSVC or ICC
13968 libname_spec='$name'
13969 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13970 library_names_spec='$libname.dll.lib'
13971
13972 case $build_os in
13973 mingw* | windows*)
13974 sys_lib_search_path_spec=
13975 lt_save_ifs=$IFS
13976 IFS=';'
13977 for lt_path in $LIB
13978 do
13979 IFS=$lt_save_ifs
13980 # Let DOS variable expansion print the short 8.3 style file name.
13981 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13982 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13983 done
13984 IFS=$lt_save_ifs
13985 # Convert to MSYS style.
13986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13987 ;;
13988 cygwin*)
13989 # Convert to unix form, then to dos form, then back to unix form
13990 # but this time dos style (no spaces!) so that the unix form looks
13991 # like /cygdrive/c/PROGRA~1:/cygdr...
13992 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13993 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13994 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13995 ;;
13996 *)
13997 sys_lib_search_path_spec=$LIB
13998 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13999 # It is most probably a Windows format PATH.
14000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14001 else
14002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14003 fi
14004 # FIXME: find the short name or the path components, as spaces are
14005 # common. (e.g. "Program Files" -> "PROGRA~1")
14006 ;;
14007 esac
14008
14009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14010 postinstall_cmds='base_file=`basename \$file`~
14011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14012 dldir=$destdir/`dirname \$dlpath`~
14013 test -d \$dldir || mkdir -p \$dldir~
14014 $install_prog $dir/$dlname \$dldir/$dlname'
14015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14016 dlpath=$dir/\$dldll~
14017 $RM \$dlpath'
14018 shlibpath_overrides_runpath=yes
14019 dynamic_linker='Win32 link.exe'
14020 ;;
14021
14022 *)
14023 # Assume MSVC and ICC wrapper
14024 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14025 dynamic_linker='Win32 ld.exe'
14026 ;;
14027 esac
14028 # FIXME: first we should search . and the directory the executable is in
14029 shlibpath_var=PATH
14030 ;;
14031
14032 darwin* | rhapsody*)
14033 dynamic_linker="$host_os dyld"
14034 version_type=darwin
14035 need_lib_prefix=no
14036 need_version=no
14037 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14038 soname_spec='$libname$release$major$shared_ext'
14039 shlibpath_overrides_runpath=yes
14040 shlibpath_var=DYLD_LIBRARY_PATH
14041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14042
14043 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14045 ;;
14046
14047 dgux*)
14048 version_type=linux # correct to gnu/linux during the next big refactor
14049 need_lib_prefix=no
14050 need_version=no
14051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14052 soname_spec='$libname$release$shared_ext$major'
14053 shlibpath_var=LD_LIBRARY_PATH
14054 ;;
14055
14056 freebsd* | dragonfly* | midnightbsd*)
14057 # DragonFly does not have aout. When/if they implement a new
14058 # versioning mechanism, adjust this.
14059 if test -x /usr/bin/objformat; then
14060 objformat=`/usr/bin/objformat`
14061 else
14062 case $host_os in
14063 freebsd[23].*) objformat=aout ;;
14064 *) objformat=elf ;;
14065 esac
14066 fi
14067 version_type=freebsd-$objformat
14068 case $version_type in
14069 freebsd-elf*)
14070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14071 soname_spec='$libname$release$shared_ext$major'
14072 need_version=no
14073 need_lib_prefix=no
14074 ;;
14075 freebsd-*)
14076 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14077 need_version=yes
14078 ;;
14079 esac
14080 case $host_cpu in
14081 powerpc64)
14082 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14083 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 int test_pointer_size[sizeof (void *) - 5];
14087
14088 _ACEOF
14089 if ac_fn_c_try_compile "$LINENO"
14090 then :
14091 shlibpath_var=LD_LIBRARY_PATH
14092 else case e in #(
14093 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14094 esac
14095 fi
14096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14097 ;;
14098 *)
14099 shlibpath_var=LD_LIBRARY_PATH
14100 ;;
14101 esac
14102 case $host_os in
14103 freebsd2.*)
14104 shlibpath_overrides_runpath=yes
14105 ;;
14106 freebsd3.[01]* | freebsdelf3.[01]*)
14107 shlibpath_overrides_runpath=yes
14108 hardcode_into_libs=yes
14109 ;;
14110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14112 shlibpath_overrides_runpath=no
14113 hardcode_into_libs=yes
14114 ;;
14115 *) # from 4.6 on, and DragonFly
14116 shlibpath_overrides_runpath=yes
14117 hardcode_into_libs=yes
14118 ;;
14119 esac
14120 ;;
14121
14122 haiku*)
14123 version_type=linux # correct to gnu/linux during the next big refactor
14124 need_lib_prefix=no
14125 need_version=no
14126 dynamic_linker="$host_os runtime_loader"
14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14128 soname_spec='$libname$release$shared_ext$major'
14129 shlibpath_var=LIBRARY_PATH
14130 shlibpath_overrides_runpath=no
14131 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14132 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14133 hardcode_into_libs=no
14134 ;;
14135
14136 hpux9* | hpux10* | hpux11*)
14137 # Give a soname corresponding to the major version so that dld.sl refuses to
14138 # link against other versions.
14139 version_type=sunos
14140 need_lib_prefix=no
14141 need_version=no
14142 case $host_cpu in
14143 ia64*)
14144 shrext_cmds='.so'
14145 hardcode_into_libs=yes
14146 dynamic_linker="$host_os dld.so"
14147 shlibpath_var=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14150 soname_spec='$libname$release$shared_ext$major'
14151 if test 32 = "$HPUX_IA64_MODE"; then
14152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14153 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14154 else
14155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14156 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14157 fi
14158 ;;
14159 hppa*64*)
14160 shrext_cmds='.sl'
14161 hardcode_into_libs=yes
14162 dynamic_linker="$host_os dld.sl"
14163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14166 soname_spec='$libname$release$shared_ext$major'
14167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14169 ;;
14170 *)
14171 shrext_cmds='.sl'
14172 dynamic_linker="$host_os dld.sl"
14173 shlibpath_var=SHLIB_PATH
14174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14176 soname_spec='$libname$release$shared_ext$major'
14177 ;;
14178 esac
14179 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14180 postinstall_cmds='chmod 555 $lib'
14181 # or fails outright, so override atomically:
14182 install_override_mode=555
14183 ;;
14184
14185 interix[3-9]*)
14186 version_type=linux # correct to gnu/linux during the next big refactor
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14190 soname_spec='$libname$release$shared_ext$major'
14191 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 shlibpath_overrides_runpath=no
14194 hardcode_into_libs=yes
14195 ;;
14196
14197 irix5* | irix6* | nonstopux*)
14198 case $host_os in
14199 nonstopux*) version_type=nonstopux ;;
14200 *)
14201 if test yes = "$lt_cv_prog_gnu_ld"; then
14202 version_type=linux # correct to gnu/linux during the next big refactor
14203 else
14204 version_type=irix
14205 fi ;;
14206 esac
14207 need_lib_prefix=no
14208 need_version=no
14209 soname_spec='$libname$release$shared_ext$major'
14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14211 case $host_os in
14212 irix5* | nonstopux*)
14213 libsuff= shlibsuff=
14214 ;;
14215 *)
14216 case $LD in # libtool.m4 will add one of these switches to LD
14217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14218 libsuff= shlibsuff= libmagic=32-bit;;
14219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14220 libsuff=32 shlibsuff=N32 libmagic=N32;;
14221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14222 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14223 *) libsuff= shlibsuff= libmagic=never-match;;
14224 esac
14225 ;;
14226 esac
14227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14228 shlibpath_overrides_runpath=no
14229 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14230 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14231 hardcode_into_libs=yes
14232 ;;
14233
14234 # No shared lib support for Linux oldld, aout, or coff.
14235 linux*oldld* | linux*aout* | linux*coff*)
14236 dynamic_linker=no
14237 ;;
14238
14239 linux*android*)
14240 version_type=none # Android doesn't support versioned libraries.
14241 need_lib_prefix=no
14242 need_version=no
14243 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14244 soname_spec='$libname$release$shared_ext'
14245 finish_cmds=
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=yes
14248
14249 # This implies no fast_install, which is unacceptable.
14250 # Some rework will be needed to allow for fast_install
14251 # before this can be enabled.
14252 hardcode_into_libs=yes
14253
14254 dynamic_linker='Android linker'
14255 # -rpath works at least for libraries that are not overridden by
14256 # libraries installed in system locations.
14257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14258 ;;
14259
14260 # This must be glibc/ELF.
14261 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14262 version_type=linux # correct to gnu/linux during the next big refactor
14263 need_lib_prefix=no
14264 need_version=no
14265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14266 soname_spec='$libname$release$shared_ext$major'
14267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=no
14270
14271 # Some binutils ld are patched to set DT_RUNPATH
14272 if test ${lt_cv_shlibpath_overrides_runpath+y}
14273 then :
14274 printf %s "(cached) " >&6
14275 else case e in #(
14276 e) lt_cv_shlibpath_overrides_runpath=no
14277 save_LDFLAGS=$LDFLAGS
14278 save_libdir=$libdir
14279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283
14284 int
14285 main (void)
14286 {
14287
14288 ;
14289 return 0;
14290 }
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"
14293 then :
14294 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14295 then :
14296 lt_cv_shlibpath_overrides_runpath=yes
14297 fi
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14300 conftest$ac_exeext conftest.$ac_ext
14301 LDFLAGS=$save_LDFLAGS
14302 libdir=$save_libdir
14303 ;;
14304 esac
14305 fi
14306
14307 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14308
14309 # This implies no fast_install, which is unacceptable.
14310 # Some rework will be needed to allow for fast_install
14311 # before this can be enabled.
14312 hardcode_into_libs=yes
14313
14314 # Add ABI-specific directories to the system library path.
14315 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14316
14317 # Ideally, we could use ldconfig to report *all* directories which are
14318 # searched for libraries, however this is still not possible. Aside from not
14319 # being certain /sbin/ldconfig is available, command
14320 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14321 # even though it is searched at run-time. Try to do the best guess by
14322 # appending ld.so.conf contents (and includes) to the search path.
14323 if test -f /etc/ld.so.conf; then
14324 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' ' '`
14325 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14326 fi
14327
14328 # We used to test for /lib/ld.so.1 and disable shared libraries on
14329 # powerpc, because MkLinux only supported shared libraries with the
14330 # GNU dynamic linker. Since this was broken with cross compilers,
14331 # most powerpc-linux boxes support dynamic linking these days and
14332 # people can always --disable-shared, the test was removed, and we
14333 # assume the GNU/Linux dynamic linker is in use.
14334 dynamic_linker='GNU/Linux ld.so'
14335 ;;
14336
14337 netbsdelf*-gnu)
14338 version_type=linux
14339 need_lib_prefix=no
14340 need_version=no
14341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14342 soname_spec='$libname$release$shared_ext$major'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 shlibpath_overrides_runpath=no
14345 hardcode_into_libs=yes
14346 dynamic_linker='NetBSD ld.elf_so'
14347 ;;
14348
14349 netbsd*)
14350 version_type=sunos
14351 need_lib_prefix=no
14352 need_version=no
14353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14356 dynamic_linker='NetBSD (a.out) ld.so'
14357 else
14358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14359 soname_spec='$libname$release$shared_ext$major'
14360 dynamic_linker='NetBSD ld.elf_so'
14361 fi
14362 shlibpath_var=LD_LIBRARY_PATH
14363 shlibpath_overrides_runpath=yes
14364 hardcode_into_libs=yes
14365 ;;
14366
14367 *-mlibc)
14368 version_type=linux # correct to gnu/linux during the next big refactor
14369 need_lib_prefix=no
14370 need_version=no
14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372 soname_spec='$libname$release$shared_ext$major'
14373 dynamic_linker='mlibc ld.so'
14374 shlibpath_var=LD_LIBRARY_PATH
14375 shlibpath_overrides_runpath=no
14376 hardcode_into_libs=yes
14377 ;;
14378
14379 newsos6)
14380 version_type=linux # correct to gnu/linux during the next big refactor
14381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14384 ;;
14385
14386 *nto* | *qnx*)
14387 version_type=qnx
14388 need_lib_prefix=no
14389 need_version=no
14390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14391 soname_spec='$libname$release$shared_ext$major'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 shlibpath_overrides_runpath=no
14394 hardcode_into_libs=yes
14395 dynamic_linker='ldqnx.so'
14396 ;;
14397
14398 openbsd*)
14399 version_type=sunos
14400 sys_lib_dlsearch_path_spec=/usr/lib
14401 need_lib_prefix=no
14402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14403 need_version=no
14404 else
14405 need_version=yes
14406 fi
14407 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14409 shlibpath_var=LD_LIBRARY_PATH
14410 shlibpath_overrides_runpath=yes
14411 ;;
14412
14413 os2*)
14414 libname_spec='$name'
14415 version_type=windows
14416 shrext_cmds=.dll
14417 need_version=no
14418 need_lib_prefix=no
14419 # OS/2 can only load a DLL with a base name of 8 characters or less.
14420 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14421 v=$($ECHO $release$versuffix | tr -d .-);
14422 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14423 $ECHO $n$v`$shared_ext'
14424 library_names_spec='${libname}_dll.$libext'
14425 dynamic_linker='OS/2 ld.exe'
14426 shlibpath_var=BEGINLIBPATH
14427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14429 postinstall_cmds='base_file=`basename \$file`~
14430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14431 dldir=$destdir/`dirname \$dlpath`~
14432 test -d \$dldir || mkdir -p \$dldir~
14433 $install_prog $dir/$dlname \$dldir/$dlname~
14434 chmod a+x \$dldir/$dlname~
14435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14437 fi'
14438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14439 dlpath=$dir/\$dldll~
14440 $RM \$dlpath'
14441 ;;
14442
14443 osf3* | osf4* | osf5*)
14444 version_type=osf
14445 need_lib_prefix=no
14446 need_version=no
14447 soname_spec='$libname$release$shared_ext$major'
14448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14452 ;;
14453
14454 rdos*)
14455 dynamic_linker=no
14456 ;;
14457
14458 serenity*)
14459 version_type=linux # correct to gnu/linux during the next big refactor
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14463 soname_spec='$libname$release$shared_ext$major'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=no
14466 dynamic_linker='SerenityOS LibELF'
14467 ;;
14468
14469 solaris*)
14470 version_type=linux # correct to gnu/linux during the next big refactor
14471 need_lib_prefix=no
14472 need_version=no
14473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14474 soname_spec='$libname$release$shared_ext$major'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
14477 hardcode_into_libs=yes
14478 # ldd complains unless libraries are executable
14479 postinstall_cmds='chmod +x $lib'
14480 ;;
14481
14482 sunos4*)
14483 version_type=sunos
14484 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=yes
14488 if test yes = "$with_gnu_ld"; then
14489 need_lib_prefix=no
14490 fi
14491 need_version=yes
14492 ;;
14493
14494 sysv4 | sysv4.3*)
14495 version_type=linux # correct to gnu/linux during the next big refactor
14496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14497 soname_spec='$libname$release$shared_ext$major'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 case $host_vendor in
14500 sni)
14501 shlibpath_overrides_runpath=no
14502 need_lib_prefix=no
14503 runpath_var=LD_RUN_PATH
14504 ;;
14505 siemens)
14506 need_lib_prefix=no
14507 ;;
14508 motorola)
14509 need_lib_prefix=no
14510 need_version=no
14511 shlibpath_overrides_runpath=no
14512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14513 ;;
14514 esac
14515 ;;
14516
14517 sysv4*MP*)
14518 if test -d /usr/nec; then
14519 version_type=linux # correct to gnu/linux during the next big refactor
14520 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14521 soname_spec='$libname$shared_ext.$major'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 fi
14524 ;;
14525
14526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14527 version_type=sco
14528 need_lib_prefix=no
14529 need_version=no
14530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14531 soname_spec='$libname$release$shared_ext$major'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=yes
14534 hardcode_into_libs=yes
14535 if test yes = "$with_gnu_ld"; then
14536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14537 else
14538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14539 case $host_os in
14540 sco3.2v5*)
14541 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14542 ;;
14543 esac
14544 fi
14545 sys_lib_dlsearch_path_spec='/usr/lib'
14546 ;;
14547
14548 tpf*)
14549 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14550 version_type=linux # correct to gnu/linux during the next big refactor
14551 need_lib_prefix=no
14552 need_version=no
14553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=no
14556 hardcode_into_libs=yes
14557 ;;
14558
14559 uts4*)
14560 version_type=linux # correct to gnu/linux during the next big refactor
14561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14562 soname_spec='$libname$release$shared_ext$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 ;;
14565
14566 emscripten*)
14567 version_type=none
14568 need_lib_prefix=no
14569 need_version=no
14570 library_names_spec='$libname$release$shared_ext'
14571 soname_spec='$libname$release$shared_ext'
14572 finish_cmds=
14573 dynamic_linker="Emscripten linker"
14574 lt_prog_compiler_wl=
14575 lt_prog_compiler_pic=
14576 lt_prog_compiler_static=
14577
14578
14579 if test yes = "$GCC"; then
14580 lt_prog_compiler_wl='-Wl,'
14581 lt_prog_compiler_static='-static'
14582
14583 case $host_os in
14584 aix*)
14585 # All AIX code is PIC.
14586 if test ia64 = "$host_cpu"; then
14587 # AIX 5 now supports IA64 processor
14588 lt_prog_compiler_static='-Bstatic'
14589 fi
14590 lt_prog_compiler_pic='-fPIC'
14591 ;;
14592
14593 amigaos*)
14594 case $host_cpu in
14595 powerpc)
14596 # see comment about AmigaOS4 .so support
14597 lt_prog_compiler_pic='-fPIC'
14598 ;;
14599 m68k)
14600 # FIXME: we need at least 68020 code to build shared libraries, but
14601 # adding the '-m68020' flag to GCC prevents building anything better,
14602 # like '-m68040'.
14603 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14604 ;;
14605 esac
14606 ;;
14607
14608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14609 # PIC is the default for these OSes.
14610 ;;
14611
14612 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14613 # This hack is so that the source file can tell whether it is being
14614 # built for inclusion in a dll (and should export symbols for example).
14615 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14616 # (--disable-auto-import) libraries
14617 lt_prog_compiler_pic='-DDLL_EXPORT'
14618 case $host_os in
14619 os2*)
14620 lt_prog_compiler_static='$wl-static'
14621 ;;
14622 esac
14623 ;;
14624
14625 darwin* | rhapsody*)
14626 # PIC is the default on this platform
14627 # Common symbols not allowed in MH_DYLIB files
14628 lt_prog_compiler_pic='-fno-common'
14629 ;;
14630
14631 haiku*)
14632 # PIC is the default for Haiku.
14633 # The "-static" flag exists, but is broken.
14634 lt_prog_compiler_static=
14635 ;;
14636
14637 hpux*)
14638 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14639 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14640 # sets the default TLS model and affects inlining.
14641 case $host_cpu in
14642 hppa*64*)
14643 # +Z the default
14644 ;;
14645 *)
14646 lt_prog_compiler_pic='-fPIC'
14647 ;;
14648 esac
14649 ;;
14650
14651 interix[3-9]*)
14652 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14653 # Instead, we relocate shared libraries at runtime.
14654 ;;
14655
14656 msdosdjgpp*)
14657 # Just because we use GCC doesn't mean we suddenly get shared libraries
14658 # on systems that don't support them.
14659 lt_prog_compiler_can_build_shared=no
14660 enable_shared=no
14661 ;;
14662
14663 *nto* | *qnx*)
14664 # QNX uses GNU C++, but need to define -shared option too, otherwise
14665 # it will coredump.
14666 lt_prog_compiler_pic='-fPIC -shared'
14667 ;;
14668
14669 sysv4*MP*)
14670 if test -d /usr/nec; then
14671 lt_prog_compiler_pic=-Kconform_pic
14672 fi
14673 ;;
14674
14675 *)
14676 lt_prog_compiler_pic='-fPIC'
14677 ;;
14678 esac
14679
14680 case $cc_basename in
14681 nvcc*) # Cuda Compiler Driver 2.2
14682 lt_prog_compiler_wl='-Xlinker '
14683 if test -n "$lt_prog_compiler_pic"; then
14684 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14685 fi
14686 ;;
14687 esac
14688 else
14689 # PORTME Check for flag to pass linker flags through the system compiler.
14690 case $host_os in
14691 aix*)
14692 lt_prog_compiler_wl='-Wl,'
14693 if test ia64 = "$host_cpu"; then
14694 # AIX 5 now supports IA64 processor
14695 lt_prog_compiler_static='-Bstatic'
14696 else
14697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14698 fi
14699 ;;
14700
14701 darwin* | rhapsody*)
14702 # PIC is the default on this platform
14703 # Common symbols not allowed in MH_DYLIB files
14704 lt_prog_compiler_pic='-fno-common'
14705 case $cc_basename in
14706 nagfor*)
14707 # NAG Fortran compiler
14708 lt_prog_compiler_wl='-Wl,-Wl,,'
14709 lt_prog_compiler_pic='-PIC'
14710 lt_prog_compiler_static='-Bstatic'
14711 ;;
14712 esac
14713 ;;
14714
14715 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14716 # This hack is so that the source file can tell whether it is being
14717 # built for inclusion in a dll (and should export symbols for example).
14718 lt_prog_compiler_pic='-DDLL_EXPORT'
14719 case $host_os in
14720 os2*)
14721 lt_prog_compiler_static='$wl-static'
14722 ;;
14723 esac
14724 ;;
14725
14726 hpux9* | hpux10* | hpux11*)
14727 lt_prog_compiler_wl='-Wl,'
14728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14729 # not for PA HP-UX.
14730 case $host_cpu in
14731 hppa*64*|ia64*)
14732 # +Z the default
14733 ;;
14734 *)
14735 lt_prog_compiler_pic='+Z'
14736 ;;
14737 esac
14738 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14739 lt_prog_compiler_static='$wl-a ${wl}archive'
14740 ;;
14741
14742 irix5* | irix6* | nonstopux*)
14743 lt_prog_compiler_wl='-Wl,'
14744 # PIC (with -KPIC) is the default.
14745 lt_prog_compiler_static='-non_shared'
14746 ;;
14747
14748 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14749 case $cc_basename in
14750 # old Intel for x86_64, which still supported -KPIC.
14751 ecc*)
14752 lt_prog_compiler_wl='-Wl,'
14753 lt_prog_compiler_pic='-KPIC'
14754 lt_prog_compiler_static='-static'
14755 ;;
14756 *flang* | ftn | f18* | f95*)
14757 # Flang compiler.
14758 lt_prog_compiler_wl='-Wl,'
14759 lt_prog_compiler_pic='-fPIC'
14760 lt_prog_compiler_static='-static'
14761 ;;
14762 # icc used to be incompatible with GCC.
14763 # ICC 10 doesn't accept -KPIC any more.
14764 icc* | ifort*)
14765 lt_prog_compiler_wl='-Wl,'
14766 lt_prog_compiler_pic='-fPIC'
14767 lt_prog_compiler_static='-static'
14768 ;;
14769 # Lahey Fortran 8.1.
14770 lf95*)
14771 lt_prog_compiler_wl='-Wl,'
14772 lt_prog_compiler_pic='--shared'
14773 lt_prog_compiler_static='--static'
14774 ;;
14775 nagfor*)
14776 # NAG Fortran compiler
14777 lt_prog_compiler_wl='-Wl,-Wl,,'
14778 lt_prog_compiler_pic='-PIC'
14779 lt_prog_compiler_static='-Bstatic'
14780 ;;
14781 tcc*)
14782 # Fabrice Bellard et al's Tiny C Compiler
14783 lt_prog_compiler_wl='-Wl,'
14784 lt_prog_compiler_pic='-fPIC'
14785 lt_prog_compiler_static='-static'
14786 ;;
14787 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14788 # Portland Group compilers (*not* the Pentium gcc compiler,
14789 # which looks to be a dead project)
14790 lt_prog_compiler_wl='-Wl,'
14791 lt_prog_compiler_pic='-fpic'
14792 lt_prog_compiler_static='-Bstatic'
14793 ;;
14794 ccc*)
14795 lt_prog_compiler_wl='-Wl,'
14796 # All Alpha code is PIC.
14797 lt_prog_compiler_static='-non_shared'
14798 ;;
14799 xl* | bgxl* | bgf* | mpixl*)
14800 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14801 lt_prog_compiler_wl='-Wl,'
14802 lt_prog_compiler_pic='-qpic'
14803 lt_prog_compiler_static='-qstaticlink'
14804 ;;
14805 *)
14806 case `$CC -V 2>&1 | $SED 5q` in
14807 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14808 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14809 lt_prog_compiler_pic='-KPIC'
14810 lt_prog_compiler_static='-Bstatic'
14811 lt_prog_compiler_wl=''
14812 ;;
14813 *Sun\ F* | *Sun*Fortran*)
14814 lt_prog_compiler_pic='-KPIC'
14815 lt_prog_compiler_static='-Bstatic'
14816 lt_prog_compiler_wl='-Qoption ld '
14817 ;;
14818 *Sun\ C*)
14819 # Sun C 5.9
14820 lt_prog_compiler_pic='-KPIC'
14821 lt_prog_compiler_static='-Bstatic'
14822 lt_prog_compiler_wl='-Wl,'
14823 ;;
14824 *Intel*\ [CF]*Compiler*)
14825 lt_prog_compiler_wl='-Wl,'
14826 lt_prog_compiler_pic='-fPIC'
14827 lt_prog_compiler_static='-static'
14828 ;;
14829 *Portland\ Group*)
14830 lt_prog_compiler_wl='-Wl,'
14831 lt_prog_compiler_pic='-fpic'
14832 lt_prog_compiler_static='-Bstatic'
14833 ;;
14834 esac
14835 ;;
14836 esac
14837 ;;
14838
14839 newsos6)
14840 lt_prog_compiler_pic='-KPIC'
14841 lt_prog_compiler_static='-Bstatic'
14842 ;;
14843
14844 *-mlibc)
14845 lt_prog_compiler_wl='-Wl,'
14846 lt_prog_compiler_pic='-fPIC'
14847 lt_prog_compiler_static='-static'
14848 ;;
14849
14850 *nto* | *qnx*)
14851 # QNX uses GNU C++, but need to define -shared option too, otherwise
14852 # it will coredump.
14853 lt_prog_compiler_pic='-fPIC -shared'
14854 ;;
14855
14856 osf3* | osf4* | osf5*)
14857 lt_prog_compiler_wl='-Wl,'
14858 # All OSF/1 code is PIC.
14859 lt_prog_compiler_static='-non_shared'
14860 ;;
14861
14862 rdos*)
14863 lt_prog_compiler_static='-non_shared'
14864 ;;
14865
14866 serenity*)
14867 ;;
14868
14869 solaris*)
14870 lt_prog_compiler_pic='-KPIC'
14871 lt_prog_compiler_static='-Bstatic'
14872 case $cc_basename in
14873 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14874 lt_prog_compiler_wl='-Qoption ld ';;
14875 *)
14876 lt_prog_compiler_wl='-Wl,';;
14877 esac
14878 ;;
14879
14880 sunos4*)
14881 lt_prog_compiler_wl='-Qoption ld '
14882 lt_prog_compiler_pic='-PIC'
14883 lt_prog_compiler_static='-Bstatic'
14884 ;;
14885
14886 sysv4 | sysv4.2uw2* | sysv4.3*)
14887 lt_prog_compiler_wl='-Wl,'
14888 lt_prog_compiler_pic='-KPIC'
14889 lt_prog_compiler_static='-Bstatic'
14890 ;;
14891
14892 sysv4*MP*)
14893 if test -d /usr/nec; then
14894 lt_prog_compiler_pic='-Kconform_pic'
14895 lt_prog_compiler_static='-Bstatic'
14896 fi
14897 ;;
14898
14899 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14900 lt_prog_compiler_wl='-Wl,'
14901 lt_prog_compiler_pic='-KPIC'
14902 lt_prog_compiler_static='-Bstatic'
14903 ;;
14904
14905 unicos*)
14906 lt_prog_compiler_wl='-Wl,'
14907 lt_prog_compiler_can_build_shared=no
14908 ;;
14909
14910 uts4*)
14911 lt_prog_compiler_pic='-pic'
14912 lt_prog_compiler_static='-Bstatic'
14913 ;;
14914
14915 *)
14916 lt_prog_compiler_can_build_shared=no
14917 ;;
14918 esac
14919 fi
14920
14921 case $host_os in
14922 # For platforms that do not support PIC, -DPIC is meaningless:
14923 *djgpp*)
14924 lt_prog_compiler_pic=
14925 ;;
14926 *)
14927 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14928 ;;
14929 esac
14930
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14932 printf %s "checking for $compiler option to produce PIC... " >&6; }
14933 if test ${lt_cv_prog_compiler_pic+y}
14934 then :
14935 printf %s "(cached) " >&6
14936 else case e in #(
14937 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14938 esac
14939 fi
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14941 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14942 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14943
14944 #
14945 # Check to make sure the PIC flag actually works.
14946 #
14947 if test -n "$lt_prog_compiler_pic"; then
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14949 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14950 if test ${lt_cv_prog_compiler_pic_works+y}
14951 then :
14952 printf %s "(cached) " >&6
14953 else case e in #(
14954 e) lt_cv_prog_compiler_pic_works=no
14955 ac_outfile=conftest.$ac_objext
14956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14957 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14958 # Insert the option either (1) after the last *FLAGS variable, or
14959 # (2) before a word containing "conftest.", or (3) at the end.
14960 # Note that $ac_compile itself does not contain backslashes and begins
14961 # with a dollar sign (not a hyphen), so the echo should work correctly.
14962 # The option is referenced via a variable to avoid confusing sed.
14963 lt_compile=`echo "$ac_compile" | $SED \
14964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966 -e 's:$: $lt_compiler_flag:'`
14967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14968 (eval "$lt_compile" 2>conftest.err)
14969 ac_status=$?
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 if (exit $ac_status) && test -s "$ac_outfile"; then
14973 # The compiler can only warn and ignore the option if not recognized
14974 # So say no if there are warnings other than the usual output.
14975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14978 lt_cv_prog_compiler_pic_works=yes
14979 fi
14980 fi
14981 $RM conftest*
14982 ;;
14983 esac
14984 fi
14985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14986 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14987
14988 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14989 case $lt_prog_compiler_pic in
14990 "" | " "*) ;;
14991 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14992 esac
14993 else
14994 lt_prog_compiler_pic=
14995 lt_prog_compiler_can_build_shared=no
14996 fi
14997
14998 fi
14999
15000
15001
15002
15003
15004 #
15005 # Check to make sure the static flag actually works.
15006 #
15007 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15009 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15010 if test ${lt_cv_prog_compiler_static_works+y}
15011 then :
15012 printf %s "(cached) " >&6
15013 else case e in #(
15014 e) lt_cv_prog_compiler_static_works=no
15015 save_LDFLAGS=$LDFLAGS
15016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15017 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15019 # The linker can only warn and ignore the option if not recognized
15020 # So say no if there are warnings
15021 if test -s conftest.err; then
15022 # Append any errors to the config.log.
15023 cat conftest.err 1>&5
15024 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15026 if diff conftest.exp conftest.er2 >/dev/null; then
15027 lt_cv_prog_compiler_static_works=yes
15028 fi
15029 else
15030 lt_cv_prog_compiler_static_works=yes
15031 fi
15032 fi
15033 $RM -r conftest*
15034 LDFLAGS=$save_LDFLAGS
15035 ;;
15036 esac
15037 fi
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15039 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15040
15041 if test yes = "$lt_cv_prog_compiler_static_works"; then
15042 :
15043 else
15044 lt_prog_compiler_static=
15045 fi
15046
15047
15048
15049 ='-fPIC'
15050 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15051 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15052 archive_cmds_need_lc=no
15053 no_undefined_flag=
15054 ;;
15055
15056 *)
15057 dynamic_linker=no
15058 ;;
15059 esac
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15061 printf "%s\n" "$dynamic_linker" >&6; }
15062 test no = "$dynamic_linker" && can_build_shared=no
15063
15064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15065 if test yes = "$GCC"; then
15066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15067 fi
15068
15069 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15070 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15071 fi
15072
15073 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15074 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15075 fi
15076
15077 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15078 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15079
15080 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15081 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15082
15083 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15084 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15183 printf %s "checking how to hardcode library paths into programs... " >&6; }
15184 hardcode_action=
15185 if test -n "$hardcode_libdir_flag_spec" ||
15186 test -n "$runpath_var" ||
15187 test yes = "$hardcode_automatic"; then
15188
15189 # We can hardcode non-existent directories.
15190 if test no != "$hardcode_direct" &&
15191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15192 # have to relink, otherwise we might link with an installed library
15193 # when we should be linking with a yet-to-be-installed one
15194 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15195 test no != "$hardcode_minus_L"; then
15196 # Linking always hardcodes the temporary library directory.
15197 hardcode_action=relink
15198 else
15199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15200 hardcode_action=immediate
15201 fi
15202 else
15203 # We cannot hardcode anything, or else we can only hardcode existing
15204 # directories.
15205 hardcode_action=unsupported
15206 fi
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15208 printf "%s\n" "$hardcode_action" >&6; }
15209
15210 if test relink = "$hardcode_action" ||
15211 test yes = "$inherit_rpath"; then
15212 # Fast installation is not supported
15213 enable_fast_install=no
15214 elif test yes = "$shlibpath_overrides_runpath" ||
15215 test no = "$enable_shared"; then
15216 # Fast installation is not necessary
15217 enable_fast_install=needless
15218 fi
15219
15220
15221
15222
15223
15224
15225 if test yes != "$enable_dlopen"; then
15226 enable_dlopen=unknown
15227 enable_dlopen_self=unknown
15228 enable_dlopen_self_static=unknown
15229 else
15230 lt_cv_dlopen=no
15231 lt_cv_dlopen_libs=
15232
15233 case $host_os in
15234 beos*)
15235 lt_cv_dlopen=load_add_on
15236 lt_cv_dlopen_libs=
15237 lt_cv_dlopen_self=yes
15238 ;;
15239
15240 mingw* | windows* | pw32* | cegcc*)
15241 lt_cv_dlopen=LoadLibrary
15242 lt_cv_dlopen_libs=
15243 ;;
15244
15245 cygwin*)
15246 lt_cv_dlopen=dlopen
15247 lt_cv_dlopen_libs=
15248 ;;
15249
15250 darwin*)
15251 # if libdl is installed we need to link against it
15252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15253 printf %s "checking for dlopen in -ldl... " >&6; }
15254 if test ${ac_cv_lib_dl_dlopen+y}
15255 then :
15256 printf %s "(cached) " >&6
15257 else case e in #(
15258 e) ac_check_lib_save_LIBS=$LIBS
15259 LIBS="-ldl $LIBS"
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply.
15266 The 'extern "C"' is for builds by C++ compilers;
15267 although this is not generally supported in C code supporting it here
15268 has little cost and some practical benefit (sr 110532). */
15269 #ifdef __cplusplus
15270 extern "C"
15271 #endif
15272 char dlopen (void);
15273 int
15274 main (void)
15275 {
15276 return dlopen ();
15277 ;
15278 return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_link "$LINENO"
15282 then :
15283 ac_cv_lib_dl_dlopen=yes
15284 else case e in #(
15285 e) ac_cv_lib_dl_dlopen=no ;;
15286 esac
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15289 conftest$ac_exeext conftest.$ac_ext
15290 LIBS=$ac_check_lib_save_LIBS ;;
15291 esac
15292 fi
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15294 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15295 if test "x$ac_cv_lib_dl_dlopen" = xyes
15296 then :
15297 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15298 else case e in #(
15299 e)
15300 lt_cv_dlopen=dyld
15301 lt_cv_dlopen_libs=
15302 lt_cv_dlopen_self=yes
15303 ;;
15304 esac
15305 fi
15306
15307 ;;
15308
15309 tpf*)
15310 # Don't try to run any link tests for TPF. We know it's impossible
15311 # because TPF is a cross-compiler, and we know how we open DSOs.
15312 lt_cv_dlopen=dlopen
15313 lt_cv_dlopen_libs=
15314 lt_cv_dlopen_self=no
15315 ;;
15316
15317 *)
15318 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15319 if test "x$ac_cv_func_shl_load" = xyes
15320 then :
15321 lt_cv_dlopen=shl_load
15322 else case e in #(
15323 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15324 printf %s "checking for shl_load in -ldld... " >&6; }
15325 if test ${ac_cv_lib_dld_shl_load+y}
15326 then :
15327 printf %s "(cached) " >&6
15328 else case e in #(
15329 e) ac_check_lib_save_LIBS=$LIBS
15330 LIBS="-ldld $LIBS"
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333
15334 /* Override any GCC internal prototype to avoid an error.
15335 Use char because int might match the return type of a GCC
15336 builtin and then its argument prototype would still apply.
15337 The 'extern "C"' is for builds by C++ compilers;
15338 although this is not generally supported in C code supporting it here
15339 has little cost and some practical benefit (sr 110532). */
15340 #ifdef __cplusplus
15341 extern "C"
15342 #endif
15343 char shl_load (void);
15344 int
15345 main (void)
15346 {
15347 return shl_load ();
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_link "$LINENO"
15353 then :
15354 ac_cv_lib_dld_shl_load=yes
15355 else case e in #(
15356 e) ac_cv_lib_dld_shl_load=no ;;
15357 esac
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15360 conftest$ac_exeext conftest.$ac_ext
15361 LIBS=$ac_check_lib_save_LIBS ;;
15362 esac
15363 fi
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15365 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15366 if test "x$ac_cv_lib_dld_shl_load" = xyes
15367 then :
15368 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15369 else case e in #(
15370 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15371 if test "x$ac_cv_func_dlopen" = xyes
15372 then :
15373 lt_cv_dlopen=dlopen
15374 else case e in #(
15375 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15376 printf %s "checking for dlopen in -ldl... " >&6; }
15377 if test ${ac_cv_lib_dl_dlopen+y}
15378 then :
15379 printf %s "(cached) " >&6
15380 else case e in #(
15381 e) ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-ldl $LIBS"
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385
15386 /* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply.
15389 The 'extern "C"' is for builds by C++ compilers;
15390 although this is not generally supported in C code supporting it here
15391 has little cost and some practical benefit (sr 110532). */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 char dlopen (void);
15396 int
15397 main (void)
15398 {
15399 return dlopen ();
15400 ;
15401 return 0;
15402 }
15403 _ACEOF
15404 if ac_fn_c_try_link "$LINENO"
15405 then :
15406 ac_cv_lib_dl_dlopen=yes
15407 else case e in #(
15408 e) ac_cv_lib_dl_dlopen=no ;;
15409 esac
15410 fi
15411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15412 conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_lib_save_LIBS ;;
15414 esac
15415 fi
15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15417 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15418 if test "x$ac_cv_lib_dl_dlopen" = xyes
15419 then :
15420 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15421 else case e in #(
15422 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15423 printf %s "checking for dlopen in -lsvld... " >&6; }
15424 if test ${ac_cv_lib_svld_dlopen+y}
15425 then :
15426 printf %s "(cached) " >&6
15427 else case e in #(
15428 e) ac_check_lib_save_LIBS=$LIBS
15429 LIBS="-lsvld $LIBS"
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432
15433 /* Override any GCC internal prototype to avoid an error.
15434 Use char because int might match the return type of a GCC
15435 builtin and then its argument prototype would still apply.
15436 The 'extern "C"' is for builds by C++ compilers;
15437 although this is not generally supported in C code supporting it here
15438 has little cost and some practical benefit (sr 110532). */
15439 #ifdef __cplusplus
15440 extern "C"
15441 #endif
15442 char dlopen (void);
15443 int
15444 main (void)
15445 {
15446 return dlopen ();
15447 ;
15448 return 0;
15449 }
15450 _ACEOF
15451 if ac_fn_c_try_link "$LINENO"
15452 then :
15453 ac_cv_lib_svld_dlopen=yes
15454 else case e in #(
15455 e) ac_cv_lib_svld_dlopen=no ;;
15456 esac
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS ;;
15461 esac
15462 fi
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15464 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15465 if test "x$ac_cv_lib_svld_dlopen" = xyes
15466 then :
15467 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15468 else case e in #(
15469 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15470 printf %s "checking for dld_link in -ldld... " >&6; }
15471 if test ${ac_cv_lib_dld_dld_link+y}
15472 then :
15473 printf %s "(cached) " >&6
15474 else case e in #(
15475 e) ac_check_lib_save_LIBS=$LIBS
15476 LIBS="-ldld $LIBS"
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479
15480 /* Override any GCC internal prototype to avoid an error.
15481 Use char because int might match the return type of a GCC
15482 builtin and then its argument prototype would still apply.
15483 The 'extern "C"' is for builds by C++ compilers;
15484 although this is not generally supported in C code supporting it here
15485 has little cost and some practical benefit (sr 110532). */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 char dld_link (void);
15490 int
15491 main (void)
15492 {
15493 return dld_link ();
15494 ;
15495 return 0;
15496 }
15497 _ACEOF
15498 if ac_fn_c_try_link "$LINENO"
15499 then :
15500 ac_cv_lib_dld_dld_link=yes
15501 else case e in #(
15502 e) ac_cv_lib_dld_dld_link=no ;;
15503 esac
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS ;;
15508 esac
15509 fi
15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15511 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15512 if test "x$ac_cv_lib_dld_dld_link" = xyes
15513 then :
15514 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15515 fi
15516
15517 ;;
15518 esac
15519 fi
15520
15521 ;;
15522 esac
15523 fi
15524
15525 ;;
15526 esac
15527 fi
15528
15529 ;;
15530 esac
15531 fi
15532
15533 ;;
15534 esac
15535 fi
15536
15537 ;;
15538 esac
15539
15540 if test no = "$lt_cv_dlopen"; then
15541 enable_dlopen=no
15542 else
15543 enable_dlopen=yes
15544 fi
15545
15546 case $lt_cv_dlopen in
15547 dlopen)
15548 save_CPPFLAGS=$CPPFLAGS
15549 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15550
15551 save_LDFLAGS=$LDFLAGS
15552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15553
15554 save_LIBS=$LIBS
15555 LIBS="$lt_cv_dlopen_libs $LIBS"
15556
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15558 printf %s "checking whether a program can dlopen itself... " >&6; }
15559 if test ${lt_cv_dlopen_self+y}
15560 then :
15561 printf %s "(cached) " >&6
15562 else case e in #(
15563 e) if test yes = "$cross_compiling"; then :
15564 lt_cv_dlopen_self=cross
15565 else
15566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15567 lt_status=$lt_dlunknown
15568 cat > conftest.$ac_ext <<_LT_EOF
15569 #line $LINENO "configure"
15570 #include "confdefs.h"
15571
15572 #if HAVE_DLFCN_H
15573 #include <dlfcn.h>
15574 #endif
15575
15576 #include <stdio.h>
15577
15578 #ifdef RTLD_GLOBAL
15579 # define LT_DLGLOBAL RTLD_GLOBAL
15580 #else
15581 # ifdef DL_GLOBAL
15582 # define LT_DLGLOBAL DL_GLOBAL
15583 # else
15584 # define LT_DLGLOBAL 0
15585 # endif
15586 #endif
15587
15588 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15589 find out it does not work in some platform. */
15590 #ifndef LT_DLLAZY_OR_NOW
15591 # ifdef RTLD_LAZY
15592 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15593 # else
15594 # ifdef DL_LAZY
15595 # define LT_DLLAZY_OR_NOW DL_LAZY
15596 # else
15597 # ifdef RTLD_NOW
15598 # define LT_DLLAZY_OR_NOW RTLD_NOW
15599 # else
15600 # ifdef DL_NOW
15601 # define LT_DLLAZY_OR_NOW DL_NOW
15602 # else
15603 # define LT_DLLAZY_OR_NOW 0
15604 # endif
15605 # endif
15606 # endif
15607 # endif
15608 #endif
15609
15610 /* When -fvisibility=hidden is used, assume the code has been annotated
15611 correspondingly for the symbols needed. */
15612 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15613 int fnord (void) __attribute__((visibility("default")));
15614 #endif
15615
15616 int fnord (void) { return 42; }
15617 int main (void)
15618 {
15619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15620 int status = $lt_dlunknown;
15621
15622 if (self)
15623 {
15624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15625 else
15626 {
15627 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15628 else puts (dlerror ());
15629 }
15630 /* dlclose (self); */
15631 }
15632 else
15633 puts (dlerror ());
15634
15635 return status;
15636 }
15637 _LT_EOF
15638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15639 (eval $ac_link) 2>&5
15640 ac_status=$?
15641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15642 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15643 (./conftest; exit; ) >&5 2>/dev/null
15644 lt_status=$?
15645 case x$lt_status in
15646 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15647 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15648 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15649 esac
15650 else :
15651 # compilation failed
15652 lt_cv_dlopen_self=no
15653 fi
15654 fi
15655 rm -fr conftest*
15656
15657 ;;
15658 esac
15659 fi
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15661 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15662
15663 if test yes = "$lt_cv_dlopen_self"; then
15664 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15666 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15667 if test ${lt_cv_dlopen_self_static+y}
15668 then :
15669 printf %s "(cached) " >&6
15670 else case e in #(
15671 e) if test yes = "$cross_compiling"; then :
15672 lt_cv_dlopen_self_static=cross
15673 else
15674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15675 lt_status=$lt_dlunknown
15676 cat > conftest.$ac_ext <<_LT_EOF
15677 #line $LINENO "configure"
15678 #include "confdefs.h"
15679
15680 #if HAVE_DLFCN_H
15681 #include <dlfcn.h>
15682 #endif
15683
15684 #include <stdio.h>
15685
15686 #ifdef RTLD_GLOBAL
15687 # define LT_DLGLOBAL RTLD_GLOBAL
15688 #else
15689 # ifdef DL_GLOBAL
15690 # define LT_DLGLOBAL DL_GLOBAL
15691 # else
15692 # define LT_DLGLOBAL 0
15693 # endif
15694 #endif
15695
15696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15697 find out it does not work in some platform. */
15698 #ifndef LT_DLLAZY_OR_NOW
15699 # ifdef RTLD_LAZY
15700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15701 # else
15702 # ifdef DL_LAZY
15703 # define LT_DLLAZY_OR_NOW DL_LAZY
15704 # else
15705 # ifdef RTLD_NOW
15706 # define LT_DLLAZY_OR_NOW RTLD_NOW
15707 # else
15708 # ifdef DL_NOW
15709 # define LT_DLLAZY_OR_NOW DL_NOW
15710 # else
15711 # define LT_DLLAZY_OR_NOW 0
15712 # endif
15713 # endif
15714 # endif
15715 # endif
15716 #endif
15717
15718 /* When -fvisibility=hidden is used, assume the code has been annotated
15719 correspondingly for the symbols needed. */
15720 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15721 int fnord (void) __attribute__((visibility("default")));
15722 #endif
15723
15724 int fnord (void) { return 42; }
15725 int main (void)
15726 {
15727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15728 int status = $lt_dlunknown;
15729
15730 if (self)
15731 {
15732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15733 else
15734 {
15735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15736 else puts (dlerror ());
15737 }
15738 /* dlclose (self); */
15739 }
15740 else
15741 puts (dlerror ());
15742
15743 return status;
15744 }
15745 _LT_EOF
15746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15747 (eval $ac_link) 2>&5
15748 ac_status=$?
15749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15750 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15751 (./conftest; exit; ) >&5 2>/dev/null
15752 lt_status=$?
15753 case x$lt_status in
15754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15757 esac
15758 else :
15759 # compilation failed
15760 lt_cv_dlopen_self_static=no
15761 fi
15762 fi
15763 rm -fr conftest*
15764
15765 ;;
15766 esac
15767 fi
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15769 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15770 fi
15771
15772 CPPFLAGS=$save_CPPFLAGS
15773 LDFLAGS=$save_LDFLAGS
15774 LIBS=$save_LIBS
15775 ;;
15776 esac
15777
15778 case $lt_cv_dlopen_self in
15779 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15780 *) enable_dlopen_self=unknown ;;
15781 esac
15782
15783 case $lt_cv_dlopen_self_static in
15784 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15785 *) enable_dlopen_self_static=unknown ;;
15786 esac
15787 fi
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805 striplib=
15806 old_striplib=
15807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15808 printf %s "checking whether stripping libraries is possible... " >&6; }
15809 if test -z "$STRIP"; then
15810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 printf "%s\n" "no" >&6; }
15812 else
15813 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15814 old_striplib="$STRIP --strip-debug"
15815 striplib="$STRIP --strip-unneeded"
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817 printf "%s\n" "yes" >&6; }
15818 else
15819 case $host_os in
15820 darwin*)
15821 # FIXME - insert some real tests, host_os isn't really good enough
15822 striplib="$STRIP -x"
15823 old_striplib="$STRIP -S"
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15825 printf "%s\n" "yes" >&6; }
15826 ;;
15827 freebsd*)
15828 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15829 old_striplib="$STRIP --strip-debug"
15830 striplib="$STRIP --strip-unneeded"
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15832 printf "%s\n" "yes" >&6; }
15833 else
15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835 printf "%s\n" "no" >&6; }
15836 fi
15837 ;;
15838 *)
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15840 printf "%s\n" "no" >&6; }
15841 ;;
15842 esac
15843 fi
15844 fi
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857 # Report what library types will actually be built
15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15859 printf %s "checking if libtool supports shared libraries... " >&6; }
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15861 printf "%s\n" "$can_build_shared" >&6; }
15862
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15864 printf %s "checking whether to build shared libraries... " >&6; }
15865 test no = "$can_build_shared" && enable_shared=no
15866
15867 # On AIX, shared libraries and static libraries use the same namespace, and
15868 # are all built from PIC.
15869 case $host_os in
15870 aix3*)
15871 test yes = "$enable_shared" && enable_static=no
15872 if test -n "$RANLIB"; then
15873 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15874 postinstall_cmds='$RANLIB $lib'
15875 fi
15876 ;;
15877
15878 aix[4-9]*)
15879 if test ia64 != "$host_cpu"; then
15880 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15881 yes,aix,yes) ;; # shared object as lib.so file only
15882 yes,svr4,*) ;; # shared object as lib.so archive member only
15883 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15884 esac
15885 fi
15886 ;;
15887 esac
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15889 printf "%s\n" "$enable_shared" >&6; }
15890
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15892 printf %s "checking whether to build static libraries... " >&6; }
15893 # Make sure either enable_shared or enable_static is yes.
15894 test yes = "$enable_shared" || enable_static=yes
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15896 printf "%s\n" "$enable_static" >&6; }
15897
15898
15899
15900
15901 fi
15902 ac_ext=c
15903 ac_cpp='$CPP $CPPFLAGS'
15904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15907
15908 CC=$lt_save_CC
15909
15910 if test -n "$CXX" && ( test no != "$CXX" &&
15911 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15912 (test g++ != "$CXX"))); then
15913 ac_ext=cpp
15914 ac_cpp='$CXXCPP $CPPFLAGS'
15915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15919 printf %s "checking how to run the C++ preprocessor... " >&6; }
15920 if test -z "$CXXCPP"; then
15921 if test ${ac_cv_prog_CXXCPP+y}
15922 then :
15923 printf %s "(cached) " >&6
15924 else case e in #(
15925 e) # Double quotes because $CXX needs to be expanded
15926 for CXXCPP in "$CXX -E" cpp /lib/cpp
15927 do
15928 ac_preproc_ok=false
15929 for ac_cxx_preproc_warn_flag in '' yes
15930 do
15931 # Use a header file that comes with gcc, so configuring glibc
15932 # with a fresh cross-compiler works.
15933 # On the NeXT, cc -E runs the code through the compiler's parser,
15934 # not just through cpp. "Syntax error" is here to catch this case.
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 #include <limits.h>
15938 Syntax error
15939 _ACEOF
15940 if ac_fn_cxx_try_cpp "$LINENO"
15941 then :
15942
15943 else case e in #(
15944 e) # Broken: fails on valid input.
15945 continue ;;
15946 esac
15947 fi
15948 rm -f conftest.err conftest.i conftest.$ac_ext
15949
15950 # OK, works on sane cases. Now check whether nonexistent headers
15951 # can be detected and how.
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 #include <ac_nonexistent.h>
15955 _ACEOF
15956 if ac_fn_cxx_try_cpp "$LINENO"
15957 then :
15958 # Broken: success on invalid input.
15959 continue
15960 else case e in #(
15961 e) # Passes both tests.
15962 ac_preproc_ok=:
15963 break ;;
15964 esac
15965 fi
15966 rm -f conftest.err conftest.i conftest.$ac_ext
15967
15968 done
15969 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15970 rm -f conftest.i conftest.err conftest.$ac_ext
15971 if $ac_preproc_ok
15972 then :
15973 break
15974 fi
15975
15976 done
15977 ac_cv_prog_CXXCPP=$CXXCPP
15978 ;;
15979 esac
15980 fi
15981 CXXCPP=$ac_cv_prog_CXXCPP
15982 else
15983 ac_cv_prog_CXXCPP=$CXXCPP
15984 fi
15985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15986 printf "%s\n" "$CXXCPP" >&6; }
15987 ac_preproc_ok=false
15988 for ac_cxx_preproc_warn_flag in '' yes
15989 do
15990 # Use a header file that comes with gcc, so configuring glibc
15991 # with a fresh cross-compiler works.
15992 # On the NeXT, cc -E runs the code through the compiler's parser,
15993 # not just through cpp. "Syntax error" is here to catch this case.
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 #include <limits.h>
15997 Syntax error
15998 _ACEOF
15999 if ac_fn_cxx_try_cpp "$LINENO"
16000 then :
16001
16002 else case e in #(
16003 e) # Broken: fails on valid input.
16004 continue ;;
16005 esac
16006 fi
16007 rm -f conftest.err conftest.i conftest.$ac_ext
16008
16009 # OK, works on sane cases. Now check whether nonexistent headers
16010 # can be detected and how.
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 #include <ac_nonexistent.h>
16014 _ACEOF
16015 if ac_fn_cxx_try_cpp "$LINENO"
16016 then :
16017 # Broken: success on invalid input.
16018 continue
16019 else case e in #(
16020 e) # Passes both tests.
16021 ac_preproc_ok=:
16022 break ;;
16023 esac
16024 fi
16025 rm -f conftest.err conftest.i conftest.$ac_ext
16026
16027 done
16028 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16029 rm -f conftest.i conftest.err conftest.$ac_ext
16030 if $ac_preproc_ok
16031 then :
16032
16033 else case e in #(
16034 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16035 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16036 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16037 See 'config.log' for more details" "$LINENO" 5; } ;;
16038 esac
16039 fi
16040
16041 ac_ext=c
16042 ac_cpp='$CPP $CPPFLAGS'
16043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16046
16047 else
16048 _lt_caught_CXX_error=yes
16049 fi
16050
16051 ac_ext=cpp
16052 ac_cpp='$CXXCPP $CPPFLAGS'
16053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16056
16057 archive_cmds_need_lc_CXX=no
16058 allow_undefined_flag_CXX=
16059 always_export_symbols_CXX=no
16060 archive_expsym_cmds_CXX=
16061 compiler_needs_object_CXX=no
16062 export_dynamic_flag_spec_CXX=
16063 hardcode_direct_CXX=no
16064 hardcode_direct_absolute_CXX=no
16065 hardcode_libdir_flag_spec_CXX=
16066 hardcode_libdir_separator_CXX=
16067 hardcode_minus_L_CXX=no
16068 hardcode_shlibpath_var_CXX=unsupported
16069 hardcode_automatic_CXX=no
16070 inherit_rpath_CXX=no
16071 module_cmds_CXX=
16072 module_expsym_cmds_CXX=
16073 link_all_deplibs_CXX=unknown
16074 old_archive_cmds_CXX=$old_archive_cmds
16075 reload_flag_CXX=$reload_flag
16076 reload_cmds_CXX=$reload_cmds
16077 no_undefined_flag_CXX=
16078 whole_archive_flag_spec_CXX=
16079 enable_shared_with_static_runtimes_CXX=no
16080
16081 # Source file extension for C++ test sources.
16082 ac_ext=cpp
16083
16084 # Object file extension for compiled C++ test sources.
16085 objext=o
16086 objext_CXX=$objext
16087
16088 # No sense in running all these tests if we already determined that
16089 # the CXX compiler isn't working. Some variables (like enable_shared)
16090 # are currently assumed to apply to all compilers on this platform,
16091 # and will be corrupted by setting them based on a non-working compiler.
16092 if test yes != "$_lt_caught_CXX_error"; then
16093 # Code to be used in simple compile tests
16094 lt_simple_compile_test_code="int some_variable = 0;"
16095
16096 # Code to be used in simple link tests
16097 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16098
16099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16100
16101
16102
16103
16104
16105
16106 # If no C compiler was specified, use CC.
16107 LTCC=${LTCC-"$CC"}
16108
16109 # If no C compiler flags were specified, use CFLAGS.
16110 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16111
16112 # Allow CC to be a program name with arguments.
16113 compiler=$CC
16114
16115
16116 # save warnings/boilerplate of simple test code
16117 ac_outfile=conftest.$ac_objext
16118 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16119 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16120 _lt_compiler_boilerplate=`cat conftest.err`
16121 $RM conftest*
16122
16123 ac_outfile=conftest.$ac_objext
16124 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16125 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16126 _lt_linker_boilerplate=`cat conftest.err`
16127 $RM -r conftest*
16128
16129
16130 # Allow CC to be a program name with arguments.
16131 lt_save_CC=$CC
16132 lt_save_CFLAGS=$CFLAGS
16133 lt_save_LD=$LD
16134 lt_save_GCC=$GCC
16135 GCC=$GXX
16136 lt_save_with_gnu_ld=$with_gnu_ld
16137 lt_save_path_LD=$lt_cv_path_LD
16138 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16139 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16140 else
16141 $as_unset lt_cv_prog_gnu_ld
16142 fi
16143 if test -n "${lt_cv_path_LDCXX+set}"; then
16144 lt_cv_path_LD=$lt_cv_path_LDCXX
16145 else
16146 $as_unset lt_cv_path_LD
16147 fi
16148 test -z "${LDCXX+set}" || LD=$LDCXX
16149 CC=${CXX-"c++"}
16150 CFLAGS=$CXXFLAGS
16151 compiler=$CC
16152 compiler_CXX=$CC
16153 func_cc_basename $compiler
16154 cc_basename=$func_cc_basename_result
16155
16156
16157 if test -n "$compiler"; then
16158 # We don't want -fno-exception when compiling C++ code, so set the
16159 # no_builtin_flag separately
16160 if test yes = "$GXX"; then
16161 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16162 else
16163 lt_prog_compiler_no_builtin_flag_CXX=
16164 fi
16165
16166 if test yes = "$GXX"; then
16167 # Set up default GNU C++ configuration
16168
16169
16170
16171 # Check whether --with-gnu-ld was given.
16172 if test ${with_gnu_ld+y}
16173 then :
16174 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16175 else case e in #(
16176 e) with_gnu_ld=no ;;
16177 esac
16178 fi
16179
16180 ac_prog=ld
16181 if test yes = "$GCC"; then
16182 # Check if gcc -print-prog-name=ld gives a path.
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16184 printf %s "checking for ld used by $CC... " >&6; }
16185 case $host in
16186 *-*-mingw* | *-*-windows*)
16187 # gcc leaves a trailing carriage return, which upsets mingw
16188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16189 *)
16190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16191 esac
16192 case $ac_prog in
16193 # Accept absolute paths.
16194 [\\/]* | ?:[\\/]*)
16195 re_direlt='/[^/][^/]*/\.\./'
16196 # Canonicalize the pathname of ld
16197 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16198 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16199 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16200 done
16201 test -z "$LD" && LD=$ac_prog
16202 ;;
16203 "")
16204 # If it fails, then pretend we aren't using GCC.
16205 ac_prog=ld
16206 ;;
16207 *)
16208 # If it is relative, then search for the first ld in PATH.
16209 with_gnu_ld=unknown
16210 ;;
16211 esac
16212 elif test yes = "$with_gnu_ld"; then
16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16214 printf %s "checking for GNU ld... " >&6; }
16215 else
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16217 printf %s "checking for non-GNU ld... " >&6; }
16218 fi
16219 if test ${lt_cv_path_LD+y}
16220 then :
16221 printf %s "(cached) " >&6
16222 else case e in #(
16223 e) if test -z "$LD"; then
16224 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16225 for ac_dir in $PATH; do
16226 IFS=$lt_save_ifs
16227 test -z "$ac_dir" && ac_dir=.
16228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16229 lt_cv_path_LD=$ac_dir/$ac_prog
16230 # Check to see if the program is GNU ld. I'd rather use --version,
16231 # but apparently some variants of GNU ld only accept -v.
16232 # Break only if it was the GNU/non-GNU ld that we prefer.
16233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16234 *GNU* | *'with BFD'*)
16235 test no != "$with_gnu_ld" && break
16236 ;;
16237 *)
16238 test yes != "$with_gnu_ld" && break
16239 ;;
16240 esac
16241 fi
16242 done
16243 IFS=$lt_save_ifs
16244 else
16245 lt_cv_path_LD=$LD # Let the user override the test with a path.
16246 fi ;;
16247 esac
16248 fi
16249
16250 LD=$lt_cv_path_LD
16251 if test -n "$LD"; then
16252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16253 printf "%s\n" "$LD" >&6; }
16254 else
16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 printf "%s\n" "no" >&6; }
16257 fi
16258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16260 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16261 if test ${lt_cv_prog_gnu_ld+y}
16262 then :
16263 printf %s "(cached) " >&6
16264 else case e in #(
16265 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16266 case `$LD -v 2>&1 </dev/null` in
16267 *GNU* | *'with BFD'*)
16268 lt_cv_prog_gnu_ld=yes
16269 ;;
16270 *)
16271 lt_cv_prog_gnu_ld=no
16272 ;;
16273 esac ;;
16274 esac
16275 fi
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16277 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16278 with_gnu_ld=$lt_cv_prog_gnu_ld
16279
16280
16281
16282
16283
16284
16285
16286 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16287 # archiving commands below assume that GNU ld is being used.
16288 if test yes = "$with_gnu_ld"; then
16289 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16290 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'
16291
16292 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16293 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16294
16295 # If archive_cmds runs LD, not CC, wlarc should be empty
16296 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16297 # investigate it a little bit more. (MM)
16298 wlarc='$wl'
16299
16300 # ancient GNU ld didn't support --whole-archive et. al.
16301 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16302 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16303 else
16304 whole_archive_flag_spec_CXX=
16305 fi
16306 else
16307 with_gnu_ld=no
16308 wlarc=
16309
16310 # A generic and very simple default shared library creation
16311 # command for GNU C++ for the case where it uses the native
16312 # linker, instead of GNU ld. If possible, this setting should
16313 # overridden to take advantage of the native linker features on
16314 # the platform it is being used on.
16315 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16316 fi
16317
16318 # Commands to make compiler produce verbose output that lists
16319 # what "hidden" libraries, object files and flags are used when
16320 # linking a shared library.
16321 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16322
16323 else
16324 GXX=no
16325 with_gnu_ld=no
16326 wlarc=
16327 fi
16328
16329 # PORTME: fill in a description of your system's C++ link characteristics
16330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16331 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16332 ld_shlibs_CXX=yes
16333 case $host_os in
16334 aix3*)
16335 # FIXME: insert proper C++ library support
16336 ld_shlibs_CXX=no
16337 ;;
16338 aix[4-9]*)
16339 if test ia64 = "$host_cpu"; then
16340 # On IA64, the linker does run time linking by default, so we don't
16341 # have to do anything special.
16342 aix_use_runtimelinking=no
16343 exp_sym_flag='-Bexport'
16344 no_entry_flag=
16345 else
16346 aix_use_runtimelinking=no
16347
16348 # Test if we are trying to use run time linking or normal
16349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16350 # have runtime linking enabled, and use it for executables.
16351 # For shared libraries, we enable/disable runtime linking
16352 # depending on the kind of the shared library created -
16353 # when "with_aix_soname,aix_use_runtimelinking" is:
16354 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16355 # "aix,yes" lib.so shared, rtl:yes, for executables
16356 # lib.a static archive
16357 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16358 # lib.a(lib.so.V) shared, rtl:no, for executables
16359 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16360 # lib.a(lib.so.V) shared, rtl:no
16361 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16362 # lib.a static archive
16363 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16364 for ld_flag in $LDFLAGS; do
16365 case $ld_flag in
16366 *-brtl*)
16367 aix_use_runtimelinking=yes
16368 break
16369 ;;
16370 esac
16371 done
16372 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16373 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16374 # so we don't have lib.a shared libs to link our executables.
16375 # We have to force runtime linking in this case.
16376 aix_use_runtimelinking=yes
16377 LDFLAGS="$LDFLAGS -Wl,-brtl"
16378 fi
16379 ;;
16380 esac
16381
16382 exp_sym_flag='-bexport'
16383 no_entry_flag='-bnoentry'
16384 fi
16385
16386 # When large executables or shared objects are built, AIX ld can
16387 # have problems creating the table of contents. If linking a library
16388 # or program results in "error TOC overflow" add -mminimal-toc to
16389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16391
16392 archive_cmds_CXX=''
16393 hardcode_direct_CXX=yes
16394 hardcode_direct_absolute_CXX=yes
16395 hardcode_libdir_separator_CXX=':'
16396 link_all_deplibs_CXX=yes
16397 file_list_spec_CXX='$wl-f,'
16398 case $with_aix_soname,$aix_use_runtimelinking in
16399 aix,*) ;; # no import file
16400 svr4,* | *,yes) # use import file
16401 # The Import File defines what to hardcode.
16402 hardcode_direct_CXX=no
16403 hardcode_direct_absolute_CXX=no
16404 ;;
16405 esac
16406
16407 if test yes = "$GXX"; then
16408 case $host_os in aix4.[012]|aix4.[012].*)
16409 # We only want to do this on AIX 4.2 and lower, the check
16410 # below for broken collect2 doesn't work under 4.3+
16411 collect2name=`$CC -print-prog-name=collect2`
16412 if test -f "$collect2name" &&
16413 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16414 then
16415 # We have reworked collect2
16416 :
16417 else
16418 # We have old collect2
16419 hardcode_direct_CXX=unsupported
16420 # It fails to find uninstalled libraries when the uninstalled
16421 # path is not listed in the libpath. Setting hardcode_minus_L
16422 # to unsupported forces relinking
16423 hardcode_minus_L_CXX=yes
16424 hardcode_libdir_flag_spec_CXX='-L$libdir'
16425 hardcode_libdir_separator_CXX=
16426 fi
16427 esac
16428 shared_flag='-shared'
16429 if test yes = "$aix_use_runtimelinking"; then
16430 shared_flag=$shared_flag' $wl-G'
16431 fi
16432 # Need to ensure runtime linking is disabled for the traditional
16433 # shared library, or the linker may eventually find shared libraries
16434 # /with/ Import File - we do not want to mix them.
16435 shared_flag_aix='-shared'
16436 shared_flag_svr4='-shared $wl-G'
16437 else
16438 # not using gcc
16439 if test ia64 = "$host_cpu"; then
16440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16441 # chokes on -Wl,-G. The following line is correct:
16442 shared_flag='-G'
16443 else
16444 if test yes = "$aix_use_runtimelinking"; then
16445 shared_flag='$wl-G'
16446 else
16447 shared_flag='$wl-bM:SRE'
16448 fi
16449 shared_flag_aix='$wl-bM:SRE'
16450 shared_flag_svr4='$wl-G'
16451 fi
16452 fi
16453
16454 export_dynamic_flag_spec_CXX='$wl-bexpall'
16455 # It seems that -bexpall does not export symbols beginning with
16456 # underscore (_), so it is better to generate a list of symbols to
16457 # export.
16458 always_export_symbols_CXX=yes
16459 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16460 # Warning - without using the other runtime loading flags (-brtl),
16461 # -berok will link without error, but may produce a broken library.
16462 # The "-G" linker flag allows undefined symbols.
16463 no_undefined_flag_CXX='-bernotok'
16464 # Determine the default libpath from the value encoded in an empty
16465 # executable.
16466 if test set = "${lt_cv_aix_libpath+set}"; then
16467 aix_libpath=$lt_cv_aix_libpath
16468 else
16469 if test ${lt_cv_aix_libpath__CXX+y}
16470 then :
16471 printf %s "(cached) " >&6
16472 else case e in #(
16473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475
16476 int
16477 main (void)
16478 {
16479
16480 ;
16481 return 0;
16482 }
16483 _ACEOF
16484 if ac_fn_cxx_try_link "$LINENO"
16485 then :
16486
16487 lt_aix_libpath_sed='
16488 /Import File Strings/,/^$/ {
16489 /^0/ {
16490 s/^0 *\([^ ]*\) *$/\1/
16491 p
16492 }
16493 }'
16494 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16495 # Check for a 64-bit object if we didn't find anything.
16496 if test -z "$lt_cv_aix_libpath__CXX"; then
16497 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16498 fi
16499 fi
16500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16501 conftest$ac_exeext conftest.$ac_ext
16502 if test -z "$lt_cv_aix_libpath__CXX"; then
16503 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16504 fi
16505 ;;
16506 esac
16507 fi
16508
16509 aix_libpath=$lt_cv_aix_libpath__CXX
16510 fi
16511
16512 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16513
16514 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
16515 else
16516 if test ia64 = "$host_cpu"; then
16517 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16518 allow_undefined_flag_CXX="-z nodefs"
16519 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"
16520 else
16521 # Determine the default libpath from the value encoded in an
16522 # empty executable.
16523 if test set = "${lt_cv_aix_libpath+set}"; then
16524 aix_libpath=$lt_cv_aix_libpath
16525 else
16526 if test ${lt_cv_aix_libpath__CXX+y}
16527 then :
16528 printf %s "(cached) " >&6
16529 else case e in #(
16530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16532
16533 int
16534 main (void)
16535 {
16536
16537 ;
16538 return 0;
16539 }
16540 _ACEOF
16541 if ac_fn_cxx_try_link "$LINENO"
16542 then :
16543
16544 lt_aix_libpath_sed='
16545 /Import File Strings/,/^$/ {
16546 /^0/ {
16547 s/^0 *\([^ ]*\) *$/\1/
16548 p
16549 }
16550 }'
16551 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16552 # Check for a 64-bit object if we didn't find anything.
16553 if test -z "$lt_cv_aix_libpath__CXX"; then
16554 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16555 fi
16556 fi
16557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16558 conftest$ac_exeext conftest.$ac_ext
16559 if test -z "$lt_cv_aix_libpath__CXX"; then
16560 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16561 fi
16562 ;;
16563 esac
16564 fi
16565
16566 aix_libpath=$lt_cv_aix_libpath__CXX
16567 fi
16568
16569 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16570 # Warning - without using the other run time loading flags,
16571 # -berok will link without error, but may produce a broken library.
16572 no_undefined_flag_CXX=' $wl-bernotok'
16573 allow_undefined_flag_CXX=' $wl-berok'
16574 if test yes = "$with_gnu_ld"; then
16575 # We only use this code for GNU lds that support --whole-archive.
16576 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16577 else
16578 # Exported symbols can be pulled into shared objects from archives
16579 whole_archive_flag_spec_CXX='$convenience'
16580 fi
16581 archive_cmds_need_lc_CXX=yes
16582 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16583 # -brtl affects multiple linker settings, -berok does not and is overridden later
16584 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16585 if test svr4 != "$with_aix_soname"; then
16586 # This is similar to how AIX traditionally builds its shared
16587 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16588 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'
16589 fi
16590 if test aix != "$with_aix_soname"; then
16591 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'
16592 else
16593 # used by -dlpreopen to get the symbols
16594 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16595 fi
16596 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16597 fi
16598 fi
16599 ;;
16600
16601 beos*)
16602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16603 allow_undefined_flag_CXX=unsupported
16604 # Joseph Beckenbach <[email protected]> says some releases of gcc
16605 # support --undefined. This deserves some investigation. FIXME
16606 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16607 else
16608 ld_shlibs_CXX=no
16609 fi
16610 ;;
16611
16612 chorus*)
16613 case $cc_basename in
16614 *)
16615 # FIXME: insert proper C++ library support
16616 ld_shlibs_CXX=no
16617 ;;
16618 esac
16619 ;;
16620
16621 cygwin* | mingw* | windows* | pw32* | cegcc*)
16622 case $GXX,$cc_basename in
16623 ,cl* | no,cl* | ,icl* | no,icl*)
16624 # Native MSVC or ICC
16625 # hardcode_libdir_flag_spec is actually meaningless, as there is
16626 # no search path for DLLs.
16627 hardcode_libdir_flag_spec_CXX=' '
16628 allow_undefined_flag_CXX=unsupported
16629 always_export_symbols_CXX=yes
16630 file_list_spec_CXX='@'
16631 # Tell ltmain to make .lib files, not .a files.
16632 libext=lib
16633 # Tell ltmain to make .dll files, not .so files.
16634 shrext_cmds=.dll
16635 # FIXME: Setting linknames here is a bad hack.
16636 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16637 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16638 cp "$export_symbols" "$output_objdir/$soname.def";
16639 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16640 else
16641 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16642 fi~
16643 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16644 linknames='
16645 # The linker will not automatically build a static lib if we build a DLL.
16646 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16647 enable_shared_with_static_runtimes_CXX=yes
16648 # Don't use ranlib
16649 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16650 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16651 lt_tool_outputfile="@TOOL_OUTPUT@"~
16652 case $lt_outputfile in
16653 *.exe|*.EXE) ;;
16654 *)
16655 lt_outputfile=$lt_outputfile.exe
16656 lt_tool_outputfile=$lt_tool_outputfile.exe
16657 ;;
16658 esac~
16659 func_to_tool_file "$lt_outputfile"~
16660 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16661 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16662 $RM "$lt_outputfile.manifest";
16663 fi'
16664 ;;
16665 *)
16666 # g++
16667 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16668 # as there is no search path for DLLs.
16669 hardcode_libdir_flag_spec_CXX='-L$libdir'
16670 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16671 allow_undefined_flag_CXX=unsupported
16672 always_export_symbols_CXX=no
16673 enable_shared_with_static_runtimes_CXX=yes
16674 file_list_spec_CXX='@'
16675
16676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16677 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'
16678 # If the export-symbols file already is a .def file, use it as
16679 # is; otherwise, prepend EXPORTS...
16680 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16681 cp $export_symbols $output_objdir/$soname.def;
16682 else
16683 echo EXPORTS > $output_objdir/$soname.def;
16684 cat $export_symbols >> $output_objdir/$soname.def;
16685 fi~
16686 $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'
16687 else
16688 ld_shlibs_CXX=no
16689 fi
16690 ;;
16691 esac
16692 ;;
16693 darwin* | rhapsody*)
16694
16695
16696 archive_cmds_need_lc_CXX=no
16697 hardcode_direct_CXX=no
16698 hardcode_automatic_CXX=yes
16699 hardcode_shlibpath_var_CXX=unsupported
16700 if test yes = "$lt_cv_ld_force_load"; then
16701 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\"`'
16702
16703 else
16704 whole_archive_flag_spec_CXX=''
16705 fi
16706 link_all_deplibs_CXX=yes
16707 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16708 case $cc_basename in
16709 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16710 *) _lt_dar_can_shared=$GCC ;;
16711 esac
16712 if test yes = "$_lt_dar_can_shared"; then
16713 output_verbose_link_cmd=func_echo_all
16714 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"
16715 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16716 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"
16717 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"
16718 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
16719 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"
16720 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"
16721 fi
16722
16723 else
16724 ld_shlibs_CXX=no
16725 fi
16726
16727 ;;
16728
16729 os2*)
16730 hardcode_libdir_flag_spec_CXX='-L$libdir'
16731 hardcode_minus_L_CXX=yes
16732 allow_undefined_flag_CXX=unsupported
16733 shrext_cmds=.dll
16734 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16737 $ECHO EXPORTS >> $output_objdir/$libname.def~
16738 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16740 emximp -o $lib $output_objdir/$libname.def'
16741 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16744 $ECHO EXPORTS >> $output_objdir/$libname.def~
16745 prefix_cmds="$SED"~
16746 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16747 prefix_cmds="$prefix_cmds -e 1d";
16748 fi~
16749 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16750 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16751 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16752 emximp -o $lib $output_objdir/$libname.def'
16753 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16754 enable_shared_with_static_runtimes_CXX=yes
16755 file_list_spec_CXX='@'
16756 ;;
16757
16758 dgux*)
16759 case $cc_basename in
16760 ec++*)
16761 # FIXME: insert proper C++ library support
16762 ld_shlibs_CXX=no
16763 ;;
16764 ghcx*)
16765 # Green Hills C++ Compiler
16766 # FIXME: insert proper C++ library support
16767 ld_shlibs_CXX=no
16768 ;;
16769 *)
16770 # FIXME: insert proper C++ library support
16771 ld_shlibs_CXX=no
16772 ;;
16773 esac
16774 ;;
16775
16776 freebsd2.*)
16777 # C++ shared libraries reported to be fairly broken before
16778 # switch to ELF
16779 ld_shlibs_CXX=no
16780 ;;
16781
16782 freebsd-elf*)
16783 archive_cmds_need_lc_CXX=no
16784 ;;
16785
16786 freebsd* | dragonfly* | midnightbsd*)
16787 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16788 # conventions
16789 ld_shlibs_CXX=yes
16790 ;;
16791
16792 haiku*)
16793 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16794 link_all_deplibs_CXX=no
16795 ;;
16796
16797 hpux9*)
16798 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16799 hardcode_libdir_separator_CXX=:
16800 export_dynamic_flag_spec_CXX='$wl-E'
16801 hardcode_direct_CXX=yes
16802 hardcode_minus_L_CXX=yes # Not in the search PATH,
16803 # but as the default
16804 # location of the library.
16805
16806 case $cc_basename in
16807 CC*)
16808 # FIXME: insert proper C++ library support
16809 ld_shlibs_CXX=no
16810 ;;
16811 aCC*)
16812 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'
16813 # Commands to make compiler produce verbose output that lists
16814 # what "hidden" libraries, object files and flags are used when
16815 # linking a shared library.
16816 #
16817 # There doesn't appear to be a way to prevent this compiler from
16818 # explicitly linking system object files so we need to strip them
16819 # from the output so that they don't get included in the library
16820 # dependencies.
16821 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"'
16822 ;;
16823 *)
16824 if test yes = "$GXX"; then
16825 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'
16826 else
16827 # FIXME: insert proper C++ library support
16828 ld_shlibs_CXX=no
16829 fi
16830 ;;
16831 esac
16832 ;;
16833
16834 hpux10*|hpux11*)
16835 if test no = "$with_gnu_ld"; then
16836 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16837 hardcode_libdir_separator_CXX=:
16838
16839 case $host_cpu in
16840 hppa*64*|ia64*)
16841 ;;
16842 *)
16843 export_dynamic_flag_spec_CXX='$wl-E'
16844 ;;
16845 esac
16846 fi
16847 case $host_cpu in
16848 hppa*64*|ia64*)
16849 hardcode_direct_CXX=no
16850 hardcode_shlibpath_var_CXX=no
16851 ;;
16852 *)
16853 hardcode_direct_CXX=yes
16854 hardcode_direct_absolute_CXX=yes
16855 hardcode_minus_L_CXX=yes # Not in the search PATH,
16856 # but as the default
16857 # location of the library.
16858 ;;
16859 esac
16860
16861 case $cc_basename in
16862 CC*)
16863 # FIXME: insert proper C++ library support
16864 ld_shlibs_CXX=no
16865 ;;
16866 aCC*)
16867 case $host_cpu in
16868 hppa*64*)
16869 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16870 ;;
16871 ia64*)
16872 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16873 ;;
16874 *)
16875 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16876 ;;
16877 esac
16878 # Commands to make compiler produce verbose output that lists
16879 # what "hidden" libraries, object files and flags are used when
16880 # linking a shared library.
16881 #
16882 # There doesn't appear to be a way to prevent this compiler from
16883 # explicitly linking system object files so we need to strip them
16884 # from the output so that they don't get included in the library
16885 # dependencies.
16886 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"'
16887 ;;
16888 *)
16889 if test yes = "$GXX"; then
16890 if test no = "$with_gnu_ld"; then
16891 case $host_cpu in
16892 hppa*64*)
16893 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16894 ;;
16895 ia64*)
16896 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16897 ;;
16898 *)
16899 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'
16900 ;;
16901 esac
16902 fi
16903 else
16904 # FIXME: insert proper C++ library support
16905 ld_shlibs_CXX=no
16906 fi
16907 ;;
16908 esac
16909 ;;
16910
16911 interix[3-9]*)
16912 hardcode_direct_CXX=no
16913 hardcode_shlibpath_var_CXX=no
16914 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16915 export_dynamic_flag_spec_CXX='$wl-E'
16916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16917 # Instead, shared libraries are loaded at an image base (0x10000000 by
16918 # default) and relocated if they conflict, which is a slow very memory
16919 # consuming and fragmenting process. To avoid this, we pick a random,
16920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16922 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'
16923 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'
16924 ;;
16925 irix5* | irix6*)
16926 case $cc_basename in
16927 CC*)
16928 # SGI C++
16929 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'
16930
16931 # Archives containing C++ object files must be created using
16932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16933 # necessary to make sure instantiated templates are included
16934 # in the archive.
16935 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16936 ;;
16937 *)
16938 if test yes = "$GXX"; then
16939 if test no = "$with_gnu_ld"; then
16940 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'
16941 else
16942 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'
16943 fi
16944 fi
16945 link_all_deplibs_CXX=yes
16946 ;;
16947 esac
16948 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16949 hardcode_libdir_separator_CXX=:
16950 inherit_rpath_CXX=yes
16951 ;;
16952
16953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16954 case $cc_basename in
16955 KCC*)
16956 # Kuck and Associates, Inc. (KAI) C++ Compiler
16957
16958 # KCC will only create a shared library if the output file
16959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16960 # to its proper name (with version) after linking.
16961 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'
16962 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'
16963 # Commands to make compiler produce verbose output that lists
16964 # what "hidden" libraries, object files and flags are used when
16965 # linking a shared library.
16966 #
16967 # There doesn't appear to be a way to prevent this compiler from
16968 # explicitly linking system object files so we need to strip them
16969 # from the output so that they don't get included in the library
16970 # dependencies.
16971 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"'
16972
16973 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16974 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16975
16976 # Archives containing C++ object files must be created using
16977 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16978 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16979 ;;
16980 icpc* | ecpc* )
16981 # Intel C++
16982 with_gnu_ld=yes
16983 # version 8.0 and above of icpc choke on multiply defined symbols
16984 # if we add $predep_objects and $postdep_objects, however 7.1 and
16985 # earlier do not add the objects themselves.
16986 case `$CC -V 2>&1` in
16987 *"Version 7."*)
16988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16989 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'
16990 ;;
16991 *) # Version 8.0 or newer
16992 tmp_idyn=
16993 case $host_cpu in
16994 ia64*) tmp_idyn=' -i_dynamic';;
16995 esac
16996 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16997 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'
16998 ;;
16999 esac
17000 archive_cmds_need_lc_CXX=no
17001 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17002 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17003 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17004 ;;
17005 pgCC* | pgcpp*)
17006 # Portland Group C++ compiler
17007 case `$CC -V` in
17008 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17009 prelink_cmds_CXX='tpldir=Template.dir~
17010 rm -rf $tpldir~
17011 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17012 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17013 old_archive_cmds_CXX='tpldir=Template.dir~
17014 rm -rf $tpldir~
17015 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17016 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17017 $RANLIB $oldlib'
17018 archive_cmds_CXX='tpldir=Template.dir~
17019 rm -rf $tpldir~
17020 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17021 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17022 archive_expsym_cmds_CXX='tpldir=Template.dir~
17023 rm -rf $tpldir~
17024 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17025 $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'
17026 ;;
17027 *) # Version 6 and above use weak symbols
17028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17029 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'
17030 ;;
17031 esac
17032
17033 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17034 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17035 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'
17036 ;;
17037 cxx*)
17038 # Compaq C++
17039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17040 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'
17041
17042 runpath_var=LD_RUN_PATH
17043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17044 hardcode_libdir_separator_CXX=:
17045
17046 # Commands to make compiler produce verbose output that lists
17047 # what "hidden" libraries, object files and flags are used when
17048 # linking a shared library.
17049 #
17050 # There doesn't appear to be a way to prevent this compiler from
17051 # explicitly linking system object files so we need to strip them
17052 # from the output so that they don't get included in the library
17053 # dependencies.
17054 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'
17055 ;;
17056 xl* | mpixl* | bgxl*)
17057 # IBM XL 8.0 on PPC, with GNU ld
17058 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17059 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17060 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17061 if test yes = "$supports_anon_versioning"; then
17062 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17063 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17064 echo "local: *; };" >> $output_objdir/$libname.ver~
17065 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17066 fi
17067 ;;
17068 *)
17069 case `$CC -V 2>&1 | $SED 5q` in
17070 *Sun\ C*)
17071 # Sun C++ 5.9
17072 no_undefined_flag_CXX=' -zdefs'
17073 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17074 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'
17075 hardcode_libdir_flag_spec_CXX='-R$libdir'
17076 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'
17077 compiler_needs_object_CXX=yes
17078
17079 # Not sure whether something based on
17080 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17081 # would be better.
17082 output_verbose_link_cmd='func_echo_all'
17083
17084 # Archives containing C++ object files must be created using
17085 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17086 # necessary to make sure instantiated templates are included
17087 # in the archive.
17088 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17089 ;;
17090 esac
17091 ;;
17092 esac
17093 ;;
17094
17095 lynxos*)
17096 # FIXME: insert proper C++ library support
17097 ld_shlibs_CXX=no
17098 ;;
17099
17100 m88k*)
17101 # FIXME: insert proper C++ library support
17102 ld_shlibs_CXX=no
17103 ;;
17104
17105 mvs*)
17106 case $cc_basename in
17107 cxx*)
17108 # FIXME: insert proper C++ library support
17109 ld_shlibs_CXX=no
17110 ;;
17111 *)
17112 # FIXME: insert proper C++ library support
17113 ld_shlibs_CXX=no
17114 ;;
17115 esac
17116 ;;
17117
17118 *-mlibc)
17119 ld_shlibs_CXX=yes
17120 ;;
17121
17122 netbsd*)
17123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17124 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17125 wlarc=
17126 hardcode_libdir_flag_spec_CXX='-R$libdir'
17127 hardcode_direct_CXX=yes
17128 hardcode_shlibpath_var_CXX=no
17129 fi
17130 # Workaround some broken pre-1.5 toolchains
17131 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17132 ;;
17133
17134 *nto* | *qnx*)
17135 ld_shlibs_CXX=yes
17136 ;;
17137
17138 openbsd*)
17139 if test -f /usr/libexec/ld.so; then
17140 hardcode_direct_CXX=yes
17141 hardcode_shlibpath_var_CXX=no
17142 hardcode_direct_absolute_CXX=yes
17143 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17144 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17146 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17147 export_dynamic_flag_spec_CXX='$wl-E'
17148 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17149 fi
17150 output_verbose_link_cmd=func_echo_all
17151 else
17152 ld_shlibs_CXX=no
17153 fi
17154 ;;
17155
17156 osf3* | osf4* | osf5*)
17157 case $cc_basename in
17158 KCC*)
17159 # Kuck and Associates, Inc. (KAI) C++ Compiler
17160
17161 # KCC will only create a shared library if the output file
17162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17163 # to its proper name (with version) after linking.
17164 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'
17165
17166 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17167 hardcode_libdir_separator_CXX=:
17168
17169 # Archives containing C++ object files must be created using
17170 # the KAI C++ compiler.
17171 case $host in
17172 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17173 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17174 esac
17175 ;;
17176 RCC*)
17177 # Rational C++ 2.4.1
17178 # FIXME: insert proper C++ library support
17179 ld_shlibs_CXX=no
17180 ;;
17181 cxx*)
17182 case $host in
17183 osf3*)
17184 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17185 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'
17186 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17187 ;;
17188 *)
17189 allow_undefined_flag_CXX=' -expect_unresolved \*'
17190 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'
17191 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17192 echo "-hidden">> $lib.exp~
17193 $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~
17194 $RM $lib.exp'
17195 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17196 ;;
17197 esac
17198
17199 hardcode_libdir_separator_CXX=:
17200
17201 # Commands to make compiler produce verbose output that lists
17202 # what "hidden" libraries, object files and flags are used when
17203 # linking a shared library.
17204 #
17205 # There doesn't appear to be a way to prevent this compiler from
17206 # explicitly linking system object files so we need to strip them
17207 # from the output so that they don't get included in the library
17208 # dependencies.
17209 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"'
17210 ;;
17211 *)
17212 if test yes,no = "$GXX,$with_gnu_ld"; then
17213 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17214 case $host in
17215 osf3*)
17216 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'
17217 ;;
17218 *)
17219 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'
17220 ;;
17221 esac
17222
17223 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17224 hardcode_libdir_separator_CXX=:
17225
17226 # Commands to make compiler produce verbose output that lists
17227 # what "hidden" libraries, object files and flags are used when
17228 # linking a shared library.
17229 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17230
17231 else
17232 # FIXME: insert proper C++ library support
17233 ld_shlibs_CXX=no
17234 fi
17235 ;;
17236 esac
17237 ;;
17238
17239 psos*)
17240 # FIXME: insert proper C++ library support
17241 ld_shlibs_CXX=no
17242 ;;
17243
17244 serenity*)
17245 ;;
17246
17247 sunos4*)
17248 case $cc_basename in
17249 CC*)
17250 # Sun C++ 4.x
17251 # FIXME: insert proper C++ library support
17252 ld_shlibs_CXX=no
17253 ;;
17254 lcc*)
17255 # Lucid
17256 # FIXME: insert proper C++ library support
17257 ld_shlibs_CXX=no
17258 ;;
17259 *)
17260 # FIXME: insert proper C++ library support
17261 ld_shlibs_CXX=no
17262 ;;
17263 esac
17264 ;;
17265
17266 solaris*)
17267 case $cc_basename in
17268 CC* | sunCC*)
17269 # Sun C++ 4.2, 5.x and Centerline C++
17270 archive_cmds_need_lc_CXX=yes
17271 no_undefined_flag_CXX=' -zdefs'
17272 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17273 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17274 $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'
17275
17276 hardcode_libdir_flag_spec_CXX='-R$libdir'
17277 hardcode_shlibpath_var_CXX=no
17278 case $host_os in
17279 solaris2.[0-5] | solaris2.[0-5].*) ;;
17280 *)
17281 # The compiler driver will combine and reorder linker options,
17282 # but understands '-z linker_flag'.
17283 # Supported since Solaris 2.6 (maybe 2.5.1?)
17284 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17285 ;;
17286 esac
17287 link_all_deplibs_CXX=yes
17288
17289 output_verbose_link_cmd='func_echo_all'
17290
17291 # Archives containing C++ object files must be created using
17292 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17293 # necessary to make sure instantiated templates are included
17294 # in the archive.
17295 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17296 ;;
17297 gcx*)
17298 # Green Hills C++ Compiler
17299 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17300
17301 # The C++ compiler must be used to create the archive.
17302 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17303 ;;
17304 *)
17305 # GNU C++ compiler with Solaris linker
17306 if test yes,no = "$GXX,$with_gnu_ld"; then
17307 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17308 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17309 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17310 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17311 $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'
17312
17313 # Commands to make compiler produce verbose output that lists
17314 # what "hidden" libraries, object files and flags are used when
17315 # linking a shared library.
17316 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17317 else
17318 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17319 # platform.
17320 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17321 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17322 $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'
17323
17324 # Commands to make compiler produce verbose output that lists
17325 # what "hidden" libraries, object files and flags are used when
17326 # linking a shared library.
17327 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17328 fi
17329
17330 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17331 case $host_os in
17332 solaris2.[0-5] | solaris2.[0-5].*) ;;
17333 *)
17334 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17335 ;;
17336 esac
17337 fi
17338 ;;
17339 esac
17340 ;;
17341
17342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17343 no_undefined_flag_CXX='$wl-z,text'
17344 archive_cmds_need_lc_CXX=no
17345 hardcode_shlibpath_var_CXX=no
17346 runpath_var='LD_RUN_PATH'
17347
17348 case $cc_basename in
17349 CC*)
17350 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17351 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17352 ;;
17353 *)
17354 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17355 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17356 ;;
17357 esac
17358 ;;
17359
17360 sysv5* | sco3.2v5* | sco5v6*)
17361 # Note: We CANNOT use -z defs as we might desire, because we do not
17362 # link with -lc, and that would cause any symbols used from libc to
17363 # always be unresolved, which means just about no library would
17364 # ever link correctly. If we're not using GNU ld we use -z text
17365 # though, which does catch some bad symbols but isn't as heavy-handed
17366 # as -z defs.
17367 no_undefined_flag_CXX='$wl-z,text'
17368 allow_undefined_flag_CXX='$wl-z,nodefs'
17369 archive_cmds_need_lc_CXX=no
17370 hardcode_shlibpath_var_CXX=no
17371 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17372 hardcode_libdir_separator_CXX=':'
17373 link_all_deplibs_CXX=yes
17374 export_dynamic_flag_spec_CXX='$wl-Bexport'
17375 runpath_var='LD_RUN_PATH'
17376
17377 case $cc_basename in
17378 CC*)
17379 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17381 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17382 '"$old_archive_cmds_CXX"
17383 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17384 '"$reload_cmds_CXX"
17385 ;;
17386 *)
17387 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17388 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17389 ;;
17390 esac
17391 ;;
17392
17393 tandem*)
17394 case $cc_basename in
17395 NCC*)
17396 # NonStop-UX NCC 3.20
17397 # FIXME: insert proper C++ library support
17398 ld_shlibs_CXX=no
17399 ;;
17400 *)
17401 # FIXME: insert proper C++ library support
17402 ld_shlibs_CXX=no
17403 ;;
17404 esac
17405 ;;
17406
17407 vxworks*)
17408 # FIXME: insert proper C++ library support
17409 ld_shlibs_CXX=no
17410 ;;
17411
17412 *)
17413 # FIXME: insert proper C++ library support
17414 ld_shlibs_CXX=no
17415 ;;
17416 esac
17417
17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17419 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17420 test no = "$ld_shlibs_CXX" && can_build_shared=no
17421
17422 GCC_CXX=$GXX
17423 LD_CXX=$LD
17424
17425 ## CAVEAT EMPTOR:
17426 ## There is no encapsulation within the following macros, do not change
17427 ## the running order or otherwise move them around unless you know exactly
17428 ## what you are doing...
17429 # Dependencies to place before and after the object being linked:
17430 predep_objects_CXX=
17431 postdep_objects_CXX=
17432 predeps_CXX=
17433 postdeps_CXX=
17434 compiler_lib_search_path_CXX=
17435
17436 cat > conftest.$ac_ext <<_LT_EOF
17437 class Foo
17438 {
17439 public:
17440 Foo (void) { a = 0; }
17441 private:
17442 int a;
17443 };
17444 _LT_EOF
17445
17446
17447 _lt_libdeps_save_CFLAGS=$CFLAGS
17448 case "$CC $CFLAGS " in #(
17449 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17450 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17451 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17452 esac
17453
17454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17455 (eval $ac_compile) 2>&5
17456 ac_status=$?
17457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17458 test $ac_status = 0; }; then
17459 # Parse the compiler output and extract the necessary
17460 # objects, libraries and library flags.
17461
17462 # Sentinel used to keep track of whether or not we are before
17463 # the conftest object file.
17464 pre_test_object_deps_done=no
17465
17466 for p in `eval "$output_verbose_link_cmd"`; do
17467 case $prev$p in
17468
17469 -L* | -R* | -l*)
17470 # Some compilers place space between "-{L,R,l}" and the path.
17471 # Remove the space.
17472 if test x-L = x"$p" ||
17473 test x-R = x"$p" ||
17474 test x-l = x"$p"; then
17475 prev=$p
17476 continue
17477 fi
17478
17479 # Expand the sysroot to ease extracting the directories later.
17480 if test -z "$prev"; then
17481 case $p in
17482 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17483 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17484 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17485 esac
17486 fi
17487 case $p in
17488 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17489 esac
17490 if test no = "$pre_test_object_deps_done"; then
17491 case $prev in
17492 -L | -R)
17493 # Internal compiler library paths should come after those
17494 # provided the user. The postdeps already come after the
17495 # user supplied libs so there is no need to process them.
17496 if test -z "$compiler_lib_search_path_CXX"; then
17497 compiler_lib_search_path_CXX=$prev$p
17498 else
17499 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17500 fi
17501 ;;
17502 # The "-l" case would never come before the object being
17503 # linked, so don't bother handling this case.
17504 esac
17505 else
17506 if test -z "$postdeps_CXX"; then
17507 postdeps_CXX=$prev$p
17508 else
17509 postdeps_CXX="${postdeps_CXX} $prev$p"
17510 fi
17511 fi
17512 prev=
17513 ;;
17514
17515 *.lto.$objext) ;; # Ignore GCC LTO objects
17516 *.$objext)
17517 # This assumes that the test object file only shows up
17518 # once in the compiler output.
17519 if test "$p" = "conftest.$objext"; then
17520 pre_test_object_deps_done=yes
17521 continue
17522 fi
17523
17524 if test no = "$pre_test_object_deps_done"; then
17525 if test -z "$predep_objects_CXX"; then
17526 predep_objects_CXX=$p
17527 else
17528 predep_objects_CXX="$predep_objects_CXX $p"
17529 fi
17530 else
17531 if test -z "$postdep_objects_CXX"; then
17532 postdep_objects_CXX=$p
17533 else
17534 postdep_objects_CXX="$postdep_objects_CXX $p"
17535 fi
17536 fi
17537 ;;
17538
17539 *) ;; # Ignore the rest.
17540
17541 esac
17542 done
17543
17544 # Clean up.
17545 rm -f a.out a.exe
17546 else
17547 echo "libtool.m4: error: problem compiling CXX test program"
17548 fi
17549
17550 $RM -f confest.$objext
17551 CFLAGS=$_lt_libdeps_save_CFLAGS
17552
17553 # PORTME: override above test on systems where it is broken
17554 case $host_os in
17555 interix[3-9]*)
17556 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17557 # hack all around it, let's just trust "g++" to DTRT.
17558 predep_objects_CXX=
17559 postdep_objects_CXX=
17560 postdeps_CXX=
17561 ;;
17562 esac
17563
17564
17565 case " $postdeps_CXX " in
17566 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17567 esac
17568 compiler_lib_search_dirs_CXX=
17569 if test -n "${compiler_lib_search_path_CXX}"; then
17570 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17571 fi
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603 lt_prog_compiler_wl_CXX=
17604 lt_prog_compiler_pic_CXX=
17605 lt_prog_compiler_static_CXX=
17606
17607
17608 # C++ specific cases for pic, static, wl, etc.
17609 if test yes = "$GXX"; then
17610 lt_prog_compiler_wl_CXX='-Wl,'
17611 lt_prog_compiler_static_CXX='-static'
17612
17613 case $host_os in
17614 aix*)
17615 # All AIX code is PIC.
17616 if test ia64 = "$host_cpu"; then
17617 # AIX 5 now supports IA64 processor
17618 lt_prog_compiler_static_CXX='-Bstatic'
17619 fi
17620 lt_prog_compiler_pic_CXX='-fPIC'
17621 ;;
17622
17623 amigaos*)
17624 case $host_cpu in
17625 powerpc)
17626 # see comment about AmigaOS4 .so support
17627 lt_prog_compiler_pic_CXX='-fPIC'
17628 ;;
17629 m68k)
17630 # FIXME: we need at least 68020 code to build shared libraries, but
17631 # adding the '-m68020' flag to GCC prevents building anything better,
17632 # like '-m68040'.
17633 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17634 ;;
17635 esac
17636 ;;
17637
17638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17639 # PIC is the default for these OSes.
17640 ;;
17641 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17642 # This hack is so that the source file can tell whether it is being
17643 # built for inclusion in a dll (and should export symbols for example).
17644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17645 # (--disable-auto-import) libraries
17646 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17647 case $host_os in
17648 os2*)
17649 lt_prog_compiler_static_CXX='$wl-static'
17650 ;;
17651 esac
17652 ;;
17653 darwin* | rhapsody*)
17654 # PIC is the default on this platform
17655 # Common symbols not allowed in MH_DYLIB files
17656 lt_prog_compiler_pic_CXX='-fno-common'
17657 ;;
17658 *djgpp*)
17659 # DJGPP does not support shared libraries at all
17660 lt_prog_compiler_pic_CXX=
17661 ;;
17662 haiku*)
17663 # PIC is the default for Haiku.
17664 # The "-static" flag exists, but is broken.
17665 lt_prog_compiler_static_CXX=
17666 ;;
17667 interix[3-9]*)
17668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17669 # Instead, we relocate shared libraries at runtime.
17670 ;;
17671 sysv4*MP*)
17672 if test -d /usr/nec; then
17673 lt_prog_compiler_pic_CXX=-Kconform_pic
17674 fi
17675 ;;
17676 hpux*)
17677 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17678 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17679 # sets the default TLS model and affects inlining.
17680 case $host_cpu in
17681 hppa*64*)
17682 ;;
17683 *)
17684 lt_prog_compiler_pic_CXX='-fPIC'
17685 ;;
17686 esac
17687 ;;
17688 *qnx* | *nto*)
17689 # QNX uses GNU C++, but need to define -shared option too, otherwise
17690 # it will coredump.
17691 lt_prog_compiler_pic_CXX='-fPIC -shared'
17692 ;;
17693 *)
17694 lt_prog_compiler_pic_CXX='-fPIC'
17695 ;;
17696 esac
17697 else
17698 case $host_os in
17699 aix[4-9]*)
17700 # All AIX code is PIC.
17701 if test ia64 = "$host_cpu"; then
17702 # AIX 5 now supports IA64 processor
17703 lt_prog_compiler_static_CXX='-Bstatic'
17704 else
17705 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17706 fi
17707 ;;
17708 chorus*)
17709 case $cc_basename in
17710 cxch68*)
17711 # Green Hills C++ Compiler
17712 # _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"
17713 ;;
17714 esac
17715 ;;
17716 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17717 # This hack is so that the source file can tell whether it is being
17718 # built for inclusion in a dll (and should export symbols for example).
17719 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17720 ;;
17721 dgux*)
17722 case $cc_basename in
17723 ec++*)
17724 lt_prog_compiler_pic_CXX='-KPIC'
17725 ;;
17726 ghcx*)
17727 # Green Hills C++ Compiler
17728 lt_prog_compiler_pic_CXX='-pic'
17729 ;;
17730 *)
17731 ;;
17732 esac
17733 ;;
17734 freebsd* | dragonfly* | midnightbsd*)
17735 # FreeBSD uses GNU C++
17736 ;;
17737 hpux9* | hpux10* | hpux11*)
17738 case $cc_basename in
17739 CC*)
17740 lt_prog_compiler_wl_CXX='-Wl,'
17741 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17742 if test ia64 != "$host_cpu"; then
17743 lt_prog_compiler_pic_CXX='+Z'
17744 fi
17745 ;;
17746 aCC*)
17747 lt_prog_compiler_wl_CXX='-Wl,'
17748 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17749 case $host_cpu in
17750 hppa*64*|ia64*)
17751 # +Z the default
17752 ;;
17753 *)
17754 lt_prog_compiler_pic_CXX='+Z'
17755 ;;
17756 esac
17757 ;;
17758 *)
17759 ;;
17760 esac
17761 ;;
17762 interix*)
17763 # This is c89, which is MS Visual C++ (no shared libs)
17764 # Anyone wants to do a port?
17765 ;;
17766 irix5* | irix6* | nonstopux*)
17767 case $cc_basename in
17768 CC*)
17769 lt_prog_compiler_wl_CXX='-Wl,'
17770 lt_prog_compiler_static_CXX='-non_shared'
17771 # CC pic flag -KPIC is the default.
17772 ;;
17773 *)
17774 ;;
17775 esac
17776 ;;
17777 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17778 case $cc_basename in
17779 KCC*)
17780 # KAI C++ Compiler
17781 lt_prog_compiler_wl_CXX='--backend -Wl,'
17782 lt_prog_compiler_pic_CXX='-fPIC'
17783 ;;
17784 ecpc* )
17785 # old Intel C++ for x86_64, which still supported -KPIC.
17786 lt_prog_compiler_wl_CXX='-Wl,'
17787 lt_prog_compiler_pic_CXX='-KPIC'
17788 lt_prog_compiler_static_CXX='-static'
17789 ;;
17790 icpc* )
17791 # Intel C++, used to be incompatible with GCC.
17792 # ICC 10 doesn't accept -KPIC any more.
17793 lt_prog_compiler_wl_CXX='-Wl,'
17794 lt_prog_compiler_pic_CXX='-fPIC'
17795 lt_prog_compiler_static_CXX='-static'
17796 ;;
17797 pgCC* | pgcpp*)
17798 # Portland Group C++ compiler
17799 lt_prog_compiler_wl_CXX='-Wl,'
17800 lt_prog_compiler_pic_CXX='-fpic'
17801 lt_prog_compiler_static_CXX='-Bstatic'
17802 ;;
17803 cxx*)
17804 # Compaq C++
17805 # Make sure the PIC flag is empty. It appears that all Alpha
17806 # Linux and Compaq Tru64 Unix objects are PIC.
17807 lt_prog_compiler_pic_CXX=
17808 lt_prog_compiler_static_CXX='-non_shared'
17809 ;;
17810 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17811 # IBM XL 8.0, 9.0 on PPC and BlueGene
17812 lt_prog_compiler_wl_CXX='-Wl,'
17813 lt_prog_compiler_pic_CXX='-qpic'
17814 lt_prog_compiler_static_CXX='-qstaticlink'
17815 ;;
17816 *)
17817 case `$CC -V 2>&1 | $SED 5q` in
17818 *Sun\ C*)
17819 # Sun C++ 5.9
17820 lt_prog_compiler_pic_CXX='-KPIC'
17821 lt_prog_compiler_static_CXX='-Bstatic'
17822 lt_prog_compiler_wl_CXX='-Qoption ld '
17823 ;;
17824 esac
17825 ;;
17826 esac
17827 ;;
17828 lynxos*)
17829 ;;
17830 m88k*)
17831 ;;
17832 mvs*)
17833 case $cc_basename in
17834 cxx*)
17835 lt_prog_compiler_pic_CXX='-W c,exportall'
17836 ;;
17837 *)
17838 ;;
17839 esac
17840 ;;
17841 netbsd* | netbsdelf*-gnu)
17842 ;;
17843 *-mlibc)
17844 ;;
17845 *qnx* | *nto*)
17846 # QNX uses GNU C++, but need to define -shared option too, otherwise
17847 # it will coredump.
17848 lt_prog_compiler_pic_CXX='-fPIC -shared'
17849 ;;
17850 osf3* | osf4* | osf5*)
17851 case $cc_basename in
17852 KCC*)
17853 lt_prog_compiler_wl_CXX='--backend -Wl,'
17854 ;;
17855 RCC*)
17856 # Rational C++ 2.4.1
17857 lt_prog_compiler_pic_CXX='-pic'
17858 ;;
17859 cxx*)
17860 # Digital/Compaq C++
17861 lt_prog_compiler_wl_CXX='-Wl,'
17862 # Make sure the PIC flag is empty. It appears that all Alpha
17863 # Linux and Compaq Tru64 Unix objects are PIC.
17864 lt_prog_compiler_pic_CXX=
17865 lt_prog_compiler_static_CXX='-non_shared'
17866 ;;
17867 *)
17868 ;;
17869 esac
17870 ;;
17871 psos*)
17872 ;;
17873 serenity*)
17874 ;;
17875 solaris*)
17876 case $cc_basename in
17877 CC* | sunCC*)
17878 # Sun C++ 4.2, 5.x and Centerline C++
17879 lt_prog_compiler_pic_CXX='-KPIC'
17880 lt_prog_compiler_static_CXX='-Bstatic'
17881 lt_prog_compiler_wl_CXX='-Qoption ld '
17882 ;;
17883 gcx*)
17884 # Green Hills C++ Compiler
17885 lt_prog_compiler_pic_CXX='-PIC'
17886 ;;
17887 *)
17888 ;;
17889 esac
17890 ;;
17891 sunos4*)
17892 case $cc_basename in
17893 CC*)
17894 # Sun C++ 4.x
17895 lt_prog_compiler_pic_CXX='-pic'
17896 lt_prog_compiler_static_CXX='-Bstatic'
17897 ;;
17898 lcc*)
17899 # Lucid
17900 lt_prog_compiler_pic_CXX='-pic'
17901 ;;
17902 *)
17903 ;;
17904 esac
17905 ;;
17906 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17907 case $cc_basename in
17908 CC*)
17909 lt_prog_compiler_wl_CXX='-Wl,'
17910 lt_prog_compiler_pic_CXX='-KPIC'
17911 lt_prog_compiler_static_CXX='-Bstatic'
17912 ;;
17913 esac
17914 ;;
17915 tandem*)
17916 case $cc_basename in
17917 NCC*)
17918 # NonStop-UX NCC 3.20
17919 lt_prog_compiler_pic_CXX='-KPIC'
17920 ;;
17921 *)
17922 ;;
17923 esac
17924 ;;
17925 vxworks*)
17926 ;;
17927 *)
17928 lt_prog_compiler_can_build_shared_CXX=no
17929 ;;
17930 esac
17931 fi
17932
17933 case $host_os in
17934 # For platforms that do not support PIC, -DPIC is meaningless:
17935 *djgpp*)
17936 lt_prog_compiler_pic_CXX=
17937 ;;
17938 *)
17939 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17940 ;;
17941 esac
17942
17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17944 printf %s "checking for $compiler option to produce PIC... " >&6; }
17945 if test ${lt_cv_prog_compiler_pic_CXX+y}
17946 then :
17947 printf %s "(cached) " >&6
17948 else case e in #(
17949 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17950 esac
17951 fi
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17953 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17954 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17955
17956 #
17957 # Check to make sure the PIC flag actually works.
17958 #
17959 if test -n "$lt_prog_compiler_pic_CXX"; then
17960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17961 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17962 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17963 then :
17964 printf %s "(cached) " >&6
17965 else case e in #(
17966 e) lt_cv_prog_compiler_pic_works_CXX=no
17967 ac_outfile=conftest.$ac_objext
17968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17969 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17970 # Insert the option either (1) after the last *FLAGS variable, or
17971 # (2) before a word containing "conftest.", or (3) at the end.
17972 # Note that $ac_compile itself does not contain backslashes and begins
17973 # with a dollar sign (not a hyphen), so the echo should work correctly.
17974 # The option is referenced via a variable to avoid confusing sed.
17975 lt_compile=`echo "$ac_compile" | $SED \
17976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17978 -e 's:$: $lt_compiler_flag:'`
17979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17980 (eval "$lt_compile" 2>conftest.err)
17981 ac_status=$?
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 if (exit $ac_status) && test -s "$ac_outfile"; then
17985 # The compiler can only warn and ignore the option if not recognized
17986 # So say no if there are warnings other than the usual output.
17987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17990 lt_cv_prog_compiler_pic_works_CXX=yes
17991 fi
17992 fi
17993 $RM conftest*
17994 ;;
17995 esac
17996 fi
17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17998 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17999
18000 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18001 case $lt_prog_compiler_pic_CXX in
18002 "" | " "*) ;;
18003 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18004 esac
18005 else
18006 lt_prog_compiler_pic_CXX=
18007 lt_prog_compiler_can_build_shared_CXX=no
18008 fi
18009
18010 fi
18011
18012
18013
18014
18015
18016 #
18017 # Check to make sure the static flag actually works.
18018 #
18019 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18021 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18022 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18023 then :
18024 printf %s "(cached) " >&6
18025 else case e in #(
18026 e) lt_cv_prog_compiler_static_works_CXX=no
18027 save_LDFLAGS=$LDFLAGS
18028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18031 # The linker can only warn and ignore the option if not recognized
18032 # So say no if there are warnings
18033 if test -s conftest.err; then
18034 # Append any errors to the config.log.
18035 cat conftest.err 1>&5
18036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18038 if diff conftest.exp conftest.er2 >/dev/null; then
18039 lt_cv_prog_compiler_static_works_CXX=yes
18040 fi
18041 else
18042 lt_cv_prog_compiler_static_works_CXX=yes
18043 fi
18044 fi
18045 $RM -r conftest*
18046 LDFLAGS=$save_LDFLAGS
18047 ;;
18048 esac
18049 fi
18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18051 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18052
18053 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18054 :
18055 else
18056 lt_prog_compiler_static_CXX=
18057 fi
18058
18059
18060
18061
18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18063 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18064 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18065 then :
18066 printf %s "(cached) " >&6
18067 else case e in #(
18068 e) lt_cv_prog_compiler_c_o_CXX=no
18069 $RM -r conftest 2>/dev/null
18070 mkdir conftest
18071 cd conftest
18072 mkdir out
18073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18074
18075 lt_compiler_flag="-o out/conftest2.$ac_objext"
18076 # Insert the option either (1) after the last *FLAGS variable, or
18077 # (2) before a word containing "conftest.", or (3) at the end.
18078 # Note that $ac_compile itself does not contain backslashes and begins
18079 # with a dollar sign (not a hyphen), so the echo should work correctly.
18080 lt_compile=`echo "$ac_compile" | $SED \
18081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18083 -e 's:$: $lt_compiler_flag:'`
18084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18085 (eval "$lt_compile" 2>out/conftest.err)
18086 ac_status=$?
18087 cat out/conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18090 then
18091 # The compiler can only warn and ignore the option if not recognized
18092 # So say no if there are warnings
18093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18096 lt_cv_prog_compiler_c_o_CXX=yes
18097 fi
18098 fi
18099 chmod u+w . 2>&5
18100 $RM conftest*
18101 # SGI C++ compiler will create directory out/ii_files/ for
18102 # template instantiation
18103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18104 $RM out/* && rmdir out
18105 cd ..
18106 $RM -r conftest
18107 $RM conftest*
18108 ;;
18109 esac
18110 fi
18111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18112 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18113
18114
18115
18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18117 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18118 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18119 then :
18120 printf %s "(cached) " >&6
18121 else case e in #(
18122 e) lt_cv_prog_compiler_c_o_CXX=no
18123 $RM -r conftest 2>/dev/null
18124 mkdir conftest
18125 cd conftest
18126 mkdir out
18127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18128
18129 lt_compiler_flag="-o out/conftest2.$ac_objext"
18130 # Insert the option either (1) after the last *FLAGS variable, or
18131 # (2) before a word containing "conftest.", or (3) at the end.
18132 # Note that $ac_compile itself does not contain backslashes and begins
18133 # with a dollar sign (not a hyphen), so the echo should work correctly.
18134 lt_compile=`echo "$ac_compile" | $SED \
18135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18137 -e 's:$: $lt_compiler_flag:'`
18138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18139 (eval "$lt_compile" 2>out/conftest.err)
18140 ac_status=$?
18141 cat out/conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18144 then
18145 # The compiler can only warn and ignore the option if not recognized
18146 # So say no if there are warnings
18147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18150 lt_cv_prog_compiler_c_o_CXX=yes
18151 fi
18152 fi
18153 chmod u+w . 2>&5
18154 $RM conftest*
18155 # SGI C++ compiler will create directory out/ii_files/ for
18156 # template instantiation
18157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18158 $RM out/* && rmdir out
18159 cd ..
18160 $RM -r conftest
18161 $RM conftest*
18162 ;;
18163 esac
18164 fi
18165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18166 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18167
18168
18169
18170
18171 hard_links=nottested
18172 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18173 # do not overwrite the value of need_locks provided by the user
18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18175 printf %s "checking if we can lock with hard links... " >&6; }
18176 hard_links=yes
18177 $RM conftest*
18178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18179 touch conftest.a
18180 ln conftest.a conftest.b 2>&5 || hard_links=no
18181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18183 printf "%s\n" "$hard_links" >&6; }
18184 if test no = "$hard_links"; then
18185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18186 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18187 need_locks=warn
18188 fi
18189 else
18190 need_locks=no
18191 fi
18192
18193
18194
18195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18196 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18197
18198 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18199 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18200 case $host_os in
18201 aix[4-9]*)
18202 # If we're using GNU nm, then we don't want the "-C" option.
18203 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18204 # Without the "-l" option, or with the "-B" option, AIX nm treats
18205 # weak defined symbols like other global defined symbols, whereas
18206 # GNU nm marks them as "W".
18207 # While the 'weak' keyword is ignored in the Export File, we need
18208 # it in the Import File for the 'aix-soname' feature, so we have
18209 # to replace the "-B" option with "-P" for AIX nm.
18210 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18211 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'
18212 else
18213 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 == "L") || (\$ 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'
18214 fi
18215 ;;
18216 pw32*)
18217 export_symbols_cmds_CXX=$ltdll_cmds
18218 ;;
18219 cygwin* | mingw* | windows* | cegcc*)
18220 case $cc_basename in
18221 cl* | icl*)
18222 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18223 ;;
18224 *)
18225 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'
18226 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18227 ;;
18228 esac
18229 ;;
18230 *)
18231 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18232 ;;
18233 esac
18234
18235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18236 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18237 test no = "$ld_shlibs_CXX" && can_build_shared=no
18238
18239 with_gnu_ld_CXX=$with_gnu_ld
18240
18241
18242
18243
18244
18245
18246 #
18247 # Do we need to explicitly link libc?
18248 #
18249 case "x$archive_cmds_need_lc_CXX" in
18250 x|xyes)
18251 # Assume -lc should be added
18252 archive_cmds_need_lc_CXX=yes
18253
18254 if test yes,yes = "$GCC,$enable_shared"; then
18255 case $archive_cmds_CXX in
18256 *'~'*)
18257 # FIXME: we may have to deal with multi-command sequences.
18258 ;;
18259 '$CC '*)
18260 # Test whether the compiler implicitly links with -lc since on some
18261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18262 # to ld, don't add -lc before -lgcc.
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18264 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18265 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18266 then :
18267 printf %s "(cached) " >&6
18268 else case e in #(
18269 e) $RM conftest*
18270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18271
18272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18273 (eval $ac_compile) 2>&5
18274 ac_status=$?
18275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; } 2>conftest.err; then
18277 soname=conftest
18278 lib=conftest
18279 libobjs=conftest.$ac_objext
18280 deplibs=
18281 wl=$lt_prog_compiler_wl_CXX
18282 pic_flag=$lt_prog_compiler_pic_CXX
18283 compiler_flags=-v
18284 linker_flags=-v
18285 verstring=
18286 output_objdir=.
18287 libname=conftest
18288 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18289 allow_undefined_flag_CXX=
18290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18291 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18292 ac_status=$?
18293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18294 test $ac_status = 0; }
18295 then
18296 lt_cv_archive_cmds_need_lc_CXX=no
18297 else
18298 lt_cv_archive_cmds_need_lc_CXX=yes
18299 fi
18300 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18301 else
18302 cat conftest.err 1>&5
18303 fi
18304 $RM conftest*
18305 ;;
18306 esac
18307 fi
18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18309 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18310 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18311 ;;
18312 esac
18313 fi
18314 ;;
18315 esac
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18379 printf %s "checking dynamic linker characteristics... " >&6; }
18380
18381 library_names_spec=
18382 libname_spec='lib$name'
18383 soname_spec=
18384 shrext_cmds=.so
18385 postinstall_cmds=
18386 postuninstall_cmds=
18387 finish_cmds=
18388 finish_eval=
18389 shlibpath_var=
18390 shlibpath_overrides_runpath=unknown
18391 version_type=none
18392 dynamic_linker="$host_os ld.so"
18393 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18394 need_lib_prefix=unknown
18395 hardcode_into_libs=no
18396
18397 # when you set need_version to no, make sure it does not cause -set_version
18398 # flags to be left without arguments
18399 need_version=unknown
18400
18401
18402
18403 case $host_os in
18404 aix3*)
18405 version_type=linux # correct to gnu/linux during the next big refactor
18406 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18407 shlibpath_var=LIBPATH
18408
18409 # AIX 3 has no versioning support, so we append a major version to the name.
18410 soname_spec='$libname$release$shared_ext$major'
18411 ;;
18412
18413 aix[4-9]*)
18414 version_type=linux # correct to gnu/linux during the next big refactor
18415 need_lib_prefix=no
18416 need_version=no
18417 hardcode_into_libs=yes
18418 if test ia64 = "$host_cpu"; then
18419 # AIX 5 supports IA64
18420 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18421 shlibpath_var=LD_LIBRARY_PATH
18422 else
18423 # With GCC up to 2.95.x, collect2 would create an import file
18424 # for dependence libraries. The import file would start with
18425 # the line '#! .'. This would cause the generated library to
18426 # depend on '.', always an invalid library. This was fixed in
18427 # development snapshots of GCC prior to 3.0.
18428 case $host_os in
18429 aix4 | aix4.[01] | aix4.[01].*)
18430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18431 echo ' yes '
18432 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18433 :
18434 else
18435 can_build_shared=no
18436 fi
18437 ;;
18438 esac
18439 # Using Import Files as archive members, it is possible to support
18440 # filename-based versioning of shared library archives on AIX. While
18441 # this would work for both with and without runtime linking, it will
18442 # prevent static linking of such archives. So we do filename-based
18443 # shared library versioning with .so extension only, which is used
18444 # when both runtime linking and shared linking is enabled.
18445 # Unfortunately, runtime linking may impact performance, so we do
18446 # not want this to be the default eventually. Also, we use the
18447 # versioned .so libs for executables only if there is the -brtl
18448 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18449 # To allow for filename-based versioning support, we need to create
18450 # libNAME.so.V as an archive file, containing:
18451 # *) an Import File, referring to the versioned filename of the
18452 # archive as well as the shared archive member, telling the
18453 # bitwidth (32 or 64) of that shared object, and providing the
18454 # list of exported symbols of that shared object, eventually
18455 # decorated with the 'weak' keyword
18456 # *) the shared object with the F_LOADONLY flag set, to really avoid
18457 # it being seen by the linker.
18458 # At run time we better use the real file rather than another symlink,
18459 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18460
18461 case $with_aix_soname,$aix_use_runtimelinking in
18462 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18463 # soname into executable. Probably we can add versioning support to
18464 # collect2, so additional links can be useful in future.
18465 aix,yes) # traditional libtool
18466 dynamic_linker='AIX unversionable lib.so'
18467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18468 # instead of lib<name>.a to let people know that these are not
18469 # typical AIX shared libraries.
18470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18471 ;;
18472 aix,no) # traditional AIX only
18473 dynamic_linker='AIX lib.a(lib.so.V)'
18474 # We preserve .a as extension for shared libraries through AIX4.2
18475 # and later when we are not doing run time linking.
18476 library_names_spec='$libname$release.a $libname.a'
18477 soname_spec='$libname$release$shared_ext$major'
18478 ;;
18479 svr4,*) # full svr4 only
18480 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18481 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18482 # We do not specify a path in Import Files, so LIBPATH fires.
18483 shlibpath_overrides_runpath=yes
18484 ;;
18485 *,yes) # both, prefer svr4
18486 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18488 # unpreferred sharedlib libNAME.a needs extra handling
18489 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"'
18490 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"'
18491 # We do not specify a path in Import Files, so LIBPATH fires.
18492 shlibpath_overrides_runpath=yes
18493 ;;
18494 *,no) # both, prefer aix
18495 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18496 library_names_spec='$libname$release.a $libname.a'
18497 soname_spec='$libname$release$shared_ext$major'
18498 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18499 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)'
18500 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"'
18501 ;;
18502 esac
18503 shlibpath_var=LIBPATH
18504 fi
18505 ;;
18506
18507 amigaos*)
18508 case $host_cpu in
18509 powerpc)
18510 # Since July 2007 AmigaOS4 officially supports .so libraries.
18511 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18513 ;;
18514 m68k)
18515 library_names_spec='$libname.ixlibrary $libname.a'
18516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18517 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'
18518 ;;
18519 esac
18520 ;;
18521
18522 beos*)
18523 library_names_spec='$libname$shared_ext'
18524 dynamic_linker="$host_os ld.so"
18525 shlibpath_var=LIBRARY_PATH
18526 ;;
18527
18528 bsdi[45]*)
18529 version_type=linux # correct to gnu/linux during the next big refactor
18530 need_version=no
18531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18532 soname_spec='$libname$release$shared_ext$major'
18533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18534 shlibpath_var=LD_LIBRARY_PATH
18535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18537 # the default ld.so.conf also contains /usr/contrib/lib and
18538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18539 # libtool to hard-code these into programs
18540 ;;
18541
18542 cygwin* | mingw* | windows* | pw32* | cegcc*)
18543 version_type=windows
18544 shrext_cmds=.dll
18545 need_version=no
18546 need_lib_prefix=no
18547
18548 case $GCC,$cc_basename in
18549 yes,*)
18550 # gcc
18551 library_names_spec='$libname.dll.a'
18552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18553 # If user builds GCC with multilib enabled,
18554 # it should just install on $(libdir)
18555 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18556 if test xyes = x"$multilib"; then
18557 postinstall_cmds='base_file=`basename \$file`~
18558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18559 dldir=$destdir/`dirname \$dlpath`~
18560 $install_prog $dir/$dlname $destdir/$dlname~
18561 chmod a+x $destdir/$dlname~
18562 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18563 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18564 fi'
18565 else
18566 postinstall_cmds='base_file=`basename \$file`~
18567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18568 dldir=$destdir/`dirname \$dlpath`~
18569 test -d \$dldir || mkdir -p \$dldir~
18570 $install_prog $dir/$dlname \$dldir/$dlname~
18571 chmod a+x \$dldir/$dlname~
18572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18574 fi'
18575 fi
18576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18577 dlpath=$dir/\$dldll~
18578 $RM \$dlpath'
18579 shlibpath_overrides_runpath=yes
18580
18581 case $host_os in
18582 cygwin*)
18583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18584 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18585
18586 ;;
18587 mingw* | windows* | cegcc*)
18588 # MinGW DLLs use traditional 'lib' prefix
18589 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18590 ;;
18591 pw32*)
18592 # pw32 DLLs use 'pw' prefix rather than 'lib'
18593 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18594 ;;
18595 esac
18596 dynamic_linker='Win32 ld.exe'
18597 ;;
18598
18599 *,cl* | *,icl*)
18600 # Native MSVC or ICC
18601 libname_spec='$name'
18602 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18603 library_names_spec='$libname.dll.lib'
18604
18605 case $build_os in
18606 mingw* | windows*)
18607 sys_lib_search_path_spec=
18608 lt_save_ifs=$IFS
18609 IFS=';'
18610 for lt_path in $LIB
18611 do
18612 IFS=$lt_save_ifs
18613 # Let DOS variable expansion print the short 8.3 style file name.
18614 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18615 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18616 done
18617 IFS=$lt_save_ifs
18618 # Convert to MSYS style.
18619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18620 ;;
18621 cygwin*)
18622 # Convert to unix form, then to dos form, then back to unix form
18623 # but this time dos style (no spaces!) so that the unix form looks
18624 # like /cygdrive/c/PROGRA~1:/cygdr...
18625 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18626 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18627 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18628 ;;
18629 *)
18630 sys_lib_search_path_spec=$LIB
18631 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18632 # It is most probably a Windows format PATH.
18633 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18634 else
18635 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18636 fi
18637 # FIXME: find the short name or the path components, as spaces are
18638 # common. (e.g. "Program Files" -> "PROGRA~1")
18639 ;;
18640 esac
18641
18642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18643 postinstall_cmds='base_file=`basename \$file`~
18644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18645 dldir=$destdir/`dirname \$dlpath`~
18646 test -d \$dldir || mkdir -p \$dldir~
18647 $install_prog $dir/$dlname \$dldir/$dlname'
18648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18649 dlpath=$dir/\$dldll~
18650 $RM \$dlpath'
18651 shlibpath_overrides_runpath=yes
18652 dynamic_linker='Win32 link.exe'
18653 ;;
18654
18655 *)
18656 # Assume MSVC and ICC wrapper
18657 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18658 dynamic_linker='Win32 ld.exe'
18659 ;;
18660 esac
18661 # FIXME: first we should search . and the directory the executable is in
18662 shlibpath_var=PATH
18663 ;;
18664
18665 darwin* | rhapsody*)
18666 dynamic_linker="$host_os dyld"
18667 version_type=darwin
18668 need_lib_prefix=no
18669 need_version=no
18670 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18671 soname_spec='$libname$release$major$shared_ext'
18672 shlibpath_overrides_runpath=yes
18673 shlibpath_var=DYLD_LIBRARY_PATH
18674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18675
18676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18677 ;;
18678
18679 dgux*)
18680 version_type=linux # correct to gnu/linux during the next big refactor
18681 need_lib_prefix=no
18682 need_version=no
18683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18684 soname_spec='$libname$release$shared_ext$major'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 ;;
18687
18688 freebsd* | dragonfly* | midnightbsd*)
18689 # DragonFly does not have aout. When/if they implement a new
18690 # versioning mechanism, adjust this.
18691 if test -x /usr/bin/objformat; then
18692 objformat=`/usr/bin/objformat`
18693 else
18694 case $host_os in
18695 freebsd[23].*) objformat=aout ;;
18696 *) objformat=elf ;;
18697 esac
18698 fi
18699 version_type=freebsd-$objformat
18700 case $version_type in
18701 freebsd-elf*)
18702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18703 soname_spec='$libname$release$shared_ext$major'
18704 need_version=no
18705 need_lib_prefix=no
18706 ;;
18707 freebsd-*)
18708 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18709 need_version=yes
18710 ;;
18711 esac
18712 case $host_cpu in
18713 powerpc64)
18714 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18715 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18718 int test_pointer_size[sizeof (void *) - 5];
18719
18720 _ACEOF
18721 if ac_fn_cxx_try_compile "$LINENO"
18722 then :
18723 shlibpath_var=LD_LIBRARY_PATH
18724 else case e in #(
18725 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18726 esac
18727 fi
18728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18729 ;;
18730 *)
18731 shlibpath_var=LD_LIBRARY_PATH
18732 ;;
18733 esac
18734 case $host_os in
18735 freebsd2.*)
18736 shlibpath_overrides_runpath=yes
18737 ;;
18738 freebsd3.[01]* | freebsdelf3.[01]*)
18739 shlibpath_overrides_runpath=yes
18740 hardcode_into_libs=yes
18741 ;;
18742 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18743 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18744 shlibpath_overrides_runpath=no
18745 hardcode_into_libs=yes
18746 ;;
18747 *) # from 4.6 on, and DragonFly
18748 shlibpath_overrides_runpath=yes
18749 hardcode_into_libs=yes
18750 ;;
18751 esac
18752 ;;
18753
18754 haiku*)
18755 version_type=linux # correct to gnu/linux during the next big refactor
18756 need_lib_prefix=no
18757 need_version=no
18758 dynamic_linker="$host_os runtime_loader"
18759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18760 soname_spec='$libname$release$shared_ext$major'
18761 shlibpath_var=LIBRARY_PATH
18762 shlibpath_overrides_runpath=no
18763 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18764 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18765 hardcode_into_libs=no
18766 ;;
18767
18768 hpux9* | hpux10* | hpux11*)
18769 # Give a soname corresponding to the major version so that dld.sl refuses to
18770 # link against other versions.
18771 version_type=sunos
18772 need_lib_prefix=no
18773 need_version=no
18774 case $host_cpu in
18775 ia64*)
18776 shrext_cmds='.so'
18777 hardcode_into_libs=yes
18778 dynamic_linker="$host_os dld.so"
18779 shlibpath_var=LD_LIBRARY_PATH
18780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18782 soname_spec='$libname$release$shared_ext$major'
18783 if test 32 = "$HPUX_IA64_MODE"; then
18784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18785 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18786 else
18787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18788 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18789 fi
18790 ;;
18791 hppa*64*)
18792 shrext_cmds='.sl'
18793 hardcode_into_libs=yes
18794 dynamic_linker="$host_os dld.sl"
18795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18798 soname_spec='$libname$release$shared_ext$major'
18799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18801 ;;
18802 *)
18803 shrext_cmds='.sl'
18804 dynamic_linker="$host_os dld.sl"
18805 shlibpath_var=SHLIB_PATH
18806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18808 soname_spec='$libname$release$shared_ext$major'
18809 ;;
18810 esac
18811 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18812 postinstall_cmds='chmod 555 $lib'
18813 # or fails outright, so override atomically:
18814 install_override_mode=555
18815 ;;
18816
18817 interix[3-9]*)
18818 version_type=linux # correct to gnu/linux during the next big refactor
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18822 soname_spec='$libname$release$shared_ext$major'
18823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=no
18826 hardcode_into_libs=yes
18827 ;;
18828
18829 irix5* | irix6* | nonstopux*)
18830 case $host_os in
18831 nonstopux*) version_type=nonstopux ;;
18832 *)
18833 if test yes = "$lt_cv_prog_gnu_ld"; then
18834 version_type=linux # correct to gnu/linux during the next big refactor
18835 else
18836 version_type=irix
18837 fi ;;
18838 esac
18839 need_lib_prefix=no
18840 need_version=no
18841 soname_spec='$libname$release$shared_ext$major'
18842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18843 case $host_os in
18844 irix5* | nonstopux*)
18845 libsuff= shlibsuff=
18846 ;;
18847 *)
18848 case $LD in # libtool.m4 will add one of these switches to LD
18849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18850 libsuff= shlibsuff= libmagic=32-bit;;
18851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18852 libsuff=32 shlibsuff=N32 libmagic=N32;;
18853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18855 *) libsuff= shlibsuff= libmagic=never-match;;
18856 esac
18857 ;;
18858 esac
18859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18860 shlibpath_overrides_runpath=no
18861 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18862 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18863 hardcode_into_libs=yes
18864 ;;
18865
18866 # No shared lib support for Linux oldld, aout, or coff.
18867 linux*oldld* | linux*aout* | linux*coff*)
18868 dynamic_linker=no
18869 ;;
18870
18871 linux*android*)
18872 version_type=none # Android doesn't support versioned libraries.
18873 need_lib_prefix=no
18874 need_version=no
18875 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18876 soname_spec='$libname$release$shared_ext'
18877 finish_cmds=
18878 shlibpath_var=LD_LIBRARY_PATH
18879 shlibpath_overrides_runpath=yes
18880
18881 # This implies no fast_install, which is unacceptable.
18882 # Some rework will be needed to allow for fast_install
18883 # before this can be enabled.
18884 hardcode_into_libs=yes
18885
18886 dynamic_linker='Android linker'
18887 # -rpath works at least for libraries that are not overridden by
18888 # libraries installed in system locations.
18889 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18890 ;;
18891
18892 # This must be glibc/ELF.
18893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18894 version_type=linux # correct to gnu/linux during the next big refactor
18895 need_lib_prefix=no
18896 need_version=no
18897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18898 soname_spec='$libname$release$shared_ext$major'
18899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18900 shlibpath_var=LD_LIBRARY_PATH
18901 shlibpath_overrides_runpath=no
18902
18903 # Some binutils ld are patched to set DT_RUNPATH
18904 if test ${lt_cv_shlibpath_overrides_runpath+y}
18905 then :
18906 printf %s "(cached) " >&6
18907 else case e in #(
18908 e) lt_cv_shlibpath_overrides_runpath=no
18909 save_LDFLAGS=$LDFLAGS
18910 save_libdir=$libdir
18911 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18912 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18915
18916 int
18917 main (void)
18918 {
18919
18920 ;
18921 return 0;
18922 }
18923 _ACEOF
18924 if ac_fn_cxx_try_link "$LINENO"
18925 then :
18926 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18927 then :
18928 lt_cv_shlibpath_overrides_runpath=yes
18929 fi
18930 fi
18931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18932 conftest$ac_exeext conftest.$ac_ext
18933 LDFLAGS=$save_LDFLAGS
18934 libdir=$save_libdir
18935 ;;
18936 esac
18937 fi
18938
18939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18940
18941 # This implies no fast_install, which is unacceptable.
18942 # Some rework will be needed to allow for fast_install
18943 # before this can be enabled.
18944 hardcode_into_libs=yes
18945
18946 # Add ABI-specific directories to the system library path.
18947 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18948
18949 # Ideally, we could use ldconfig to report *all* directories which are
18950 # searched for libraries, however this is still not possible. Aside from not
18951 # being certain /sbin/ldconfig is available, command
18952 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18953 # even though it is searched at run-time. Try to do the best guess by
18954 # appending ld.so.conf contents (and includes) to the search path.
18955 if test -f /etc/ld.so.conf; then
18956 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' ' '`
18957 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18958 fi
18959
18960 # We used to test for /lib/ld.so.1 and disable shared libraries on
18961 # powerpc, because MkLinux only supported shared libraries with the
18962 # GNU dynamic linker. Since this was broken with cross compilers,
18963 # most powerpc-linux boxes support dynamic linking these days and
18964 # people can always --disable-shared, the test was removed, and we
18965 # assume the GNU/Linux dynamic linker is in use.
18966 dynamic_linker='GNU/Linux ld.so'
18967 ;;
18968
18969 netbsdelf*-gnu)
18970 version_type=linux
18971 need_lib_prefix=no
18972 need_version=no
18973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18974 soname_spec='$libname$release$shared_ext$major'
18975 shlibpath_var=LD_LIBRARY_PATH
18976 shlibpath_overrides_runpath=no
18977 hardcode_into_libs=yes
18978 dynamic_linker='NetBSD ld.elf_so'
18979 ;;
18980
18981 netbsd*)
18982 version_type=sunos
18983 need_lib_prefix=no
18984 need_version=no
18985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18986 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18988 dynamic_linker='NetBSD (a.out) ld.so'
18989 else
18990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18991 soname_spec='$libname$release$shared_ext$major'
18992 dynamic_linker='NetBSD ld.elf_so'
18993 fi
18994 shlibpath_var=LD_LIBRARY_PATH
18995 shlibpath_overrides_runpath=yes
18996 hardcode_into_libs=yes
18997 ;;
18998
18999 *-mlibc)
19000 version_type=linux # correct to gnu/linux during the next big refactor
19001 need_lib_prefix=no
19002 need_version=no
19003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19004 soname_spec='$libname$release$shared_ext$major'
19005 dynamic_linker='mlibc ld.so'
19006 shlibpath_var=LD_LIBRARY_PATH
19007 shlibpath_overrides_runpath=no
19008 hardcode_into_libs=yes
19009 ;;
19010
19011 newsos6)
19012 version_type=linux # correct to gnu/linux during the next big refactor
19013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19014 shlibpath_var=LD_LIBRARY_PATH
19015 shlibpath_overrides_runpath=yes
19016 ;;
19017
19018 *nto* | *qnx*)
19019 version_type=qnx
19020 need_lib_prefix=no
19021 need_version=no
19022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19023 soname_spec='$libname$release$shared_ext$major'
19024 shlibpath_var=LD_LIBRARY_PATH
19025 shlibpath_overrides_runpath=no
19026 hardcode_into_libs=yes
19027 dynamic_linker='ldqnx.so'
19028 ;;
19029
19030 openbsd*)
19031 version_type=sunos
19032 sys_lib_dlsearch_path_spec=/usr/lib
19033 need_lib_prefix=no
19034 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19035 need_version=no
19036 else
19037 need_version=yes
19038 fi
19039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19041 shlibpath_var=LD_LIBRARY_PATH
19042 shlibpath_overrides_runpath=yes
19043 ;;
19044
19045 os2*)
19046 libname_spec='$name'
19047 version_type=windows
19048 shrext_cmds=.dll
19049 need_version=no
19050 need_lib_prefix=no
19051 # OS/2 can only load a DLL with a base name of 8 characters or less.
19052 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19053 v=$($ECHO $release$versuffix | tr -d .-);
19054 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19055 $ECHO $n$v`$shared_ext'
19056 library_names_spec='${libname}_dll.$libext'
19057 dynamic_linker='OS/2 ld.exe'
19058 shlibpath_var=BEGINLIBPATH
19059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19061 postinstall_cmds='base_file=`basename \$file`~
19062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19063 dldir=$destdir/`dirname \$dlpath`~
19064 test -d \$dldir || mkdir -p \$dldir~
19065 $install_prog $dir/$dlname \$dldir/$dlname~
19066 chmod a+x \$dldir/$dlname~
19067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19069 fi'
19070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19071 dlpath=$dir/\$dldll~
19072 $RM \$dlpath'
19073 ;;
19074
19075 osf3* | osf4* | osf5*)
19076 version_type=osf
19077 need_lib_prefix=no
19078 need_version=no
19079 soname_spec='$libname$release$shared_ext$major'
19080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19081 shlibpath_var=LD_LIBRARY_PATH
19082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19084 ;;
19085
19086 rdos*)
19087 dynamic_linker=no
19088 ;;
19089
19090 serenity*)
19091 version_type=linux # correct to gnu/linux during the next big refactor
19092 need_lib_prefix=no
19093 need_version=no
19094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19095 soname_spec='$libname$release$shared_ext$major'
19096 shlibpath_var=LD_LIBRARY_PATH
19097 shlibpath_overrides_runpath=no
19098 dynamic_linker='SerenityOS LibELF'
19099 ;;
19100
19101 solaris*)
19102 version_type=linux # correct to gnu/linux during the next big refactor
19103 need_lib_prefix=no
19104 need_version=no
19105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19106 soname_spec='$libname$release$shared_ext$major'
19107 shlibpath_var=LD_LIBRARY_PATH
19108 shlibpath_overrides_runpath=yes
19109 hardcode_into_libs=yes
19110 # ldd complains unless libraries are executable
19111 postinstall_cmds='chmod +x $lib'
19112 ;;
19113
19114 sunos4*)
19115 version_type=sunos
19116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19118 shlibpath_var=LD_LIBRARY_PATH
19119 shlibpath_overrides_runpath=yes
19120 if test yes = "$with_gnu_ld"; then
19121 need_lib_prefix=no
19122 fi
19123 need_version=yes
19124 ;;
19125
19126 sysv4 | sysv4.3*)
19127 version_type=linux # correct to gnu/linux during the next big refactor
19128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19129 soname_spec='$libname$release$shared_ext$major'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 case $host_vendor in
19132 sni)
19133 shlibpath_overrides_runpath=no
19134 need_lib_prefix=no
19135 runpath_var=LD_RUN_PATH
19136 ;;
19137 siemens)
19138 need_lib_prefix=no
19139 ;;
19140 motorola)
19141 need_lib_prefix=no
19142 need_version=no
19143 shlibpath_overrides_runpath=no
19144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19145 ;;
19146 esac
19147 ;;
19148
19149 sysv4*MP*)
19150 if test -d /usr/nec; then
19151 version_type=linux # correct to gnu/linux during the next big refactor
19152 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19153 soname_spec='$libname$shared_ext.$major'
19154 shlibpath_var=LD_LIBRARY_PATH
19155 fi
19156 ;;
19157
19158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19159 version_type=sco
19160 need_lib_prefix=no
19161 need_version=no
19162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19163 soname_spec='$libname$release$shared_ext$major'
19164 shlibpath_var=LD_LIBRARY_PATH
19165 shlibpath_overrides_runpath=yes
19166 hardcode_into_libs=yes
19167 if test yes = "$with_gnu_ld"; then
19168 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19169 else
19170 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19171 case $host_os in
19172 sco3.2v5*)
19173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19174 ;;
19175 esac
19176 fi
19177 sys_lib_dlsearch_path_spec='/usr/lib'
19178 ;;
19179
19180 tpf*)
19181 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19182 version_type=linux # correct to gnu/linux during the next big refactor
19183 need_lib_prefix=no
19184 need_version=no
19185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19186 shlibpath_var=LD_LIBRARY_PATH
19187 shlibpath_overrides_runpath=no
19188 hardcode_into_libs=yes
19189 ;;
19190
19191 uts4*)
19192 version_type=linux # correct to gnu/linux during the next big refactor
19193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19194 soname_spec='$libname$release$shared_ext$major'
19195 shlibpath_var=LD_LIBRARY_PATH
19196 ;;
19197
19198 emscripten*)
19199 version_type=none
19200 need_lib_prefix=no
19201 need_version=no
19202 library_names_spec='$libname$release$shared_ext'
19203 soname_spec='$libname$release$shared_ext'
19204 finish_cmds=
19205 dynamic_linker="Emscripten linker"
19206 lt_prog_compiler_wl_CXX=
19207 lt_prog_compiler_pic_CXX=
19208 lt_prog_compiler_static_CXX=
19209
19210
19211 # C++ specific cases for pic, static, wl, etc.
19212 if test yes = "$GXX"; then
19213 lt_prog_compiler_wl_CXX='-Wl,'
19214 lt_prog_compiler_static_CXX='-static'
19215
19216 case $host_os in
19217 aix*)
19218 # All AIX code is PIC.
19219 if test ia64 = "$host_cpu"; then
19220 # AIX 5 now supports IA64 processor
19221 lt_prog_compiler_static_CXX='-Bstatic'
19222 fi
19223 lt_prog_compiler_pic_CXX='-fPIC'
19224 ;;
19225
19226 amigaos*)
19227 case $host_cpu in
19228 powerpc)
19229 # see comment about AmigaOS4 .so support
19230 lt_prog_compiler_pic_CXX='-fPIC'
19231 ;;
19232 m68k)
19233 # FIXME: we need at least 68020 code to build shared libraries, but
19234 # adding the '-m68020' flag to GCC prevents building anything better,
19235 # like '-m68040'.
19236 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19237 ;;
19238 esac
19239 ;;
19240
19241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19242 # PIC is the default for these OSes.
19243 ;;
19244 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19245 # This hack is so that the source file can tell whether it is being
19246 # built for inclusion in a dll (and should export symbols for example).
19247 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19248 # (--disable-auto-import) libraries
19249 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19250 case $host_os in
19251 os2*)
19252 lt_prog_compiler_static_CXX='$wl-static'
19253 ;;
19254 esac
19255 ;;
19256 darwin* | rhapsody*)
19257 # PIC is the default on this platform
19258 # Common symbols not allowed in MH_DYLIB files
19259 lt_prog_compiler_pic_CXX='-fno-common'
19260 ;;
19261 *djgpp*)
19262 # DJGPP does not support shared libraries at all
19263 lt_prog_compiler_pic_CXX=
19264 ;;
19265 haiku*)
19266 # PIC is the default for Haiku.
19267 # The "-static" flag exists, but is broken.
19268 lt_prog_compiler_static_CXX=
19269 ;;
19270 interix[3-9]*)
19271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19272 # Instead, we relocate shared libraries at runtime.
19273 ;;
19274 sysv4*MP*)
19275 if test -d /usr/nec; then
19276 lt_prog_compiler_pic_CXX=-Kconform_pic
19277 fi
19278 ;;
19279 hpux*)
19280 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19281 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19282 # sets the default TLS model and affects inlining.
19283 case $host_cpu in
19284 hppa*64*)
19285 ;;
19286 *)
19287 lt_prog_compiler_pic_CXX='-fPIC'
19288 ;;
19289 esac
19290 ;;
19291 *qnx* | *nto*)
19292 # QNX uses GNU C++, but need to define -shared option too, otherwise
19293 # it will coredump.
19294 lt_prog_compiler_pic_CXX='-fPIC -shared'
19295 ;;
19296 *)
19297 lt_prog_compiler_pic_CXX='-fPIC'
19298 ;;
19299 esac
19300 else
19301 case $host_os in
19302 aix[4-9]*)
19303 # All AIX code is PIC.
19304 if test ia64 = "$host_cpu"; then
19305 # AIX 5 now supports IA64 processor
19306 lt_prog_compiler_static_CXX='-Bstatic'
19307 else
19308 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19309 fi
19310 ;;
19311 chorus*)
19312 case $cc_basename in
19313 cxch68*)
19314 # Green Hills C++ Compiler
19315 # _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"
19316 ;;
19317 esac
19318 ;;
19319 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19320 # This hack is so that the source file can tell whether it is being
19321 # built for inclusion in a dll (and should export symbols for example).
19322 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19323 ;;
19324 dgux*)
19325 case $cc_basename in
19326 ec++*)
19327 lt_prog_compiler_pic_CXX='-KPIC'
19328 ;;
19329 ghcx*)
19330 # Green Hills C++ Compiler
19331 lt_prog_compiler_pic_CXX='-pic'
19332 ;;
19333 *)
19334 ;;
19335 esac
19336 ;;
19337 freebsd* | dragonfly* | midnightbsd*)
19338 # FreeBSD uses GNU C++
19339 ;;
19340 hpux9* | hpux10* | hpux11*)
19341 case $cc_basename in
19342 CC*)
19343 lt_prog_compiler_wl_CXX='-Wl,'
19344 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19345 if test ia64 != "$host_cpu"; then
19346 lt_prog_compiler_pic_CXX='+Z'
19347 fi
19348 ;;
19349 aCC*)
19350 lt_prog_compiler_wl_CXX='-Wl,'
19351 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19352 case $host_cpu in
19353 hppa*64*|ia64*)
19354 # +Z the default
19355 ;;
19356 *)
19357 lt_prog_compiler_pic_CXX='+Z'
19358 ;;
19359 esac
19360 ;;
19361 *)
19362 ;;
19363 esac
19364 ;;
19365 interix*)
19366 # This is c89, which is MS Visual C++ (no shared libs)
19367 # Anyone wants to do a port?
19368 ;;
19369 irix5* | irix6* | nonstopux*)
19370 case $cc_basename in
19371 CC*)
19372 lt_prog_compiler_wl_CXX='-Wl,'
19373 lt_prog_compiler_static_CXX='-non_shared'
19374 # CC pic flag -KPIC is the default.
19375 ;;
19376 *)
19377 ;;
19378 esac
19379 ;;
19380 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19381 case $cc_basename in
19382 KCC*)
19383 # KAI C++ Compiler
19384 lt_prog_compiler_wl_CXX='--backend -Wl,'
19385 lt_prog_compiler_pic_CXX='-fPIC'
19386 ;;
19387 ecpc* )
19388 # old Intel C++ for x86_64, which still supported -KPIC.
19389 lt_prog_compiler_wl_CXX='-Wl,'
19390 lt_prog_compiler_pic_CXX='-KPIC'
19391 lt_prog_compiler_static_CXX='-static'
19392 ;;
19393 icpc* )
19394 # Intel C++, used to be incompatible with GCC.
19395 # ICC 10 doesn't accept -KPIC any more.
19396 lt_prog_compiler_wl_CXX='-Wl,'
19397 lt_prog_compiler_pic_CXX='-fPIC'
19398 lt_prog_compiler_static_CXX='-static'
19399 ;;
19400 pgCC* | pgcpp*)
19401 # Portland Group C++ compiler
19402 lt_prog_compiler_wl_CXX='-Wl,'
19403 lt_prog_compiler_pic_CXX='-fpic'
19404 lt_prog_compiler_static_CXX='-Bstatic'
19405 ;;
19406 cxx*)
19407 # Compaq C++
19408 # Make sure the PIC flag is empty. It appears that all Alpha
19409 # Linux and Compaq Tru64 Unix objects are PIC.
19410 lt_prog_compiler_pic_CXX=
19411 lt_prog_compiler_static_CXX='-non_shared'
19412 ;;
19413 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19414 # IBM XL 8.0, 9.0 on PPC and BlueGene
19415 lt_prog_compiler_wl_CXX='-Wl,'
19416 lt_prog_compiler_pic_CXX='-qpic'
19417 lt_prog_compiler_static_CXX='-qstaticlink'
19418 ;;
19419 *)
19420 case `$CC -V 2>&1 | $SED 5q` in
19421 *Sun\ C*)
19422 # Sun C++ 5.9
19423 lt_prog_compiler_pic_CXX='-KPIC'
19424 lt_prog_compiler_static_CXX='-Bstatic'
19425 lt_prog_compiler_wl_CXX='-Qoption ld '
19426 ;;
19427 esac
19428 ;;
19429 esac
19430 ;;
19431 lynxos*)
19432 ;;
19433 m88k*)
19434 ;;
19435 mvs*)
19436 case $cc_basename in
19437 cxx*)
19438 lt_prog_compiler_pic_CXX='-W c,exportall'
19439 ;;
19440 *)
19441 ;;
19442 esac
19443 ;;
19444 netbsd* | netbsdelf*-gnu)
19445 ;;
19446 *-mlibc)
19447 ;;
19448 *qnx* | *nto*)
19449 # QNX uses GNU C++, but need to define -shared option too, otherwise
19450 # it will coredump.
19451 lt_prog_compiler_pic_CXX='-fPIC -shared'
19452 ;;
19453 osf3* | osf4* | osf5*)
19454 case $cc_basename in
19455 KCC*)
19456 lt_prog_compiler_wl_CXX='--backend -Wl,'
19457 ;;
19458 RCC*)
19459 # Rational C++ 2.4.1
19460 lt_prog_compiler_pic_CXX='-pic'
19461 ;;
19462 cxx*)
19463 # Digital/Compaq C++
19464 lt_prog_compiler_wl_CXX='-Wl,'
19465 # Make sure the PIC flag is empty. It appears that all Alpha
19466 # Linux and Compaq Tru64 Unix objects are PIC.
19467 lt_prog_compiler_pic_CXX=
19468 lt_prog_compiler_static_CXX='-non_shared'
19469 ;;
19470 *)
19471 ;;
19472 esac
19473 ;;
19474 psos*)
19475 ;;
19476 serenity*)
19477 ;;
19478 solaris*)
19479 case $cc_basename in
19480 CC* | sunCC*)
19481 # Sun C++ 4.2, 5.x and Centerline C++
19482 lt_prog_compiler_pic_CXX='-KPIC'
19483 lt_prog_compiler_static_CXX='-Bstatic'
19484 lt_prog_compiler_wl_CXX='-Qoption ld '
19485 ;;
19486 gcx*)
19487 # Green Hills C++ Compiler
19488 lt_prog_compiler_pic_CXX='-PIC'
19489 ;;
19490 *)
19491 ;;
19492 esac
19493 ;;
19494 sunos4*)
19495 case $cc_basename in
19496 CC*)
19497 # Sun C++ 4.x
19498 lt_prog_compiler_pic_CXX='-pic'
19499 lt_prog_compiler_static_CXX='-Bstatic'
19500 ;;
19501 lcc*)
19502 # Lucid
19503 lt_prog_compiler_pic_CXX='-pic'
19504 ;;
19505 *)
19506 ;;
19507 esac
19508 ;;
19509 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19510 case $cc_basename in
19511 CC*)
19512 lt_prog_compiler_wl_CXX='-Wl,'
19513 lt_prog_compiler_pic_CXX='-KPIC'
19514 lt_prog_compiler_static_CXX='-Bstatic'
19515 ;;
19516 esac
19517 ;;
19518 tandem*)
19519 case $cc_basename in
19520 NCC*)
19521 # NonStop-UX NCC 3.20
19522 lt_prog_compiler_pic_CXX='-KPIC'
19523 ;;
19524 *)
19525 ;;
19526 esac
19527 ;;
19528 vxworks*)
19529 ;;
19530 *)
19531 lt_prog_compiler_can_build_shared_CXX=no
19532 ;;
19533 esac
19534 fi
19535
19536 case $host_os in
19537 # For platforms that do not support PIC, -DPIC is meaningless:
19538 *djgpp*)
19539 lt_prog_compiler_pic_CXX=
19540 ;;
19541 *)
19542 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19543 ;;
19544 esac
19545
19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19547 printf %s "checking for $compiler option to produce PIC... " >&6; }
19548 if test ${lt_cv_prog_compiler_pic_CXX+y}
19549 then :
19550 printf %s "(cached) " >&6
19551 else case e in #(
19552 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19553 esac
19554 fi
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19556 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19557 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19558
19559 #
19560 # Check to make sure the PIC flag actually works.
19561 #
19562 if test -n "$lt_prog_compiler_pic_CXX"; then
19563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19564 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19565 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19566 then :
19567 printf %s "(cached) " >&6
19568 else case e in #(
19569 e) lt_cv_prog_compiler_pic_works_CXX=no
19570 ac_outfile=conftest.$ac_objext
19571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19572 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19573 # Insert the option either (1) after the last *FLAGS variable, or
19574 # (2) before a word containing "conftest.", or (3) at the end.
19575 # Note that $ac_compile itself does not contain backslashes and begins
19576 # with a dollar sign (not a hyphen), so the echo should work correctly.
19577 # The option is referenced via a variable to avoid confusing sed.
19578 lt_compile=`echo "$ac_compile" | $SED \
19579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19581 -e 's:$: $lt_compiler_flag:'`
19582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19583 (eval "$lt_compile" 2>conftest.err)
19584 ac_status=$?
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 if (exit $ac_status) && test -s "$ac_outfile"; then
19588 # The compiler can only warn and ignore the option if not recognized
19589 # So say no if there are warnings other than the usual output.
19590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19593 lt_cv_prog_compiler_pic_works_CXX=yes
19594 fi
19595 fi
19596 $RM conftest*
19597 ;;
19598 esac
19599 fi
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19601 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19602
19603 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19604 case $lt_prog_compiler_pic_CXX in
19605 "" | " "*) ;;
19606 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19607 esac
19608 else
19609 lt_prog_compiler_pic_CXX=
19610 lt_prog_compiler_can_build_shared_CXX=no
19611 fi
19612
19613 fi
19614
19615
19616
19617
19618
19619 #
19620 # Check to make sure the static flag actually works.
19621 #
19622 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19624 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19625 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19626 then :
19627 printf %s "(cached) " >&6
19628 else case e in #(
19629 e) lt_cv_prog_compiler_static_works_CXX=no
19630 save_LDFLAGS=$LDFLAGS
19631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19634 # The linker can only warn and ignore the option if not recognized
19635 # So say no if there are warnings
19636 if test -s conftest.err; then
19637 # Append any errors to the config.log.
19638 cat conftest.err 1>&5
19639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19641 if diff conftest.exp conftest.er2 >/dev/null; then
19642 lt_cv_prog_compiler_static_works_CXX=yes
19643 fi
19644 else
19645 lt_cv_prog_compiler_static_works_CXX=yes
19646 fi
19647 fi
19648 $RM -r conftest*
19649 LDFLAGS=$save_LDFLAGS
19650 ;;
19651 esac
19652 fi
19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19654 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19655
19656 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19657 :
19658 else
19659 lt_prog_compiler_static_CXX=
19660 fi
19661
19662
19663
19664 ='-fPIC'
19665 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19666 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19667 archive_cmds_need_lc_CXX=no
19668 no_undefined_flag_CXX=
19669 ;;
19670
19671 *)
19672 dynamic_linker=no
19673 ;;
19674 esac
19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19676 printf "%s\n" "$dynamic_linker" >&6; }
19677 test no = "$dynamic_linker" && can_build_shared=no
19678
19679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19680 if test yes = "$GCC"; then
19681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19682 fi
19683
19684 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19685 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19686 fi
19687
19688 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19689 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19690 fi
19691
19692 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19693 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19694
19695 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19696 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19697
19698 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19699 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19741 printf %s "checking how to hardcode library paths into programs... " >&6; }
19742 hardcode_action_CXX=
19743 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19744 test -n "$runpath_var_CXX" ||
19745 test yes = "$hardcode_automatic_CXX"; then
19746
19747 # We can hardcode non-existent directories.
19748 if test no != "$hardcode_direct_CXX" &&
19749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19750 # have to relink, otherwise we might link with an installed library
19751 # when we should be linking with a yet-to-be-installed one
19752 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19753 test no != "$hardcode_minus_L_CXX"; then
19754 # Linking always hardcodes the temporary library directory.
19755 hardcode_action_CXX=relink
19756 else
19757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19758 hardcode_action_CXX=immediate
19759 fi
19760 else
19761 # We cannot hardcode anything, or else we can only hardcode existing
19762 # directories.
19763 hardcode_action_CXX=unsupported
19764 fi
19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19766 printf "%s\n" "$hardcode_action_CXX" >&6; }
19767
19768 if test relink = "$hardcode_action_CXX" ||
19769 test yes = "$inherit_rpath_CXX"; then
19770 # Fast installation is not supported
19771 enable_fast_install=no
19772 elif test yes = "$shlibpath_overrides_runpath" ||
19773 test no = "$enable_shared"; then
19774 # Fast installation is not necessary
19775 enable_fast_install=needless
19776 fi
19777
19778
19779
19780
19781
19782
19783
19784 fi # test -n "$compiler"
19785
19786 CC=$lt_save_CC
19787 CFLAGS=$lt_save_CFLAGS
19788 LDCXX=$LD
19789 LD=$lt_save_LD
19790 GCC=$lt_save_GCC
19791 with_gnu_ld=$lt_save_with_gnu_ld
19792 lt_cv_path_LDCXX=$lt_cv_path_LD
19793 lt_cv_path_LD=$lt_save_path_LD
19794 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19795 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19796 fi # test yes != "$_lt_caught_CXX_error"
19797
19798 ac_ext=c
19799 ac_cpp='$CPP $CPPFLAGS'
19800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818 ac_config_commands="$ac_config_commands libtool"
19819
19820
19821
19822
19823 # Only expand once:
19824
19825
19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19827 printf %s "checking for a sed that does not truncate output... " >&6; }
19828 if test ${ac_cv_path_SED+y}
19829 then :
19830 printf %s "(cached) " >&6
19831 else case e in #(
19832 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19833 for ac_i in 1 2 3 4 5 6 7; do
19834 ac_script="$ac_script$as_nl$ac_script"
19835 done
19836 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19837 { ac_script=; unset ac_script;}
19838 if test -z "$SED"; then
19839 ac_path_SED_found=false
19840 # Loop through the user's path and test for each of PROGNAME-LIST
19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19843 do
19844 IFS=$as_save_IFS
19845 case $as_dir in #(((
19846 '') as_dir=./ ;;
19847 */) ;;
19848 *) as_dir=$as_dir/ ;;
19849 esac
19850 for ac_prog in sed gsed
19851 do
19852 for ac_exec_ext in '' $ac_executable_extensions; do
19853 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
19854 as_fn_executable_p "$ac_path_SED" || continue
19855 # Check for GNU ac_path_SED and select it if it is found.
19856 # Check for GNU $ac_path_SED
19857 case `"$ac_path_SED" --version 2>&1` in #(
19858 *GNU*)
19859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19860 #(
19861 *)
19862 ac_count=0
19863 printf %s 0123456789 >"conftest.in"
19864 while :
19865 do
19866 cat "conftest.in" "conftest.in" >"conftest.tmp"
19867 mv "conftest.tmp" "conftest.in"
19868 cp "conftest.in" "conftest.nl"
19869 printf "%s\n" '' >> "conftest.nl"
19870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19872 as_fn_arith $ac_count + 1 && ac_count=$as_val
19873 if test $ac_count -gt ${ac_path_SED_max-0}; then
19874 # Best one so far, save it but keep looking for a better one
19875 ac_cv_path_SED="$ac_path_SED"
19876 ac_path_SED_max=$ac_count
19877 fi
19878 # 10*(2^10) chars as input seems more than enough
19879 test $ac_count -gt 10 && break
19880 done
19881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19882 esac
19883
19884 $ac_path_SED_found && break 3
19885 done
19886 done
19887 done
19888 IFS=$as_save_IFS
19889 if test -z "$ac_cv_path_SED"; then
19890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19891 fi
19892 else
19893 ac_cv_path_SED=$SED
19894 fi
19895 ;;
19896 esac
19897 fi
19898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19899 printf "%s\n" "$ac_cv_path_SED" >&6; }
19900 SED="$ac_cv_path_SED"
19901 rm -f conftest.sed
19902
19903
19904 # check ibus
19905
19906
19907
19908
19909
19910
19911
19912 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19913 if test -n "$ac_tool_prefix"; then
19914 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19915 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19917 printf %s "checking for $ac_word... " >&6; }
19918 if test ${ac_cv_path_PKG_CONFIG+y}
19919 then :
19920 printf %s "(cached) " >&6
19921 else case e in #(
19922 e) case $PKG_CONFIG in
19923 [\\/]* | ?:[\\/]*)
19924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19925 ;;
19926 *)
19927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19928 for as_dir in $PATH
19929 do
19930 IFS=$as_save_IFS
19931 case $as_dir in #(((
19932 '') as_dir=./ ;;
19933 */) ;;
19934 *) as_dir=$as_dir/ ;;
19935 esac
19936 for ac_exec_ext in '' $ac_executable_extensions; do
19937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19938 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19940 break 2
19941 fi
19942 done
19943 done
19944 IFS=$as_save_IFS
19945
19946 ;;
19947 esac ;;
19948 esac
19949 fi
19950 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19951 if test -n "$PKG_CONFIG"; then
19952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19953 printf "%s\n" "$PKG_CONFIG" >&6; }
19954 else
19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19956 printf "%s\n" "no" >&6; }
19957 fi
19958
19959
19960 fi
19961 if test -z "$ac_cv_path_PKG_CONFIG"; then
19962 ac_pt_PKG_CONFIG=$PKG_CONFIG
19963 # Extract the first word of "pkg-config", so it can be a program name with args.
19964 set dummy pkg-config; ac_word=$2
19965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19966 printf %s "checking for $ac_word... " >&6; }
19967 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19968 then :
19969 printf %s "(cached) " >&6
19970 else case e in #(
19971 e) case $ac_pt_PKG_CONFIG in
19972 [\\/]* | ?:[\\/]*)
19973 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19974 ;;
19975 *)
19976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19977 for as_dir in $PATH
19978 do
19979 IFS=$as_save_IFS
19980 case $as_dir in #(((
19981 '') as_dir=./ ;;
19982 */) ;;
19983 *) as_dir=$as_dir/ ;;
19984 esac
19985 for ac_exec_ext in '' $ac_executable_extensions; do
19986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19987 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19989 break 2
19990 fi
19991 done
19992 done
19993 IFS=$as_save_IFS
19994
19995 ;;
19996 esac ;;
19997 esac
19998 fi
19999 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20000 if test -n "$ac_pt_PKG_CONFIG"; then
20001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20002 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20003 else
20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005 printf "%s\n" "no" >&6; }
20006 fi
20007
20008 if test "x$ac_pt_PKG_CONFIG" = x; then
20009 PKG_CONFIG=""
20010 else
20011 case $cross_compiling:$ac_tool_warned in
20012 yes:)
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20015 ac_tool_warned=yes ;;
20016 esac
20017 PKG_CONFIG=$ac_pt_PKG_CONFIG
20018 fi
20019 else
20020 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20021 fi
20022
20023 fi
20024 if test -n "$PKG_CONFIG"; then
20025 _pkg_min_version=0.9.0
20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20027 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20028 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20030 printf "%s\n" "yes" >&6; }
20031 else
20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20033 printf "%s\n" "no" >&6; }
20034 PKG_CONFIG=""
20035 fi
20036 fi
20037 if test -z "$PKG_CONFIG"; then
20038 as_fn_error $? "pkg-config not found" "$LINENO" 5
20039 fi
20040
20041 pkg_failed=no
20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
20043 ibus-1.0 >= 1.4.0
20044 " >&5
20045 printf %s "checking for
20046 ibus-1.0 >= 1.4.0
20047 ... " >&6; }
20048
20049 if test -n "$IBUS_CFLAGS"; then
20050 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
20051 elif test -n "$PKG_CONFIG"; then
20052 if test -n "$PKG_CONFIG" && \
20053 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20054 ibus-1.0 >= 1.4.0
20055 \""; } >&5
20056 ($PKG_CONFIG --exists --print-errors "
20057 ibus-1.0 >= 1.4.0
20058 ") 2>&5
20059 ac_status=$?
20060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20061 test $ac_status = 0; }; then
20062 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "
20063 ibus-1.0 >= 1.4.0
20064 " 2>/dev/null`
20065 test "x$?" != "x0" && pkg_failed=yes
20066 else
20067 pkg_failed=yes
20068 fi
20069 else
20070 pkg_failed=untried
20071 fi
20072 if test -n "$IBUS_LIBS"; then
20073 pkg_cv_IBUS_LIBS="$IBUS_LIBS"
20074 elif test -n "$PKG_CONFIG"; then
20075 if test -n "$PKG_CONFIG" && \
20076 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20077 ibus-1.0 >= 1.4.0
20078 \""; } >&5
20079 ($PKG_CONFIG --exists --print-errors "
20080 ibus-1.0 >= 1.4.0
20081 ") 2>&5
20082 ac_status=$?
20083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20084 test $ac_status = 0; }; then
20085 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "
20086 ibus-1.0 >= 1.4.0
20087 " 2>/dev/null`
20088 test "x$?" != "x0" && pkg_failed=yes
20089 else
20090 pkg_failed=yes
20091 fi
20092 else
20093 pkg_failed=untried
20094 fi
20095
20096
20097
20098 if test $pkg_failed = yes; then
20099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 printf "%s\n" "no" >&6; }
20101
20102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20103 _pkg_short_errors_supported=yes
20104 else
20105 _pkg_short_errors_supported=no
20106 fi
20107 if test $_pkg_short_errors_supported = yes; then
20108 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
20109 ibus-1.0 >= 1.4.0
20110 " 2>&1`
20111 else
20112 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
20113 ibus-1.0 >= 1.4.0
20114 " 2>&1`
20115 fi
20116 # Put the nasty error message in config.log where it belongs
20117 echo "$IBUS_PKG_ERRORS" >&5
20118
20119 as_fn_error $? "Package requirements (
20120 ibus-1.0 >= 1.4.0
20121 ) were not met:
20122
20123 $IBUS_PKG_ERRORS
20124
20125 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20126 installed software in a non-standard prefix.
20127
20128 Alternatively, you may set the environment variables IBUS_CFLAGS
20129 and IBUS_LIBS to avoid the need to call pkg-config.
20130 See the pkg-config man page for more details." "$LINENO" 5
20131 elif test $pkg_failed = untried; then
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133 printf "%s\n" "no" >&6; }
20134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20135 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20136 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20137 is in your PATH or set the PKG_CONFIG environment variable to the full
20138 path to pkg-config.
20139
20140 Alternatively, you may set the environment variables IBUS_CFLAGS
20141 and IBUS_LIBS to avoid the need to call pkg-config.
20142 See the pkg-config man page for more details.
20143
20144 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20145 See 'config.log' for more details" "$LINENO" 5; }
20146 else
20147 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
20148 IBUS_LIBS=$pkg_cv_IBUS_LIBS
20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20150 printf "%s\n" "yes" >&6; }
20151
20152 fi
20153
20154 # check libzhuyin and database format
20155
20156 pkg_failed=no
20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
20158 libzhuyin >= 2.6.0
20159 " >&5
20160 printf %s "checking for
20161 libzhuyin >= 2.6.0
20162 ... " >&6; }
20163
20164 if test -n "$LIBZHUYIN_CFLAGS"; then
20165 pkg_cv_LIBZHUYIN_CFLAGS="$LIBZHUYIN_CFLAGS"
20166 elif test -n "$PKG_CONFIG"; then
20167 if test -n "$PKG_CONFIG" && \
20168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20169 libzhuyin >= 2.6.0
20170 \""; } >&5
20171 ($PKG_CONFIG --exists --print-errors "
20172 libzhuyin >= 2.6.0
20173 ") 2>&5
20174 ac_status=$?
20175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20176 test $ac_status = 0; }; then
20177 pkg_cv_LIBZHUYIN_CFLAGS=`$PKG_CONFIG --cflags "
20178 libzhuyin >= 2.6.0
20179 " 2>/dev/null`
20180 test "x$?" != "x0" && pkg_failed=yes
20181 else
20182 pkg_failed=yes
20183 fi
20184 else
20185 pkg_failed=untried
20186 fi
20187 if test -n "$LIBZHUYIN_LIBS"; then
20188 pkg_cv_LIBZHUYIN_LIBS="$LIBZHUYIN_LIBS"
20189 elif test -n "$PKG_CONFIG"; then
20190 if test -n "$PKG_CONFIG" && \
20191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20192 libzhuyin >= 2.6.0
20193 \""; } >&5
20194 ($PKG_CONFIG --exists --print-errors "
20195 libzhuyin >= 2.6.0
20196 ") 2>&5
20197 ac_status=$?
20198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20199 test $ac_status = 0; }; then
20200 pkg_cv_LIBZHUYIN_LIBS=`$PKG_CONFIG --libs "
20201 libzhuyin >= 2.6.0
20202 " 2>/dev/null`
20203 test "x$?" != "x0" && pkg_failed=yes
20204 else
20205 pkg_failed=yes
20206 fi
20207 else
20208 pkg_failed=untried
20209 fi
20210
20211
20212
20213 if test $pkg_failed = yes; then
20214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215 printf "%s\n" "no" >&6; }
20216
20217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20218 _pkg_short_errors_supported=yes
20219 else
20220 _pkg_short_errors_supported=no
20221 fi
20222 if test $_pkg_short_errors_supported = yes; then
20223 LIBZHUYIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
20224 libzhuyin >= 2.6.0
20225 " 2>&1`
20226 else
20227 LIBZHUYIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
20228 libzhuyin >= 2.6.0
20229 " 2>&1`
20230 fi
20231 # Put the nasty error message in config.log where it belongs
20232 echo "$LIBZHUYIN_PKG_ERRORS" >&5
20233
20234 as_fn_error $? "Package requirements (
20235 libzhuyin >= 2.6.0
20236 ) were not met:
20237
20238 $LIBZHUYIN_PKG_ERRORS
20239
20240 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20241 installed software in a non-standard prefix.
20242
20243 Alternatively, you may set the environment variables LIBZHUYIN_CFLAGS
20244 and LIBZHUYIN_LIBS to avoid the need to call pkg-config.
20245 See the pkg-config man page for more details." "$LINENO" 5
20246 elif test $pkg_failed = untried; then
20247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 printf "%s\n" "no" >&6; }
20249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20250 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20251 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20252 is in your PATH or set the PKG_CONFIG environment variable to the full
20253 path to pkg-config.
20254
20255 Alternatively, you may set the environment variables LIBZHUYIN_CFLAGS
20256 and LIBZHUYIN_LIBS to avoid the need to call pkg-config.
20257 See the pkg-config man page for more details.
20258
20259 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20260 See 'config.log' for more details" "$LINENO" 5; }
20261 else
20262 LIBZHUYIN_CFLAGS=$pkg_cv_LIBZHUYIN_CFLAGS
20263 LIBZHUYIN_LIBS=$pkg_cv_LIBZHUYIN_LIBS
20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20265 printf "%s\n" "yes" >&6; }
20266 enable_libzhuyin=yes
20267 fi
20268 DATABASE_FORMAT=`$PKG_CONFIG --variable=database_format libzhuyin`
20269
20270
20271 # check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master)
20272 save_CFLAGS="$CFLAGS"
20273 save_LIBS="$LIBS"
20274 CFLAGS="$CFLAGS $IBUS_CFLAGS"
20275 LIBS="$LIBS $IBUS_LIBS"
20276 ac_fn_c_check_func "$LINENO" "ibus_config_get_values" "ac_cv_func_ibus_config_get_values"
20277 if test "x$ac_cv_func_ibus_config_get_values" = xyes
20278 then :
20279 printf "%s\n" "#define HAVE_IBUS_CONFIG_GET_VALUES 1" >>confdefs.h
20280
20281 fi
20282
20283 CFLAGS="$save_CFLAGS"
20284 LIBS="$save_LIBS"
20285
20286 # check env
20287 # Extract the first word of "env", so it can be a program name with args.
20288 set dummy env; ac_word=$2
20289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20290 printf %s "checking for $ac_word... " >&6; }
20291 if test ${ac_cv_path_ENV+y}
20292 then :
20293 printf %s "(cached) " >&6
20294 else case e in #(
20295 e) case $ENV in
20296 [\\/]* | ?:[\\/]*)
20297 ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
20298 ;;
20299 *)
20300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20301 for as_dir in $PATH
20302 do
20303 IFS=$as_save_IFS
20304 case $as_dir in #(((
20305 '') as_dir=./ ;;
20306 */) ;;
20307 *) as_dir=$as_dir/ ;;
20308 esac
20309 for ac_exec_ext in '' $ac_executable_extensions; do
20310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20311 ac_cv_path_ENV="$as_dir$ac_word$ac_exec_ext"
20312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20313 break 2
20314 fi
20315 done
20316 done
20317 IFS=$as_save_IFS
20318
20319 ;;
20320 esac ;;
20321 esac
20322 fi
20323 ENV=$ac_cv_path_ENV
20324 if test -n "$ENV"; then
20325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
20326 printf "%s\n" "$ENV" >&6; }
20327 else
20328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20329 printf "%s\n" "no" >&6; }
20330 fi
20331
20332
20333
20334
20335 # check python
20336
20337 # Check whether --with-python was given.
20338 if test ${with_python+y}
20339 then :
20340 withval=$with_python; PYTHON=$with_python
20341 fi
20342
20343
20344
20345
20346
20347
20348
20349 if test -n "$PYTHON"; then
20350 # If the user set $PYTHON, use it and don't search something else.
20351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
20352 printf %s "checking whether $PYTHON version is >= 2.5... " >&6; }
20353 prog="import sys
20354 # split strings by '.' and convert to numeric. Append some zeros
20355 # because we need at least 4 digits for the hex conversion.
20356 # map returns an iterator in Python 3.0 and a list in 2.x
20357 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
20358 minverhex = 0
20359 # xrange is not present in Python 3.0 and range returns an iterator
20360 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20361 sys.exit(sys.hexversion < minverhex)"
20362 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20363 ($PYTHON -c "$prog") >&5 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }
20367 then :
20368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369 printf "%s\n" "yes" >&6; }
20370 else case e in #(
20371 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20372 printf "%s\n" "no" >&6; }
20373 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
20374 esac
20375 fi
20376 am_display_PYTHON=$PYTHON
20377 else
20378 # Otherwise, try each interpreter until we find one that satisfies
20379 # VERSION.
20380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
20381 printf %s "checking for a Python interpreter with version >= 2.5... " >&6; }
20382 if test ${am_cv_pathless_PYTHON+y}
20383 then :
20384 printf %s "(cached) " >&6
20385 else case e in #(
20386 e)
20387 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
20388 test "$am_cv_pathless_PYTHON" = none && break
20389 prog="import sys
20390 # split strings by '.' and convert to numeric. Append some zeros
20391 # because we need at least 4 digits for the hex conversion.
20392 # map returns an iterator in Python 3.0 and a list in 2.x
20393 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
20394 minverhex = 0
20395 # xrange is not present in Python 3.0 and range returns an iterator
20396 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20397 sys.exit(sys.hexversion < minverhex)"
20398 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20399 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }
20403 then :
20404 break
20405 fi
20406 done ;;
20407 esac
20408 fi
20409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20410 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
20411 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20412 if test "$am_cv_pathless_PYTHON" = none; then
20413 PYTHON=:
20414 else
20415 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20416 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20418 printf %s "checking for $ac_word... " >&6; }
20419 if test ${ac_cv_path_PYTHON+y}
20420 then :
20421 printf %s "(cached) " >&6
20422 else case e in #(
20423 e) case $PYTHON in
20424 [\\/]* | ?:[\\/]*)
20425 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20426 ;;
20427 *)
20428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20429 for as_dir in $PATH
20430 do
20431 IFS=$as_save_IFS
20432 case $as_dir in #(((
20433 '') as_dir=./ ;;
20434 */) ;;
20435 *) as_dir=$as_dir/ ;;
20436 esac
20437 for ac_exec_ext in '' $ac_executable_extensions; do
20438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20439 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
20440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20441 break 2
20442 fi
20443 done
20444 done
20445 IFS=$as_save_IFS
20446
20447 ;;
20448 esac ;;
20449 esac
20450 fi
20451 PYTHON=$ac_cv_path_PYTHON
20452 if test -n "$PYTHON"; then
20453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20454 printf "%s\n" "$PYTHON" >&6; }
20455 else
20456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20457 printf "%s\n" "no" >&6; }
20458 fi
20459
20460
20461 fi
20462 am_display_PYTHON=$am_cv_pathless_PYTHON
20463 fi
20464
20465
20466 if test "$PYTHON" = :; then
20467 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
20468 else
20469
20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20471 printf %s "checking for $am_display_PYTHON version... " >&6; }
20472 if test ${am_cv_python_version+y}
20473 then :
20474 printf %s "(cached) " >&6
20475 else case e in #(
20476 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
20477 esac
20478 fi
20479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20480 printf "%s\n" "$am_cv_python_version" >&6; }
20481 PYTHON_VERSION=$am_cv_python_version
20482
20483
20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20485 printf %s "checking for $am_display_PYTHON platform... " >&6; }
20486 if test ${am_cv_python_platform+y}
20487 then :
20488 printf %s "(cached) " >&6
20489 else case e in #(
20490 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
20491 esac
20492 fi
20493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20494 printf "%s\n" "$am_cv_python_platform" >&6; }
20495 PYTHON_PLATFORM=$am_cv_python_platform
20496
20497
20498 if test "x$prefix" = xNONE; then
20499 am__usable_prefix=$ac_default_prefix
20500 else
20501 am__usable_prefix=$prefix
20502 fi
20503
20504 # Allow user to request using sys.* values from Python,
20505 # instead of the GNU $prefix values.
20506
20507 # Check whether --with-python-sys-prefix was given.
20508 if test ${with_python_sys_prefix+y}
20509 then :
20510 withval=$with_python_sys_prefix; am_use_python_sys=:
20511 else case e in #(
20512 e) am_use_python_sys=false ;;
20513 esac
20514 fi
20515
20516
20517 # Allow user to override whatever the default Python prefix is.
20518
20519 # Check whether --with-python_prefix was given.
20520 if test ${with_python_prefix+y}
20521 then :
20522 withval=$with_python_prefix; am_python_prefix_subst=$withval
20523 am_cv_python_prefix=$withval
20524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
20525 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
20526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
20527 printf "%s\n" "$am_cv_python_prefix" >&6; }
20528 else case e in #(
20529 e)
20530 if $am_use_python_sys; then
20531 # using python sys.prefix value, not GNU
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
20533 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
20534 if test ${am_cv_python_prefix+y}
20535 then :
20536 printf %s "(cached) " >&6
20537 else case e in #(
20538 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
20539 esac
20540 fi
20541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
20542 printf "%s\n" "$am_cv_python_prefix" >&6; }
20543
20544 case $am_cv_python_prefix in
20545 $am__usable_prefix*)
20546 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
20547 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
20548 ;;
20549 *)
20550 am_python_prefix_subst=$am_cv_python_prefix
20551 ;;
20552 esac
20553 else # using GNU prefix value, not python sys.prefix
20554 am_python_prefix_subst='${prefix}'
20555 am_python_prefix=$am_python_prefix_subst
20556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
20557 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
20559 printf "%s\n" "$am_python_prefix" >&6; }
20560 fi ;;
20561 esac
20562 fi
20563
20564 # Substituting python_prefix_subst value.
20565 PYTHON_PREFIX=$am_python_prefix_subst
20566
20567
20568 # emacs-page Now do it all over again for Python exec_prefix, but with yet
20569 # another conditional: fall back to regular prefix if that was specified.
20570
20571 # Check whether --with-python_exec_prefix was given.
20572 if test ${with_python_exec_prefix+y}
20573 then :
20574 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
20575 am_cv_python_exec_prefix=$withval
20576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
20577 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
20578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
20579 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
20580 else case e in #(
20581 e)
20582 # no explicit --with-python_exec_prefix, but if
20583 # --with-python_prefix was given, use its value for python_exec_prefix too.
20584 if test -n "$with_python_prefix"
20585 then :
20586 am_python_exec_prefix_subst=$with_python_prefix
20587 am_cv_python_exec_prefix=$with_python_prefix
20588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
20589 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
20590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
20591 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
20592 else case e in #(
20593 e)
20594 # Set am__usable_exec_prefix whether using GNU or Python values,
20595 # since we use that variable for pyexecdir.
20596 if test "x$exec_prefix" = xNONE; then
20597 am__usable_exec_prefix=$am__usable_prefix
20598 else
20599 am__usable_exec_prefix=$exec_prefix
20600 fi
20601 #
20602 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
20603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
20604 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
20605 if test ${am_cv_python_exec_prefix+y}
20606 then :
20607 printf %s "(cached) " >&6
20608 else case e in #(
20609 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
20610 esac
20611 fi
20612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
20613 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
20614 case $am_cv_python_exec_prefix in
20615 $am__usable_exec_prefix*)
20616 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
20617 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
20618 ;;
20619 *)
20620 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
20621 ;;
20622 esac
20623 else # using GNU $exec_prefix, not python sys.exec_prefix
20624 am_python_exec_prefix_subst='${exec_prefix}'
20625 am_python_exec_prefix=$am_python_exec_prefix_subst
20626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
20627 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
20628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
20629 printf "%s\n" "$am_python_exec_prefix" >&6; }
20630 fi ;;
20631 esac
20632 fi ;;
20633 esac
20634 fi
20635
20636 # Substituting python_exec_prefix_subst.
20637 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
20638
20639
20640 # Factor out some code duplication into this shell variable.
20641 am_python_setup_sysconfig="\
20642 import sys
20643 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20644 # with python 3.x. See automake bug#10227.
20645 try:
20646 import sysconfig
20647 except ImportError:
20648 can_use_sysconfig = 0
20649 else:
20650 can_use_sysconfig = 1
20651 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20652 # <https://github.com/pypa/virtualenv/issues/118>
20653 try:
20654 from platform import python_implementation
20655 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20656 can_use_sysconfig = 0
20657 except ImportError:
20658 pass" # end of am_python_setup_sysconfig
20659
20660 # More repeated code, for figuring out the installation scheme to use.
20661 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
20662 scheme = sysconfig.get_default_scheme()
20663 else:
20664 scheme = sysconfig._get_default_scheme()
20665 if scheme == 'posix_local':
20666 if '$am_py_prefix' == '/usr':
20667 scheme = 'deb_system' # should only happen during Debian package builds
20668 else:
20669 # Debian's default scheme installs to /usr/local/ but we want to
20670 # follow the prefix, as we always have.
20671 # See bugs#54412, #64837, et al.
20672 scheme = 'posix_prefix'" # end of am_python_setup_scheme
20673
20674
20675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
20676 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
20677 if test ${am_cv_python_pythondir+y}
20678 then :
20679 printf %s "(cached) " >&6
20680 else case e in #(
20681 e) if test "x$am_cv_python_prefix" = x; then
20682 am_py_prefix=$am__usable_prefix
20683 else
20684 am_py_prefix=$am_cv_python_prefix
20685 fi
20686 am_cv_python_pythondir=`$PYTHON -c "
20687 $am_python_setup_sysconfig
20688 if can_use_sysconfig:
20689 try:
20690 $am_python_setup_scheme
20691 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
20692 except:
20693 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20694 else:
20695 from distutils import sysconfig
20696 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20697 sys.stdout.write(sitedir)"`
20698 #
20699 case $am_cv_python_pythondir in
20700 $am_py_prefix*)
20701 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20702 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
20703 ;;
20704 *)
20705 case $am_py_prefix in
20706 /usr|/System*) ;;
20707 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
20708 ;;
20709 esac
20710 ;;
20711 esac
20712 ;;
20713 esac
20714 fi
20715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20716 printf "%s\n" "$am_cv_python_pythondir" >&6; }
20717 pythondir=$am_cv_python_pythondir
20718
20719
20720 pkgpythondir=\${pythondir}/$PACKAGE
20721
20722
20723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
20724 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
20725 if test ${am_cv_python_pyexecdir+y}
20726 then :
20727 printf %s "(cached) " >&6
20728 else case e in #(
20729 e) if test "x$am_cv_python_exec_prefix" = x; then
20730 am_py_exec_prefix=$am__usable_exec_prefix
20731 else
20732 am_py_exec_prefix=$am_cv_python_exec_prefix
20733 fi
20734 am_cv_python_pyexecdir=`$PYTHON -c "
20735 $am_python_setup_sysconfig
20736 if can_use_sysconfig:
20737 try:
20738 $am_python_setup_scheme
20739 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
20740 except:
20741 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
20742 else:
20743 from distutils import sysconfig
20744 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
20745 sys.stdout.write(sitedir)"`
20746 #
20747 case $am_cv_python_pyexecdir in
20748 $am_py_exec_prefix*)
20749 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20750 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
20751 ;;
20752 *)
20753 case $am_py_exec_prefix in
20754 /usr|/System*) ;;
20755 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
20756 ;;
20757 esac
20758 ;;
20759 esac
20760 ;;
20761 esac
20762 fi
20763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20764 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
20765 pyexecdir=$am_cv_python_pyexecdir
20766
20767
20768 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20769
20770
20771
20772 fi
20773
20774
20775 # --enable-boost
20776 # Check whether --enable-boost was given.
20777 if test ${enable_boost+y}
20778 then :
20779 enableval=$enable_boost; enable_boost=$enableval
20780 else case e in #(
20781 e) enable_boost=no
20782 ;;
20783 esac
20784 fi
20785
20786 if test x"$enable_boost" = x"yes"; then
20787 # check boost
20788 ac_ext=c
20789 ac_cpp='$CPP $CPPFLAGS'
20790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20794 printf %s "checking how to run the C preprocessor... " >&6; }
20795 # On Suns, sometimes $CPP names a directory.
20796 if test -n "$CPP" && test -d "$CPP"; then
20797 CPP=
20798 fi
20799 if test -z "$CPP"; then
20800 if test ${ac_cv_prog_CPP+y}
20801 then :
20802 printf %s "(cached) " >&6
20803 else case e in #(
20804 e) # Double quotes because $CC needs to be expanded
20805 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20806 do
20807 ac_preproc_ok=false
20808 for ac_c_preproc_warn_flag in '' yes
20809 do
20810 # Use a header file that comes with gcc, so configuring glibc
20811 # with a fresh cross-compiler works.
20812 # On the NeXT, cc -E runs the code through the compiler's parser,
20813 # not just through cpp. "Syntax error" is here to catch this case.
20814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20816 #include <limits.h>
20817 Syntax error
20818 _ACEOF
20819 if ac_fn_c_try_cpp "$LINENO"
20820 then :
20821
20822 else case e in #(
20823 e) # Broken: fails on valid input.
20824 continue ;;
20825 esac
20826 fi
20827 rm -f conftest.err conftest.i conftest.$ac_ext
20828
20829 # OK, works on sane cases. Now check whether nonexistent headers
20830 # can be detected and how.
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20833 #include <ac_nonexistent.h>
20834 _ACEOF
20835 if ac_fn_c_try_cpp "$LINENO"
20836 then :
20837 # Broken: success on invalid input.
20838 continue
20839 else case e in #(
20840 e) # Passes both tests.
20841 ac_preproc_ok=:
20842 break ;;
20843 esac
20844 fi
20845 rm -f conftest.err conftest.i conftest.$ac_ext
20846
20847 done
20848 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20849 rm -f conftest.i conftest.err conftest.$ac_ext
20850 if $ac_preproc_ok
20851 then :
20852 break
20853 fi
20854
20855 done
20856 ac_cv_prog_CPP=$CPP
20857 ;;
20858 esac
20859 fi
20860 CPP=$ac_cv_prog_CPP
20861 else
20862 ac_cv_prog_CPP=$CPP
20863 fi
20864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20865 printf "%s\n" "$CPP" >&6; }
20866 ac_preproc_ok=false
20867 for ac_c_preproc_warn_flag in '' yes
20868 do
20869 # Use a header file that comes with gcc, so configuring glibc
20870 # with a fresh cross-compiler works.
20871 # On the NeXT, cc -E runs the code through the compiler's parser,
20872 # not just through cpp. "Syntax error" is here to catch this case.
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20875 #include <limits.h>
20876 Syntax error
20877 _ACEOF
20878 if ac_fn_c_try_cpp "$LINENO"
20879 then :
20880
20881 else case e in #(
20882 e) # Broken: fails on valid input.
20883 continue ;;
20884 esac
20885 fi
20886 rm -f conftest.err conftest.i conftest.$ac_ext
20887
20888 # OK, works on sane cases. Now check whether nonexistent headers
20889 # can be detected and how.
20890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20892 #include <ac_nonexistent.h>
20893 _ACEOF
20894 if ac_fn_c_try_cpp "$LINENO"
20895 then :
20896 # Broken: success on invalid input.
20897 continue
20898 else case e in #(
20899 e) # Passes both tests.
20900 ac_preproc_ok=:
20901 break ;;
20902 esac
20903 fi
20904 rm -f conftest.err conftest.i conftest.$ac_ext
20905
20906 done
20907 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20908 rm -f conftest.i conftest.err conftest.$ac_ext
20909 if $ac_preproc_ok
20910 then :
20911
20912 else case e in #(
20913 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20914 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20915 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20916 See 'config.log' for more details" "$LINENO" 5; } ;;
20917 esac
20918 fi
20919
20920 ac_ext=c
20921 ac_cpp='$CPP $CPPFLAGS'
20922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20925
20926
20927 echo "$as_me: this is boost.m4 serial 12" >&5
20928 boost_save_IFS=$IFS
20929 boost_version_req=1.39
20930 IFS=.
20931 set x $boost_version_req 0 0 0
20932 IFS=$boost_save_IFS
20933 shift
20934 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
20935
20936 # Check whether --with-boost was given.
20937 if test ${with_boost+y}
20938 then :
20939 withval=$with_boost;
20940 fi
20941 # If BOOST_ROOT is set and the user has not provided a value to
20942 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
20943 if test x"$BOOST_ROOT" != x; then
20944 if test x"$with_boost" = x; then
20945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
20946 printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
20947 with_boost=$BOOST_ROOT
20948 else
20949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
20950 printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
20951 fi
20952 fi
20953 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
20954
20955 boost_save_CPPFLAGS=$CPPFLAGS
20956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req" >&5
20957 printf %s "checking for Boost headers version >= $boost_version_req... " >&6; }
20958 if test ${boost_cv_inc_path+y}
20959 then :
20960 printf %s "(cached) " >&6
20961 else case e in #(
20962 e) boost_cv_inc_path=no
20963 ac_ext=cpp
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20970 #include <boost/version.hpp>
20971 #if !defined BOOST_VERSION
20972 # error BOOST_VERSION is not defined
20973 #elif BOOST_VERSION < $boost_version_req
20974 # error Boost headers version < $boost_version_req
20975 #endif
20976
20977 int
20978 main (void)
20979 {
20980
20981 ;
20982 return 0;
20983 }
20984 _ACEOF
20985 # If the user provided a value to --with-boost, use it and only it.
20986 case $with_boost in #(
20987 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
20988 /usr/include C:/Boost/include;; #(
20989 *) set x "$with_boost/include" "$with_boost";;
20990 esac
20991 shift
20992 for boost_dir
20993 do
20994 # Without --layout=system, Boost (or at least some versions) installs
20995 # itself in <prefix>/include/boost-<version>. This inner loop helps to
20996 # find headers in such directories.
20997 #
20998 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
20999 # order followed by ${boost_dir}. The final '.' is a sentinel for
21000 # searching $boost_dir" itself. Entries are whitespace separated.
21001 #
21002 # I didn't indent this loop on purpose (to avoid over-indented code)
21003 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
21004 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
21005 && echo .`
21006 for boost_inc in $boost_layout_system_search_list
21007 do
21008 if test x"$boost_inc" != x.; then
21009 boost_inc="$boost_dir/$boost_inc"
21010 else
21011 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
21012 fi
21013 if test x"$boost_inc" != x; then
21014 # We are going to check whether the version of Boost installed
21015 # in $boost_inc is usable by running a compilation that
21016 # #includes it. But if we pass a -I/some/path in which Boost
21017 # is not installed, the compiler will just skip this -I and
21018 # use other locations (either from CPPFLAGS, or from its list
21019 # of system include directories). As a result we would use
21020 # header installed on the machine instead of the /some/path
21021 # specified by the user. So in that precise case (trying
21022 # $boost_inc), make sure the version.hpp exists.
21023 #
21024 # Use test -e as there can be symlinks.
21025 test -e "$boost_inc/boost/version.hpp" || continue
21026 CPPFLAGS="$CPPFLAGS -I$boost_inc"
21027 fi
21028 if ac_fn_cxx_try_compile "$LINENO"
21029 then :
21030 boost_cv_inc_path=yes
21031 else case e in #(
21032 e) boost_cv_version=no ;;
21033 esac
21034 fi
21035 rm -f core conftest.err conftest.$ac_objext conftest.beam
21036 if test x"$boost_cv_inc_path" = xyes; then
21037 if test x"$boost_inc" != x; then
21038 boost_cv_inc_path=$boost_inc
21039 fi
21040 break 2
21041 fi
21042 done
21043 done
21044 ac_ext=c
21045 ac_cpp='$CPP $CPPFLAGS'
21046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21049 ;;
21050 esac
21051 fi
21052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
21053 printf "%s\n" "$boost_cv_inc_path" >&6; }
21054 case $boost_cv_inc_path in #(
21055 no)
21056 boost_errmsg="cannot find Boost headers version >= $boost_version_req"
21057 as_fn_error $? "$boost_errmsg" "$LINENO" 5
21058
21059 ;;#(
21060 yes)
21061 BOOST_CPPFLAGS=
21062 ;;#(
21063 *)
21064 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
21065
21066 ;;
21067 esac
21068 if test x"$boost_cv_inc_path" != xno; then
21069
21070 printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h
21071
21072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
21073 printf %s "checking for Boost's header version... " >&6; }
21074 if test ${boost_cv_lib_version+y}
21075 then :
21076 printf %s "(cached) " >&6
21077 else case e in #(
21078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21079 /* end confdefs.h. */
21080 #include <boost/version.hpp>
21081 boost-lib-version = BOOST_LIB_VERSION
21082 _ACEOF
21083 if (eval "$ac_cpp $CXXFLAGS conftest.$ac_ext") 2>&5 |
21084 tr -d '\r' |
21085 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;g;}" >conftest.i 2>&1
21086 then :
21087 boost_cv_lib_version=`cat conftest.i`
21088 fi
21089 rm -rf conftest*
21090 ;;
21091 esac
21092 fi
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
21094 printf "%s\n" "$boost_cv_lib_version" >&6; }
21095 # e.g. "134" for 1_34_1 or "135" for 1_35
21096 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
21097 case $boost_major_version in #(
21098 '' | *[!0-9]*)
21099 as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
21100 ;;
21101 esac
21102 fi
21103 CPPFLAGS=$boost_save_CPPFLAGS
21104
21105 if test x"$boost_cv_inc_path" = xno; then
21106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
21107 printf "%s\n" "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
21108 else
21109 ac_ext=cpp
21110 ac_cpp='$CXXCPP $CPPFLAGS'
21111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21114 boost_save_CPPFLAGS=$CPPFLAGS
21115 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21116 ac_fn_cxx_check_header_compile "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
21117 if test "x$ac_cv_header_boost_bind_hpp" = xyes
21118 then :
21119
21120 printf "%s\n" "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
21121
21122 else case e in #(
21123 e) as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5 ;;
21124 esac
21125 fi
21126
21127 CPPFLAGS=$boost_save_CPPFLAGS
21128 ac_ext=c
21129 ac_cpp='$CPP $CPPFLAGS'
21130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21133 fi
21134
21135 if test x"$boost_cv_inc_path" = xno; then
21136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/signals2.hpp" >&5
21137 printf "%s\n" "$as_me: Boost not available, not searching for boost/signals2.hpp" >&6;}
21138 else
21139 ac_ext=cpp
21140 ac_cpp='$CXXCPP $CPPFLAGS'
21141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21144 boost_save_CPPFLAGS=$CPPFLAGS
21145 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
21146 ac_fn_cxx_check_header_compile "$LINENO" "boost/signals2.hpp" "ac_cv_header_boost_signals2_hpp" "$ac_includes_default"
21147 if test "x$ac_cv_header_boost_signals2_hpp" = xyes
21148 then :
21149
21150 printf "%s\n" "#define HAVE_BOOST_SIGNALS2_HPP 1" >>confdefs.h
21151
21152 else case e in #(
21153 e) as_fn_error $? "cannot find boost/signals2.hpp" "$LINENO" 5 ;;
21154 esac
21155 fi
21156
21157 CPPFLAGS=$boost_save_CPPFLAGS
21158 ac_ext=c
21159 ac_cpp='$CPP $CPPFLAGS'
21160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163 fi
21164
21165 fi
21166 if test x"$enable_boost" = x"yes"; then
21167 HAVE_BOOST_TRUE=
21168 HAVE_BOOST_FALSE='#'
21169 else
21170 HAVE_BOOST_TRUE='#'
21171 HAVE_BOOST_FALSE=
21172 fi
21173
21174
21175 # --enable-opencc
21176 # Check whether --enable-opencc was given.
21177 if test ${enable_opencc+y}
21178 then :
21179 enableval=$enable_opencc; enable_opencc=$enableval
21180 else case e in #(
21181 e) enable_opencc=no
21182 ;;
21183 esac
21184 fi
21185
21186 if test x"$enable_opencc" = x"yes"; then
21187 # check opencc
21188
21189 pkg_failed=no
21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opencc >= 1.0.0" >&5
21191 printf %s "checking for opencc >= 1.0.0... " >&6; }
21192
21193 if test -n "$OPENCC_CFLAGS"; then
21194 pkg_cv_OPENCC_CFLAGS="$OPENCC_CFLAGS"
21195 elif test -n "$PKG_CONFIG"; then
21196 if test -n "$PKG_CONFIG" && \
21197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc >= 1.0.0\""; } >&5
21198 ($PKG_CONFIG --exists --print-errors "opencc >= 1.0.0") 2>&5
21199 ac_status=$?
21200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21201 test $ac_status = 0; }; then
21202 pkg_cv_OPENCC_CFLAGS=`$PKG_CONFIG --cflags "opencc >= 1.0.0" 2>/dev/null`
21203 test "x$?" != "x0" && pkg_failed=yes
21204 else
21205 pkg_failed=yes
21206 fi
21207 else
21208 pkg_failed=untried
21209 fi
21210 if test -n "$OPENCC_LIBS"; then
21211 pkg_cv_OPENCC_LIBS="$OPENCC_LIBS"
21212 elif test -n "$PKG_CONFIG"; then
21213 if test -n "$PKG_CONFIG" && \
21214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc >= 1.0.0\""; } >&5
21215 ($PKG_CONFIG --exists --print-errors "opencc >= 1.0.0") 2>&5
21216 ac_status=$?
21217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21218 test $ac_status = 0; }; then
21219 pkg_cv_OPENCC_LIBS=`$PKG_CONFIG --libs "opencc >= 1.0.0" 2>/dev/null`
21220 test "x$?" != "x0" && pkg_failed=yes
21221 else
21222 pkg_failed=yes
21223 fi
21224 else
21225 pkg_failed=untried
21226 fi
21227
21228
21229
21230 if test $pkg_failed = yes; then
21231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21232 printf "%s\n" "no" >&6; }
21233
21234 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21235 _pkg_short_errors_supported=yes
21236 else
21237 _pkg_short_errors_supported=no
21238 fi
21239 if test $_pkg_short_errors_supported = yes; then
21240 OPENCC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencc >= 1.0.0" 2>&1`
21241 else
21242 OPENCC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencc >= 1.0.0" 2>&1`
21243 fi
21244 # Put the nasty error message in config.log where it belongs
21245 echo "$OPENCC_PKG_ERRORS" >&5
21246
21247 as_fn_error $? "Package requirements (opencc >= 1.0.0) were not met:
21248
21249 $OPENCC_PKG_ERRORS
21250
21251 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21252 installed software in a non-standard prefix.
21253
21254 Alternatively, you may set the environment variables OPENCC_CFLAGS
21255 and OPENCC_LIBS to avoid the need to call pkg-config.
21256 See the pkg-config man page for more details." "$LINENO" 5
21257 elif test $pkg_failed = untried; then
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21259 printf "%s\n" "no" >&6; }
21260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21261 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21262 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21263 is in your PATH or set the PKG_CONFIG environment variable to the full
21264 path to pkg-config.
21265
21266 Alternatively, you may set the environment variables OPENCC_CFLAGS
21267 and OPENCC_LIBS to avoid the need to call pkg-config.
21268 See the pkg-config man page for more details.
21269
21270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21271 See 'config.log' for more details" "$LINENO" 5; }
21272 else
21273 OPENCC_CFLAGS=$pkg_cv_OPENCC_CFLAGS
21274 OPENCC_LIBS=$pkg_cv_OPENCC_LIBS
21275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21276 printf "%s\n" "yes" >&6; }
21277
21278
21279 printf "%s\n" "#define HAVE_OPENCC 1" >>confdefs.h
21280
21281
21282 fi
21283 fi
21284
21285 # define GETTEXT_* variables
21286 GETTEXT_PACKAGE=ibus-libzhuyin
21287
21288
21289 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
21290
21291
21292
21293
21294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21295 printf %s "checking whether NLS is requested... " >&6; }
21296 # Check whether --enable-nls was given.
21297 if test ${enable_nls+y}
21298 then :
21299 enableval=$enable_nls; USE_NLS=$enableval
21300 else case e in #(
21301 e) USE_NLS=yes ;;
21302 esac
21303 fi
21304
21305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21306 printf "%s\n" "$USE_NLS" >&6; }
21307
21308
21309
21310
21311 GETTEXT_MACRO_VERSION=0.20
21312
21313
21314
21315
21316 # Prepare PATH_SEPARATOR.
21317 # The user is always right.
21318 if test "${PATH_SEPARATOR+set}" != set; then
21319 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21320 # contains only /bin. Note that ksh looks also at the FPATH variable,
21321 # so we have to set that as well for the test.
21322 PATH_SEPARATOR=:
21323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21324 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21325 || PATH_SEPARATOR=';'
21326 }
21327 fi
21328
21329 # Find out how to test for executable files. Don't use a zero-byte file,
21330 # as systems may use methods other than mode bits to determine executability.
21331 cat >conf$$.file <<_ASEOF
21332 #! /bin/sh
21333 exit 0
21334 _ASEOF
21335 chmod +x conf$$.file
21336 if test -x conf$$.file >/dev/null 2>&1; then
21337 ac_executable_p="test -x"
21338 else
21339 ac_executable_p="test -f"
21340 fi
21341 rm -f conf$$.file
21342
21343 # Extract the first word of "msgfmt", so it can be a program name with args.
21344 set dummy msgfmt; ac_word=$2
21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21346 printf %s "checking for $ac_word... " >&6; }
21347 if test ${ac_cv_path_MSGFMT+y}
21348 then :
21349 printf %s "(cached) " >&6
21350 else case e in #(
21351 e) case "$MSGFMT" in
21352 [\\/]* | ?:[\\/]*)
21353 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21354 ;;
21355 *)
21356 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21357 for ac_dir in $PATH; do
21358 IFS="$ac_save_IFS"
21359 test -z "$ac_dir" && ac_dir=.
21360 for ac_exec_ext in '' $ac_executable_extensions; do
21361 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21362 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21363 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21364 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21365 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21366 break 2
21367 fi
21368 fi
21369 done
21370 done
21371 IFS="$ac_save_IFS"
21372 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21373 ;;
21374 esac ;;
21375 esac
21376 fi
21377 MSGFMT="$ac_cv_path_MSGFMT"
21378 if test "$MSGFMT" != ":"; then
21379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
21380 printf "%s\n" "$MSGFMT" >&6; }
21381 else
21382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21383 printf "%s\n" "no" >&6; }
21384 fi
21385
21386 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21387 set dummy gmsgfmt; ac_word=$2
21388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21389 printf %s "checking for $ac_word... " >&6; }
21390 if test ${ac_cv_path_GMSGFMT+y}
21391 then :
21392 printf %s "(cached) " >&6
21393 else case e in #(
21394 e) case $GMSGFMT in
21395 [\\/]* | ?:[\\/]*)
21396 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21397 ;;
21398 *)
21399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21400 for as_dir in $PATH
21401 do
21402 IFS=$as_save_IFS
21403 case $as_dir in #(((
21404 '') as_dir=./ ;;
21405 */) ;;
21406 *) as_dir=$as_dir/ ;;
21407 esac
21408 for ac_exec_ext in '' $ac_executable_extensions; do
21409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21410 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
21411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21412 break 2
21413 fi
21414 done
21415 done
21416 IFS=$as_save_IFS
21417
21418 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21419 ;;
21420 esac ;;
21421 esac
21422 fi
21423 GMSGFMT=$ac_cv_path_GMSGFMT
21424 if test -n "$GMSGFMT"; then
21425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
21426 printf "%s\n" "$GMSGFMT" >&6; }
21427 else
21428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21429 printf "%s\n" "no" >&6; }
21430 fi
21431
21432
21433
21434 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21435 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21436 *) GMSGFMT_015=$GMSGFMT ;;
21437 esac
21438
21439
21440
21441 # Prepare PATH_SEPARATOR.
21442 # The user is always right.
21443 if test "${PATH_SEPARATOR+set}" != set; then
21444 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21445 # contains only /bin. Note that ksh looks also at the FPATH variable,
21446 # so we have to set that as well for the test.
21447 PATH_SEPARATOR=:
21448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21449 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21450 || PATH_SEPARATOR=';'
21451 }
21452 fi
21453
21454 # Find out how to test for executable files. Don't use a zero-byte file,
21455 # as systems may use methods other than mode bits to determine executability.
21456 cat >conf$$.file <<_ASEOF
21457 #! /bin/sh
21458 exit 0
21459 _ASEOF
21460 chmod +x conf$$.file
21461 if test -x conf$$.file >/dev/null 2>&1; then
21462 ac_executable_p="test -x"
21463 else
21464 ac_executable_p="test -f"
21465 fi
21466 rm -f conf$$.file
21467
21468 # Extract the first word of "xgettext", so it can be a program name with args.
21469 set dummy xgettext; ac_word=$2
21470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21471 printf %s "checking for $ac_word... " >&6; }
21472 if test ${ac_cv_path_XGETTEXT+y}
21473 then :
21474 printf %s "(cached) " >&6
21475 else case e in #(
21476 e) case "$XGETTEXT" in
21477 [\\/]* | ?:[\\/]*)
21478 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21479 ;;
21480 *)
21481 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21482 for ac_dir in $PATH; do
21483 IFS="$ac_save_IFS"
21484 test -z "$ac_dir" && ac_dir=.
21485 for ac_exec_ext in '' $ac_executable_extensions; do
21486 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21487 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21488 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21489 (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
21490 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21491 break 2
21492 fi
21493 fi
21494 done
21495 done
21496 IFS="$ac_save_IFS"
21497 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21498 ;;
21499 esac ;;
21500 esac
21501 fi
21502 XGETTEXT="$ac_cv_path_XGETTEXT"
21503 if test "$XGETTEXT" != ":"; then
21504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
21505 printf "%s\n" "$XGETTEXT" >&6; }
21506 else
21507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508 printf "%s\n" "no" >&6; }
21509 fi
21510
21511 rm -f messages.po
21512
21513 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21514 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21515 *) XGETTEXT_015=$XGETTEXT ;;
21516 esac
21517
21518
21519
21520 # Prepare PATH_SEPARATOR.
21521 # The user is always right.
21522 if test "${PATH_SEPARATOR+set}" != set; then
21523 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21524 # contains only /bin. Note that ksh looks also at the FPATH variable,
21525 # so we have to set that as well for the test.
21526 PATH_SEPARATOR=:
21527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21528 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21529 || PATH_SEPARATOR=';'
21530 }
21531 fi
21532
21533 # Find out how to test for executable files. Don't use a zero-byte file,
21534 # as systems may use methods other than mode bits to determine executability.
21535 cat >conf$$.file <<_ASEOF
21536 #! /bin/sh
21537 exit 0
21538 _ASEOF
21539 chmod +x conf$$.file
21540 if test -x conf$$.file >/dev/null 2>&1; then
21541 ac_executable_p="test -x"
21542 else
21543 ac_executable_p="test -f"
21544 fi
21545 rm -f conf$$.file
21546
21547 # Extract the first word of "msgmerge", so it can be a program name with args.
21548 set dummy msgmerge; ac_word=$2
21549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21550 printf %s "checking for $ac_word... " >&6; }
21551 if test ${ac_cv_path_MSGMERGE+y}
21552 then :
21553 printf %s "(cached) " >&6
21554 else case e in #(
21555 e) case "$MSGMERGE" in
21556 [\\/]* | ?:[\\/]*)
21557 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21558 ;;
21559 *)
21560 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21561 for ac_dir in $PATH; do
21562 IFS="$ac_save_IFS"
21563 test -z "$ac_dir" && ac_dir=.
21564 for ac_exec_ext in '' $ac_executable_extensions; do
21565 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21566 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21567 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21568 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21569 break 2
21570 fi
21571 fi
21572 done
21573 done
21574 IFS="$ac_save_IFS"
21575 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21576 ;;
21577 esac ;;
21578 esac
21579 fi
21580 MSGMERGE="$ac_cv_path_MSGMERGE"
21581 if test "$MSGMERGE" != ":"; then
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
21583 printf "%s\n" "$MSGMERGE" >&6; }
21584 else
21585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21586 printf "%s\n" "no" >&6; }
21587 fi
21588
21589
21590 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
21591 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
21592 else
21593 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
21594 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
21595 else
21596 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
21597 fi
21598 fi
21599
21600
21601 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
21602
21603
21604 ac_config_commands="$ac_config_commands po-directories"
21605
21606
21607
21608 if test "X$prefix" = "XNONE"; then
21609 acl_final_prefix="$ac_default_prefix"
21610 else
21611 acl_final_prefix="$prefix"
21612 fi
21613 if test "X$exec_prefix" = "XNONE"; then
21614 acl_final_exec_prefix='${prefix}'
21615 else
21616 acl_final_exec_prefix="$exec_prefix"
21617 fi
21618 acl_save_prefix="$prefix"
21619 prefix="$acl_final_prefix"
21620 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21621 prefix="$acl_save_prefix"
21622
21623
21624
21625 # Check whether --with-gnu-ld was given.
21626 if test ${with_gnu_ld+y}
21627 then :
21628 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21629 else case e in #(
21630 e) with_gnu_ld=no ;;
21631 esac
21632 fi
21633
21634 # Prepare PATH_SEPARATOR.
21635 # The user is always right.
21636 if test "${PATH_SEPARATOR+set}" != set; then
21637 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21638 # contains only /bin. Note that ksh looks also at the FPATH variable,
21639 # so we have to set that as well for the test.
21640 PATH_SEPARATOR=:
21641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21642 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21643 || PATH_SEPARATOR=';'
21644 }
21645 fi
21646
21647 if test -n "$LD"; then
21648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
21649 printf %s "checking for ld... " >&6; }
21650 elif test "$GCC" = yes; then
21651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
21652 printf %s "checking for ld used by $CC... " >&6; }
21653 elif test "$with_gnu_ld" = yes; then
21654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21655 printf %s "checking for GNU ld... " >&6; }
21656 else
21657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21658 printf %s "checking for non-GNU ld... " >&6; }
21659 fi
21660 if test -n "$LD"; then
21661 # Let the user override the test with a path.
21662 :
21663 else
21664 if test ${acl_cv_path_LD+y}
21665 then :
21666 printf %s "(cached) " >&6
21667 else case e in #(
21668 e)
21669 acl_cv_path_LD= # Final result of this test
21670 ac_prog=ld # Program to search in $PATH
21671 if test "$GCC" = yes; then
21672 # Check if gcc -print-prog-name=ld gives a path.
21673 case $host in
21674 *-*-mingw*)
21675 # gcc leaves a trailing carriage return which upsets mingw
21676 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21677 *)
21678 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
21679 esac
21680 case $acl_output in
21681 # Accept absolute paths.
21682 [\\/]* | ?:[\\/]*)
21683 re_direlt='/[^/][^/]*/\.\./'
21684 # Canonicalize the pathname of ld
21685 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
21686 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
21687 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
21688 done
21689 # Got the pathname. No search in PATH is needed.
21690 acl_cv_path_LD="$acl_output"
21691 ac_prog=
21692 ;;
21693 "")
21694 # If it fails, then pretend we aren't using GCC.
21695 ;;
21696 *)
21697 # If it is relative, then search for the first ld in PATH.
21698 with_gnu_ld=unknown
21699 ;;
21700 esac
21701 fi
21702 if test -n "$ac_prog"; then
21703 # Search for $ac_prog in $PATH.
21704 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21705 for ac_dir in $PATH; do
21706 IFS="$acl_save_ifs"
21707 test -z "$ac_dir" && ac_dir=.
21708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21709 acl_cv_path_LD="$ac_dir/$ac_prog"
21710 # Check to see if the program is GNU ld. I'd rather use --version,
21711 # but apparently some variants of GNU ld only accept -v.
21712 # Break only if it was the GNU/non-GNU ld that we prefer.
21713 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
21714 *GNU* | *'with BFD'*)
21715 test "$with_gnu_ld" != no && break
21716 ;;
21717 *)
21718 test "$with_gnu_ld" != yes && break
21719 ;;
21720 esac
21721 fi
21722 done
21723 IFS="$acl_save_ifs"
21724 fi
21725 case $host in
21726 *-*-aix*)
21727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h. */
21729 #if defined __powerpc64__ || defined _ARCH_PPC64
21730 int ok;
21731 #else
21732 error fail
21733 #endif
21734
21735 _ACEOF
21736 if ac_fn_c_try_compile "$LINENO"
21737 then :
21738 # The compiler produces 64-bit code. Add option '-b64' so that the
21739 # linker groks 64-bit object files.
21740 case "$acl_cv_path_LD " in
21741 *" -b64 "*) ;;
21742 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
21743 esac
21744
21745 fi
21746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21747 ;;
21748 sparc64-*-netbsd*)
21749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h. */
21751 #if defined __sparcv9 || defined __arch64__
21752 int ok;
21753 #else
21754 error fail
21755 #endif
21756
21757 _ACEOF
21758 if ac_fn_c_try_compile "$LINENO"
21759 then :
21760
21761 else case e in #(
21762 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
21763 # so that the linker groks 32-bit object files.
21764 case "$acl_cv_path_LD " in
21765 *" -m elf32_sparc "*) ;;
21766 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
21767 esac
21768 ;;
21769 esac
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21772 ;;
21773 esac
21774 ;;
21775 esac
21776 fi
21777
21778 LD="$acl_cv_path_LD"
21779 fi
21780 if test -n "$LD"; then
21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21782 printf "%s\n" "$LD" >&6; }
21783 else
21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21785 printf "%s\n" "no" >&6; }
21786 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21787 fi
21788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21789 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
21790 if test ${acl_cv_prog_gnu_ld+y}
21791 then :
21792 printf %s "(cached) " >&6
21793 else case e in #(
21794 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
21795 case `$LD -v 2>&1 </dev/null` in
21796 *GNU* | *'with BFD'*)
21797 acl_cv_prog_gnu_ld=yes
21798 ;;
21799 *)
21800 acl_cv_prog_gnu_ld=no
21801 ;;
21802 esac ;;
21803 esac
21804 fi
21805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21806 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
21807 with_gnu_ld=$acl_cv_prog_gnu_ld
21808
21809
21810
21811
21812
21813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21814 printf %s "checking for shared library run path origin... " >&6; }
21815 if test ${acl_cv_rpath+y}
21816 then :
21817 printf %s "(cached) " >&6
21818 else case e in #(
21819 e)
21820 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21821 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21822 . ./conftest.sh
21823 rm -f ./conftest.sh
21824 acl_cv_rpath=done
21825 ;;
21826 esac
21827 fi
21828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21829 printf "%s\n" "$acl_cv_rpath" >&6; }
21830 wl="$acl_cv_wl"
21831 acl_libext="$acl_cv_libext"
21832 acl_shlibext="$acl_cv_shlibext"
21833 acl_libname_spec="$acl_cv_libname_spec"
21834 acl_library_names_spec="$acl_cv_library_names_spec"
21835 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21836 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21837 acl_hardcode_direct="$acl_cv_hardcode_direct"
21838 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
21839 # Check whether --enable-rpath was given.
21840 if test ${enable_rpath+y}
21841 then :
21842 enableval=$enable_rpath; :
21843 else case e in #(
21844 e) enable_rpath=yes ;;
21845 esac
21846 fi
21847
21848
21849
21850
21851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
21852 printf %s "checking 32-bit host C ABI... " >&6; }
21853 if test ${gl_cv_host_cpu_c_abi_32bit+y}
21854 then :
21855 printf %s "(cached) " >&6
21856 else case e in #(
21857 e) if test -n "$gl_cv_host_cpu_c_abi"; then
21858 case "$gl_cv_host_cpu_c_abi" in
21859 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
21860 gl_cv_host_cpu_c_abi_32bit=yes ;;
21861 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
21862 gl_cv_host_cpu_c_abi_32bit=no ;;
21863 *)
21864 gl_cv_host_cpu_c_abi_32bit=unknown ;;
21865 esac
21866 else
21867 case "$host_cpu" in
21868
21869 # CPUs that only support a 32-bit ABI.
21870 arc \
21871 | bfin \
21872 | cris* \
21873 | csky \
21874 | epiphany \
21875 | ft32 \
21876 | h8300 \
21877 | m68k \
21878 | microblaze | microblazeel \
21879 | nds32 | nds32le | nds32be \
21880 | nios2 | nios2eb | nios2el \
21881 | or1k* \
21882 | or32 \
21883 | sh | sh1234 | sh1234elb \
21884 | tic6x \
21885 | xtensa* )
21886 gl_cv_host_cpu_c_abi_32bit=yes
21887 ;;
21888
21889 # CPUs that only support a 64-bit ABI.
21890 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
21891 | mmix )
21892 gl_cv_host_cpu_c_abi_32bit=no
21893 ;;
21894
21895 i[34567]86 )
21896 gl_cv_host_cpu_c_abi_32bit=yes
21897 ;;
21898
21899 x86_64 )
21900 # On x86_64 systems, the C compiler may be generating code in one of
21901 # these ABIs:
21902 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
21903 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
21904 # with native Windows (mingw, MSVC).
21905 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
21906 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #if (defined __x86_64__ || defined __amd64__ \
21910 || defined _M_X64 || defined _M_AMD64) \
21911 && !(defined __ILP32__ || defined _ILP32)
21912 int ok;
21913 #else
21914 error fail
21915 #endif
21916
21917 _ACEOF
21918 if ac_fn_c_try_compile "$LINENO"
21919 then :
21920 gl_cv_host_cpu_c_abi_32bit=no
21921 else case e in #(
21922 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
21923 esac
21924 fi
21925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21926 ;;
21927
21928 arm* | aarch64 )
21929 # Assume arm with EABI.
21930 # On arm64 systems, the C compiler may be generating code in one of
21931 # these ABIs:
21932 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
21933 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
21934 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21937 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
21938 int ok;
21939 #else
21940 error fail
21941 #endif
21942
21943 _ACEOF
21944 if ac_fn_c_try_compile "$LINENO"
21945 then :
21946 gl_cv_host_cpu_c_abi_32bit=no
21947 else case e in #(
21948 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
21949 esac
21950 fi
21951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21952 ;;
21953
21954 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
21955 # On hppa, the C compiler may be generating 32-bit code or 64-bit
21956 # code. In the latter case, it defines _LP64 and __LP64__.
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #ifdef __LP64__
21960 int ok;
21961 #else
21962 error fail
21963 #endif
21964
21965 _ACEOF
21966 if ac_fn_c_try_compile "$LINENO"
21967 then :
21968 gl_cv_host_cpu_c_abi_32bit=no
21969 else case e in #(
21970 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
21971 esac
21972 fi
21973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21974 ;;
21975
21976 ia64* )
21977 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
21978 # 32-bit code. In the latter case, it defines _ILP32.
21979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21980 /* end confdefs.h. */
21981 #ifdef _ILP32
21982 int ok;
21983 #else
21984 error fail
21985 #endif
21986
21987 _ACEOF
21988 if ac_fn_c_try_compile "$LINENO"
21989 then :
21990 gl_cv_host_cpu_c_abi_32bit=yes
21991 else case e in #(
21992 e) gl_cv_host_cpu_c_abi_32bit=no ;;
21993 esac
21994 fi
21995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21996 ;;
21997
21998 mips* )
21999 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
22000 # at 32.
22001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22002 /* end confdefs.h. */
22003 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
22004 int ok;
22005 #else
22006 error fail
22007 #endif
22008
22009 _ACEOF
22010 if ac_fn_c_try_compile "$LINENO"
22011 then :
22012 gl_cv_host_cpu_c_abi_32bit=no
22013 else case e in #(
22014 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
22015 esac
22016 fi
22017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22018 ;;
22019
22020 powerpc* )
22021 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
22022 # No need to distinguish them here; the caller may distinguish
22023 # them based on the OS.
22024 # On powerpc64 systems, the C compiler may still be generating
22025 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
22026 # be generating 64-bit code.
22027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22028 /* end confdefs.h. */
22029 #if defined __powerpc64__ || defined _ARCH_PPC64
22030 int ok;
22031 #else
22032 error fail
22033 #endif
22034
22035 _ACEOF
22036 if ac_fn_c_try_compile "$LINENO"
22037 then :
22038 gl_cv_host_cpu_c_abi_32bit=no
22039 else case e in #(
22040 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
22041 esac
22042 fi
22043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22044 ;;
22045
22046 rs6000 )
22047 gl_cv_host_cpu_c_abi_32bit=yes
22048 ;;
22049
22050 riscv32 | riscv64 )
22051 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
22052 # Size of 'long' and 'void *':
22053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22054 /* end confdefs.h. */
22055 #if defined __LP64__
22056 int ok;
22057 #else
22058 error fail
22059 #endif
22060
22061 _ACEOF
22062 if ac_fn_c_try_compile "$LINENO"
22063 then :
22064 gl_cv_host_cpu_c_abi_32bit=no
22065 else case e in #(
22066 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
22067 esac
22068 fi
22069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22070 ;;
22071
22072 s390* )
22073 # On s390x, the C compiler may be generating 64-bit (= s390x) code
22074 # or 31-bit (= s390) code.
22075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22077 #if defined __LP64__ || defined __s390x__
22078 int ok;
22079 #else
22080 error fail
22081 #endif
22082
22083 _ACEOF
22084 if ac_fn_c_try_compile "$LINENO"
22085 then :
22086 gl_cv_host_cpu_c_abi_32bit=no
22087 else case e in #(
22088 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
22089 esac
22090 fi
22091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22092 ;;
22093
22094 sparc | sparc64 )
22095 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
22096 # C compiler still generates 32-bit code.
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099 #if defined __sparcv9 || defined __arch64__
22100 int ok;
22101 #else
22102 error fail
22103 #endif
22104
22105 _ACEOF
22106 if ac_fn_c_try_compile "$LINENO"
22107 then :
22108 gl_cv_host_cpu_c_abi_32bit=no
22109 else case e in #(
22110 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
22111 esac
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22114 ;;
22115
22116 *)
22117 gl_cv_host_cpu_c_abi_32bit=unknown
22118 ;;
22119 esac
22120 fi
22121 ;;
22122 esac
22123 fi
22124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
22125 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
22126
22127 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
22128
22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
22130 printf %s "checking for egrep -e... " >&6; }
22131 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
22132 then :
22133 printf %s "(cached) " >&6
22134 else case e in #(
22135 e) if test -z "$EGREP_TRADITIONAL"; then
22136 ac_path_EGREP_TRADITIONAL_found=false
22137 # Loop through the user's path and test for each of PROGNAME-LIST
22138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22140 do
22141 IFS=$as_save_IFS
22142 case $as_dir in #(((
22143 '') as_dir=./ ;;
22144 */) ;;
22145 *) as_dir=$as_dir/ ;;
22146 esac
22147 for ac_prog in grep ggrep
22148 do
22149 for ac_exec_ext in '' $ac_executable_extensions; do
22150 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
22151 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
22152 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
22153 # Check for GNU $ac_path_EGREP_TRADITIONAL
22154 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
22155 *GNU*)
22156 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
22157 #(
22158 *)
22159 ac_count=0
22160 printf %s 0123456789 >"conftest.in"
22161 while :
22162 do
22163 cat "conftest.in" "conftest.in" >"conftest.tmp"
22164 mv "conftest.tmp" "conftest.in"
22165 cp "conftest.in" "conftest.nl"
22166 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
22167 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
22168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22169 as_fn_arith $ac_count + 1 && ac_count=$as_val
22170 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
22171 # Best one so far, save it but keep looking for a better one
22172 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
22173 ac_path_EGREP_TRADITIONAL_max=$ac_count
22174 fi
22175 # 10*(2^10) chars as input seems more than enough
22176 test $ac_count -gt 10 && break
22177 done
22178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22179 esac
22180
22181 $ac_path_EGREP_TRADITIONAL_found && break 3
22182 done
22183 done
22184 done
22185 IFS=$as_save_IFS
22186 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
22187 :
22188 fi
22189 else
22190 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
22191 fi
22192
22193 if test "$ac_cv_path_EGREP_TRADITIONAL"
22194 then :
22195 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
22196 else case e in #(
22197 e) if test -z "$EGREP_TRADITIONAL"; then
22198 ac_path_EGREP_TRADITIONAL_found=false
22199 # Loop through the user's path and test for each of PROGNAME-LIST
22200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22202 do
22203 IFS=$as_save_IFS
22204 case $as_dir in #(((
22205 '') as_dir=./ ;;
22206 */) ;;
22207 *) as_dir=$as_dir/ ;;
22208 esac
22209 for ac_prog in egrep
22210 do
22211 for ac_exec_ext in '' $ac_executable_extensions; do
22212 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
22213 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
22214 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
22215 # Check for GNU $ac_path_EGREP_TRADITIONAL
22216 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
22217 *GNU*)
22218 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
22219 #(
22220 *)
22221 ac_count=0
22222 printf %s 0123456789 >"conftest.in"
22223 while :
22224 do
22225 cat "conftest.in" "conftest.in" >"conftest.tmp"
22226 mv "conftest.tmp" "conftest.in"
22227 cp "conftest.in" "conftest.nl"
22228 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
22229 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
22230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22231 as_fn_arith $ac_count + 1 && ac_count=$as_val
22232 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
22233 # Best one so far, save it but keep looking for a better one
22234 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
22235 ac_path_EGREP_TRADITIONAL_max=$ac_count
22236 fi
22237 # 10*(2^10) chars as input seems more than enough
22238 test $ac_count -gt 10 && break
22239 done
22240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22241 esac
22242
22243 $ac_path_EGREP_TRADITIONAL_found && break 3
22244 done
22245 done
22246 done
22247 IFS=$as_save_IFS
22248 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
22249 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
22250 fi
22251 else
22252 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
22253 fi
22254 ;;
22255 esac
22256 fi ;;
22257 esac
22258 fi
22259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
22260 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
22261 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
22262
22263
22264
22265
22266
22267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
22268 printf %s "checking for ELF binary format... " >&6; }
22269 if test ${gl_cv_elf+y}
22270 then :
22271 printf %s "(cached) " >&6
22272 else case e in #(
22273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22275 #ifdef __ELF__
22276 Extensible Linking Format
22277 #endif
22278
22279 _ACEOF
22280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22281 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
22282 then :
22283 gl_cv_elf=yes
22284 else case e in #(
22285 e) gl_cv_elf=no ;;
22286 esac
22287 fi
22288 rm -rf conftest*
22289
22290 ;;
22291 esac
22292 fi
22293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
22294 printf "%s\n" "$gl_cv_elf" >&6; }
22295 if test $gl_cv_elf; then
22296 # Extract the ELF class of a file (5th byte) in decimal.
22297 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
22298 if od -A x < /dev/null >/dev/null 2>/dev/null; then
22299 # Use POSIX od.
22300 func_elfclass ()
22301 {
22302 od -A n -t d1 -j 4 -N 1
22303 }
22304 else
22305 # Use BSD hexdump.
22306 func_elfclass ()
22307 {
22308 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
22309 echo
22310 }
22311 fi
22312 case $HOST_CPU_C_ABI_32BIT in
22313 yes)
22314 # 32-bit ABI.
22315 acl_is_expected_elfclass ()
22316 {
22317 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
22318 }
22319 ;;
22320 no)
22321 # 64-bit ABI.
22322 acl_is_expected_elfclass ()
22323 {
22324 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
22325 }
22326 ;;
22327 *)
22328 # Unknown.
22329 acl_is_expected_elfclass ()
22330 {
22331 :
22332 }
22333 ;;
22334 esac
22335 else
22336 acl_is_expected_elfclass ()
22337 {
22338 :
22339 }
22340 fi
22341
22342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
22343 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
22344 if test ${acl_cv_libdirstems+y}
22345 then :
22346 printf %s "(cached) " >&6
22347 else case e in #(
22348 e) acl_libdirstem=lib
22349 acl_libdirstem2=
22350 acl_libdirstem3=
22351 case "$host_os" in
22352 solaris*)
22353 if test $HOST_CPU_C_ABI_32BIT = no; then
22354 acl_libdirstem2=lib/64
22355 case "$host_cpu" in
22356 sparc*) acl_libdirstem3=lib/sparcv9 ;;
22357 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
22358 esac
22359 fi
22360 ;;
22361 *)
22362 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
22363 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22364 if test $HOST_CPU_C_ABI_32BIT != no; then
22365 # 32-bit or unknown ABI.
22366 if test -d /usr/lib32; then
22367 acl_libdirstem2=lib32
22368 fi
22369 fi
22370 if test $HOST_CPU_C_ABI_32BIT != yes; then
22371 # 64-bit or unknown ABI.
22372 if test -d /usr/lib64; then
22373 acl_libdirstem3=lib64
22374 fi
22375 fi
22376 if test -n "$searchpath"; then
22377 acl_save_IFS="${IFS= }"; IFS=":"
22378 for searchdir in $searchpath; do
22379 if test -d "$searchdir"; then
22380 case "$searchdir" in
22381 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
22382 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
22383 */../ | */.. )
22384 # Better ignore directories of this form. They are misleading.
22385 ;;
22386 *) searchdir=`cd "$searchdir" && pwd`
22387 case "$searchdir" in
22388 */lib32 ) acl_libdirstem2=lib32 ;;
22389 */lib64 ) acl_libdirstem3=lib64 ;;
22390 esac ;;
22391 esac
22392 fi
22393 done
22394 IFS="$acl_save_IFS"
22395 if test $HOST_CPU_C_ABI_32BIT = yes; then
22396 # 32-bit ABI.
22397 acl_libdirstem3=
22398 fi
22399 if test $HOST_CPU_C_ABI_32BIT = no; then
22400 # 64-bit ABI.
22401 acl_libdirstem2=
22402 fi
22403 fi
22404 ;;
22405 esac
22406 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
22407 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
22408 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
22409 ;;
22410 esac
22411 fi
22412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
22413 printf "%s\n" "$acl_cv_libdirstems" >&6; }
22414 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
22415 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
22416 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428 use_additional=yes
22429
22430 acl_save_prefix="$prefix"
22431 prefix="$acl_final_prefix"
22432 acl_save_exec_prefix="$exec_prefix"
22433 exec_prefix="$acl_final_exec_prefix"
22434
22435 eval additional_includedir=\"$includedir\"
22436 eval additional_libdir=\"$libdir\"
22437 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
22438 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
22439
22440 exec_prefix="$acl_save_exec_prefix"
22441 prefix="$acl_save_prefix"
22442
22443
22444 # Check whether --with-libiconv-prefix was given.
22445 if test ${with_libiconv_prefix+y}
22446 then :
22447 withval=$with_libiconv_prefix;
22448 if test "X$withval" = "Xno"; then
22449 use_additional=no
22450 else
22451 if test "X$withval" = "X"; then
22452
22453 acl_save_prefix="$prefix"
22454 prefix="$acl_final_prefix"
22455 acl_save_exec_prefix="$exec_prefix"
22456 exec_prefix="$acl_final_exec_prefix"
22457
22458 eval additional_includedir=\"$includedir\"
22459 eval additional_libdir=\"$libdir\"
22460 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
22461 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
22462
22463 exec_prefix="$acl_save_exec_prefix"
22464 prefix="$acl_save_prefix"
22465
22466 else
22467 additional_includedir="$withval/include"
22468 additional_libdir="$withval/$acl_libdirstem"
22469 additional_libdir2="$withval/$acl_libdirstem2"
22470 additional_libdir3="$withval/$acl_libdirstem3"
22471 fi
22472 fi
22473
22474 fi
22475
22476 if test "X$additional_libdir2" = "X$additional_libdir"; then
22477 additional_libdir2=
22478 fi
22479 if test "X$additional_libdir3" = "X$additional_libdir"; then
22480 additional_libdir3=
22481 fi
22482 LIBICONV=
22483 LTLIBICONV=
22484 INCICONV=
22485 LIBICONV_PREFIX=
22486 HAVE_LIBICONV=
22487 rpathdirs=
22488 ltrpathdirs=
22489 names_already_handled=
22490 names_next_round='iconv '
22491 while test -n "$names_next_round"; do
22492 names_this_round="$names_next_round"
22493 names_next_round=
22494 for name in $names_this_round; do
22495 already_handled=
22496 for n in $names_already_handled; do
22497 if test "$n" = "$name"; then
22498 already_handled=yes
22499 break
22500 fi
22501 done
22502 if test -z "$already_handled"; then
22503 names_already_handled="$names_already_handled $name"
22504 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
22505 eval value=\"\$HAVE_LIB$uppername\"
22506 if test -n "$value"; then
22507 if test "$value" = yes; then
22508 eval value=\"\$LIB$uppername\"
22509 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22510 eval value=\"\$LTLIB$uppername\"
22511 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22512 else
22513 :
22514 fi
22515 else
22516 found_dir=
22517 found_la=
22518 found_so=
22519 found_a=
22520 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22521 if test -n "$acl_shlibext"; then
22522 shrext=".$acl_shlibext" # typically: shrext=.so
22523 else
22524 shrext=
22525 fi
22526 if test $use_additional = yes; then
22527 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
22528 if test "X$found_dir" = "X"; then
22529 eval dir=\$$additional_libdir_variable
22530 if test -n "$dir"; then
22531 if test -n "$acl_shlibext"; then
22532 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
22533 found_dir="$dir"
22534 found_so="$dir/$libname$shrext"
22535 else
22536 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22537 ver=`(cd "$dir" && \
22538 for f in "$libname$shrext".*; do echo "$f"; done \
22539 | sed -e "s,^$libname$shrext\\\\.,," \
22540 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22541 | sed 1q ) 2>/dev/null`
22542 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
22543 found_dir="$dir"
22544 found_so="$dir/$libname$shrext.$ver"
22545 fi
22546 else
22547 eval library_names=\"$acl_library_names_spec\"
22548 for f in $library_names; do
22549 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
22550 found_dir="$dir"
22551 found_so="$dir/$f"
22552 break
22553 fi
22554 done
22555 fi
22556 fi
22557 fi
22558 if test "X$found_dir" = "X"; then
22559 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
22560 found_dir="$dir"
22561 found_a="$dir/$libname.$acl_libext"
22562 fi
22563 fi
22564 if test "X$found_dir" != "X"; then
22565 if test -f "$dir/$libname.la"; then
22566 found_la="$dir/$libname.la"
22567 fi
22568 fi
22569 fi
22570 fi
22571 done
22572 fi
22573 if test "X$found_dir" = "X"; then
22574 for x in $LDFLAGS $LTLIBICONV; do
22575
22576 acl_save_prefix="$prefix"
22577 prefix="$acl_final_prefix"
22578 acl_save_exec_prefix="$exec_prefix"
22579 exec_prefix="$acl_final_exec_prefix"
22580 eval x=\"$x\"
22581 exec_prefix="$acl_save_exec_prefix"
22582 prefix="$acl_save_prefix"
22583
22584 case "$x" in
22585 -L*)
22586 dir=`echo "X$x" | sed -e 's/^X-L//'`
22587 if test -n "$acl_shlibext"; then
22588 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
22589 found_dir="$dir"
22590 found_so="$dir/$libname$shrext"
22591 else
22592 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22593 ver=`(cd "$dir" && \
22594 for f in "$libname$shrext".*; do echo "$f"; done \
22595 | sed -e "s,^$libname$shrext\\\\.,," \
22596 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22597 | sed 1q ) 2>/dev/null`
22598 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
22599 found_dir="$dir"
22600 found_so="$dir/$libname$shrext.$ver"
22601 fi
22602 else
22603 eval library_names=\"$acl_library_names_spec\"
22604 for f in $library_names; do
22605 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
22606 found_dir="$dir"
22607 found_so="$dir/$f"
22608 break
22609 fi
22610 done
22611 fi
22612 fi
22613 fi
22614 if test "X$found_dir" = "X"; then
22615 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
22616 found_dir="$dir"
22617 found_a="$dir/$libname.$acl_libext"
22618 fi
22619 fi
22620 if test "X$found_dir" != "X"; then
22621 if test -f "$dir/$libname.la"; then
22622 found_la="$dir/$libname.la"
22623 fi
22624 fi
22625 ;;
22626 esac
22627 if test "X$found_dir" != "X"; then
22628 break
22629 fi
22630 done
22631 fi
22632 if test "X$found_dir" != "X"; then
22633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22634 if test "X$found_so" != "X"; then
22635 if test "$enable_rpath" = no \
22636 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22637 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
22638 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
22639 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22640 else
22641 haveit=
22642 for x in $ltrpathdirs; do
22643 if test "X$x" = "X$found_dir"; then
22644 haveit=yes
22645 break
22646 fi
22647 done
22648 if test -z "$haveit"; then
22649 ltrpathdirs="$ltrpathdirs $found_dir"
22650 fi
22651 if test "$acl_hardcode_direct" = yes; then
22652 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22653 else
22654 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22655 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22656 haveit=
22657 for x in $rpathdirs; do
22658 if test "X$x" = "X$found_dir"; then
22659 haveit=yes
22660 break
22661 fi
22662 done
22663 if test -z "$haveit"; then
22664 rpathdirs="$rpathdirs $found_dir"
22665 fi
22666 else
22667 haveit=
22668 for x in $LDFLAGS $LIBICONV; do
22669
22670 acl_save_prefix="$prefix"
22671 prefix="$acl_final_prefix"
22672 acl_save_exec_prefix="$exec_prefix"
22673 exec_prefix="$acl_final_exec_prefix"
22674 eval x=\"$x\"
22675 exec_prefix="$acl_save_exec_prefix"
22676 prefix="$acl_save_prefix"
22677
22678 if test "X$x" = "X-L$found_dir"; then
22679 haveit=yes
22680 break
22681 fi
22682 done
22683 if test -z "$haveit"; then
22684 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22685 fi
22686 if test "$acl_hardcode_minus_L" != no; then
22687 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22688 else
22689 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22690 fi
22691 fi
22692 fi
22693 fi
22694 else
22695 if test "X$found_a" != "X"; then
22696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22697 else
22698 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22699 fi
22700 fi
22701 additional_includedir=
22702 case "$found_dir" in
22703 */$acl_libdirstem | */$acl_libdirstem/)
22704 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22705 if test "$name" = 'iconv'; then
22706 LIBICONV_PREFIX="$basedir"
22707 fi
22708 additional_includedir="$basedir/include"
22709 ;;
22710 */$acl_libdirstem2 | */$acl_libdirstem2/)
22711 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22712 if test "$name" = 'iconv'; then
22713 LIBICONV_PREFIX="$basedir"
22714 fi
22715 additional_includedir="$basedir/include"
22716 ;;
22717 */$acl_libdirstem3 | */$acl_libdirstem3/)
22718 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
22719 if test "$name" = 'iconv'; then
22720 LIBICONV_PREFIX="$basedir"
22721 fi
22722 additional_includedir="$basedir/include"
22723 ;;
22724 esac
22725 if test "X$additional_includedir" != "X"; then
22726 if test "X$additional_includedir" != "X/usr/include"; then
22727 haveit=
22728 if test "X$additional_includedir" = "X/usr/local/include"; then
22729 if test -n "$GCC"; then
22730 case $host_os in
22731 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22732 esac
22733 fi
22734 fi
22735 if test -z "$haveit"; then
22736 for x in $CPPFLAGS $INCICONV; do
22737
22738 acl_save_prefix="$prefix"
22739 prefix="$acl_final_prefix"
22740 acl_save_exec_prefix="$exec_prefix"
22741 exec_prefix="$acl_final_exec_prefix"
22742 eval x=\"$x\"
22743 exec_prefix="$acl_save_exec_prefix"
22744 prefix="$acl_save_prefix"
22745
22746 if test "X$x" = "X-I$additional_includedir"; then
22747 haveit=yes
22748 break
22749 fi
22750 done
22751 if test -z "$haveit"; then
22752 if test -d "$additional_includedir"; then
22753 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22754 fi
22755 fi
22756 fi
22757 fi
22758 fi
22759 if test -n "$found_la"; then
22760 save_libdir="$libdir"
22761 case "$found_la" in
22762 */* | *\\*) . "$found_la" ;;
22763 *) . "./$found_la" ;;
22764 esac
22765 libdir="$save_libdir"
22766 for dep in $dependency_libs; do
22767 case "$dep" in
22768 -L*)
22769 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22770 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
22771 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
22772 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
22773 haveit=
22774 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
22775 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
22776 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
22777 if test -n "$GCC"; then
22778 case $host_os in
22779 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22780 esac
22781 fi
22782 fi
22783 if test -z "$haveit"; then
22784 haveit=
22785 for x in $LDFLAGS $LIBICONV; do
22786
22787 acl_save_prefix="$prefix"
22788 prefix="$acl_final_prefix"
22789 acl_save_exec_prefix="$exec_prefix"
22790 exec_prefix="$acl_final_exec_prefix"
22791 eval x=\"$x\"
22792 exec_prefix="$acl_save_exec_prefix"
22793 prefix="$acl_save_prefix"
22794
22795 if test "X$x" = "X-L$dependency_libdir"; then
22796 haveit=yes
22797 break
22798 fi
22799 done
22800 if test -z "$haveit"; then
22801 if test -d "$dependency_libdir"; then
22802 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
22803 fi
22804 fi
22805 haveit=
22806 for x in $LDFLAGS $LTLIBICONV; do
22807
22808 acl_save_prefix="$prefix"
22809 prefix="$acl_final_prefix"
22810 acl_save_exec_prefix="$exec_prefix"
22811 exec_prefix="$acl_final_exec_prefix"
22812 eval x=\"$x\"
22813 exec_prefix="$acl_save_exec_prefix"
22814 prefix="$acl_save_prefix"
22815
22816 if test "X$x" = "X-L$dependency_libdir"; then
22817 haveit=yes
22818 break
22819 fi
22820 done
22821 if test -z "$haveit"; then
22822 if test -d "$dependency_libdir"; then
22823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
22824 fi
22825 fi
22826 fi
22827 fi
22828 ;;
22829 -R*)
22830 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22831 if test "$enable_rpath" != no; then
22832 haveit=
22833 for x in $rpathdirs; do
22834 if test "X$x" = "X$dir"; then
22835 haveit=yes
22836 break
22837 fi
22838 done
22839 if test -z "$haveit"; then
22840 rpathdirs="$rpathdirs $dir"
22841 fi
22842 haveit=
22843 for x in $ltrpathdirs; do
22844 if test "X$x" = "X$dir"; then
22845 haveit=yes
22846 break
22847 fi
22848 done
22849 if test -z "$haveit"; then
22850 ltrpathdirs="$ltrpathdirs $dir"
22851 fi
22852 fi
22853 ;;
22854 -l*)
22855 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22856 ;;
22857 *.la)
22858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22859 ;;
22860 *)
22861 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22863 ;;
22864 esac
22865 done
22866 fi
22867 else
22868 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22869 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22870 fi
22871 fi
22872 fi
22873 done
22874 done
22875 if test "X$rpathdirs" != "X"; then
22876 if test -n "$acl_hardcode_libdir_separator"; then
22877 alldirs=
22878 for found_dir in $rpathdirs; do
22879 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22880 done
22881 acl_save_libdir="$libdir"
22882 libdir="$alldirs"
22883 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22884 libdir="$acl_save_libdir"
22885 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22886 else
22887 for found_dir in $rpathdirs; do
22888 acl_save_libdir="$libdir"
22889 libdir="$found_dir"
22890 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22891 libdir="$acl_save_libdir"
22892 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22893 done
22894 fi
22895 fi
22896 if test "X$ltrpathdirs" != "X"; then
22897 for found_dir in $ltrpathdirs; do
22898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22899 done
22900 fi
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
22931 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
22932 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
22933 then :
22934 printf %s "(cached) " >&6
22935 else case e in #(
22936 e) gt_save_LIBS="$LIBS"
22937 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h. */
22940 #include <CoreFoundation/CFPreferences.h>
22941 int
22942 main (void)
22943 {
22944 CFPreferencesCopyAppValue(NULL, NULL)
22945 ;
22946 return 0;
22947 }
22948 _ACEOF
22949 if ac_fn_c_try_link "$LINENO"
22950 then :
22951 gt_cv_func_CFPreferencesCopyAppValue=yes
22952 else case e in #(
22953 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
22954 esac
22955 fi
22956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22957 conftest$ac_exeext conftest.$ac_ext
22958 LIBS="$gt_save_LIBS" ;;
22959 esac
22960 fi
22961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22962 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22963 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22964
22965 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
22966
22967 fi
22968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
22969 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
22970 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
22971 then :
22972 printf %s "(cached) " >&6
22973 else case e in #(
22974 e) gt_save_LIBS="$LIBS"
22975 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977 /* end confdefs.h. */
22978 #include <CoreFoundation/CFLocale.h>
22979 int
22980 main (void)
22981 {
22982 CFLocaleCopyPreferredLanguages();
22983 ;
22984 return 0;
22985 }
22986 _ACEOF
22987 if ac_fn_c_try_link "$LINENO"
22988 then :
22989 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
22990 else case e in #(
22991 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
22992 esac
22993 fi
22994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22995 conftest$ac_exeext conftest.$ac_ext
22996 LIBS="$gt_save_LIBS" ;;
22997 esac
22998 fi
22999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
23000 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
23001 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23002
23003 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
23004
23005 fi
23006 INTL_MACOSX_LIBS=
23007 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
23008 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23009 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23010 fi
23011
23012
23013
23014
23015
23016
23017 LIBINTL=
23018 LTLIBINTL=
23019 POSUB=
23020
23021 case " $gt_needs " in
23022 *" need-formatstring-macros "*) gt_api_version=3 ;;
23023 *" need-ngettext "*) gt_api_version=2 ;;
23024 *) gt_api_version=1 ;;
23025 esac
23026 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
23027 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
23028
23029 if test "$USE_NLS" = "yes"; then
23030 gt_use_preinstalled_gnugettext=no
23031
23032
23033 if test $gt_api_version -ge 3; then
23034 gt_revision_test_code='
23035 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23036 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
23037 #endif
23038 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
23039 '
23040 else
23041 gt_revision_test_code=
23042 fi
23043 if test $gt_api_version -ge 2; then
23044 gt_expression_test_code=' + * ngettext ("", "", 0)'
23045 else
23046 gt_expression_test_code=
23047 fi
23048
23049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
23050 printf %s "checking for GNU gettext in libc... " >&6; }
23051 if eval test \${$gt_func_gnugettext_libc+y}
23052 then :
23053 printf %s "(cached) " >&6
23054 else case e in #(
23055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23057
23058 #include <libintl.h>
23059 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23060 extern int _nl_msg_cat_cntr;
23061 extern int *_nl_domain_bindings;
23062 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
23063 #else
23064 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23065 #endif
23066 $gt_revision_test_code
23067
23068 int
23069 main (void)
23070 {
23071
23072 bindtextdomain ("", "");
23073 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23074
23075 ;
23076 return 0;
23077 }
23078 _ACEOF
23079 if ac_fn_c_try_link "$LINENO"
23080 then :
23081 eval "$gt_func_gnugettext_libc=yes"
23082 else case e in #(
23083 e) eval "$gt_func_gnugettext_libc=no" ;;
23084 esac
23085 fi
23086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23087 conftest$ac_exeext conftest.$ac_ext ;;
23088 esac
23089 fi
23090 eval ac_res=\$$gt_func_gnugettext_libc
23091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23092 printf "%s\n" "$ac_res" >&6; }
23093
23094 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
23095
23096
23097
23098
23099
23100 am_save_CPPFLAGS="$CPPFLAGS"
23101
23102 for element in $INCICONV; do
23103 haveit=
23104 for x in $CPPFLAGS; do
23105
23106 acl_save_prefix="$prefix"
23107 prefix="$acl_final_prefix"
23108 acl_save_exec_prefix="$exec_prefix"
23109 exec_prefix="$acl_final_exec_prefix"
23110 eval x=\"$x\"
23111 exec_prefix="$acl_save_exec_prefix"
23112 prefix="$acl_save_prefix"
23113
23114 if test "X$x" = "X$element"; then
23115 haveit=yes
23116 break
23117 fi
23118 done
23119 if test -z "$haveit"; then
23120 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23121 fi
23122 done
23123
23124
23125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
23126 printf %s "checking for iconv... " >&6; }
23127 if test ${am_cv_func_iconv+y}
23128 then :
23129 printf %s "(cached) " >&6
23130 else case e in #(
23131 e)
23132 am_cv_func_iconv="no, consider installing GNU libiconv"
23133 am_cv_lib_iconv=no
23134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23135 /* end confdefs.h. */
23136
23137 #include <stdlib.h>
23138 #include <iconv.h>
23139
23140 int
23141 main (void)
23142 {
23143 iconv_t cd = iconv_open("","");
23144 iconv(cd,NULL,NULL,NULL,NULL);
23145 iconv_close(cd);
23146 ;
23147 return 0;
23148 }
23149 _ACEOF
23150 if ac_fn_c_try_link "$LINENO"
23151 then :
23152 am_cv_func_iconv=yes
23153 fi
23154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23155 conftest$ac_exeext conftest.$ac_ext
23156 if test "$am_cv_func_iconv" != yes; then
23157 am_save_LIBS="$LIBS"
23158 LIBS="$LIBS $LIBICONV"
23159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23160 /* end confdefs.h. */
23161
23162 #include <stdlib.h>
23163 #include <iconv.h>
23164
23165 int
23166 main (void)
23167 {
23168 iconv_t cd = iconv_open("","");
23169 iconv(cd,NULL,NULL,NULL,NULL);
23170 iconv_close(cd);
23171 ;
23172 return 0;
23173 }
23174 _ACEOF
23175 if ac_fn_c_try_link "$LINENO"
23176 then :
23177 am_cv_lib_iconv=yes
23178 am_cv_func_iconv=yes
23179 fi
23180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23181 conftest$ac_exeext conftest.$ac_ext
23182 LIBS="$am_save_LIBS"
23183 fi
23184 ;;
23185 esac
23186 fi
23187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
23188 printf "%s\n" "$am_cv_func_iconv" >&6; }
23189 if test "$am_cv_func_iconv" = yes; then
23190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
23191 printf %s "checking for working iconv... " >&6; }
23192 if test ${am_cv_func_iconv_works+y}
23193 then :
23194 printf %s "(cached) " >&6
23195 else case e in #(
23196 e)
23197 am_save_LIBS="$LIBS"
23198 if test $am_cv_lib_iconv = yes; then
23199 LIBS="$LIBS $LIBICONV"
23200 fi
23201 am_cv_func_iconv_works=no
23202 for ac_iconv_const in '' 'const'; do
23203 if test "$cross_compiling" = yes
23204 then :
23205 case "$host_os" in
23206 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
23207 *) am_cv_func_iconv_works="guessing yes" ;;
23208 esac
23209 else case e in #(
23210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211 /* end confdefs.h. */
23212
23213 #include <iconv.h>
23214 #include <string.h>
23215
23216 #ifndef ICONV_CONST
23217 # define ICONV_CONST $ac_iconv_const
23218 #endif
23219
23220 int
23221 main (void)
23222 {
23223 int result = 0;
23224 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
23225 returns. */
23226 {
23227 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23228 if (cd_utf8_to_88591 != (iconv_t)(-1))
23229 {
23230 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23231 char buf[10];
23232 ICONV_CONST char *inptr = input;
23233 size_t inbytesleft = strlen (input);
23234 char *outptr = buf;
23235 size_t outbytesleft = sizeof (buf);
23236 size_t res = iconv (cd_utf8_to_88591,
23237 &inptr, &inbytesleft,
23238 &outptr, &outbytesleft);
23239 if (res == 0)
23240 result |= 1;
23241 iconv_close (cd_utf8_to_88591);
23242 }
23243 }
23244 /* Test against Solaris 10 bug: Failures are not distinguishable from
23245 successful returns. */
23246 {
23247 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23248 if (cd_ascii_to_88591 != (iconv_t)(-1))
23249 {
23250 static ICONV_CONST char input[] = "\263";
23251 char buf[10];
23252 ICONV_CONST char *inptr = input;
23253 size_t inbytesleft = strlen (input);
23254 char *outptr = buf;
23255 size_t outbytesleft = sizeof (buf);
23256 size_t res = iconv (cd_ascii_to_88591,
23257 &inptr, &inbytesleft,
23258 &outptr, &outbytesleft);
23259 if (res == 0)
23260 result |= 2;
23261 iconv_close (cd_ascii_to_88591);
23262 }
23263 }
23264 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
23265 {
23266 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23267 if (cd_88591_to_utf8 != (iconv_t)(-1))
23268 {
23269 static ICONV_CONST char input[] = "\304";
23270 static char buf[2] = { (char)0xDE, (char)0xAD };
23271 ICONV_CONST char *inptr = input;
23272 size_t inbytesleft = 1;
23273 char *outptr = buf;
23274 size_t outbytesleft = 1;
23275 size_t res = iconv (cd_88591_to_utf8,
23276 &inptr, &inbytesleft,
23277 &outptr, &outbytesleft);
23278 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23279 result |= 4;
23280 iconv_close (cd_88591_to_utf8);
23281 }
23282 }
23283 #if 0 /* This bug could be worked around by the caller. */
23284 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
23285 {
23286 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23287 if (cd_88591_to_utf8 != (iconv_t)(-1))
23288 {
23289 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23290 char buf[50];
23291 ICONV_CONST char *inptr = input;
23292 size_t inbytesleft = strlen (input);
23293 char *outptr = buf;
23294 size_t outbytesleft = sizeof (buf);
23295 size_t res = iconv (cd_88591_to_utf8,
23296 &inptr, &inbytesleft,
23297 &outptr, &outbytesleft);
23298 if ((int)res > 0)
23299 result |= 8;
23300 iconv_close (cd_88591_to_utf8);
23301 }
23302 }
23303 #endif
23304 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23305 provided. */
23306 {
23307 /* Try standardized names. */
23308 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
23309 /* Try IRIX, OSF/1 names. */
23310 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
23311 /* Try AIX names. */
23312 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
23313 /* Try HP-UX names. */
23314 iconv_t cd4 = iconv_open ("utf8", "eucJP");
23315 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
23316 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
23317 result |= 16;
23318 if (cd1 != (iconv_t)(-1))
23319 iconv_close (cd1);
23320 if (cd2 != (iconv_t)(-1))
23321 iconv_close (cd2);
23322 if (cd3 != (iconv_t)(-1))
23323 iconv_close (cd3);
23324 if (cd4 != (iconv_t)(-1))
23325 iconv_close (cd4);
23326 }
23327 return result;
23328
23329 ;
23330 return 0;
23331 }
23332 _ACEOF
23333 if ac_fn_c_try_run "$LINENO"
23334 then :
23335 am_cv_func_iconv_works=yes
23336 fi
23337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23338 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23339 esac
23340 fi
23341
23342 test "$am_cv_func_iconv_works" = no || break
23343 done
23344 LIBS="$am_save_LIBS"
23345 ;;
23346 esac
23347 fi
23348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23349 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
23350 case "$am_cv_func_iconv_works" in
23351 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
23352 *) am_func_iconv=yes ;;
23353 esac
23354 else
23355 am_func_iconv=no am_cv_lib_iconv=no
23356 fi
23357 if test "$am_func_iconv" = yes; then
23358
23359 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
23360
23361 fi
23362 if test "$am_cv_lib_iconv" = yes; then
23363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23364 printf %s "checking how to link with libiconv... " >&6; }
23365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23366 printf "%s\n" "$LIBICONV" >&6; }
23367 else
23368 CPPFLAGS="$am_save_CPPFLAGS"
23369 LIBICONV=
23370 LTLIBICONV=
23371 fi
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382 use_additional=yes
23383
23384 acl_save_prefix="$prefix"
23385 prefix="$acl_final_prefix"
23386 acl_save_exec_prefix="$exec_prefix"
23387 exec_prefix="$acl_final_exec_prefix"
23388
23389 eval additional_includedir=\"$includedir\"
23390 eval additional_libdir=\"$libdir\"
23391 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
23392 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
23393
23394 exec_prefix="$acl_save_exec_prefix"
23395 prefix="$acl_save_prefix"
23396
23397
23398 # Check whether --with-libintl-prefix was given.
23399 if test ${with_libintl_prefix+y}
23400 then :
23401 withval=$with_libintl_prefix;
23402 if test "X$withval" = "Xno"; then
23403 use_additional=no
23404 else
23405 if test "X$withval" = "X"; then
23406
23407 acl_save_prefix="$prefix"
23408 prefix="$acl_final_prefix"
23409 acl_save_exec_prefix="$exec_prefix"
23410 exec_prefix="$acl_final_exec_prefix"
23411
23412 eval additional_includedir=\"$includedir\"
23413 eval additional_libdir=\"$libdir\"
23414 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
23415 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
23416
23417 exec_prefix="$acl_save_exec_prefix"
23418 prefix="$acl_save_prefix"
23419
23420 else
23421 additional_includedir="$withval/include"
23422 additional_libdir="$withval/$acl_libdirstem"
23423 additional_libdir2="$withval/$acl_libdirstem2"
23424 additional_libdir3="$withval/$acl_libdirstem3"
23425 fi
23426 fi
23427
23428 fi
23429
23430 if test "X$additional_libdir2" = "X$additional_libdir"; then
23431 additional_libdir2=
23432 fi
23433 if test "X$additional_libdir3" = "X$additional_libdir"; then
23434 additional_libdir3=
23435 fi
23436 LIBINTL=
23437 LTLIBINTL=
23438 INCINTL=
23439 LIBINTL_PREFIX=
23440 HAVE_LIBINTL=
23441 rpathdirs=
23442 ltrpathdirs=
23443 names_already_handled=
23444 names_next_round='intl '
23445 while test -n "$names_next_round"; do
23446 names_this_round="$names_next_round"
23447 names_next_round=
23448 for name in $names_this_round; do
23449 already_handled=
23450 for n in $names_already_handled; do
23451 if test "$n" = "$name"; then
23452 already_handled=yes
23453 break
23454 fi
23455 done
23456 if test -z "$already_handled"; then
23457 names_already_handled="$names_already_handled $name"
23458 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
23459 eval value=\"\$HAVE_LIB$uppername\"
23460 if test -n "$value"; then
23461 if test "$value" = yes; then
23462 eval value=\"\$LIB$uppername\"
23463 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23464 eval value=\"\$LTLIB$uppername\"
23465 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23466 else
23467 :
23468 fi
23469 else
23470 found_dir=
23471 found_la=
23472 found_so=
23473 found_a=
23474 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23475 if test -n "$acl_shlibext"; then
23476 shrext=".$acl_shlibext" # typically: shrext=.so
23477 else
23478 shrext=
23479 fi
23480 if test $use_additional = yes; then
23481 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
23482 if test "X$found_dir" = "X"; then
23483 eval dir=\$$additional_libdir_variable
23484 if test -n "$dir"; then
23485 if test -n "$acl_shlibext"; then
23486 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
23487 found_dir="$dir"
23488 found_so="$dir/$libname$shrext"
23489 else
23490 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23491 ver=`(cd "$dir" && \
23492 for f in "$libname$shrext".*; do echo "$f"; done \
23493 | sed -e "s,^$libname$shrext\\\\.,," \
23494 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23495 | sed 1q ) 2>/dev/null`
23496 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
23497 found_dir="$dir"
23498 found_so="$dir/$libname$shrext.$ver"
23499 fi
23500 else
23501 eval library_names=\"$acl_library_names_spec\"
23502 for f in $library_names; do
23503 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
23504 found_dir="$dir"
23505 found_so="$dir/$f"
23506 break
23507 fi
23508 done
23509 fi
23510 fi
23511 fi
23512 if test "X$found_dir" = "X"; then
23513 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
23514 found_dir="$dir"
23515 found_a="$dir/$libname.$acl_libext"
23516 fi
23517 fi
23518 if test "X$found_dir" != "X"; then
23519 if test -f "$dir/$libname.la"; then
23520 found_la="$dir/$libname.la"
23521 fi
23522 fi
23523 fi
23524 fi
23525 done
23526 fi
23527 if test "X$found_dir" = "X"; then
23528 for x in $LDFLAGS $LTLIBINTL; do
23529
23530 acl_save_prefix="$prefix"
23531 prefix="$acl_final_prefix"
23532 acl_save_exec_prefix="$exec_prefix"
23533 exec_prefix="$acl_final_exec_prefix"
23534 eval x=\"$x\"
23535 exec_prefix="$acl_save_exec_prefix"
23536 prefix="$acl_save_prefix"
23537
23538 case "$x" in
23539 -L*)
23540 dir=`echo "X$x" | sed -e 's/^X-L//'`
23541 if test -n "$acl_shlibext"; then
23542 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
23543 found_dir="$dir"
23544 found_so="$dir/$libname$shrext"
23545 else
23546 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23547 ver=`(cd "$dir" && \
23548 for f in "$libname$shrext".*; do echo "$f"; done \
23549 | sed -e "s,^$libname$shrext\\\\.,," \
23550 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23551 | sed 1q ) 2>/dev/null`
23552 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
23553 found_dir="$dir"
23554 found_so="$dir/$libname$shrext.$ver"
23555 fi
23556 else
23557 eval library_names=\"$acl_library_names_spec\"
23558 for f in $library_names; do
23559 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
23560 found_dir="$dir"
23561 found_so="$dir/$f"
23562 break
23563 fi
23564 done
23565 fi
23566 fi
23567 fi
23568 if test "X$found_dir" = "X"; then
23569 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
23570 found_dir="$dir"
23571 found_a="$dir/$libname.$acl_libext"
23572 fi
23573 fi
23574 if test "X$found_dir" != "X"; then
23575 if test -f "$dir/$libname.la"; then
23576 found_la="$dir/$libname.la"
23577 fi
23578 fi
23579 ;;
23580 esac
23581 if test "X$found_dir" != "X"; then
23582 break
23583 fi
23584 done
23585 fi
23586 if test "X$found_dir" != "X"; then
23587 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23588 if test "X$found_so" != "X"; then
23589 if test "$enable_rpath" = no \
23590 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23591 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
23592 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
23593 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23594 else
23595 haveit=
23596 for x in $ltrpathdirs; do
23597 if test "X$x" = "X$found_dir"; then
23598 haveit=yes
23599 break
23600 fi
23601 done
23602 if test -z "$haveit"; then
23603 ltrpathdirs="$ltrpathdirs $found_dir"
23604 fi
23605 if test "$acl_hardcode_direct" = yes; then
23606 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23607 else
23608 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23609 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23610 haveit=
23611 for x in $rpathdirs; do
23612 if test "X$x" = "X$found_dir"; then
23613 haveit=yes
23614 break
23615 fi
23616 done
23617 if test -z "$haveit"; then
23618 rpathdirs="$rpathdirs $found_dir"
23619 fi
23620 else
23621 haveit=
23622 for x in $LDFLAGS $LIBINTL; do
23623
23624 acl_save_prefix="$prefix"
23625 prefix="$acl_final_prefix"
23626 acl_save_exec_prefix="$exec_prefix"
23627 exec_prefix="$acl_final_exec_prefix"
23628 eval x=\"$x\"
23629 exec_prefix="$acl_save_exec_prefix"
23630 prefix="$acl_save_prefix"
23631
23632 if test "X$x" = "X-L$found_dir"; then
23633 haveit=yes
23634 break
23635 fi
23636 done
23637 if test -z "$haveit"; then
23638 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23639 fi
23640 if test "$acl_hardcode_minus_L" != no; then
23641 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23642 else
23643 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23644 fi
23645 fi
23646 fi
23647 fi
23648 else
23649 if test "X$found_a" != "X"; then
23650 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23651 else
23652 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23653 fi
23654 fi
23655 additional_includedir=
23656 case "$found_dir" in
23657 */$acl_libdirstem | */$acl_libdirstem/)
23658 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23659 if test "$name" = 'intl'; then
23660 LIBINTL_PREFIX="$basedir"
23661 fi
23662 additional_includedir="$basedir/include"
23663 ;;
23664 */$acl_libdirstem2 | */$acl_libdirstem2/)
23665 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23666 if test "$name" = 'intl'; then
23667 LIBINTL_PREFIX="$basedir"
23668 fi
23669 additional_includedir="$basedir/include"
23670 ;;
23671 */$acl_libdirstem3 | */$acl_libdirstem3/)
23672 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
23673 if test "$name" = 'intl'; then
23674 LIBINTL_PREFIX="$basedir"
23675 fi
23676 additional_includedir="$basedir/include"
23677 ;;
23678 esac
23679 if test "X$additional_includedir" != "X"; then
23680 if test "X$additional_includedir" != "X/usr/include"; then
23681 haveit=
23682 if test "X$additional_includedir" = "X/usr/local/include"; then
23683 if test -n "$GCC"; then
23684 case $host_os in
23685 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23686 esac
23687 fi
23688 fi
23689 if test -z "$haveit"; then
23690 for x in $CPPFLAGS $INCINTL; do
23691
23692 acl_save_prefix="$prefix"
23693 prefix="$acl_final_prefix"
23694 acl_save_exec_prefix="$exec_prefix"
23695 exec_prefix="$acl_final_exec_prefix"
23696 eval x=\"$x\"
23697 exec_prefix="$acl_save_exec_prefix"
23698 prefix="$acl_save_prefix"
23699
23700 if test "X$x" = "X-I$additional_includedir"; then
23701 haveit=yes
23702 break
23703 fi
23704 done
23705 if test -z "$haveit"; then
23706 if test -d "$additional_includedir"; then
23707 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23708 fi
23709 fi
23710 fi
23711 fi
23712 fi
23713 if test -n "$found_la"; then
23714 save_libdir="$libdir"
23715 case "$found_la" in
23716 */* | *\\*) . "$found_la" ;;
23717 *) . "./$found_la" ;;
23718 esac
23719 libdir="$save_libdir"
23720 for dep in $dependency_libs; do
23721 case "$dep" in
23722 -L*)
23723 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23724 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
23725 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
23726 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
23727 haveit=
23728 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
23729 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
23730 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
23731 if test -n "$GCC"; then
23732 case $host_os in
23733 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23734 esac
23735 fi
23736 fi
23737 if test -z "$haveit"; then
23738 haveit=
23739 for x in $LDFLAGS $LIBINTL; do
23740
23741 acl_save_prefix="$prefix"
23742 prefix="$acl_final_prefix"
23743 acl_save_exec_prefix="$exec_prefix"
23744 exec_prefix="$acl_final_exec_prefix"
23745 eval x=\"$x\"
23746 exec_prefix="$acl_save_exec_prefix"
23747 prefix="$acl_save_prefix"
23748
23749 if test "X$x" = "X-L$dependency_libdir"; then
23750 haveit=yes
23751 break
23752 fi
23753 done
23754 if test -z "$haveit"; then
23755 if test -d "$dependency_libdir"; then
23756 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
23757 fi
23758 fi
23759 haveit=
23760 for x in $LDFLAGS $LTLIBINTL; do
23761
23762 acl_save_prefix="$prefix"
23763 prefix="$acl_final_prefix"
23764 acl_save_exec_prefix="$exec_prefix"
23765 exec_prefix="$acl_final_exec_prefix"
23766 eval x=\"$x\"
23767 exec_prefix="$acl_save_exec_prefix"
23768 prefix="$acl_save_prefix"
23769
23770 if test "X$x" = "X-L$dependency_libdir"; then
23771 haveit=yes
23772 break
23773 fi
23774 done
23775 if test -z "$haveit"; then
23776 if test -d "$dependency_libdir"; then
23777 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
23778 fi
23779 fi
23780 fi
23781 fi
23782 ;;
23783 -R*)
23784 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23785 if test "$enable_rpath" != no; then
23786 haveit=
23787 for x in $rpathdirs; do
23788 if test "X$x" = "X$dir"; then
23789 haveit=yes
23790 break
23791 fi
23792 done
23793 if test -z "$haveit"; then
23794 rpathdirs="$rpathdirs $dir"
23795 fi
23796 haveit=
23797 for x in $ltrpathdirs; do
23798 if test "X$x" = "X$dir"; then
23799 haveit=yes
23800 break
23801 fi
23802 done
23803 if test -z "$haveit"; then
23804 ltrpathdirs="$ltrpathdirs $dir"
23805 fi
23806 fi
23807 ;;
23808 -l*)
23809 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23810 ;;
23811 *.la)
23812 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23813 ;;
23814 *)
23815 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23816 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23817 ;;
23818 esac
23819 done
23820 fi
23821 else
23822 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23823 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23824 fi
23825 fi
23826 fi
23827 done
23828 done
23829 if test "X$rpathdirs" != "X"; then
23830 if test -n "$acl_hardcode_libdir_separator"; then
23831 alldirs=
23832 for found_dir in $rpathdirs; do
23833 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23834 done
23835 acl_save_libdir="$libdir"
23836 libdir="$alldirs"
23837 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23838 libdir="$acl_save_libdir"
23839 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23840 else
23841 for found_dir in $rpathdirs; do
23842 acl_save_libdir="$libdir"
23843 libdir="$found_dir"
23844 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23845 libdir="$acl_save_libdir"
23846 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23847 done
23848 fi
23849 fi
23850 if test "X$ltrpathdirs" != "X"; then
23851 for found_dir in $ltrpathdirs; do
23852 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23853 done
23854 fi
23855
23856
23857
23858
23859
23860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
23861 printf %s "checking for GNU gettext in libintl... " >&6; }
23862 if eval test \${$gt_func_gnugettext_libintl+y}
23863 then :
23864 printf %s "(cached) " >&6
23865 else case e in #(
23866 e) gt_save_CPPFLAGS="$CPPFLAGS"
23867 CPPFLAGS="$CPPFLAGS $INCINTL"
23868 gt_save_LIBS="$LIBS"
23869 LIBS="$LIBS $LIBINTL"
23870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23871 /* end confdefs.h. */
23872
23873 #include <libintl.h>
23874 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23875 extern int _nl_msg_cat_cntr;
23876 extern
23877 #ifdef __cplusplus
23878 "C"
23879 #endif
23880 const char *_nl_expand_alias (const char *);
23881 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
23882 #else
23883 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23884 #endif
23885 $gt_revision_test_code
23886
23887 int
23888 main (void)
23889 {
23890
23891 bindtextdomain ("", "");
23892 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23893
23894 ;
23895 return 0;
23896 }
23897 _ACEOF
23898 if ac_fn_c_try_link "$LINENO"
23899 then :
23900 eval "$gt_func_gnugettext_libintl=yes"
23901 else case e in #(
23902 e) eval "$gt_func_gnugettext_libintl=no" ;;
23903 esac
23904 fi
23905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23906 conftest$ac_exeext conftest.$ac_ext
23907 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
23908 LIBS="$LIBS $LIBICONV"
23909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23910 /* end confdefs.h. */
23911
23912 #include <libintl.h>
23913 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23914 extern int _nl_msg_cat_cntr;
23915 extern
23916 #ifdef __cplusplus
23917 "C"
23918 #endif
23919 const char *_nl_expand_alias (const char *);
23920 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
23921 #else
23922 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23923 #endif
23924 $gt_revision_test_code
23925
23926 int
23927 main (void)
23928 {
23929
23930 bindtextdomain ("", "");
23931 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23932
23933 ;
23934 return 0;
23935 }
23936 _ACEOF
23937 if ac_fn_c_try_link "$LINENO"
23938 then :
23939 LIBINTL="$LIBINTL $LIBICONV"
23940 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23941 eval "$gt_func_gnugettext_libintl=yes"
23942
23943 fi
23944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23945 conftest$ac_exeext conftest.$ac_ext
23946 fi
23947 CPPFLAGS="$gt_save_CPPFLAGS"
23948 LIBS="$gt_save_LIBS" ;;
23949 esac
23950 fi
23951 eval ac_res=\$$gt_func_gnugettext_libintl
23952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23953 printf "%s\n" "$ac_res" >&6; }
23954 fi
23955
23956 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
23957 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
23958 && test "$PACKAGE" != gettext-runtime \
23959 && test "$PACKAGE" != gettext-tools; }; then
23960 gt_use_preinstalled_gnugettext=yes
23961 else
23962 LIBINTL=
23963 LTLIBINTL=
23964 INCINTL=
23965 fi
23966
23967
23968
23969 if test -n "$INTL_MACOSX_LIBS"; then
23970 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23971 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23972 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23973 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23974 fi
23975 fi
23976
23977 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23978 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23979
23980 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
23981
23982 else
23983 USE_NLS=no
23984 fi
23985 fi
23986
23987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
23988 printf %s "checking whether to use NLS... " >&6; }
23989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23990 printf "%s\n" "$USE_NLS" >&6; }
23991 if test "$USE_NLS" = "yes"; then
23992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
23993 printf %s "checking where the gettext function comes from... " >&6; }
23994 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23995 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
23996 gt_source="external libintl"
23997 else
23998 gt_source="libc"
23999 fi
24000 else
24001 gt_source="included intl directory"
24002 fi
24003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
24004 printf "%s\n" "$gt_source" >&6; }
24005 fi
24006
24007 if test "$USE_NLS" = "yes"; then
24008
24009 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24010 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
24012 printf %s "checking how to link with libintl... " >&6; }
24013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
24014 printf "%s\n" "$LIBINTL" >&6; }
24015
24016 for element in $INCINTL; do
24017 haveit=
24018 for x in $CPPFLAGS; do
24019
24020 acl_save_prefix="$prefix"
24021 prefix="$acl_final_prefix"
24022 acl_save_exec_prefix="$exec_prefix"
24023 exec_prefix="$acl_final_exec_prefix"
24024 eval x=\"$x\"
24025 exec_prefix="$acl_save_exec_prefix"
24026 prefix="$acl_save_prefix"
24027
24028 if test "X$x" = "X$element"; then
24029 haveit=yes
24030 break
24031 fi
24032 done
24033 if test -z "$haveit"; then
24034 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24035 fi
24036 done
24037
24038 fi
24039
24040
24041 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
24042
24043
24044 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
24045
24046 fi
24047
24048 POSUB=po
24049 fi
24050
24051
24052
24053 INTLLIBS="$LIBINTL"
24054
24055
24056
24057
24058
24059
24060
24061 # Checks for GSettings.
24062
24063 pkg_failed=no
24064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26.0" >&5
24065 printf %s "checking for gio-2.0 >= 2.26.0... " >&6; }
24066
24067 if test -n "$GIO2_CFLAGS"; then
24068 pkg_cv_GIO2_CFLAGS="$GIO2_CFLAGS"
24069 elif test -n "$PKG_CONFIG"; then
24070 if test -n "$PKG_CONFIG" && \
24071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26.0\""; } >&5
24072 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26.0") 2>&5
24073 ac_status=$?
24074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24075 test $ac_status = 0; }; then
24076 pkg_cv_GIO2_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26.0" 2>/dev/null`
24077 test "x$?" != "x0" && pkg_failed=yes
24078 else
24079 pkg_failed=yes
24080 fi
24081 else
24082 pkg_failed=untried
24083 fi
24084 if test -n "$GIO2_LIBS"; then
24085 pkg_cv_GIO2_LIBS="$GIO2_LIBS"
24086 elif test -n "$PKG_CONFIG"; then
24087 if test -n "$PKG_CONFIG" && \
24088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26.0\""; } >&5
24089 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26.0") 2>&5
24090 ac_status=$?
24091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; then
24093 pkg_cv_GIO2_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26.0" 2>/dev/null`
24094 test "x$?" != "x0" && pkg_failed=yes
24095 else
24096 pkg_failed=yes
24097 fi
24098 else
24099 pkg_failed=untried
24100 fi
24101
24102
24103
24104 if test $pkg_failed = yes; then
24105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24106 printf "%s\n" "no" >&6; }
24107
24108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24109 _pkg_short_errors_supported=yes
24110 else
24111 _pkg_short_errors_supported=no
24112 fi
24113 if test $_pkg_short_errors_supported = yes; then
24114 GIO2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26.0" 2>&1`
24115 else
24116 GIO2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26.0" 2>&1`
24117 fi
24118 # Put the nasty error message in config.log where it belongs
24119 echo "$GIO2_PKG_ERRORS" >&5
24120
24121 as_fn_error $? "Package requirements (gio-2.0 >= 2.26.0) were not met:
24122
24123 $GIO2_PKG_ERRORS
24124
24125 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24126 installed software in a non-standard prefix.
24127
24128 Alternatively, you may set the environment variables GIO2_CFLAGS
24129 and GIO2_LIBS to avoid the need to call pkg-config.
24130 See the pkg-config man page for more details." "$LINENO" 5
24131 elif test $pkg_failed = untried; then
24132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24133 printf "%s\n" "no" >&6; }
24134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24135 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24136 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
24137 is in your PATH or set the PKG_CONFIG environment variable to the full
24138 path to pkg-config.
24139
24140 Alternatively, you may set the environment variables GIO2_CFLAGS
24141 and GIO2_LIBS to avoid the need to call pkg-config.
24142 See the pkg-config man page for more details.
24143
24144 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24145 See 'config.log' for more details" "$LINENO" 5; }
24146 else
24147 GIO2_CFLAGS=$pkg_cv_GIO2_CFLAGS
24148 GIO2_LIBS=$pkg_cv_GIO2_LIBS
24149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24150 printf "%s\n" "yes" >&6; }
24151
24152 fi
24153
24154
24155
24156
24157
24158 # Check whether --enable-schemas-compile was given.
24159 if test ${enable_schemas_compile+y}
24160 then :
24161 enableval=$enable_schemas_compile; case ${enableval} in
24162 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
24163 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
24164 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
24165 esac
24166 fi
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24177 if test -n "$ac_tool_prefix"; then
24178 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24179 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24181 printf %s "checking for $ac_word... " >&6; }
24182 if test ${ac_cv_path_PKG_CONFIG+y}
24183 then :
24184 printf %s "(cached) " >&6
24185 else case e in #(
24186 e) case $PKG_CONFIG in
24187 [\\/]* | ?:[\\/]*)
24188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24189 ;;
24190 *)
24191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24192 for as_dir in $PATH
24193 do
24194 IFS=$as_save_IFS
24195 case $as_dir in #(((
24196 '') as_dir=./ ;;
24197 */) ;;
24198 *) as_dir=$as_dir/ ;;
24199 esac
24200 for ac_exec_ext in '' $ac_executable_extensions; do
24201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24202 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
24203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24204 break 2
24205 fi
24206 done
24207 done
24208 IFS=$as_save_IFS
24209
24210 ;;
24211 esac ;;
24212 esac
24213 fi
24214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24215 if test -n "$PKG_CONFIG"; then
24216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24217 printf "%s\n" "$PKG_CONFIG" >&6; }
24218 else
24219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24220 printf "%s\n" "no" >&6; }
24221 fi
24222
24223
24224 fi
24225 if test -z "$ac_cv_path_PKG_CONFIG"; then
24226 ac_pt_PKG_CONFIG=$PKG_CONFIG
24227 # Extract the first word of "pkg-config", so it can be a program name with args.
24228 set dummy pkg-config; ac_word=$2
24229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24230 printf %s "checking for $ac_word... " >&6; }
24231 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
24232 then :
24233 printf %s "(cached) " >&6
24234 else case e in #(
24235 e) case $ac_pt_PKG_CONFIG in
24236 [\\/]* | ?:[\\/]*)
24237 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24238 ;;
24239 *)
24240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24241 for as_dir in $PATH
24242 do
24243 IFS=$as_save_IFS
24244 case $as_dir in #(((
24245 '') as_dir=./ ;;
24246 */) ;;
24247 *) as_dir=$as_dir/ ;;
24248 esac
24249 for ac_exec_ext in '' $ac_executable_extensions; do
24250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24251 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
24252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24253 break 2
24254 fi
24255 done
24256 done
24257 IFS=$as_save_IFS
24258
24259 ;;
24260 esac ;;
24261 esac
24262 fi
24263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24264 if test -n "$ac_pt_PKG_CONFIG"; then
24265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24266 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
24267 else
24268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24269 printf "%s\n" "no" >&6; }
24270 fi
24271
24272 if test "x$ac_pt_PKG_CONFIG" = x; then
24273 PKG_CONFIG=""
24274 else
24275 case $cross_compiling:$ac_tool_warned in
24276 yes:)
24277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24279 ac_tool_warned=yes ;;
24280 esac
24281 PKG_CONFIG=$ac_pt_PKG_CONFIG
24282 fi
24283 else
24284 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24285 fi
24286
24287 fi
24288 if test -n "$PKG_CONFIG"; then
24289 _pkg_min_version=0.16
24290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24291 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24292 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24294 printf "%s\n" "yes" >&6; }
24295 else
24296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24297 printf "%s\n" "no" >&6; }
24298 PKG_CONFIG=""
24299 fi
24300 fi
24301 if test -z "$PKG_CONFIG"; then
24302 as_fn_error $? "pkg-config not found" "$LINENO" 5
24303 fi
24304 gsettingsschemadir=${datadir}/glib-2.0/schemas
24305
24306 if test x$cross_compiling != xyes
24307 then :
24308
24309 if test -n "$GLIB_COMPILE_SCHEMAS"; then
24310 pkg_cv_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS"
24311 elif test -n "$PKG_CONFIG"; then
24312 if test -n "$PKG_CONFIG" && \
24313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
24314 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
24315 ac_status=$?
24316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24317 test $ac_status = 0; }; then
24318 pkg_cv_GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable="glib_compile_schemas" "gio-2.0" 2>/dev/null`
24319 test "x$?" != "x0" && pkg_failed=yes
24320 else
24321 pkg_failed=yes
24322 fi
24323 else
24324 pkg_failed=untried
24325 fi
24326 GLIB_COMPILE_SCHEMAS=$pkg_cv_GLIB_COMPILE_SCHEMAS
24327
24328 if test "x$GLIB_COMPILE_SCHEMAS" = x""
24329 then :
24330
24331 fi
24332 else case e in #(
24333 e) # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
24334 set dummy glib-compile-schemas; ac_word=$2
24335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24336 printf %s "checking for $ac_word... " >&6; }
24337 if test ${ac_cv_path_GLIB_COMPILE_SCHEMAS+y}
24338 then :
24339 printf %s "(cached) " >&6
24340 else case e in #(
24341 e) case $GLIB_COMPILE_SCHEMAS in
24342 [\\/]* | ?:[\\/]*)
24343 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
24344 ;;
24345 *)
24346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24347 for as_dir in $PATH
24348 do
24349 IFS=$as_save_IFS
24350 case $as_dir in #(((
24351 '') as_dir=./ ;;
24352 */) ;;
24353 *) as_dir=$as_dir/ ;;
24354 esac
24355 for ac_exec_ext in '' $ac_executable_extensions; do
24356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24357 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir$ac_word$ac_exec_ext"
24358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24359 break 2
24360 fi
24361 done
24362 done
24363 IFS=$as_save_IFS
24364
24365 ;;
24366 esac ;;
24367 esac
24368 fi
24369 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
24370 if test -n "$GLIB_COMPILE_SCHEMAS"; then
24371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
24372 printf "%s\n" "$GLIB_COMPILE_SCHEMAS" >&6; }
24373 else
24374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 printf "%s\n" "no" >&6; }
24376 fi
24377
24378 ;;
24379 esac
24380 fi
24381
24382 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
24383 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
24384 else
24385 :
24386 fi
24387
24388 GSETTINGS_RULES='
24389 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
24390
24391 mostlyclean-am: clean-gsettings-schemas
24392
24393 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
24394
24395 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
24396 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
24397
24398 all-am: $(gsettings_SCHEMAS:.xml=.valid)
24399 uninstall-am: uninstall-gsettings-schemas
24400 install-data-am: install-gsettings-schemas
24401
24402 .SECONDARY: $(gsettings_SCHEMAS)
24403
24404 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
24405 @$(NORMAL_INSTALL)
24406 if test -n "$^"; then \
24407 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
24408 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
24409 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
24410 fi
24411
24412 uninstall-gsettings-schemas:
24413 @$(NORMAL_UNINSTALL)
24414 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
24415 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
24416 test -n "$$files" || exit 0; \
24417 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
24418 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
24419 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
24420
24421 clean-gsettings-schemas:
24422 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
24423
24424 ifdef gsettings_ENUM_NAMESPACE
24425 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
24426 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > [email protected] && mv [email protected] $@
24427 endif
24428 '
24429
24430
24431
24432
24433
24434
24435
24436 # OUTPUT files
24437 ac_config_files="$ac_config_files po/Makefile.in Makefile src/Makefile src/libzhuyin.xml.in setup/Makefile setup/config.py setup/ibus-setup-libzhuyin ibus-libzhuyin.spec data/Makefile data/icons/Makefile data/model/Makefile data/model/table.conf"
24438
24439
24440 cat >confcache <<\_ACEOF
24441 # This file is a shell script that caches the results of configure
24442 # tests run on this system so they can be shared between configure
24443 # scripts and configure runs, see configure's option --config-cache.
24444 # It is not useful on other systems. If it contains results you don't
24445 # want to keep, you may remove or edit it.
24446 #
24447 # config.status only pays attention to the cache file if you give it
24448 # the --recheck option to rerun configure.
24449 #
24450 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
24451 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
24452 # following values.
24453
24454 _ACEOF
24455
24456 # The following way of writing the cache mishandles newlines in values,
24457 # but we know of no workaround that is simple, portable, and efficient.
24458 # So, we kill variables containing newlines.
24459 # Ultrix sh set writes to stderr and can't be redirected directly,
24460 # and sets the high bit in the cache file unless we assign to the vars.
24461 (
24462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24463 eval ac_val=\$$ac_var
24464 case $ac_val in #(
24465 *${as_nl}*)
24466 case $ac_var in #(
24467 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24468 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24469 esac
24470 case $ac_var in #(
24471 _ | IFS | as_nl) ;; #(
24472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24473 *) { eval $ac_var=; unset $ac_var;} ;;
24474 esac ;;
24475 esac
24476 done
24477
24478 (set) 2>&1 |
24479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24480 *${as_nl}ac_space=\ *)
24481 # 'set' does not quote correctly, so add quotes: double-quote
24482 # substitution turns \\\\ into \\, and sed turns \\ into \.
24483 sed -n \
24484 "s/'/'\\\\''/g;
24485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24486 ;; #(
24487 *)
24488 # 'set' quotes correctly as required by POSIX, so do not add quotes.
24489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24490 ;;
24491 esac |
24492 sort
24493 ) |
24494 sed '
24495 /^ac_cv_env_/b end
24496 t clear
24497 :clear
24498 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24499 t end
24500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24501 :end' >>confcache
24502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24503 if test -w "$cache_file"; then
24504 if test "x$cache_file" != "x/dev/null"; then
24505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24506 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24507 if test ! -f "$cache_file" || test -h "$cache_file"; then
24508 cat confcache >"$cache_file"
24509 else
24510 case $cache_file in #(
24511 */* | ?:*)
24512 mv -f confcache "$cache_file"$$ &&
24513 mv -f "$cache_file"$$ "$cache_file" ;; #(
24514 *)
24515 mv -f confcache "$cache_file" ;;
24516 esac
24517 fi
24518 fi
24519 else
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24521 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24522 fi
24523 fi
24524 rm -f confcache
24525
24526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24527 # Let make expand exec_prefix.
24528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24529
24530 DEFS=-DHAVE_CONFIG_H
24531
24532 ac_libobjs=
24533 ac_ltlibobjs=
24534 U=
24535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24536 # 1. Remove the extension, and $U if already installed.
24537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24538 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24540 # will be set to the directory where LIBOBJS objects are built.
24541 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24542 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24543 done
24544 LIBOBJS=$ac_libobjs
24545
24546 LTLIBOBJS=$ac_ltlibobjs
24547
24548
24549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24550 printf %s "checking that generated files are newer than configure... " >&6; }
24551 if test -n "$am_sleep_pid"; then
24552 # Hide warnings about reused PIDs.
24553 wait $am_sleep_pid 2>/dev/null
24554 fi
24555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24556 printf "%s\n" "done" >&6; }
24557 case $enable_silent_rules in # (((
24558 yes) AM_DEFAULT_VERBOSITY=0;;
24559 no) AM_DEFAULT_VERBOSITY=1;;
24560 esac
24561 if test $am_cv_make_support_nested_variables = yes; then
24562 AM_V='$(V)'
24563 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
24564 else
24565 AM_V=$AM_DEFAULT_VERBOSITY
24566 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
24567 fi
24568
24569 if test -n "$EXEEXT"; then
24570 am__EXEEXT_TRUE=
24571 am__EXEEXT_FALSE='#'
24572 else
24573 am__EXEEXT_TRUE='#'
24574 am__EXEEXT_FALSE=
24575 fi
24576
24577 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24578 as_fn_error $? "conditional \"AMDEP\" was never defined.
24579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24580 fi
24581 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24582 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24584 fi
24585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24586 printf %s "checking that generated files are newer than configure... " >&6; }
24587 if test -n "$am_sleep_pid"; then
24588 # Hide warnings about reused PIDs.
24589 wait $am_sleep_pid 2>/dev/null
24590 fi
24591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24592 printf "%s\n" "done" >&6; }
24593 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24594 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24596 fi
24597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24598 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24600 fi
24601 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24602 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24604 fi
24605 if test -z "${HAVE_BOOST_TRUE}" && test -z "${HAVE_BOOST_FALSE}"; then
24606 as_fn_error $? "conditional \"HAVE_BOOST\" was never defined.
24607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24608 fi
24609
24610 : "${CONFIG_STATUS=./config.status}"
24611 ac_write_fail=0
24612 ac_clean_files_save=$ac_clean_files
24613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24615 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24616 as_write_fail=0
24617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24618 #! $SHELL
24619 # Generated by $as_me.
24620 # Run this file to recreate the current configuration.
24621 # Compiler output produced by configure, useful for debugging
24622 # configure, is in config.log if it exists.
24623
24624 debug=false
24625 ac_cs_recheck=false
24626 ac_cs_silent=false
24627
24628 SHELL=\${CONFIG_SHELL-$SHELL}
24629 export SHELL
24630 _ASEOF
24631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24632 ## -------------------- ##
24633 ## M4sh Initialization. ##
24634 ## -------------------- ##
24635
24636 # Be more Bourne compatible
24637 DUALCASE=1; export DUALCASE # for MKS sh
24638 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24639 then :
24640 emulate sh
24641 NULLCMD=:
24642 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24643 # is contrary to our usage. Disable this feature.
24644 alias -g '${1+"$@"}'='"$@"'
24645 setopt NO_GLOB_SUBST
24646 else case e in #(
24647 e) case `(set -o) 2>/dev/null` in #(
24648 *posix*) :
24649 set -o posix ;; #(
24650 *) :
24651 ;;
24652 esac ;;
24653 esac
24654 fi
24655
24656
24657
24658 # Reset variables that may have inherited troublesome values from
24659 # the environment.
24660
24661 # IFS needs to be set, to space, tab, and newline, in precisely that order.
24662 # (If _AS_PATH_WALK were called with IFS unset, it would have the
24663 # side effect of setting IFS to empty, thus disabling word splitting.)
24664 # Quoting is to prevent editors from complaining about space-tab.
24665 as_nl='
24666 '
24667 export as_nl
24668 IFS=" "" $as_nl"
24669
24670 PS1='$ '
24671 PS2='> '
24672 PS4='+ '
24673
24674 # Ensure predictable behavior from utilities with locale-dependent output.
24675 LC_ALL=C
24676 export LC_ALL
24677 LANGUAGE=C
24678 export LANGUAGE
24679
24680 # We cannot yet rely on "unset" to work, but we need these variables
24681 # to be unset--not just set to an empty or harmless value--now, to
24682 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
24683 # also avoids known problems related to "unset" and subshell syntax
24684 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24685 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24686 do eval test \${$as_var+y} \
24687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24688 done
24689
24690 # Ensure that fds 0, 1, and 2 are open.
24691 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24692 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24693 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
24694
24695 # The user is always right.
24696 if ${PATH_SEPARATOR+false} :; then
24697 PATH_SEPARATOR=:
24698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24700 PATH_SEPARATOR=';'
24701 }
24702 fi
24703
24704
24705 # Find who we are. Look in the path if we contain no directory separator.
24706 as_myself=
24707 case $0 in #((
24708 *[\\/]* ) as_myself=$0 ;;
24709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24710 for as_dir in $PATH
24711 do
24712 IFS=$as_save_IFS
24713 case $as_dir in #(((
24714 '') as_dir=./ ;;
24715 */) ;;
24716 *) as_dir=$as_dir/ ;;
24717 esac
24718 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24719 done
24720 IFS=$as_save_IFS
24721
24722 ;;
24723 esac
24724 # We did not find ourselves, most probably we were run as 'sh COMMAND'
24725 # in which case we are not to be found in the path.
24726 if test "x$as_myself" = x; then
24727 as_myself=$0
24728 fi
24729 if test ! -f "$as_myself"; then
24730 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24731 exit 1
24732 fi
24733
24734
24735
24736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24737 # ----------------------------------------
24738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24740 # script with STATUS, using 1 if that was 0.
24741 as_fn_error ()
24742 {
24743 as_status=$1; test $as_status -eq 0 && as_status=1
24744 if test "$4"; then
24745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24747 fi
24748 printf "%s\n" "$as_me: error: $2" >&2
24749 as_fn_exit $as_status
24750 } # as_fn_error
24751
24752
24753 # as_fn_set_status STATUS
24754 # -----------------------
24755 # Set $? to STATUS, without forking.
24756 as_fn_set_status ()
24757 {
24758 return $1
24759 } # as_fn_set_status
24760
24761 # as_fn_exit STATUS
24762 # -----------------
24763 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24764 as_fn_exit ()
24765 {
24766 set +e
24767 as_fn_set_status $1
24768 exit $1
24769 } # as_fn_exit
24770
24771 # as_fn_unset VAR
24772 # ---------------
24773 # Portably unset VAR.
24774 as_fn_unset ()
24775 {
24776 { eval $1=; unset $1;}
24777 }
24778 as_unset=as_fn_unset
24779
24780 # as_fn_append VAR VALUE
24781 # ----------------------
24782 # Append the text in VALUE to the end of the definition contained in VAR. Take
24783 # advantage of any shell optimizations that allow amortized linear growth over
24784 # repeated appends, instead of the typical quadratic growth present in naive
24785 # implementations.
24786 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24787 then :
24788 eval 'as_fn_append ()
24789 {
24790 eval $1+=\$2
24791 }'
24792 else case e in #(
24793 e) as_fn_append ()
24794 {
24795 eval $1=\$$1\$2
24796 } ;;
24797 esac
24798 fi # as_fn_append
24799
24800 # as_fn_arith ARG...
24801 # ------------------
24802 # Perform arithmetic evaluation on the ARGs, and store the result in the
24803 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24804 # must be portable across $(()) and expr.
24805 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24806 then :
24807 eval 'as_fn_arith ()
24808 {
24809 as_val=$(( $* ))
24810 }'
24811 else case e in #(
24812 e) as_fn_arith ()
24813 {
24814 as_val=`expr "$@" || test $? -eq 1`
24815 } ;;
24816 esac
24817 fi # as_fn_arith
24818
24819
24820 if expr a : '\(a\)' >/dev/null 2>&1 &&
24821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24822 as_expr=expr
24823 else
24824 as_expr=false
24825 fi
24826
24827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24828 as_basename=basename
24829 else
24830 as_basename=false
24831 fi
24832
24833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24834 as_dirname=dirname
24835 else
24836 as_dirname=false
24837 fi
24838
24839 as_me=`$as_basename -- "$0" ||
24840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24841 X"$0" : 'X\(//\)$' \| \
24842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24843 printf "%s\n" X/"$0" |
24844 sed '/^.*\/\([^/][^/]*\)\/*$/{
24845 s//\1/
24846 q
24847 }
24848 /^X\/\(\/\/\)$/{
24849 s//\1/
24850 q
24851 }
24852 /^X\/\(\/\).*/{
24853 s//\1/
24854 q
24855 }
24856 s/.*/./; q'`
24857
24858 # Avoid depending upon Character Ranges.
24859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24862 as_cr_digits='0123456789'
24863 as_cr_alnum=$as_cr_Letters$as_cr_digits
24864
24865
24866 # Determine whether it's possible to make 'echo' print without a newline.
24867 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24868 # for compatibility with existing Makefiles.
24869 ECHO_C= ECHO_N= ECHO_T=
24870 case `echo -n x` in #(((((
24871 -n*)
24872 case `echo 'xy\c'` in
24873 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24874 xy) ECHO_C='\c';;
24875 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24876 ECHO_T=' ';;
24877 esac;;
24878 *)
24879 ECHO_N='-n';;
24880 esac
24881
24882 # For backward compatibility with old third-party macros, we provide
24883 # the shell variables $as_echo and $as_echo_n. New code should use
24884 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24885 as_echo='printf %s\n'
24886 as_echo_n='printf %s'
24887
24888 rm -f conf$$ conf$$.exe conf$$.file
24889 if test -d conf$$.dir; then
24890 rm -f conf$$.dir/conf$$.file
24891 else
24892 rm -f conf$$.dir
24893 mkdir conf$$.dir 2>/dev/null
24894 fi
24895 if (echo >conf$$.file) 2>/dev/null; then
24896 if ln -s conf$$.file conf$$ 2>/dev/null; then
24897 as_ln_s='ln -s'
24898 # ... but there are two gotchas:
24899 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
24900 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
24901 # In both cases, we have to default to 'cp -pR'.
24902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24903 as_ln_s='cp -pR'
24904 elif ln conf$$.file conf$$ 2>/dev/null; then
24905 as_ln_s=ln
24906 else
24907 as_ln_s='cp -pR'
24908 fi
24909 else
24910 as_ln_s='cp -pR'
24911 fi
24912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24913 rmdir conf$$.dir 2>/dev/null
24914
24915
24916 # as_fn_mkdir_p
24917 # -------------
24918 # Create "$as_dir" as a directory, including parents if necessary.
24919 as_fn_mkdir_p ()
24920 {
24921
24922 case $as_dir in #(
24923 -*) as_dir=./$as_dir;;
24924 esac
24925 test -d "$as_dir" || eval $as_mkdir_p || {
24926 as_dirs=
24927 while :; do
24928 case $as_dir in #(
24929 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24930 *) as_qdir=$as_dir;;
24931 esac
24932 as_dirs="'$as_qdir' $as_dirs"
24933 as_dir=`$as_dirname -- "$as_dir" ||
24934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24935 X"$as_dir" : 'X\(//\)[^/]' \| \
24936 X"$as_dir" : 'X\(//\)$' \| \
24937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24938 printf "%s\n" X"$as_dir" |
24939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24940 s//\1/
24941 q
24942 }
24943 /^X\(\/\/\)[^/].*/{
24944 s//\1/
24945 q
24946 }
24947 /^X\(\/\/\)$/{
24948 s//\1/
24949 q
24950 }
24951 /^X\(\/\).*/{
24952 s//\1/
24953 q
24954 }
24955 s/.*/./; q'`
24956 test -d "$as_dir" && break
24957 done
24958 test -z "$as_dirs" || eval "mkdir $as_dirs"
24959 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24960
24961
24962 } # as_fn_mkdir_p
24963 if mkdir -p . 2>/dev/null; then
24964 as_mkdir_p='mkdir -p "$as_dir"'
24965 else
24966 test -d ./-p && rmdir ./-p
24967 as_mkdir_p=false
24968 fi
24969
24970
24971 # as_fn_executable_p FILE
24972 # -----------------------
24973 # Test if FILE is an executable regular file.
24974 as_fn_executable_p ()
24975 {
24976 test -f "$1" && test -x "$1"
24977 } # as_fn_executable_p
24978 as_test_x='test -x'
24979 as_executable_p=as_fn_executable_p
24980
24981 # Sed expression to map a string onto a valid CPP name.
24982 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24983 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
24984
24985 # Sed expression to map a string onto a valid variable name.
24986 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24987 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
24988
24989
24990 exec 6>&1
24991 ## ----------------------------------- ##
24992 ## Main body of $CONFIG_STATUS script. ##
24993 ## ----------------------------------- ##
24994 _ASEOF
24995 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24996
24997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24998 # Save the log message, to keep $0 and so on meaningful, and to
24999 # report actual input values of CONFIG_FILES etc. instead of their
25000 # values after options handling.
25001 ac_log="
25002 This file was extended by ibus-libzhuyin $as_me 1.10.4, which was
25003 generated by GNU Autoconf 2.72. Invocation command line was
25004
25005 CONFIG_FILES = $CONFIG_FILES
25006 CONFIG_HEADERS = $CONFIG_HEADERS
25007 CONFIG_LINKS = $CONFIG_LINKS
25008 CONFIG_COMMANDS = $CONFIG_COMMANDS
25009 $ $0 $@
25010
25011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25012 "
25013
25014 _ACEOF
25015
25016 case $ac_config_files in *"
25017 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25018 esac
25019
25020 case $ac_config_headers in *"
25021 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25022 esac
25023
25024
25025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25026 # Files that config.status was made for.
25027 config_files="$ac_config_files"
25028 config_headers="$ac_config_headers"
25029 config_commands="$ac_config_commands"
25030
25031 _ACEOF
25032
25033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25034 ac_cs_usage="\
25035 '$as_me' instantiates files and other configuration actions
25036 from templates according to the current configuration. Unless the files
25037 and actions are specified as TAGs, all are instantiated by default.
25038
25039 Usage: $0 [OPTION]... [TAG]...
25040
25041 -h, --help print this help, then exit
25042 -V, --version print version number and configuration settings, then exit
25043 --config print configuration, then exit
25044 -q, --quiet, --silent
25045 do not print progress messages
25046 -d, --debug don't remove temporary files
25047 --recheck update $as_me by reconfiguring in the same conditions
25048 --file=FILE[:TEMPLATE]
25049 instantiate the configuration file FILE
25050 --header=FILE[:TEMPLATE]
25051 instantiate the configuration header FILE
25052
25053 Configuration files:
25054 $config_files
25055
25056 Configuration headers:
25057 $config_headers
25058
25059 Configuration commands:
25060 $config_commands
25061
25062 Report bugs to <https://github.com/libzhuyin/ibus-libzhuyin/issues/new>."
25063
25064 _ACEOF
25065 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
25066 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
25067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25068 ac_cs_config='$ac_cs_config_escaped'
25069 ac_cs_version="\\
25070 ibus-libzhuyin config.status 1.10.4
25071 configured by $0, generated by GNU Autoconf 2.72,
25072 with options \\"\$ac_cs_config\\"
25073
25074 Copyright (C) 2023 Free Software Foundation, Inc.
25075 This config.status script is free software; the Free Software Foundation
25076 gives unlimited permission to copy, distribute and modify it."
25077
25078 ac_pwd='$ac_pwd'
25079 srcdir='$srcdir'
25080 INSTALL='$INSTALL'
25081 MKDIR_P='$MKDIR_P'
25082 AWK='$AWK'
25083 test -n "\$AWK" || AWK=awk
25084 _ACEOF
25085
25086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25087 # The default lists apply if the user does not specify any file.
25088 ac_need_defaults=:
25089 while test $# != 0
25090 do
25091 case $1 in
25092 --*=?*)
25093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25095 ac_shift=:
25096 ;;
25097 --*=)
25098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25099 ac_optarg=
25100 ac_shift=:
25101 ;;
25102 *)
25103 ac_option=$1
25104 ac_optarg=$2
25105 ac_shift=shift
25106 ;;
25107 esac
25108
25109 case $ac_option in
25110 # Handling of the options.
25111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25112 ac_cs_recheck=: ;;
25113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25114 printf "%s\n" "$ac_cs_version"; exit ;;
25115 --config | --confi | --conf | --con | --co | --c )
25116 printf "%s\n" "$ac_cs_config"; exit ;;
25117 --debug | --debu | --deb | --de | --d | -d )
25118 debug=: ;;
25119 --file | --fil | --fi | --f )
25120 $ac_shift
25121 case $ac_optarg in
25122 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25123 '') as_fn_error $? "missing file argument" ;;
25124 esac
25125 as_fn_append CONFIG_FILES " '$ac_optarg'"
25126 ac_need_defaults=false;;
25127 --header | --heade | --head | --hea )
25128 $ac_shift
25129 case $ac_optarg in
25130 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25131 esac
25132 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25133 ac_need_defaults=false;;
25134 --he | --h)
25135 # Conflict between --help and --header
25136 as_fn_error $? "ambiguous option: '$1'
25137 Try '$0 --help' for more information.";;
25138 --help | --hel | -h )
25139 printf "%s\n" "$ac_cs_usage"; exit ;;
25140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25142 ac_cs_silent=: ;;
25143
25144 # This is an error.
25145 -*) as_fn_error $? "unrecognized option: '$1'
25146 Try '$0 --help' for more information." ;;
25147
25148 *) as_fn_append ac_config_targets " $1"
25149 ac_need_defaults=false ;;
25150
25151 esac
25152 shift
25153 done
25154
25155 ac_configure_extra_args=
25156
25157 if $ac_cs_silent; then
25158 exec 6>/dev/null
25159 ac_configure_extra_args="$ac_configure_extra_args --silent"
25160 fi
25161
25162 _ACEOF
25163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25164 if \$ac_cs_recheck; then
25165 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25166 shift
25167 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
25168 CONFIG_SHELL='$SHELL'
25169 export CONFIG_SHELL
25170 exec "\$@"
25171 fi
25172
25173 _ACEOF
25174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25175 exec 5>>config.log
25176 {
25177 echo
25178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25179 ## Running $as_me. ##
25180 _ASBOX
25181 printf "%s\n" "$ac_log"
25182 } >&5
25183
25184 _ACEOF
25185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25186 #
25187 # INIT-COMMANDS
25188 #
25189 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25190
25191
25192 # The HP-UX ksh and POSIX shell print the target directory to stdout
25193 # if CDPATH is set.
25194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25195
25196 sed_quote_subst='$sed_quote_subst'
25197 double_quote_subst='$double_quote_subst'
25198 delay_variable_subst='$delay_variable_subst'
25199 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25200 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25201 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25203 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25204 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25205 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25206 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25207 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25208 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25209 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25210 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25211 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25212 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25213 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25214 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25215 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25216 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25217 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25218 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25219 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25220 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25221 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25222 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25223 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25224 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25225 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25226 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25227 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25228 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25229 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25230 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25231 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25232 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25233 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
25234 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25235 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25236 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25237 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25238 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25239 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25240 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25241 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25242 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
25243 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25244 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25245 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25246 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25247 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25248 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25249 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25250 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25251 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25252 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25253 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25254 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25255 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25257 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25258 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25259 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"`'
25260 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25261 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25262 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25263 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25264 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25265 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25266 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25267 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25268 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25269 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25270 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25271 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25272 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25273 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25274 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25275 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25276 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25277 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25278 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25279 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25280 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25281 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25282 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25283 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25284 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25285 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25286 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25287 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25288 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25289 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25290 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25291 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25292 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25293 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25294 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25295 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25296 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25297 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25298 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25299 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25300 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25301 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25302 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25303 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25304 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25305 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25306 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25307 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25308 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25309 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25310 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25311 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25312 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25313 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25314 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25315 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25316 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25317 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25318 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25319 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25320 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25321 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25322 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25323 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25324 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25325 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25326 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25327 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25328 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25329 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25330 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25331 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25332 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25333 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25334 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25335 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25336 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25337 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25338 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25339 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25340 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25341 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25342 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25343 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25344 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25345 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25346 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25347 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25348 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25349 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25350 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25351 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25352 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25353 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25354 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25355 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25356 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25357 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25358 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25359 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25360 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25361 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25362 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25363 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25364 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25365 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25366 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25367 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25368 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25369 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25370 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25371 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25372 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25373 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25374 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25375 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25376 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25377 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25378 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25379 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25380 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25381 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25382 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25383 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25384 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25385 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25386 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25387 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25388 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25389 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25390
25391 LTCC='$LTCC'
25392 LTCFLAGS='$LTCFLAGS'
25393 compiler='$compiler_DEFAULT'
25394
25395 # A function that is used when there is no print builtin or printf.
25396 func_fallback_echo ()
25397 {
25398 eval 'cat <<_LTECHO_EOF
25399 \$1
25400 _LTECHO_EOF'
25401 }
25402
25403 # Quote evaled strings.
25404 for var in SHELL \
25405 ECHO \
25406 PATH_SEPARATOR \
25407 SED \
25408 GREP \
25409 EGREP \
25410 FGREP \
25411 LD \
25412 NM \
25413 LN_S \
25414 lt_SP2NL \
25415 lt_NL2SP \
25416 reload_flag \
25417 FILECMD \
25418 OBJDUMP \
25419 deplibs_check_method \
25420 file_magic_cmd \
25421 file_magic_glob \
25422 want_nocaseglob \
25423 DLLTOOL \
25424 sharedlib_from_linklib_cmd \
25425 AR \
25426 archiver_list_spec \
25427 STRIP \
25428 RANLIB \
25429 CC \
25430 CFLAGS \
25431 compiler \
25432 lt_cv_sys_global_symbol_pipe \
25433 lt_cv_sys_global_symbol_to_cdecl \
25434 lt_cv_sys_global_symbol_to_import \
25435 lt_cv_sys_global_symbol_to_c_name_address \
25436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25437 lt_cv_nm_interface \
25438 nm_file_list_spec \
25439 lt_cv_truncate_bin \
25440 lt_prog_compiler_no_builtin_flag \
25441 lt_prog_compiler_pic \
25442 lt_prog_compiler_wl \
25443 lt_prog_compiler_static \
25444 lt_cv_prog_compiler_c_o \
25445 need_locks \
25446 MANIFEST_TOOL \
25447 DSYMUTIL \
25448 NMEDIT \
25449 LIPO \
25450 OTOOL \
25451 OTOOL64 \
25452 shrext_cmds \
25453 export_dynamic_flag_spec \
25454 whole_archive_flag_spec \
25455 compiler_needs_object \
25456 with_gnu_ld \
25457 allow_undefined_flag \
25458 no_undefined_flag \
25459 hardcode_libdir_flag_spec \
25460 hardcode_libdir_separator \
25461 exclude_expsyms \
25462 include_expsyms \
25463 file_list_spec \
25464 variables_saved_for_relink \
25465 libname_spec \
25466 library_names_spec \
25467 soname_spec \
25468 install_override_mode \
25469 finish_eval \
25470 old_striplib \
25471 striplib \
25472 compiler_lib_search_dirs \
25473 predep_objects \
25474 postdep_objects \
25475 predeps \
25476 postdeps \
25477 compiler_lib_search_path \
25478 LD_CXX \
25479 reload_flag_CXX \
25480 compiler_CXX \
25481 lt_prog_compiler_no_builtin_flag_CXX \
25482 lt_prog_compiler_pic_CXX \
25483 lt_prog_compiler_wl_CXX \
25484 lt_prog_compiler_static_CXX \
25485 lt_cv_prog_compiler_c_o_CXX \
25486 export_dynamic_flag_spec_CXX \
25487 whole_archive_flag_spec_CXX \
25488 compiler_needs_object_CXX \
25489 with_gnu_ld_CXX \
25490 allow_undefined_flag_CXX \
25491 no_undefined_flag_CXX \
25492 hardcode_libdir_flag_spec_CXX \
25493 hardcode_libdir_separator_CXX \
25494 exclude_expsyms_CXX \
25495 include_expsyms_CXX \
25496 file_list_spec_CXX \
25497 compiler_lib_search_dirs_CXX \
25498 predep_objects_CXX \
25499 postdep_objects_CXX \
25500 predeps_CXX \
25501 postdeps_CXX \
25502 compiler_lib_search_path_CXX; do
25503 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25504 *[\\\\\\\`\\"\\\$]*)
25505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25506 ;;
25507 *)
25508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25509 ;;
25510 esac
25511 done
25512
25513 # Double-quote double-evaled strings.
25514 for var in reload_cmds \
25515 old_postinstall_cmds \
25516 old_postuninstall_cmds \
25517 old_archive_cmds \
25518 extract_expsyms_cmds \
25519 old_archive_from_new_cmds \
25520 old_archive_from_expsyms_cmds \
25521 archive_cmds \
25522 archive_expsym_cmds \
25523 module_cmds \
25524 module_expsym_cmds \
25525 export_symbols_cmds \
25526 prelink_cmds \
25527 postlink_cmds \
25528 postinstall_cmds \
25529 postuninstall_cmds \
25530 finish_cmds \
25531 sys_lib_search_path_spec \
25532 configure_time_dlsearch_path \
25533 configure_time_lt_sys_library_path \
25534 reload_cmds_CXX \
25535 old_archive_cmds_CXX \
25536 old_archive_from_new_cmds_CXX \
25537 old_archive_from_expsyms_cmds_CXX \
25538 archive_cmds_CXX \
25539 archive_expsym_cmds_CXX \
25540 module_cmds_CXX \
25541 module_expsym_cmds_CXX \
25542 export_symbols_cmds_CXX \
25543 prelink_cmds_CXX \
25544 postlink_cmds_CXX; do
25545 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25546 *[\\\\\\\`\\"\\\$]*)
25547 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25548 ;;
25549 *)
25550 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25551 ;;
25552 esac
25553 done
25554
25555 ac_aux_dir='$ac_aux_dir'
25556
25557 # See if we are running on zsh, and set the options that allow our
25558 # commands through without removal of \ escapes INIT.
25559 if test -n "\${ZSH_VERSION+set}"; then
25560 setopt NO_GLOB_SUBST
25561 fi
25562
25563
25564 PACKAGE='$PACKAGE'
25565 VERSION='$VERSION'
25566 RM='$RM'
25567 ofile='$ofile'
25568
25569
25570
25571
25572
25573 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
25574 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
25575 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
25576 # Capture the value of LINGUAS because we need it to compute CATALOGS.
25577 LINGUAS="${LINGUAS-%UNSET%}"
25578
25579
25580 _ACEOF
25581
25582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25583
25584 # Handling of arguments.
25585 for ac_config_target in $ac_config_targets
25586 do
25587 case $ac_config_target in
25588 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25589 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25590 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25591 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
25592 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25594 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25595 "src/libzhuyin.xml.in") CONFIG_FILES="$CONFIG_FILES src/libzhuyin.xml.in" ;;
25596 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
25597 "setup/config.py") CONFIG_FILES="$CONFIG_FILES setup/config.py" ;;
25598 "setup/ibus-setup-libzhuyin") CONFIG_FILES="$CONFIG_FILES setup/ibus-setup-libzhuyin" ;;
25599 "ibus-libzhuyin.spec") CONFIG_FILES="$CONFIG_FILES ibus-libzhuyin.spec" ;;
25600 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
25601 "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
25602 "data/model/Makefile") CONFIG_FILES="$CONFIG_FILES data/model/Makefile" ;;
25603 "data/model/table.conf") CONFIG_FILES="$CONFIG_FILES data/model/table.conf" ;;
25604
25605 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
25606 esac
25607 done
25608
25609
25610 # If the user did not use the arguments to specify the items to instantiate,
25611 # then the envvar interface is used. Set only those that are not.
25612 # We use the long form for the default assignment because of an extremely
25613 # bizarre bug on SunOS 4.1.3.
25614 if $ac_need_defaults; then
25615 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
25616 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
25617 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
25618 fi
25619
25620 # Have a temporary directory for convenience. Make it in the build tree
25621 # simply because there is no reason against having it here, and in addition,
25622 # creating and moving files from /tmp can sometimes cause problems.
25623 # Hook for its removal unless debugging.
25624 # Note that there is a small window in which the directory will not be cleaned:
25625 # after its creation but before its name has been assigned to '$tmp'.
25626 $debug ||
25627 {
25628 tmp= ac_tmp=
25629 trap 'exit_status=$?
25630 : "${ac_tmp:=$tmp}"
25631 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25632 ' 0
25633 trap 'as_fn_exit 1' 1 2 13 15
25634 }
25635 # Create a (secure) tmp directory for tmp files.
25636
25637 {
25638 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25639 test -d "$tmp"
25640 } ||
25641 {
25642 tmp=./conf$$-$RANDOM
25643 (umask 077 && mkdir "$tmp")
25644 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25645 ac_tmp=$tmp
25646
25647 # Set up the scripts for CONFIG_FILES section.
25648 # No need to generate them if there are no CONFIG_FILES.
25649 # This happens for instance with './config.status config.h'.
25650 if test -n "$CONFIG_FILES"; then
25651
25652
25653 ac_cr=`echo X | tr X '\015'`
25654 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25655 # But we know of no other shell where ac_cr would be empty at this
25656 # point, so we can use a bashism as a fallback.
25657 if test "x$ac_cr" = x; then
25658 eval ac_cr=\$\'\\r\'
25659 fi
25660 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25661 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25662 ac_cs_awk_cr='\\r'
25663 else
25664 ac_cs_awk_cr=$ac_cr
25665 fi
25666
25667 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25668 _ACEOF
25669
25670
25671 {
25672 echo "cat >conf$$subs.awk <<_ACEOF" &&
25673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25674 echo "_ACEOF"
25675 } >conf$$subs.sh ||
25676 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25678 ac_delim='%!_!# '
25679 for ac_last_try in false false false false false :; do
25680 . ./conf$$subs.sh ||
25681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25682
25683 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25684 if test $ac_delim_n = $ac_delim_num; then
25685 break
25686 elif $ac_last_try; then
25687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25688 else
25689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25690 fi
25691 done
25692 rm -f conf$$subs.sh
25693
25694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25695 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25696 _ACEOF
25697 sed -n '
25698 h
25699 s/^/S["/; s/!.*/"]=/
25700 p
25701 g
25702 s/^[^!]*!//
25703 :repl
25704 t repl
25705 s/'"$ac_delim"'$//
25706 t delim
25707 :nl
25708 h
25709 s/\(.\{148\}\)..*/\1/
25710 t more1
25711 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25712 p
25713 n
25714 b repl
25715 :more1
25716 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25717 p
25718 g
25719 s/.\{148\}//
25720 t nl
25721 :delim
25722 h
25723 s/\(.\{148\}\)..*/\1/
25724 t more2
25725 s/["\\]/\\&/g; s/^/"/; s/$/"/
25726 p
25727 b
25728 :more2
25729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25730 p
25731 g
25732 s/.\{148\}//
25733 t delim
25734 ' <conf$$subs.awk | sed '
25735 /^[^""]/{
25736 N
25737 s/\n//
25738 }
25739 ' >>$CONFIG_STATUS || ac_write_fail=1
25740 rm -f conf$$subs.awk
25741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25742 _ACAWK
25743 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25744 for (key in S) S_is_set[key] = 1
25745 FS = ""
25746
25747 }
25748 {
25749 line = $ 0
25750 nfields = split(line, field, "@")
25751 substed = 0
25752 len = length(field[1])
25753 for (i = 2; i < nfields; i++) {
25754 key = field[i]
25755 keylen = length(key)
25756 if (S_is_set[key]) {
25757 value = S[key]
25758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25759 len += length(value) + length(field[++i])
25760 substed = 1
25761 } else
25762 len += 1 + keylen
25763 }
25764
25765 print line
25766 }
25767
25768 _ACAWK
25769 _ACEOF
25770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25771 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25772 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25773 else
25774 cat
25775 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25776 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25777 _ACEOF
25778
25779 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25780 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25781 # trailing colons and then remove the whole line if VPATH becomes empty
25782 # (actually we leave an empty line to preserve line numbers).
25783 if test "x$srcdir" = x.; then
25784 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25785 h
25786 s///
25787 s/^/:/
25788 s/[ ]*$/:/
25789 s/:\$(srcdir):/:/g
25790 s/:\${srcdir}:/:/g
25791 s/:@srcdir@:/:/g
25792 s/^:*//
25793 s/:*$//
25794 x
25795 s/\(=[ ]*\).*/\1/
25796 G
25797 s/\n//
25798 s/^[^=]*=[ ]*$//
25799 }'
25800 fi
25801
25802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25803 fi # test -n "$CONFIG_FILES"
25804
25805 # Set up the scripts for CONFIG_HEADERS section.
25806 # No need to generate them if there are no CONFIG_HEADERS.
25807 # This happens for instance with './config.status Makefile'.
25808 if test -n "$CONFIG_HEADERS"; then
25809 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25810 BEGIN {
25811 _ACEOF
25812
25813 # Transform confdefs.h into an awk script 'defines.awk', embedded as
25814 # here-document in config.status, that substitutes the proper values into
25815 # config.h.in to produce config.h.
25816
25817 # Create a delimiter string that does not exist in confdefs.h, to ease
25818 # handling of long lines.
25819 ac_delim='%!_!# '
25820 for ac_last_try in false false :; do
25821 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25822 if test -z "$ac_tt"; then
25823 break
25824 elif $ac_last_try; then
25825 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25826 else
25827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25828 fi
25829 done
25830
25831 # For the awk script, D is an array of macro values keyed by name,
25832 # likewise P contains macro parameters if any. Preserve backslash
25833 # newline sequences.
25834
25835 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25836 sed -n '
25837 s/.\{148\}/&'"$ac_delim"'/g
25838 t rset
25839 :rset
25840 s/^[ ]*#[ ]*define[ ][ ]*/ /
25841 t def
25842 d
25843 :def
25844 s/\\$//
25845 t bsnl
25846 s/["\\]/\\&/g
25847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25848 D["\1"]=" \3"/p
25849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25850 d
25851 :bsnl
25852 s/["\\]/\\&/g
25853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25854 D["\1"]=" \3\\\\\\n"\\/p
25855 t cont
25856 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25857 t cont
25858 d
25859 :cont
25860 n
25861 s/.\{148\}/&'"$ac_delim"'/g
25862 t clear
25863 :clear
25864 s/\\$//
25865 t bsnlc
25866 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25867 d
25868 :bsnlc
25869 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25870 b cont
25871 ' <confdefs.h | sed '
25872 s/'"$ac_delim"'/"\\\
25873 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25874
25875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25876 for (key in D) D_is_set[key] = 1
25877 FS = ""
25878 }
25879 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25880 line = \$ 0
25881 split(line, arg, " ")
25882 if (arg[1] == "#") {
25883 defundef = arg[2]
25884 mac1 = arg[3]
25885 } else {
25886 defundef = substr(arg[1], 2)
25887 mac1 = arg[2]
25888 }
25889 split(mac1, mac2, "(") #)
25890 macro = mac2[1]
25891 prefix = substr(line, 1, index(line, defundef) - 1)
25892 if (D_is_set[macro]) {
25893 # Preserve the white space surrounding the "#".
25894 print prefix "define", macro P[macro] D[macro]
25895 next
25896 } else {
25897 # Replace #undef with comments. This is necessary, for example,
25898 # in the case of _POSIX_SOURCE, which is predefined and required
25899 # on some systems where configure will not decide to define it.
25900 if (defundef == "undef") {
25901 print "/*", prefix defundef, macro, "*/"
25902 next
25903 }
25904 }
25905 }
25906 { print }
25907 _ACAWK
25908 _ACEOF
25909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25910 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25911 fi # test -n "$CONFIG_HEADERS"
25912
25913
25914 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25915 shift
25916 for ac_tag
25917 do
25918 case $ac_tag in
25919 :[FHLC]) ac_mode=$ac_tag; continue;;
25920 esac
25921 case $ac_mode$ac_tag in
25922 :[FHL]*:*);;
25923 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
25924 :[FH]-) ac_tag=-:-;;
25925 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25926 esac
25927 ac_save_IFS=$IFS
25928 IFS=:
25929 set x $ac_tag
25930 IFS=$ac_save_IFS
25931 shift
25932 ac_file=$1
25933 shift
25934
25935 case $ac_mode in
25936 :L) ac_source=$1;;
25937 :[FH])
25938 ac_file_inputs=
25939 for ac_f
25940 do
25941 case $ac_f in
25942 -) ac_f="$ac_tmp/stdin";;
25943 *) # Look for the file first in the build tree, then in the source tree
25944 # (if the path is not absolute). The absolute path cannot be DOS-style,
25945 # because $ac_f cannot contain ':'.
25946 test -f "$ac_f" ||
25947 case $ac_f in
25948 [\\/$]*) false;;
25949 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25950 esac ||
25951 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
25952 esac
25953 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25954 as_fn_append ac_file_inputs " '$ac_f'"
25955 done
25956
25957 # Let's still pretend it is 'configure' which instantiates (i.e., don't
25958 # use $as_me), people would be surprised to read:
25959 # /* config.h. Generated by config.status. */
25960 configure_input='Generated from '`
25961 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25962 `' by configure.'
25963 if test x"$ac_file" != x-; then
25964 configure_input="$ac_file. $configure_input"
25965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25966 printf "%s\n" "$as_me: creating $ac_file" >&6;}
25967 fi
25968 # Neutralize special characters interpreted by sed in replacement strings.
25969 case $configure_input in #(
25970 *\&* | *\|* | *\\* )
25971 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25972 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25973 *) ac_sed_conf_input=$configure_input;;
25974 esac
25975
25976 case $ac_tag in
25977 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25979 esac
25980 ;;
25981 esac
25982
25983 ac_dir=`$as_dirname -- "$ac_file" ||
25984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25985 X"$ac_file" : 'X\(//\)[^/]' \| \
25986 X"$ac_file" : 'X\(//\)$' \| \
25987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25988 printf "%s\n" X"$ac_file" |
25989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25990 s//\1/
25991 q
25992 }
25993 /^X\(\/\/\)[^/].*/{
25994 s//\1/
25995 q
25996 }
25997 /^X\(\/\/\)$/{
25998 s//\1/
25999 q
26000 }
26001 /^X\(\/\).*/{
26002 s//\1/
26003 q
26004 }
26005 s/.*/./; q'`
26006 as_dir="$ac_dir"; as_fn_mkdir_p
26007 ac_builddir=.
26008
26009 case "$ac_dir" in
26010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26011 *)
26012 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
26013 # A ".." for each directory in $ac_dir_suffix.
26014 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26015 case $ac_top_builddir_sub in
26016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26018 esac ;;
26019 esac
26020 ac_abs_top_builddir=$ac_pwd
26021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26022 # for backward compatibility:
26023 ac_top_builddir=$ac_top_build_prefix
26024
26025 case $srcdir in
26026 .) # We are building in place.
26027 ac_srcdir=.
26028 ac_top_srcdir=$ac_top_builddir_sub
26029 ac_abs_top_srcdir=$ac_pwd ;;
26030 [\\/]* | ?:[\\/]* ) # Absolute name.
26031 ac_srcdir=$srcdir$ac_dir_suffix;
26032 ac_top_srcdir=$srcdir
26033 ac_abs_top_srcdir=$srcdir ;;
26034 *) # Relative name.
26035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26036 ac_top_srcdir=$ac_top_build_prefix$srcdir
26037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26038 esac
26039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26040
26041
26042 case $ac_mode in
26043 :F)
26044 #
26045 # CONFIG_FILE
26046 #
26047
26048 case $INSTALL in
26049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26051 esac
26052 ac_MKDIR_P=$MKDIR_P
26053 case $MKDIR_P in
26054 [\\/$]* | ?:[\\/]* ) ;;
26055 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26056 esac
26057 _ACEOF
26058
26059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26060 # If the template does not know about datarootdir, expand it.
26061 # FIXME: This hack should be removed a few years after 2.60.
26062 ac_datarootdir_hack=; ac_datarootdir_seen=
26063 ac_sed_dataroot='
26064 /datarootdir/ {
26065 p
26066 q
26067 }
26068 /@datadir@/p
26069 /@docdir@/p
26070 /@infodir@/p
26071 /@localedir@/p
26072 /@mandir@/p'
26073 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26074 *datarootdir*) ac_datarootdir_seen=yes;;
26075 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26077 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26078 _ACEOF
26079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26080 ac_datarootdir_hack='
26081 s&@datadir@&$datadir&g
26082 s&@docdir@&$docdir&g
26083 s&@infodir@&$infodir&g
26084 s&@localedir@&$localedir&g
26085 s&@mandir@&$mandir&g
26086 s&\\\${datarootdir}&$datarootdir&g' ;;
26087 esac
26088 _ACEOF
26089
26090 # Neutralize VPATH when '$srcdir' = '.'.
26091 # Shell code in configure.ac might set extrasub.
26092 # FIXME: do we really want to maintain this feature?
26093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26094 ac_sed_extra="$ac_vpsub
26095 $extrasub
26096 _ACEOF
26097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26098 :t
26099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26100 s|@configure_input@|$ac_sed_conf_input|;t t
26101 s&@top_builddir@&$ac_top_builddir_sub&;t t
26102 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26103 s&@srcdir@&$ac_srcdir&;t t
26104 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26105 s&@top_srcdir@&$ac_top_srcdir&;t t
26106 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26107 s&@builddir@&$ac_builddir&;t t
26108 s&@abs_builddir@&$ac_abs_builddir&;t t
26109 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26110 s&@INSTALL@&$ac_INSTALL&;t t
26111 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26112 $ac_datarootdir_hack
26113 "
26114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26115 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26116
26117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26118 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26120 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
26122 which seems to be undefined. Please make sure it is defined" >&5
26123 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
26124 which seems to be undefined. Please make sure it is defined" >&2;}
26125
26126 rm -f "$ac_tmp/stdin"
26127 case $ac_file in
26128 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26129 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26130 esac \
26131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26132 ;;
26133 :H)
26134 #
26135 # CONFIG_HEADER
26136 #
26137 if test x"$ac_file" != x-; then
26138 {
26139 printf "%s\n" "/* $configure_input */" >&1 \
26140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26141 } >"$ac_tmp/config.h" \
26142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26143 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26145 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
26146 else
26147 rm -f "$ac_file"
26148 mv "$ac_tmp/config.h" "$ac_file" \
26149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26150 fi
26151 else
26152 printf "%s\n" "/* $configure_input */" >&1 \
26153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26154 || as_fn_error $? "could not create -" "$LINENO" 5
26155 fi
26156 # Compute "$ac_file"'s index in $config_headers.
26157 _am_arg="$ac_file"
26158 _am_stamp_count=1
26159 for _am_header in $config_headers :; do
26160 case $_am_header in
26161 $_am_arg | $_am_arg:* )
26162 break ;;
26163 * )
26164 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26165 esac
26166 done
26167 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26168 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26169 X"$_am_arg" : 'X\(//\)[^/]' \| \
26170 X"$_am_arg" : 'X\(//\)$' \| \
26171 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26172 printf "%s\n" X"$_am_arg" |
26173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26174 s//\1/
26175 q
26176 }
26177 /^X\(\/\/\)[^/].*/{
26178 s//\1/
26179 q
26180 }
26181 /^X\(\/\/\)$/{
26182 s//\1/
26183 q
26184 }
26185 /^X\(\/\).*/{
26186 s//\1/
26187 q
26188 }
26189 s/.*/./; q'`/stamp-h$_am_stamp_count
26190 ;;
26191
26192 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26193 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
26194 ;;
26195 esac
26196
26197
26198 case $ac_file$ac_mode in
26199 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26200 # Older Autoconf quotes --file arguments for eval, but not when files
26201 # are listed without --file. Let's play safe and only enable the eval
26202 # if we detect the quoting.
26203 # TODO: see whether this extra hack can be removed once we start
26204 # requiring Autoconf 2.70 or later.
26205 case $CONFIG_FILES in #(
26206 *\'*) :
26207 eval set x "$CONFIG_FILES" ;; #(
26208 *) :
26209 set x $CONFIG_FILES ;; #(
26210 *) :
26211 ;;
26212 esac
26213 shift
26214 # Used to flag and report bootstrapping failures.
26215 am_rc=0
26216 for am_mf
26217 do
26218 # Strip MF so we end up with the name of the file.
26219 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
26220 # Check whether this is an Automake generated Makefile which includes
26221 # dependency-tracking related rules and includes.
26222 # Grep'ing the whole file directly is not great: AIX grep has a line
26223 # limit of 2048, but all sed's we know have understand at least 4000.
26224 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26225 || continue
26226 am_dirpart=`$as_dirname -- "$am_mf" ||
26227 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26228 X"$am_mf" : 'X\(//\)[^/]' \| \
26229 X"$am_mf" : 'X\(//\)$' \| \
26230 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26231 printf "%s\n" X"$am_mf" |
26232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26233 s//\1/
26234 q
26235 }
26236 /^X\(\/\/\)[^/].*/{
26237 s//\1/
26238 q
26239 }
26240 /^X\(\/\/\)$/{
26241 s//\1/
26242 q
26243 }
26244 /^X\(\/\).*/{
26245 s//\1/
26246 q
26247 }
26248 s/.*/./; q'`
26249 am_filepart=`$as_basename -- "$am_mf" ||
26250 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26251 X"$am_mf" : 'X\(//\)$' \| \
26252 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26253 printf "%s\n" X/"$am_mf" |
26254 sed '/^.*\/\([^/][^/]*\)\/*$/{
26255 s//\1/
26256 q
26257 }
26258 /^X\/\(\/\/\)$/{
26259 s//\1/
26260 q
26261 }
26262 /^X\/\(\/\).*/{
26263 s//\1/
26264 q
26265 }
26266 s/.*/./; q'`
26267 { echo "$as_me:$LINENO: cd "$am_dirpart" \
26268 && sed -e '/# am--include-marker/d' "$am_filepart" \
26269 | $MAKE -f - am--depfiles" >&5
26270 (cd "$am_dirpart" \
26271 && sed -e '/# am--include-marker/d' "$am_filepart" \
26272 | $MAKE -f - am--depfiles) >&5 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } || am_rc=$?
26276 done
26277 if test $am_rc -ne 0; then
26278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26279 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26280 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26281 for automatic dependency tracking. If GNU make was not used, consider
26282 re-running the configure script with MAKE=\"gmake\" (or whatever is
26283 necessary). You can also try re-running configure with the
26284 '--disable-dependency-tracking' option to at least be able to build
26285 the package (albeit without support for automatic dependency tracking).
26286 See 'config.log' for more details" "$LINENO" 5; }
26287 fi
26288 { am_dirpart=; unset am_dirpart;}
26289 { am_filepart=; unset am_filepart;}
26290 { am_mf=; unset am_mf;}
26291 { am_rc=; unset am_rc;}
26292 rm -f conftest-deps.mk
26293 }
26294 ;;
26295 "libtool":C)
26296
26297 # See if we are running on zsh, and set the options that allow our
26298 # commands through without removal of \ escapes.
26299 if test -n "${ZSH_VERSION+set}"; then
26300 setopt NO_GLOB_SUBST
26301 fi
26302
26303 cfgfile=${ofile}T
26304 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26305 $RM "$cfgfile"
26306
26307 cat <<_LT_EOF >> "$cfgfile"
26308 #! $SHELL
26309 # Generated automatically by $as_me ($PACKAGE) $VERSION
26310 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26311
26312 # Provide generalized library-building support services.
26313 # Written by Gordon Matzigkeit, 1996
26314
26315 # Copyright (C) 2024 Free Software Foundation, Inc.
26316 # This is free software; see the source for copying conditions. There is NO
26317 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26318
26319 # GNU Libtool is free software; you can redistribute it and/or modify
26320 # it under the terms of the GNU General Public License as published by
26321 # the Free Software Foundation; either version 2 of the License, or
26322 # (at your option) any later version.
26323 #
26324 # As a special exception to the GNU General Public License, if you
26325 # distribute this file as part of a program or library that is built
26326 # using GNU Libtool, you may include this file under the same
26327 # distribution terms that you use for the rest of that program.
26328 #
26329 # GNU Libtool is distributed in the hope that it will be useful, but
26330 # WITHOUT ANY WARRANTY; without even the implied warranty of
26331 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26332 # GNU General Public License for more details.
26333 #
26334 # You should have received a copy of the GNU General Public License
26335 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26336
26337
26338 # The names of the tagged configurations supported by this script.
26339 available_tags='CXX '
26340
26341 # Configured defaults for sys_lib_dlsearch_path munging.
26342 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26343
26344 # ### BEGIN LIBTOOL CONFIG
26345
26346 # Whether or not to build static libraries.
26347 build_old_libs=$enable_static
26348
26349 # Which release of libtool.m4 was used?
26350 macro_version=$macro_version
26351 macro_revision=$macro_revision
26352
26353 # Whether or not to build shared libraries.
26354 build_libtool_libs=$enable_shared
26355
26356 # What type of objects to build.
26357 pic_mode=$pic_mode
26358
26359 # Whether or not to optimize for fast installation.
26360 fast_install=$enable_fast_install
26361
26362 # Shared archive member basename,for filename based shared library versioning on AIX.
26363 shared_archive_member_spec=$shared_archive_member_spec
26364
26365 # Shell to use when invoking shell scripts.
26366 SHELL=$lt_SHELL
26367
26368 # An echo program that protects backslashes.
26369 ECHO=$lt_ECHO
26370
26371 # The PATH separator for the build system.
26372 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26373
26374 # The host system.
26375 host_alias=$host_alias
26376 host=$host
26377 host_os=$host_os
26378
26379 # The build system.
26380 build_alias=$build_alias
26381 build=$build
26382 build_os=$build_os
26383
26384 # A sed program that does not truncate output.
26385 SED=$lt_SED
26386
26387 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26388 Xsed="\$SED -e 1s/^X//"
26389
26390 # A grep program that handles long lines.
26391 GREP=$lt_GREP
26392
26393 # An ERE matcher.
26394 EGREP=$lt_EGREP
26395
26396 # A literal string matcher.
26397 FGREP=$lt_FGREP
26398
26399 # A BSD- or MS-compatible name lister.
26400 NM=$lt_NM
26401
26402 # Whether we need soft or hard links.
26403 LN_S=$lt_LN_S
26404
26405 # What is the maximum length of a command?
26406 max_cmd_len=$max_cmd_len
26407
26408 # Object file suffix (normally "o").
26409 objext=$ac_objext
26410
26411 # Executable file suffix (normally "").
26412 exeext=$exeext
26413
26414 # whether the shell understands "unset".
26415 lt_unset=$lt_unset
26416
26417 # turn spaces into newlines.
26418 SP2NL=$lt_lt_SP2NL
26419
26420 # turn newlines into spaces.
26421 NL2SP=$lt_lt_NL2SP
26422
26423 # convert \$build file names to \$host format.
26424 to_host_file_cmd=$lt_cv_to_host_file_cmd
26425
26426 # convert \$build files to toolchain format.
26427 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26428
26429 # A file(cmd) program that detects file types.
26430 FILECMD=$lt_FILECMD
26431
26432 # An object symbol dumper.
26433 OBJDUMP=$lt_OBJDUMP
26434
26435 # Method to check whether dependent libraries are shared objects.
26436 deplibs_check_method=$lt_deplibs_check_method
26437
26438 # Command to use when deplibs_check_method = "file_magic".
26439 file_magic_cmd=$lt_file_magic_cmd
26440
26441 # How to find potential files when deplibs_check_method = "file_magic".
26442 file_magic_glob=$lt_file_magic_glob
26443
26444 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26445 want_nocaseglob=$lt_want_nocaseglob
26446
26447 # DLL creation program.
26448 DLLTOOL=$lt_DLLTOOL
26449
26450 # Command to associate shared and link libraries.
26451 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26452
26453 # The archiver.
26454 AR=$lt_AR
26455
26456 # Flags to create an archive (by configure).
26457 lt_ar_flags=$lt_ar_flags
26458
26459 # Flags to create an archive.
26460 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
26461
26462 # How to feed a file listing to the archiver.
26463 archiver_list_spec=$lt_archiver_list_spec
26464
26465 # A symbol stripping program.
26466 STRIP=$lt_STRIP
26467
26468 # Commands used to install an old-style archive.
26469 RANLIB=$lt_RANLIB
26470 old_postinstall_cmds=$lt_old_postinstall_cmds
26471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26472
26473 # Whether to use a lock for old archive extraction.
26474 lock_old_archive_extraction=$lock_old_archive_extraction
26475
26476 # A C compiler.
26477 LTCC=$lt_CC
26478
26479 # LTCC compiler flags.
26480 LTCFLAGS=$lt_CFLAGS
26481
26482 # Take the output of nm and produce a listing of raw symbols and C names.
26483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26484
26485 # Transform the output of nm in a proper C declaration.
26486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26487
26488 # Transform the output of nm into a list of symbols to manually relocate.
26489 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26490
26491 # Transform the output of nm in a C name address pair.
26492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26493
26494 # Transform the output of nm in a C name address pair when lib prefix is needed.
26495 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26496
26497 # The name lister interface.
26498 nm_interface=$lt_lt_cv_nm_interface
26499
26500 # Specify filename containing input files for \$NM.
26501 nm_file_list_spec=$lt_nm_file_list_spec
26502
26503 # The root where to search for dependent libraries,and where our libraries should be installed.
26504 lt_sysroot=$lt_sysroot
26505
26506 # Command to truncate a binary pipe.
26507 lt_truncate_bin=$lt_lt_cv_truncate_bin
26508
26509 # The name of the directory that contains temporary libtool files.
26510 objdir=$objdir
26511
26512 # Used to examine libraries when file_magic_cmd begins with "file".
26513 MAGIC_CMD=$MAGIC_CMD
26514
26515 # Must we lock files when doing compilation?
26516 need_locks=$lt_need_locks
26517
26518 # Manifest tool.
26519 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26520
26521 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26522 DSYMUTIL=$lt_DSYMUTIL
26523
26524 # Tool to change global to local symbols on Mac OS X.
26525 NMEDIT=$lt_NMEDIT
26526
26527 # Tool to manipulate fat objects and archives on Mac OS X.
26528 LIPO=$lt_LIPO
26529
26530 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26531 OTOOL=$lt_OTOOL
26532
26533 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26534 OTOOL64=$lt_OTOOL64
26535
26536 # Old archive suffix (normally "a").
26537 libext=$libext
26538
26539 # Shared library suffix (normally ".so").
26540 shrext_cmds=$lt_shrext_cmds
26541
26542 # The commands to extract the exported symbol list from a shared archive.
26543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26544
26545 # Variables whose values should be saved in libtool wrapper scripts and
26546 # restored at link time.
26547 variables_saved_for_relink=$lt_variables_saved_for_relink
26548
26549 # Do we need the "lib" prefix for modules?
26550 need_lib_prefix=$need_lib_prefix
26551
26552 # Do we need a version for libraries?
26553 need_version=$need_version
26554
26555 # Library versioning type.
26556 version_type=$version_type
26557
26558 # Shared library runtime path variable.
26559 runpath_var=$runpath_var
26560
26561 # Shared library path variable.
26562 shlibpath_var=$shlibpath_var
26563
26564 # Is shlibpath searched before the hard-coded library search path?
26565 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26566
26567 # Format of library name prefix.
26568 libname_spec=$lt_libname_spec
26569
26570 # List of archive names. First name is the real one, the rest are links.
26571 # The last name is the one that the linker finds with -lNAME
26572 library_names_spec=$lt_library_names_spec
26573
26574 # The coded name of the library, if different from the real name.
26575 soname_spec=$lt_soname_spec
26576
26577 # Permission mode override for installation of shared libraries.
26578 install_override_mode=$lt_install_override_mode
26579
26580 # Command to use after installation of a shared archive.
26581 postinstall_cmds=$lt_postinstall_cmds
26582
26583 # Command to use after uninstallation of a shared archive.
26584 postuninstall_cmds=$lt_postuninstall_cmds
26585
26586 # Commands used to finish a libtool library installation in a directory.
26587 finish_cmds=$lt_finish_cmds
26588
26589 # As "finish_cmds", except a single script fragment to be evaled but
26590 # not shown.
26591 finish_eval=$lt_finish_eval
26592
26593 # Whether we should hardcode library paths into libraries.
26594 hardcode_into_libs=$hardcode_into_libs
26595
26596 # Compile-time system search path for libraries.
26597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26598
26599 # Detected run-time system search path for libraries.
26600 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26601
26602 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26603 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26604
26605 # Whether dlopen is supported.
26606 dlopen_support=$enable_dlopen
26607
26608 # Whether dlopen of programs is supported.
26609 dlopen_self=$enable_dlopen_self
26610
26611 # Whether dlopen of statically linked programs is supported.
26612 dlopen_self_static=$enable_dlopen_self_static
26613
26614 # Commands to strip libraries.
26615 old_striplib=$lt_old_striplib
26616 striplib=$lt_striplib
26617
26618
26619 # The linker used to build libraries.
26620 LD=$lt_LD
26621
26622 # How to create reloadable object files.
26623 reload_flag=$lt_reload_flag
26624 reload_cmds=$lt_reload_cmds
26625
26626 # Commands used to build an old-style archive.
26627 old_archive_cmds=$lt_old_archive_cmds
26628
26629 # A language specific compiler.
26630 CC=$lt_compiler
26631
26632 # Is the compiler the GNU compiler?
26633 with_gcc=$GCC
26634
26635 # Compiler flag to turn off builtin functions.
26636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26637
26638 # Additional compiler flags for building library objects.
26639 pic_flag=$lt_lt_prog_compiler_pic
26640
26641 # How to pass a linker flag through the compiler.
26642 wl=$lt_lt_prog_compiler_wl
26643
26644 # Compiler flag to prevent dynamic linking.
26645 link_static_flag=$lt_lt_prog_compiler_static
26646
26647 # Does compiler simultaneously support -c and -o options?
26648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26649
26650 # Whether or not to add -lc for building shared libraries.
26651 build_libtool_need_lc=$archive_cmds_need_lc
26652
26653 # Whether or not to disallow shared libs when runtime libs are static.
26654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26655
26656 # Compiler flag to allow reflexive dlopens.
26657 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26658
26659 # Compiler flag to generate shared objects directly from archives.
26660 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26661
26662 # Whether the compiler copes with passing no objects directly.
26663 compiler_needs_object=$lt_compiler_needs_object
26664
26665 # Create an old-style archive from a shared archive.
26666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26667
26668 # Create a temporary old-style archive to link instead of a shared archive.
26669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26670
26671 # Commands used to build a shared archive.
26672 archive_cmds=$lt_archive_cmds
26673 archive_expsym_cmds=$lt_archive_expsym_cmds
26674
26675 # Commands used to build a loadable module if different from building
26676 # a shared archive.
26677 module_cmds=$lt_module_cmds
26678 module_expsym_cmds=$lt_module_expsym_cmds
26679
26680 # Whether we are building with GNU ld or not.
26681 with_gnu_ld=$lt_with_gnu_ld
26682
26683 # Flag that allows shared libraries with undefined symbols to be built.
26684 allow_undefined_flag=$lt_allow_undefined_flag
26685
26686 # Flag that enforces no undefined symbols.
26687 no_undefined_flag=$lt_no_undefined_flag
26688
26689 # Flag to hardcode \$libdir into a binary during linking.
26690 # This must work even if \$libdir does not exist
26691 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26692
26693 # Whether we need a single "-rpath" flag with a separated argument.
26694 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26695
26696 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26697 # DIR into the resulting binary.
26698 hardcode_direct=$hardcode_direct
26699
26700 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26701 # DIR into the resulting binary and the resulting library dependency is
26702 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
26703 # library is relocated.
26704 hardcode_direct_absolute=$hardcode_direct_absolute
26705
26706 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26707 # into the resulting binary.
26708 hardcode_minus_L=$hardcode_minus_L
26709
26710 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26711 # into the resulting binary.
26712 hardcode_shlibpath_var=$hardcode_shlibpath_var
26713
26714 # Set to "yes" if building a shared library automatically hardcodes DIR
26715 # into the library and all subsequent libraries and executables linked
26716 # against it.
26717 hardcode_automatic=$hardcode_automatic
26718
26719 # Set to yes if linker adds runtime paths of dependent libraries
26720 # to runtime path list.
26721 inherit_rpath=$inherit_rpath
26722
26723 # Whether libtool must link a program against all its dependency libraries.
26724 link_all_deplibs=$link_all_deplibs
26725
26726 # Set to "yes" if exported symbols are required.
26727 always_export_symbols=$always_export_symbols
26728
26729 # The commands to list exported symbols.
26730 export_symbols_cmds=$lt_export_symbols_cmds
26731
26732 # Symbols that should not be listed in the preloaded symbols.
26733 exclude_expsyms=$lt_exclude_expsyms
26734
26735 # Symbols that must always be exported.
26736 include_expsyms=$lt_include_expsyms
26737
26738 # Commands necessary for linking programs (against libraries) with templates.
26739 prelink_cmds=$lt_prelink_cmds
26740
26741 # Commands necessary for finishing linking programs.
26742 postlink_cmds=$lt_postlink_cmds
26743
26744 # Specify filename containing input files.
26745 file_list_spec=$lt_file_list_spec
26746
26747 # How to hardcode a shared library path into an executable.
26748 hardcode_action=$hardcode_action
26749
26750 # The directories searched by this compiler when creating a shared library.
26751 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26752
26753 # Dependencies to place before and after the objects being linked to
26754 # create a shared library.
26755 predep_objects=$lt_predep_objects
26756 postdep_objects=$lt_postdep_objects
26757 predeps=$lt_predeps
26758 postdeps=$lt_postdeps
26759
26760 # The library search path used internally by the compiler when linking
26761 # a shared library.
26762 compiler_lib_search_path=$lt_compiler_lib_search_path
26763
26764 # ### END LIBTOOL CONFIG
26765
26766 _LT_EOF
26767
26768 cat <<'_LT_EOF' >> "$cfgfile"
26769
26770 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26771
26772 # func_munge_path_list VARIABLE PATH
26773 # -----------------------------------
26774 # VARIABLE is name of variable containing _space_ separated list of
26775 # directories to be munged by the contents of PATH, which is string
26776 # having a format:
26777 # "DIR[:DIR]:"
26778 # string "DIR[ DIR]" will be prepended to VARIABLE
26779 # ":DIR[:DIR]"
26780 # string "DIR[ DIR]" will be appended to VARIABLE
26781 # "DIRP[:DIRP]::[DIRA:]DIRA"
26782 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26783 # "DIRA[ DIRA]" will be appended to VARIABLE
26784 # "DIR[:DIR]"
26785 # VARIABLE will be replaced by "DIR[ DIR]"
26786 func_munge_path_list ()
26787 {
26788 case x$2 in
26789 x)
26790 ;;
26791 *:)
26792 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26793 ;;
26794 x:*)
26795 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26796 ;;
26797 *::*)
26798 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26799 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26800 ;;
26801 *)
26802 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26803 ;;
26804 esac
26805 }
26806
26807
26808 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26809 func_cc_basename ()
26810 {
26811 for cc_temp in $*""; do
26812 case $cc_temp in
26813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26815 \-*) ;;
26816 *) break;;
26817 esac
26818 done
26819 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26820 }
26821
26822
26823 # ### END FUNCTIONS SHARED WITH CONFIGURE
26824
26825 _LT_EOF
26826
26827 case $host_os in
26828 aix3*)
26829 cat <<\_LT_EOF >> "$cfgfile"
26830 # AIX sometimes has problems with the GCC collect2 program. For some
26831 # reason, if we set the COLLECT_NAMES environment variable, the problems
26832 # vanish in a puff of smoke.
26833 if test set != "${COLLECT_NAMES+set}"; then
26834 COLLECT_NAMES=
26835 export COLLECT_NAMES
26836 fi
26837 _LT_EOF
26838 ;;
26839 esac
26840
26841
26842
26843 ltmain=$ac_aux_dir/ltmain.sh
26844
26845
26846 # We use sed instead of cat because bash on DJGPP gets confused if
26847 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26848 # text mode, it properly converts lines to CR/LF. This bash problem
26849 # is reportedly fixed, but why not run on old versions too?
26850 $SED '$q' "$ltmain" >> "$cfgfile" \
26851 || (rm -f "$cfgfile"; exit 1)
26852
26853 mv -f "$cfgfile" "$ofile" ||
26854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26855 chmod +x "$ofile"
26856
26857
26858 cat <<_LT_EOF >> "$ofile"
26859
26860 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26861
26862 # The linker used to build libraries.
26863 LD=$lt_LD_CXX
26864
26865 # How to create reloadable object files.
26866 reload_flag=$lt_reload_flag_CXX
26867 reload_cmds=$lt_reload_cmds_CXX
26868
26869 # Commands used to build an old-style archive.
26870 old_archive_cmds=$lt_old_archive_cmds_CXX
26871
26872 # A language specific compiler.
26873 CC=$lt_compiler_CXX
26874
26875 # Is the compiler the GNU compiler?
26876 with_gcc=$GCC_CXX
26877
26878 # Compiler flag to turn off builtin functions.
26879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26880
26881 # Additional compiler flags for building library objects.
26882 pic_flag=$lt_lt_prog_compiler_pic_CXX
26883
26884 # How to pass a linker flag through the compiler.
26885 wl=$lt_lt_prog_compiler_wl_CXX
26886
26887 # Compiler flag to prevent dynamic linking.
26888 link_static_flag=$lt_lt_prog_compiler_static_CXX
26889
26890 # Does compiler simultaneously support -c and -o options?
26891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26892
26893 # Whether or not to add -lc for building shared libraries.
26894 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26895
26896 # Whether or not to disallow shared libs when runtime libs are static.
26897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26898
26899 # Compiler flag to allow reflexive dlopens.
26900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26901
26902 # Compiler flag to generate shared objects directly from archives.
26903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26904
26905 # Whether the compiler copes with passing no objects directly.
26906 compiler_needs_object=$lt_compiler_needs_object_CXX
26907
26908 # Create an old-style archive from a shared archive.
26909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26910
26911 # Create a temporary old-style archive to link instead of a shared archive.
26912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26913
26914 # Commands used to build a shared archive.
26915 archive_cmds=$lt_archive_cmds_CXX
26916 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26917
26918 # Commands used to build a loadable module if different from building
26919 # a shared archive.
26920 module_cmds=$lt_module_cmds_CXX
26921 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26922
26923 # Whether we are building with GNU ld or not.
26924 with_gnu_ld=$lt_with_gnu_ld_CXX
26925
26926 # Flag that allows shared libraries with undefined symbols to be built.
26927 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26928
26929 # Flag that enforces no undefined symbols.
26930 no_undefined_flag=$lt_no_undefined_flag_CXX
26931
26932 # Flag to hardcode \$libdir into a binary during linking.
26933 # This must work even if \$libdir does not exist
26934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26935
26936 # Whether we need a single "-rpath" flag with a separated argument.
26937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26938
26939 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26940 # DIR into the resulting binary.
26941 hardcode_direct=$hardcode_direct_CXX
26942
26943 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26944 # DIR into the resulting binary and the resulting library dependency is
26945 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
26946 # library is relocated.
26947 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26948
26949 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26950 # into the resulting binary.
26951 hardcode_minus_L=$hardcode_minus_L_CXX
26952
26953 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26954 # into the resulting binary.
26955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26956
26957 # Set to "yes" if building a shared library automatically hardcodes DIR
26958 # into the library and all subsequent libraries and executables linked
26959 # against it.
26960 hardcode_automatic=$hardcode_automatic_CXX
26961
26962 # Set to yes if linker adds runtime paths of dependent libraries
26963 # to runtime path list.
26964 inherit_rpath=$inherit_rpath_CXX
26965
26966 # Whether libtool must link a program against all its dependency libraries.
26967 link_all_deplibs=$link_all_deplibs_CXX
26968
26969 # Set to "yes" if exported symbols are required.
26970 always_export_symbols=$always_export_symbols_CXX
26971
26972 # The commands to list exported symbols.
26973 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26974
26975 # Symbols that should not be listed in the preloaded symbols.
26976 exclude_expsyms=$lt_exclude_expsyms_CXX
26977
26978 # Symbols that must always be exported.
26979 include_expsyms=$lt_include_expsyms_CXX
26980
26981 # Commands necessary for linking programs (against libraries) with templates.
26982 prelink_cmds=$lt_prelink_cmds_CXX
26983
26984 # Commands necessary for finishing linking programs.
26985 postlink_cmds=$lt_postlink_cmds_CXX
26986
26987 # Specify filename containing input files.
26988 file_list_spec=$lt_file_list_spec_CXX
26989
26990 # How to hardcode a shared library path into an executable.
26991 hardcode_action=$hardcode_action_CXX
26992
26993 # The directories searched by this compiler when creating a shared library.
26994 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26995
26996 # Dependencies to place before and after the objects being linked to
26997 # create a shared library.
26998 predep_objects=$lt_predep_objects_CXX
26999 postdep_objects=$lt_postdep_objects_CXX
27000 predeps=$lt_predeps_CXX
27001 postdeps=$lt_postdeps_CXX
27002
27003 # The library search path used internally by the compiler when linking
27004 # a shared library.
27005 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27006
27007 # ### END LIBTOOL TAG CONFIG: CXX
27008 _LT_EOF
27009
27010 ;;
27011 "po-directories":C)
27012 for ac_file in $CONFIG_FILES; do
27013 # Support "outfile[:infile[:infile...]]"
27014 case "$ac_file" in
27015 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27016 esac
27017 # PO directories have a Makefile.in generated from Makefile.in.in.
27018 case "$ac_file" in */Makefile.in)
27019 # Adjust a relative srcdir.
27020 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27021 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
27022 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27023 # In autoconf-2.13 it is called $ac_given_srcdir.
27024 # In autoconf-2.50 it is called $srcdir.
27025 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27026 case "$ac_given_srcdir" in
27027 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27028 /*) top_srcdir="$ac_given_srcdir" ;;
27029 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27030 esac
27031 # Treat a directory as a PO directory if and only if it has a
27032 # POTFILES.in file. This allows packages to have multiple PO
27033 # directories under different names or in different locations.
27034 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27035 rm -f "$ac_dir/POTFILES"
27036 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27037 gt_tab=`printf '\t'`
27038 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"
27039 POMAKEFILEDEPS="POTFILES.in"
27040 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27041 # on $ac_dir but don't depend on user-specified configuration
27042 # parameters.
27043 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27044 # The LINGUAS file contains the set of available languages.
27045 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27046 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27047 fi
27048 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27049 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27050 else
27051 # The set of available languages was given in configure.in.
27052 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
27053 fi
27054 # Compute POFILES
27055 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27056 # Compute UPDATEPOFILES
27057 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27058 # Compute DUMMYPOFILES
27059 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27060 # Compute GMOFILES
27061 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27062 case "$ac_given_srcdir" in
27063 .) srcdirpre= ;;
27064 *) srcdirpre='$(srcdir)/' ;;
27065 esac
27066 POFILES=
27067 UPDATEPOFILES=
27068 DUMMYPOFILES=
27069 GMOFILES=
27070 for lang in $ALL_LINGUAS; do
27071 POFILES="$POFILES $srcdirpre$lang.po"
27072 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27073 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27074 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27075 done
27076 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27077 # environment variable.
27078 INST_LINGUAS=
27079 if test -n "$ALL_LINGUAS"; then
27080 for presentlang in $ALL_LINGUAS; do
27081 useit=no
27082 if test "%UNSET%" != "$LINGUAS"; then
27083 desiredlanguages="$LINGUAS"
27084 else
27085 desiredlanguages="$ALL_LINGUAS"
27086 fi
27087 for desiredlang in $desiredlanguages; do
27088 # Use the presentlang catalog if desiredlang is
27089 # a. equal to presentlang, or
27090 # b. a variant of presentlang (because in this case,
27091 # presentlang can be used as a fallback for messages
27092 # which are not translated in the desiredlang catalog).
27093 case "$desiredlang" in
27094 "$presentlang"*) useit=yes;;
27095 esac
27096 done
27097 if test $useit = yes; then
27098 INST_LINGUAS="$INST_LINGUAS $presentlang"
27099 fi
27100 done
27101 fi
27102 CATALOGS=
27103 if test -n "$INST_LINGUAS"; then
27104 for lang in $INST_LINGUAS; do
27105 CATALOGS="$CATALOGS $lang.gmo"
27106 done
27107 fi
27108 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27109 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"
27110 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27111 if test -f "$f"; then
27112 case "$f" in
27113 *.orig | *.bak | *~) ;;
27114 *) cat "$f" >> "$ac_dir/Makefile" ;;
27115 esac
27116 fi
27117 done
27118 fi
27119 ;;
27120 esac
27121 done ;;
27122
27123 esac
27124 done # for ac_tag
27125
27126
27127 as_fn_exit 0
27128 _ACEOF
27129 ac_clean_files=$ac_clean_files_save
27130
27131 test $ac_write_fail = 0 ||
27132 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27133
27134
27135 # configure is writing to config.log, and then calls config.status.
27136 # config.status does its own redirection, appending to config.log.
27137 # Unfortunately, on DOS this fails, as config.log is still kept open
27138 # by configure, so config.status won't be able to write to it; its
27139 # output is simply discarded. So we exec the FD to /dev/null,
27140 # effectively closing config.log, so it can be properly (re)opened and
27141 # appended to by config.status. When coming back to configure, we
27142 # need to make the FD available again.
27143 if test "$no_create" != yes; then
27144 ac_cs_success=:
27145 ac_config_status_args=
27146 test "$silent" = yes &&
27147 ac_config_status_args="$ac_config_status_args --quiet"
27148 exec 5>/dev/null
27149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27150 exec 5>>config.log
27151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27152 # would make configure fail if this is the last instruction.
27153 $ac_cs_success || as_fn_exit 1
27154 fi
27155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27157 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27158 fi
27159
27160
27161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
27162 Build options:
27163 Version $VERSION
27164 Install prefix $prefix
27165 DBM $DATABASE_FORMAT
27166 Use boost $enable_boost
27167 Use opencc $enable_opencc
27168 Use libzhuyin $enable_libzhuyin
27169 " >&5
27170 printf "%s\n" "
27171 Build options:
27172 Version $VERSION
27173 Install prefix $prefix
27174 DBM $DATABASE_FORMAT
27175 Use boost $enable_boost
27176 Use opencc $enable_opencc
27177 Use libzhuyin $enable_libzhuyin
27178 " >&6; }
27179