Debian Codegraph @

configure~

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for groonga 16.0.5.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433 # as_fn_nop
434 # ---------
435 # Do nothing but, unlike ":", preserve the value of $?.
436 as_fn_nop ()
437 {
438 return $?
439 }
440 as_nop=as_fn_nop
441
442 # as_fn_error STATUS ERROR [LINENO LOG_FD]
443 # ----------------------------------------
444 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
445 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
446 # script with STATUS, using 1 if that was 0.
447 as_fn_error ()
448 {
449 as_status=$1; test $as_status -eq 0 && as_status=1
450 if test "$4"; then
451 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
453 fi
454 printf "%s\n" "$as_me: error: $2" >&2
455 as_fn_exit $as_status
456 } # as_fn_error
457
458 if expr a : '\(a\)' >/dev/null 2>&1 &&
459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
460 as_expr=expr
461 else
462 as_expr=false
463 fi
464
465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
466 as_basename=basename
467 else
468 as_basename=false
469 fi
470
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
475 fi
476
477 as_me=`$as_basename -- "$0" ||
478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
479 X"$0" : 'X\(//\)$' \| \
480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
481 printf "%s\n" X/"$0" |
482 sed '/^.*\/\([^/][^/]*\)\/*$/{
483 s//\1/
484 q
485 }
486 /^X\/\(\/\/\)$/{
487 s//\1/
488 q
489 }
490 /^X\/\(\/\).*/{
491 s//\1/
492 q
493 }
494 s/.*/./; q'`
495
496 # Avoid depending upon Character Ranges.
497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
500 as_cr_digits='0123456789'
501 as_cr_alnum=$as_cr_Letters$as_cr_digits
502
503
504 as_lineno_1=$LINENO as_lineno_1a=$LINENO
505 as_lineno_2=$LINENO as_lineno_2a=$LINENO
506 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
507 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
508 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
509 sed -n '
510 p
511 /[$]LINENO/=
512 ' <$as_myself |
513 sed '
514 s/[$]LINENO.*/&-/
515 t lineno
516 b
517 :lineno
518 N
519 :loop
520 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
521 t loop
522 s/-\n.*//
523 ' >$as_me.lineno &&
524 chmod +x "$as_me.lineno" ||
525 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
526
527 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
528 # already done that, so ensure we don't try to do so again and fall
529 # in an infinite loop. This has already happened in practice.
530 _as_can_reexec=no; export _as_can_reexec
531 # Don't try to exec as it changes $[0], causing all sort of problems
532 # (the dirname of $[0] is not the place where we might find the
533 # original and so on. Autoconf is especially sensitive to this).
534 . "./$as_me.lineno"
535 # Exit status is that of the last command.
536 exit
537 }
538
539
540 # Determine whether it's possible to make 'echo' print without a newline.
541 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
542 # for compatibility with existing Makefiles.
543 ECHO_C= ECHO_N= ECHO_T=
544 case `echo -n x` in #(((((
545 -n*)
546 case `echo 'xy\c'` in
547 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
548 xy) ECHO_C='\c';;
549 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
550 ECHO_T=' ';;
551 esac;;
552 *)
553 ECHO_N='-n';;
554 esac
555
556 # For backward compatibility with old third-party macros, we provide
557 # the shell variables $as_echo and $as_echo_n. New code should use
558 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
559 as_echo='printf %s\n'
560 as_echo_n='printf %s'
561
562
563 rm -f conf$$ conf$$.exe conf$$.file
564 if test -d conf$$.dir; then
565 rm -f conf$$.dir/conf$$.file
566 else
567 rm -f conf$$.dir
568 mkdir conf$$.dir 2>/dev/null
569 fi
570 if (echo >conf$$.file) 2>/dev/null; then
571 if ln -s conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s='ln -s'
573 # ... but there are two gotchas:
574 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
575 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
576 # In both cases, we have to default to `cp -pR'.
577 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
578 as_ln_s='cp -pR'
579 elif ln conf$$.file conf$$ 2>/dev/null; then
580 as_ln_s=ln
581 else
582 as_ln_s='cp -pR'
583 fi
584 else
585 as_ln_s='cp -pR'
586 fi
587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
588 rmdir conf$$.dir 2>/dev/null
589
590 if mkdir -p . 2>/dev/null; then
591 as_mkdir_p='mkdir -p "$as_dir"'
592 else
593 test -d ./-p && rmdir ./-p
594 as_mkdir_p=false
595 fi
596
597 as_test_x='test -x'
598 as_executable_p=as_fn_executable_p
599
600 # Sed expression to map a string onto a valid CPP name.
601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
602
603 # Sed expression to map a string onto a valid variable name.
604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
605
606 SHELL=${CONFIG_SHELL-/bin/sh}
607
608
609 test -n "$DJDIR" || exec 7<&0 </dev/null
610 exec 6>&1
611
612 # Name of the host.
613 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
614 # so uname gets run too.
615 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
616
617 #
618 # Initializations.
619 #
620 ac_default_prefix=/usr/local
621 ac_clean_files=
622 ac_config_libobj_dir=.
623 LIBOBJS=
624 cross_compiling=no
625 subdirs=
626 MFLAGS=
627 MAKEFLAGS=
628
629 # Identity of this package.
630 PACKAGE_NAME='groonga'
631 PACKAGE_TARNAME='groonga'
632 PACKAGE_VERSION='16.0.5'
633 PACKAGE_STRING='groonga 16.0.5'
634 PACKAGE_BUGREPORT='[email protected]'
635 PACKAGE_URL=''
636
637 # Factoring default headers for most tests.
638 ac_includes_default="\
639 #include <stddef.h>
640 #ifdef HAVE_STDIO_H
641 # include <stdio.h>
642 #endif
643 #ifdef HAVE_STDLIB_H
644 # include <stdlib.h>
645 #endif
646 #ifdef HAVE_STRING_H
647 # include <string.h>
648 #endif
649 #ifdef HAVE_INTTYPES_H
650 # include <inttypes.h>
651 #endif
652 #ifdef HAVE_STDINT_H
653 # include <stdint.h>
654 #endif
655 #ifdef HAVE_STRINGS_H
656 # include <strings.h>
657 #endif
658 #ifdef HAVE_SYS_TYPES_H
659 # include <sys/types.h>
660 #endif
661 #ifdef HAVE_SYS_STAT_H
662 # include <sys/stat.h>
663 #endif
664 #ifdef HAVE_UNISTD_H
665 # include <unistd.h>
666 #endif"
667
668 ac_header_c_list=
669 enable_option_checking=no
670 ac_subst_vars='am__EXEEXT_FALSE
671 am__EXEEXT_TRUE
672 LTLIBOBJS
673 LIBOBJS
674 pkgsysconfdir
675 LAUNCHPAD_UPLOADER_PGP_KEY
676 LAUNCHPAD_PPA
677 RSYNC_PATH
678 WITH_BUNDLED_ONIGMO_FALSE
679 WITH_BUNDLED_ONIGMO_TRUE
680 GRN_WITH_ONIGMO
681 subdirs
682 ONIGMO_LIBS
683 ONIGMO_CFLAGS
684 WITH_SHARED_ONIGMO_FALSE
685 WITH_SHARED_ONIGMO_TRUE
686 HAVE_SYS_SYSMACROS_H_FALSE
687 HAVE_SYS_SYSMACROS_H_TRUE
688 MRUBY_CPPFLAGS
689 WITH_MRUBY_FALSE
690 WITH_MRUBY_TRUE
691 MRUBY_CFLAGS
692 GRN_WITH_MRUBY
693 GROONGA_ORG_PATH
694 GRN_DEFS
695 GRN_CFLAGS
696 GRN_DEFAULT_RELATIVE_DOCUMENT_ROOT
697 GRN_EXPANDED_DEFAULT_DOCUMENT_ROOT
698 GRN_DEFAULT_DOCUMENT_ROOT
699 GRN_DEFAULT_DOCUMENT_ROOT_BASE
700 ruby_scriptsdir
701 relative_ruby_scriptsdir
702 relative_ruby_scriptsdir_base
703 examples_dictionarydir
704 examplesdir
705 expression_rewriter_pluginsdir
706 function_pluginsdir
707 sharding_pluginsdir
708 token_filter_pluginsdir
709 ruby_pluginsdir
710 suggest_pluginsdir
711 query_expander_pluginsdir
712 tokenizer_pluginsdir
713 expanded_pluginsdir
714 pluginsdir
715 relative_pluginsdir
716 expanded_relative_pluginsdir_base
717 relative_pluginsdir_base
718 RHEL_PLATFORM_FALSE
719 RHEL_PLATFORM_TRUE
720 INSTALL_MUNIN_PLUGINS_FALSE
721 INSTALL_MUNIN_PLUGINS_TRUE
722 DOCUMENT_VERSION_FULL
723 DOCUMENT_VERSION
724 HAVE_BUILT_DOCUMENT_FALSE
725 HAVE_BUILT_DOCUMENT_TRUE
726 DOCUMENT_BUILDABLE_FALSE
727 DOCUMENT_BUILDABLE_TRUE
728 DOCUMENT_AVAILABLE_FALSE
729 DOCUMENT_AVAILABLE_TRUE
730 SPHINX_BUILD
731 ATOMIC_LIBS
732 ENABLE_SUGGEST_LEARNER_FALSE
733 ENABLE_SUGGEST_LEARNER_TRUE
734 MESSAGE_PACK_LIBS
735 MESSAGE_PACK_CFLAGS
736 LIBEVENT_LIBS
737 LIBEVENT_CFLAGS
738 LIBZMQ_LIBS
739 LIBZMQ_CFLAGS
740 WITH_LIBSTEMMER_FALSE
741 WITH_LIBSTEMMER_TRUE
742 LIBSTEMMER_LIBS
743 LIBSTEMMER_LDFLAGS
744 LIBSTEMMER_CFLAGS
745 WITH_KYTEA_FALSE
746 WITH_KYTEA_TRUE
747 KYTEA_LIBS
748 KYTEA_CFLAGS
749 WITH_MECAB_FALSE
750 WITH_MECAB_TRUE
751 MECAB_LIBS
752 MECAB_LDFLAGS
753 MECAB_CPPFLAGS
754 MECAB_CONFIG
755 BUNDLED_MECAB_NAIST_JDIC_VERSION
756 BUNDLED_MECAB_VERSION
757 LIBXXHASH_LIBS
758 LIBXXHASH_CFLAGS
759 RAPIDJSON_LIBS
760 RAPIDJSON_CFLAGS
761 BUNDLED_RAPIDJSON_VERSION
762 GRN_WITH_APACHE_ARROW_FALSE
763 GRN_WITH_APACHE_ARROW_TRUE
764 APACHE_ARROW_LIBS
765 APACHE_ARROW_CFLAGS
766 LUAJIT_LIBS
767 LUAJIT_CFLAGS
768 LIBZSTD_LIBS
769 LIBZSTD_CFLAGS
770 LIBLZ4_LIBS
771 LIBLZ4_CFLAGS
772 GRN_WITH_ZLIB
773 ZLIB_LIB_DIR
774 ZLIB_LIBS
775 ZLIB_CFLAGS
776 LIBEDIT_LIBS
777 LIBEDIT_CFLAGS
778 WITH_LEMON_FALSE
779 WITH_LEMON_TRUE
780 LEMON
781 WITH_COMMAND_TEST_FALSE
782 WITH_COMMAND_TEST_TRUE
783 WITH_RUBY_FALSE
784 WITH_RUBY_TRUE
785 RUBY
786 WITH_BENCHMARK_FALSE
787 WITH_BENCHMARK_TRUE
788 GROONGA_MRUBY
789 GROONGA_SUGGEST_CREATE_DATASET
790 GROONGA_BENCHMARK
791 GROONGA
792 WINDOWS_LIBS
793 WINDOWS_LDFLAGS
794 grn_log_path
795 grn_debug
796 GRN_VERSION_FULL
797 GRN_DLL_FILENAME
798 LT_VERSION_INFO
799 LT_AGE
800 LT_REVISION
801 LT_CURRENT
802 RC
803 CXXCPP
804 LT_SYS_LIBRARY_PATH
805 OTOOL64
806 OTOOL
807 LIPO
808 NMEDIT
809 DSYMUTIL
810 MANIFEST_TOOL
811 RANLIB
812 ac_ct_AR
813 AR
814 FILECMD
815 LN_S
816 NM
817 ac_ct_DUMPBIN
818 DUMPBIN
819 LD
820 FGREP
821 EGREP
822 GREP
823 SED
824 LIBTOOL
825 OBJDUMP
826 DLLTOOL
827 AS
828 NO_MISSING_FIELD_INITIALIZES_CFLAGS
829 NO_BAD_FUNCTION_CAST_CFLAGS
830 NO_FLOAT_EQUAL_CFLAGS
831 NO_STRICT_ALIASING_CFLAGS
832 TEST_CXXFLAGS
833 TEST_CFLAGS
834 PKG_CONFIG_LIBDIR
835 PKG_CONFIG_PATH
836 PKG_CONFIG
837 HAVE_CXX17
838 HAVE_CXX20
839 am__fastdepCXX_FALSE
840 am__fastdepCXX_TRUE
841 CXXDEPMODE
842 ac_ct_CXX
843 CXXFLAGS
844 CXX
845 am__fastdepCC_FALSE
846 am__fastdepCC_TRUE
847 CCDEPMODE
848 am__nodep
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__include
853 DEPDIR
854 OBJEXT
855 EXEEXT
856 ac_ct_CC
857 CPPFLAGS
858 LDFLAGS
859 CFLAGS
860 CC
861 PLATFORM_WIN32_FALSE
862 PLATFORM_WIN32_TRUE
863 OS_WIN32_FALSE
864 OS_WIN32_TRUE
865 host_os
866 host_vendor
867 host_cpu
868 host
869 build_os
870 build_vendor
871 build_cpu
872 build
873 PACKAGE_LABEL
874 AM_BACKSLASH
875 AM_DEFAULT_VERBOSITY
876 AM_DEFAULT_V
877 AM_V
878 CSCOPE
879 ETAGS
880 CTAGS
881 am__untar
882 am__tar
883 AMTAR
884 am__leading_dot
885 SET_MAKE
886 AWK
887 mkdir_p
888 MKDIR_P
889 INSTALL_STRIP_PROGRAM
890 STRIP
891 install_sh
892 MAKEINFO
893 AUTOHEADER
894 AUTOMAKE
895 AUTOCONF
896 ACLOCAL
897 VERSION
898 PACKAGE
899 CYGPATH_W
900 am__isrc
901 INSTALL_DATA
902 INSTALL_SCRIPT
903 INSTALL_PROGRAM
904 GRN_VERSION_RC
905 GRN_VERSION_MICRO
906 GRN_VERSION_MINOR
907 GRN_VERSION_MAJOR
908 GRN_VERSION
909 target_alias
910 host_alias
911 build_alias
912 LIBS
913 ECHO_T
914 ECHO_N
915 ECHO_C
916 DEFS
917 mandir
918 localedir
919 libdir
920 psdir
921 pdfdir
922 dvidir
923 htmldir
924 infodir
925 docdir
926 oldincludedir
927 includedir
928 runstatedir
929 localstatedir
930 sharedstatedir
931 sysconfdir
932 datadir
933 datarootdir
934 libexecdir
935 sbindir
936 bindir
937 program_transform_name
938 prefix
939 exec_prefix
940 PACKAGE_URL
941 PACKAGE_BUGREPORT
942 PACKAGE_STRING
943 PACKAGE_VERSION
944 PACKAGE_TARNAME
945 PACKAGE_NAME
946 PATH_SEPARATOR
947 SHELL
948 am__quote'
949 ac_subst_files=''
950 ac_user_opts='
951 enable_option_checking
952 enable_silent_rules
953 enable_dependency_tracking
954 enable_shared
955 enable_static
956 with_pic
957 enable_fast_install
958 with_aix_soname
959 with_gnu_ld
960 with_sysroot
961 enable_libtool_lock
962 enable_debug
963 enable_optimize
964 enable_windows_back_trace
965 enable_largefile
966 enable_map_hugetlb
967 with_log_path
968 with_default_encoding
969 with_match_escalation_threshold
970 with_default_db_key
971 with_stack_size
972 with_lock_timeout
973 with_lock_wait_time
974 enable_nfkc
975 enable_uyield
976 enable_memory_debug
977 enable_benchmark
978 with_ruby
979 with_lemon
980 with_libedit
981 with_zlib
982 with_lz4
983 with_zstd
984 with_luajit
985 with_jemalloc
986 enable_apache_arrow
987 with_rapidjson
988 with_xxhash
989 with_mecab
990 with_mecab_config
991 with_kytea
992 with_libstemmer
993 with_libstemmer_include
994 with_libstemmer_lib
995 enable_futex
996 enable_zeromq
997 with_libevent
998 enable_message_pack
999 with_message_pack
1000 enable_document
1001 with_munin_plugins
1002 with_package_platform
1003 with_groonga_org_path
1004 enable_mruby
1005 enable_shared_onigmo
1006 with_onigmo
1007 with_rsync_path
1008 with_launchpad_ppa
1009 with_launchpad_uploader_pgp_key
1010 '
1011 ac_precious_vars='build_alias
1012 host_alias
1013 target_alias
1014 CC
1015 CFLAGS
1016 LDFLAGS
1017 LIBS
1018 CPPFLAGS
1019 CXX
1020 CXXFLAGS
1021 CCC
1022 PKG_CONFIG
1023 PKG_CONFIG_PATH
1024 PKG_CONFIG_LIBDIR
1025 LT_SYS_LIBRARY_PATH
1026 CXXCPP
1027 LIBEDIT_CFLAGS
1028 LIBEDIT_LIBS
1029 ZLIB_CFLAGS
1030 ZLIB_LIBS
1031 LIBLZ4_CFLAGS
1032 LIBLZ4_LIBS
1033 LIBZSTD_CFLAGS
1034 LIBZSTD_LIBS
1035 LUAJIT_CFLAGS
1036 LUAJIT_LIBS
1037 APACHE_ARROW_CFLAGS
1038 APACHE_ARROW_LIBS
1039 RAPIDJSON_CFLAGS
1040 RAPIDJSON_LIBS
1041 LIBXXHASH_CFLAGS
1042 LIBXXHASH_LIBS
1043 KYTEA_CFLAGS
1044 KYTEA_LIBS
1045 LIBZMQ_CFLAGS
1046 LIBZMQ_LIBS
1047 MESSAGE_PACK_CFLAGS
1048 MESSAGE_PACK_LIBS
1049 ONIGMO_CFLAGS
1050 ONIGMO_LIBS'
1051 ac_subdirs_all='vendor/onigmo'
1052
1053 # Initialize some variables set by options.
1054 ac_init_help=
1055 ac_init_version=false
1056 ac_unrecognized_opts=
1057 ac_unrecognized_sep=
1058 # The variables have the same names as the options, with
1059 # dashes changed to underlines.
1060 cache_file=/dev/null
1061 exec_prefix=NONE
1062 no_create=
1063 no_recursion=
1064 prefix=NONE
1065 program_prefix=NONE
1066 program_suffix=NONE
1067 program_transform_name=s,x,x,
1068 silent=
1069 site=
1070 srcdir=
1071 verbose=
1072 x_includes=NONE
1073 x_libraries=NONE
1074
1075 # Installation directory options.
1076 # These are left unexpanded so users can "make install exec_prefix=/foo"
1077 # and all the variables that are supposed to be based on exec_prefix
1078 # by default will actually change.
1079 # Use braces instead of parens because sh, perl, etc. also accept them.
1080 # (The list follows the same order as the GNU Coding Standards.)
1081 bindir='${exec_prefix}/bin'
1082 sbindir='${exec_prefix}/sbin'
1083 libexecdir='${exec_prefix}/libexec'
1084 datarootdir='${prefix}/share'
1085 datadir='${datarootdir}'
1086 sysconfdir='${prefix}/etc'
1087 sharedstatedir='${prefix}/com'
1088 localstatedir='${prefix}/var'
1089 runstatedir='${localstatedir}/run'
1090 includedir='${prefix}/include'
1091 oldincludedir='/usr/include'
1092 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1093 infodir='${datarootdir}/info'
1094 htmldir='${docdir}'
1095 dvidir='${docdir}'
1096 pdfdir='${docdir}'
1097 psdir='${docdir}'
1098 libdir='${exec_prefix}/lib'
1099 localedir='${datarootdir}/locale'
1100 mandir='${datarootdir}/man'
1101
1102 ac_prev=
1103 ac_dashdash=
1104 for ac_option
1105 do
1106 # If the previous option needs an argument, assign it.
1107 if test -n "$ac_prev"; then
1108 eval $ac_prev=\$ac_option
1109 ac_prev=
1110 continue
1111 fi
1112
1113 case $ac_option in
1114 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1115 *=) ac_optarg= ;;
1116 *) ac_optarg=yes ;;
1117 esac
1118
1119 case $ac_dashdash$ac_option in
1120 --)
1121 ac_dashdash=yes ;;
1122
1123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1124 ac_prev=bindir ;;
1125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1126 bindir=$ac_optarg ;;
1127
1128 -build | --build | --buil | --bui | --bu)
1129 ac_prev=build_alias ;;
1130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1131 build_alias=$ac_optarg ;;
1132
1133 -cache-file | --cache-file | --cache-fil | --cache-fi \
1134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1135 ac_prev=cache_file ;;
1136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1138 cache_file=$ac_optarg ;;
1139
1140 --config-cache | -C)
1141 cache_file=config.cache ;;
1142
1143 -datadir | --datadir | --datadi | --datad)
1144 ac_prev=datadir ;;
1145 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1146 datadir=$ac_optarg ;;
1147
1148 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1149 | --dataroo | --dataro | --datar)
1150 ac_prev=datarootdir ;;
1151 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1152 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1153 datarootdir=$ac_optarg ;;
1154
1155 -disable-* | --disable-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "enable_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval enable_$ac_useropt=no ;;
1170
1171 -docdir | --docdir | --docdi | --doc | --do)
1172 ac_prev=docdir ;;
1173 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174 docdir=$ac_optarg ;;
1175
1176 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177 ac_prev=dvidir ;;
1178 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179 dvidir=$ac_optarg ;;
1180
1181 -enable-* | --enable-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "enable_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval enable_$ac_useropt=\$ac_optarg ;;
1196
1197 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1198 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1199 | --exec | --exe | --ex)
1200 ac_prev=exec_prefix ;;
1201 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1202 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1203 | --exec=* | --exe=* | --ex=*)
1204 exec_prefix=$ac_optarg ;;
1205
1206 -gas | --gas | --ga | --g)
1207 # Obsolete; use --with-gas.
1208 with_gas=yes ;;
1209
1210 -help | --help | --hel | --he | -h)
1211 ac_init_help=long ;;
1212 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1213 ac_init_help=recursive ;;
1214 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1215 ac_init_help=short ;;
1216
1217 -host | --host | --hos | --ho)
1218 ac_prev=host_alias ;;
1219 -host=* | --host=* | --hos=* | --ho=*)
1220 host_alias=$ac_optarg ;;
1221
1222 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223 ac_prev=htmldir ;;
1224 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225 | --ht=*)
1226 htmldir=$ac_optarg ;;
1227
1228 -includedir | --includedir | --includedi | --included | --include \
1229 | --includ | --inclu | --incl | --inc)
1230 ac_prev=includedir ;;
1231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1232 | --includ=* | --inclu=* | --incl=* | --inc=*)
1233 includedir=$ac_optarg ;;
1234
1235 -infodir | --infodir | --infodi | --infod | --info | --inf)
1236 ac_prev=infodir ;;
1237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1238 infodir=$ac_optarg ;;
1239
1240 -libdir | --libdir | --libdi | --libd)
1241 ac_prev=libdir ;;
1242 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1243 libdir=$ac_optarg ;;
1244
1245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1246 | --libexe | --libex | --libe)
1247 ac_prev=libexecdir ;;
1248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1249 | --libexe=* | --libex=* | --libe=*)
1250 libexecdir=$ac_optarg ;;
1251
1252 -localedir | --localedir | --localedi | --localed | --locale)
1253 ac_prev=localedir ;;
1254 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1255 localedir=$ac_optarg ;;
1256
1257 -localstatedir | --localstatedir | --localstatedi | --localstated \
1258 | --localstate | --localstat | --localsta | --localst | --locals)
1259 ac_prev=localstatedir ;;
1260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1261 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1262 localstatedir=$ac_optarg ;;
1263
1264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265 ac_prev=mandir ;;
1266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1267 mandir=$ac_optarg ;;
1268
1269 -nfp | --nfp | --nf)
1270 # Obsolete; use --without-fp.
1271 with_fp=no ;;
1272
1273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1274 | --no-cr | --no-c | -n)
1275 no_create=yes ;;
1276
1277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 no_recursion=yes ;;
1280
1281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1283 | --oldin | --oldi | --old | --ol | --o)
1284 ac_prev=oldincludedir ;;
1285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1288 oldincludedir=$ac_optarg ;;
1289
1290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291 ac_prev=prefix ;;
1292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1293 prefix=$ac_optarg ;;
1294
1295 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1296 | --program-pre | --program-pr | --program-p)
1297 ac_prev=program_prefix ;;
1298 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1300 program_prefix=$ac_optarg ;;
1301
1302 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1303 | --program-suf | --program-su | --program-s)
1304 ac_prev=program_suffix ;;
1305 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1307 program_suffix=$ac_optarg ;;
1308
1309 -program-transform-name | --program-transform-name \
1310 | --program-transform-nam | --program-transform-na \
1311 | --program-transform-n | --program-transform- \
1312 | --program-transform | --program-transfor \
1313 | --program-transfo | --program-transf \
1314 | --program-trans | --program-tran \
1315 | --progr-tra | --program-tr | --program-t)
1316 ac_prev=program_transform_name ;;
1317 -program-transform-name=* | --program-transform-name=* \
1318 | --program-transform-nam=* | --program-transform-na=* \
1319 | --program-transform-n=* | --program-transform-=* \
1320 | --program-transform=* | --program-transfor=* \
1321 | --program-transfo=* | --program-transf=* \
1322 | --program-trans=* | --program-tran=* \
1323 | --progr-tra=* | --program-tr=* | --program-t=*)
1324 program_transform_name=$ac_optarg ;;
1325
1326 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327 ac_prev=pdfdir ;;
1328 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1329 pdfdir=$ac_optarg ;;
1330
1331 -psdir | --psdir | --psdi | --psd | --ps)
1332 ac_prev=psdir ;;
1333 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 psdir=$ac_optarg ;;
1335
1336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1337 | -silent | --silent | --silen | --sile | --sil)
1338 silent=yes ;;
1339
1340 -runstatedir | --runstatedir | --runstatedi | --runstated \
1341 | --runstate | --runstat | --runsta | --runst | --runs \
1342 | --run | --ru | --r)
1343 ac_prev=runstatedir ;;
1344 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1345 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1346 | --run=* | --ru=* | --r=*)
1347 runstatedir=$ac_optarg ;;
1348
1349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1350 ac_prev=sbindir ;;
1351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1352 | --sbi=* | --sb=*)
1353 sbindir=$ac_optarg ;;
1354
1355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1357 | --sharedst | --shareds | --shared | --share | --shar \
1358 | --sha | --sh)
1359 ac_prev=sharedstatedir ;;
1360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1363 | --sha=* | --sh=*)
1364 sharedstatedir=$ac_optarg ;;
1365
1366 -site | --site | --sit)
1367 ac_prev=site ;;
1368 -site=* | --site=* | --sit=*)
1369 site=$ac_optarg ;;
1370
1371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1372 ac_prev=srcdir ;;
1373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1374 srcdir=$ac_optarg ;;
1375
1376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1377 | --syscon | --sysco | --sysc | --sys | --sy)
1378 ac_prev=sysconfdir ;;
1379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1381 sysconfdir=$ac_optarg ;;
1382
1383 -target | --target | --targe | --targ | --tar | --ta | --t)
1384 ac_prev=target_alias ;;
1385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1386 target_alias=$ac_optarg ;;
1387
1388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1389 verbose=yes ;;
1390
1391 -version | --version | --versio | --versi | --vers | -V)
1392 ac_init_version=: ;;
1393
1394 -with-* | --with-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: \`$ac_useropt'"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1402 *"
1403 "with_$ac_useropt"
1404 "*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval with_$ac_useropt=\$ac_optarg ;;
1409
1410 -without-* | --without-*)
1411 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1412 # Reject names that are not valid shell variable names.
1413 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1414 as_fn_error $? "invalid package name: \`$ac_useropt'"
1415 ac_useropt_orig=$ac_useropt
1416 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1417 case $ac_user_opts in
1418 *"
1419 "with_$ac_useropt"
1420 "*) ;;
1421 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1422 ac_unrecognized_sep=', ';;
1423 esac
1424 eval with_$ac_useropt=no ;;
1425
1426 --x)
1427 # Obsolete; use --with-x.
1428 with_x=yes ;;
1429
1430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1431 | --x-incl | --x-inc | --x-in | --x-i)
1432 ac_prev=x_includes ;;
1433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1435 x_includes=$ac_optarg ;;
1436
1437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1439 ac_prev=x_libraries ;;
1440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1442 x_libraries=$ac_optarg ;;
1443
1444 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1445 Try \`$0 --help' for more information"
1446 ;;
1447
1448 *=*)
1449 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1450 # Reject names that are not valid shell variable names.
1451 case $ac_envvar in #(
1452 '' | [0-9]* | *[!_$as_cr_alnum]* )
1453 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1454 esac
1455 eval $ac_envvar=\$ac_optarg
1456 export $ac_envvar ;;
1457
1458 *)
1459 # FIXME: should be removed in autoconf 3.0.
1460 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1461 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1462 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1463 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1464 ;;
1465
1466 esac
1467 done
1468
1469 if test -n "$ac_prev"; then
1470 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1471 as_fn_error $? "missing argument to $ac_option"
1472 fi
1473
1474 if test -n "$ac_unrecognized_opts"; then
1475 case $enable_option_checking in
1476 no) ;;
1477 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1478 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1479 esac
1480 fi
1481
1482 # Check all directory arguments for consistency.
1483 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484 datadir sysconfdir sharedstatedir localstatedir includedir \
1485 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1486 libdir localedir mandir runstatedir
1487 do
1488 eval ac_val=\$$ac_var
1489 # Remove trailing slashes.
1490 case $ac_val in
1491 */ )
1492 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1493 eval $ac_var=\$ac_val;;
1494 esac
1495 # Be sure to have absolute directory names.
1496 case $ac_val in
1497 [\\/$]* | ?:[\\/]* ) continue;;
1498 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1499 esac
1500 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1501 done
1502
1503 # There might be people who depend on the old broken behavior: `$host'
1504 # used to hold the argument of --host etc.
1505 # FIXME: To remove some day.
1506 build=$build_alias
1507 host=$host_alias
1508 target=$target_alias
1509
1510 # FIXME: To remove some day.
1511 if test "x$host_alias" != x; then
1512 if test "x$build_alias" = x; then
1513 cross_compiling=maybe
1514 elif test "x$build_alias" != "x$host_alias"; then
1515 cross_compiling=yes
1516 fi
1517 fi
1518
1519 ac_tool_prefix=
1520 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1521
1522 test "$silent" = yes && exec 6>/dev/null
1523
1524
1525 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1526 ac_ls_di=`ls -di .` &&
1527 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1528 as_fn_error $? "working directory cannot be determined"
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530 as_fn_error $? "pwd does not report name of working directory"
1531
1532
1533 # Find the source files, if location was not specified.
1534 if test -z "$srcdir"; then
1535 ac_srcdir_defaulted=yes
1536 # Try the directory containing this script, then the parent directory.
1537 ac_confdir=`$as_dirname -- "$as_myself" ||
1538 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1539 X"$as_myself" : 'X\(//\)[^/]' \| \
1540 X"$as_myself" : 'X\(//\)$' \| \
1541 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1542 printf "%s\n" X"$as_myself" |
1543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1544 s//\1/
1545 q
1546 }
1547 /^X\(\/\/\)[^/].*/{
1548 s//\1/
1549 q
1550 }
1551 /^X\(\/\/\)$/{
1552 s//\1/
1553 q
1554 }
1555 /^X\(\/\).*/{
1556 s//\1/
1557 q
1558 }
1559 s/.*/./; q'`
1560 srcdir=$ac_confdir
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 srcdir=..
1563 fi
1564 else
1565 ac_srcdir_defaulted=no
1566 fi
1567 if test ! -r "$srcdir/$ac_unique_file"; then
1568 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1569 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1570 fi
1571 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1572 ac_abs_confdir=`(
1573 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1574 pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577 srcdir=.
1578 fi
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587 eval ac_env_${ac_var}_value=\$${ac_var}
1588 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1591
1592 #
1593 # Report the --help message.
1594 #
1595 if test "$ac_init_help" = "long"; then
1596 # Omit some internal or obsolete options to make the list less imposing.
1597 # This message is too long to be a string in the A/UX 3.1 sh.
1598 cat <<_ACEOF
1599 \`configure' configures groonga 16.0.5 to adapt to many kinds of systems.
1600
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1602
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE. See below for descriptions of some of the useful variables.
1605
1606 Defaults for the options are specified in brackets.
1607
1608 Configuration:
1609 -h, --help display this help and exit
1610 --help=short display options specific to this package
1611 --help=recursive display the short help of all the included packages
1612 -V, --version display version information and exit
1613 -q, --quiet, --silent do not print \`checking ...' messages
1614 --cache-file=FILE cache test results in FILE [disabled]
1615 -C, --config-cache alias for \`--cache-file=config.cache'
1616 -n, --no-create do not create output files
1617 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1618
1619 Installation directories:
1620 --prefix=PREFIX install architecture-independent files in PREFIX
1621 [$ac_default_prefix]
1622 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1623 [PREFIX]
1624
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1629
1630 For better control, use the options below.
1631
1632 Fine tuning of the installation directories:
1633 --bindir=DIR user executables [EPREFIX/bin]
1634 --sbindir=DIR system admin executables [EPREFIX/sbin]
1635 --libexecdir=DIR program executables [EPREFIX/libexec]
1636 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1637 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1638 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1639 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1640 --libdir=DIR object code libraries [EPREFIX/lib]
1641 --includedir=DIR C header files [PREFIX/include]
1642 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1643 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1644 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1645 --infodir=DIR info documentation [DATAROOTDIR/info]
1646 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1647 --mandir=DIR man documentation [DATAROOTDIR/man]
1648 --docdir=DIR documentation root [DATAROOTDIR/doc/groonga]
1649 --htmldir=DIR html documentation [DOCDIR]
1650 --dvidir=DIR dvi documentation [DOCDIR]
1651 --pdfdir=DIR pdf documentation [DOCDIR]
1652 --psdir=DIR ps documentation [DOCDIR]
1653 _ACEOF
1654
1655 cat <<\_ACEOF
1656
1657 Program names:
1658 --program-prefix=PREFIX prepend PREFIX to installed program names
1659 --program-suffix=SUFFIX append SUFFIX to installed program names
1660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1661
1662 System types:
1663 --build=BUILD configure for building on BUILD [guessed]
1664 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1665 _ACEOF
1666 fi
1667
1668 if test -n "$ac_init_help"; then
1669 case $ac_init_help in
1670 short | recursive ) echo "Configuration of groonga 16.0.5:";;
1671 esac
1672 cat <<\_ACEOF
1673
1674 Optional Features:
1675 --disable-option-checking ignore unrecognized --enable/--with options
1676 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1677 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1678 --enable-silent-rules less verbose build output (undo: "make V=1")
1679 --disable-silent-rules verbose build output (undo: "make V=0")
1680 --enable-dependency-tracking
1681 do not reject slow dependency extractors
1682 --disable-dependency-tracking
1683 speeds up one-time build
1684 --enable-shared[=PKGS] build shared libraries [default=yes]
1685 --enable-static[=PKGS] build static libraries [default=yes]
1686 --enable-fast-install[=PKGS]
1687 optimize for fast installation [default=yes]
1688 --disable-libtool-lock avoid locking (might break parallel builds)
1689 --enable-debug use debug flags (default=no)
1690 --enable-optimize use optimize flags (default=no)
1691 --enable-windows-back-trace
1692 enable back trace on Windows (default=yes)
1693 --disable-largefile omit support for large files
1694 --enable-map-hugetlb use MAP_HUGETLB. [default=no]
1695 --enable-nfkc use nfkc based utf8 normalization. [default=yes]
1696 --enable-uyield build for detecting race conditions. [default=no]
1697 --enable-memory-debug debug memory management. [default=no]
1698 --disable-benchmark don't build benchmark programs.
1699 --disable-apache-arrow disable Apache Arrow support. [default=auto-detect]
1700 --enable-futex use futex. [default=no]
1701 --disable-zeromq Disable ZeroMQ used for suggestion.
1702 [default=auto-detect]
1703 --disable-message-pack Disable MessagePack support. [default=auto-detect]
1704 --enable-document enable document generation by Sphinx. [default=auto]
1705 --enable-mruby enable mruby. [default=no]
1706 --enable-shared-onigmo use Onigmo as shared library instead of static
1707 library. [default=no]
1708
1709 Optional Packages:
1710 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1711 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1712 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1713 both]
1714 --with-aix-soname=aix|svr4|both
1715 shared library versioning (aka "SONAME") variant to
1716 provide on AIX, [default=aix].
1717 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1718 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1719 compiler's sysroot if not specified).
1720 --with-log-path=PATH specify groonga log path.
1721 --with-default-encoding=ENCODING
1722 specify groonga default
1723 encoding(euc_jp/sjis/utf8/latin1/koi8r/none)
1724 --with-match-escalation-threshold=NUMBER
1725 specify groonga default match escalation threshold
1726 --with-default-db-key=ALGORITHM
1727 specify groonga default DB key (pat/dat/auto)
1728 --with-stack-size=SIZE DANGER!!! This option specifies stack size.
1729 (default=$GRN_STACK_SIZE) Normally, you should not
1730 use this option.
1731 --with-lock-timeout=N This option specifies how many times Groonga tries
1732 to acquire a lock. Each try waits
1733 --with-lock-wait-time nanoseconds to acquire a lock.
1734 It means that Groonga gives up after
1735 (--with-lock-wait-time * --with-lock-timeout)
1736 nanoseconds. (default=$GRN_LOCK_TIMEOUT)
1737 --with-lock-wait-time=NANOSECONDS
1738 This option specifies wait time in nanosecond to
1739 acquire a lock.
1740 (default=$GRN_LOCK_WAIT_TIME_NANOSECOND)
1741 --with-ruby=PATH Ruby interpreter path (default: no)
1742 --with-lemon=PATH Lemon path (default: auto)
1743 --with-libedit Support line editing (default: auto)
1744 --with-zlib Support data compression by zlib. [default=auto]
1745 --with-lz4 Support data compression by LZ4. [default=auto]
1746 --with-zstd Support data compression by Zstandard.
1747 [default=auto]
1748 --with-luajit Support LuaJIT. [default=auto]
1749 --with-jemalloc Use jemalloc for memory allocation. [default=no]
1750 --with-rapidjson Use RapidJSON. [default=auto]
1751 --with-xxhash Support drilldown by hashed key with xxHash.
1752 [default=auto]
1753 --with-mecab use MeCab for morphological analysis. [default=yes]
1754 --with-mecab-config=PATH
1755 set mecab-config location. [default=auto-detect]
1756 --with-kytea use KyTea for morphological analysis. [default=auto]
1757 --with-libstemmer use libstemmer for stemming. [default=auto]
1758 --with-libstemmer-include
1759 path to libstemmer.h. [default=auto]
1760 --with-libstemmer-lib path to libstemmer.so. [default=auto]
1761 --without-libevent Disable libevent used for suggestion. [default=auto]
1762 --with-message-pack Specify prefix where MessagePack is installed.
1763 [default=/usr]
1764 --with-munin-plugins install Munin plugins. [default=no]
1765 --with-package-platform=PLATFORM
1766 install package platform related files. [default=no]
1767 (supported package platforms: rhel)
1768 --with-groonga-org-path=PATH
1769 specify a path of the groonga.org repository to
1770 update groonga.org.
1771 --without-onigmo Don't Use Onigmo. [default=bundled]
1772 --with-rsync-path=PATH specify rsync path to upload groonga packages.
1773 --with-launchpad-ppa=PPA
1774 specify Launchpad Personal Package Archive.
1775 [default=groonga-ppa]
1776 --with-launchpad-uploader-pgp-key=KEY
1777 specify PGP key UID to upload Groonga packages to
1778 Launchpad.
1779
1780 Some influential environment variables:
1781 CC C compiler command
1782 CFLAGS C compiler flags
1783 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1784 nonstandard directory <lib dir>
1785 LIBS libraries to pass to the linker, e.g. -l<library>
1786 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1787 you have headers in a nonstandard directory <include dir>
1788 CXX C++ compiler command
1789 CXXFLAGS C++ compiler flags
1790 PKG_CONFIG path to pkg-config utility
1791 PKG_CONFIG_PATH
1792 directories to add to pkg-config's search path
1793 PKG_CONFIG_LIBDIR
1794 path overriding pkg-config's built-in search path
1795 LT_SYS_LIBRARY_PATH
1796 User-defined run-time library search path.
1797 CXXCPP C++ preprocessor
1798 LIBEDIT_CFLAGS
1799 C compiler flags for LIBEDIT, overriding pkg-config
1800 LIBEDIT_LIBS
1801 linker flags for LIBEDIT, overriding pkg-config
1802 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1803 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1804 LIBLZ4_CFLAGS
1805 C compiler flags for LIBLZ4, overriding pkg-config
1806 LIBLZ4_LIBS linker flags for LIBLZ4, overriding pkg-config
1807 LIBZSTD_CFLAGS
1808 C compiler flags for LIBZSTD, overriding pkg-config
1809 LIBZSTD_LIBS
1810 linker flags for LIBZSTD, overriding pkg-config
1811 LUAJIT_CFLAGS
1812 C compiler flags for LUAJIT, overriding pkg-config
1813 LUAJIT_LIBS linker flags for LUAJIT, overriding pkg-config
1814 APACHE_ARROW_CFLAGS
1815 C compiler flags for APACHE_ARROW, overriding pkg-config
1816 APACHE_ARROW_LIBS
1817 linker flags for APACHE_ARROW, overriding pkg-config
1818 RAPIDJSON_CFLAGS
1819 C compiler flags for RAPIDJSON, overriding pkg-config
1820 RAPIDJSON_LIBS
1821 linker flags for RAPIDJSON, overriding pkg-config
1822 LIBXXHASH_CFLAGS
1823 C compiler flags for LIBXXHASH, overriding pkg-config
1824 LIBXXHASH_LIBS
1825 linker flags for LIBXXHASH, overriding pkg-config
1826 KYTEA_CFLAGS
1827 C compiler flags for KYTEA, overriding pkg-config
1828 KYTEA_LIBS linker flags for KYTEA, overriding pkg-config
1829 LIBZMQ_CFLAGS
1830 C compiler flags for LIBZMQ, overriding pkg-config
1831 LIBZMQ_LIBS linker flags for LIBZMQ, overriding pkg-config
1832 MESSAGE_PACK_CFLAGS
1833 C compiler flags for MESSAGE_PACK, overriding pkg-config
1834 MESSAGE_PACK_LIBS
1835 linker flags for MESSAGE_PACK, overriding pkg-config
1836 ONIGMO_CFLAGS
1837 C compiler flags for ONIGMO, overriding pkg-config
1838 ONIGMO_LIBS linker flags for ONIGMO, overriding pkg-config
1839
1840 Use these variables to override the choices made by `configure' or to help
1841 it to find libraries and programs with nonstandard names/locations.
1842
1843 Report bugs to <[email protected]>.
1844 _ACEOF
1845 ac_status=$?
1846 fi
1847
1848 if test "$ac_init_help" = "recursive"; then
1849 # If there are subdirs, report their specific --help.
1850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1851 test -d "$ac_dir" ||
1852 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1853 continue
1854 ac_builddir=.
1855
1856 case "$ac_dir" in
1857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1858 *)
1859 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1860 # A ".." for each directory in $ac_dir_suffix.
1861 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1862 case $ac_top_builddir_sub in
1863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1865 esac ;;
1866 esac
1867 ac_abs_top_builddir=$ac_pwd
1868 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1869 # for backward compatibility:
1870 ac_top_builddir=$ac_top_build_prefix
1871
1872 case $srcdir in
1873 .) # We are building in place.
1874 ac_srcdir=.
1875 ac_top_srcdir=$ac_top_builddir_sub
1876 ac_abs_top_srcdir=$ac_pwd ;;
1877 [\\/]* | ?:[\\/]* ) # Absolute name.
1878 ac_srcdir=$srcdir$ac_dir_suffix;
1879 ac_top_srcdir=$srcdir
1880 ac_abs_top_srcdir=$srcdir ;;
1881 *) # Relative name.
1882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1883 ac_top_srcdir=$ac_top_build_prefix$srcdir
1884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1885 esac
1886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1887
1888 cd "$ac_dir" || { ac_status=$?; continue; }
1889 # Check for configure.gnu first; this name is used for a wrapper for
1890 # Metaconfig's "Configure" on case-insensitive file systems.
1891 if test -f "$ac_srcdir/configure.gnu"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1894 elif test -f "$ac_srcdir/configure"; then
1895 echo &&
1896 $SHELL "$ac_srcdir/configure" --help=recursive
1897 else
1898 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1899 fi || ac_status=$?
1900 cd "$ac_pwd" || { ac_status=$?; break; }
1901 done
1902 fi
1903
1904 test -n "$ac_init_help" && exit $ac_status
1905 if $ac_init_version; then
1906 cat <<\_ACEOF
1907 groonga configure 16.0.5
1908 generated by GNU Autoconf 2.71
1909
1910 Copyright (C) 2021 Free Software Foundation, Inc.
1911 This configure script is free software; the Free Software Foundation
1912 gives unlimited permission to copy, distribute and modify it.
1913 _ACEOF
1914 exit
1915 fi
1916
1917 ## ------------------------ ##
1918 ## Autoconf initialization. ##
1919 ## ------------------------ ##
1920
1921 # ac_fn_c_try_compile LINENO
1922 # --------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_compile ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest.beam
1928 if { { ac_try="$ac_compile"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 printf "%s\n" "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext
1947 then :
1948 ac_retval=0
1949 else $as_nop
1950 printf "%s\n" "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_retval=1
1954 fi
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1957
1958 } # ac_fn_c_try_compile
1959
1960 # ac_fn_c_try_run LINENO
1961 # ----------------------
1962 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1963 # executables *can* be run.
1964 ac_fn_c_try_run ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 printf "%s\n" "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>&5
1975 ac_status=$?
1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1978 { { case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 printf "%s\n" "$ac_try_echo"; } >&5
1984 (eval "$ac_try") 2>&5
1985 ac_status=$?
1986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; }; }
1988 then :
1989 ac_retval=0
1990 else $as_nop
1991 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1992 printf "%s\n" "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=$ac_status
1996 fi
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2000
2001 } # ac_fn_c_try_run
2002
2003 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists and can be compiled using the include files in
2006 # INCLUDES, setting the cache variable VAR accordingly.
2007 ac_fn_c_check_header_compile ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 printf %s "checking for $2... " >&6; }
2012 if eval test \${$3+y}
2013 then :
2014 printf %s "(cached) " >&6
2015 else $as_nop
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"
2022 then :
2023 eval "$3=yes"
2024 else $as_nop
2025 eval "$3=no"
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2028 fi
2029 eval ac_res=\$$3
2030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 printf "%s\n" "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034 } # ac_fn_c_check_header_compile
2035
2036 # ac_fn_cxx_try_compile LINENO
2037 # ----------------------------
2038 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2039 ac_fn_cxx_try_compile ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 rm -f conftest.$ac_objext conftest.beam
2043 if { { ac_try="$ac_compile"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 printf "%s\n" "$ac_try_echo"; } >&5
2050 (eval "$ac_compile") 2>conftest.err
2051 ac_status=$?
2052 if test -s conftest.err; then
2053 grep -v '^ *+' conftest.err >conftest.er1
2054 cat conftest.er1 >&5
2055 mv -f conftest.er1 conftest.err
2056 fi
2057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058 test $ac_status = 0; } && {
2059 test -z "$ac_cxx_werror_flag" ||
2060 test ! -s conftest.err
2061 } && test -s conftest.$ac_objext
2062 then :
2063 ac_retval=0
2064 else $as_nop
2065 printf "%s\n" "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068 ac_retval=1
2069 fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073 } # ac_fn_cxx_try_compile
2074
2075 # ac_fn_c_try_link LINENO
2076 # -----------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_c_try_link ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2082 if { { ac_try="$ac_link"
2083 case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 printf "%s\n" "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2095 fi
2096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 test -x conftest$ac_exeext
2103 }
2104 then :
2105 ac_retval=0
2106 else $as_nop
2107 printf "%s\n" "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111 fi
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We do this before executing the actions.
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_link
2121
2122 # ac_fn_c_check_func LINENO FUNC VAR
2123 # ----------------------------------
2124 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2125 ac_fn_c_check_func ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 printf %s "checking for $2... " >&6; }
2130 if eval test \${$3+y}
2131 then :
2132 printf %s "(cached) " >&6
2133 else $as_nop
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2138 #define $2 innocuous_$2
2139
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $2 (); below. */
2142
2143 #include <limits.h>
2144 #undef $2
2145
2146 /* Override any GCC internal prototype to avoid an error.
2147 Use char because int might match the return type of a GCC
2148 builtin and then its argument prototype would still apply. */
2149 #ifdef __cplusplus
2150 extern "C"
2151 #endif
2152 char $2 ();
2153 /* The GNU C library defines this for functions which it implements
2154 to always fail with ENOSYS. Some functions are actually named
2155 something starting with __ and the normal name is an alias. */
2156 #if defined __stub_$2 || defined __stub___$2
2157 choke me
2158 #endif
2159
2160 int
2161 main (void)
2162 {
2163 return $2 ();
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_link "$LINENO"
2169 then :
2170 eval "$3=yes"
2171 else $as_nop
2172 eval "$3=no"
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2175 conftest$ac_exeext conftest.$ac_ext
2176 fi
2177 eval ac_res=\$$3
2178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 printf "%s\n" "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182 } # ac_fn_c_check_func
2183
2184 # ac_fn_cxx_try_cpp LINENO
2185 # ------------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_cpp ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_cpp conftest.$ac_ext"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 printf "%s\n" "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2203 fi
2204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } > conftest.i && {
2206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2207 test ! -s conftest.err
2208 }
2209 then :
2210 ac_retval=0
2211 else $as_nop
2212 printf "%s\n" "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_retval=1
2216 fi
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 as_fn_set_status $ac_retval
2219
2220 } # ac_fn_cxx_try_cpp
2221
2222 # ac_fn_cxx_try_link LINENO
2223 # -------------------------
2224 # Try to link conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_cxx_try_link ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2229 if { { ac_try="$ac_link"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 printf "%s\n" "$ac_try_echo"; } >&5
2236 (eval "$ac_link") 2>conftest.err
2237 ac_status=$?
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2242 fi
2243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && {
2245 test -z "$ac_cxx_werror_flag" ||
2246 test ! -s conftest.err
2247 } && test -s conftest$ac_exeext && {
2248 test "$cross_compiling" = yes ||
2249 test -x conftest$ac_exeext
2250 }
2251 then :
2252 ac_retval=0
2253 else $as_nop
2254 printf "%s\n" "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258 fi
2259 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2260 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2261 # interfere with the next link command; also delete a directory that is
2262 # left behind by Apple's compiler. We do this before executing the actions.
2263 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265 as_fn_set_status $ac_retval
2266
2267 } # ac_fn_cxx_try_link
2268
2269 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2270 # -------------------------------------------
2271 # Tests whether TYPE exists after having included INCLUDES, setting cache
2272 # variable VAR accordingly.
2273 ac_fn_c_check_type ()
2274 {
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 printf %s "checking for $2... " >&6; }
2278 if eval test \${$3+y}
2279 then :
2280 printf %s "(cached) " >&6
2281 else $as_nop
2282 eval "$3=no"
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 $4
2286 int
2287 main (void)
2288 {
2289 if (sizeof ($2))
2290 return 0;
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"
2296 then :
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 $4
2300 int
2301 main (void)
2302 {
2303 if (sizeof (($2)))
2304 return 0;
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"
2310 then :
2311
2312 else $as_nop
2313 eval "$3=yes"
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2318 fi
2319 eval ac_res=\$$3
2320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 printf "%s\n" "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323
2324 } # ac_fn_c_check_type
2325
2326 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2327 # --------------------------------------------
2328 # Tries to find the compile-time value of EXPR in a program that includes
2329 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2330 # computed
2331 ac_fn_c_compute_int ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if test "$cross_compiling" = yes; then
2335 # Depending upon the size, compute the lo and hi bounds.
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $4
2339 int
2340 main (void)
2341 {
2342 static int test_array [1 - 2 * !(($2) >= 0)];
2343 test_array [0] = 0;
2344 return test_array [0];
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"
2351 then :
2352 ac_lo=0 ac_mid=0
2353 while :; do
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $4
2357 int
2358 main (void)
2359 {
2360 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2361 test_array [0] = 0;
2362 return test_array [0];
2363
2364 ;
2365 return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"
2369 then :
2370 ac_hi=$ac_mid; break
2371 else $as_nop
2372 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2373 if test $ac_lo -le $ac_mid; then
2374 ac_lo= ac_hi=
2375 break
2376 fi
2377 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2380 done
2381 else $as_nop
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2384 $4
2385 int
2386 main (void)
2387 {
2388 static int test_array [1 - 2 * !(($2) < 0)];
2389 test_array [0] = 0;
2390 return test_array [0];
2391
2392 ;
2393 return 0;
2394 }
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"
2397 then :
2398 ac_hi=-1 ac_mid=-1
2399 while :; do
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $4
2403 int
2404 main (void)
2405 {
2406 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2407 test_array [0] = 0;
2408 return test_array [0];
2409
2410 ;
2411 return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_c_try_compile "$LINENO"
2415 then :
2416 ac_lo=$ac_mid; break
2417 else $as_nop
2418 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2419 if test $ac_mid -le $ac_hi; then
2420 ac_lo= ac_hi=
2421 break
2422 fi
2423 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2426 done
2427 else $as_nop
2428 ac_lo= ac_hi=
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2433 # Binary search between lo and hi bounds.
2434 while test "x$ac_lo" != "x$ac_hi"; do
2435 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $4
2439 int
2440 main (void)
2441 {
2442 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2443 test_array [0] = 0;
2444 return test_array [0];
2445
2446 ;
2447 return 0;
2448 }
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"
2451 then :
2452 ac_hi=$ac_mid
2453 else $as_nop
2454 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2457 done
2458 case $ac_lo in #((
2459 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2460 '') ac_retval=1 ;;
2461 esac
2462 else
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2465 $4
2466 static long int longval (void) { return $2; }
2467 static unsigned long int ulongval (void) { return $2; }
2468 #include <stdio.h>
2469 #include <stdlib.h>
2470 int
2471 main (void)
2472 {
2473
2474 FILE *f = fopen ("conftest.val", "w");
2475 if (! f)
2476 return 1;
2477 if (($2) < 0)
2478 {
2479 long int i = longval ();
2480 if (i != ($2))
2481 return 1;
2482 fprintf (f, "%ld", i);
2483 }
2484 else
2485 {
2486 unsigned long int i = ulongval ();
2487 if (i != ($2))
2488 return 1;
2489 fprintf (f, "%lu", i);
2490 }
2491 /* Do not output a trailing newline, as this causes \r\n confusion
2492 on some platforms. */
2493 return ferror (f) || fclose (f) != 0;
2494
2495 ;
2496 return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_run "$LINENO"
2500 then :
2501 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2502 else $as_nop
2503 ac_retval=1
2504 fi
2505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2506 conftest.$ac_objext conftest.beam conftest.$ac_ext
2507 rm -f conftest.val
2508
2509 fi
2510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2511 as_fn_set_status $ac_retval
2512
2513 } # ac_fn_c_compute_int
2514
2515 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2516 # ----------------------------------------------------
2517 # Tries to find if the field MEMBER exists in type AGGR, after including
2518 # INCLUDES, setting cache variable VAR accordingly.
2519 ac_fn_c_check_member ()
2520 {
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2523 printf %s "checking for $2.$3... " >&6; }
2524 if eval test \${$4+y}
2525 then :
2526 printf %s "(cached) " >&6
2527 else $as_nop
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530 $5
2531 int
2532 main (void)
2533 {
2534 static $2 ac_aggr;
2535 if (ac_aggr.$3)
2536 return 0;
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"
2542 then :
2543 eval "$4=yes"
2544 else $as_nop
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2547 $5
2548 int
2549 main (void)
2550 {
2551 static $2 ac_aggr;
2552 if (sizeof ac_aggr.$3)
2553 return 0;
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"
2559 then :
2560 eval "$4=yes"
2561 else $as_nop
2562 eval "$4=no"
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2567 fi
2568 eval ac_res=\$$4
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 printf "%s\n" "$ac_res" >&6; }
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572
2573 } # ac_fn_c_check_member
2574
2575 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2576 # ---------------------------------------------------------
2577 # Tests whether HEADER exists and can be compiled using the include files in
2578 # INCLUDES, setting the cache variable VAR accordingly.
2579 ac_fn_cxx_check_header_compile ()
2580 {
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 printf %s "checking for $2... " >&6; }
2584 if eval test \${$3+y}
2585 then :
2586 printf %s "(cached) " >&6
2587 else $as_nop
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 $4
2591 #include <$2>
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"
2594 then :
2595 eval "$3=yes"
2596 else $as_nop
2597 eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 printf "%s\n" "$ac_res" >&6; }
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605
2606 } # ac_fn_cxx_check_header_compile
2607 ac_configure_args_raw=
2608 for ac_arg
2609 do
2610 case $ac_arg in
2611 *\'*)
2612 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2613 esac
2614 as_fn_append ac_configure_args_raw " '$ac_arg'"
2615 done
2616
2617 case $ac_configure_args_raw in
2618 *$as_nl*)
2619 ac_safe_unquote= ;;
2620 *)
2621 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2622 ac_unsafe_a="$ac_unsafe_z#~"
2623 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2624 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2625 esac
2626
2627 cat >config.log <<_ACEOF
2628 This file contains any messages produced by compilers while
2629 running configure, to aid debugging if configure makes a mistake.
2630
2631 It was created by groonga $as_me 16.0.5, which was
2632 generated by GNU Autoconf 2.71. Invocation command line was
2633
2634 $ $0$ac_configure_args_raw
2635
2636 _ACEOF
2637 exec 5>>config.log
2638 {
2639 cat <<_ASUNAME
2640 ## --------- ##
2641 ## Platform. ##
2642 ## --------- ##
2643
2644 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2645 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2646 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2647 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2648 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2649
2650 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2651 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2652
2653 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2654 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2655 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2656 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2657 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2658 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2659 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2660
2661 _ASUNAME
2662
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 case $as_dir in #(((
2668 '') as_dir=./ ;;
2669 */) ;;
2670 *) as_dir=$as_dir/ ;;
2671 esac
2672 printf "%s\n" "PATH: $as_dir"
2673 done
2674 IFS=$as_save_IFS
2675
2676 } >&5
2677
2678 cat >&5 <<_ACEOF
2679
2680
2681 ## ----------- ##
2682 ## Core tests. ##
2683 ## ----------- ##
2684
2685 _ACEOF
2686
2687
2688 # Keep a trace of the command line.
2689 # Strip out --no-create and --no-recursion so they do not pile up.
2690 # Strip out --silent because we don't want to record it for future runs.
2691 # Also quote any args containing shell meta-characters.
2692 # Make two passes to allow for proper duplicate-argument suppression.
2693 ac_configure_args=
2694 ac_configure_args0=
2695 ac_configure_args1=
2696 ac_must_keep_next=false
2697 for ac_pass in 1 2
2698 do
2699 for ac_arg
2700 do
2701 case $ac_arg in
2702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2704 | -silent | --silent | --silen | --sile | --sil)
2705 continue ;;
2706 *\'*)
2707 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2708 esac
2709 case $ac_pass in
2710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2711 2)
2712 as_fn_append ac_configure_args1 " '$ac_arg'"
2713 if test $ac_must_keep_next = true; then
2714 ac_must_keep_next=false # Got value, back to normal.
2715 else
2716 case $ac_arg in
2717 *=* | --config-cache | -C | -disable-* | --disable-* \
2718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2720 | -with-* | --with-* | -without-* | --without-* | --x)
2721 case "$ac_configure_args0 " in
2722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2723 esac
2724 ;;
2725 -* ) ac_must_keep_next=true ;;
2726 esac
2727 fi
2728 as_fn_append ac_configure_args " '$ac_arg'"
2729 ;;
2730 esac
2731 done
2732 done
2733 { ac_configure_args0=; unset ac_configure_args0;}
2734 { ac_configure_args1=; unset ac_configure_args1;}
2735
2736 # When interrupted or exit'd, cleanup temporary files, and complete
2737 # config.log. We remove comments because anyway the quotes in there
2738 # would cause problems or look ugly.
2739 # WARNING: Use '\'' to represent an apostrophe within the trap.
2740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2741 trap 'exit_status=$?
2742 # Sanitize IFS.
2743 IFS=" "" $as_nl"
2744 # Save into config.log some information that might help in debugging.
2745 {
2746 echo
2747
2748 printf "%s\n" "## ---------------- ##
2749 ## Cache variables. ##
2750 ## ---------------- ##"
2751 echo
2752 # The following way of writing the cache mishandles newlines in values,
2753 (
2754 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2755 eval ac_val=\$$ac_var
2756 case $ac_val in #(
2757 *${as_nl}*)
2758 case $ac_var in #(
2759 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2760 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2761 esac
2762 case $ac_var in #(
2763 _ | IFS | as_nl) ;; #(
2764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2765 *) { eval $ac_var=; unset $ac_var;} ;;
2766 esac ;;
2767 esac
2768 done
2769 (set) 2>&1 |
2770 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2771 *${as_nl}ac_space=\ *)
2772 sed -n \
2773 "s/'\''/'\''\\\\'\'''\''/g;
2774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2775 ;; #(
2776 *)
2777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2778 ;;
2779 esac |
2780 sort
2781 )
2782 echo
2783
2784 printf "%s\n" "## ----------------- ##
2785 ## Output variables. ##
2786 ## ----------------- ##"
2787 echo
2788 for ac_var in $ac_subst_vars
2789 do
2790 eval ac_val=\$$ac_var
2791 case $ac_val in
2792 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2793 esac
2794 printf "%s\n" "$ac_var='\''$ac_val'\''"
2795 done | sort
2796 echo
2797
2798 if test -n "$ac_subst_files"; then
2799 printf "%s\n" "## ------------------- ##
2800 ## File substitutions. ##
2801 ## ------------------- ##"
2802 echo
2803 for ac_var in $ac_subst_files
2804 do
2805 eval ac_val=\$$ac_var
2806 case $ac_val in
2807 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808 esac
2809 printf "%s\n" "$ac_var='\''$ac_val'\''"
2810 done | sort
2811 echo
2812 fi
2813
2814 if test -s confdefs.h; then
2815 printf "%s\n" "## ----------- ##
2816 ## confdefs.h. ##
2817 ## ----------- ##"
2818 echo
2819 cat confdefs.h
2820 echo
2821 fi
2822 test "$ac_signal" != 0 &&
2823 printf "%s\n" "$as_me: caught signal $ac_signal"
2824 printf "%s\n" "$as_me: exit $exit_status"
2825 } >&5
2826 rm -f core *.core core.conftest.* &&
2827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2828 exit $exit_status
2829 ' 0
2830 for ac_signal in 1 2 13 15; do
2831 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2832 done
2833 ac_signal=0
2834
2835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2836 rm -f -r conftest* confdefs.h
2837
2838 printf "%s\n" "/* confdefs.h */" > confdefs.h
2839
2840 # Predefined preprocessor variables.
2841
2842 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2843
2844 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2845
2846 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2847
2848 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2849
2850 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2851
2852 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2853
2854
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 if test -n "$CONFIG_SITE"; then
2858 ac_site_files="$CONFIG_SITE"
2859 elif test "x$prefix" != xNONE; then
2860 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2861 else
2862 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2863 fi
2864
2865 for ac_site_file in $ac_site_files
2866 do
2867 case $ac_site_file in #(
2868 */*) :
2869 ;; #(
2870 *) :
2871 ac_site_file=./$ac_site_file ;;
2872 esac
2873 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2875 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2876 sed 's/^/| /' "$ac_site_file" >&5
2877 . "$ac_site_file" \
2878 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2879 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2880 as_fn_error $? "failed to load site script $ac_site_file
2881 See \`config.log' for more details" "$LINENO" 5; }
2882 fi
2883 done
2884
2885 if test -r "$cache_file"; then
2886 # Some versions of bash will fail to source /dev/null (special files
2887 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2888 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2890 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2891 case $cache_file in
2892 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2893 *) . "./$cache_file";;
2894 esac
2895 fi
2896 else
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2898 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2899 >$cache_file
2900 fi
2901
2902 # Test code for whether the C compiler supports C89 (global declarations)
2903 ac_c_conftest_c89_globals='
2904 /* Does the compiler advertise C89 conformance?
2905 Do not test the value of __STDC__, because some compilers set it to 0
2906 while being otherwise adequately conformant. */
2907 #if !defined __STDC__
2908 # error "Compiler does not advertise C89 conformance"
2909 #endif
2910
2911 #include <stddef.h>
2912 #include <stdarg.h>
2913 struct stat;
2914 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2915 struct buf { int x; };
2916 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2917 static char *e (p, i)
2918 char **p;
2919 int i;
2920 {
2921 return p[i];
2922 }
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2924 {
2925 char *s;
2926 va_list v;
2927 va_start (v,p);
2928 s = g (p, va_arg (v,int));
2929 va_end (v);
2930 return s;
2931 }
2932
2933 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2934 function prototypes and stuff, but not \xHH hex character constants.
2935 These do not provoke an error unfortunately, instead are silently treated
2936 as an "x". The following induces an error, until -std is added to get
2937 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2938 array size at least. It is necessary to write \x00 == 0 to get something
2939 that is true only with -std. */
2940 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2941
2942 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2943 inside strings and character constants. */
2944 #define FOO(x) '\''x'\''
2945 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2946
2947 int test (int i, double x);
2948 struct s1 {int (*f) (int a);};
2949 struct s2 {int (*f) (double a);};
2950 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2951 int, int);'
2952
2953 # Test code for whether the C compiler supports C89 (body of main).
2954 ac_c_conftest_c89_main='
2955 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2956 '
2957
2958 # Test code for whether the C compiler supports C99 (global declarations)
2959 ac_c_conftest_c99_globals='
2960 // Does the compiler advertise C99 conformance?
2961 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2962 # error "Compiler does not advertise C99 conformance"
2963 #endif
2964
2965 #include <stdbool.h>
2966 extern int puts (const char *);
2967 extern int printf (const char *, ...);
2968 extern int dprintf (int, const char *, ...);
2969 extern void *malloc (size_t);
2970
2971 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2972 // dprintf is used instead of fprintf to avoid needing to declare
2973 // FILE and stderr.
2974 #define debug(...) dprintf (2, __VA_ARGS__)
2975 #define showlist(...) puts (#__VA_ARGS__)
2976 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2977 static void
2978 test_varargs_macros (void)
2979 {
2980 int x = 1234;
2981 int y = 5678;
2982 debug ("Flag");
2983 debug ("X = %d\n", x);
2984 showlist (The first, second, and third items.);
2985 report (x>y, "x is %d but y is %d", x, y);
2986 }
2987
2988 // Check long long types.
2989 #define BIG64 18446744073709551615ull
2990 #define BIG32 4294967295ul
2991 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2992 #if !BIG_OK
2993 #error "your preprocessor is broken"
2994 #endif
2995 #if BIG_OK
2996 #else
2997 #error "your preprocessor is broken"
2998 #endif
2999 static long long int bignum = -9223372036854775807LL;
3000 static unsigned long long int ubignum = BIG64;
3001
3002 struct incomplete_array
3003 {
3004 int datasize;
3005 double data[];
3006 };
3007
3008 struct named_init {
3009 int number;
3010 const wchar_t *name;
3011 double average;
3012 };
3013
3014 typedef const char *ccp;
3015
3016 static inline int
3017 test_restrict (ccp restrict text)
3018 {
3019 // See if C++-style comments work.
3020 // Iterate through items via the restricted pointer.
3021 // Also check for declarations in for loops.
3022 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3023 continue;
3024 return 0;
3025 }
3026
3027 // Check varargs and va_copy.
3028 static bool
3029 test_varargs (const char *format, ...)
3030 {
3031 va_list args;
3032 va_start (args, format);
3033 va_list args_copy;
3034 va_copy (args_copy, args);
3035
3036 const char *str = "";
3037 int number = 0;
3038 float fnumber = 0;
3039
3040 while (*format)
3041 {
3042 switch (*format++)
3043 {
3044 case '\''s'\'': // string
3045 str = va_arg (args_copy, const char *);
3046 break;
3047 case '\''d'\'': // int
3048 number = va_arg (args_copy, int);
3049 break;
3050 case '\''f'\'': // float
3051 fnumber = va_arg (args_copy, double);
3052 break;
3053 default:
3054 break;
3055 }
3056 }
3057 va_end (args_copy);
3058 va_end (args);
3059
3060 return *str && number && fnumber;
3061 }
3062 '
3063
3064 # Test code for whether the C compiler supports C99 (body of main).
3065 ac_c_conftest_c99_main='
3066 // Check bool.
3067 _Bool success = false;
3068 success |= (argc != 0);
3069
3070 // Check restrict.
3071 if (test_restrict ("String literal") == 0)
3072 success = true;
3073 char *restrict newvar = "Another string";
3074
3075 // Check varargs.
3076 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3077 test_varargs_macros ();
3078
3079 // Check flexible array members.
3080 struct incomplete_array *ia =
3081 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3082 ia->datasize = 10;
3083 for (int i = 0; i < ia->datasize; ++i)
3084 ia->data[i] = i * 1.234;
3085
3086 // Check named initializers.
3087 struct named_init ni = {
3088 .number = 34,
3089 .name = L"Test wide string",
3090 .average = 543.34343,
3091 };
3092
3093 ni.number = 58;
3094
3095 int dynamic_array[ni.number];
3096 dynamic_array[0] = argv[0][0];
3097 dynamic_array[ni.number - 1] = 543;
3098
3099 // work around unused variable warnings
3100 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3101 || dynamic_array[ni.number - 1] != 543);
3102 '
3103
3104 # Test code for whether the C compiler supports C11 (global declarations)
3105 ac_c_conftest_c11_globals='
3106 // Does the compiler advertise C11 conformance?
3107 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3108 # error "Compiler does not advertise C11 conformance"
3109 #endif
3110
3111 // Check _Alignas.
3112 char _Alignas (double) aligned_as_double;
3113 char _Alignas (0) no_special_alignment;
3114 extern char aligned_as_int;
3115 char _Alignas (0) _Alignas (int) aligned_as_int;
3116
3117 // Check _Alignof.
3118 enum
3119 {
3120 int_alignment = _Alignof (int),
3121 int_array_alignment = _Alignof (int[100]),
3122 char_alignment = _Alignof (char)
3123 };
3124 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3125
3126 // Check _Noreturn.
3127 int _Noreturn does_not_return (void) { for (;;) continue; }
3128
3129 // Check _Static_assert.
3130 struct test_static_assert
3131 {
3132 int x;
3133 _Static_assert (sizeof (int) <= sizeof (long int),
3134 "_Static_assert does not work in struct");
3135 long int y;
3136 };
3137
3138 // Check UTF-8 literals.
3139 #define u8 syntax error!
3140 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3141
3142 // Check duplicate typedefs.
3143 typedef long *long_ptr;
3144 typedef long int *long_ptr;
3145 typedef long_ptr long_ptr;
3146
3147 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3148 struct anonymous
3149 {
3150 union {
3151 struct { int i; int j; };
3152 struct { int k; long int l; } w;
3153 };
3154 int m;
3155 } v1;
3156 '
3157
3158 # Test code for whether the C compiler supports C11 (body of main).
3159 ac_c_conftest_c11_main='
3160 _Static_assert ((offsetof (struct anonymous, i)
3161 == offsetof (struct anonymous, w.k)),
3162 "Anonymous union alignment botch");
3163 v1.i = 2;
3164 v1.w.k = 5;
3165 ok |= v1.i != 5;
3166 '
3167
3168 # Test code for whether the C compiler supports C11 (complete).
3169 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3170 ${ac_c_conftest_c99_globals}
3171 ${ac_c_conftest_c11_globals}
3172
3173 int
3174 main (int argc, char **argv)
3175 {
3176 int ok = 0;
3177 ${ac_c_conftest_c89_main}
3178 ${ac_c_conftest_c99_main}
3179 ${ac_c_conftest_c11_main}
3180 return ok;
3181 }
3182 "
3183
3184 # Test code for whether the C compiler supports C99 (complete).
3185 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3186 ${ac_c_conftest_c99_globals}
3187
3188 int
3189 main (int argc, char **argv)
3190 {
3191 int ok = 0;
3192 ${ac_c_conftest_c89_main}
3193 ${ac_c_conftest_c99_main}
3194 return ok;
3195 }
3196 "
3197
3198 # Test code for whether the C compiler supports C89 (complete).
3199 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3200
3201 int
3202 main (int argc, char **argv)
3203 {
3204 int ok = 0;
3205 ${ac_c_conftest_c89_main}
3206 return ok;
3207 }
3208 "
3209
3210 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3211 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3212 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3213 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3214 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3215 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3216 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3217 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3218 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3219 # Test code for whether the C++ compiler supports C++98 (global declarations)
3220 ac_cxx_conftest_cxx98_globals='
3221 // Does the compiler advertise C++98 conformance?
3222 #if !defined __cplusplus || __cplusplus < 199711L
3223 # error "Compiler does not advertise C++98 conformance"
3224 #endif
3225
3226 // These inclusions are to reject old compilers that
3227 // lack the unsuffixed header files.
3228 #include <cstdlib>
3229 #include <exception>
3230
3231 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3232 extern void assert (int);
3233 namespace std {
3234 extern int strcmp (const char *, const char *);
3235 }
3236
3237 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3238 using std::exception;
3239 using std::strcmp;
3240
3241 namespace {
3242
3243 void test_exception_syntax()
3244 {
3245 try {
3246 throw "test";
3247 } catch (const char *s) {
3248 // Extra parentheses suppress a warning when building autoconf itself,
3249 // due to lint rules shared with more typical C programs.
3250 assert (!(strcmp) (s, "test"));
3251 }
3252 }
3253
3254 template <typename T> struct test_template
3255 {
3256 T const val;
3257 explicit test_template(T t) : val(t) {}
3258 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3259 };
3260
3261 } // anonymous namespace
3262 '
3263
3264 # Test code for whether the C++ compiler supports C++98 (body of main)
3265 ac_cxx_conftest_cxx98_main='
3266 assert (argc);
3267 assert (! argv[0]);
3268 {
3269 test_exception_syntax ();
3270 test_template<double> tt (2.0);
3271 assert (tt.add (4) == 6.0);
3272 assert (true && !false);
3273 }
3274 '
3275
3276 # Test code for whether the C++ compiler supports C++11 (global declarations)
3277 ac_cxx_conftest_cxx11_globals='
3278 // Does the compiler advertise C++ 2011 conformance?
3279 #if !defined __cplusplus || __cplusplus < 201103L
3280 # error "Compiler does not advertise C++11 conformance"
3281 #endif
3282
3283 namespace cxx11test
3284 {
3285 constexpr int get_val() { return 20; }
3286
3287 struct testinit
3288 {
3289 int i;
3290 double d;
3291 };
3292
3293 class delegate
3294 {
3295 public:
3296 delegate(int n) : n(n) {}
3297 delegate(): delegate(2354) {}
3298
3299 virtual int getval() { return this->n; };
3300 protected:
3301 int n;
3302 };
3303
3304 class overridden : public delegate
3305 {
3306 public:
3307 overridden(int n): delegate(n) {}
3308 virtual int getval() override final { return this->n * 2; }
3309 };
3310
3311 class nocopy
3312 {
3313 public:
3314 nocopy(int i): i(i) {}
3315 nocopy() = default;
3316 nocopy(const nocopy&) = delete;
3317 nocopy & operator=(const nocopy&) = delete;
3318 private:
3319 int i;
3320 };
3321
3322 // for testing lambda expressions
3323 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3324 {
3325 return f(v);
3326 }
3327
3328 // for testing variadic templates and trailing return types
3329 template <typename V> auto sum(V first) -> V
3330 {
3331 return first;
3332 }
3333 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3334 {
3335 return first + sum(rest...);
3336 }
3337 }
3338 '
3339
3340 # Test code for whether the C++ compiler supports C++11 (body of main)
3341 ac_cxx_conftest_cxx11_main='
3342 {
3343 // Test auto and decltype
3344 auto a1 = 6538;
3345 auto a2 = 48573953.4;
3346 auto a3 = "String literal";
3347
3348 int total = 0;
3349 for (auto i = a3; *i; ++i) { total += *i; }
3350
3351 decltype(a2) a4 = 34895.034;
3352 }
3353 {
3354 // Test constexpr
3355 short sa[cxx11test::get_val()] = { 0 };
3356 }
3357 {
3358 // Test initializer lists
3359 cxx11test::testinit il = { 4323, 435234.23544 };
3360 }
3361 {
3362 // Test range-based for
3363 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3364 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3365 for (auto &x : array) { x += 23; }
3366 }
3367 {
3368 // Test lambda expressions
3369 using cxx11test::eval;
3370 assert (eval ([](int x) { return x*2; }, 21) == 42);
3371 double d = 2.0;
3372 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3373 assert (d == 5.0);
3374 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3375 assert (d == 5.0);
3376 }
3377 {
3378 // Test use of variadic templates
3379 using cxx11test::sum;
3380 auto a = sum(1);
3381 auto b = sum(1, 2);
3382 auto c = sum(1.0, 2.0, 3.0);
3383 }
3384 {
3385 // Test constructor delegation
3386 cxx11test::delegate d1;
3387 cxx11test::delegate d2();
3388 cxx11test::delegate d3(45);
3389 }
3390 {
3391 // Test override and final
3392 cxx11test::overridden o1(55464);
3393 }
3394 {
3395 // Test nullptr
3396 char *c = nullptr;
3397 }
3398 {
3399 // Test template brackets
3400 test_template<::test_template<int>> v(test_template<int>(12));
3401 }
3402 {
3403 // Unicode literals
3404 char const *utf8 = u8"UTF-8 string \u2500";
3405 char16_t const *utf16 = u"UTF-8 string \u2500";
3406 char32_t const *utf32 = U"UTF-32 string \u2500";
3407 }
3408 '
3409
3410 # Test code for whether the C compiler supports C++11 (complete).
3411 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3412 ${ac_cxx_conftest_cxx11_globals}
3413
3414 int
3415 main (int argc, char **argv)
3416 {
3417 int ok = 0;
3418 ${ac_cxx_conftest_cxx98_main}
3419 ${ac_cxx_conftest_cxx11_main}
3420 return ok;
3421 }
3422 "
3423
3424 # Test code for whether the C compiler supports C++98 (complete).
3425 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3426 int
3427 main (int argc, char **argv)
3428 {
3429 int ok = 0;
3430 ${ac_cxx_conftest_cxx98_main}
3431 return ok;
3432 }
3433 "
3434
3435
3436 # Auxiliary files required by this configure script.
3437 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
3438
3439 # Locations in which to look for auxiliary files.
3440 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3441
3442 # Search for a directory containing all of the required auxiliary files,
3443 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3444 # If we don't find one directory that contains all the files we need,
3445 # we report the set of missing files from the *first* directory in
3446 # $ac_aux_dir_candidates and give up.
3447 ac_missing_aux_files=""
3448 ac_first_candidate=:
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 as_found=false
3452 for as_dir in $ac_aux_dir_candidates
3453 do
3454 IFS=$as_save_IFS
3455 case $as_dir in #(((
3456 '') as_dir=./ ;;
3457 */) ;;
3458 *) as_dir=$as_dir/ ;;
3459 esac
3460 as_found=:
3461
3462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3463 ac_aux_dir_found=yes
3464 ac_install_sh=
3465 for ac_aux in $ac_aux_files
3466 do
3467 # As a special case, if "install-sh" is required, that requirement
3468 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3469 # and $ac_install_sh is set appropriately for whichever one is found.
3470 if test x"$ac_aux" = x"install-sh"
3471 then
3472 if test -f "${as_dir}install-sh"; then
3473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3474 ac_install_sh="${as_dir}install-sh -c"
3475 elif test -f "${as_dir}install.sh"; then
3476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3477 ac_install_sh="${as_dir}install.sh -c"
3478 elif test -f "${as_dir}shtool"; then
3479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3480 ac_install_sh="${as_dir}shtool install -c"
3481 else
3482 ac_aux_dir_found=no
3483 if $ac_first_candidate; then
3484 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3485 else
3486 break
3487 fi
3488 fi
3489 else
3490 if test -f "${as_dir}${ac_aux}"; then
3491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3492 else
3493 ac_aux_dir_found=no
3494 if $ac_first_candidate; then
3495 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3496 else
3497 break
3498 fi
3499 fi
3500 fi
3501 done
3502 if test "$ac_aux_dir_found" = yes; then
3503 ac_aux_dir="$as_dir"
3504 break
3505 fi
3506 ac_first_candidate=false
3507
3508 as_found=false
3509 done
3510 IFS=$as_save_IFS
3511 if $as_found
3512 then :
3513
3514 else $as_nop
3515 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3516 fi
3517
3518
3519 # These three variables are undocumented and unsupported,
3520 # and are intended to be withdrawn in a future Autoconf release.
3521 # They can cause serious problems if a builder's source tree is in a directory
3522 # whose full name contains unusual characters.
3523 if test -f "${ac_aux_dir}config.guess"; then
3524 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3525 fi
3526 if test -f "${ac_aux_dir}config.sub"; then
3527 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3528 fi
3529 if test -f "$ac_aux_dir/configure"; then
3530 ac_configure="$SHELL ${ac_aux_dir}configure"
3531 fi
3532
3533 # Check that the precious variables saved in the cache have kept the same
3534 # value.
3535 ac_cache_corrupted=false
3536 for ac_var in $ac_precious_vars; do
3537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3538 eval ac_new_set=\$ac_env_${ac_var}_set
3539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3540 eval ac_new_val=\$ac_env_${ac_var}_value
3541 case $ac_old_set,$ac_new_set in
3542 set,)
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3544 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3545 ac_cache_corrupted=: ;;
3546 ,set)
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3548 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3549 ac_cache_corrupted=: ;;
3550 ,);;
3551 *)
3552 if test "x$ac_old_val" != "x$ac_new_val"; then
3553 # differences in whitespace do not lead to failure.
3554 ac_old_val_w=`echo x $ac_old_val`
3555 ac_new_val_w=`echo x $ac_new_val`
3556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3558 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3559 ac_cache_corrupted=:
3560 else
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3562 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3563 eval $ac_var=\$ac_old_val
3564 fi
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3566 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3568 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3569 fi;;
3570 esac
3571 # Pass precious variables to config.status.
3572 if test "$ac_new_set" = set; then
3573 case $ac_new_val in
3574 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3575 *) ac_arg=$ac_var=$ac_new_val ;;
3576 esac
3577 case " $ac_configure_args " in
3578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3580 esac
3581 fi
3582 done
3583 if $ac_cache_corrupted; then
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3587 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3588 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3589 and start over" "$LINENO" 5
3590 fi
3591 ## -------------------- ##
3592 ## Main body of script. ##
3593 ## -------------------- ##
3594
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600
3601
3602
3603 ac_config_headers="$ac_config_headers config.h"
3604
3605
3606 GRN_VERSION=16.0.5
3607
3608
3609 GRN_VERSION_MAJOR=`echo 16.0.5 | cut -d. -f1`
3610
3611 GRN_VERSION_MINOR=`echo 16.0.5 | cut -d. -f2`
3612
3613 GRN_VERSION_MICRO=`echo 16.0.5 | cut -d. -f3`
3614
3615
3616 GRN_VERSION_RC=`echo 16.0.5 | sed -e 's/\./,/g'`
3617
3618
3619 am__api_version='1.16'
3620
3621
3622
3623 # Find a good install program. We prefer a C program (faster),
3624 # so one script is as good as another. But avoid the broken or
3625 # incompatible versions:
3626 # SysV /etc/install, /usr/sbin/install
3627 # SunOS /usr/etc/install
3628 # IRIX /sbin/install
3629 # AIX /bin/install
3630 # AmigaOS /C/install, which installs bootblocks on floppy discs
3631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634 # OS/2's system install, which has a completely different semantic
3635 # ./install, which can be erroneously created by make from ./install.sh.
3636 # Reject install programs that cannot install multiple files.
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638 printf %s "checking for a BSD-compatible install... " >&6; }
3639 if test -z "$INSTALL"; then
3640 if test ${ac_cv_path_install+y}
3641 then :
3642 printf %s "(cached) " >&6
3643 else $as_nop
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647 IFS=$as_save_IFS
3648 case $as_dir in #(((
3649 '') as_dir=./ ;;
3650 */) ;;
3651 *) as_dir=$as_dir/ ;;
3652 esac
3653 # Account for fact that we put trailing slashes in our PATH walk.
3654 case $as_dir in #((
3655 ./ | /[cC]/* | \
3656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3658 /usr/ucb/* ) ;;
3659 *)
3660 # OSF1 and SCO ODT 3.0 have their own names for install.
3661 # Don't use installbsd from OSF since it installs stuff as root
3662 # by default.
3663 for ac_prog in ginstall scoinst install; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3666 if test $ac_prog = install &&
3667 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3668 # AIX install. It has an incompatible calling convention.
3669 :
3670 elif test $ac_prog = install &&
3671 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3672 # program-specific install script used by HP pwplus--don't use.
3673 :
3674 else
3675 rm -rf conftest.one conftest.two conftest.dir
3676 echo one > conftest.one
3677 echo two > conftest.two
3678 mkdir conftest.dir
3679 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3680 test -s conftest.one && test -s conftest.two &&
3681 test -s conftest.dir/conftest.one &&
3682 test -s conftest.dir/conftest.two
3683 then
3684 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3685 break 3
3686 fi
3687 fi
3688 fi
3689 done
3690 done
3691 ;;
3692 esac
3693
3694 done
3695 IFS=$as_save_IFS
3696
3697 rm -rf conftest.one conftest.two conftest.dir
3698
3699 fi
3700 if test ${ac_cv_path_install+y}; then
3701 INSTALL=$ac_cv_path_install
3702 else
3703 # As a last resort, use the slow shell script. Don't cache a
3704 # value for INSTALL within a source directory, because that will
3705 # break other packages using the cache if that directory is
3706 # removed, or if the value is a relative name.
3707 INSTALL=$ac_install_sh
3708 fi
3709 fi
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3711 printf "%s\n" "$INSTALL" >&6; }
3712
3713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3714 # It thinks the first close brace ends the variable substitution.
3715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3716
3717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3718
3719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3720
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3722 printf %s "checking whether build environment is sane... " >&6; }
3723 # Reject unsafe characters in $srcdir or the absolute working directory
3724 # name. Accept space and tab only in the latter.
3725 am_lf='
3726 '
3727 case `pwd` in
3728 *[\\\"\#\$\&\'\`$am_lf]*)
3729 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3730 esac
3731 case $srcdir in
3732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3733 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3734 esac
3735
3736 # Do 'set' in a subshell so we don't clobber the current shell's
3737 # arguments. Must try -L first in case configure is actually a
3738 # symlink; some systems play weird games with the mod time of symlinks
3739 # (eg FreeBSD returns the mod time of the symlink's containing
3740 # directory).
3741 if (
3742 am_has_slept=no
3743 for am_try in 1 2; do
3744 echo "timestamp, slept: $am_has_slept" > conftest.file
3745 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3746 if test "$*" = "X"; then
3747 # -L didn't work.
3748 set X `ls -t "$srcdir/configure" conftest.file`
3749 fi
3750 if test "$*" != "X $srcdir/configure conftest.file" \
3751 && test "$*" != "X conftest.file $srcdir/configure"; then
3752
3753 # If neither matched, then we have a broken ls. This can happen
3754 # if, for instance, CONFIG_SHELL is bash and it inherits a
3755 # broken ls alias from the environment. This has actually
3756 # happened. Such a system could not be considered "sane".
3757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3758 alias in your environment" "$LINENO" 5
3759 fi
3760 if test "$2" = conftest.file || test $am_try -eq 2; then
3761 break
3762 fi
3763 # Just in case.
3764 sleep 1
3765 am_has_slept=yes
3766 done
3767 test "$2" = conftest.file
3768 )
3769 then
3770 # Ok.
3771 :
3772 else
3773 as_fn_error $? "newly created file is older than distributed files!
3774 Check your system clock" "$LINENO" 5
3775 fi
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 printf "%s\n" "yes" >&6; }
3778 # If we didn't sleep, we still need to ensure time stamps of config.status and
3779 # generated files are strictly newer.
3780 am_sleep_pid=
3781 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3782 ( sleep 1 ) &
3783 am_sleep_pid=$!
3784 fi
3785
3786 rm -f conftest.file
3787
3788 test "$program_prefix" != NONE &&
3789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3790 # Use a double $ so make ignores it.
3791 test "$program_suffix" != NONE &&
3792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3793 # Double any \ or $.
3794 # By default was `s,x,x', remove it if useless.
3795 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3796 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3797
3798
3799 # Expand $ac_aux_dir to an absolute path.
3800 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3801
3802
3803 if test x"${MISSING+set}" != xset; then
3804 MISSING="\${SHELL} '$am_aux_dir/missing'"
3805 fi
3806 # Use eval to expand $SHELL
3807 if eval "$MISSING --is-lightweight"; then
3808 am_missing_run="$MISSING "
3809 else
3810 am_missing_run=
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3812 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3813 fi
3814
3815 if test x"${install_sh+set}" != xset; then
3816 case $am_aux_dir in
3817 *\ * | *\ *)
3818 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3819 *)
3820 install_sh="\${SHELL} $am_aux_dir/install-sh"
3821 esac
3822 fi
3823
3824 # Installed binaries are usually stripped using 'strip' when the user
3825 # run "make install-strip". However 'strip' might not be the right
3826 # tool to use in cross-compilation environments, therefore Automake
3827 # will honor the 'STRIP' environment variable to overrule this program.
3828 if test "$cross_compiling" != no; then
3829 if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3831 set dummy ${ac_tool_prefix}strip; ac_word=$2
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 printf %s "checking for $ac_word... " >&6; }
3834 if test ${ac_cv_prog_STRIP+y}
3835 then :
3836 printf %s "(cached) " >&6
3837 else $as_nop
3838 if test -n "$STRIP"; then
3839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 case $as_dir in #(((
3846 '') as_dir=./ ;;
3847 */) ;;
3848 *) as_dir=$as_dir/ ;;
3849 esac
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856 done
3857 done
3858 IFS=$as_save_IFS
3859
3860 fi
3861 fi
3862 STRIP=$ac_cv_prog_STRIP
3863 if test -n "$STRIP"; then
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3865 printf "%s\n" "$STRIP" >&6; }
3866 else
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 printf "%s\n" "no" >&6; }
3869 fi
3870
3871
3872 fi
3873 if test -z "$ac_cv_prog_STRIP"; then
3874 ac_ct_STRIP=$STRIP
3875 # Extract the first word of "strip", so it can be a program name with args.
3876 set dummy strip; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_ac_ct_STRIP+y}
3880 then :
3881 printf %s "(cached) " >&6
3882 else $as_nop
3883 if test -n "$ac_ct_STRIP"; then
3884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 case $as_dir in #(((
3891 '') as_dir=./ ;;
3892 */) ;;
3893 *) as_dir=$as_dir/ ;;
3894 esac
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_STRIP="strip"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3908 if test -n "$ac_ct_STRIP"; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3910 printf "%s\n" "$ac_ct_STRIP" >&6; }
3911 else
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3914 fi
3915
3916 if test "x$ac_ct_STRIP" = x; then
3917 STRIP=":"
3918 else
3919 case $cross_compiling:$ac_tool_warned in
3920 yes:)
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3923 ac_tool_warned=yes ;;
3924 esac
3925 STRIP=$ac_ct_STRIP
3926 fi
3927 else
3928 STRIP="$ac_cv_prog_STRIP"
3929 fi
3930
3931 fi
3932 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3933
3934
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3936 printf %s "checking for a race-free mkdir -p... " >&6; }
3937 if test -z "$MKDIR_P"; then
3938 if test ${ac_cv_path_mkdir+y}
3939 then :
3940 printf %s "(cached) " >&6
3941 else $as_nop
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3944 do
3945 IFS=$as_save_IFS
3946 case $as_dir in #(((
3947 '') as_dir=./ ;;
3948 */) ;;
3949 *) as_dir=$as_dir/ ;;
3950 esac
3951 for ac_prog in mkdir gmkdir; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3954 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3955 'mkdir ('*'coreutils) '* | \
3956 'BusyBox '* | \
3957 'mkdir (fileutils) '4.1*)
3958 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3959 break 3;;
3960 esac
3961 done
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi
3967
3968 test -d ./--version && rmdir ./--version
3969 if test ${ac_cv_path_mkdir+y}; then
3970 MKDIR_P="$ac_cv_path_mkdir -p"
3971 else
3972 # As a last resort, use the slow shell script. Don't cache a
3973 # value for MKDIR_P within a source directory, because that will
3974 # break other packages using the cache if that directory is
3975 # removed, or if the value is a relative name.
3976 MKDIR_P="$ac_install_sh -d"
3977 fi
3978 fi
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3980 printf "%s\n" "$MKDIR_P" >&6; }
3981
3982 for ac_prog in gawk mawk nawk awk
3983 do
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985 set dummy $ac_prog; ac_word=$2
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 printf %s "checking for $ac_word... " >&6; }
3988 if test ${ac_cv_prog_AWK+y}
3989 then :
3990 printf %s "(cached) " >&6
3991 else $as_nop
3992 if test -n "$AWK"; then
3993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998 IFS=$as_save_IFS
3999 case $as_dir in #(((
4000 '') as_dir=./ ;;
4001 */) ;;
4002 *) as_dir=$as_dir/ ;;
4003 esac
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_AWK="$ac_prog"
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 AWK=$ac_cv_prog_AWK
4017 if test -n "$AWK"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4019 printf "%s\n" "$AWK" >&6; }
4020 else
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 fi
4024
4025
4026 test -n "$AWK" && break
4027 done
4028
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4030 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4031 set x ${MAKE-make}
4032 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4033 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4034 then :
4035 printf %s "(cached) " >&6
4036 else $as_nop
4037 cat >conftest.make <<\_ACEOF
4038 SHELL = /bin/sh
4039 all:
4040 @echo '@@@%%%=$(MAKE)=@@@%%%'
4041 _ACEOF
4042 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4044 *@@@%%%=?*=@@@%%%*)
4045 eval ac_cv_prog_make_${ac_make}_set=yes;;
4046 *)
4047 eval ac_cv_prog_make_${ac_make}_set=no;;
4048 esac
4049 rm -f conftest.make
4050 fi
4051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053 printf "%s\n" "yes" >&6; }
4054 SET_MAKE=
4055 else
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 printf "%s\n" "no" >&6; }
4058 SET_MAKE="MAKE=${MAKE-make}"
4059 fi
4060
4061 rm -rf .tst 2>/dev/null
4062 mkdir .tst 2>/dev/null
4063 if test -d .tst; then
4064 am__leading_dot=.
4065 else
4066 am__leading_dot=_
4067 fi
4068 rmdir .tst 2>/dev/null
4069
4070 # Check whether --enable-silent-rules was given.
4071 if test ${enable_silent_rules+y}
4072 then :
4073 enableval=$enable_silent_rules;
4074 fi
4075
4076 case $enable_silent_rules in # (((
4077 yes) AM_DEFAULT_VERBOSITY=0;;
4078 no) AM_DEFAULT_VERBOSITY=1;;
4079 *) AM_DEFAULT_VERBOSITY=1;;
4080 esac
4081 am_make=${MAKE-make}
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4083 printf %s "checking whether $am_make supports nested variables... " >&6; }
4084 if test ${am_cv_make_support_nested_variables+y}
4085 then :
4086 printf %s "(cached) " >&6
4087 else $as_nop
4088 if printf "%s\n" 'TRUE=$(BAR$(V))
4089 BAR0=false
4090 BAR1=true
4091 V=1
4092 am__doit:
4093 @$(TRUE)
4094 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4095 am_cv_make_support_nested_variables=yes
4096 else
4097 am_cv_make_support_nested_variables=no
4098 fi
4099 fi
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4101 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4102 if test $am_cv_make_support_nested_variables = yes; then
4103 AM_V='$(V)'
4104 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4105 else
4106 AM_V=$AM_DEFAULT_VERBOSITY
4107 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4108 fi
4109 AM_BACKSLASH='\'
4110
4111 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4112 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4113 # is not polluted with repeated "-I."
4114 am__isrc=' -I$(srcdir)'
4115 # test to see if srcdir already configured
4116 if test -f $srcdir/config.status; then
4117 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4118 fi
4119 fi
4120
4121 # test whether we have cygpath
4122 if test -z "$CYGPATH_W"; then
4123 if (cygpath --version) >/dev/null 2>/dev/null; then
4124 CYGPATH_W='cygpath -w'
4125 else
4126 CYGPATH_W=echo
4127 fi
4128 fi
4129
4130
4131 # Define the identity of the package.
4132 PACKAGE='groonga'
4133 VERSION='16.0.5'
4134
4135
4136 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4137
4138
4139 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4140
4141 # Some tools Automake needs.
4142
4143 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4144
4145
4146 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4147
4148
4149 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4150
4151
4152 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4153
4154
4155 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4156
4157 # For better backward compatibility. To be removed once Automake 1.9.x
4158 # dies out for good. For more background, see:
4159 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4160 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4161 mkdir_p='$(MKDIR_P)'
4162
4163 # We need awk for the "check" target (and possibly the TAP driver). The
4164 # system "awk" is bad on some platforms.
4165 # Always define AMTAR for backward compatibility. Yes, it's still used
4166 # in the wild :-( We should find a proper way to deprecate it ...
4167 AMTAR='$${TAR-tar}'
4168
4169
4170 # We'll loop over all known methods to create a tar archive until one works.
4171 _am_tools='gnutar pax cpio none'
4172
4173
4174
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
4176 printf %s "checking how to create a pax tar archive... " >&6; }
4177
4178 # Go ahead even if we have the value already cached. We do so because we
4179 # need to set the values for the 'am__tar' and 'am__untar' variables.
4180 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
4181
4182 for _am_tool in $_am_tools; do
4183 case $_am_tool in
4184 gnutar)
4185 for _am_tar in tar gnutar gtar; do
4186 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4187 ($_am_tar --version) >&5 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && break
4191 done
4192 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
4193 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
4194 am__untar="$_am_tar -xf -"
4195 ;;
4196 plaintar)
4197 # Must skip GNU tar: if it does not support --format= it doesn't create
4198 # ustar tarball either.
4199 (tar --version) >/dev/null 2>&1 && continue
4200 am__tar='tar chf - "$$tardir"'
4201 am__tar_='tar chf - "$tardir"'
4202 am__untar='tar xf -'
4203 ;;
4204 pax)
4205 am__tar='pax -L -x pax -w "$$tardir"'
4206 am__tar_='pax -L -x pax -w "$tardir"'
4207 am__untar='pax -r'
4208 ;;
4209 cpio)
4210 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
4211 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
4212 am__untar='cpio -i -H pax -d'
4213 ;;
4214 none)
4215 am__tar=false
4216 am__tar_=false
4217 am__untar=false
4218 ;;
4219 esac
4220
4221 # If the value was cached, stop now. We just wanted to have am__tar
4222 # and am__untar set.
4223 test -n "${am_cv_prog_tar_pax}" && break
4224
4225 # tar/untar a dummy directory, and stop if the command works.
4226 rm -rf conftest.dir
4227 mkdir conftest.dir
4228 echo GrepMe > conftest.dir/file
4229 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4230 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }
4234 rm -rf conftest.dir
4235 if test -s conftest.tar; then
4236 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4237 ($am__untar <conftest.tar) >&5 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }
4241 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4242 (cat conftest.dir/file) >&5 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }
4246 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4247 fi
4248 done
4249 rm -rf conftest.dir
4250
4251 if test ${am_cv_prog_tar_pax+y}
4252 then :
4253 printf %s "(cached) " >&6
4254 else $as_nop
4255 am_cv_prog_tar_pax=$_am_tool
4256 fi
4257
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
4259 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
4260
4261
4262
4263
4264
4265 # Variables for tags utilities; see am/tags.am
4266 if test -z "$CTAGS"; then
4267 CTAGS=ctags
4268 fi
4269
4270 if test -z "$ETAGS"; then
4271 ETAGS=etags
4272 fi
4273
4274 if test -z "$CSCOPE"; then
4275 CSCOPE=cscope
4276 fi
4277
4278
4279
4280 # POSIX will say in a future version that running "rm -f" with no argument
4281 # is OK; and we want to be able to make that assumption in our Makefile
4282 # recipes. So use an aggressive probe to check that the usage we want is
4283 # actually supported "in the wild" to an acceptable degree.
4284 # See automake bug#10828.
4285 # To make any issue more visible, cause the running configure to be aborted
4286 # by default if the 'rm' program in use doesn't match our expectations; the
4287 # user can still override this though.
4288 if rm -f && rm -fr && rm -rf; then : OK; else
4289 cat >&2 <<'END'
4290 Oops!
4291
4292 Your 'rm' program seems unable to run without file operands specified
4293 on the command line, even when the '-f' option is present. This is contrary
4294 to the behaviour of most rm programs out there, and not conforming with
4295 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4296
4297 Please tell [email protected] about your system, including the value
4298 of your $PATH and any error possibly output before this message. This
4299 can help us improve future automake versions.
4300
4301 END
4302 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4303 echo 'Configuration will proceed anyway, since you have set the' >&2
4304 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4305 echo >&2
4306 else
4307 cat >&2 <<'END'
4308 Aborting the configuration process, to ensure you take notice of the issue.
4309
4310 You can download and install GNU coreutils to get an 'rm' implementation
4311 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4312
4313 If you want to complete the configuration process using your problematic
4314 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4315 to "yes", and re-run configure.
4316
4317 END
4318 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4319 fi
4320 fi
4321
4322 # Check whether --enable-silent-rules was given.
4323 if test ${enable_silent_rules+y}
4324 then :
4325 enableval=$enable_silent_rules;
4326 fi
4327
4328 case $enable_silent_rules in # (((
4329 yes) AM_DEFAULT_VERBOSITY=0;;
4330 no) AM_DEFAULT_VERBOSITY=1;;
4331 *) AM_DEFAULT_VERBOSITY=0;;
4332 esac
4333 am_make=${MAKE-make}
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4335 printf %s "checking whether $am_make supports nested variables... " >&6; }
4336 if test ${am_cv_make_support_nested_variables+y}
4337 then :
4338 printf %s "(cached) " >&6
4339 else $as_nop
4340 if printf "%s\n" 'TRUE=$(BAR$(V))
4341 BAR0=false
4342 BAR1=true
4343 V=1
4344 am__doit:
4345 @$(TRUE)
4346 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4347 am_cv_make_support_nested_variables=yes
4348 else
4349 am_cv_make_support_nested_variables=no
4350 fi
4351 fi
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4353 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4354 if test $am_cv_make_support_nested_variables = yes; then
4355 AM_V='$(V)'
4356 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4357 else
4358 AM_V=$AM_DEFAULT_VERBOSITY
4359 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4360 fi
4361 AM_BACKSLASH='\'
4362
4363
4364 PACKAGE_LABEL=Groonga
4365
4366
4367 printf "%s\n" "#define PACKAGE_LABEL \"$PACKAGE_LABEL\"" >>confdefs.h
4368
4369
4370 # for Autoconf 2.60 or earlier.
4371 if test -z "${datarootdir}"; then
4372 datarootdir="\${prefix}/share"
4373
4374 fi
4375
4376 # for Autoconf 2.59 or earlier.
4377 if test -z "${docdir}"; then
4378 docdir="\${datarootdir}/doc/\${PACKAGE_TARNAME}"
4379
4380 fi
4381
4382
4383
4384 # Make sure we can run config.sub.
4385 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4386 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4387
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4389 printf %s "checking build system type... " >&6; }
4390 if test ${ac_cv_build+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else $as_nop
4394 ac_build_alias=$build_alias
4395 test "x$ac_build_alias" = x &&
4396 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4397 test "x$ac_build_alias" = x &&
4398 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4399 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4400 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4401
4402 fi
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4404 printf "%s\n" "$ac_cv_build" >&6; }
4405 case $ac_cv_build in
4406 *-*-*) ;;
4407 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4408 esac
4409 build=$ac_cv_build
4410 ac_save_IFS=$IFS; IFS='-'
4411 set x $ac_cv_build
4412 shift
4413 build_cpu=$1
4414 build_vendor=$2
4415 shift; shift
4416 # Remember, the first character of IFS is used to create $*,
4417 # except with old shells:
4418 build_os=$*
4419 IFS=$ac_save_IFS
4420 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4421
4422
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4424 printf %s "checking host system type... " >&6; }
4425 if test ${ac_cv_host+y}
4426 then :
4427 printf %s "(cached) " >&6
4428 else $as_nop
4429 if test "x$host_alias" = x; then
4430 ac_cv_host=$ac_cv_build
4431 else
4432 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4433 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4434 fi
4435
4436 fi
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4438 printf "%s\n" "$ac_cv_host" >&6; }
4439 case $ac_cv_host in
4440 *-*-*) ;;
4441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4442 esac
4443 host=$ac_cv_host
4444 ac_save_IFS=$IFS; IFS='-'
4445 set x $ac_cv_host
4446 shift
4447 host_cpu=$1
4448 host_vendor=$2
4449 shift; shift
4450 # Remember, the first character of IFS is used to create $*,
4451 # except with old shells:
4452 host_os=$*
4453 IFS=$ac_save_IFS
4454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4455
4456
4457
4458 printf "%s\n" "#define HOST_CPU \"$host_cpu\"" >>confdefs.h
4459
4460
4461 printf "%s\n" "#define HOST_OS \"$host_os\"" >>confdefs.h
4462
4463
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
4465 printf %s "checking for native Win32... " >&6; }
4466 case "$host_os" in
4467 mingw*)
4468 os_win32=yes
4469 ;;
4470 *)
4471 os_win32=no
4472 ;;
4473 esac
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
4475 printf "%s\n" "$os_win32" >&6; }
4476
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
4478 printf %s "checking for some Win32 platform... " >&6; }
4479 case "$host_os" in
4480 mingw*|cygwin*)
4481 platform_win32=yes
4482 ;;
4483 *)
4484 platform_win32=no
4485 ;;
4486 esac
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
4488 printf "%s\n" "$platform_win32" >&6; }
4489
4490 if test "$os_win32" = "yes"; then
4491 OS_WIN32_TRUE=
4492 OS_WIN32_FALSE='#'
4493 else
4494 OS_WIN32_TRUE='#'
4495 OS_WIN32_FALSE=
4496 fi
4497
4498 if test "$platform_win32" = "yes"; then
4499 PLATFORM_WIN32_TRUE=
4500 PLATFORM_WIN32_FALSE='#'
4501 else
4502 PLATFORM_WIN32_TRUE='#'
4503 PLATFORM_WIN32_FALSE=
4504 fi
4505
4506
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetBSD." >&5
4508 printf %s "checking for NetBSD.... " >&6; }
4509 case "$host_os" in
4510 netbsd*)
4511 netbsd=yes
4512 ;;
4513 *)
4514 netbsd=no
4515 ;;
4516 esac
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netbsd" >&5
4518 printf "%s\n" "$netbsd" >&6; }
4519
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris." >&5
4521 printf %s "checking for Solaris.... " >&6; }
4522 case "$host_os" in
4523 solaris*)
4524 solaris=yes
4525 ;;
4526 *)
4527 solaris=no
4528 ;;
4529 esac
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $solaris" >&5
4531 printf "%s\n" "$solaris" >&6; }
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542 DEPDIR="${am__leading_dot}deps"
4543
4544 ac_config_commands="$ac_config_commands depfiles"
4545
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4547 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4548 cat > confinc.mk << 'END'
4549 am__doit:
4550 @echo this is the am__doit target >confinc.out
4551 .PHONY: am__doit
4552 END
4553 am__include="#"
4554 am__quote=
4555 # BSD make does it like this.
4556 echo '.include "confinc.mk" # ignored' > confmf.BSD
4557 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4558 echo 'include confinc.mk # ignored' > confmf.GNU
4559 _am_result=no
4560 for s in GNU BSD; do
4561 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4562 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }
4566 case $?:`cat confinc.out 2>/dev/null` in #(
4567 '0:this is the am__doit target') :
4568 case $s in #(
4569 BSD) :
4570 am__include='.include' am__quote='"' ;; #(
4571 *) :
4572 am__include='include' am__quote='' ;;
4573 esac ;; #(
4574 *) :
4575 ;;
4576 esac
4577 if test "$am__include" != "#"; then
4578 _am_result="yes ($s style)"
4579 break
4580 fi
4581 done
4582 rm -f confinc.* confmf.*
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4584 printf "%s\n" "${_am_result}" >&6; }
4585
4586 # Check whether --enable-dependency-tracking was given.
4587 if test ${enable_dependency_tracking+y}
4588 then :
4589 enableval=$enable_dependency_tracking;
4590 fi
4591
4592 if test "x$enable_dependency_tracking" != xno; then
4593 am_depcomp="$ac_aux_dir/depcomp"
4594 AMDEPBACKSLASH='\'
4595 am__nodep='_no'
4596 fi
4597 if test "x$enable_dependency_tracking" != xno; then
4598 AMDEP_TRUE=
4599 AMDEP_FALSE='#'
4600 else
4601 AMDEP_TRUE='#'
4602 AMDEP_FALSE=
4603 fi
4604
4605
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 printf %s "checking for $ac_word... " >&6; }
4616 if test ${ac_cv_prog_CC+y}
4617 then :
4618 printf %s "(cached) " >&6
4619 else $as_nop
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC="$CC" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626 IFS=$as_save_IFS
4627 case $as_dir in #(((
4628 '') as_dir=./ ;;
4629 */) ;;
4630 *) as_dir=$as_dir/ ;;
4631 esac
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 CC=$ac_cv_prog_CC
4645 if test -n "$CC"; then
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4647 printf "%s\n" "$CC" >&6; }
4648 else
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 printf "%s\n" "no" >&6; }
4651 fi
4652
4653
4654 fi
4655 if test -z "$ac_cv_prog_CC"; then
4656 ac_ct_CC=$CC
4657 # Extract the first word of "gcc", so it can be a program name with args.
4658 set dummy gcc; ac_word=$2
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 printf %s "checking for $ac_word... " >&6; }
4661 if test ${ac_cv_prog_ac_ct_CC+y}
4662 then :
4663 printf %s "(cached) " >&6
4664 else $as_nop
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 case $as_dir in #(((
4673 '') as_dir=./ ;;
4674 */) ;;
4675 *) as_dir=$as_dir/ ;;
4676 esac
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_ac_ct_CC="gcc"
4680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687 fi
4688 fi
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4692 printf "%s\n" "$ac_ct_CC" >&6; }
4693 else
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 printf "%s\n" "no" >&6; }
4696 fi
4697
4698 if test "x$ac_ct_CC" = x; then
4699 CC=""
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4705 ac_tool_warned=yes ;;
4706 esac
4707 CC=$ac_ct_CC
4708 fi
4709 else
4710 CC="$ac_cv_prog_CC"
4711 fi
4712
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}cc; ac_word=$2
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 printf %s "checking for $ac_word... " >&6; }
4719 if test ${ac_cv_prog_CC+y}
4720 then :
4721 printf %s "(cached) " >&6
4722 else $as_nop
4723 if test -n "$CC"; then
4724 ac_cv_prog_CC="$CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 case $as_dir in #(((
4731 '') as_dir=./ ;;
4732 */) ;;
4733 *) as_dir=$as_dir/ ;;
4734 esac
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_CC="${ac_tool_prefix}cc"
4738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 CC=$ac_cv_prog_CC
4748 if test -n "$CC"; then
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 printf "%s\n" "$CC" >&6; }
4751 else
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 printf "%s\n" "no" >&6; }
4754 fi
4755
4756
4757 fi
4758 fi
4759 if test -z "$CC"; then
4760 # Extract the first word of "cc", so it can be a program name with args.
4761 set dummy cc; ac_word=$2
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 printf %s "checking for $ac_word... " >&6; }
4764 if test ${ac_cv_prog_CC+y}
4765 then :
4766 printf %s "(cached) " >&6
4767 else $as_nop
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 case $as_dir in #(((
4777 '') as_dir=./ ;;
4778 */) ;;
4779 *) as_dir=$as_dir/ ;;
4780 esac
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4783 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4786 fi
4787 ac_cv_prog_CC="cc"
4788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4805 fi
4806 fi
4807 fi
4808 fi
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 printf "%s\n" "$CC" >&6; }
4813 else
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 printf "%s\n" "no" >&6; }
4816 fi
4817
4818
4819 fi
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4823 do
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 printf %s "checking for $ac_word... " >&6; }
4828 if test ${ac_cv_prog_CC+y}
4829 then :
4830 printf %s "(cached) " >&6
4831 else $as_nop
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC="$CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 case $as_dir in #(((
4840 '') as_dir=./ ;;
4841 */) ;;
4842 *) as_dir=$as_dir/ ;;
4843 esac
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 CC=$ac_cv_prog_CC
4857 if test -n "$CC"; then
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4859 printf "%s\n" "$CC" >&6; }
4860 else
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 printf "%s\n" "no" >&6; }
4863 fi
4864
4865
4866 test -n "$CC" && break
4867 done
4868 fi
4869 if test -z "$CC"; then
4870 ac_ct_CC=$CC
4871 for ac_prog in cl.exe
4872 do
4873 # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 printf %s "checking for $ac_word... " >&6; }
4877 if test ${ac_cv_prog_ac_ct_CC+y}
4878 then :
4879 printf %s "(cached) " >&6
4880 else $as_nop
4881 if test -n "$ac_ct_CC"; then
4882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 case $as_dir in #(((
4889 '') as_dir=./ ;;
4890 */) ;;
4891 *) as_dir=$as_dir/ ;;
4892 esac
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_ac_ct_CC="$ac_prog"
4896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4906 if test -n "$ac_ct_CC"; then
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4908 printf "%s\n" "$ac_ct_CC" >&6; }
4909 else
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 printf "%s\n" "no" >&6; }
4912 fi
4913
4914
4915 test -n "$ac_ct_CC" && break
4916 done
4917
4918 if test "x$ac_ct_CC" = x; then
4919 CC=""
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922 yes:)
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927 CC=$ac_ct_CC
4928 fi
4929 fi
4930
4931 fi
4932 if test -z "$CC"; then
4933 if test -n "$ac_tool_prefix"; then
4934 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4935 set dummy ${ac_tool_prefix}clang; ac_word=$2
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 printf %s "checking for $ac_word... " >&6; }
4938 if test ${ac_cv_prog_CC+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else $as_nop
4942 if test -n "$CC"; then
4943 ac_cv_prog_CC="$CC" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948 IFS=$as_save_IFS
4949 case $as_dir in #(((
4950 '') as_dir=./ ;;
4951 */) ;;
4952 *) as_dir=$as_dir/ ;;
4953 esac
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_CC="${ac_tool_prefix}clang"
4957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 CC=$ac_cv_prog_CC
4967 if test -n "$CC"; then
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4969 printf "%s\n" "$CC" >&6; }
4970 else
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 printf "%s\n" "no" >&6; }
4973 fi
4974
4975
4976 fi
4977 if test -z "$ac_cv_prog_CC"; then
4978 ac_ct_CC=$CC
4979 # Extract the first word of "clang", so it can be a program name with args.
4980 set dummy clang; ac_word=$2
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 printf %s "checking for $ac_word... " >&6; }
4983 if test ${ac_cv_prog_ac_ct_CC+y}
4984 then :
4985 printf %s "(cached) " >&6
4986 else $as_nop
4987 if test -n "$ac_ct_CC"; then
4988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993 IFS=$as_save_IFS
4994 case $as_dir in #(((
4995 '') as_dir=./ ;;
4996 */) ;;
4997 *) as_dir=$as_dir/ ;;
4998 esac
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_ac_ct_CC="clang"
5002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5012 if test -n "$ac_ct_CC"; then
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5014 printf "%s\n" "$ac_ct_CC" >&6; }
5015 else
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5018 fi
5019
5020 if test "x$ac_ct_CC" = x; then
5021 CC=""
5022 else
5023 case $cross_compiling:$ac_tool_warned in
5024 yes:)
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027 ac_tool_warned=yes ;;
5028 esac
5029 CC=$ac_ct_CC
5030 fi
5031 else
5032 CC="$ac_cv_prog_CC"
5033 fi
5034
5035 fi
5036
5037
5038 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5040 as_fn_error $? "no acceptable C compiler found in \$PATH
5041 See \`config.log' for more details" "$LINENO" 5; }
5042
5043 # Provide some information about the compiler.
5044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5045 set X $ac_compile
5046 ac_compiler=$2
5047 for ac_option in --version -v -V -qversion -version; do
5048 { { ac_try="$ac_compiler $ac_option >&5"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 printf "%s\n" "$ac_try_echo"; } >&5
5055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5056 ac_status=$?
5057 if test -s conftest.err; then
5058 sed '10a\
5059 ... rest of stderr output deleted ...
5060 10q' conftest.err >conftest.er1
5061 cat conftest.er1 >&5
5062 fi
5063 rm -f conftest.er1 conftest.err
5064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5065 test $ac_status = 0; }
5066 done
5067
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070
5071 int
5072 main (void)
5073 {
5074
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 ac_clean_files_save=$ac_clean_files
5080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5081 # Try to create an executable without -o first, disregard a.out.
5082 # It will help us diagnose broken compilers, and finding out an intuition
5083 # of exeext.
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5085 printf %s "checking whether the C compiler works... " >&6; }
5086 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5087
5088 # The possible output files:
5089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5090
5091 ac_rmfiles=
5092 for ac_file in $ac_files
5093 do
5094 case $ac_file in
5095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5097 esac
5098 done
5099 rm -f $ac_rmfiles
5100
5101 if { { ac_try="$ac_link_default"
5102 case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105 esac
5106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5107 printf "%s\n" "$ac_try_echo"; } >&5
5108 (eval "$ac_link_default") 2>&5
5109 ac_status=$?
5110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 then :
5113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5116 # so that the user can short-circuit this test for compilers unknown to
5117 # Autoconf.
5118 for ac_file in $ac_files ''
5119 do
5120 test -f "$ac_file" || continue
5121 case $ac_file in
5122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5123 ;;
5124 [ab].out )
5125 # We found the default executable, but exeext='' is most
5126 # certainly right.
5127 break;;
5128 *.* )
5129 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5130 then :; else
5131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5132 fi
5133 # We set ac_cv_exeext here because the later test for it is not
5134 # safe: cross compilers may not add the suffix if given an `-o'
5135 # argument, so we may need to know it at that point already.
5136 # Even if this section looks crufty: it has the advantage of
5137 # actually working.
5138 break;;
5139 * )
5140 break;;
5141 esac
5142 done
5143 test "$ac_cv_exeext" = no && ac_cv_exeext=
5144
5145 else $as_nop
5146 ac_file=''
5147 fi
5148 if test -z "$ac_file"
5149 then :
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 printf "%s\n" "no" >&6; }
5152 printf "%s\n" "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5157 as_fn_error 77 "C compiler cannot create executables
5158 See \`config.log' for more details" "$LINENO" 5; }
5159 else $as_nop
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5161 printf "%s\n" "yes" >&6; }
5162 fi
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5164 printf %s "checking for C compiler default output file name... " >&6; }
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5166 printf "%s\n" "$ac_file" >&6; }
5167 ac_exeext=$ac_cv_exeext
5168
5169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5170 ac_clean_files=$ac_clean_files_save
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5172 printf %s "checking for suffix of executables... " >&6; }
5173 if { { ac_try="$ac_link"
5174 case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179 printf "%s\n" "$ac_try_echo"; } >&5
5180 (eval "$ac_link") 2>&5
5181 ac_status=$?
5182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }
5184 then :
5185 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5186 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5187 # work properly (i.e., refer to `conftest.exe'), while it won't with
5188 # `rm'.
5189 for ac_file in conftest.exe conftest conftest.*; do
5190 test -f "$ac_file" || continue
5191 case $ac_file in
5192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5194 break;;
5195 * ) break;;
5196 esac
5197 done
5198 else $as_nop
5199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5201 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5202 See \`config.log' for more details" "$LINENO" 5; }
5203 fi
5204 rm -f conftest conftest$ac_cv_exeext
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5206 printf "%s\n" "$ac_cv_exeext" >&6; }
5207
5208 rm -f conftest.$ac_ext
5209 EXEEXT=$ac_cv_exeext
5210 ac_exeext=$EXEEXT
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <stdio.h>
5214 int
5215 main (void)
5216 {
5217 FILE *f = fopen ("conftest.out", "w");
5218 return ferror (f) || fclose (f) != 0;
5219
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 ac_clean_files="$ac_clean_files conftest.out"
5225 # Check that the compiler produces executables we can run. If not, either
5226 # the compiler is broken, or we cross compile.
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5228 printf %s "checking whether we are cross compiling... " >&6; }
5229 if test "$cross_compiling" != yes; then
5230 { { ac_try="$ac_link"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5236 printf "%s\n" "$ac_try_echo"; } >&5
5237 (eval "$ac_link") 2>&5
5238 ac_status=$?
5239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5240 test $ac_status = 0; }
5241 if { ac_try='./conftest$ac_cv_exeext'
5242 { { case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245 esac
5246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5247 printf "%s\n" "$ac_try_echo"; } >&5
5248 (eval "$ac_try") 2>&5
5249 ac_status=$?
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251 test $ac_status = 0; }; }; then
5252 cross_compiling=no
5253 else
5254 if test "$cross_compiling" = maybe; then
5255 cross_compiling=yes
5256 else
5257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5258 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5259 as_fn_error 77 "cannot run C compiled programs.
5260 If you meant to cross compile, use \`--host'.
5261 See \`config.log' for more details" "$LINENO" 5; }
5262 fi
5263 fi
5264 fi
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5266 printf "%s\n" "$cross_compiling" >&6; }
5267
5268 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5269 ac_clean_files=$ac_clean_files_save
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5271 printf %s "checking for suffix of object files... " >&6; }
5272 if test ${ac_cv_objext+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 int
5280 main (void)
5281 {
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 rm -f conftest.o conftest.obj
5288 if { { ac_try="$ac_compile"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5294 printf "%s\n" "$ac_try_echo"; } >&5
5295 (eval "$ac_compile") 2>&5
5296 ac_status=$?
5297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 then :
5300 for ac_file in conftest.o conftest.obj conftest.*; do
5301 test -f "$ac_file" || continue;
5302 case $ac_file in
5303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5305 break;;
5306 esac
5307 done
5308 else $as_nop
5309 printf "%s\n" "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5314 as_fn_error $? "cannot compute suffix of object files: cannot compile
5315 See \`config.log' for more details" "$LINENO" 5; }
5316 fi
5317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5318 fi
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5320 printf "%s\n" "$ac_cv_objext" >&6; }
5321 OBJEXT=$ac_cv_objext
5322 ac_objext=$OBJEXT
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5324 printf %s "checking whether the compiler supports GNU C... " >&6; }
5325 if test ${ac_cv_c_compiler_gnu+y}
5326 then :
5327 printf %s "(cached) " >&6
5328 else $as_nop
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331
5332 int
5333 main (void)
5334 {
5335 #ifndef __GNUC__
5336 choke me
5337 #endif
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"
5344 then :
5345 ac_compiler_gnu=yes
5346 else $as_nop
5347 ac_compiler_gnu=no
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5351
5352 fi
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5354 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357 if test $ac_compiler_gnu = yes; then
5358 GCC=yes
5359 else
5360 GCC=
5361 fi
5362 ac_test_CFLAGS=${CFLAGS+y}
5363 ac_save_CFLAGS=$CFLAGS
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5365 printf %s "checking whether $CC accepts -g... " >&6; }
5366 if test ${ac_cv_prog_cc_g+y}
5367 then :
5368 printf %s "(cached) " >&6
5369 else $as_nop
5370 ac_save_c_werror_flag=$ac_c_werror_flag
5371 ac_c_werror_flag=yes
5372 ac_cv_prog_cc_g=no
5373 CFLAGS="-g"
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 int
5378 main (void)
5379 {
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"
5386 then :
5387 ac_cv_prog_cc_g=yes
5388 else $as_nop
5389 CFLAGS=""
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392
5393 int
5394 main (void)
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"
5402 then :
5403
5404 else $as_nop
5405 ac_c_werror_flag=$ac_save_c_werror_flag
5406 CFLAGS="-g"
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409
5410 int
5411 main (void)
5412 {
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"
5419 then :
5420 ac_cv_prog_cc_g=yes
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 ac_c_werror_flag=$ac_save_c_werror_flag
5428 fi
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5430 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5431 if test $ac_test_CFLAGS; then
5432 CFLAGS=$ac_save_CFLAGS
5433 elif test $ac_cv_prog_cc_g = yes; then
5434 if test "$GCC" = yes; then
5435 CFLAGS="-g -O2"
5436 else
5437 CFLAGS="-g"
5438 fi
5439 else
5440 if test "$GCC" = yes; then
5441 CFLAGS="-O2"
5442 else
5443 CFLAGS=
5444 fi
5445 fi
5446 ac_prog_cc_stdc=no
5447 if test x$ac_prog_cc_stdc = xno
5448 then :
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5450 printf %s "checking for $CC option to enable C11 features... " >&6; }
5451 if test ${ac_cv_prog_cc_c11+y}
5452 then :
5453 printf %s "(cached) " >&6
5454 else $as_nop
5455 ac_cv_prog_cc_c11=no
5456 ac_save_CC=$CC
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 $ac_c_conftest_c11_program
5460 _ACEOF
5461 for ac_arg in '' -std=gnu11
5462 do
5463 CC="$ac_save_CC $ac_arg"
5464 if ac_fn_c_try_compile "$LINENO"
5465 then :
5466 ac_cv_prog_cc_c11=$ac_arg
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext conftest.beam
5469 test "x$ac_cv_prog_cc_c11" != "xno" && break
5470 done
5471 rm -f conftest.$ac_ext
5472 CC=$ac_save_CC
5473 fi
5474
5475 if test "x$ac_cv_prog_cc_c11" = xno
5476 then :
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5478 printf "%s\n" "unsupported" >&6; }
5479 else $as_nop
5480 if test "x$ac_cv_prog_cc_c11" = x
5481 then :
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5483 printf "%s\n" "none needed" >&6; }
5484 else $as_nop
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5486 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5487 CC="$CC $ac_cv_prog_cc_c11"
5488 fi
5489 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5490 ac_prog_cc_stdc=c11
5491 fi
5492 fi
5493 if test x$ac_prog_cc_stdc = xno
5494 then :
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5496 printf %s "checking for $CC option to enable C99 features... " >&6; }
5497 if test ${ac_cv_prog_cc_c99+y}
5498 then :
5499 printf %s "(cached) " >&6
5500 else $as_nop
5501 ac_cv_prog_cc_c99=no
5502 ac_save_CC=$CC
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505 $ac_c_conftest_c99_program
5506 _ACEOF
5507 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5508 do
5509 CC="$ac_save_CC $ac_arg"
5510 if ac_fn_c_try_compile "$LINENO"
5511 then :
5512 ac_cv_prog_cc_c99=$ac_arg
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext conftest.beam
5515 test "x$ac_cv_prog_cc_c99" != "xno" && break
5516 done
5517 rm -f conftest.$ac_ext
5518 CC=$ac_save_CC
5519 fi
5520
5521 if test "x$ac_cv_prog_cc_c99" = xno
5522 then :
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5524 printf "%s\n" "unsupported" >&6; }
5525 else $as_nop
5526 if test "x$ac_cv_prog_cc_c99" = x
5527 then :
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5529 printf "%s\n" "none needed" >&6; }
5530 else $as_nop
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5532 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5533 CC="$CC $ac_cv_prog_cc_c99"
5534 fi
5535 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5536 ac_prog_cc_stdc=c99
5537 fi
5538 fi
5539 if test x$ac_prog_cc_stdc = xno
5540 then :
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5542 printf %s "checking for $CC option to enable C89 features... " >&6; }
5543 if test ${ac_cv_prog_cc_c89+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else $as_nop
5547 ac_cv_prog_cc_c89=no
5548 ac_save_CC=$CC
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 $ac_c_conftest_c89_program
5552 _ACEOF
5553 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5554 do
5555 CC="$ac_save_CC $ac_arg"
5556 if ac_fn_c_try_compile "$LINENO"
5557 then :
5558 ac_cv_prog_cc_c89=$ac_arg
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext conftest.beam
5561 test "x$ac_cv_prog_cc_c89" != "xno" && break
5562 done
5563 rm -f conftest.$ac_ext
5564 CC=$ac_save_CC
5565 fi
5566
5567 if test "x$ac_cv_prog_cc_c89" = xno
5568 then :
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5570 printf "%s\n" "unsupported" >&6; }
5571 else $as_nop
5572 if test "x$ac_cv_prog_cc_c89" = x
5573 then :
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5575 printf "%s\n" "none needed" >&6; }
5576 else $as_nop
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5578 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5579 CC="$CC $ac_cv_prog_cc_c89"
5580 fi
5581 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5582 ac_prog_cc_stdc=c89
5583 fi
5584 fi
5585
5586 ac_ext=c
5587 ac_cpp='$CPP $CPPFLAGS'
5588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5591
5592
5593 ac_ext=c
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5599 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5600 if test ${am_cv_prog_cc_c_o+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else $as_nop
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main (void)
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 # Make sure it works both with $CC and with simple cc.
5616 # Following AC_PROG_CC_C_O, we do the test twice because some
5617 # compilers refuse to overwrite an existing .o file with -o,
5618 # though they will create one.
5619 am_cv_prog_cc_c_o=yes
5620 for am_i in 1 2; do
5621 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5622 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } \
5626 && test -f conftest2.$ac_objext; then
5627 : OK
5628 else
5629 am_cv_prog_cc_c_o=no
5630 break
5631 fi
5632 done
5633 rm -f core conftest*
5634 unset am_i
5635 fi
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5637 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5638 if test "$am_cv_prog_cc_c_o" != yes; then
5639 # Losing compiler, so override with the script.
5640 # FIXME: It is wrong to rewrite CC.
5641 # But if we don't then we get into trouble of one sort or another.
5642 # A longer-term fix would be to have automake use am__CC in this case,
5643 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5644 CC="$am_aux_dir/compile $CC"
5645 fi
5646 ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652
5653 depcc="$CC" am_compiler_list=
5654
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5656 printf %s "checking dependency style of $depcc... " >&6; }
5657 if test ${am_cv_CC_dependencies_compiler_type+y}
5658 then :
5659 printf %s "(cached) " >&6
5660 else $as_nop
5661 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5662 # We make a subdir and do the tests there. Otherwise we can end up
5663 # making bogus files that we don't know about and never remove. For
5664 # instance it was reported that on HP-UX the gcc test will end up
5665 # making a dummy file named 'D' -- because '-MD' means "put the output
5666 # in D".
5667 rm -rf conftest.dir
5668 mkdir conftest.dir
5669 # Copy depcomp to subdir because otherwise we won't find it if we're
5670 # using a relative directory.
5671 cp "$am_depcomp" conftest.dir
5672 cd conftest.dir
5673 # We will build objects and dependencies in a subdirectory because
5674 # it helps to detect inapplicable dependency modes. For instance
5675 # both Tru64's cc and ICC support -MD to output dependencies as a
5676 # side effect of compilation, but ICC will put the dependencies in
5677 # the current directory while Tru64 will put them in the object
5678 # directory.
5679 mkdir sub
5680
5681 am_cv_CC_dependencies_compiler_type=none
5682 if test "$am_compiler_list" = ""; then
5683 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5684 fi
5685 am__universal=false
5686 case " $depcc " in #(
5687 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5688 esac
5689
5690 for depmode in $am_compiler_list; do
5691 # Setup a source with many dependencies, because some compilers
5692 # like to wrap large dependency lists on column 80 (with \), and
5693 # we should not choose a depcomp mode which is confused by this.
5694 #
5695 # We need to recreate these files for each test, as the compiler may
5696 # overwrite some of them when testing with obscure command lines.
5697 # This happens at least with the AIX C compiler.
5698 : > sub/conftest.c
5699 for i in 1 2 3 4 5 6; do
5700 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5701 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5702 # Solaris 10 /bin/sh.
5703 echo '/* dummy */' > sub/conftst$i.h
5704 done
5705 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5706
5707 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5708 # mode. It turns out that the SunPro C++ compiler does not properly
5709 # handle '-M -o', and we need to detect this. Also, some Intel
5710 # versions had trouble with output in subdirs.
5711 am__obj=sub/conftest.${OBJEXT-o}
5712 am__minus_obj="-o $am__obj"
5713 case $depmode in
5714 gcc)
5715 # This depmode causes a compiler race in universal mode.
5716 test "$am__universal" = false || continue
5717 ;;
5718 nosideeffect)
5719 # After this tag, mechanisms are not by side-effect, so they'll
5720 # only be used when explicitly requested.
5721 if test "x$enable_dependency_tracking" = xyes; then
5722 continue
5723 else
5724 break
5725 fi
5726 ;;
5727 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5728 # This compiler won't grok '-c -o', but also, the minuso test has
5729 # not run yet. These depmodes are late enough in the game, and
5730 # so weak that their functioning should not be impacted.
5731 am__obj=conftest.${OBJEXT-o}
5732 am__minus_obj=
5733 ;;
5734 none) break ;;
5735 esac
5736 if depmode=$depmode \
5737 source=sub/conftest.c object=$am__obj \
5738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5739 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5740 >/dev/null 2>conftest.err &&
5741 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5743 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5745 # icc doesn't choke on unknown options, it will just issue warnings
5746 # or remarks (even with -Werror). So we grep stderr for any message
5747 # that says an option was ignored or not supported.
5748 # When given -MP, icc 7.0 and 7.1 complain thusly:
5749 # icc: Command line warning: ignoring option '-M'; no argument required
5750 # The diagnosis changed in icc 8.0:
5751 # icc: Command line remark: option '-MP' not supported
5752 if (grep 'ignoring option' conftest.err ||
5753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5754 am_cv_CC_dependencies_compiler_type=$depmode
5755 break
5756 fi
5757 fi
5758 done
5759
5760 cd ..
5761 rm -rf conftest.dir
5762 else
5763 am_cv_CC_dependencies_compiler_type=none
5764 fi
5765
5766 fi
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5768 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5770
5771 if
5772 test "x$enable_dependency_tracking" != xno \
5773 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5774 am__fastdepCC_TRUE=
5775 am__fastdepCC_FALSE='#'
5776 else
5777 am__fastdepCC_TRUE='#'
5778 am__fastdepCC_FALSE=
5779 fi
5780
5781
5782
5783 ac_header= ac_cache=
5784 for ac_item in $ac_header_c_list
5785 do
5786 if test $ac_cache; then
5787 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5788 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5789 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5790 fi
5791 ac_header= ac_cache=
5792 elif test $ac_header; then
5793 ac_cache=$ac_item
5794 else
5795 ac_header=$ac_item
5796 fi
5797 done
5798
5799
5800
5801
5802
5803
5804
5805
5806 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5807 then :
5808
5809 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5810
5811 fi
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5813 printf %s "checking whether byte ordering is bigendian... " >&6; }
5814 if test ${ac_cv_c_bigendian+y}
5815 then :
5816 printf %s "(cached) " >&6
5817 else $as_nop
5818 ac_cv_c_bigendian=unknown
5819 # See if we're dealing with a universal compiler.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #ifndef __APPLE_CC__
5823 not a universal capable compiler
5824 #endif
5825 typedef int dummy;
5826
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"
5829 then :
5830
5831 # Check for potential -arch flags. It is not universal unless
5832 # there are at least two -arch flags with different values.
5833 ac_arch=
5834 ac_prev=
5835 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5836 if test -n "$ac_prev"; then
5837 case $ac_word in
5838 i?86 | x86_64 | ppc | ppc64)
5839 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5840 ac_arch=$ac_word
5841 else
5842 ac_cv_c_bigendian=universal
5843 break
5844 fi
5845 ;;
5846 esac
5847 ac_prev=
5848 elif test "x$ac_word" = "x-arch"; then
5849 ac_prev=arch
5850 fi
5851 done
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5854 if test $ac_cv_c_bigendian = unknown; then
5855 # See if sys/param.h defines the BYTE_ORDER macro.
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #include <sys/types.h>
5859 #include <sys/param.h>
5860
5861 int
5862 main (void)
5863 {
5864 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5865 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5866 && LITTLE_ENDIAN)
5867 bogus endian macros
5868 #endif
5869
5870 ;
5871 return 0;
5872 }
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"
5875 then :
5876 # It does; now see whether it defined to BIG_ENDIAN or not.
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <sys/types.h>
5880 #include <sys/param.h>
5881
5882 int
5883 main (void)
5884 {
5885 #if BYTE_ORDER != BIG_ENDIAN
5886 not big endian
5887 #endif
5888
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 if ac_fn_c_try_compile "$LINENO"
5894 then :
5895 ac_cv_c_bigendian=yes
5896 else $as_nop
5897 ac_cv_c_bigendian=no
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5902 fi
5903 if test $ac_cv_c_bigendian = unknown; then
5904 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #include <limits.h>
5908
5909 int
5910 main (void)
5911 {
5912 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5913 bogus endian macros
5914 #endif
5915
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"
5921 then :
5922 # It does; now see whether it defined to _BIG_ENDIAN or not.
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <limits.h>
5926
5927 int
5928 main (void)
5929 {
5930 #ifndef _BIG_ENDIAN
5931 not big endian
5932 #endif
5933
5934 ;
5935 return 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"
5939 then :
5940 ac_cv_c_bigendian=yes
5941 else $as_nop
5942 ac_cv_c_bigendian=no
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5947 fi
5948 if test $ac_cv_c_bigendian = unknown; then
5949 # Compile a test program.
5950 if test "$cross_compiling" = yes
5951 then :
5952 # Try to guess by grepping values from an object file.
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 unsigned short int ascii_mm[] =
5956 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5957 unsigned short int ascii_ii[] =
5958 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5959 int use_ascii (int i) {
5960 return ascii_mm[i] + ascii_ii[i];
5961 }
5962 unsigned short int ebcdic_ii[] =
5963 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5964 unsigned short int ebcdic_mm[] =
5965 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5966 int use_ebcdic (int i) {
5967 return ebcdic_mm[i] + ebcdic_ii[i];
5968 }
5969 extern int foo;
5970
5971 int
5972 main (void)
5973 {
5974 return use_ascii (foo) == use_ebcdic (foo);
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"
5980 then :
5981 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5982 ac_cv_c_bigendian=yes
5983 fi
5984 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5985 if test "$ac_cv_c_bigendian" = unknown; then
5986 ac_cv_c_bigendian=no
5987 else
5988 # finding both strings is unlikely to happen, but who knows?
5989 ac_cv_c_bigendian=unknown
5990 fi
5991 fi
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5994 else $as_nop
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998 int
5999 main (void)
6000 {
6001
6002 /* Are we little or big endian? From Harbison&Steele. */
6003 union
6004 {
6005 long int l;
6006 char c[sizeof (long int)];
6007 } u;
6008 u.l = 1;
6009 return u.c[sizeof (long int) - 1] == 1;
6010
6011 ;
6012 return 0;
6013 }
6014 _ACEOF
6015 if ac_fn_c_try_run "$LINENO"
6016 then :
6017 ac_cv_c_bigendian=no
6018 else $as_nop
6019 ac_cv_c_bigendian=yes
6020 fi
6021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6022 conftest.$ac_objext conftest.beam conftest.$ac_ext
6023 fi
6024
6025 fi
6026 fi
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6028 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6029 case $ac_cv_c_bigendian in #(
6030 yes)
6031 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6032 ;; #(
6033 no)
6034 ;; #(
6035 universal)
6036
6037 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6038
6039 ;; #(
6040 *)
6041 as_fn_error $? "unknown endianness
6042 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6043 esac
6044
6045
6046
6047
6048
6049
6050
6051 ac_ext=cpp
6052 ac_cpp='$CXXCPP $CPPFLAGS'
6053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6056 if test -z "$CXX"; then
6057 if test -n "$CCC"; then
6058 CXX=$CCC
6059 else
6060 if test -n "$ac_tool_prefix"; then
6061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6062 do
6063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 printf %s "checking for $ac_word... " >&6; }
6067 if test ${ac_cv_prog_CXX+y}
6068 then :
6069 printf %s "(cached) " >&6
6070 else $as_nop
6071 if test -n "$CXX"; then
6072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077 IFS=$as_save_IFS
6078 case $as_dir in #(((
6079 '') as_dir=./ ;;
6080 */) ;;
6081 *) as_dir=$as_dir/ ;;
6082 esac
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 CXX=$ac_cv_prog_CXX
6096 if test -n "$CXX"; then
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6098 printf "%s\n" "$CXX" >&6; }
6099 else
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 printf "%s\n" "no" >&6; }
6102 fi
6103
6104
6105 test -n "$CXX" && break
6106 done
6107 fi
6108 if test -z "$CXX"; then
6109 ac_ct_CXX=$CXX
6110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6111 do
6112 # Extract the first word of "$ac_prog", so it can be a program name with args.
6113 set dummy $ac_prog; ac_word=$2
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 printf %s "checking for $ac_word... " >&6; }
6116 if test ${ac_cv_prog_ac_ct_CXX+y}
6117 then :
6118 printf %s "(cached) " >&6
6119 else $as_nop
6120 if test -n "$ac_ct_CXX"; then
6121 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 case $as_dir in #(((
6128 '') as_dir=./ ;;
6129 */) ;;
6130 *) as_dir=$as_dir/ ;;
6131 esac
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_CXX="$ac_prog"
6135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6145 if test -n "$ac_ct_CXX"; then
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6147 printf "%s\n" "$ac_ct_CXX" >&6; }
6148 else
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 printf "%s\n" "no" >&6; }
6151 fi
6152
6153
6154 test -n "$ac_ct_CXX" && break
6155 done
6156
6157 if test "x$ac_ct_CXX" = x; then
6158 CXX="g++"
6159 else
6160 case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166 CXX=$ac_ct_CXX
6167 fi
6168 fi
6169
6170 fi
6171 fi
6172 # Provide some information about the compiler.
6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6174 set X $ac_compile
6175 ac_compiler=$2
6176 for ac_option in --version -v -V -qversion; do
6177 { { ac_try="$ac_compiler $ac_option >&5"
6178 case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6183 printf "%s\n" "$ac_try_echo"; } >&5
6184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6185 ac_status=$?
6186 if test -s conftest.err; then
6187 sed '10a\
6188 ... rest of stderr output deleted ...
6189 10q' conftest.err >conftest.er1
6190 cat conftest.er1 >&5
6191 fi
6192 rm -f conftest.er1 conftest.err
6193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194 test $ac_status = 0; }
6195 done
6196
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6198 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6199 if test ${ac_cv_cxx_compiler_gnu+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else $as_nop
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205
6206 int
6207 main (void)
6208 {
6209 #ifndef __GNUC__
6210 choke me
6211 #endif
6212
6213 ;
6214 return 0;
6215 }
6216 _ACEOF
6217 if ac_fn_cxx_try_compile "$LINENO"
6218 then :
6219 ac_compiler_gnu=yes
6220 else $as_nop
6221 ac_compiler_gnu=no
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6224 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6225
6226 fi
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6228 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6230
6231 if test $ac_compiler_gnu = yes; then
6232 GXX=yes
6233 else
6234 GXX=
6235 fi
6236 ac_test_CXXFLAGS=${CXXFLAGS+y}
6237 ac_save_CXXFLAGS=$CXXFLAGS
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6239 printf %s "checking whether $CXX accepts -g... " >&6; }
6240 if test ${ac_cv_prog_cxx_g+y}
6241 then :
6242 printf %s "(cached) " >&6
6243 else $as_nop
6244 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6245 ac_cxx_werror_flag=yes
6246 ac_cv_prog_cxx_g=no
6247 CXXFLAGS="-g"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250
6251 int
6252 main (void)
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_cxx_try_compile "$LINENO"
6260 then :
6261 ac_cv_prog_cxx_g=yes
6262 else $as_nop
6263 CXXFLAGS=""
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266
6267 int
6268 main (void)
6269 {
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_cxx_try_compile "$LINENO"
6276 then :
6277
6278 else $as_nop
6279 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6280 CXXFLAGS="-g"
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283
6284 int
6285 main (void)
6286 {
6287
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 if ac_fn_cxx_try_compile "$LINENO"
6293 then :
6294 ac_cv_prog_cxx_g=yes
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6302 fi
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6304 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6305 if test $ac_test_CXXFLAGS; then
6306 CXXFLAGS=$ac_save_CXXFLAGS
6307 elif test $ac_cv_prog_cxx_g = yes; then
6308 if test "$GXX" = yes; then
6309 CXXFLAGS="-g -O2"
6310 else
6311 CXXFLAGS="-g"
6312 fi
6313 else
6314 if test "$GXX" = yes; then
6315 CXXFLAGS="-O2"
6316 else
6317 CXXFLAGS=
6318 fi
6319 fi
6320 ac_prog_cxx_stdcxx=no
6321 if test x$ac_prog_cxx_stdcxx = xno
6322 then :
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6324 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6325 if test ${ac_cv_prog_cxx_cxx11+y}
6326 then :
6327 printf %s "(cached) " >&6
6328 else $as_nop
6329 ac_cv_prog_cxx_cxx11=no
6330 ac_save_CXX=$CXX
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 $ac_cxx_conftest_cxx11_program
6334 _ACEOF
6335 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6336 do
6337 CXX="$ac_save_CXX $ac_arg"
6338 if ac_fn_cxx_try_compile "$LINENO"
6339 then :
6340 ac_cv_prog_cxx_cxx11=$ac_arg
6341 fi
6342 rm -f core conftest.err conftest.$ac_objext conftest.beam
6343 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6344 done
6345 rm -f conftest.$ac_ext
6346 CXX=$ac_save_CXX
6347 fi
6348
6349 if test "x$ac_cv_prog_cxx_cxx11" = xno
6350 then :
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6352 printf "%s\n" "unsupported" >&6; }
6353 else $as_nop
6354 if test "x$ac_cv_prog_cxx_cxx11" = x
6355 then :
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6357 printf "%s\n" "none needed" >&6; }
6358 else $as_nop
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6360 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6361 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6362 fi
6363 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6364 ac_prog_cxx_stdcxx=cxx11
6365 fi
6366 fi
6367 if test x$ac_prog_cxx_stdcxx = xno
6368 then :
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6370 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6371 if test ${ac_cv_prog_cxx_cxx98+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else $as_nop
6375 ac_cv_prog_cxx_cxx98=no
6376 ac_save_CXX=$CXX
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 $ac_cxx_conftest_cxx98_program
6380 _ACEOF
6381 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6382 do
6383 CXX="$ac_save_CXX $ac_arg"
6384 if ac_fn_cxx_try_compile "$LINENO"
6385 then :
6386 ac_cv_prog_cxx_cxx98=$ac_arg
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext conftest.beam
6389 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6390 done
6391 rm -f conftest.$ac_ext
6392 CXX=$ac_save_CXX
6393 fi
6394
6395 if test "x$ac_cv_prog_cxx_cxx98" = xno
6396 then :
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6398 printf "%s\n" "unsupported" >&6; }
6399 else $as_nop
6400 if test "x$ac_cv_prog_cxx_cxx98" = x
6401 then :
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6403 printf "%s\n" "none needed" >&6; }
6404 else $as_nop
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6406 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6407 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6408 fi
6409 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6410 ac_prog_cxx_stdcxx=cxx98
6411 fi
6412 fi
6413
6414 ac_ext=c
6415 ac_cpp='$CPP $CPPFLAGS'
6416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6419
6420 depcc="$CXX" am_compiler_list=
6421
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6423 printf %s "checking dependency style of $depcc... " >&6; }
6424 if test ${am_cv_CXX_dependencies_compiler_type+y}
6425 then :
6426 printf %s "(cached) " >&6
6427 else $as_nop
6428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6429 # We make a subdir and do the tests there. Otherwise we can end up
6430 # making bogus files that we don't know about and never remove. For
6431 # instance it was reported that on HP-UX the gcc test will end up
6432 # making a dummy file named 'D' -- because '-MD' means "put the output
6433 # in D".
6434 rm -rf conftest.dir
6435 mkdir conftest.dir
6436 # Copy depcomp to subdir because otherwise we won't find it if we're
6437 # using a relative directory.
6438 cp "$am_depcomp" conftest.dir
6439 cd conftest.dir
6440 # We will build objects and dependencies in a subdirectory because
6441 # it helps to detect inapplicable dependency modes. For instance
6442 # both Tru64's cc and ICC support -MD to output dependencies as a
6443 # side effect of compilation, but ICC will put the dependencies in
6444 # the current directory while Tru64 will put them in the object
6445 # directory.
6446 mkdir sub
6447
6448 am_cv_CXX_dependencies_compiler_type=none
6449 if test "$am_compiler_list" = ""; then
6450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6451 fi
6452 am__universal=false
6453 case " $depcc " in #(
6454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6455 esac
6456
6457 for depmode in $am_compiler_list; do
6458 # Setup a source with many dependencies, because some compilers
6459 # like to wrap large dependency lists on column 80 (with \), and
6460 # we should not choose a depcomp mode which is confused by this.
6461 #
6462 # We need to recreate these files for each test, as the compiler may
6463 # overwrite some of them when testing with obscure command lines.
6464 # This happens at least with the AIX C compiler.
6465 : > sub/conftest.c
6466 for i in 1 2 3 4 5 6; do
6467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6468 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6469 # Solaris 10 /bin/sh.
6470 echo '/* dummy */' > sub/conftst$i.h
6471 done
6472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6473
6474 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6475 # mode. It turns out that the SunPro C++ compiler does not properly
6476 # handle '-M -o', and we need to detect this. Also, some Intel
6477 # versions had trouble with output in subdirs.
6478 am__obj=sub/conftest.${OBJEXT-o}
6479 am__minus_obj="-o $am__obj"
6480 case $depmode in
6481 gcc)
6482 # This depmode causes a compiler race in universal mode.
6483 test "$am__universal" = false || continue
6484 ;;
6485 nosideeffect)
6486 # After this tag, mechanisms are not by side-effect, so they'll
6487 # only be used when explicitly requested.
6488 if test "x$enable_dependency_tracking" = xyes; then
6489 continue
6490 else
6491 break
6492 fi
6493 ;;
6494 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6495 # This compiler won't grok '-c -o', but also, the minuso test has
6496 # not run yet. These depmodes are late enough in the game, and
6497 # so weak that their functioning should not be impacted.
6498 am__obj=conftest.${OBJEXT-o}
6499 am__minus_obj=
6500 ;;
6501 none) break ;;
6502 esac
6503 if depmode=$depmode \
6504 source=sub/conftest.c object=$am__obj \
6505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6507 >/dev/null 2>conftest.err &&
6508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6512 # icc doesn't choke on unknown options, it will just issue warnings
6513 # or remarks (even with -Werror). So we grep stderr for any message
6514 # that says an option was ignored or not supported.
6515 # When given -MP, icc 7.0 and 7.1 complain thusly:
6516 # icc: Command line warning: ignoring option '-M'; no argument required
6517 # The diagnosis changed in icc 8.0:
6518 # icc: Command line remark: option '-MP' not supported
6519 if (grep 'ignoring option' conftest.err ||
6520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6521 am_cv_CXX_dependencies_compiler_type=$depmode
6522 break
6523 fi
6524 fi
6525 done
6526
6527 cd ..
6528 rm -rf conftest.dir
6529 else
6530 am_cv_CXX_dependencies_compiler_type=none
6531 fi
6532
6533 fi
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6535 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6537
6538 if
6539 test "x$enable_dependency_tracking" != xno \
6540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6541 am__fastdepCXX_TRUE=
6542 am__fastdepCXX_FALSE='#'
6543 else
6544 am__fastdepCXX_TRUE='#'
6545 am__fastdepCXX_FALSE=
6546 fi
6547
6548
6549
6550 ax_cxx_compile_alternatives="20" ax_cxx_compile_cxx20_required=false
6551 ac_ext=cpp
6552 ac_cpp='$CXXCPP $CPPFLAGS'
6553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6556 ac_success=no
6557
6558
6559
6560 if test x$ac_success = xno; then
6561 for alternative in ${ax_cxx_compile_alternatives}; do
6562 switch="-std=gnu++${alternative}"
6563 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh`
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5
6565 printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; }
6566 if eval test \${$cachevar+y}
6567 then :
6568 printf %s "(cached) " >&6
6569 else $as_nop
6570 ac_save_CXX="$CXX"
6571 CXX="$CXX $switch"
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574
6575
6576 // If the compiler admits that it is not ready for C++11, why torture it?
6577 // Hopefully, this will speed up the test.
6578
6579 #ifndef __cplusplus
6580
6581 #error "This is not a C++ compiler"
6582
6583 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
6584 // only set it correctly if /Zc:__cplusplus is specified as well as a
6585 // /std:c++NN switch:
6586 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
6587 #elif __cplusplus < 201103L && !defined _MSC_VER
6588
6589 #error "This is not a C++11 compiler"
6590
6591 #else
6592
6593 namespace cxx11
6594 {
6595
6596 namespace test_static_assert
6597 {
6598
6599 template <typename T>
6600 struct check
6601 {
6602 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6603 };
6604
6605 }
6606
6607 namespace test_final_override
6608 {
6609
6610 struct Base
6611 {
6612 virtual ~Base() {}
6613 virtual void f() {}
6614 };
6615
6616 struct Derived : public Base
6617 {
6618 virtual ~Derived() override {}
6619 virtual void f() override {}
6620 };
6621
6622 }
6623
6624 namespace test_double_right_angle_brackets
6625 {
6626
6627 template < typename T >
6628 struct check {};
6629
6630 typedef check<void> single_type;
6631 typedef check<check<void>> double_type;
6632 typedef check<check<check<void>>> triple_type;
6633 typedef check<check<check<check<void>>>> quadruple_type;
6634
6635 }
6636
6637 namespace test_decltype
6638 {
6639
6640 int
6641 f()
6642 {
6643 int a = 1;
6644 decltype(a) b = 2;
6645 return a + b;
6646 }
6647
6648 }
6649
6650 namespace test_type_deduction
6651 {
6652
6653 template < typename T1, typename T2 >
6654 struct is_same
6655 {
6656 static const bool value = false;
6657 };
6658
6659 template < typename T >
6660 struct is_same<T, T>
6661 {
6662 static const bool value = true;
6663 };
6664
6665 template < typename T1, typename T2 >
6666 auto
6667 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6668 {
6669 return a1 + a2;
6670 }
6671
6672 int
6673 test(const int c, volatile int v)
6674 {
6675 static_assert(is_same<int, decltype(0)>::value == true, "");
6676 static_assert(is_same<int, decltype(c)>::value == false, "");
6677 static_assert(is_same<int, decltype(v)>::value == false, "");
6678 auto ac = c;
6679 auto av = v;
6680 auto sumi = ac + av + 'x';
6681 auto sumf = ac + av + 1.0;
6682 static_assert(is_same<int, decltype(ac)>::value == true, "");
6683 static_assert(is_same<int, decltype(av)>::value == true, "");
6684 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6685 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6686 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6687 return (sumf > 0.0) ? sumi : add(c, v);
6688 }
6689
6690 }
6691
6692 namespace test_noexcept
6693 {
6694
6695 int f() { return 0; }
6696 int g() noexcept { return 0; }
6697
6698 static_assert(noexcept(f()) == false, "");
6699 static_assert(noexcept(g()) == true, "");
6700
6701 }
6702
6703 namespace test_constexpr
6704 {
6705
6706 template < typename CharT >
6707 unsigned long constexpr
6708 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6709 {
6710 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6711 }
6712
6713 template < typename CharT >
6714 unsigned long constexpr
6715 strlen_c(const CharT *const s) noexcept
6716 {
6717 return strlen_c_r(s, 0UL);
6718 }
6719
6720 static_assert(strlen_c("") == 0UL, "");
6721 static_assert(strlen_c("1") == 1UL, "");
6722 static_assert(strlen_c("example") == 7UL, "");
6723 static_assert(strlen_c("another\0example") == 7UL, "");
6724
6725 }
6726
6727 namespace test_rvalue_references
6728 {
6729
6730 template < int N >
6731 struct answer
6732 {
6733 static constexpr int value = N;
6734 };
6735
6736 answer<1> f(int&) { return answer<1>(); }
6737 answer<2> f(const int&) { return answer<2>(); }
6738 answer<3> f(int&&) { return answer<3>(); }
6739
6740 void
6741 test()
6742 {
6743 int i = 0;
6744 const int c = 0;
6745 static_assert(decltype(f(i))::value == 1, "");
6746 static_assert(decltype(f(c))::value == 2, "");
6747 static_assert(decltype(f(0))::value == 3, "");
6748 }
6749
6750 }
6751
6752 namespace test_uniform_initialization
6753 {
6754
6755 struct test
6756 {
6757 static const int zero {};
6758 static const int one {1};
6759 };
6760
6761 static_assert(test::zero == 0, "");
6762 static_assert(test::one == 1, "");
6763
6764 }
6765
6766 namespace test_lambdas
6767 {
6768
6769 void
6770 test1()
6771 {
6772 auto lambda1 = [](){};
6773 auto lambda2 = lambda1;
6774 lambda1();
6775 lambda2();
6776 }
6777
6778 int
6779 test2()
6780 {
6781 auto a = [](int i, int j){ return i + j; }(1, 2);
6782 auto b = []() -> int { return '0'; }();
6783 auto c = [=](){ return a + b; }();
6784 auto d = [&](){ return c; }();
6785 auto e = [a, &b](int x) mutable {
6786 const auto identity = [](int y){ return y; };
6787 for (auto i = 0; i < a; ++i)
6788 a += b--;
6789 return x + identity(a + b);
6790 }(0);
6791 return a + b + c + d + e;
6792 }
6793
6794 int
6795 test3()
6796 {
6797 const auto nullary = [](){ return 0; };
6798 const auto unary = [](int x){ return x; };
6799 using nullary_t = decltype(nullary);
6800 using unary_t = decltype(unary);
6801 const auto higher1st = [](nullary_t f){ return f(); };
6802 const auto higher2nd = [unary](nullary_t f1){
6803 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6804 };
6805 return higher1st(nullary) + higher2nd(nullary)(unary);
6806 }
6807
6808 }
6809
6810 namespace test_variadic_templates
6811 {
6812
6813 template <int...>
6814 struct sum;
6815
6816 template <int N0, int... N1toN>
6817 struct sum<N0, N1toN...>
6818 {
6819 static constexpr auto value = N0 + sum<N1toN...>::value;
6820 };
6821
6822 template <>
6823 struct sum<>
6824 {
6825 static constexpr auto value = 0;
6826 };
6827
6828 static_assert(sum<>::value == 0, "");
6829 static_assert(sum<1>::value == 1, "");
6830 static_assert(sum<23>::value == 23, "");
6831 static_assert(sum<1, 2>::value == 3, "");
6832 static_assert(sum<5, 5, 11>::value == 21, "");
6833 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6834
6835 }
6836
6837 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6838 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6839 // because of this.
6840 namespace test_template_alias_sfinae
6841 {
6842
6843 struct foo {};
6844
6845 template<typename T>
6846 using member = typename T::member_type;
6847
6848 template<typename T>
6849 void func(...) {}
6850
6851 template<typename T>
6852 void func(member<T>*) {}
6853
6854 void test();
6855
6856 void test() { func<foo>(0); }
6857
6858 }
6859
6860 } // namespace cxx11
6861
6862 #endif // __cplusplus >= 201103L
6863
6864
6865
6866
6867 // If the compiler admits that it is not ready for C++14, why torture it?
6868 // Hopefully, this will speed up the test.
6869
6870 #ifndef __cplusplus
6871
6872 #error "This is not a C++ compiler"
6873
6874 #elif __cplusplus < 201402L && !defined _MSC_VER
6875
6876 #error "This is not a C++14 compiler"
6877
6878 #else
6879
6880 namespace cxx14
6881 {
6882
6883 namespace test_polymorphic_lambdas
6884 {
6885
6886 int
6887 test()
6888 {
6889 const auto lambda = [](auto&&... args){
6890 const auto istiny = [](auto x){
6891 return (sizeof(x) == 1UL) ? 1 : 0;
6892 };
6893 const int aretiny[] = { istiny(args)... };
6894 return aretiny[0];
6895 };
6896 return lambda(1, 1L, 1.0f, '1');
6897 }
6898
6899 }
6900
6901 namespace test_binary_literals
6902 {
6903
6904 constexpr auto ivii = 0b0000000000101010;
6905 static_assert(ivii == 42, "wrong value");
6906
6907 }
6908
6909 namespace test_generalized_constexpr
6910 {
6911
6912 template < typename CharT >
6913 constexpr unsigned long
6914 strlen_c(const CharT *const s) noexcept
6915 {
6916 auto length = 0UL;
6917 for (auto p = s; *p; ++p)
6918 ++length;
6919 return length;
6920 }
6921
6922 static_assert(strlen_c("") == 0UL, "");
6923 static_assert(strlen_c("x") == 1UL, "");
6924 static_assert(strlen_c("test") == 4UL, "");
6925 static_assert(strlen_c("another\0test") == 7UL, "");
6926
6927 }
6928
6929 namespace test_lambda_init_capture
6930 {
6931
6932 int
6933 test()
6934 {
6935 auto x = 0;
6936 const auto lambda1 = [a = x](int b){ return a + b; };
6937 const auto lambda2 = [a = lambda1(x)](){ return a; };
6938 return lambda2();
6939 }
6940
6941 }
6942
6943 namespace test_digit_separators
6944 {
6945
6946 constexpr auto ten_million = 100'000'000;
6947 static_assert(ten_million == 100000000, "");
6948
6949 }
6950
6951 namespace test_return_type_deduction
6952 {
6953
6954 auto f(int& x) { return x; }
6955 decltype(auto) g(int& x) { return x; }
6956
6957 template < typename T1, typename T2 >
6958 struct is_same
6959 {
6960 static constexpr auto value = false;
6961 };
6962
6963 template < typename T >
6964 struct is_same<T, T>
6965 {
6966 static constexpr auto value = true;
6967 };
6968
6969 int
6970 test()
6971 {
6972 auto x = 0;
6973 static_assert(is_same<int, decltype(f(x))>::value, "");
6974 static_assert(is_same<int&, decltype(g(x))>::value, "");
6975 return x;
6976 }
6977
6978 }
6979
6980 } // namespace cxx14
6981
6982 #endif // __cplusplus >= 201402L
6983
6984
6985
6986
6987 // If the compiler admits that it is not ready for C++17, why torture it?
6988 // Hopefully, this will speed up the test.
6989
6990 #ifndef __cplusplus
6991
6992 #error "This is not a C++ compiler"
6993
6994 #elif __cplusplus < 201703L && !defined _MSC_VER
6995
6996 #error "This is not a C++17 compiler"
6997
6998 #else
6999
7000 #include <initializer_list>
7001 #include <utility>
7002 #include <type_traits>
7003
7004 namespace cxx17
7005 {
7006
7007 namespace test_constexpr_lambdas
7008 {
7009
7010 constexpr int foo = [](){return 42;}();
7011
7012 }
7013
7014 namespace test::nested_namespace::definitions
7015 {
7016
7017 }
7018
7019 namespace test_fold_expression
7020 {
7021
7022 template<typename... Args>
7023 int multiply(Args... args)
7024 {
7025 return (args * ... * 1);
7026 }
7027
7028 template<typename... Args>
7029 bool all(Args... args)
7030 {
7031 return (args && ...);
7032 }
7033
7034 }
7035
7036 namespace test_extended_static_assert
7037 {
7038
7039 static_assert (true);
7040
7041 }
7042
7043 namespace test_auto_brace_init_list
7044 {
7045
7046 auto foo = {5};
7047 auto bar {5};
7048
7049 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
7050 static_assert(std::is_same<int, decltype(bar)>::value);
7051 }
7052
7053 namespace test_typename_in_template_template_parameter
7054 {
7055
7056 template<template<typename> typename X> struct D;
7057
7058 }
7059
7060 namespace test_fallthrough_nodiscard_maybe_unused_attributes
7061 {
7062
7063 int f1()
7064 {
7065 return 42;
7066 }
7067
7068 [[nodiscard]] int f2()
7069 {
7070 [[maybe_unused]] auto unused = f1();
7071
7072 switch (f1())
7073 {
7074 case 17:
7075 f1();
7076 [[fallthrough]];
7077 case 42:
7078 f1();
7079 }
7080 return f1();
7081 }
7082
7083 }
7084
7085 namespace test_extended_aggregate_initialization
7086 {
7087
7088 struct base1
7089 {
7090 int b1, b2 = 42;
7091 };
7092
7093 struct base2
7094 {
7095 base2() {
7096 b3 = 42;
7097 }
7098 int b3;
7099 };
7100
7101 struct derived : base1, base2
7102 {
7103 int d;
7104 };
7105
7106 derived d1 {{1, 2}, {}, 4}; // full initialization
7107 derived d2 {{}, {}, 4}; // value-initialized bases
7108
7109 }
7110
7111 namespace test_general_range_based_for_loop
7112 {
7113
7114 struct iter
7115 {
7116 int i;
7117
7118 int& operator* ()
7119 {
7120 return i;
7121 }
7122
7123 const int& operator* () const
7124 {
7125 return i;
7126 }
7127
7128 iter& operator++()
7129 {
7130 ++i;
7131 return *this;
7132 }
7133 };
7134
7135 struct sentinel
7136 {
7137 int i;
7138 };
7139
7140 bool operator== (const iter& i, const sentinel& s)
7141 {
7142 return i.i == s.i;
7143 }
7144
7145 bool operator!= (const iter& i, const sentinel& s)
7146 {
7147 return !(i == s);
7148 }
7149
7150 struct range
7151 {
7152 iter begin() const
7153 {
7154 return {0};
7155 }
7156
7157 sentinel end() const
7158 {
7159 return {5};
7160 }
7161 };
7162
7163 void f()
7164 {
7165 range r {};
7166
7167 for (auto i : r)
7168 {
7169 [[maybe_unused]] auto v = i;
7170 }
7171 }
7172
7173 }
7174
7175 namespace test_lambda_capture_asterisk_this_by_value
7176 {
7177
7178 struct t
7179 {
7180 int i;
7181 int foo()
7182 {
7183 return [*this]()
7184 {
7185 return i;
7186 }();
7187 }
7188 };
7189
7190 }
7191
7192 namespace test_enum_class_construction
7193 {
7194
7195 enum class byte : unsigned char
7196 {};
7197
7198 byte foo {42};
7199
7200 }
7201
7202 namespace test_constexpr_if
7203 {
7204
7205 template <bool cond>
7206 int f ()
7207 {
7208 if constexpr(cond)
7209 {
7210 return 13;
7211 }
7212 else
7213 {
7214 return 42;
7215 }
7216 }
7217
7218 }
7219
7220 namespace test_selection_statement_with_initializer
7221 {
7222
7223 int f()
7224 {
7225 return 13;
7226 }
7227
7228 int f2()
7229 {
7230 if (auto i = f(); i > 0)
7231 {
7232 return 3;
7233 }
7234
7235 switch (auto i = f(); i + 4)
7236 {
7237 case 17:
7238 return 2;
7239
7240 default:
7241 return 1;
7242 }
7243 }
7244
7245 }
7246
7247 namespace test_template_argument_deduction_for_class_templates
7248 {
7249
7250 template <typename T1, typename T2>
7251 struct pair
7252 {
7253 pair (T1 p1, T2 p2)
7254 : m1 {p1},
7255 m2 {p2}
7256 {}
7257
7258 T1 m1;
7259 T2 m2;
7260 };
7261
7262 void f()
7263 {
7264 [[maybe_unused]] auto p = pair{13, 42u};
7265 }
7266
7267 }
7268
7269 namespace test_non_type_auto_template_parameters
7270 {
7271
7272 template <auto n>
7273 struct B
7274 {};
7275
7276 B<5> b1;
7277 B<'a'> b2;
7278
7279 }
7280
7281 namespace test_structured_bindings
7282 {
7283
7284 int arr[2] = { 1, 2 };
7285 std::pair<int, int> pr = { 1, 2 };
7286
7287 auto f1() -> int(&)[2]
7288 {
7289 return arr;
7290 }
7291
7292 auto f2() -> std::pair<int, int>&
7293 {
7294 return pr;
7295 }
7296
7297 struct S
7298 {
7299 int x1 : 2;
7300 volatile double y1;
7301 };
7302
7303 S f3()
7304 {
7305 return {};
7306 }
7307
7308 auto [ x1, y1 ] = f1();
7309 auto& [ xr1, yr1 ] = f1();
7310 auto [ x2, y2 ] = f2();
7311 auto& [ xr2, yr2 ] = f2();
7312 const auto [ x3, y3 ] = f3();
7313
7314 }
7315
7316 namespace test_exception_spec_type_system
7317 {
7318
7319 struct Good {};
7320 struct Bad {};
7321
7322 void g1() noexcept;
7323 void g2();
7324
7325 template<typename T>
7326 Bad
7327 f(T*, T*);
7328
7329 template<typename T1, typename T2>
7330 Good
7331 f(T1*, T2*);
7332
7333 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
7334
7335 }
7336
7337 namespace test_inline_variables
7338 {
7339
7340 template<class T> void f(T)
7341 {}
7342
7343 template<class T> inline T g(T)
7344 {
7345 return T{};
7346 }
7347
7348 template<> inline void f<>(int)
7349 {}
7350
7351 template<> int g<>(int)
7352 {
7353 return 5;
7354 }
7355
7356 }
7357
7358 } // namespace cxx17
7359
7360 #endif // __cplusplus < 201703L && !defined _MSC_VER
7361
7362
7363
7364
7365 #ifndef __cplusplus
7366
7367 #error "This is not a C++ compiler"
7368
7369 #elif __cplusplus < 202002L && !defined _MSC_VER
7370
7371 #error "This is not a C++20 compiler"
7372
7373 #else
7374
7375 #include <version>
7376
7377 namespace cxx20
7378 {
7379
7380 // As C++20 supports feature test macros in the standard, there is no
7381 // immediate need to actually test for feature availability on the
7382 // Autoconf side.
7383
7384 } // namespace cxx20
7385
7386 #endif // __cplusplus < 202002L && !defined _MSC_VER
7387
7388
7389
7390 _ACEOF
7391 if ac_fn_cxx_try_compile "$LINENO"
7392 then :
7393 eval $cachevar=yes
7394 else $as_nop
7395 eval $cachevar=no
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7398 CXX="$ac_save_CXX"
7399 fi
7400 eval ac_res=\$$cachevar
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7402 printf "%s\n" "$ac_res" >&6; }
7403 if eval test x\$$cachevar = xyes; then
7404 CXX="$CXX $switch"
7405 if test -n "$CXXCPP" ; then
7406 CXXCPP="$CXXCPP $switch"
7407 fi
7408 ac_success=yes
7409 break
7410 fi
7411 done
7412 fi
7413
7414
7415 ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421 if test x$ax_cxx_compile_cxx20_required = xtrue; then
7422 if test x$ac_success = xno; then
7423 as_fn_error $? "*** A compiler with support for C++20 language features is required." "$LINENO" 5
7424 fi
7425 fi
7426 if test x$ac_success = xno; then
7427 HAVE_CXX20=0
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++20 support was found" >&5
7429 printf "%s\n" "$as_me: No compiler with C++20 support was found" >&6;}
7430 else
7431 HAVE_CXX20=1
7432
7433 printf "%s\n" "#define HAVE_CXX20 1" >>confdefs.h
7434
7435 fi
7436
7437
7438 if test "$HAVE_CXX20" != "1"; then
7439 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=false
7440 ac_ext=cpp
7441 ac_cpp='$CXXCPP $CPPFLAGS'
7442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7445 ac_success=no
7446
7447
7448
7449 if test x$ac_success = xno; then
7450 for alternative in ${ax_cxx_compile_alternatives}; do
7451 switch="-std=gnu++${alternative}"
7452 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
7454 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
7455 if eval test \${$cachevar+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else $as_nop
7459 ac_save_CXX="$CXX"
7460 CXX="$CXX $switch"
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464
7465 // If the compiler admits that it is not ready for C++11, why torture it?
7466 // Hopefully, this will speed up the test.
7467
7468 #ifndef __cplusplus
7469
7470 #error "This is not a C++ compiler"
7471
7472 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
7473 // only set it correctly if /Zc:__cplusplus is specified as well as a
7474 // /std:c++NN switch:
7475 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
7476 #elif __cplusplus < 201103L && !defined _MSC_VER
7477
7478 #error "This is not a C++11 compiler"
7479
7480 #else
7481
7482 namespace cxx11
7483 {
7484
7485 namespace test_static_assert
7486 {
7487
7488 template <typename T>
7489 struct check
7490 {
7491 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7492 };
7493
7494 }
7495
7496 namespace test_final_override
7497 {
7498
7499 struct Base
7500 {
7501 virtual ~Base() {}
7502 virtual void f() {}
7503 };
7504
7505 struct Derived : public Base
7506 {
7507 virtual ~Derived() override {}
7508 virtual void f() override {}
7509 };
7510
7511 }
7512
7513 namespace test_double_right_angle_brackets
7514 {
7515
7516 template < typename T >
7517 struct check {};
7518
7519 typedef check<void> single_type;
7520 typedef check<check<void>> double_type;
7521 typedef check<check<check<void>>> triple_type;
7522 typedef check<check<check<check<void>>>> quadruple_type;
7523
7524 }
7525
7526 namespace test_decltype
7527 {
7528
7529 int
7530 f()
7531 {
7532 int a = 1;
7533 decltype(a) b = 2;
7534 return a + b;
7535 }
7536
7537 }
7538
7539 namespace test_type_deduction
7540 {
7541
7542 template < typename T1, typename T2 >
7543 struct is_same
7544 {
7545 static const bool value = false;
7546 };
7547
7548 template < typename T >
7549 struct is_same<T, T>
7550 {
7551 static const bool value = true;
7552 };
7553
7554 template < typename T1, typename T2 >
7555 auto
7556 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7557 {
7558 return a1 + a2;
7559 }
7560
7561 int
7562 test(const int c, volatile int v)
7563 {
7564 static_assert(is_same<int, decltype(0)>::value == true, "");
7565 static_assert(is_same<int, decltype(c)>::value == false, "");
7566 static_assert(is_same<int, decltype(v)>::value == false, "");
7567 auto ac = c;
7568 auto av = v;
7569 auto sumi = ac + av + 'x';
7570 auto sumf = ac + av + 1.0;
7571 static_assert(is_same<int, decltype(ac)>::value == true, "");
7572 static_assert(is_same<int, decltype(av)>::value == true, "");
7573 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7574 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7575 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7576 return (sumf > 0.0) ? sumi : add(c, v);
7577 }
7578
7579 }
7580
7581 namespace test_noexcept
7582 {
7583
7584 int f() { return 0; }
7585 int g() noexcept { return 0; }
7586
7587 static_assert(noexcept(f()) == false, "");
7588 static_assert(noexcept(g()) == true, "");
7589
7590 }
7591
7592 namespace test_constexpr
7593 {
7594
7595 template < typename CharT >
7596 unsigned long constexpr
7597 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7598 {
7599 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7600 }
7601
7602 template < typename CharT >
7603 unsigned long constexpr
7604 strlen_c(const CharT *const s) noexcept
7605 {
7606 return strlen_c_r(s, 0UL);
7607 }
7608
7609 static_assert(strlen_c("") == 0UL, "");
7610 static_assert(strlen_c("1") == 1UL, "");
7611 static_assert(strlen_c("example") == 7UL, "");
7612 static_assert(strlen_c("another\0example") == 7UL, "");
7613
7614 }
7615
7616 namespace test_rvalue_references
7617 {
7618
7619 template < int N >
7620 struct answer
7621 {
7622 static constexpr int value = N;
7623 };
7624
7625 answer<1> f(int&) { return answer<1>(); }
7626 answer<2> f(const int&) { return answer<2>(); }
7627 answer<3> f(int&&) { return answer<3>(); }
7628
7629 void
7630 test()
7631 {
7632 int i = 0;
7633 const int c = 0;
7634 static_assert(decltype(f(i))::value == 1, "");
7635 static_assert(decltype(f(c))::value == 2, "");
7636 static_assert(decltype(f(0))::value == 3, "");
7637 }
7638
7639 }
7640
7641 namespace test_uniform_initialization
7642 {
7643
7644 struct test
7645 {
7646 static const int zero {};
7647 static const int one {1};
7648 };
7649
7650 static_assert(test::zero == 0, "");
7651 static_assert(test::one == 1, "");
7652
7653 }
7654
7655 namespace test_lambdas
7656 {
7657
7658 void
7659 test1()
7660 {
7661 auto lambda1 = [](){};
7662 auto lambda2 = lambda1;
7663 lambda1();
7664 lambda2();
7665 }
7666
7667 int
7668 test2()
7669 {
7670 auto a = [](int i, int j){ return i + j; }(1, 2);
7671 auto b = []() -> int { return '0'; }();
7672 auto c = [=](){ return a + b; }();
7673 auto d = [&](){ return c; }();
7674 auto e = [a, &b](int x) mutable {
7675 const auto identity = [](int y){ return y; };
7676 for (auto i = 0; i < a; ++i)
7677 a += b--;
7678 return x + identity(a + b);
7679 }(0);
7680 return a + b + c + d + e;
7681 }
7682
7683 int
7684 test3()
7685 {
7686 const auto nullary = [](){ return 0; };
7687 const auto unary = [](int x){ return x; };
7688 using nullary_t = decltype(nullary);
7689 using unary_t = decltype(unary);
7690 const auto higher1st = [](nullary_t f){ return f(); };
7691 const auto higher2nd = [unary](nullary_t f1){
7692 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7693 };
7694 return higher1st(nullary) + higher2nd(nullary)(unary);
7695 }
7696
7697 }
7698
7699 namespace test_variadic_templates
7700 {
7701
7702 template <int...>
7703 struct sum;
7704
7705 template <int N0, int... N1toN>
7706 struct sum<N0, N1toN...>
7707 {
7708 static constexpr auto value = N0 + sum<N1toN...>::value;
7709 };
7710
7711 template <>
7712 struct sum<>
7713 {
7714 static constexpr auto value = 0;
7715 };
7716
7717 static_assert(sum<>::value == 0, "");
7718 static_assert(sum<1>::value == 1, "");
7719 static_assert(sum<23>::value == 23, "");
7720 static_assert(sum<1, 2>::value == 3, "");
7721 static_assert(sum<5, 5, 11>::value == 21, "");
7722 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7723
7724 }
7725
7726 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7727 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7728 // because of this.
7729 namespace test_template_alias_sfinae
7730 {
7731
7732 struct foo {};
7733
7734 template<typename T>
7735 using member = typename T::member_type;
7736
7737 template<typename T>
7738 void func(...) {}
7739
7740 template<typename T>
7741 void func(member<T>*) {}
7742
7743 void test();
7744
7745 void test() { func<foo>(0); }
7746
7747 }
7748
7749 } // namespace cxx11
7750
7751 #endif // __cplusplus >= 201103L
7752
7753
7754
7755
7756 // If the compiler admits that it is not ready for C++14, why torture it?
7757 // Hopefully, this will speed up the test.
7758
7759 #ifndef __cplusplus
7760
7761 #error "This is not a C++ compiler"
7762
7763 #elif __cplusplus < 201402L && !defined _MSC_VER
7764
7765 #error "This is not a C++14 compiler"
7766
7767 #else
7768
7769 namespace cxx14
7770 {
7771
7772 namespace test_polymorphic_lambdas
7773 {
7774
7775 int
7776 test()
7777 {
7778 const auto lambda = [](auto&&... args){
7779 const auto istiny = [](auto x){
7780 return (sizeof(x) == 1UL) ? 1 : 0;
7781 };
7782 const int aretiny[] = { istiny(args)... };
7783 return aretiny[0];
7784 };
7785 return lambda(1, 1L, 1.0f, '1');
7786 }
7787
7788 }
7789
7790 namespace test_binary_literals
7791 {
7792
7793 constexpr auto ivii = 0b0000000000101010;
7794 static_assert(ivii == 42, "wrong value");
7795
7796 }
7797
7798 namespace test_generalized_constexpr
7799 {
7800
7801 template < typename CharT >
7802 constexpr unsigned long
7803 strlen_c(const CharT *const s) noexcept
7804 {
7805 auto length = 0UL;
7806 for (auto p = s; *p; ++p)
7807 ++length;
7808 return length;
7809 }
7810
7811 static_assert(strlen_c("") == 0UL, "");
7812 static_assert(strlen_c("x") == 1UL, "");
7813 static_assert(strlen_c("test") == 4UL, "");
7814 static_assert(strlen_c("another\0test") == 7UL, "");
7815
7816 }
7817
7818 namespace test_lambda_init_capture
7819 {
7820
7821 int
7822 test()
7823 {
7824 auto x = 0;
7825 const auto lambda1 = [a = x](int b){ return a + b; };
7826 const auto lambda2 = [a = lambda1(x)](){ return a; };
7827 return lambda2();
7828 }
7829
7830 }
7831
7832 namespace test_digit_separators
7833 {
7834
7835 constexpr auto ten_million = 100'000'000;
7836 static_assert(ten_million == 100000000, "");
7837
7838 }
7839
7840 namespace test_return_type_deduction
7841 {
7842
7843 auto f(int& x) { return x; }
7844 decltype(auto) g(int& x) { return x; }
7845
7846 template < typename T1, typename T2 >
7847 struct is_same
7848 {
7849 static constexpr auto value = false;
7850 };
7851
7852 template < typename T >
7853 struct is_same<T, T>
7854 {
7855 static constexpr auto value = true;
7856 };
7857
7858 int
7859 test()
7860 {
7861 auto x = 0;
7862 static_assert(is_same<int, decltype(f(x))>::value, "");
7863 static_assert(is_same<int&, decltype(g(x))>::value, "");
7864 return x;
7865 }
7866
7867 }
7868
7869 } // namespace cxx14
7870
7871 #endif // __cplusplus >= 201402L
7872
7873
7874
7875
7876 // If the compiler admits that it is not ready for C++17, why torture it?
7877 // Hopefully, this will speed up the test.
7878
7879 #ifndef __cplusplus
7880
7881 #error "This is not a C++ compiler"
7882
7883 #elif __cplusplus < 201703L && !defined _MSC_VER
7884
7885 #error "This is not a C++17 compiler"
7886
7887 #else
7888
7889 #include <initializer_list>
7890 #include <utility>
7891 #include <type_traits>
7892
7893 namespace cxx17
7894 {
7895
7896 namespace test_constexpr_lambdas
7897 {
7898
7899 constexpr int foo = [](){return 42;}();
7900
7901 }
7902
7903 namespace test::nested_namespace::definitions
7904 {
7905
7906 }
7907
7908 namespace test_fold_expression
7909 {
7910
7911 template<typename... Args>
7912 int multiply(Args... args)
7913 {
7914 return (args * ... * 1);
7915 }
7916
7917 template<typename... Args>
7918 bool all(Args... args)
7919 {
7920 return (args && ...);
7921 }
7922
7923 }
7924
7925 namespace test_extended_static_assert
7926 {
7927
7928 static_assert (true);
7929
7930 }
7931
7932 namespace test_auto_brace_init_list
7933 {
7934
7935 auto foo = {5};
7936 auto bar {5};
7937
7938 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
7939 static_assert(std::is_same<int, decltype(bar)>::value);
7940 }
7941
7942 namespace test_typename_in_template_template_parameter
7943 {
7944
7945 template<template<typename> typename X> struct D;
7946
7947 }
7948
7949 namespace test_fallthrough_nodiscard_maybe_unused_attributes
7950 {
7951
7952 int f1()
7953 {
7954 return 42;
7955 }
7956
7957 [[nodiscard]] int f2()
7958 {
7959 [[maybe_unused]] auto unused = f1();
7960
7961 switch (f1())
7962 {
7963 case 17:
7964 f1();
7965 [[fallthrough]];
7966 case 42:
7967 f1();
7968 }
7969 return f1();
7970 }
7971
7972 }
7973
7974 namespace test_extended_aggregate_initialization
7975 {
7976
7977 struct base1
7978 {
7979 int b1, b2 = 42;
7980 };
7981
7982 struct base2
7983 {
7984 base2() {
7985 b3 = 42;
7986 }
7987 int b3;
7988 };
7989
7990 struct derived : base1, base2
7991 {
7992 int d;
7993 };
7994
7995 derived d1 {{1, 2}, {}, 4}; // full initialization
7996 derived d2 {{}, {}, 4}; // value-initialized bases
7997
7998 }
7999
8000 namespace test_general_range_based_for_loop
8001 {
8002
8003 struct iter
8004 {
8005 int i;
8006
8007 int& operator* ()
8008 {
8009 return i;
8010 }
8011
8012 const int& operator* () const
8013 {
8014 return i;
8015 }
8016
8017 iter& operator++()
8018 {
8019 ++i;
8020 return *this;
8021 }
8022 };
8023
8024 struct sentinel
8025 {
8026 int i;
8027 };
8028
8029 bool operator== (const iter& i, const sentinel& s)
8030 {
8031 return i.i == s.i;
8032 }
8033
8034 bool operator!= (const iter& i, const sentinel& s)
8035 {
8036 return !(i == s);
8037 }
8038
8039 struct range
8040 {
8041 iter begin() const
8042 {
8043 return {0};
8044 }
8045
8046 sentinel end() const
8047 {
8048 return {5};
8049 }
8050 };
8051
8052 void f()
8053 {
8054 range r {};
8055
8056 for (auto i : r)
8057 {
8058 [[maybe_unused]] auto v = i;
8059 }
8060 }
8061
8062 }
8063
8064 namespace test_lambda_capture_asterisk_this_by_value
8065 {
8066
8067 struct t
8068 {
8069 int i;
8070 int foo()
8071 {
8072 return [*this]()
8073 {
8074 return i;
8075 }();
8076 }
8077 };
8078
8079 }
8080
8081 namespace test_enum_class_construction
8082 {
8083
8084 enum class byte : unsigned char
8085 {};
8086
8087 byte foo {42};
8088
8089 }
8090
8091 namespace test_constexpr_if
8092 {
8093
8094 template <bool cond>
8095 int f ()
8096 {
8097 if constexpr(cond)
8098 {
8099 return 13;
8100 }
8101 else
8102 {
8103 return 42;
8104 }
8105 }
8106
8107 }
8108
8109 namespace test_selection_statement_with_initializer
8110 {
8111
8112 int f()
8113 {
8114 return 13;
8115 }
8116
8117 int f2()
8118 {
8119 if (auto i = f(); i > 0)
8120 {
8121 return 3;
8122 }
8123
8124 switch (auto i = f(); i + 4)
8125 {
8126 case 17:
8127 return 2;
8128
8129 default:
8130 return 1;
8131 }
8132 }
8133
8134 }
8135
8136 namespace test_template_argument_deduction_for_class_templates
8137 {
8138
8139 template <typename T1, typename T2>
8140 struct pair
8141 {
8142 pair (T1 p1, T2 p2)
8143 : m1 {p1},
8144 m2 {p2}
8145 {}
8146
8147 T1 m1;
8148 T2 m2;
8149 };
8150
8151 void f()
8152 {
8153 [[maybe_unused]] auto p = pair{13, 42u};
8154 }
8155
8156 }
8157
8158 namespace test_non_type_auto_template_parameters
8159 {
8160
8161 template <auto n>
8162 struct B
8163 {};
8164
8165 B<5> b1;
8166 B<'a'> b2;
8167
8168 }
8169
8170 namespace test_structured_bindings
8171 {
8172
8173 int arr[2] = { 1, 2 };
8174 std::pair<int, int> pr = { 1, 2 };
8175
8176 auto f1() -> int(&)[2]
8177 {
8178 return arr;
8179 }
8180
8181 auto f2() -> std::pair<int, int>&
8182 {
8183 return pr;
8184 }
8185
8186 struct S
8187 {
8188 int x1 : 2;
8189 volatile double y1;
8190 };
8191
8192 S f3()
8193 {
8194 return {};
8195 }
8196
8197 auto [ x1, y1 ] = f1();
8198 auto& [ xr1, yr1 ] = f1();
8199 auto [ x2, y2 ] = f2();
8200 auto& [ xr2, yr2 ] = f2();
8201 const auto [ x3, y3 ] = f3();
8202
8203 }
8204
8205 namespace test_exception_spec_type_system
8206 {
8207
8208 struct Good {};
8209 struct Bad {};
8210
8211 void g1() noexcept;
8212 void g2();
8213
8214 template<typename T>
8215 Bad
8216 f(T*, T*);
8217
8218 template<typename T1, typename T2>
8219 Good
8220 f(T1*, T2*);
8221
8222 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
8223
8224 }
8225
8226 namespace test_inline_variables
8227 {
8228
8229 template<class T> void f(T)
8230 {}
8231
8232 template<class T> inline T g(T)
8233 {
8234 return T{};
8235 }
8236
8237 template<> inline void f<>(int)
8238 {}
8239
8240 template<> int g<>(int)
8241 {
8242 return 5;
8243 }
8244
8245 }
8246
8247 } // namespace cxx17
8248
8249 #endif // __cplusplus < 201703L && !defined _MSC_VER
8250
8251
8252
8253 _ACEOF
8254 if ac_fn_cxx_try_compile "$LINENO"
8255 then :
8256 eval $cachevar=yes
8257 else $as_nop
8258 eval $cachevar=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8261 CXX="$ac_save_CXX"
8262 fi
8263 eval ac_res=\$$cachevar
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8265 printf "%s\n" "$ac_res" >&6; }
8266 if eval test x\$$cachevar = xyes; then
8267 CXX="$CXX $switch"
8268 if test -n "$CXXCPP" ; then
8269 CXXCPP="$CXXCPP $switch"
8270 fi
8271 ac_success=yes
8272 break
8273 fi
8274 done
8275 fi
8276
8277
8278 ac_ext=c
8279 ac_cpp='$CPP $CPPFLAGS'
8280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8283
8284 if test x$ax_cxx_compile_cxx17_required = xtrue; then
8285 if test x$ac_success = xno; then
8286 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
8287 fi
8288 fi
8289 if test x$ac_success = xno; then
8290 HAVE_CXX17=0
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
8292 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
8293 else
8294 HAVE_CXX17=1
8295
8296 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
8297
8298 fi
8299
8300
8301 fi
8302 ac_ext=c
8303 ac_cpp='$CPP $CPPFLAGS'
8304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 printf %s "checking for $ac_word... " >&6; }
8312 if test ${ac_cv_prog_CC+y}
8313 then :
8314 printf %s "(cached) " >&6
8315 else $as_nop
8316 if test -n "$CC"; then
8317 ac_cv_prog_CC="$CC" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322 IFS=$as_save_IFS
8323 case $as_dir in #(((
8324 '') as_dir=./ ;;
8325 */) ;;
8326 *) as_dir=$as_dir/ ;;
8327 esac
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8332 break 2
8333 fi
8334 done
8335 done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 CC=$ac_cv_prog_CC
8341 if test -n "$CC"; then
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8343 printf "%s\n" "$CC" >&6; }
8344 else
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 printf "%s\n" "no" >&6; }
8347 fi
8348
8349
8350 fi
8351 if test -z "$ac_cv_prog_CC"; then
8352 ac_ct_CC=$CC
8353 # Extract the first word of "gcc", so it can be a program name with args.
8354 set dummy gcc; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_prog_ac_ct_CC+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else $as_nop
8361 if test -n "$ac_ct_CC"; then
8362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 case $as_dir in #(((
8369 '') as_dir=./ ;;
8370 */) ;;
8371 *) as_dir=$as_dir/ ;;
8372 esac
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_ac_ct_CC="gcc"
8376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8386 if test -n "$ac_ct_CC"; then
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8388 printf "%s\n" "$ac_ct_CC" >&6; }
8389 else
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 printf "%s\n" "no" >&6; }
8392 fi
8393
8394 if test "x$ac_ct_CC" = x; then
8395 CC=""
8396 else
8397 case $cross_compiling:$ac_tool_warned in
8398 yes:)
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8401 ac_tool_warned=yes ;;
8402 esac
8403 CC=$ac_ct_CC
8404 fi
8405 else
8406 CC="$ac_cv_prog_CC"
8407 fi
8408
8409 if test -z "$CC"; then
8410 if test -n "$ac_tool_prefix"; then
8411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8412 set dummy ${ac_tool_prefix}cc; ac_word=$2
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 printf %s "checking for $ac_word... " >&6; }
8415 if test ${ac_cv_prog_CC+y}
8416 then :
8417 printf %s "(cached) " >&6
8418 else $as_nop
8419 if test -n "$CC"; then
8420 ac_cv_prog_CC="$CC" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425 IFS=$as_save_IFS
8426 case $as_dir in #(((
8427 '') as_dir=./ ;;
8428 */) ;;
8429 *) as_dir=$as_dir/ ;;
8430 esac
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_CC="${ac_tool_prefix}cc"
8434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 CC=$ac_cv_prog_CC
8444 if test -n "$CC"; then
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8446 printf "%s\n" "$CC" >&6; }
8447 else
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 printf "%s\n" "no" >&6; }
8450 fi
8451
8452
8453 fi
8454 fi
8455 if test -z "$CC"; then
8456 # Extract the first word of "cc", so it can be a program name with args.
8457 set dummy cc; ac_word=$2
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 printf %s "checking for $ac_word... " >&6; }
8460 if test ${ac_cv_prog_CC+y}
8461 then :
8462 printf %s "(cached) " >&6
8463 else $as_nop
8464 if test -n "$CC"; then
8465 ac_cv_prog_CC="$CC" # Let the user override the test.
8466 else
8467 ac_prog_rejected=no
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 case $as_dir in #(((
8473 '') as_dir=./ ;;
8474 */) ;;
8475 *) as_dir=$as_dir/ ;;
8476 esac
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8479 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8480 ac_prog_rejected=yes
8481 continue
8482 fi
8483 ac_cv_prog_CC="cc"
8484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487 done
8488 done
8489 IFS=$as_save_IFS
8490
8491 if test $ac_prog_rejected = yes; then
8492 # We found a bogon in the path, so make sure we never use it.
8493 set dummy $ac_cv_prog_CC
8494 shift
8495 if test $# != 0; then
8496 # We chose a different compiler from the bogus one.
8497 # However, it has the same basename, so the bogon will be chosen
8498 # first if we set CC to just the basename; use the full file name.
8499 shift
8500 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
8501 fi
8502 fi
8503 fi
8504 fi
8505 CC=$ac_cv_prog_CC
8506 if test -n "$CC"; then
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8508 printf "%s\n" "$CC" >&6; }
8509 else
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 printf "%s\n" "no" >&6; }
8512 fi
8513
8514
8515 fi
8516 if test -z "$CC"; then
8517 if test -n "$ac_tool_prefix"; then
8518 for ac_prog in cl.exe
8519 do
8520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 printf %s "checking for $ac_word... " >&6; }
8524 if test ${ac_cv_prog_CC+y}
8525 then :
8526 printf %s "(cached) " >&6
8527 else $as_nop
8528 if test -n "$CC"; then
8529 ac_cv_prog_CC="$CC" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 case $as_dir in #(((
8536 '') as_dir=./ ;;
8537 */) ;;
8538 *) as_dir=$as_dir/ ;;
8539 esac
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546 done
8547 done
8548 IFS=$as_save_IFS
8549
8550 fi
8551 fi
8552 CC=$ac_cv_prog_CC
8553 if test -n "$CC"; then
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8555 printf "%s\n" "$CC" >&6; }
8556 else
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 printf "%s\n" "no" >&6; }
8559 fi
8560
8561
8562 test -n "$CC" && break
8563 done
8564 fi
8565 if test -z "$CC"; then
8566 ac_ct_CC=$CC
8567 for ac_prog in cl.exe
8568 do
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 printf %s "checking for $ac_word... " >&6; }
8573 if test ${ac_cv_prog_ac_ct_CC+y}
8574 then :
8575 printf %s "(cached) " >&6
8576 else $as_nop
8577 if test -n "$ac_ct_CC"; then
8578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583 IFS=$as_save_IFS
8584 case $as_dir in #(((
8585 '') as_dir=./ ;;
8586 */) ;;
8587 *) as_dir=$as_dir/ ;;
8588 esac
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_ac_ct_CC="$ac_prog"
8592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8598
8599 fi
8600 fi
8601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8602 if test -n "$ac_ct_CC"; then
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8604 printf "%s\n" "$ac_ct_CC" >&6; }
8605 else
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 printf "%s\n" "no" >&6; }
8608 fi
8609
8610
8611 test -n "$ac_ct_CC" && break
8612 done
8613
8614 if test "x$ac_ct_CC" = x; then
8615 CC=""
8616 else
8617 case $cross_compiling:$ac_tool_warned in
8618 yes:)
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8621 ac_tool_warned=yes ;;
8622 esac
8623 CC=$ac_ct_CC
8624 fi
8625 fi
8626
8627 fi
8628 if test -z "$CC"; then
8629 if test -n "$ac_tool_prefix"; then
8630 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
8631 set dummy ${ac_tool_prefix}clang; ac_word=$2
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 printf %s "checking for $ac_word... " >&6; }
8634 if test ${ac_cv_prog_CC+y}
8635 then :
8636 printf %s "(cached) " >&6
8637 else $as_nop
8638 if test -n "$CC"; then
8639 ac_cv_prog_CC="$CC" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644 IFS=$as_save_IFS
8645 case $as_dir in #(((
8646 '') as_dir=./ ;;
8647 */) ;;
8648 *) as_dir=$as_dir/ ;;
8649 esac
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_CC="${ac_tool_prefix}clang"
8653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656 done
8657 done
8658 IFS=$as_save_IFS
8659
8660 fi
8661 fi
8662 CC=$ac_cv_prog_CC
8663 if test -n "$CC"; then
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8665 printf "%s\n" "$CC" >&6; }
8666 else
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 printf "%s\n" "no" >&6; }
8669 fi
8670
8671
8672 fi
8673 if test -z "$ac_cv_prog_CC"; then
8674 ac_ct_CC=$CC
8675 # Extract the first word of "clang", so it can be a program name with args.
8676 set dummy clang; ac_word=$2
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 printf %s "checking for $ac_word... " >&6; }
8679 if test ${ac_cv_prog_ac_ct_CC+y}
8680 then :
8681 printf %s "(cached) " >&6
8682 else $as_nop
8683 if test -n "$ac_ct_CC"; then
8684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689 IFS=$as_save_IFS
8690 case $as_dir in #(((
8691 '') as_dir=./ ;;
8692 */) ;;
8693 *) as_dir=$as_dir/ ;;
8694 esac
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_ac_ct_CC="clang"
8698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8699 break 2
8700 fi
8701 done
8702 done
8703 IFS=$as_save_IFS
8704
8705 fi
8706 fi
8707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8708 if test -n "$ac_ct_CC"; then
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8710 printf "%s\n" "$ac_ct_CC" >&6; }
8711 else
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 printf "%s\n" "no" >&6; }
8714 fi
8715
8716 if test "x$ac_ct_CC" = x; then
8717 CC=""
8718 else
8719 case $cross_compiling:$ac_tool_warned in
8720 yes:)
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8723 ac_tool_warned=yes ;;
8724 esac
8725 CC=$ac_ct_CC
8726 fi
8727 else
8728 CC="$ac_cv_prog_CC"
8729 fi
8730
8731 fi
8732
8733
8734 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8736 as_fn_error $? "no acceptable C compiler found in \$PATH
8737 See \`config.log' for more details" "$LINENO" 5; }
8738
8739 # Provide some information about the compiler.
8740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8741 set X $ac_compile
8742 ac_compiler=$2
8743 for ac_option in --version -v -V -qversion -version; do
8744 { { ac_try="$ac_compiler $ac_option >&5"
8745 case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748 esac
8749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8750 printf "%s\n" "$ac_try_echo"; } >&5
8751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8752 ac_status=$?
8753 if test -s conftest.err; then
8754 sed '10a\
8755 ... rest of stderr output deleted ...
8756 10q' conftest.err >conftest.er1
8757 cat conftest.er1 >&5
8758 fi
8759 rm -f conftest.er1 conftest.err
8760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761 test $ac_status = 0; }
8762 done
8763
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
8765 printf %s "checking whether the compiler supports GNU C... " >&6; }
8766 if test ${ac_cv_c_compiler_gnu+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else $as_nop
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772
8773 int
8774 main (void)
8775 {
8776 #ifndef __GNUC__
8777 choke me
8778 #endif
8779
8780 ;
8781 return 0;
8782 }
8783 _ACEOF
8784 if ac_fn_c_try_compile "$LINENO"
8785 then :
8786 ac_compiler_gnu=yes
8787 else $as_nop
8788 ac_compiler_gnu=no
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8792
8793 fi
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8795 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
8796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797
8798 if test $ac_compiler_gnu = yes; then
8799 GCC=yes
8800 else
8801 GCC=
8802 fi
8803 ac_test_CFLAGS=${CFLAGS+y}
8804 ac_save_CFLAGS=$CFLAGS
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8806 printf %s "checking whether $CC accepts -g... " >&6; }
8807 if test ${ac_cv_prog_cc_g+y}
8808 then :
8809 printf %s "(cached) " >&6
8810 else $as_nop
8811 ac_save_c_werror_flag=$ac_c_werror_flag
8812 ac_c_werror_flag=yes
8813 ac_cv_prog_cc_g=no
8814 CFLAGS="-g"
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817
8818 int
8819 main (void)
8820 {
8821
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"
8827 then :
8828 ac_cv_prog_cc_g=yes
8829 else $as_nop
8830 CFLAGS=""
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833
8834 int
8835 main (void)
8836 {
8837
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"
8843 then :
8844
8845 else $as_nop
8846 ac_c_werror_flag=$ac_save_c_werror_flag
8847 CFLAGS="-g"
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850
8851 int
8852 main (void)
8853 {
8854
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"
8860 then :
8861 ac_cv_prog_cc_g=yes
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8868 ac_c_werror_flag=$ac_save_c_werror_flag
8869 fi
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8871 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
8872 if test $ac_test_CFLAGS; then
8873 CFLAGS=$ac_save_CFLAGS
8874 elif test $ac_cv_prog_cc_g = yes; then
8875 if test "$GCC" = yes; then
8876 CFLAGS="-g -O2"
8877 else
8878 CFLAGS="-g"
8879 fi
8880 else
8881 if test "$GCC" = yes; then
8882 CFLAGS="-O2"
8883 else
8884 CFLAGS=
8885 fi
8886 fi
8887 ac_prog_cc_stdc=no
8888 if test x$ac_prog_cc_stdc = xno
8889 then :
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
8891 printf %s "checking for $CC option to enable C11 features... " >&6; }
8892 if test ${ac_cv_prog_cc_c11+y}
8893 then :
8894 printf %s "(cached) " >&6
8895 else $as_nop
8896 ac_cv_prog_cc_c11=no
8897 ac_save_CC=$CC
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900 $ac_c_conftest_c11_program
8901 _ACEOF
8902 for ac_arg in '' -std=gnu11
8903 do
8904 CC="$ac_save_CC $ac_arg"
8905 if ac_fn_c_try_compile "$LINENO"
8906 then :
8907 ac_cv_prog_cc_c11=$ac_arg
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.beam
8910 test "x$ac_cv_prog_cc_c11" != "xno" && break
8911 done
8912 rm -f conftest.$ac_ext
8913 CC=$ac_save_CC
8914 fi
8915
8916 if test "x$ac_cv_prog_cc_c11" = xno
8917 then :
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8919 printf "%s\n" "unsupported" >&6; }
8920 else $as_nop
8921 if test "x$ac_cv_prog_cc_c11" = x
8922 then :
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8924 printf "%s\n" "none needed" >&6; }
8925 else $as_nop
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
8927 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
8928 CC="$CC $ac_cv_prog_cc_c11"
8929 fi
8930 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
8931 ac_prog_cc_stdc=c11
8932 fi
8933 fi
8934 if test x$ac_prog_cc_stdc = xno
8935 then :
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
8937 printf %s "checking for $CC option to enable C99 features... " >&6; }
8938 if test ${ac_cv_prog_cc_c99+y}
8939 then :
8940 printf %s "(cached) " >&6
8941 else $as_nop
8942 ac_cv_prog_cc_c99=no
8943 ac_save_CC=$CC
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 $ac_c_conftest_c99_program
8947 _ACEOF
8948 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
8949 do
8950 CC="$ac_save_CC $ac_arg"
8951 if ac_fn_c_try_compile "$LINENO"
8952 then :
8953 ac_cv_prog_cc_c99=$ac_arg
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.beam
8956 test "x$ac_cv_prog_cc_c99" != "xno" && break
8957 done
8958 rm -f conftest.$ac_ext
8959 CC=$ac_save_CC
8960 fi
8961
8962 if test "x$ac_cv_prog_cc_c99" = xno
8963 then :
8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8965 printf "%s\n" "unsupported" >&6; }
8966 else $as_nop
8967 if test "x$ac_cv_prog_cc_c99" = x
8968 then :
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8970 printf "%s\n" "none needed" >&6; }
8971 else $as_nop
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8973 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
8974 CC="$CC $ac_cv_prog_cc_c99"
8975 fi
8976 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
8977 ac_prog_cc_stdc=c99
8978 fi
8979 fi
8980 if test x$ac_prog_cc_stdc = xno
8981 then :
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
8983 printf %s "checking for $CC option to enable C89 features... " >&6; }
8984 if test ${ac_cv_prog_cc_c89+y}
8985 then :
8986 printf %s "(cached) " >&6
8987 else $as_nop
8988 ac_cv_prog_cc_c89=no
8989 ac_save_CC=$CC
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 $ac_c_conftest_c89_program
8993 _ACEOF
8994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8995 do
8996 CC="$ac_save_CC $ac_arg"
8997 if ac_fn_c_try_compile "$LINENO"
8998 then :
8999 ac_cv_prog_cc_c89=$ac_arg
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.beam
9002 test "x$ac_cv_prog_cc_c89" != "xno" && break
9003 done
9004 rm -f conftest.$ac_ext
9005 CC=$ac_save_CC
9006 fi
9007
9008 if test "x$ac_cv_prog_cc_c89" = xno
9009 then :
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9011 printf "%s\n" "unsupported" >&6; }
9012 else $as_nop
9013 if test "x$ac_cv_prog_cc_c89" = x
9014 then :
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9016 printf "%s\n" "none needed" >&6; }
9017 else $as_nop
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9019 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
9020 CC="$CC $ac_cv_prog_cc_c89"
9021 fi
9022 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9023 ac_prog_cc_stdc=c89
9024 fi
9025 fi
9026
9027 ac_ext=c
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033
9034 ac_ext=c
9035 ac_cpp='$CPP $CPPFLAGS'
9036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
9040 printf %s "checking whether $CC understands -c and -o together... " >&6; }
9041 if test ${am_cv_prog_cc_c_o+y}
9042 then :
9043 printf %s "(cached) " >&6
9044 else $as_nop
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047
9048 int
9049 main (void)
9050 {
9051
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 # Make sure it works both with $CC and with simple cc.
9057 # Following AC_PROG_CC_C_O, we do the test twice because some
9058 # compilers refuse to overwrite an existing .o file with -o,
9059 # though they will create one.
9060 am_cv_prog_cc_c_o=yes
9061 for am_i in 1 2; do
9062 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
9063 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } \
9067 && test -f conftest2.$ac_objext; then
9068 : OK
9069 else
9070 am_cv_prog_cc_c_o=no
9071 break
9072 fi
9073 done
9074 rm -f core conftest*
9075 unset am_i
9076 fi
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
9078 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
9079 if test "$am_cv_prog_cc_c_o" != yes; then
9080 # Losing compiler, so override with the script.
9081 # FIXME: It is wrong to rewrite CC.
9082 # But if we don't then we get into trouble of one sort or another.
9083 # A longer-term fix would be to have automake use am__CC in this case,
9084 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9085 CC="$am_aux_dir/compile $CC"
9086 fi
9087 ac_ext=c
9088 ac_cpp='$CPP $CPPFLAGS'
9089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9092
9093
9094 depcc="$CC" am_compiler_list=
9095
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9097 printf %s "checking dependency style of $depcc... " >&6; }
9098 if test ${am_cv_CC_dependencies_compiler_type+y}
9099 then :
9100 printf %s "(cached) " >&6
9101 else $as_nop
9102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9103 # We make a subdir and do the tests there. Otherwise we can end up
9104 # making bogus files that we don't know about and never remove. For
9105 # instance it was reported that on HP-UX the gcc test will end up
9106 # making a dummy file named 'D' -- because '-MD' means "put the output
9107 # in D".
9108 rm -rf conftest.dir
9109 mkdir conftest.dir
9110 # Copy depcomp to subdir because otherwise we won't find it if we're
9111 # using a relative directory.
9112 cp "$am_depcomp" conftest.dir
9113 cd conftest.dir
9114 # We will build objects and dependencies in a subdirectory because
9115 # it helps to detect inapplicable dependency modes. For instance
9116 # both Tru64's cc and ICC support -MD to output dependencies as a
9117 # side effect of compilation, but ICC will put the dependencies in
9118 # the current directory while Tru64 will put them in the object
9119 # directory.
9120 mkdir sub
9121
9122 am_cv_CC_dependencies_compiler_type=none
9123 if test "$am_compiler_list" = ""; then
9124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9125 fi
9126 am__universal=false
9127 case " $depcc " in #(
9128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9129 esac
9130
9131 for depmode in $am_compiler_list; do
9132 # Setup a source with many dependencies, because some compilers
9133 # like to wrap large dependency lists on column 80 (with \), and
9134 # we should not choose a depcomp mode which is confused by this.
9135 #
9136 # We need to recreate these files for each test, as the compiler may
9137 # overwrite some of them when testing with obscure command lines.
9138 # This happens at least with the AIX C compiler.
9139 : > sub/conftest.c
9140 for i in 1 2 3 4 5 6; do
9141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9142 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9143 # Solaris 10 /bin/sh.
9144 echo '/* dummy */' > sub/conftst$i.h
9145 done
9146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9147
9148 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9149 # mode. It turns out that the SunPro C++ compiler does not properly
9150 # handle '-M -o', and we need to detect this. Also, some Intel
9151 # versions had trouble with output in subdirs.
9152 am__obj=sub/conftest.${OBJEXT-o}
9153 am__minus_obj="-o $am__obj"
9154 case $depmode in
9155 gcc)
9156 # This depmode causes a compiler race in universal mode.
9157 test "$am__universal" = false || continue
9158 ;;
9159 nosideeffect)
9160 # After this tag, mechanisms are not by side-effect, so they'll
9161 # only be used when explicitly requested.
9162 if test "x$enable_dependency_tracking" = xyes; then
9163 continue
9164 else
9165 break
9166 fi
9167 ;;
9168 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9169 # This compiler won't grok '-c -o', but also, the minuso test has
9170 # not run yet. These depmodes are late enough in the game, and
9171 # so weak that their functioning should not be impacted.
9172 am__obj=conftest.${OBJEXT-o}
9173 am__minus_obj=
9174 ;;
9175 none) break ;;
9176 esac
9177 if depmode=$depmode \
9178 source=sub/conftest.c object=$am__obj \
9179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9181 >/dev/null 2>conftest.err &&
9182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9186 # icc doesn't choke on unknown options, it will just issue warnings
9187 # or remarks (even with -Werror). So we grep stderr for any message
9188 # that says an option was ignored or not supported.
9189 # When given -MP, icc 7.0 and 7.1 complain thusly:
9190 # icc: Command line warning: ignoring option '-M'; no argument required
9191 # The diagnosis changed in icc 8.0:
9192 # icc: Command line remark: option '-MP' not supported
9193 if (grep 'ignoring option' conftest.err ||
9194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9195 am_cv_CC_dependencies_compiler_type=$depmode
9196 break
9197 fi
9198 fi
9199 done
9200
9201 cd ..
9202 rm -rf conftest.dir
9203 else
9204 am_cv_CC_dependencies_compiler_type=none
9205 fi
9206
9207 fi
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9209 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
9210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9211
9212 if
9213 test "x$enable_dependency_tracking" != xno \
9214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9215 am__fastdepCC_TRUE=
9216 am__fastdepCC_FALSE='#'
9217 else
9218 am__fastdepCC_TRUE='#'
9219 am__fastdepCC_FALSE=
9220 fi
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9233 if test -n "$ac_tool_prefix"; then
9234 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9235 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 printf %s "checking for $ac_word... " >&6; }
9238 if test ${ac_cv_path_PKG_CONFIG+y}
9239 then :
9240 printf %s "(cached) " >&6
9241 else $as_nop
9242 case $PKG_CONFIG in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9245 ;;
9246 *)
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250 IFS=$as_save_IFS
9251 case $as_dir in #(((
9252 '') as_dir=./ ;;
9253 */) ;;
9254 *) as_dir=$as_dir/ ;;
9255 esac
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9258 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9260 break 2
9261 fi
9262 done
9263 done
9264 IFS=$as_save_IFS
9265
9266 ;;
9267 esac
9268 fi
9269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9270 if test -n "$PKG_CONFIG"; then
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9272 printf "%s\n" "$PKG_CONFIG" >&6; }
9273 else
9274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 printf "%s\n" "no" >&6; }
9276 fi
9277
9278
9279 fi
9280 if test -z "$ac_cv_path_PKG_CONFIG"; then
9281 ac_pt_PKG_CONFIG=$PKG_CONFIG
9282 # Extract the first word of "pkg-config", so it can be a program name with args.
9283 set dummy pkg-config; ac_word=$2
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 printf %s "checking for $ac_word... " >&6; }
9286 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
9287 then :
9288 printf %s "(cached) " >&6
9289 else $as_nop
9290 case $ac_pt_PKG_CONFIG in
9291 [\\/]* | ?:[\\/]*)
9292 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9293 ;;
9294 *)
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9297 do
9298 IFS=$as_save_IFS
9299 case $as_dir in #(((
9300 '') as_dir=./ ;;
9301 */) ;;
9302 *) as_dir=$as_dir/ ;;
9303 esac
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9306 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310 done
9311 done
9312 IFS=$as_save_IFS
9313
9314 ;;
9315 esac
9316 fi
9317 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9318 if test -n "$ac_pt_PKG_CONFIG"; then
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9320 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
9321 else
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 printf "%s\n" "no" >&6; }
9324 fi
9325
9326 if test "x$ac_pt_PKG_CONFIG" = x; then
9327 PKG_CONFIG=""
9328 else
9329 case $cross_compiling:$ac_tool_warned in
9330 yes:)
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9333 ac_tool_warned=yes ;;
9334 esac
9335 PKG_CONFIG=$ac_pt_PKG_CONFIG
9336 fi
9337 else
9338 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9339 fi
9340
9341 fi
9342 if test -n "$PKG_CONFIG"; then
9343 _pkg_min_version=0.19
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9345 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9346 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9348 printf "%s\n" "yes" >&6; }
9349 else
9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 printf "%s\n" "no" >&6; }
9352 PKG_CONFIG=""
9353 fi
9354 fi
9355
9356
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
9358 printf %s "checking for clang... " >&6; }
9359 if test "$CC" = "clang"; then
9360 CLANG=yes
9361 else
9362 CLANG=no
9363 fi
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
9365 printf "%s\n" "$CLANG" >&6; }
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375 TEST_CFLAGS=""
9376 TEST_CXXFLAGS=""
9377 NO_STRICT_ALIASING_CFLAGS=""
9378 NO_FLOAT_EQUAL_CFLAGS=""
9379 NO_BAD_FUNCTION_CAST_CFLAGS=""
9380 if test "$GCC" = "yes"; then
9381
9382
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wall" >&5
9384 printf %s "checking if gcc supports -Wall... " >&6; }
9385 old_CFLAGS=$CFLAGS
9386 flag=`echo '-Wall' | sed -e 's,^-Wno-,-W,'`
9387 CFLAGS="$CFLAGS $flag -Werror"
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390
9391 int
9392 main (void)
9393 {
9394
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"
9400 then :
9401 check_cflag=yes
9402 else $as_nop
9403 check_cflag=no
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9406 CFLAGS="$old_CFLAGS"
9407 if test "x$check_cflag" = "xyes"; then
9408 CFLAGS="$CFLAGS -Wall"
9409 fi
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9411 printf "%s\n" "$check_cflag" >&6; }
9412
9413
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wall" >&5
9415 printf %s "checking if g++ supports -Wall... " >&6; }
9416 old_CXXFLAGS=$CXXFLAGS
9417 flag=`echo '-Wall' | sed -e 's,^-Wno-,-W,'`
9418 CXXFLAGS="$CXXFLAGS $flag -Werror"
9419 ac_ext=cpp
9420 ac_cpp='$CXXCPP $CPPFLAGS'
9421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9424
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427
9428 int
9429 main (void)
9430 {
9431
9432 ;
9433 return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_cxx_try_compile "$LINENO"
9437 then :
9438 check_cxxflag=yes
9439 else $as_nop
9440 check_cxxflag=no
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9443 ac_ext=c
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448
9449 CXXFLAGS="$old_CXXFLAGS"
9450 if test "x$check_cxxflag" = "xyes"; then
9451 CXXFLAGS="$CXXFLAGS -Wall"
9452 fi
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9454 printf "%s\n" "$check_cxxflag" >&6; }
9455
9456
9457 if test "x$check_cflag" = "xno"; then
9458
9459
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -W" >&5
9461 printf %s "checking if gcc supports -W... " >&6; }
9462 old_CFLAGS=$CFLAGS
9463 flag=`echo '-W' | sed -e 's,^-Wno-,-W,'`
9464 CFLAGS="$CFLAGS $flag -Werror"
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9467
9468 int
9469 main (void)
9470 {
9471
9472 ;
9473 return 0;
9474 }
9475 _ACEOF
9476 if ac_fn_c_try_compile "$LINENO"
9477 then :
9478 check_cflag=yes
9479 else $as_nop
9480 check_cflag=no
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9483 CFLAGS="$old_CFLAGS"
9484 if test "x$check_cflag" = "xyes"; then
9485 CFLAGS="$CFLAGS -W"
9486 fi
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9488 printf "%s\n" "$check_cflag" >&6; }
9489
9490
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -W" >&5
9492 printf %s "checking if g++ supports -W... " >&6; }
9493 old_CXXFLAGS=$CXXFLAGS
9494 flag=`echo '-W' | sed -e 's,^-Wno-,-W,'`
9495 CXXFLAGS="$CXXFLAGS $flag -Werror"
9496 ac_ext=cpp
9497 ac_cpp='$CXXCPP $CPPFLAGS'
9498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9501
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504
9505 int
9506 main (void)
9507 {
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_cxx_try_compile "$LINENO"
9514 then :
9515 check_cxxflag=yes
9516 else $as_nop
9517 check_cxxflag=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9520 ac_ext=c
9521 ac_cpp='$CPP $CPPFLAGS'
9522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9525
9526 CXXFLAGS="$old_CXXFLAGS"
9527 if test "x$check_cxxflag" = "xyes"; then
9528 CXXFLAGS="$CXXFLAGS -W"
9529 fi
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9531 printf "%s\n" "$check_cxxflag" >&6; }
9532
9533
9534 fi
9535
9536
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-unused-but-set-variable" >&5
9538 printf %s "checking if gcc supports -Wno-unused-but-set-variable... " >&6; }
9539 old_CFLAGS=$CFLAGS
9540 flag=`echo '-Wno-unused-but-set-variable' | sed -e 's,^-Wno-,-W,'`
9541 CFLAGS="$CFLAGS $flag -Werror"
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544
9545 int
9546 main (void)
9547 {
9548
9549 ;
9550 return 0;
9551 }
9552 _ACEOF
9553 if ac_fn_c_try_compile "$LINENO"
9554 then :
9555 check_cflag=yes
9556 else $as_nop
9557 check_cflag=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9560 CFLAGS="$old_CFLAGS"
9561 if test "x$check_cflag" = "xyes"; then
9562 CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
9563 fi
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9565 printf "%s\n" "$check_cflag" >&6; }
9566
9567
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wno-unused-but-set-variable" >&5
9569 printf %s "checking if g++ supports -Wno-unused-but-set-variable... " >&6; }
9570 old_CXXFLAGS=$CXXFLAGS
9571 flag=`echo '-Wno-unused-but-set-variable' | sed -e 's,^-Wno-,-W,'`
9572 CXXFLAGS="$CXXFLAGS $flag -Werror"
9573 ac_ext=cpp
9574 ac_cpp='$CXXCPP $CPPFLAGS'
9575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9578
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581
9582 int
9583 main (void)
9584 {
9585
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_cxx_try_compile "$LINENO"
9591 then :
9592 check_cxxflag=yes
9593 else $as_nop
9594 check_cxxflag=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9597 ac_ext=c
9598 ac_cpp='$CPP $CPPFLAGS'
9599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9602
9603 CXXFLAGS="$old_CXXFLAGS"
9604 if test "x$check_cxxflag" = "xyes"; then
9605 CXXFLAGS="$CXXFLAGS -Wno-unused-but-set-variable"
9606 fi
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9608 printf "%s\n" "$check_cxxflag" >&6; }
9609
9610 # FIXME: enable it.
9611
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
9613 printf %s "checking if gcc supports -Wno-pointer-sign... " >&6; }
9614 old_CFLAGS=$CFLAGS
9615 flag=`echo '-Wno-pointer-sign' | sed -e 's,^-Wno-,-W,'`
9616 CFLAGS="$CFLAGS $flag -Werror"
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619
9620 int
9621 main (void)
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"
9629 then :
9630 check_cflag=yes
9631 else $as_nop
9632 check_cflag=no
9633 fi
9634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9635 CFLAGS="$old_CFLAGS"
9636 if test "x$check_cflag" = "xyes"; then
9637 CFLAGS="$CFLAGS -Wno-pointer-sign"
9638 fi
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9640 printf "%s\n" "$check_cflag" >&6; }
9641
9642
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-declaration-after-statement" >&5
9644 printf %s "checking if gcc supports -Wno-declaration-after-statement... " >&6; }
9645 old_CFLAGS=$CFLAGS
9646 flag=`echo '-Wno-declaration-after-statement' | sed -e 's,^-Wno-,-W,'`
9647 CFLAGS="$CFLAGS $flag -Werror"
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650
9651 int
9652 main (void)
9653 {
9654
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"
9660 then :
9661 check_cflag=yes
9662 else $as_nop
9663 check_cflag=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9666 CFLAGS="$old_CFLAGS"
9667 if test "x$check_cflag" = "xyes"; then
9668 CFLAGS="$CFLAGS -Wno-declaration-after-statement"
9669 fi
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9671 printf "%s\n" "$check_cflag" >&6; }
9672
9673
9674
9675
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wformat" >&5
9677 printf %s "checking if gcc supports -Wformat... " >&6; }
9678 old_CFLAGS=$CFLAGS
9679 flag=`echo '-Wformat' | sed -e 's,^-Wno-,-W,'`
9680 CFLAGS="$CFLAGS $flag -Werror"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683
9684 int
9685 main (void)
9686 {
9687
9688 ;
9689 return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_compile "$LINENO"
9693 then :
9694 check_cflag=yes
9695 else $as_nop
9696 check_cflag=no
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9699 CFLAGS="$old_CFLAGS"
9700 if test "x$check_cflag" = "xyes"; then
9701 CFLAGS="$CFLAGS -Wformat"
9702 fi
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9704 printf "%s\n" "$check_cflag" >&6; }
9705
9706
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wformat" >&5
9708 printf %s "checking if g++ supports -Wformat... " >&6; }
9709 old_CXXFLAGS=$CXXFLAGS
9710 flag=`echo '-Wformat' | sed -e 's,^-Wno-,-W,'`
9711 CXXFLAGS="$CXXFLAGS $flag -Werror"
9712 ac_ext=cpp
9713 ac_cpp='$CXXCPP $CPPFLAGS'
9714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9717
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720
9721 int
9722 main (void)
9723 {
9724
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 if ac_fn_cxx_try_compile "$LINENO"
9730 then :
9731 check_cxxflag=yes
9732 else $as_nop
9733 check_cxxflag=no
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9736 ac_ext=c
9737 ac_cpp='$CPP $CPPFLAGS'
9738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9741
9742 CXXFLAGS="$old_CXXFLAGS"
9743 if test "x$check_cxxflag" = "xyes"; then
9744 CXXFLAGS="$CXXFLAGS -Wformat"
9745 fi
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9747 printf "%s\n" "$check_cxxflag" >&6; }
9748
9749
9750
9751
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-format-truncation" >&5
9753 printf %s "checking if gcc supports -Wno-format-truncation... " >&6; }
9754 old_CFLAGS=$CFLAGS
9755 flag=`echo '-Wno-format-truncation' | sed -e 's,^-Wno-,-W,'`
9756 CFLAGS="$CFLAGS $flag -Werror"
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759
9760 int
9761 main (void)
9762 {
9763
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 if ac_fn_c_try_compile "$LINENO"
9769 then :
9770 check_cflag=yes
9771 else $as_nop
9772 check_cflag=no
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9775 CFLAGS="$old_CFLAGS"
9776 if test "x$check_cflag" = "xyes"; then
9777 CFLAGS="$CFLAGS -Wno-format-truncation"
9778 fi
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9780 printf "%s\n" "$check_cflag" >&6; }
9781
9782
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wno-format-truncation" >&5
9784 printf %s "checking if g++ supports -Wno-format-truncation... " >&6; }
9785 old_CXXFLAGS=$CXXFLAGS
9786 flag=`echo '-Wno-format-truncation' | sed -e 's,^-Wno-,-W,'`
9787 CXXFLAGS="$CXXFLAGS $flag -Werror"
9788 ac_ext=cpp
9789 ac_cpp='$CXXCPP $CPPFLAGS'
9790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9793
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796
9797 int
9798 main (void)
9799 {
9800
9801 ;
9802 return 0;
9803 }
9804 _ACEOF
9805 if ac_fn_cxx_try_compile "$LINENO"
9806 then :
9807 check_cxxflag=yes
9808 else $as_nop
9809 check_cxxflag=no
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9812 ac_ext=c
9813 ac_cpp='$CPP $CPPFLAGS'
9814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9817
9818 CXXFLAGS="$old_CXXFLAGS"
9819 if test "x$check_cxxflag" = "xyes"; then
9820 CXXFLAGS="$CXXFLAGS -Wno-format-truncation"
9821 fi
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9823 printf "%s\n" "$check_cxxflag" >&6; }
9824
9825
9826
9827
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wstrict-aliasing=2" >&5
9829 printf %s "checking if gcc supports -Wstrict-aliasing=2... " >&6; }
9830 old_CFLAGS=$CFLAGS
9831 flag=`echo '-Wstrict-aliasing=2' | sed -e 's,^-Wno-,-W,'`
9832 CFLAGS="$CFLAGS $flag -Werror"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835
9836 int
9837 main (void)
9838 {
9839
9840 ;
9841 return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_compile "$LINENO"
9845 then :
9846 check_cflag=yes
9847 else $as_nop
9848 check_cflag=no
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9851 CFLAGS="$old_CFLAGS"
9852 if test "x$check_cflag" = "xyes"; then
9853 CFLAGS="$CFLAGS -Wstrict-aliasing=2"
9854 fi
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9856 printf "%s\n" "$check_cflag" >&6; }
9857
9858
9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wstrict-aliasing=2" >&5
9860 printf %s "checking if g++ supports -Wstrict-aliasing=2... " >&6; }
9861 old_CXXFLAGS=$CXXFLAGS
9862 flag=`echo '-Wstrict-aliasing=2' | sed -e 's,^-Wno-,-W,'`
9863 CXXFLAGS="$CXXFLAGS $flag -Werror"
9864 ac_ext=cpp
9865 ac_cpp='$CXXCPP $CPPFLAGS'
9866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9869
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872
9873 int
9874 main (void)
9875 {
9876
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_cxx_try_compile "$LINENO"
9882 then :
9883 check_cxxflag=yes
9884 else $as_nop
9885 check_cxxflag=no
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9888 ac_ext=c
9889 ac_cpp='$CPP $CPPFLAGS'
9890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9893
9894 CXXFLAGS="$old_CXXFLAGS"
9895 if test "x$check_cxxflag" = "xyes"; then
9896 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2"
9897 fi
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9899 printf "%s\n" "$check_cxxflag" >&6; }
9900
9901
9902 if test "x$check_cflag" = "xyes"; then
9903 NO_STRICT_ALIASING_CFLAGS="-fno-strict-aliasing"
9904 fi
9905
9906
9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdisabled-optimization" >&5
9908 printf %s "checking if gcc supports -Wdisabled-optimization... " >&6; }
9909 old_CFLAGS=$CFLAGS
9910 flag=`echo '-Wdisabled-optimization' | sed -e 's,^-Wno-,-W,'`
9911 CFLAGS="$CFLAGS $flag -Werror"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914
9915 int
9916 main (void)
9917 {
9918
9919 ;
9920 return 0;
9921 }
9922 _ACEOF
9923 if ac_fn_c_try_compile "$LINENO"
9924 then :
9925 check_cflag=yes
9926 else $as_nop
9927 check_cflag=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9930 CFLAGS="$old_CFLAGS"
9931 if test "x$check_cflag" = "xyes"; then
9932 CFLAGS="$CFLAGS -Wdisabled-optimization"
9933 fi
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
9935 printf "%s\n" "$check_cflag" >&6; }
9936
9937
9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wdisabled-optimization" >&5
9939 printf %s "checking if g++ supports -Wdisabled-optimization... " >&6; }
9940 old_CXXFLAGS=$CXXFLAGS
9941 flag=`echo '-Wdisabled-optimization' | sed -e 's,^-Wno-,-W,'`
9942 CXXFLAGS="$CXXFLAGS $flag -Werror"
9943 ac_ext=cpp
9944 ac_cpp='$CXXCPP $CPPFLAGS'
9945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9948
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951
9952 int
9953 main (void)
9954 {
9955
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_cxx_try_compile "$LINENO"
9961 then :
9962 check_cxxflag=yes
9963 else $as_nop
9964 check_cxxflag=no
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9967 ac_ext=c
9968 ac_cpp='$CPP $CPPFLAGS'
9969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9972
9973 CXXFLAGS="$old_CXXFLAGS"
9974 if test "x$check_cxxflag" = "xyes"; then
9975 CXXFLAGS="$CXXFLAGS -Wdisabled-optimization"
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
9978 printf "%s\n" "$check_cxxflag" >&6; }
9979
9980
9981
9982
9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wfloat-equal" >&5
9984 printf %s "checking if gcc supports -Wfloat-equal... " >&6; }
9985 old_CFLAGS=$CFLAGS
9986 flag=`echo '-Wfloat-equal' | sed -e 's,^-Wno-,-W,'`
9987 CFLAGS="$CFLAGS $flag -Werror"
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990
9991 int
9992 main (void)
9993 {
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"
10000 then :
10001 check_cflag=yes
10002 else $as_nop
10003 check_cflag=no
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10006 CFLAGS="$old_CFLAGS"
10007 if test "x$check_cflag" = "xyes"; then
10008 CFLAGS="$CFLAGS -Wfloat-equal"
10009 fi
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
10011 printf "%s\n" "$check_cflag" >&6; }
10012
10013
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wfloat-equal" >&5
10015 printf %s "checking if g++ supports -Wfloat-equal... " >&6; }
10016 old_CXXFLAGS=$CXXFLAGS
10017 flag=`echo '-Wfloat-equal' | sed -e 's,^-Wno-,-W,'`
10018 CXXFLAGS="$CXXFLAGS $flag -Werror"
10019 ac_ext=cpp
10020 ac_cpp='$CXXCPP $CPPFLAGS'
10021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10024
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027
10028 int
10029 main (void)
10030 {
10031
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 if ac_fn_cxx_try_compile "$LINENO"
10037 then :
10038 check_cxxflag=yes
10039 else $as_nop
10040 check_cxxflag=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10043 ac_ext=c
10044 ac_cpp='$CPP $CPPFLAGS'
10045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10048
10049 CXXFLAGS="$old_CXXFLAGS"
10050 if test "x$check_cxxflag" = "xyes"; then
10051 CXXFLAGS="$CXXFLAGS -Wfloat-equal"
10052 fi
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10054 printf "%s\n" "$check_cxxflag" >&6; }
10055
10056
10057 if test "x$check_cflag" = "xyes"; then
10058 NO_FLOAT_EQUAL_CFLAGS="-Wno-float-equal"
10059 fi
10060
10061
10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
10063 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
10064 old_CFLAGS=$CFLAGS
10065 flag=`echo '-Wpointer-arith' | sed -e 's,^-Wno-,-W,'`
10066 CFLAGS="$CFLAGS $flag -Werror"
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069
10070 int
10071 main (void)
10072 {
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_compile "$LINENO"
10079 then :
10080 check_cflag=yes
10081 else $as_nop
10082 check_cflag=no
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10085 CFLAGS="$old_CFLAGS"
10086 if test "x$check_cflag" = "xyes"; then
10087 CFLAGS="$CFLAGS -Wpointer-arith"
10088 fi
10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
10090 printf "%s\n" "$check_cflag" >&6; }
10091
10092
10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wpointer-arith" >&5
10094 printf %s "checking if g++ supports -Wpointer-arith... " >&6; }
10095 old_CXXFLAGS=$CXXFLAGS
10096 flag=`echo '-Wpointer-arith' | sed -e 's,^-Wno-,-W,'`
10097 CXXFLAGS="$CXXFLAGS $flag -Werror"
10098 ac_ext=cpp
10099 ac_cpp='$CXXCPP $CPPFLAGS'
10100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10103
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106
10107 int
10108 main (void)
10109 {
10110
10111 ;
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_cxx_try_compile "$LINENO"
10116 then :
10117 check_cxxflag=yes
10118 else $as_nop
10119 check_cxxflag=no
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 ac_ext=c
10123 ac_cpp='$CPP $CPPFLAGS'
10124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10127
10128 CXXFLAGS="$old_CXXFLAGS"
10129 if test "x$check_cxxflag" = "xyes"; then
10130 CXXFLAGS="$CXXFLAGS -Wpointer-arith"
10131 fi
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10133 printf "%s\n" "$check_cxxflag" >&6; }
10134
10135
10136
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wbad-function-cast" >&5
10138 printf %s "checking if gcc supports -Wbad-function-cast... " >&6; }
10139 old_CFLAGS=$CFLAGS
10140 flag=`echo '-Wbad-function-cast' | sed -e 's,^-Wno-,-W,'`
10141 CFLAGS="$CFLAGS $flag -Werror"
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144
10145 int
10146 main (void)
10147 {
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"
10154 then :
10155 check_cflag=yes
10156 else $as_nop
10157 check_cflag=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10160 CFLAGS="$old_CFLAGS"
10161 if test "x$check_cflag" = "xyes"; then
10162 CFLAGS="$CFLAGS -Wbad-function-cast"
10163 fi
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
10165 printf "%s\n" "$check_cflag" >&6; }
10166
10167 if test "x$check_cflag" = "xyes"; then
10168 NO_BAD_FUNCTION_CAST_CFLAGS="-Wno-bad-function-cast"
10169 fi
10170 # if test "$CLANG" = "no"; then
10171 # CHECK_BUILD_FLAG([-Wcast-align])
10172 # fi
10173 # CHECK_BUILD_FLAG([-Wredundant-decls])
10174 # CHECK_BUILD_FLAG([-Wunsafe-loop-optimizations])
10175 # CHECK_BUILD_FLAG([-Wunreachable-code])
10176 # CHECK_BUILD_FLAG([-Wswitch-enum])
10177 # CHECK_BUILD_FLAG([-Wshadow])
10178 # CHECK_BUILD_FLAG([-Wconversion])
10179
10180
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wwrite-strings" >&5
10182 printf %s "checking if gcc supports -Wwrite-strings... " >&6; }
10183 old_CFLAGS=$CFLAGS
10184 flag=`echo '-Wwrite-strings' | sed -e 's,^-Wno-,-W,'`
10185 CFLAGS="$CFLAGS $flag -Werror"
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188
10189 int
10190 main (void)
10191 {
10192
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 if ac_fn_c_try_compile "$LINENO"
10198 then :
10199 check_cflag=yes
10200 else $as_nop
10201 check_cflag=no
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10204 CFLAGS="$old_CFLAGS"
10205 if test "x$check_cflag" = "xyes"; then
10206 CFLAGS="$CFLAGS -Wwrite-strings"
10207 fi
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
10209 printf "%s\n" "$check_cflag" >&6; }
10210
10211
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wwrite-strings" >&5
10213 printf %s "checking if g++ supports -Wwrite-strings... " >&6; }
10214 old_CXXFLAGS=$CXXFLAGS
10215 flag=`echo '-Wwrite-strings' | sed -e 's,^-Wno-,-W,'`
10216 CXXFLAGS="$CXXFLAGS $flag -Werror"
10217 ac_ext=cpp
10218 ac_cpp='$CXXCPP $CPPFLAGS'
10219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10222
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225
10226 int
10227 main (void)
10228 {
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_cxx_try_compile "$LINENO"
10235 then :
10236 check_cxxflag=yes
10237 else $as_nop
10238 check_cxxflag=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10241 ac_ext=c
10242 ac_cpp='$CPP $CPPFLAGS'
10243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10246
10247 CXXFLAGS="$old_CXXFLAGS"
10248 if test "x$check_cxxflag" = "xyes"; then
10249 CXXFLAGS="$CXXFLAGS -Wwrite-strings"
10250 fi
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10252 printf "%s\n" "$check_cxxflag" >&6; }
10253
10254
10255 # CHECK_BUILD_FLAG([-Winline])
10256
10257
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wmissing-field-initializers" >&5
10259 printf %s "checking if gcc supports -Wmissing-field-initializers... " >&6; }
10260 old_CFLAGS=$CFLAGS
10261 flag=`echo '-Wmissing-field-initializers' | sed -e 's,^-Wno-,-W,'`
10262 CFLAGS="$CFLAGS $flag -Werror"
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265
10266 int
10267 main (void)
10268 {
10269
10270 ;
10271 return 0;
10272 }
10273 _ACEOF
10274 if ac_fn_c_try_compile "$LINENO"
10275 then :
10276 check_cflag=yes
10277 else $as_nop
10278 check_cflag=no
10279 fi
10280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10281 CFLAGS="$old_CFLAGS"
10282 if test "x$check_cflag" = "xyes"; then
10283 CFLAGS="$CFLAGS -Wmissing-field-initializers"
10284 fi
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
10286 printf "%s\n" "$check_cflag" >&6; }
10287
10288
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wmissing-field-initializers" >&5
10290 printf %s "checking if g++ supports -Wmissing-field-initializers... " >&6; }
10291 old_CXXFLAGS=$CXXFLAGS
10292 flag=`echo '-Wmissing-field-initializers' | sed -e 's,^-Wno-,-W,'`
10293 CXXFLAGS="$CXXFLAGS $flag -Werror"
10294 ac_ext=cpp
10295 ac_cpp='$CXXCPP $CPPFLAGS'
10296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10299
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302
10303 int
10304 main (void)
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_cxx_try_compile "$LINENO"
10312 then :
10313 check_cxxflag=yes
10314 else $as_nop
10315 check_cxxflag=no
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10318 ac_ext=c
10319 ac_cpp='$CPP $CPPFLAGS'
10320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323
10324 CXXFLAGS="$old_CXXFLAGS"
10325 if test "x$check_cxxflag" = "xyes"; then
10326 CXXFLAGS="$CXXFLAGS -Wmissing-field-initializers"
10327 fi
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10329 printf "%s\n" "$check_cxxflag" >&6; }
10330
10331
10332 if test "x$check_cflag" = "xyes"; then
10333 NO_MISSING_FIELD_INITIALIZES_CFLAGS="-Wno-missing-field-initializers"
10334 fi
10335
10336
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wsign-compare" >&5
10338 printf %s "checking if gcc supports -Wsign-compare... " >&6; }
10339 old_CFLAGS=$CFLAGS
10340 flag=`echo '-Wsign-compare' | sed -e 's,^-Wno-,-W,'`
10341 CFLAGS="$CFLAGS $flag -Werror"
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344
10345 int
10346 main (void)
10347 {
10348
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_compile "$LINENO"
10354 then :
10355 check_cflag=yes
10356 else $as_nop
10357 check_cflag=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10360 CFLAGS="$old_CFLAGS"
10361 if test "x$check_cflag" = "xyes"; then
10362 CFLAGS="$CFLAGS -Wsign-compare"
10363 fi
10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cflag" >&5
10365 printf "%s\n" "$check_cflag" >&6; }
10366
10367
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -Wsign-compare" >&5
10369 printf %s "checking if g++ supports -Wsign-compare... " >&6; }
10370 old_CXXFLAGS=$CXXFLAGS
10371 flag=`echo '-Wsign-compare' | sed -e 's,^-Wno-,-W,'`
10372 CXXFLAGS="$CXXFLAGS $flag -Werror"
10373 ac_ext=cpp
10374 ac_cpp='$CXXCPP $CPPFLAGS'
10375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10378
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381
10382 int
10383 main (void)
10384 {
10385
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_cxx_try_compile "$LINENO"
10391 then :
10392 check_cxxflag=yes
10393 else $as_nop
10394 check_cxxflag=no
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10397 ac_ext=c
10398 ac_cpp='$CPP $CPPFLAGS'
10399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10402
10403 CXXFLAGS="$old_CXXFLAGS"
10404 if test "x$check_cxxflag" = "xyes"; then
10405 CXXFLAGS="$CXXFLAGS -Wsign-compare"
10406 fi
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10408 printf "%s\n" "$check_cxxflag" >&6; }
10409
10410
10411
10412
10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -fexceptions" >&5
10414 printf %s "checking if g++ supports -fexceptions... " >&6; }
10415 old_CXXFLAGS=$CXXFLAGS
10416 flag=`echo '-fexceptions' | sed -e 's,^-Wno-,-W,'`
10417 CXXFLAGS="$CXXFLAGS $flag -Werror"
10418 ac_ext=cpp
10419 ac_cpp='$CXXCPP $CPPFLAGS'
10420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10423
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426
10427 int
10428 main (void)
10429 {
10430
10431 ;
10432 return 0;
10433 }
10434 _ACEOF
10435 if ac_fn_cxx_try_compile "$LINENO"
10436 then :
10437 check_cxxflag=yes
10438 else $as_nop
10439 check_cxxflag=no
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10442 ac_ext=c
10443 ac_cpp='$CPP $CPPFLAGS'
10444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10447
10448 CXXFLAGS="$old_CXXFLAGS"
10449 if test "x$check_cxxflag" = "xyes"; then
10450 CXXFLAGS="$CXXFLAGS -fexceptions"
10451 fi
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10453 printf "%s\n" "$check_cxxflag" >&6; }
10454
10455
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports -fimplicit-templates" >&5
10457 printf %s "checking if g++ supports -fimplicit-templates... " >&6; }
10458 old_CXXFLAGS=$CXXFLAGS
10459 flag=`echo '-fimplicit-templates' | sed -e 's,^-Wno-,-W,'`
10460 CXXFLAGS="$CXXFLAGS $flag -Werror"
10461 ac_ext=cpp
10462 ac_cpp='$CXXCPP $CPPFLAGS'
10463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10466
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469
10470 int
10471 main (void)
10472 {
10473
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_cxx_try_compile "$LINENO"
10479 then :
10480 check_cxxflag=yes
10481 else $as_nop
10482 check_cxxflag=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10485 ac_ext=c
10486 ac_cpp='$CPP $CPPFLAGS'
10487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10490
10491 CXXFLAGS="$old_CXXFLAGS"
10492 if test "x$check_cxxflag" = "xyes"; then
10493 CXXFLAGS="$CXXFLAGS -fimplicit-templates"
10494 fi
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_cxxflag" >&5
10496 printf "%s\n" "$check_cxxflag" >&6; }
10497
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506 case `pwd` in
10507 *\ * | *\ *)
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10509 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10510 esac
10511
10512
10513
10514 macro_version='2.4.7'
10515 macro_revision='2.4.7'
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530 ltmain=$ac_aux_dir/ltmain.sh
10531
10532 # Backslashify metacharacters that are still active within
10533 # double-quoted strings.
10534 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10535
10536 # Same as above, but do not quote variable references.
10537 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10538
10539 # Sed substitution to delay expansion of an escaped shell variable in a
10540 # double_quote_subst'ed string.
10541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10542
10543 # Sed substitution to delay expansion of an escaped single quote.
10544 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10545
10546 # Sed substitution to avoid accidental globbing in evaled expressions
10547 no_glob_subst='s/\*/\\\*/g'
10548
10549 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10552
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10554 printf %s "checking how to print strings... " >&6; }
10555 # Test print first, because it will be a builtin if present.
10556 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10557 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10558 ECHO='print -r --'
10559 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10560 ECHO='printf %s\n'
10561 else
10562 # Use this function as a fallback that always works.
10563 func_fallback_echo ()
10564 {
10565 eval 'cat <<_LTECHO_EOF
10566 $1
10567 _LTECHO_EOF'
10568 }
10569 ECHO='func_fallback_echo'
10570 fi
10571
10572 # func_echo_all arg...
10573 # Invoke $ECHO with all args, space-separated.
10574 func_echo_all ()
10575 {
10576 $ECHO ""
10577 }
10578
10579 case $ECHO in
10580 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10581 printf "%s\n" "printf" >&6; } ;;
10582 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10583 printf "%s\n" "print -r" >&6; } ;;
10584 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10585 printf "%s\n" "cat" >&6; } ;;
10586 esac
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10602 printf %s "checking for a sed that does not truncate output... " >&6; }
10603 if test ${ac_cv_path_SED+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else $as_nop
10607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10608 for ac_i in 1 2 3 4 5 6 7; do
10609 ac_script="$ac_script$as_nl$ac_script"
10610 done
10611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10612 { ac_script=; unset ac_script;}
10613 if test -z "$SED"; then
10614 ac_path_SED_found=false
10615 # Loop through the user's path and test for each of PROGNAME-LIST
10616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617 for as_dir in $PATH
10618 do
10619 IFS=$as_save_IFS
10620 case $as_dir in #(((
10621 '') as_dir=./ ;;
10622 */) ;;
10623 *) as_dir=$as_dir/ ;;
10624 esac
10625 for ac_prog in sed gsed
10626 do
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
10629 as_fn_executable_p "$ac_path_SED" || continue
10630 # Check for GNU ac_path_SED and select it if it is found.
10631 # Check for GNU $ac_path_SED
10632 case `"$ac_path_SED" --version 2>&1` in
10633 *GNU*)
10634 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10635 *)
10636 ac_count=0
10637 printf %s 0123456789 >"conftest.in"
10638 while :
10639 do
10640 cat "conftest.in" "conftest.in" >"conftest.tmp"
10641 mv "conftest.tmp" "conftest.in"
10642 cp "conftest.in" "conftest.nl"
10643 printf "%s\n" '' >> "conftest.nl"
10644 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10646 as_fn_arith $ac_count + 1 && ac_count=$as_val
10647 if test $ac_count -gt ${ac_path_SED_max-0}; then
10648 # Best one so far, save it but keep looking for a better one
10649 ac_cv_path_SED="$ac_path_SED"
10650 ac_path_SED_max=$ac_count
10651 fi
10652 # 10*(2^10) chars as input seems more than enough
10653 test $ac_count -gt 10 && break
10654 done
10655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10656 esac
10657
10658 $ac_path_SED_found && break 3
10659 done
10660 done
10661 done
10662 IFS=$as_save_IFS
10663 if test -z "$ac_cv_path_SED"; then
10664 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10665 fi
10666 else
10667 ac_cv_path_SED=$SED
10668 fi
10669
10670 fi
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10672 printf "%s\n" "$ac_cv_path_SED" >&6; }
10673 SED="$ac_cv_path_SED"
10674 rm -f conftest.sed
10675
10676 test -z "$SED" && SED=sed
10677 Xsed="$SED -e 1s/^X//"
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10690 printf %s "checking for grep that handles long lines and -e... " >&6; }
10691 if test ${ac_cv_path_GREP+y}
10692 then :
10693 printf %s "(cached) " >&6
10694 else $as_nop
10695 if test -z "$GREP"; then
10696 ac_path_GREP_found=false
10697 # Loop through the user's path and test for each of PROGNAME-LIST
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10700 do
10701 IFS=$as_save_IFS
10702 case $as_dir in #(((
10703 '') as_dir=./ ;;
10704 */) ;;
10705 *) as_dir=$as_dir/ ;;
10706 esac
10707 for ac_prog in grep ggrep
10708 do
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
10711 as_fn_executable_p "$ac_path_GREP" || continue
10712 # Check for GNU ac_path_GREP and select it if it is found.
10713 # Check for GNU $ac_path_GREP
10714 case `"$ac_path_GREP" --version 2>&1` in
10715 *GNU*)
10716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10717 *)
10718 ac_count=0
10719 printf %s 0123456789 >"conftest.in"
10720 while :
10721 do
10722 cat "conftest.in" "conftest.in" >"conftest.tmp"
10723 mv "conftest.tmp" "conftest.in"
10724 cp "conftest.in" "conftest.nl"
10725 printf "%s\n" 'GREP' >> "conftest.nl"
10726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10728 as_fn_arith $ac_count + 1 && ac_count=$as_val
10729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10730 # Best one so far, save it but keep looking for a better one
10731 ac_cv_path_GREP="$ac_path_GREP"
10732 ac_path_GREP_max=$ac_count
10733 fi
10734 # 10*(2^10) chars as input seems more than enough
10735 test $ac_count -gt 10 && break
10736 done
10737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10738 esac
10739
10740 $ac_path_GREP_found && break 3
10741 done
10742 done
10743 done
10744 IFS=$as_save_IFS
10745 if test -z "$ac_cv_path_GREP"; then
10746 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10747 fi
10748 else
10749 ac_cv_path_GREP=$GREP
10750 fi
10751
10752 fi
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10754 printf "%s\n" "$ac_cv_path_GREP" >&6; }
10755 GREP="$ac_cv_path_GREP"
10756
10757
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10759 printf %s "checking for egrep... " >&6; }
10760 if test ${ac_cv_path_EGREP+y}
10761 then :
10762 printf %s "(cached) " >&6
10763 else $as_nop
10764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10765 then ac_cv_path_EGREP="$GREP -E"
10766 else
10767 if test -z "$EGREP"; then
10768 ac_path_EGREP_found=false
10769 # Loop through the user's path and test for each of PROGNAME-LIST
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10772 do
10773 IFS=$as_save_IFS
10774 case $as_dir in #(((
10775 '') as_dir=./ ;;
10776 */) ;;
10777 *) as_dir=$as_dir/ ;;
10778 esac
10779 for ac_prog in egrep
10780 do
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
10783 as_fn_executable_p "$ac_path_EGREP" || continue
10784 # Check for GNU ac_path_EGREP and select it if it is found.
10785 # Check for GNU $ac_path_EGREP
10786 case `"$ac_path_EGREP" --version 2>&1` in
10787 *GNU*)
10788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10789 *)
10790 ac_count=0
10791 printf %s 0123456789 >"conftest.in"
10792 while :
10793 do
10794 cat "conftest.in" "conftest.in" >"conftest.tmp"
10795 mv "conftest.tmp" "conftest.in"
10796 cp "conftest.in" "conftest.nl"
10797 printf "%s\n" 'EGREP' >> "conftest.nl"
10798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10800 as_fn_arith $ac_count + 1 && ac_count=$as_val
10801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10802 # Best one so far, save it but keep looking for a better one
10803 ac_cv_path_EGREP="$ac_path_EGREP"
10804 ac_path_EGREP_max=$ac_count
10805 fi
10806 # 10*(2^10) chars as input seems more than enough
10807 test $ac_count -gt 10 && break
10808 done
10809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10810 esac
10811
10812 $ac_path_EGREP_found && break 3
10813 done
10814 done
10815 done
10816 IFS=$as_save_IFS
10817 if test -z "$ac_cv_path_EGREP"; then
10818 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10819 fi
10820 else
10821 ac_cv_path_EGREP=$EGREP
10822 fi
10823
10824 fi
10825 fi
10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10827 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
10828 EGREP="$ac_cv_path_EGREP"
10829
10830
10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10832 printf %s "checking for fgrep... " >&6; }
10833 if test ${ac_cv_path_FGREP+y}
10834 then :
10835 printf %s "(cached) " >&6
10836 else $as_nop
10837 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10838 then ac_cv_path_FGREP="$GREP -F"
10839 else
10840 if test -z "$FGREP"; then
10841 ac_path_FGREP_found=false
10842 # Loop through the user's path and test for each of PROGNAME-LIST
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10845 do
10846 IFS=$as_save_IFS
10847 case $as_dir in #(((
10848 '') as_dir=./ ;;
10849 */) ;;
10850 *) as_dir=$as_dir/ ;;
10851 esac
10852 for ac_prog in fgrep
10853 do
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
10856 as_fn_executable_p "$ac_path_FGREP" || continue
10857 # Check for GNU ac_path_FGREP and select it if it is found.
10858 # Check for GNU $ac_path_FGREP
10859 case `"$ac_path_FGREP" --version 2>&1` in
10860 *GNU*)
10861 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10862 *)
10863 ac_count=0
10864 printf %s 0123456789 >"conftest.in"
10865 while :
10866 do
10867 cat "conftest.in" "conftest.in" >"conftest.tmp"
10868 mv "conftest.tmp" "conftest.in"
10869 cp "conftest.in" "conftest.nl"
10870 printf "%s\n" 'FGREP' >> "conftest.nl"
10871 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10873 as_fn_arith $ac_count + 1 && ac_count=$as_val
10874 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10875 # Best one so far, save it but keep looking for a better one
10876 ac_cv_path_FGREP="$ac_path_FGREP"
10877 ac_path_FGREP_max=$ac_count
10878 fi
10879 # 10*(2^10) chars as input seems more than enough
10880 test $ac_count -gt 10 && break
10881 done
10882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10883 esac
10884
10885 $ac_path_FGREP_found && break 3
10886 done
10887 done
10888 done
10889 IFS=$as_save_IFS
10890 if test -z "$ac_cv_path_FGREP"; then
10891 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10892 fi
10893 else
10894 ac_cv_path_FGREP=$FGREP
10895 fi
10896
10897 fi
10898 fi
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10900 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
10901 FGREP="$ac_cv_path_FGREP"
10902
10903
10904 test -z "$GREP" && GREP=grep
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924 # Check whether --with-gnu-ld was given.
10925 if test ${with_gnu_ld+y}
10926 then :
10927 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
10928 else $as_nop
10929 with_gnu_ld=no
10930 fi
10931
10932 ac_prog=ld
10933 if test yes = "$GCC"; then
10934 # Check if gcc -print-prog-name=ld gives a path.
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10936 printf %s "checking for ld used by $CC... " >&6; }
10937 case $host in
10938 *-*-mingw*)
10939 # gcc leaves a trailing carriage return, which upsets mingw
10940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10941 *)
10942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10943 esac
10944 case $ac_prog in
10945 # Accept absolute paths.
10946 [\\/]* | ?:[\\/]*)
10947 re_direlt='/[^/][^/]*/\.\./'
10948 # Canonicalize the pathname of ld
10949 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10950 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10951 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10952 done
10953 test -z "$LD" && LD=$ac_prog
10954 ;;
10955 "")
10956 # If it fails, then pretend we aren't using GCC.
10957 ac_prog=ld
10958 ;;
10959 *)
10960 # If it is relative, then search for the first ld in PATH.
10961 with_gnu_ld=unknown
10962 ;;
10963 esac
10964 elif test yes = "$with_gnu_ld"; then
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10966 printf %s "checking for GNU ld... " >&6; }
10967 else
10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10969 printf %s "checking for non-GNU ld... " >&6; }
10970 fi
10971 if test ${lt_cv_path_LD+y}
10972 then :
10973 printf %s "(cached) " >&6
10974 else $as_nop
10975 if test -z "$LD"; then
10976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10977 for ac_dir in $PATH; do
10978 IFS=$lt_save_ifs
10979 test -z "$ac_dir" && ac_dir=.
10980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10981 lt_cv_path_LD=$ac_dir/$ac_prog
10982 # Check to see if the program is GNU ld. I'd rather use --version,
10983 # but apparently some variants of GNU ld only accept -v.
10984 # Break only if it was the GNU/non-GNU ld that we prefer.
10985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10986 *GNU* | *'with BFD'*)
10987 test no != "$with_gnu_ld" && break
10988 ;;
10989 *)
10990 test yes != "$with_gnu_ld" && break
10991 ;;
10992 esac
10993 fi
10994 done
10995 IFS=$lt_save_ifs
10996 else
10997 lt_cv_path_LD=$LD # Let the user override the test with a path.
10998 fi
10999 fi
11000
11001 LD=$lt_cv_path_LD
11002 if test -n "$LD"; then
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11004 printf "%s\n" "$LD" >&6; }
11005 else
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 printf "%s\n" "no" >&6; }
11008 fi
11009 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11011 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11012 if test ${lt_cv_prog_gnu_ld+y}
11013 then :
11014 printf %s "(cached) " >&6
11015 else $as_nop
11016 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11017 case `$LD -v 2>&1 </dev/null` in
11018 *GNU* | *'with BFD'*)
11019 lt_cv_prog_gnu_ld=yes
11020 ;;
11021 *)
11022 lt_cv_prog_gnu_ld=no
11023 ;;
11024 esac
11025 fi
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11027 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11028 with_gnu_ld=$lt_cv_prog_gnu_ld
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11039 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11040 if test ${lt_cv_path_NM+y}
11041 then :
11042 printf %s "(cached) " >&6
11043 else $as_nop
11044 if test -n "$NM"; then
11045 # Let the user override the test.
11046 lt_cv_path_NM=$NM
11047 else
11048 lt_nm_to_check=${ac_tool_prefix}nm
11049 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11050 lt_nm_to_check="$lt_nm_to_check nm"
11051 fi
11052 for lt_tmp_nm in $lt_nm_to_check; do
11053 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11054 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11055 IFS=$lt_save_ifs
11056 test -z "$ac_dir" && ac_dir=.
11057 tmp_nm=$ac_dir/$lt_tmp_nm
11058 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11059 # Check to see if the nm accepts a BSD-compat flag.
11060 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11061 # nm: unknown option "B" ignored
11062 # Tru64's nm complains that /dev/null is an invalid object file
11063 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11064 case $build_os in
11065 mingw*) lt_bad_file=conftest.nm/nofile ;;
11066 *) lt_bad_file=/dev/null ;;
11067 esac
11068 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11069 *$lt_bad_file* | *'Invalid file or object type'*)
11070 lt_cv_path_NM="$tmp_nm -B"
11071 break 2
11072 ;;
11073 *)
11074 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11075 */dev/null*)
11076 lt_cv_path_NM="$tmp_nm -p"
11077 break 2
11078 ;;
11079 *)
11080 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11081 continue # so that we can try to find one that supports BSD flags
11082 ;;
11083 esac
11084 ;;
11085 esac
11086 fi
11087 done
11088 IFS=$lt_save_ifs
11089 done
11090 : ${lt_cv_path_NM=no}
11091 fi
11092 fi
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11094 printf "%s\n" "$lt_cv_path_NM" >&6; }
11095 if test no != "$lt_cv_path_NM"; then
11096 NM=$lt_cv_path_NM
11097 else
11098 # Didn't find any BSD compatible name lister, look for dumpbin.
11099 if test -n "$DUMPBIN"; then :
11100 # Let the user override the test.
11101 else
11102 if test -n "$ac_tool_prefix"; then
11103 for ac_prog in dumpbin "link -dump"
11104 do
11105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 printf %s "checking for $ac_word... " >&6; }
11109 if test ${ac_cv_prog_DUMPBIN+y}
11110 then :
11111 printf %s "(cached) " >&6
11112 else $as_nop
11113 if test -n "$DUMPBIN"; then
11114 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119 IFS=$as_save_IFS
11120 case $as_dir in #(((
11121 '') as_dir=./ ;;
11122 */) ;;
11123 *) as_dir=$as_dir/ ;;
11124 esac
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11127 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11129 break 2
11130 fi
11131 done
11132 done
11133 IFS=$as_save_IFS
11134
11135 fi
11136 fi
11137 DUMPBIN=$ac_cv_prog_DUMPBIN
11138 if test -n "$DUMPBIN"; then
11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11140 printf "%s\n" "$DUMPBIN" >&6; }
11141 else
11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 printf "%s\n" "no" >&6; }
11144 fi
11145
11146
11147 test -n "$DUMPBIN" && break
11148 done
11149 fi
11150 if test -z "$DUMPBIN"; then
11151 ac_ct_DUMPBIN=$DUMPBIN
11152 for ac_prog in dumpbin "link -dump"
11153 do
11154 # Extract the first word of "$ac_prog", so it can be a program name with args.
11155 set dummy $ac_prog; ac_word=$2
11156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 printf %s "checking for $ac_word... " >&6; }
11158 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11159 then :
11160 printf %s "(cached) " >&6
11161 else $as_nop
11162 if test -n "$ac_ct_DUMPBIN"; then
11163 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11164 else
11165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166 for as_dir in $PATH
11167 do
11168 IFS=$as_save_IFS
11169 case $as_dir in #(((
11170 '') as_dir=./ ;;
11171 */) ;;
11172 *) as_dir=$as_dir/ ;;
11173 esac
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11176 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11178 break 2
11179 fi
11180 done
11181 done
11182 IFS=$as_save_IFS
11183
11184 fi
11185 fi
11186 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11187 if test -n "$ac_ct_DUMPBIN"; then
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11189 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11190 else
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 printf "%s\n" "no" >&6; }
11193 fi
11194
11195
11196 test -n "$ac_ct_DUMPBIN" && break
11197 done
11198
11199 if test "x$ac_ct_DUMPBIN" = x; then
11200 DUMPBIN=":"
11201 else
11202 case $cross_compiling:$ac_tool_warned in
11203 yes:)
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11206 ac_tool_warned=yes ;;
11207 esac
11208 DUMPBIN=$ac_ct_DUMPBIN
11209 fi
11210 fi
11211
11212 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11213 *COFF*)
11214 DUMPBIN="$DUMPBIN -symbols -headers"
11215 ;;
11216 *)
11217 DUMPBIN=:
11218 ;;
11219 esac
11220 fi
11221
11222 if test : != "$DUMPBIN"; then
11223 NM=$DUMPBIN
11224 fi
11225 fi
11226 test -z "$NM" && NM=nm
11227
11228
11229
11230
11231
11232
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11234 printf %s "checking the name lister ($NM) interface... " >&6; }
11235 if test ${lt_cv_nm_interface+y}
11236 then :
11237 printf %s "(cached) " >&6
11238 else $as_nop
11239 lt_cv_nm_interface="BSD nm"
11240 echo "int some_variable = 0;" > conftest.$ac_ext
11241 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11242 (eval "$ac_compile" 2>conftest.err)
11243 cat conftest.err >&5
11244 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11246 cat conftest.err >&5
11247 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11248 cat conftest.out >&5
11249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11250 lt_cv_nm_interface="MS dumpbin"
11251 fi
11252 rm -f conftest*
11253 fi
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11255 printf "%s\n" "$lt_cv_nm_interface" >&6; }
11256
11257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11258 printf %s "checking whether ln -s works... " >&6; }
11259 LN_S=$as_ln_s
11260 if test "$LN_S" = "ln -s"; then
11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 printf "%s\n" "yes" >&6; }
11263 else
11264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11265 printf "%s\n" "no, using $LN_S" >&6; }
11266 fi
11267
11268 # find the maximum length of command line arguments
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11270 printf %s "checking the maximum length of command line arguments... " >&6; }
11271 if test ${lt_cv_sys_max_cmd_len+y}
11272 then :
11273 printf %s "(cached) " >&6
11274 else $as_nop
11275 i=0
11276 teststring=ABCD
11277
11278 case $build_os in
11279 msdosdjgpp*)
11280 # On DJGPP, this test can blow up pretty badly due to problems in libc
11281 # (any single argument exceeding 2000 bytes causes a buffer overrun
11282 # during glob expansion). Even if it were fixed, the result of this
11283 # check would be larger than it should be.
11284 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11285 ;;
11286
11287 gnu*)
11288 # Under GNU Hurd, this test is not required because there is
11289 # no limit to the length of command line arguments.
11290 # Libtool will interpret -1 as no limit whatsoever
11291 lt_cv_sys_max_cmd_len=-1;
11292 ;;
11293
11294 cygwin* | mingw* | cegcc*)
11295 # On Win9x/ME, this test blows up -- it succeeds, but takes
11296 # about 5 minutes as the teststring grows exponentially.
11297 # Worse, since 9x/ME are not pre-emptively multitasking,
11298 # you end up with a "frozen" computer, even though with patience
11299 # the test eventually succeeds (with a max line length of 256k).
11300 # Instead, let's just punt: use the minimum linelength reported by
11301 # all of the supported platforms: 8192 (on NT/2K/XP).
11302 lt_cv_sys_max_cmd_len=8192;
11303 ;;
11304
11305 mint*)
11306 # On MiNT this can take a long time and run out of memory.
11307 lt_cv_sys_max_cmd_len=8192;
11308 ;;
11309
11310 amigaos*)
11311 # On AmigaOS with pdksh, this test takes hours, literally.
11312 # So we just punt and use a minimum line length of 8192.
11313 lt_cv_sys_max_cmd_len=8192;
11314 ;;
11315
11316 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
11317 # This has been around since 386BSD, at least. Likely further.
11318 if test -x /sbin/sysctl; then
11319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11320 elif test -x /usr/sbin/sysctl; then
11321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11322 else
11323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11324 fi
11325 # And add a safety zone
11326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11328 ;;
11329
11330 interix*)
11331 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11332 lt_cv_sys_max_cmd_len=196608
11333 ;;
11334
11335 os2*)
11336 # The test takes a long time on OS/2.
11337 lt_cv_sys_max_cmd_len=8192
11338 ;;
11339
11340 osf*)
11341 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11342 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11343 # nice to cause kernel panics so lets avoid the loop below.
11344 # First set a reasonable default.
11345 lt_cv_sys_max_cmd_len=16384
11346 #
11347 if test -x /sbin/sysconfig; then
11348 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11349 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11350 esac
11351 fi
11352 ;;
11353 sco3.2v5*)
11354 lt_cv_sys_max_cmd_len=102400
11355 ;;
11356 sysv5* | sco5v6* | sysv4.2uw2*)
11357 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11358 if test -n "$kargmax"; then
11359 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
11360 else
11361 lt_cv_sys_max_cmd_len=32768
11362 fi
11363 ;;
11364 *)
11365 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11366 if test -n "$lt_cv_sys_max_cmd_len" && \
11367 test undefined != "$lt_cv_sys_max_cmd_len"; then
11368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11370 else
11371 # Make teststring a little bigger before we do anything with it.
11372 # a 1K string should be a reasonable start.
11373 for i in 1 2 3 4 5 6 7 8; do
11374 teststring=$teststring$teststring
11375 done
11376 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11377 # If test is not a shell built-in, we'll probably end up computing a
11378 # maximum length that is only half of the actual maximum length, but
11379 # we can't tell.
11380 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11381 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11382 test 17 != "$i" # 1/2 MB should be enough
11383 do
11384 i=`expr $i + 1`
11385 teststring=$teststring$teststring
11386 done
11387 # Only check the string length outside the loop.
11388 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11389 teststring=
11390 # Add a significant safety factor because C++ compilers can tack on
11391 # massive amounts of additional arguments before passing them to the
11392 # linker. It appears as though 1/2 is a usable value.
11393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11394 fi
11395 ;;
11396 esac
11397
11398 fi
11399
11400 if test -n "$lt_cv_sys_max_cmd_len"; then
11401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11402 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
11403 else
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
11405 printf "%s\n" "none" >&6; }
11406 fi
11407 max_cmd_len=$lt_cv_sys_max_cmd_len
11408
11409
11410
11411
11412
11413
11414 : ${CP="cp -f"}
11415 : ${MV="mv -f"}
11416 : ${RM="rm -f"}
11417
11418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11419 lt_unset=unset
11420 else
11421 lt_unset=false
11422 fi
11423
11424
11425
11426
11427
11428 # test EBCDIC or ASCII
11429 case `echo X|tr X '\101'` in
11430 A) # ASCII based system
11431 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11432 lt_SP2NL='tr \040 \012'
11433 lt_NL2SP='tr \015\012 \040\040'
11434 ;;
11435 *) # EBCDIC based system
11436 lt_SP2NL='tr \100 \n'
11437 lt_NL2SP='tr \r\n \100\100'
11438 ;;
11439 esac
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11450 printf %s "checking how to convert $build file names to $host format... " >&6; }
11451 if test ${lt_cv_to_host_file_cmd+y}
11452 then :
11453 printf %s "(cached) " >&6
11454 else $as_nop
11455 case $host in
11456 *-*-mingw* )
11457 case $build in
11458 *-*-mingw* ) # actually msys
11459 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11460 ;;
11461 *-*-cygwin* )
11462 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11463 ;;
11464 * ) # otherwise, assume *nix
11465 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11466 ;;
11467 esac
11468 ;;
11469 *-*-cygwin* )
11470 case $build in
11471 *-*-mingw* ) # actually msys
11472 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11473 ;;
11474 *-*-cygwin* )
11475 lt_cv_to_host_file_cmd=func_convert_file_noop
11476 ;;
11477 * ) # otherwise, assume *nix
11478 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11479 ;;
11480 esac
11481 ;;
11482 * ) # unhandled hosts (and "normal" native builds)
11483 lt_cv_to_host_file_cmd=func_convert_file_noop
11484 ;;
11485 esac
11486
11487 fi
11488
11489 to_host_file_cmd=$lt_cv_to_host_file_cmd
11490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11491 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
11492
11493
11494
11495
11496
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11498 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
11499 if test ${lt_cv_to_tool_file_cmd+y}
11500 then :
11501 printf %s "(cached) " >&6
11502 else $as_nop
11503 #assume ordinary cross tools, or native build.
11504 lt_cv_to_tool_file_cmd=func_convert_file_noop
11505 case $host in
11506 *-*-mingw* )
11507 case $build in
11508 *-*-mingw* ) # actually msys
11509 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11510 ;;
11511 esac
11512 ;;
11513 esac
11514
11515 fi
11516
11517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11519 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
11520
11521
11522
11523
11524
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11526 printf %s "checking for $LD option to reload object files... " >&6; }
11527 if test ${lt_cv_ld_reload_flag+y}
11528 then :
11529 printf %s "(cached) " >&6
11530 else $as_nop
11531 lt_cv_ld_reload_flag='-r'
11532 fi
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11534 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
11535 reload_flag=$lt_cv_ld_reload_flag
11536 case $reload_flag in
11537 "" | " "*) ;;
11538 *) reload_flag=" $reload_flag" ;;
11539 esac
11540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11541 case $host_os in
11542 cygwin* | mingw* | pw32* | cegcc*)
11543 if test yes != "$GCC"; then
11544 reload_cmds=false
11545 fi
11546 ;;
11547 darwin*)
11548 if test yes = "$GCC"; then
11549 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11550 else
11551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11552 fi
11553 ;;
11554 esac
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 if test -n "$ac_tool_prefix"; then
11565 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
11566 set dummy ${ac_tool_prefix}file; ac_word=$2
11567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 printf %s "checking for $ac_word... " >&6; }
11569 if test ${ac_cv_prog_FILECMD+y}
11570 then :
11571 printf %s "(cached) " >&6
11572 else $as_nop
11573 if test -n "$FILECMD"; then
11574 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
11575 else
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11578 do
11579 IFS=$as_save_IFS
11580 case $as_dir in #(((
11581 '') as_dir=./ ;;
11582 */) ;;
11583 *) as_dir=$as_dir/ ;;
11584 esac
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11587 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
11588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11589 break 2
11590 fi
11591 done
11592 done
11593 IFS=$as_save_IFS
11594
11595 fi
11596 fi
11597 FILECMD=$ac_cv_prog_FILECMD
11598 if test -n "$FILECMD"; then
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
11600 printf "%s\n" "$FILECMD" >&6; }
11601 else
11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 printf "%s\n" "no" >&6; }
11604 fi
11605
11606
11607 fi
11608 if test -z "$ac_cv_prog_FILECMD"; then
11609 ac_ct_FILECMD=$FILECMD
11610 # Extract the first word of "file", so it can be a program name with args.
11611 set dummy file; ac_word=$2
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 printf %s "checking for $ac_word... " >&6; }
11614 if test ${ac_cv_prog_ac_ct_FILECMD+y}
11615 then :
11616 printf %s "(cached) " >&6
11617 else $as_nop
11618 if test -n "$ac_ct_FILECMD"; then
11619 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624 IFS=$as_save_IFS
11625 case $as_dir in #(((
11626 '') as_dir=./ ;;
11627 */) ;;
11628 *) as_dir=$as_dir/ ;;
11629 esac
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11632 ac_cv_prog_ac_ct_FILECMD="file"
11633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11634 break 2
11635 fi
11636 done
11637 done
11638 IFS=$as_save_IFS
11639
11640 fi
11641 fi
11642 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
11643 if test -n "$ac_ct_FILECMD"; then
11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
11645 printf "%s\n" "$ac_ct_FILECMD" >&6; }
11646 else
11647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 printf "%s\n" "no" >&6; }
11649 fi
11650
11651 if test "x$ac_ct_FILECMD" = x; then
11652 FILECMD=":"
11653 else
11654 case $cross_compiling:$ac_tool_warned in
11655 yes:)
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11658 ac_tool_warned=yes ;;
11659 esac
11660 FILECMD=$ac_ct_FILECMD
11661 fi
11662 else
11663 FILECMD="$ac_cv_prog_FILECMD"
11664 fi
11665
11666
11667
11668
11669
11670
11671
11672 if test -n "$ac_tool_prefix"; then
11673 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11674 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 printf %s "checking for $ac_word... " >&6; }
11677 if test ${ac_cv_prog_OBJDUMP+y}
11678 then :
11679 printf %s "(cached) " >&6
11680 else $as_nop
11681 if test -n "$OBJDUMP"; then
11682 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11683 else
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11686 do
11687 IFS=$as_save_IFS
11688 case $as_dir in #(((
11689 '') as_dir=./ ;;
11690 */) ;;
11691 *) as_dir=$as_dir/ ;;
11692 esac
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11695 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11697 break 2
11698 fi
11699 done
11700 done
11701 IFS=$as_save_IFS
11702
11703 fi
11704 fi
11705 OBJDUMP=$ac_cv_prog_OBJDUMP
11706 if test -n "$OBJDUMP"; then
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11708 printf "%s\n" "$OBJDUMP" >&6; }
11709 else
11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 printf "%s\n" "no" >&6; }
11712 fi
11713
11714
11715 fi
11716 if test -z "$ac_cv_prog_OBJDUMP"; then
11717 ac_ct_OBJDUMP=$OBJDUMP
11718 # Extract the first word of "objdump", so it can be a program name with args.
11719 set dummy objdump; ac_word=$2
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 printf %s "checking for $ac_word... " >&6; }
11722 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11723 then :
11724 printf %s "(cached) " >&6
11725 else $as_nop
11726 if test -n "$ac_ct_OBJDUMP"; then
11727 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11728 else
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732 IFS=$as_save_IFS
11733 case $as_dir in #(((
11734 '') as_dir=./ ;;
11735 */) ;;
11736 *) as_dir=$as_dir/ ;;
11737 esac
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11740 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 fi
11749 fi
11750 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11751 if test -n "$ac_ct_OBJDUMP"; then
11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11753 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11754 else
11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 printf "%s\n" "no" >&6; }
11757 fi
11758
11759 if test "x$ac_ct_OBJDUMP" = x; then
11760 OBJDUMP="false"
11761 else
11762 case $cross_compiling:$ac_tool_warned in
11763 yes:)
11764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766 ac_tool_warned=yes ;;
11767 esac
11768 OBJDUMP=$ac_ct_OBJDUMP
11769 fi
11770 else
11771 OBJDUMP="$ac_cv_prog_OBJDUMP"
11772 fi
11773
11774 test -z "$OBJDUMP" && OBJDUMP=objdump
11775
11776
11777
11778
11779
11780
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11782 printf %s "checking how to recognize dependent libraries... " >&6; }
11783 if test ${lt_cv_deplibs_check_method+y}
11784 then :
11785 printf %s "(cached) " >&6
11786 else $as_nop
11787 lt_cv_file_magic_cmd='$MAGIC_CMD'
11788 lt_cv_file_magic_test_file=
11789 lt_cv_deplibs_check_method='unknown'
11790 # Need to set the preceding variable on all platforms that support
11791 # interlibrary dependencies.
11792 # 'none' -- dependencies not supported.
11793 # 'unknown' -- same as none, but documents that we really don't know.
11794 # 'pass_all' -- all dependencies passed with no checks.
11795 # 'test_compile' -- check by making test program.
11796 # 'file_magic [[regex]]' -- check by looking for files in library path
11797 # that responds to the $file_magic_cmd with a given extended regex.
11798 # If you have 'file' or equivalent on your system and you're not sure
11799 # whether 'pass_all' will *always* work, you probably want this one.
11800
11801 case $host_os in
11802 aix[4-9]*)
11803 lt_cv_deplibs_check_method=pass_all
11804 ;;
11805
11806 beos*)
11807 lt_cv_deplibs_check_method=pass_all
11808 ;;
11809
11810 bsdi[45]*)
11811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11812 lt_cv_file_magic_cmd='$FILECMD -L'
11813 lt_cv_file_magic_test_file=/shlib/libc.so
11814 ;;
11815
11816 cygwin*)
11817 # func_win32_libid is a shell function defined in ltmain.sh
11818 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11819 lt_cv_file_magic_cmd='func_win32_libid'
11820 ;;
11821
11822 mingw* | pw32*)
11823 # Base MSYS/MinGW do not provide the 'file' command needed by
11824 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11825 # unless we find 'file', for example because we are cross-compiling.
11826 if ( file / ) >/dev/null 2>&1; then
11827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11828 lt_cv_file_magic_cmd='func_win32_libid'
11829 else
11830 # Keep this pattern in sync with the one in func_win32_libid.
11831 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11832 lt_cv_file_magic_cmd='$OBJDUMP -f'
11833 fi
11834 ;;
11835
11836 cegcc*)
11837 # use the weaker test based on 'objdump'. See mingw*.
11838 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11839 lt_cv_file_magic_cmd='$OBJDUMP -f'
11840 ;;
11841
11842 darwin* | rhapsody*)
11843 lt_cv_deplibs_check_method=pass_all
11844 ;;
11845
11846 freebsd* | dragonfly* | midnightbsd*)
11847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11848 case $host_cpu in
11849 i*86 )
11850 # Not sure whether the presence of OpenBSD here was a mistake.
11851 # Let's accept both of them until this is cleared up.
11852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11853 lt_cv_file_magic_cmd=$FILECMD
11854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11855 ;;
11856 esac
11857 else
11858 lt_cv_deplibs_check_method=pass_all
11859 fi
11860 ;;
11861
11862 haiku*)
11863 lt_cv_deplibs_check_method=pass_all
11864 ;;
11865
11866 hpux10.20* | hpux11*)
11867 lt_cv_file_magic_cmd=$FILECMD
11868 case $host_cpu in
11869 ia64*)
11870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11872 ;;
11873 hppa*64*)
11874 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]'
11875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11876 ;;
11877 *)
11878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11880 ;;
11881 esac
11882 ;;
11883
11884 interix[3-9]*)
11885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11887 ;;
11888
11889 irix5* | irix6* | nonstopux*)
11890 case $LD in
11891 *-32|*"-32 ") libmagic=32-bit;;
11892 *-n32|*"-n32 ") libmagic=N32;;
11893 *-64|*"-64 ") libmagic=64-bit;;
11894 *) libmagic=never-match;;
11895 esac
11896 lt_cv_deplibs_check_method=pass_all
11897 ;;
11898
11899 # This must be glibc/ELF.
11900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11901 lt_cv_deplibs_check_method=pass_all
11902 ;;
11903
11904 netbsd* | netbsdelf*-gnu)
11905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11907 else
11908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11909 fi
11910 ;;
11911
11912 newos6*)
11913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11914 lt_cv_file_magic_cmd=$FILECMD
11915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11916 ;;
11917
11918 *nto* | *qnx*)
11919 lt_cv_deplibs_check_method=pass_all
11920 ;;
11921
11922 openbsd* | bitrig*)
11923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11925 else
11926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11927 fi
11928 ;;
11929
11930 osf3* | osf4* | osf5*)
11931 lt_cv_deplibs_check_method=pass_all
11932 ;;
11933
11934 rdos*)
11935 lt_cv_deplibs_check_method=pass_all
11936 ;;
11937
11938 solaris*)
11939 lt_cv_deplibs_check_method=pass_all
11940 ;;
11941
11942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11943 lt_cv_deplibs_check_method=pass_all
11944 ;;
11945
11946 sysv4 | sysv4.3*)
11947 case $host_vendor in
11948 motorola)
11949 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]'
11950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11951 ;;
11952 ncr)
11953 lt_cv_deplibs_check_method=pass_all
11954 ;;
11955 sequent)
11956 lt_cv_file_magic_cmd='/bin/file'
11957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11958 ;;
11959 sni)
11960 lt_cv_file_magic_cmd='/bin/file'
11961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11962 lt_cv_file_magic_test_file=/lib/libc.so
11963 ;;
11964 siemens)
11965 lt_cv_deplibs_check_method=pass_all
11966 ;;
11967 pc)
11968 lt_cv_deplibs_check_method=pass_all
11969 ;;
11970 esac
11971 ;;
11972
11973 tpf*)
11974 lt_cv_deplibs_check_method=pass_all
11975 ;;
11976 os2*)
11977 lt_cv_deplibs_check_method=pass_all
11978 ;;
11979 esac
11980
11981 fi
11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11983 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
11984
11985 file_magic_glob=
11986 want_nocaseglob=no
11987 if test "$build" = "$host"; then
11988 case $host_os in
11989 mingw* | pw32*)
11990 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11991 want_nocaseglob=yes
11992 else
11993 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11994 fi
11995 ;;
11996 esac
11997 fi
11998
11999 file_magic_cmd=$lt_cv_file_magic_cmd
12000 deplibs_check_method=$lt_cv_deplibs_check_method
12001 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024 if test -n "$ac_tool_prefix"; then
12025 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12026 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 printf %s "checking for $ac_word... " >&6; }
12029 if test ${ac_cv_prog_DLLTOOL+y}
12030 then :
12031 printf %s "(cached) " >&6
12032 else $as_nop
12033 if test -n "$DLLTOOL"; then
12034 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12035 else
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12038 do
12039 IFS=$as_save_IFS
12040 case $as_dir in #(((
12041 '') as_dir=./ ;;
12042 */) ;;
12043 *) as_dir=$as_dir/ ;;
12044 esac
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12049 break 2
12050 fi
12051 done
12052 done
12053 IFS=$as_save_IFS
12054
12055 fi
12056 fi
12057 DLLTOOL=$ac_cv_prog_DLLTOOL
12058 if test -n "$DLLTOOL"; then
12059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12060 printf "%s\n" "$DLLTOOL" >&6; }
12061 else
12062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 printf "%s\n" "no" >&6; }
12064 fi
12065
12066
12067 fi
12068 if test -z "$ac_cv_prog_DLLTOOL"; then
12069 ac_ct_DLLTOOL=$DLLTOOL
12070 # Extract the first word of "dlltool", so it can be a program name with args.
12071 set dummy dlltool; ac_word=$2
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 printf %s "checking for $ac_word... " >&6; }
12074 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12075 then :
12076 printf %s "(cached) " >&6
12077 else $as_nop
12078 if test -n "$ac_ct_DLLTOOL"; then
12079 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084 IFS=$as_save_IFS
12085 case $as_dir in #(((
12086 '') as_dir=./ ;;
12087 */) ;;
12088 *) as_dir=$as_dir/ ;;
12089 esac
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12092 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12094 break 2
12095 fi
12096 done
12097 done
12098 IFS=$as_save_IFS
12099
12100 fi
12101 fi
12102 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12103 if test -n "$ac_ct_DLLTOOL"; then
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12105 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12106 else
12107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 printf "%s\n" "no" >&6; }
12109 fi
12110
12111 if test "x$ac_ct_DLLTOOL" = x; then
12112 DLLTOOL="false"
12113 else
12114 case $cross_compiling:$ac_tool_warned in
12115 yes:)
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118 ac_tool_warned=yes ;;
12119 esac
12120 DLLTOOL=$ac_ct_DLLTOOL
12121 fi
12122 else
12123 DLLTOOL="$ac_cv_prog_DLLTOOL"
12124 fi
12125
12126 test -z "$DLLTOOL" && DLLTOOL=dlltool
12127
12128
12129
12130
12131
12132
12133
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12135 printf %s "checking how to associate runtime and link libraries... " >&6; }
12136 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12137 then :
12138 printf %s "(cached) " >&6
12139 else $as_nop
12140 lt_cv_sharedlib_from_linklib_cmd='unknown'
12141
12142 case $host_os in
12143 cygwin* | mingw* | pw32* | cegcc*)
12144 # two different shell functions defined in ltmain.sh;
12145 # decide which one to use based on capabilities of $DLLTOOL
12146 case `$DLLTOOL --help 2>&1` in
12147 *--identify-strict*)
12148 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12149 ;;
12150 *)
12151 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12152 ;;
12153 esac
12154 ;;
12155 *)
12156 # fallback: assume linklib IS sharedlib
12157 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12158 ;;
12159 esac
12160
12161 fi
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12163 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12164 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12165 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12166
12167
12168
12169
12170
12171
12172
12173 if test -n "$ac_tool_prefix"; then
12174 for ac_prog in ar
12175 do
12176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 printf %s "checking for $ac_word... " >&6; }
12180 if test ${ac_cv_prog_AR+y}
12181 then :
12182 printf %s "(cached) " >&6
12183 else $as_nop
12184 if test -n "$AR"; then
12185 ac_cv_prog_AR="$AR" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 case $as_dir in #(((
12192 '') as_dir=./ ;;
12193 */) ;;
12194 *) as_dir=$as_dir/ ;;
12195 esac
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12198 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12200 break 2
12201 fi
12202 done
12203 done
12204 IFS=$as_save_IFS
12205
12206 fi
12207 fi
12208 AR=$ac_cv_prog_AR
12209 if test -n "$AR"; then
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12211 printf "%s\n" "$AR" >&6; }
12212 else
12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 printf "%s\n" "no" >&6; }
12215 fi
12216
12217
12218 test -n "$AR" && break
12219 done
12220 fi
12221 if test -z "$AR"; then
12222 ac_ct_AR=$AR
12223 for ac_prog in ar
12224 do
12225 # Extract the first word of "$ac_prog", so it can be a program name with args.
12226 set dummy $ac_prog; ac_word=$2
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 printf %s "checking for $ac_word... " >&6; }
12229 if test ${ac_cv_prog_ac_ct_AR+y}
12230 then :
12231 printf %s "(cached) " >&6
12232 else $as_nop
12233 if test -n "$ac_ct_AR"; then
12234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239 IFS=$as_save_IFS
12240 case $as_dir in #(((
12241 '') as_dir=./ ;;
12242 */) ;;
12243 *) as_dir=$as_dir/ ;;
12244 esac
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12247 ac_cv_prog_ac_ct_AR="$ac_prog"
12248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251 done
12252 done
12253 IFS=$as_save_IFS
12254
12255 fi
12256 fi
12257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12258 if test -n "$ac_ct_AR"; then
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12260 printf "%s\n" "$ac_ct_AR" >&6; }
12261 else
12262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 printf "%s\n" "no" >&6; }
12264 fi
12265
12266
12267 test -n "$ac_ct_AR" && break
12268 done
12269
12270 if test "x$ac_ct_AR" = x; then
12271 AR="false"
12272 else
12273 case $cross_compiling:$ac_tool_warned in
12274 yes:)
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12277 ac_tool_warned=yes ;;
12278 esac
12279 AR=$ac_ct_AR
12280 fi
12281 fi
12282
12283 : ${AR=ar}
12284
12285
12286
12287
12288
12289
12290 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
12291 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
12292 # higher priority because thats what people were doing historically (setting
12293 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
12294 # variable obsoleted/removed.
12295
12296 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
12297 lt_ar_flags=$AR_FLAGS
12298
12299
12300
12301
12302
12303
12304 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
12305 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
12306
12307
12308
12309
12310
12311
12312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12313 printf %s "checking for archiver @FILE support... " >&6; }
12314 if test ${lt_cv_ar_at_file+y}
12315 then :
12316 printf %s "(cached) " >&6
12317 else $as_nop
12318 lt_cv_ar_at_file=no
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321
12322 int
12323 main (void)
12324 {
12325
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"
12331 then :
12332 echo conftest.$ac_objext > conftest.lst
12333 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12335 (eval $lt_ar_try) 2>&5
12336 ac_status=$?
12337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12338 test $ac_status = 0; }
12339 if test 0 -eq "$ac_status"; then
12340 # Ensure the archiver fails upon bogus file names.
12341 rm -f conftest.$ac_objext libconftest.a
12342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12343 (eval $lt_ar_try) 2>&5
12344 ac_status=$?
12345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12346 test $ac_status = 0; }
12347 if test 0 -ne "$ac_status"; then
12348 lt_cv_ar_at_file=@
12349 fi
12350 fi
12351 rm -f conftest.* libconftest.a
12352
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12355
12356 fi
12357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12358 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
12359
12360 if test no = "$lt_cv_ar_at_file"; then
12361 archiver_list_spec=
12362 else
12363 archiver_list_spec=$lt_cv_ar_at_file
12364 fi
12365
12366
12367
12368
12369
12370
12371
12372 if test -n "$ac_tool_prefix"; then
12373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}strip; ac_word=$2
12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 printf %s "checking for $ac_word... " >&6; }
12377 if test ${ac_cv_prog_STRIP+y}
12378 then :
12379 printf %s "(cached) " >&6
12380 else $as_nop
12381 if test -n "$STRIP"; then
12382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 case $as_dir in #(((
12389 '') as_dir=./ ;;
12390 */) ;;
12391 *) as_dir=$as_dir/ ;;
12392 esac
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399 done
12400 done
12401 IFS=$as_save_IFS
12402
12403 fi
12404 fi
12405 STRIP=$ac_cv_prog_STRIP
12406 if test -n "$STRIP"; then
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12408 printf "%s\n" "$STRIP" >&6; }
12409 else
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 printf "%s\n" "no" >&6; }
12412 fi
12413
12414
12415 fi
12416 if test -z "$ac_cv_prog_STRIP"; then
12417 ac_ct_STRIP=$STRIP
12418 # Extract the first word of "strip", so it can be a program name with args.
12419 set dummy strip; ac_word=$2
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 printf %s "checking for $ac_word... " >&6; }
12422 if test ${ac_cv_prog_ac_ct_STRIP+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else $as_nop
12426 if test -n "$ac_ct_STRIP"; then
12427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12428 else
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432 IFS=$as_save_IFS
12433 case $as_dir in #(((
12434 '') as_dir=./ ;;
12435 */) ;;
12436 *) as_dir=$as_dir/ ;;
12437 esac
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_ac_ct_STRIP="strip"
12441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444 done
12445 done
12446 IFS=$as_save_IFS
12447
12448 fi
12449 fi
12450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12451 if test -n "$ac_ct_STRIP"; then
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12453 printf "%s\n" "$ac_ct_STRIP" >&6; }
12454 else
12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 printf "%s\n" "no" >&6; }
12457 fi
12458
12459 if test "x$ac_ct_STRIP" = x; then
12460 STRIP=":"
12461 else
12462 case $cross_compiling:$ac_tool_warned in
12463 yes:)
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12466 ac_tool_warned=yes ;;
12467 esac
12468 STRIP=$ac_ct_STRIP
12469 fi
12470 else
12471 STRIP="$ac_cv_prog_STRIP"
12472 fi
12473
12474 test -z "$STRIP" && STRIP=:
12475
12476
12477
12478
12479
12480
12481 if test -n "$ac_tool_prefix"; then
12482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 printf %s "checking for $ac_word... " >&6; }
12486 if test ${ac_cv_prog_RANLIB+y}
12487 then :
12488 printf %s "(cached) " >&6
12489 else $as_nop
12490 if test -n "$RANLIB"; then
12491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12492 else
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496 IFS=$as_save_IFS
12497 case $as_dir in #(((
12498 '') as_dir=./ ;;
12499 */) ;;
12500 *) as_dir=$as_dir/ ;;
12501 esac
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508 done
12509 done
12510 IFS=$as_save_IFS
12511
12512 fi
12513 fi
12514 RANLIB=$ac_cv_prog_RANLIB
12515 if test -n "$RANLIB"; then
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12517 printf "%s\n" "$RANLIB" >&6; }
12518 else
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 printf "%s\n" "no" >&6; }
12521 fi
12522
12523
12524 fi
12525 if test -z "$ac_cv_prog_RANLIB"; then
12526 ac_ct_RANLIB=$RANLIB
12527 # Extract the first word of "ranlib", so it can be a program name with args.
12528 set dummy ranlib; ac_word=$2
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530 printf %s "checking for $ac_word... " >&6; }
12531 if test ${ac_cv_prog_ac_ct_RANLIB+y}
12532 then :
12533 printf %s "(cached) " >&6
12534 else $as_nop
12535 if test -n "$ac_ct_RANLIB"; then
12536 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 case $as_dir in #(((
12543 '') as_dir=./ ;;
12544 */) ;;
12545 *) as_dir=$as_dir/ ;;
12546 esac
12547 for ac_exec_ext in '' $ac_executable_extensions; do
12548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12549 ac_cv_prog_ac_ct_RANLIB="ranlib"
12550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12551 break 2
12552 fi
12553 done
12554 done
12555 IFS=$as_save_IFS
12556
12557 fi
12558 fi
12559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12560 if test -n "$ac_ct_RANLIB"; then
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12562 printf "%s\n" "$ac_ct_RANLIB" >&6; }
12563 else
12564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 printf "%s\n" "no" >&6; }
12566 fi
12567
12568 if test "x$ac_ct_RANLIB" = x; then
12569 RANLIB=":"
12570 else
12571 case $cross_compiling:$ac_tool_warned in
12572 yes:)
12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12575 ac_tool_warned=yes ;;
12576 esac
12577 RANLIB=$ac_ct_RANLIB
12578 fi
12579 else
12580 RANLIB="$ac_cv_prog_RANLIB"
12581 fi
12582
12583 test -z "$RANLIB" && RANLIB=:
12584
12585
12586
12587
12588
12589
12590 # Determine commands to create old-style static archives.
12591 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12592 old_postinstall_cmds='chmod 644 $oldlib'
12593 old_postuninstall_cmds=
12594
12595 if test -n "$RANLIB"; then
12596 case $host_os in
12597 bitrig* | openbsd*)
12598 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12599 ;;
12600 *)
12601 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12602 ;;
12603 esac
12604 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12605 fi
12606
12607 case $host_os in
12608 darwin*)
12609 lock_old_archive_extraction=yes ;;
12610 *)
12611 lock_old_archive_extraction=no ;;
12612 esac
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652 # If no C compiler was specified, use CC.
12653 LTCC=${LTCC-"$CC"}
12654
12655 # If no C compiler flags were specified, use CFLAGS.
12656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12657
12658 # Allow CC to be a program name with arguments.
12659 compiler=$CC
12660
12661
12662 # Check for command to grab the raw symbol name followed by C symbol from nm.
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12664 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
12665 if test ${lt_cv_sys_global_symbol_pipe+y}
12666 then :
12667 printf %s "(cached) " >&6
12668 else $as_nop
12669
12670 # These are sane defaults that work on at least a few old systems.
12671 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12672
12673 # Character class describing NM global symbol codes.
12674 symcode='[BCDEGRST]'
12675
12676 # Regexp to match symbols that can be accessed directly from C.
12677 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12678
12679 # Define system-specific variables.
12680 case $host_os in
12681 aix*)
12682 symcode='[BCDT]'
12683 ;;
12684 cygwin* | mingw* | pw32* | cegcc*)
12685 symcode='[ABCDGISTW]'
12686 ;;
12687 hpux*)
12688 if test ia64 = "$host_cpu"; then
12689 symcode='[ABCDEGRST]'
12690 fi
12691 ;;
12692 irix* | nonstopux*)
12693 symcode='[BCDEGRST]'
12694 ;;
12695 osf*)
12696 symcode='[BCDEGQRST]'
12697 ;;
12698 solaris*)
12699 symcode='[BDRT]'
12700 ;;
12701 sco3.2v5*)
12702 symcode='[DT]'
12703 ;;
12704 sysv4.2uw2*)
12705 symcode='[DT]'
12706 ;;
12707 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12708 symcode='[ABDT]'
12709 ;;
12710 sysv4)
12711 symcode='[DFNSTU]'
12712 ;;
12713 esac
12714
12715 # If we're using GNU nm, then use its standard symbol codes.
12716 case `$NM -V 2>&1` in
12717 *GNU* | *'with BFD'*)
12718 symcode='[ABCDGIRSTW]' ;;
12719 esac
12720
12721 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12722 # Gets list of data symbols to import.
12723 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
12724 # Adjust the below global symbol transforms to fixup imported variables.
12725 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12726 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12727 lt_c_name_lib_hook="\
12728 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12729 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12730 else
12731 # Disable hooks by default.
12732 lt_cv_sys_global_symbol_to_import=
12733 lt_cdecl_hook=
12734 lt_c_name_hook=
12735 lt_c_name_lib_hook=
12736 fi
12737
12738 # Transform an extracted symbol line into a proper C declaration.
12739 # Some systems (esp. on ia64) link data and code symbols differently,
12740 # so use this general approach.
12741 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
12742 $lt_cdecl_hook\
12743 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12744 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12745
12746 # Transform an extracted symbol line into symbol name and symbol address
12747 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
12748 $lt_c_name_hook\
12749 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12750 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12751
12752 # Transform an extracted symbol line into symbol name with lib prefix and
12753 # symbol address.
12754 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
12755 $lt_c_name_lib_hook\
12756 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12757 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12758 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12759
12760 # Handle CRLF in mingw tool chain
12761 opt_cr=
12762 case $build_os in
12763 mingw*)
12764 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12765 ;;
12766 esac
12767
12768 # Try without a prefix underscore, then with it.
12769 for ac_symprfx in "" "_"; do
12770
12771 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12772 symxfrm="\\1 $ac_symprfx\\2 \\2"
12773
12774 # Write the raw and C identifiers.
12775 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12776 # Fake it for dumpbin and say T for any non-static function,
12777 # D for any global variable and I for any imported variable.
12778 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
12779 # which start with @ or ?.
12780 lt_cv_sys_global_symbol_pipe="$AWK '"\
12781 " {last_section=section; section=\$ 3};"\
12782 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12783 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12784 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12785 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12786 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12787 " \$ 0!~/External *\|/{next};"\
12788 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12789 " {if(hide[section]) next};"\
12790 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12791 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12792 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12793 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12794 " ' prfx=^$ac_symprfx"
12795 else
12796 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12797 fi
12798 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
12799
12800 # Check to see that the pipe works correctly.
12801 pipe_works=no
12802
12803 rm -f conftest*
12804 cat > conftest.$ac_ext <<_LT_EOF
12805 #ifdef __cplusplus
12806 extern "C" {
12807 #endif
12808 char nm_test_var;
12809 void nm_test_func(void);
12810 void nm_test_func(void){}
12811 #ifdef __cplusplus
12812 }
12813 #endif
12814 int main(){nm_test_var='a';nm_test_func();return(0);}
12815 _LT_EOF
12816
12817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12818 (eval $ac_compile) 2>&5
12819 ac_status=$?
12820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 test $ac_status = 0; }; then
12822 # Now try to grab the symbols.
12823 nlist=conftest.nm
12824 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
12825 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
12826 # Try sorting and uniquifying the output.
12827 if sort "$nlist" | uniq > "$nlist"T; then
12828 mv -f "$nlist"T "$nlist"
12829 else
12830 rm -f "$nlist"T
12831 fi
12832
12833 # Make sure that we snagged all the symbols we need.
12834 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12835 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12836 cat <<_LT_EOF > conftest.$ac_ext
12837 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12838 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12839 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12840 relocations are performed -- see ld's documentation on pseudo-relocs. */
12841 # define LT_DLSYM_CONST
12842 #elif defined __osf__
12843 /* This system does not cope well with relocations in const data. */
12844 # define LT_DLSYM_CONST
12845 #else
12846 # define LT_DLSYM_CONST const
12847 #endif
12848
12849 #ifdef __cplusplus
12850 extern "C" {
12851 #endif
12852
12853 _LT_EOF
12854 # Now generate the symbol file.
12855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12856
12857 cat <<_LT_EOF >> conftest.$ac_ext
12858
12859 /* The mapping between symbol names and symbols. */
12860 LT_DLSYM_CONST struct {
12861 const char *name;
12862 void *address;
12863 }
12864 lt__PROGRAM__LTX_preloaded_symbols[] =
12865 {
12866 { "@PROGRAM@", (void *) 0 },
12867 _LT_EOF
12868 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12869 cat <<\_LT_EOF >> conftest.$ac_ext
12870 {0, (void *) 0}
12871 };
12872
12873 /* This works around a problem in FreeBSD linker */
12874 #ifdef FREEBSD_WORKAROUND
12875 static const void *lt_preloaded_setup() {
12876 return lt__PROGRAM__LTX_preloaded_symbols;
12877 }
12878 #endif
12879
12880 #ifdef __cplusplus
12881 }
12882 #endif
12883 _LT_EOF
12884 # Now try linking the two files.
12885 mv conftest.$ac_objext conftstm.$ac_objext
12886 lt_globsym_save_LIBS=$LIBS
12887 lt_globsym_save_CFLAGS=$CFLAGS
12888 LIBS=conftstm.$ac_objext
12889 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12891 (eval $ac_link) 2>&5
12892 ac_status=$?
12893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12895 pipe_works=yes
12896 fi
12897 LIBS=$lt_globsym_save_LIBS
12898 CFLAGS=$lt_globsym_save_CFLAGS
12899 else
12900 echo "cannot find nm_test_func in $nlist" >&5
12901 fi
12902 else
12903 echo "cannot find nm_test_var in $nlist" >&5
12904 fi
12905 else
12906 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12907 fi
12908 else
12909 echo "$progname: failed program was:" >&5
12910 cat conftest.$ac_ext >&5
12911 fi
12912 rm -rf conftest* conftst*
12913
12914 # Do not use the global_symbol_pipe unless it works.
12915 if test yes = "$pipe_works"; then
12916 break
12917 else
12918 lt_cv_sys_global_symbol_pipe=
12919 fi
12920 done
12921
12922 fi
12923
12924 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12925 lt_cv_sys_global_symbol_to_cdecl=
12926 fi
12927 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12929 printf "%s\n" "failed" >&6; }
12930 else
12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12932 printf "%s\n" "ok" >&6; }
12933 fi
12934
12935 # Response file support.
12936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12937 nm_file_list_spec='@'
12938 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12939 nm_file_list_spec='@'
12940 fi
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12979 printf %s "checking for sysroot... " >&6; }
12980
12981 # Check whether --with-sysroot was given.
12982 if test ${with_sysroot+y}
12983 then :
12984 withval=$with_sysroot;
12985 else $as_nop
12986 with_sysroot=no
12987 fi
12988
12989
12990 lt_sysroot=
12991 case $with_sysroot in #(
12992 yes)
12993 if test yes = "$GCC"; then
12994 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12995 fi
12996 ;; #(
12997 /*)
12998 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
12999 ;; #(
13000 no|'')
13001 ;; #(
13002 *)
13003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13004 printf "%s\n" "$with_sysroot" >&6; }
13005 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13006 ;;
13007 esac
13008
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13010 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13011
13012
13013
13014
13015
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13017 printf %s "checking for a working dd... " >&6; }
13018 if test ${ac_cv_path_lt_DD+y}
13019 then :
13020 printf %s "(cached) " >&6
13021 else $as_nop
13022 printf 0123456789abcdef0123456789abcdef >conftest.i
13023 cat conftest.i conftest.i >conftest2.i
13024 : ${lt_DD:=$DD}
13025 if test -z "$lt_DD"; then
13026 ac_path_lt_DD_found=false
13027 # Loop through the user's path and test for each of PROGNAME-LIST
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031 IFS=$as_save_IFS
13032 case $as_dir in #(((
13033 '') as_dir=./ ;;
13034 */) ;;
13035 *) as_dir=$as_dir/ ;;
13036 esac
13037 for ac_prog in dd
13038 do
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13041 as_fn_executable_p "$ac_path_lt_DD" || continue
13042 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13043 cmp -s conftest.i conftest.out \
13044 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13045 fi
13046 $ac_path_lt_DD_found && break 3
13047 done
13048 done
13049 done
13050 IFS=$as_save_IFS
13051 if test -z "$ac_cv_path_lt_DD"; then
13052 :
13053 fi
13054 else
13055 ac_cv_path_lt_DD=$lt_DD
13056 fi
13057
13058 rm -f conftest.i conftest2.i conftest.out
13059 fi
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13061 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13062
13063
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13065 printf %s "checking how to truncate binary pipes... " >&6; }
13066 if test ${lt_cv_truncate_bin+y}
13067 then :
13068 printf %s "(cached) " >&6
13069 else $as_nop
13070 printf 0123456789abcdef0123456789abcdef >conftest.i
13071 cat conftest.i conftest.i >conftest2.i
13072 lt_cv_truncate_bin=
13073 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13074 cmp -s conftest.i conftest.out \
13075 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13076 fi
13077 rm -f conftest.i conftest2.i conftest.out
13078 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13079 fi
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13081 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13082
13083
13084
13085
13086
13087
13088
13089 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13090 func_cc_basename ()
13091 {
13092 for cc_temp in $*""; do
13093 case $cc_temp in
13094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13096 \-*) ;;
13097 *) break;;
13098 esac
13099 done
13100 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13101 }
13102
13103 # Check whether --enable-libtool-lock was given.
13104 if test ${enable_libtool_lock+y}
13105 then :
13106 enableval=$enable_libtool_lock;
13107 fi
13108
13109 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13110
13111 # Some flags need to be propagated to the compiler or linker for good
13112 # libtool support.
13113 case $host in
13114 ia64-*-hpux*)
13115 # Find out what ABI is being produced by ac_compile, and set mode
13116 # options accordingly.
13117 echo 'int i;' > conftest.$ac_ext
13118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13119 (eval $ac_compile) 2>&5
13120 ac_status=$?
13121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13122 test $ac_status = 0; }; then
13123 case `$FILECMD conftest.$ac_objext` in
13124 *ELF-32*)
13125 HPUX_IA64_MODE=32
13126 ;;
13127 *ELF-64*)
13128 HPUX_IA64_MODE=64
13129 ;;
13130 esac
13131 fi
13132 rm -rf conftest*
13133 ;;
13134 *-*-irix6*)
13135 # Find out what ABI is being produced by ac_compile, and set linker
13136 # options accordingly.
13137 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13139 (eval $ac_compile) 2>&5
13140 ac_status=$?
13141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13142 test $ac_status = 0; }; then
13143 if test yes = "$lt_cv_prog_gnu_ld"; then
13144 case `$FILECMD conftest.$ac_objext` in
13145 *32-bit*)
13146 LD="${LD-ld} -melf32bsmip"
13147 ;;
13148 *N32*)
13149 LD="${LD-ld} -melf32bmipn32"
13150 ;;
13151 *64-bit*)
13152 LD="${LD-ld} -melf64bmip"
13153 ;;
13154 esac
13155 else
13156 case `$FILECMD conftest.$ac_objext` in
13157 *32-bit*)
13158 LD="${LD-ld} -32"
13159 ;;
13160 *N32*)
13161 LD="${LD-ld} -n32"
13162 ;;
13163 *64-bit*)
13164 LD="${LD-ld} -64"
13165 ;;
13166 esac
13167 fi
13168 fi
13169 rm -rf conftest*
13170 ;;
13171
13172 mips64*-*linux*)
13173 # Find out what ABI is being produced by ac_compile, and set linker
13174 # options accordingly.
13175 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13177 (eval $ac_compile) 2>&5
13178 ac_status=$?
13179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }; then
13181 emul=elf
13182 case `$FILECMD conftest.$ac_objext` in
13183 *32-bit*)
13184 emul="${emul}32"
13185 ;;
13186 *64-bit*)
13187 emul="${emul}64"
13188 ;;
13189 esac
13190 case `$FILECMD conftest.$ac_objext` in
13191 *MSB*)
13192 emul="${emul}btsmip"
13193 ;;
13194 *LSB*)
13195 emul="${emul}ltsmip"
13196 ;;
13197 esac
13198 case `$FILECMD conftest.$ac_objext` in
13199 *N32*)
13200 emul="${emul}n32"
13201 ;;
13202 esac
13203 LD="${LD-ld} -m $emul"
13204 fi
13205 rm -rf conftest*
13206 ;;
13207
13208 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13209 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13210 # Find out what ABI is being produced by ac_compile, and set linker
13211 # options accordingly. Note that the listed cases only cover the
13212 # situations where additional linker options are needed (such as when
13213 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13214 # vice versa); the common cases where no linker options are needed do
13215 # not appear in the list.
13216 echo 'int i;' > conftest.$ac_ext
13217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13218 (eval $ac_compile) 2>&5
13219 ac_status=$?
13220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221 test $ac_status = 0; }; then
13222 case `$FILECMD conftest.o` in
13223 *32-bit*)
13224 case $host in
13225 x86_64-*kfreebsd*-gnu)
13226 LD="${LD-ld} -m elf_i386_fbsd"
13227 ;;
13228 x86_64-*linux*)
13229 case `$FILECMD conftest.o` in
13230 *x86-64*)
13231 LD="${LD-ld} -m elf32_x86_64"
13232 ;;
13233 *)
13234 LD="${LD-ld} -m elf_i386"
13235 ;;
13236 esac
13237 ;;
13238 powerpc64le-*linux*)
13239 LD="${LD-ld} -m elf32lppclinux"
13240 ;;
13241 powerpc64-*linux*)
13242 LD="${LD-ld} -m elf32ppclinux"
13243 ;;
13244 s390x-*linux*)
13245 LD="${LD-ld} -m elf_s390"
13246 ;;
13247 sparc64-*linux*)
13248 LD="${LD-ld} -m elf32_sparc"
13249 ;;
13250 esac
13251 ;;
13252 *64-bit*)
13253 case $host in
13254 x86_64-*kfreebsd*-gnu)
13255 LD="${LD-ld} -m elf_x86_64_fbsd"
13256 ;;
13257 x86_64-*linux*)
13258 LD="${LD-ld} -m elf_x86_64"
13259 ;;
13260 powerpcle-*linux*)
13261 LD="${LD-ld} -m elf64lppc"
13262 ;;
13263 powerpc-*linux*)
13264 LD="${LD-ld} -m elf64ppc"
13265 ;;
13266 s390*-*linux*|s390*-*tpf*)
13267 LD="${LD-ld} -m elf64_s390"
13268 ;;
13269 sparc*-*linux*)
13270 LD="${LD-ld} -m elf64_sparc"
13271 ;;
13272 esac
13273 ;;
13274 esac
13275 fi
13276 rm -rf conftest*
13277 ;;
13278
13279 *-*-sco3.2v5*)
13280 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13281 SAVE_CFLAGS=$CFLAGS
13282 CFLAGS="$CFLAGS -belf"
13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13284 printf %s "checking whether the C compiler needs -belf... " >&6; }
13285 if test ${lt_cv_cc_needs_belf+y}
13286 then :
13287 printf %s "(cached) " >&6
13288 else $as_nop
13289 ac_ext=c
13290 ac_cpp='$CPP $CPPFLAGS'
13291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13294
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297
13298 int
13299 main (void)
13300 {
13301
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"
13307 then :
13308 lt_cv_cc_needs_belf=yes
13309 else $as_nop
13310 lt_cv_cc_needs_belf=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13313 conftest$ac_exeext conftest.$ac_ext
13314 ac_ext=c
13315 ac_cpp='$CPP $CPPFLAGS'
13316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13319
13320 fi
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13322 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
13323 if test yes != "$lt_cv_cc_needs_belf"; then
13324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13325 CFLAGS=$SAVE_CFLAGS
13326 fi
13327 ;;
13328 *-*solaris*)
13329 # Find out what ABI is being produced by ac_compile, and set linker
13330 # options accordingly.
13331 echo 'int i;' > conftest.$ac_ext
13332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13333 (eval $ac_compile) 2>&5
13334 ac_status=$?
13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13336 test $ac_status = 0; }; then
13337 case `$FILECMD conftest.o` in
13338 *64-bit*)
13339 case $lt_cv_prog_gnu_ld in
13340 yes*)
13341 case $host in
13342 i?86-*-solaris*|x86_64-*-solaris*)
13343 LD="${LD-ld} -m elf_x86_64"
13344 ;;
13345 sparc*-*-solaris*)
13346 LD="${LD-ld} -m elf64_sparc"
13347 ;;
13348 esac
13349 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13350 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13351 LD=${LD-ld}_sol2
13352 fi
13353 ;;
13354 *)
13355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13356 LD="${LD-ld} -64"
13357 fi
13358 ;;
13359 esac
13360 ;;
13361 esac
13362 fi
13363 rm -rf conftest*
13364 ;;
13365 esac
13366
13367 need_locks=$enable_libtool_lock
13368
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}mt; ac_word=$2
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 printf %s "checking for $ac_word... " >&6; }
13374 if test ${ac_cv_prog_MANIFEST_TOOL+y}
13375 then :
13376 printf %s "(cached) " >&6
13377 else $as_nop
13378 if test -n "$MANIFEST_TOOL"; then
13379 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13380 else
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382 for as_dir in $PATH
13383 do
13384 IFS=$as_save_IFS
13385 case $as_dir in #(((
13386 '') as_dir=./ ;;
13387 */) ;;
13388 *) as_dir=$as_dir/ ;;
13389 esac
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13392 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13394 break 2
13395 fi
13396 done
13397 done
13398 IFS=$as_save_IFS
13399
13400 fi
13401 fi
13402 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13403 if test -n "$MANIFEST_TOOL"; then
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13405 printf "%s\n" "$MANIFEST_TOOL" >&6; }
13406 else
13407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 printf "%s\n" "no" >&6; }
13409 fi
13410
13411
13412 fi
13413 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13414 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13415 # Extract the first word of "mt", so it can be a program name with args.
13416 set dummy mt; ac_word=$2
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418 printf %s "checking for $ac_word... " >&6; }
13419 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
13420 then :
13421 printf %s "(cached) " >&6
13422 else $as_nop
13423 if test -n "$ac_ct_MANIFEST_TOOL"; then
13424 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13425 else
13426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427 for as_dir in $PATH
13428 do
13429 IFS=$as_save_IFS
13430 case $as_dir in #(((
13431 '') as_dir=./ ;;
13432 */) ;;
13433 *) as_dir=$as_dir/ ;;
13434 esac
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13437 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13439 break 2
13440 fi
13441 done
13442 done
13443 IFS=$as_save_IFS
13444
13445 fi
13446 fi
13447 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13448 if test -n "$ac_ct_MANIFEST_TOOL"; then
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13450 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
13451 else
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 printf "%s\n" "no" >&6; }
13454 fi
13455
13456 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13457 MANIFEST_TOOL=":"
13458 else
13459 case $cross_compiling:$ac_tool_warned in
13460 yes:)
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13463 ac_tool_warned=yes ;;
13464 esac
13465 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13466 fi
13467 else
13468 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13469 fi
13470
13471 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13473 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13474 if test ${lt_cv_path_mainfest_tool+y}
13475 then :
13476 printf %s "(cached) " >&6
13477 else $as_nop
13478 lt_cv_path_mainfest_tool=no
13479 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13480 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13481 cat conftest.err >&5
13482 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13483 lt_cv_path_mainfest_tool=yes
13484 fi
13485 rm -f conftest*
13486 fi
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13488 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
13489 if test yes != "$lt_cv_path_mainfest_tool"; then
13490 MANIFEST_TOOL=:
13491 fi
13492
13493
13494
13495
13496
13497
13498 case $host_os in
13499 rhapsody* | darwin*)
13500 if test -n "$ac_tool_prefix"; then
13501 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13502 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 printf %s "checking for $ac_word... " >&6; }
13505 if test ${ac_cv_prog_DSYMUTIL+y}
13506 then :
13507 printf %s "(cached) " >&6
13508 else $as_nop
13509 if test -n "$DSYMUTIL"; then
13510 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13511 else
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13514 do
13515 IFS=$as_save_IFS
13516 case $as_dir in #(((
13517 '') as_dir=./ ;;
13518 */) ;;
13519 *) as_dir=$as_dir/ ;;
13520 esac
13521 for ac_exec_ext in '' $ac_executable_extensions; do
13522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13523 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13525 break 2
13526 fi
13527 done
13528 done
13529 IFS=$as_save_IFS
13530
13531 fi
13532 fi
13533 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13534 if test -n "$DSYMUTIL"; then
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13536 printf "%s\n" "$DSYMUTIL" >&6; }
13537 else
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539 printf "%s\n" "no" >&6; }
13540 fi
13541
13542
13543 fi
13544 if test -z "$ac_cv_prog_DSYMUTIL"; then
13545 ac_ct_DSYMUTIL=$DSYMUTIL
13546 # Extract the first word of "dsymutil", so it can be a program name with args.
13547 set dummy dsymutil; ac_word=$2
13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549 printf %s "checking for $ac_word... " >&6; }
13550 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
13551 then :
13552 printf %s "(cached) " >&6
13553 else $as_nop
13554 if test -n "$ac_ct_DSYMUTIL"; then
13555 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13556 else
13557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 for as_dir in $PATH
13559 do
13560 IFS=$as_save_IFS
13561 case $as_dir in #(((
13562 '') as_dir=./ ;;
13563 */) ;;
13564 *) as_dir=$as_dir/ ;;
13565 esac
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13570 break 2
13571 fi
13572 done
13573 done
13574 IFS=$as_save_IFS
13575
13576 fi
13577 fi
13578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13579 if test -n "$ac_ct_DSYMUTIL"; then
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13581 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
13582 else
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 printf "%s\n" "no" >&6; }
13585 fi
13586
13587 if test "x$ac_ct_DSYMUTIL" = x; then
13588 DSYMUTIL=":"
13589 else
13590 case $cross_compiling:$ac_tool_warned in
13591 yes:)
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13594 ac_tool_warned=yes ;;
13595 esac
13596 DSYMUTIL=$ac_ct_DSYMUTIL
13597 fi
13598 else
13599 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13600 fi
13601
13602 if test -n "$ac_tool_prefix"; then
13603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13604 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 printf %s "checking for $ac_word... " >&6; }
13607 if test ${ac_cv_prog_NMEDIT+y}
13608 then :
13609 printf %s "(cached) " >&6
13610 else $as_nop
13611 if test -n "$NMEDIT"; then
13612 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13616 do
13617 IFS=$as_save_IFS
13618 case $as_dir in #(((
13619 '') as_dir=./ ;;
13620 */) ;;
13621 *) as_dir=$as_dir/ ;;
13622 esac
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 NMEDIT=$ac_cv_prog_NMEDIT
13636 if test -n "$NMEDIT"; then
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13638 printf "%s\n" "$NMEDIT" >&6; }
13639 else
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 printf "%s\n" "no" >&6; }
13642 fi
13643
13644
13645 fi
13646 if test -z "$ac_cv_prog_NMEDIT"; then
13647 ac_ct_NMEDIT=$NMEDIT
13648 # Extract the first word of "nmedit", so it can be a program name with args.
13649 set dummy nmedit; ac_word=$2
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 printf %s "checking for $ac_word... " >&6; }
13652 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
13653 then :
13654 printf %s "(cached) " >&6
13655 else $as_nop
13656 if test -n "$ac_ct_NMEDIT"; then
13657 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13661 do
13662 IFS=$as_save_IFS
13663 case $as_dir in #(((
13664 '') as_dir=./ ;;
13665 */) ;;
13666 *) as_dir=$as_dir/ ;;
13667 esac
13668 for ac_exec_ext in '' $ac_executable_extensions; do
13669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13670 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13672 break 2
13673 fi
13674 done
13675 done
13676 IFS=$as_save_IFS
13677
13678 fi
13679 fi
13680 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13681 if test -n "$ac_ct_NMEDIT"; then
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13683 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
13684 else
13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 printf "%s\n" "no" >&6; }
13687 fi
13688
13689 if test "x$ac_ct_NMEDIT" = x; then
13690 NMEDIT=":"
13691 else
13692 case $cross_compiling:$ac_tool_warned in
13693 yes:)
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13696 ac_tool_warned=yes ;;
13697 esac
13698 NMEDIT=$ac_ct_NMEDIT
13699 fi
13700 else
13701 NMEDIT="$ac_cv_prog_NMEDIT"
13702 fi
13703
13704 if test -n "$ac_tool_prefix"; then
13705 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13706 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 printf %s "checking for $ac_word... " >&6; }
13709 if test ${ac_cv_prog_LIPO+y}
13710 then :
13711 printf %s "(cached) " >&6
13712 else $as_nop
13713 if test -n "$LIPO"; then
13714 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13715 else
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13718 do
13719 IFS=$as_save_IFS
13720 case $as_dir in #(((
13721 '') as_dir=./ ;;
13722 */) ;;
13723 *) as_dir=$as_dir/ ;;
13724 esac
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13727 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731 done
13732 done
13733 IFS=$as_save_IFS
13734
13735 fi
13736 fi
13737 LIPO=$ac_cv_prog_LIPO
13738 if test -n "$LIPO"; then
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13740 printf "%s\n" "$LIPO" >&6; }
13741 else
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 printf "%s\n" "no" >&6; }
13744 fi
13745
13746
13747 fi
13748 if test -z "$ac_cv_prog_LIPO"; then
13749 ac_ct_LIPO=$LIPO
13750 # Extract the first word of "lipo", so it can be a program name with args.
13751 set dummy lipo; ac_word=$2
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753 printf %s "checking for $ac_word... " >&6; }
13754 if test ${ac_cv_prog_ac_ct_LIPO+y}
13755 then :
13756 printf %s "(cached) " >&6
13757 else $as_nop
13758 if test -n "$ac_ct_LIPO"; then
13759 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13760 else
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13763 do
13764 IFS=$as_save_IFS
13765 case $as_dir in #(((
13766 '') as_dir=./ ;;
13767 */) ;;
13768 *) as_dir=$as_dir/ ;;
13769 esac
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_ac_ct_LIPO="lipo"
13773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13774 break 2
13775 fi
13776 done
13777 done
13778 IFS=$as_save_IFS
13779
13780 fi
13781 fi
13782 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13783 if test -n "$ac_ct_LIPO"; then
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13785 printf "%s\n" "$ac_ct_LIPO" >&6; }
13786 else
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 printf "%s\n" "no" >&6; }
13789 fi
13790
13791 if test "x$ac_ct_LIPO" = x; then
13792 LIPO=":"
13793 else
13794 case $cross_compiling:$ac_tool_warned in
13795 yes:)
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798 ac_tool_warned=yes ;;
13799 esac
13800 LIPO=$ac_ct_LIPO
13801 fi
13802 else
13803 LIPO="$ac_cv_prog_LIPO"
13804 fi
13805
13806 if test -n "$ac_tool_prefix"; then
13807 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13808 set dummy ${ac_tool_prefix}otool; ac_word=$2
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 printf %s "checking for $ac_word... " >&6; }
13811 if test ${ac_cv_prog_OTOOL+y}
13812 then :
13813 printf %s "(cached) " >&6
13814 else $as_nop
13815 if test -n "$OTOOL"; then
13816 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13820 do
13821 IFS=$as_save_IFS
13822 case $as_dir in #(((
13823 '') as_dir=./ ;;
13824 */) ;;
13825 *) as_dir=$as_dir/ ;;
13826 esac
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13829 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13831 break 2
13832 fi
13833 done
13834 done
13835 IFS=$as_save_IFS
13836
13837 fi
13838 fi
13839 OTOOL=$ac_cv_prog_OTOOL
13840 if test -n "$OTOOL"; then
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13842 printf "%s\n" "$OTOOL" >&6; }
13843 else
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 printf "%s\n" "no" >&6; }
13846 fi
13847
13848
13849 fi
13850 if test -z "$ac_cv_prog_OTOOL"; then
13851 ac_ct_OTOOL=$OTOOL
13852 # Extract the first word of "otool", so it can be a program name with args.
13853 set dummy otool; ac_word=$2
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 printf %s "checking for $ac_word... " >&6; }
13856 if test ${ac_cv_prog_ac_ct_OTOOL+y}
13857 then :
13858 printf %s "(cached) " >&6
13859 else $as_nop
13860 if test -n "$ac_ct_OTOOL"; then
13861 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13862 else
13863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13864 for as_dir in $PATH
13865 do
13866 IFS=$as_save_IFS
13867 case $as_dir in #(((
13868 '') as_dir=./ ;;
13869 */) ;;
13870 *) as_dir=$as_dir/ ;;
13871 esac
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13874 ac_cv_prog_ac_ct_OTOOL="otool"
13875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13876 break 2
13877 fi
13878 done
13879 done
13880 IFS=$as_save_IFS
13881
13882 fi
13883 fi
13884 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13885 if test -n "$ac_ct_OTOOL"; then
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13887 printf "%s\n" "$ac_ct_OTOOL" >&6; }
13888 else
13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 printf "%s\n" "no" >&6; }
13891 fi
13892
13893 if test "x$ac_ct_OTOOL" = x; then
13894 OTOOL=":"
13895 else
13896 case $cross_compiling:$ac_tool_warned in
13897 yes:)
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13899 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13900 ac_tool_warned=yes ;;
13901 esac
13902 OTOOL=$ac_ct_OTOOL
13903 fi
13904 else
13905 OTOOL="$ac_cv_prog_OTOOL"
13906 fi
13907
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 printf %s "checking for $ac_word... " >&6; }
13913 if test ${ac_cv_prog_OTOOL64+y}
13914 then :
13915 printf %s "(cached) " >&6
13916 else $as_nop
13917 if test -n "$OTOOL64"; then
13918 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13919 else
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923 IFS=$as_save_IFS
13924 case $as_dir in #(((
13925 '') as_dir=./ ;;
13926 */) ;;
13927 *) as_dir=$as_dir/ ;;
13928 esac
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13933 break 2
13934 fi
13935 done
13936 done
13937 IFS=$as_save_IFS
13938
13939 fi
13940 fi
13941 OTOOL64=$ac_cv_prog_OTOOL64
13942 if test -n "$OTOOL64"; then
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13944 printf "%s\n" "$OTOOL64" >&6; }
13945 else
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 printf "%s\n" "no" >&6; }
13948 fi
13949
13950
13951 fi
13952 if test -z "$ac_cv_prog_OTOOL64"; then
13953 ac_ct_OTOOL64=$OTOOL64
13954 # Extract the first word of "otool64", so it can be a program name with args.
13955 set dummy otool64; ac_word=$2
13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13957 printf %s "checking for $ac_word... " >&6; }
13958 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
13959 then :
13960 printf %s "(cached) " >&6
13961 else $as_nop
13962 if test -n "$ac_ct_OTOOL64"; then
13963 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13964 else
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13967 do
13968 IFS=$as_save_IFS
13969 case $as_dir in #(((
13970 '') as_dir=./ ;;
13971 */) ;;
13972 *) as_dir=$as_dir/ ;;
13973 esac
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13976 ac_cv_prog_ac_ct_OTOOL64="otool64"
13977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13978 break 2
13979 fi
13980 done
13981 done
13982 IFS=$as_save_IFS
13983
13984 fi
13985 fi
13986 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13987 if test -n "$ac_ct_OTOOL64"; then
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13989 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
13990 else
13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 printf "%s\n" "no" >&6; }
13993 fi
13994
13995 if test "x$ac_ct_OTOOL64" = x; then
13996 OTOOL64=":"
13997 else
13998 case $cross_compiling:$ac_tool_warned in
13999 yes:)
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14002 ac_tool_warned=yes ;;
14003 esac
14004 OTOOL64=$ac_ct_OTOOL64
14005 fi
14006 else
14007 OTOOL64="$ac_cv_prog_OTOOL64"
14008 fi
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14037 printf %s "checking for -single_module linker flag... " >&6; }
14038 if test ${lt_cv_apple_cc_single_mod+y}
14039 then :
14040 printf %s "(cached) " >&6
14041 else $as_nop
14042 lt_cv_apple_cc_single_mod=no
14043 if test -z "$LT_MULTI_MODULE"; then
14044 # By default we will add the -single_module flag. You can override
14045 # by either setting the environment variable LT_MULTI_MODULE
14046 # non-empty at configure time, or by adding -multi_module to the
14047 # link flags.
14048 rm -rf libconftest.dylib*
14049 echo "int foo(void){return 1;}" > conftest.c
14050 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14051 -dynamiclib -Wl,-single_module conftest.c" >&5
14052 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14053 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14054 _lt_result=$?
14055 # If there is a non-empty error log, and "single_module"
14056 # appears in it, assume the flag caused a linker warning
14057 if test -s conftest.err && $GREP single_module conftest.err; then
14058 cat conftest.err >&5
14059 # Otherwise, if the output was created with a 0 exit code from
14060 # the compiler, it worked.
14061 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14062 lt_cv_apple_cc_single_mod=yes
14063 else
14064 cat conftest.err >&5
14065 fi
14066 rm -rf libconftest.dylib*
14067 rm -f conftest.*
14068 fi
14069 fi
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14071 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14072
14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14074 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14075 if test ${lt_cv_ld_exported_symbols_list+y}
14076 then :
14077 printf %s "(cached) " >&6
14078 else $as_nop
14079 lt_cv_ld_exported_symbols_list=no
14080 save_LDFLAGS=$LDFLAGS
14081 echo "_main" > conftest.sym
14082 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085
14086 int
14087 main (void)
14088 {
14089
14090 ;
14091 return 0;
14092 }
14093 _ACEOF
14094 if ac_fn_c_try_link "$LINENO"
14095 then :
14096 lt_cv_ld_exported_symbols_list=yes
14097 else $as_nop
14098 lt_cv_ld_exported_symbols_list=no
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14101 conftest$ac_exeext conftest.$ac_ext
14102 LDFLAGS=$save_LDFLAGS
14103
14104 fi
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14106 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14107
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14109 printf %s "checking for -force_load linker flag... " >&6; }
14110 if test ${lt_cv_ld_force_load+y}
14111 then :
14112 printf %s "(cached) " >&6
14113 else $as_nop
14114 lt_cv_ld_force_load=no
14115 cat > conftest.c << _LT_EOF
14116 int forced_loaded() { return 2;}
14117 _LT_EOF
14118 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14119 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14120 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14121 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14122 echo "$RANLIB libconftest.a" >&5
14123 $RANLIB libconftest.a 2>&5
14124 cat > conftest.c << _LT_EOF
14125 int main() { return 0;}
14126 _LT_EOF
14127 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14128 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14129 _lt_result=$?
14130 if test -s conftest.err && $GREP force_load conftest.err; then
14131 cat conftest.err >&5
14132 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14133 lt_cv_ld_force_load=yes
14134 else
14135 cat conftest.err >&5
14136 fi
14137 rm -f conftest.err libconftest.a conftest conftest.c
14138 rm -rf conftest.dSYM
14139
14140 fi
14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14142 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14143 case $host_os in
14144 rhapsody* | darwin1.[012])
14145 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14146 darwin1.*)
14147 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14148 darwin*)
14149 case $MACOSX_DEPLOYMENT_TARGET,$host in
14150 10.[012],*|,*powerpc*-darwin[5-8]*)
14151 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14152 *)
14153 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14154 esac
14155 ;;
14156 esac
14157 if test yes = "$lt_cv_apple_cc_single_mod"; then
14158 _lt_dar_single_mod='$single_module'
14159 fi
14160 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14161 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14162 else
14163 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14164 fi
14165 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14166 _lt_dsymutil='~$DSYMUTIL $lib || :'
14167 else
14168 _lt_dsymutil=
14169 fi
14170 ;;
14171 esac
14172
14173 # func_munge_path_list VARIABLE PATH
14174 # -----------------------------------
14175 # VARIABLE is name of variable containing _space_ separated list of
14176 # directories to be munged by the contents of PATH, which is string
14177 # having a format:
14178 # "DIR[:DIR]:"
14179 # string "DIR[ DIR]" will be prepended to VARIABLE
14180 # ":DIR[:DIR]"
14181 # string "DIR[ DIR]" will be appended to VARIABLE
14182 # "DIRP[:DIRP]::[DIRA:]DIRA"
14183 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14184 # "DIRA[ DIRA]" will be appended to VARIABLE
14185 # "DIR[:DIR]"
14186 # VARIABLE will be replaced by "DIR[ DIR]"
14187 func_munge_path_list ()
14188 {
14189 case x$2 in
14190 x)
14191 ;;
14192 *:)
14193 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14194 ;;
14195 x:*)
14196 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14197 ;;
14198 *::*)
14199 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14200 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14201 ;;
14202 *)
14203 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14204 ;;
14205 esac
14206 }
14207
14208 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14209 "
14210 if test "x$ac_cv_header_dlfcn_h" = xyes
14211 then :
14212 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14213
14214 fi
14215
14216
14217
14218 func_stripname_cnf ()
14219 {
14220 case $2 in
14221 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14222 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14223 esac
14224 } # func_stripname_cnf
14225
14226
14227
14228
14229
14230 # Set options
14231 enable_dlopen=yes
14232 enable_win32_dll=yes
14233
14234 case $host in
14235 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}as; ac_word=$2
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 printf %s "checking for $ac_word... " >&6; }
14241 if test ${ac_cv_prog_AS+y}
14242 then :
14243 printf %s "(cached) " >&6
14244 else $as_nop
14245 if test -n "$AS"; then
14246 ac_cv_prog_AS="$AS" # Let the user override the test.
14247 else
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14250 do
14251 IFS=$as_save_IFS
14252 case $as_dir in #(((
14253 '') as_dir=./ ;;
14254 */) ;;
14255 *) as_dir=$as_dir/ ;;
14256 esac
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_AS="${ac_tool_prefix}as"
14260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 fi
14268 fi
14269 AS=$ac_cv_prog_AS
14270 if test -n "$AS"; then
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14272 printf "%s\n" "$AS" >&6; }
14273 else
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 printf "%s\n" "no" >&6; }
14276 fi
14277
14278
14279 fi
14280 if test -z "$ac_cv_prog_AS"; then
14281 ac_ct_AS=$AS
14282 # Extract the first word of "as", so it can be a program name with args.
14283 set dummy as; ac_word=$2
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 printf %s "checking for $ac_word... " >&6; }
14286 if test ${ac_cv_prog_ac_ct_AS+y}
14287 then :
14288 printf %s "(cached) " >&6
14289 else $as_nop
14290 if test -n "$ac_ct_AS"; then
14291 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 case $as_dir in #(((
14298 '') as_dir=./ ;;
14299 */) ;;
14300 *) as_dir=$as_dir/ ;;
14301 esac
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14304 ac_cv_prog_ac_ct_AS="as"
14305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306 break 2
14307 fi
14308 done
14309 done
14310 IFS=$as_save_IFS
14311
14312 fi
14313 fi
14314 ac_ct_AS=$ac_cv_prog_ac_ct_AS
14315 if test -n "$ac_ct_AS"; then
14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14317 printf "%s\n" "$ac_ct_AS" >&6; }
14318 else
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 printf "%s\n" "no" >&6; }
14321 fi
14322
14323 if test "x$ac_ct_AS" = x; then
14324 AS="false"
14325 else
14326 case $cross_compiling:$ac_tool_warned in
14327 yes:)
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14330 ac_tool_warned=yes ;;
14331 esac
14332 AS=$ac_ct_AS
14333 fi
14334 else
14335 AS="$ac_cv_prog_AS"
14336 fi
14337
14338 if test -n "$ac_tool_prefix"; then
14339 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14340 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342 printf %s "checking for $ac_word... " >&6; }
14343 if test ${ac_cv_prog_DLLTOOL+y}
14344 then :
14345 printf %s "(cached) " >&6
14346 else $as_nop
14347 if test -n "$DLLTOOL"; then
14348 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 case $as_dir in #(((
14355 '') as_dir=./ ;;
14356 */) ;;
14357 *) as_dir=$as_dir/ ;;
14358 esac
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14361 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14363 break 2
14364 fi
14365 done
14366 done
14367 IFS=$as_save_IFS
14368
14369 fi
14370 fi
14371 DLLTOOL=$ac_cv_prog_DLLTOOL
14372 if test -n "$DLLTOOL"; then
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14374 printf "%s\n" "$DLLTOOL" >&6; }
14375 else
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 printf "%s\n" "no" >&6; }
14378 fi
14379
14380
14381 fi
14382 if test -z "$ac_cv_prog_DLLTOOL"; then
14383 ac_ct_DLLTOOL=$DLLTOOL
14384 # Extract the first word of "dlltool", so it can be a program name with args.
14385 set dummy dlltool; ac_word=$2
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 printf %s "checking for $ac_word... " >&6; }
14388 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
14389 then :
14390 printf %s "(cached) " >&6
14391 else $as_nop
14392 if test -n "$ac_ct_DLLTOOL"; then
14393 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14394 else
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $PATH
14397 do
14398 IFS=$as_save_IFS
14399 case $as_dir in #(((
14400 '') as_dir=./ ;;
14401 */) ;;
14402 *) as_dir=$as_dir/ ;;
14403 esac
14404 for ac_exec_ext in '' $ac_executable_extensions; do
14405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14406 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14408 break 2
14409 fi
14410 done
14411 done
14412 IFS=$as_save_IFS
14413
14414 fi
14415 fi
14416 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14417 if test -n "$ac_ct_DLLTOOL"; then
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14419 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
14420 else
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 printf "%s\n" "no" >&6; }
14423 fi
14424
14425 if test "x$ac_ct_DLLTOOL" = x; then
14426 DLLTOOL="false"
14427 else
14428 case $cross_compiling:$ac_tool_warned in
14429 yes:)
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14431 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14432 ac_tool_warned=yes ;;
14433 esac
14434 DLLTOOL=$ac_ct_DLLTOOL
14435 fi
14436 else
14437 DLLTOOL="$ac_cv_prog_DLLTOOL"
14438 fi
14439
14440 if test -n "$ac_tool_prefix"; then
14441 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14442 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 printf %s "checking for $ac_word... " >&6; }
14445 if test ${ac_cv_prog_OBJDUMP+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else $as_nop
14449 if test -n "$OBJDUMP"; then
14450 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14451 else
14452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14453 for as_dir in $PATH
14454 do
14455 IFS=$as_save_IFS
14456 case $as_dir in #(((
14457 '') as_dir=./ ;;
14458 */) ;;
14459 *) as_dir=$as_dir/ ;;
14460 esac
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14463 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14465 break 2
14466 fi
14467 done
14468 done
14469 IFS=$as_save_IFS
14470
14471 fi
14472 fi
14473 OBJDUMP=$ac_cv_prog_OBJDUMP
14474 if test -n "$OBJDUMP"; then
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14476 printf "%s\n" "$OBJDUMP" >&6; }
14477 else
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 printf "%s\n" "no" >&6; }
14480 fi
14481
14482
14483 fi
14484 if test -z "$ac_cv_prog_OBJDUMP"; then
14485 ac_ct_OBJDUMP=$OBJDUMP
14486 # Extract the first word of "objdump", so it can be a program name with args.
14487 set dummy objdump; ac_word=$2
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489 printf %s "checking for $ac_word... " >&6; }
14490 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
14491 then :
14492 printf %s "(cached) " >&6
14493 else $as_nop
14494 if test -n "$ac_ct_OBJDUMP"; then
14495 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14496 else
14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14499 do
14500 IFS=$as_save_IFS
14501 case $as_dir in #(((
14502 '') as_dir=./ ;;
14503 */) ;;
14504 *) as_dir=$as_dir/ ;;
14505 esac
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14508 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14510 break 2
14511 fi
14512 done
14513 done
14514 IFS=$as_save_IFS
14515
14516 fi
14517 fi
14518 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14519 if test -n "$ac_ct_OBJDUMP"; then
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14521 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
14522 else
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 printf "%s\n" "no" >&6; }
14525 fi
14526
14527 if test "x$ac_ct_OBJDUMP" = x; then
14528 OBJDUMP="false"
14529 else
14530 case $cross_compiling:$ac_tool_warned in
14531 yes:)
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14534 ac_tool_warned=yes ;;
14535 esac
14536 OBJDUMP=$ac_ct_OBJDUMP
14537 fi
14538 else
14539 OBJDUMP="$ac_cv_prog_OBJDUMP"
14540 fi
14541
14542 ;;
14543 esac
14544
14545 test -z "$AS" && AS=as
14546
14547
14548
14549
14550
14551 test -z "$DLLTOOL" && DLLTOOL=dlltool
14552
14553
14554
14555
14556
14557 test -z "$OBJDUMP" && OBJDUMP=objdump
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567 # Check whether --enable-shared was given.
14568 if test ${enable_shared+y}
14569 then :
14570 enableval=$enable_shared; p=${PACKAGE-default}
14571 case $enableval in
14572 yes) enable_shared=yes ;;
14573 no) enable_shared=no ;;
14574 *)
14575 enable_shared=no
14576 # Look at the argument we got. We use all the common list separators.
14577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14578 for pkg in $enableval; do
14579 IFS=$lt_save_ifs
14580 if test "X$pkg" = "X$p"; then
14581 enable_shared=yes
14582 fi
14583 done
14584 IFS=$lt_save_ifs
14585 ;;
14586 esac
14587 else $as_nop
14588 enable_shared=yes
14589 fi
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599 # Check whether --enable-static was given.
14600 if test ${enable_static+y}
14601 then :
14602 enableval=$enable_static; p=${PACKAGE-default}
14603 case $enableval in
14604 yes) enable_static=yes ;;
14605 no) enable_static=no ;;
14606 *)
14607 enable_static=no
14608 # Look at the argument we got. We use all the common list separators.
14609 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14610 for pkg in $enableval; do
14611 IFS=$lt_save_ifs
14612 if test "X$pkg" = "X$p"; then
14613 enable_static=yes
14614 fi
14615 done
14616 IFS=$lt_save_ifs
14617 ;;
14618 esac
14619 else $as_nop
14620 enable_static=yes
14621 fi
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632 # Check whether --with-pic was given.
14633 if test ${with_pic+y}
14634 then :
14635 withval=$with_pic; lt_p=${PACKAGE-default}
14636 case $withval in
14637 yes|no) pic_mode=$withval ;;
14638 *)
14639 pic_mode=default
14640 # Look at the argument we got. We use all the common list separators.
14641 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14642 for lt_pkg in $withval; do
14643 IFS=$lt_save_ifs
14644 if test "X$lt_pkg" = "X$lt_p"; then
14645 pic_mode=yes
14646 fi
14647 done
14648 IFS=$lt_save_ifs
14649 ;;
14650 esac
14651 else $as_nop
14652 pic_mode=default
14653 fi
14654
14655
14656
14657
14658
14659
14660
14661
14662 # Check whether --enable-fast-install was given.
14663 if test ${enable_fast_install+y}
14664 then :
14665 enableval=$enable_fast_install; p=${PACKAGE-default}
14666 case $enableval in
14667 yes) enable_fast_install=yes ;;
14668 no) enable_fast_install=no ;;
14669 *)
14670 enable_fast_install=no
14671 # Look at the argument we got. We use all the common list separators.
14672 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14673 for pkg in $enableval; do
14674 IFS=$lt_save_ifs
14675 if test "X$pkg" = "X$p"; then
14676 enable_fast_install=yes
14677 fi
14678 done
14679 IFS=$lt_save_ifs
14680 ;;
14681 esac
14682 else $as_nop
14683 enable_fast_install=yes
14684 fi
14685
14686
14687
14688
14689
14690
14691
14692
14693 shared_archive_member_spec=
14694 case $host,$enable_shared in
14695 power*-*-aix[5-9]*,yes)
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14697 printf %s "checking which variant of shared library versioning to provide... " >&6; }
14698
14699 # Check whether --with-aix-soname was given.
14700 if test ${with_aix_soname+y}
14701 then :
14702 withval=$with_aix_soname; case $withval in
14703 aix|svr4|both)
14704 ;;
14705 *)
14706 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14707 ;;
14708 esac
14709 lt_cv_with_aix_soname=$with_aix_soname
14710 else $as_nop
14711 if test ${lt_cv_with_aix_soname+y}
14712 then :
14713 printf %s "(cached) " >&6
14714 else $as_nop
14715 lt_cv_with_aix_soname=aix
14716 fi
14717
14718 with_aix_soname=$lt_cv_with_aix_soname
14719 fi
14720
14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14722 printf "%s\n" "$with_aix_soname" >&6; }
14723 if test aix != "$with_aix_soname"; then
14724 # For the AIX way of multilib, we name the shared archive member
14725 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14726 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14727 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14728 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14729 if test 64 = "${OBJECT_MODE-32}"; then
14730 shared_archive_member_spec=shr_64
14731 else
14732 shared_archive_member_spec=shr
14733 fi
14734 fi
14735 ;;
14736 *)
14737 with_aix_soname=aix
14738 ;;
14739 esac
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750 # This can be used to rebuild libtool when needed
14751 LIBTOOL_DEPS=$ltmain
14752
14753 # Always use our own libtool.
14754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785 test -z "$LN_S" && LN_S="ln -s"
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800 if test -n "${ZSH_VERSION+set}"; then
14801 setopt NO_GLOB_SUBST
14802 fi
14803
14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14805 printf %s "checking for objdir... " >&6; }
14806 if test ${lt_cv_objdir+y}
14807 then :
14808 printf %s "(cached) " >&6
14809 else $as_nop
14810 rm -f .libs 2>/dev/null
14811 mkdir .libs 2>/dev/null
14812 if test -d .libs; then
14813 lt_cv_objdir=.libs
14814 else
14815 # MS-DOS does not allow filenames that begin with a dot.
14816 lt_cv_objdir=_libs
14817 fi
14818 rmdir .libs 2>/dev/null
14819 fi
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14821 printf "%s\n" "$lt_cv_objdir" >&6; }
14822 objdir=$lt_cv_objdir
14823
14824
14825
14826
14827
14828 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
14829
14830
14831
14832
14833 case $host_os in
14834 aix3*)
14835 # AIX sometimes has problems with the GCC collect2 program. For some
14836 # reason, if we set the COLLECT_NAMES environment variable, the problems
14837 # vanish in a puff of smoke.
14838 if test set != "${COLLECT_NAMES+set}"; then
14839 COLLECT_NAMES=
14840 export COLLECT_NAMES
14841 fi
14842 ;;
14843 esac
14844
14845 # Global variables:
14846 ofile=libtool
14847 can_build_shared=yes
14848
14849 # All known linkers require a '.a' archive for static linking (except MSVC and
14850 # ICC, which need '.lib').
14851 libext=a
14852
14853 with_gnu_ld=$lt_cv_prog_gnu_ld
14854
14855 old_CC=$CC
14856 old_CFLAGS=$CFLAGS
14857
14858 # Set sane defaults for various variables
14859 test -z "$CC" && CC=cc
14860 test -z "$LTCC" && LTCC=$CC
14861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14862 test -z "$LD" && LD=ld
14863 test -z "$ac_objext" && ac_objext=o
14864
14865 func_cc_basename $compiler
14866 cc_basename=$func_cc_basename_result
14867
14868
14869 # Only perform the check for file, if the check method requires it
14870 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14871 case $deplibs_check_method in
14872 file_magic*)
14873 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14875 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
14876 if test ${lt_cv_path_MAGIC_CMD+y}
14877 then :
14878 printf %s "(cached) " >&6
14879 else $as_nop
14880 case $MAGIC_CMD in
14881 [\\/*] | ?:[\\/]*)
14882 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14883 ;;
14884 *)
14885 lt_save_MAGIC_CMD=$MAGIC_CMD
14886 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14888 for ac_dir in $ac_dummy; do
14889 IFS=$lt_save_ifs
14890 test -z "$ac_dir" && ac_dir=.
14891 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14892 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14893 if test -n "$file_magic_test_file"; then
14894 case $deplibs_check_method in
14895 "file_magic "*)
14896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14897 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14899 $EGREP "$file_magic_regex" > /dev/null; then
14900 :
14901 else
14902 cat <<_LT_EOF 1>&2
14903
14904 *** Warning: the command libtool uses to detect shared libraries,
14905 *** $file_magic_cmd, produces output that libtool cannot recognize.
14906 *** The result is that libtool may fail to recognize shared libraries
14907 *** as such. This will affect the creation of libtool libraries that
14908 *** depend on shared libraries, but programs linked with such libtool
14909 *** libraries will work regardless of this problem. Nevertheless, you
14910 *** may want to report the problem to your system manager and/or to
14911 *** [email protected]
14912
14913 _LT_EOF
14914 fi ;;
14915 esac
14916 fi
14917 break
14918 fi
14919 done
14920 IFS=$lt_save_ifs
14921 MAGIC_CMD=$lt_save_MAGIC_CMD
14922 ;;
14923 esac
14924 fi
14925
14926 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14927 if test -n "$MAGIC_CMD"; then
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14929 printf "%s\n" "$MAGIC_CMD" >&6; }
14930 else
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 printf "%s\n" "no" >&6; }
14933 fi
14934
14935
14936
14937
14938
14939 if test -z "$lt_cv_path_MAGIC_CMD"; then
14940 if test -n "$ac_tool_prefix"; then
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14942 printf %s "checking for file... " >&6; }
14943 if test ${lt_cv_path_MAGIC_CMD+y}
14944 then :
14945 printf %s "(cached) " >&6
14946 else $as_nop
14947 case $MAGIC_CMD in
14948 [\\/*] | ?:[\\/]*)
14949 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14950 ;;
14951 *)
14952 lt_save_MAGIC_CMD=$MAGIC_CMD
14953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14955 for ac_dir in $ac_dummy; do
14956 IFS=$lt_save_ifs
14957 test -z "$ac_dir" && ac_dir=.
14958 if test -f "$ac_dir/file"; then
14959 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14960 if test -n "$file_magic_test_file"; then
14961 case $deplibs_check_method in
14962 "file_magic "*)
14963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14964 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14966 $EGREP "$file_magic_regex" > /dev/null; then
14967 :
14968 else
14969 cat <<_LT_EOF 1>&2
14970
14971 *** Warning: the command libtool uses to detect shared libraries,
14972 *** $file_magic_cmd, produces output that libtool cannot recognize.
14973 *** The result is that libtool may fail to recognize shared libraries
14974 *** as such. This will affect the creation of libtool libraries that
14975 *** depend on shared libraries, but programs linked with such libtool
14976 *** libraries will work regardless of this problem. Nevertheless, you
14977 *** may want to report the problem to your system manager and/or to
14978 *** [email protected]
14979
14980 _LT_EOF
14981 fi ;;
14982 esac
14983 fi
14984 break
14985 fi
14986 done
14987 IFS=$lt_save_ifs
14988 MAGIC_CMD=$lt_save_MAGIC_CMD
14989 ;;
14990 esac
14991 fi
14992
14993 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14994 if test -n "$MAGIC_CMD"; then
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14996 printf "%s\n" "$MAGIC_CMD" >&6; }
14997 else
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 printf "%s\n" "no" >&6; }
15000 fi
15001
15002
15003 else
15004 MAGIC_CMD=:
15005 fi
15006 fi
15007
15008 fi
15009 ;;
15010 esac
15011
15012 # Use C for the default configuration in the libtool script
15013
15014 lt_save_CC=$CC
15015 ac_ext=c
15016 ac_cpp='$CPP $CPPFLAGS'
15017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15020
15021
15022 # Source file extension for C test sources.
15023 ac_ext=c
15024
15025 # Object file extension for compiled C test sources.
15026 objext=o
15027 objext=$objext
15028
15029 # Code to be used in simple compile tests
15030 lt_simple_compile_test_code="int some_variable = 0;"
15031
15032 # Code to be used in simple link tests
15033 lt_simple_link_test_code='int main(){return(0);}'
15034
15035
15036
15037
15038
15039
15040
15041 # If no C compiler was specified, use CC.
15042 LTCC=${LTCC-"$CC"}
15043
15044 # If no C compiler flags were specified, use CFLAGS.
15045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15046
15047 # Allow CC to be a program name with arguments.
15048 compiler=$CC
15049
15050 # Save the default compiler, since it gets overwritten when the other
15051 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15052 compiler_DEFAULT=$CC
15053
15054 # save warnings/boilerplate of simple test code
15055 ac_outfile=conftest.$ac_objext
15056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15058 _lt_compiler_boilerplate=`cat conftest.err`
15059 $RM conftest*
15060
15061 ac_outfile=conftest.$ac_objext
15062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15064 _lt_linker_boilerplate=`cat conftest.err`
15065 $RM -r conftest*
15066
15067
15068 ## CAVEAT EMPTOR:
15069 ## There is no encapsulation within the following macros, do not change
15070 ## the running order or otherwise move them around unless you know exactly
15071 ## what you are doing...
15072 if test -n "$compiler"; then
15073
15074 lt_prog_compiler_no_builtin_flag=
15075
15076 if test yes = "$GCC"; then
15077 case $cc_basename in
15078 nvcc*)
15079 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15080 *)
15081 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15082 esac
15083
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15085 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15086 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15087 then :
15088 printf %s "(cached) " >&6
15089 else $as_nop
15090 lt_cv_prog_compiler_rtti_exceptions=no
15091 ac_outfile=conftest.$ac_objext
15092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15093 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15094 # Insert the option either (1) after the last *FLAGS variable, or
15095 # (2) before a word containing "conftest.", or (3) at the end.
15096 # Note that $ac_compile itself does not contain backslashes and begins
15097 # with a dollar sign (not a hyphen), so the echo should work correctly.
15098 # The option is referenced via a variable to avoid confusing sed.
15099 lt_compile=`echo "$ac_compile" | $SED \
15100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15102 -e 's:$: $lt_compiler_flag:'`
15103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15104 (eval "$lt_compile" 2>conftest.err)
15105 ac_status=$?
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 if (exit $ac_status) && test -s "$ac_outfile"; then
15109 # The compiler can only warn and ignore the option if not recognized
15110 # So say no if there are warnings other than the usual output.
15111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15114 lt_cv_prog_compiler_rtti_exceptions=yes
15115 fi
15116 fi
15117 $RM conftest*
15118
15119 fi
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15121 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15122
15123 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15125 else
15126 :
15127 fi
15128
15129 fi
15130
15131
15132
15133
15134
15135
15136 lt_prog_compiler_wl=
15137 lt_prog_compiler_pic=
15138 lt_prog_compiler_static=
15139
15140
15141 if test yes = "$GCC"; then
15142 lt_prog_compiler_wl='-Wl,'
15143 lt_prog_compiler_static='-static'
15144
15145 case $host_os in
15146 aix*)
15147 # All AIX code is PIC.
15148 if test ia64 = "$host_cpu"; then
15149 # AIX 5 now supports IA64 processor
15150 lt_prog_compiler_static='-Bstatic'
15151 fi
15152 lt_prog_compiler_pic='-fPIC'
15153 ;;
15154
15155 amigaos*)
15156 case $host_cpu in
15157 powerpc)
15158 # see comment about AmigaOS4 .so support
15159 lt_prog_compiler_pic='-fPIC'
15160 ;;
15161 m68k)
15162 # FIXME: we need at least 68020 code to build shared libraries, but
15163 # adding the '-m68020' flag to GCC prevents building anything better,
15164 # like '-m68040'.
15165 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15166 ;;
15167 esac
15168 ;;
15169
15170 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15171 # PIC is the default for these OSes.
15172 ;;
15173
15174 mingw* | cygwin* | pw32* | os2* | cegcc*)
15175 # This hack is so that the source file can tell whether it is being
15176 # built for inclusion in a dll (and should export symbols for example).
15177 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15178 # (--disable-auto-import) libraries
15179 lt_prog_compiler_pic='-DDLL_EXPORT'
15180 case $host_os in
15181 os2*)
15182 lt_prog_compiler_static='$wl-static'
15183 ;;
15184 esac
15185 ;;
15186
15187 darwin* | rhapsody*)
15188 # PIC is the default on this platform
15189 # Common symbols not allowed in MH_DYLIB files
15190 lt_prog_compiler_pic='-fno-common'
15191 ;;
15192
15193 haiku*)
15194 # PIC is the default for Haiku.
15195 # The "-static" flag exists, but is broken.
15196 lt_prog_compiler_static=
15197 ;;
15198
15199 hpux*)
15200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15202 # sets the default TLS model and affects inlining.
15203 case $host_cpu in
15204 hppa*64*)
15205 # +Z the default
15206 ;;
15207 *)
15208 lt_prog_compiler_pic='-fPIC'
15209 ;;
15210 esac
15211 ;;
15212
15213 interix[3-9]*)
15214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15215 # Instead, we relocate shared libraries at runtime.
15216 ;;
15217
15218 msdosdjgpp*)
15219 # Just because we use GCC doesn't mean we suddenly get shared libraries
15220 # on systems that don't support them.
15221 lt_prog_compiler_can_build_shared=no
15222 enable_shared=no
15223 ;;
15224
15225 *nto* | *qnx*)
15226 # QNX uses GNU C++, but need to define -shared option too, otherwise
15227 # it will coredump.
15228 lt_prog_compiler_pic='-fPIC -shared'
15229 ;;
15230
15231 sysv4*MP*)
15232 if test -d /usr/nec; then
15233 lt_prog_compiler_pic=-Kconform_pic
15234 fi
15235 ;;
15236
15237 *)
15238 lt_prog_compiler_pic='-fPIC'
15239 ;;
15240 esac
15241
15242 case $cc_basename in
15243 nvcc*) # Cuda Compiler Driver 2.2
15244 lt_prog_compiler_wl='-Xlinker '
15245 if test -n "$lt_prog_compiler_pic"; then
15246 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15247 fi
15248 ;;
15249 esac
15250 else
15251 # PORTME Check for flag to pass linker flags through the system compiler.
15252 case $host_os in
15253 aix*)
15254 lt_prog_compiler_wl='-Wl,'
15255 if test ia64 = "$host_cpu"; then
15256 # AIX 5 now supports IA64 processor
15257 lt_prog_compiler_static='-Bstatic'
15258 else
15259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15260 fi
15261 ;;
15262
15263 darwin* | rhapsody*)
15264 # PIC is the default on this platform
15265 # Common symbols not allowed in MH_DYLIB files
15266 lt_prog_compiler_pic='-fno-common'
15267 case $cc_basename in
15268 nagfor*)
15269 # NAG Fortran compiler
15270 lt_prog_compiler_wl='-Wl,-Wl,,'
15271 lt_prog_compiler_pic='-PIC'
15272 lt_prog_compiler_static='-Bstatic'
15273 ;;
15274 esac
15275 ;;
15276
15277 mingw* | cygwin* | pw32* | os2* | cegcc*)
15278 # This hack is so that the source file can tell whether it is being
15279 # built for inclusion in a dll (and should export symbols for example).
15280 lt_prog_compiler_pic='-DDLL_EXPORT'
15281 case $host_os in
15282 os2*)
15283 lt_prog_compiler_static='$wl-static'
15284 ;;
15285 esac
15286 ;;
15287
15288 hpux9* | hpux10* | hpux11*)
15289 lt_prog_compiler_wl='-Wl,'
15290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15291 # not for PA HP-UX.
15292 case $host_cpu in
15293 hppa*64*|ia64*)
15294 # +Z the default
15295 ;;
15296 *)
15297 lt_prog_compiler_pic='+Z'
15298 ;;
15299 esac
15300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15301 lt_prog_compiler_static='$wl-a ${wl}archive'
15302 ;;
15303
15304 irix5* | irix6* | nonstopux*)
15305 lt_prog_compiler_wl='-Wl,'
15306 # PIC (with -KPIC) is the default.
15307 lt_prog_compiler_static='-non_shared'
15308 ;;
15309
15310 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15311 case $cc_basename in
15312 # old Intel for x86_64, which still supported -KPIC.
15313 ecc*)
15314 lt_prog_compiler_wl='-Wl,'
15315 lt_prog_compiler_pic='-KPIC'
15316 lt_prog_compiler_static='-static'
15317 ;;
15318 # flang / f18. f95 an alias for gfortran or flang on Debian
15319 flang* | f18* | f95*)
15320 lt_prog_compiler_wl='-Wl,'
15321 lt_prog_compiler_pic='-fPIC'
15322 lt_prog_compiler_static='-static'
15323 ;;
15324 # icc used to be incompatible with GCC.
15325 # ICC 10 doesn't accept -KPIC any more.
15326 icc* | ifort*)
15327 lt_prog_compiler_wl='-Wl,'
15328 lt_prog_compiler_pic='-fPIC'
15329 lt_prog_compiler_static='-static'
15330 ;;
15331 # Lahey Fortran 8.1.
15332 lf95*)
15333 lt_prog_compiler_wl='-Wl,'
15334 lt_prog_compiler_pic='--shared'
15335 lt_prog_compiler_static='--static'
15336 ;;
15337 nagfor*)
15338 # NAG Fortran compiler
15339 lt_prog_compiler_wl='-Wl,-Wl,,'
15340 lt_prog_compiler_pic='-PIC'
15341 lt_prog_compiler_static='-Bstatic'
15342 ;;
15343 tcc*)
15344 # Fabrice Bellard et al's Tiny C Compiler
15345 lt_prog_compiler_wl='-Wl,'
15346 lt_prog_compiler_pic='-fPIC'
15347 lt_prog_compiler_static='-static'
15348 ;;
15349 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15350 # Portland Group compilers (*not* the Pentium gcc compiler,
15351 # which looks to be a dead project)
15352 lt_prog_compiler_wl='-Wl,'
15353 lt_prog_compiler_pic='-fpic'
15354 lt_prog_compiler_static='-Bstatic'
15355 ;;
15356 ccc*)
15357 lt_prog_compiler_wl='-Wl,'
15358 # All Alpha code is PIC.
15359 lt_prog_compiler_static='-non_shared'
15360 ;;
15361 xl* | bgxl* | bgf* | mpixl*)
15362 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15363 lt_prog_compiler_wl='-Wl,'
15364 lt_prog_compiler_pic='-qpic'
15365 lt_prog_compiler_static='-qstaticlink'
15366 ;;
15367 *)
15368 case `$CC -V 2>&1 | $SED 5q` in
15369 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15370 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15371 lt_prog_compiler_pic='-KPIC'
15372 lt_prog_compiler_static='-Bstatic'
15373 lt_prog_compiler_wl=''
15374 ;;
15375 *Sun\ F* | *Sun*Fortran*)
15376 lt_prog_compiler_pic='-KPIC'
15377 lt_prog_compiler_static='-Bstatic'
15378 lt_prog_compiler_wl='-Qoption ld '
15379 ;;
15380 *Sun\ C*)
15381 # Sun C 5.9
15382 lt_prog_compiler_pic='-KPIC'
15383 lt_prog_compiler_static='-Bstatic'
15384 lt_prog_compiler_wl='-Wl,'
15385 ;;
15386 *Intel*\ [CF]*Compiler*)
15387 lt_prog_compiler_wl='-Wl,'
15388 lt_prog_compiler_pic='-fPIC'
15389 lt_prog_compiler_static='-static'
15390 ;;
15391 *Portland\ Group*)
15392 lt_prog_compiler_wl='-Wl,'
15393 lt_prog_compiler_pic='-fpic'
15394 lt_prog_compiler_static='-Bstatic'
15395 ;;
15396 esac
15397 ;;
15398 esac
15399 ;;
15400
15401 newsos6)
15402 lt_prog_compiler_pic='-KPIC'
15403 lt_prog_compiler_static='-Bstatic'
15404 ;;
15405
15406 *nto* | *qnx*)
15407 # QNX uses GNU C++, but need to define -shared option too, otherwise
15408 # it will coredump.
15409 lt_prog_compiler_pic='-fPIC -shared'
15410 ;;
15411
15412 osf3* | osf4* | osf5*)
15413 lt_prog_compiler_wl='-Wl,'
15414 # All OSF/1 code is PIC.
15415 lt_prog_compiler_static='-non_shared'
15416 ;;
15417
15418 rdos*)
15419 lt_prog_compiler_static='-non_shared'
15420 ;;
15421
15422 solaris*)
15423 lt_prog_compiler_pic='-KPIC'
15424 lt_prog_compiler_static='-Bstatic'
15425 case $cc_basename in
15426 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15427 lt_prog_compiler_wl='-Qoption ld ';;
15428 *)
15429 lt_prog_compiler_wl='-Wl,';;
15430 esac
15431 ;;
15432
15433 sunos4*)
15434 lt_prog_compiler_wl='-Qoption ld '
15435 lt_prog_compiler_pic='-PIC'
15436 lt_prog_compiler_static='-Bstatic'
15437 ;;
15438
15439 sysv4 | sysv4.2uw2* | sysv4.3*)
15440 lt_prog_compiler_wl='-Wl,'
15441 lt_prog_compiler_pic='-KPIC'
15442 lt_prog_compiler_static='-Bstatic'
15443 ;;
15444
15445 sysv4*MP*)
15446 if test -d /usr/nec; then
15447 lt_prog_compiler_pic='-Kconform_pic'
15448 lt_prog_compiler_static='-Bstatic'
15449 fi
15450 ;;
15451
15452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15453 lt_prog_compiler_wl='-Wl,'
15454 lt_prog_compiler_pic='-KPIC'
15455 lt_prog_compiler_static='-Bstatic'
15456 ;;
15457
15458 unicos*)
15459 lt_prog_compiler_wl='-Wl,'
15460 lt_prog_compiler_can_build_shared=no
15461 ;;
15462
15463 uts4*)
15464 lt_prog_compiler_pic='-pic'
15465 lt_prog_compiler_static='-Bstatic'
15466 ;;
15467
15468 *)
15469 lt_prog_compiler_can_build_shared=no
15470 ;;
15471 esac
15472 fi
15473
15474 case $host_os in
15475 # For platforms that do not support PIC, -DPIC is meaningless:
15476 *djgpp*)
15477 lt_prog_compiler_pic=
15478 ;;
15479 *)
15480 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15481 ;;
15482 esac
15483
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15485 printf %s "checking for $compiler option to produce PIC... " >&6; }
15486 if test ${lt_cv_prog_compiler_pic+y}
15487 then :
15488 printf %s "(cached) " >&6
15489 else $as_nop
15490 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15491 fi
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15493 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15494 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15495
15496 #
15497 # Check to make sure the PIC flag actually works.
15498 #
15499 if test -n "$lt_prog_compiler_pic"; then
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15501 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15502 if test ${lt_cv_prog_compiler_pic_works+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else $as_nop
15506 lt_cv_prog_compiler_pic_works=no
15507 ac_outfile=conftest.$ac_objext
15508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15509 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15510 # Insert the option either (1) after the last *FLAGS variable, or
15511 # (2) before a word containing "conftest.", or (3) at the end.
15512 # Note that $ac_compile itself does not contain backslashes and begins
15513 # with a dollar sign (not a hyphen), so the echo should work correctly.
15514 # The option is referenced via a variable to avoid confusing sed.
15515 lt_compile=`echo "$ac_compile" | $SED \
15516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15518 -e 's:$: $lt_compiler_flag:'`
15519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15520 (eval "$lt_compile" 2>conftest.err)
15521 ac_status=$?
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 if (exit $ac_status) && test -s "$ac_outfile"; then
15525 # The compiler can only warn and ignore the option if not recognized
15526 # So say no if there are warnings other than the usual output.
15527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15530 lt_cv_prog_compiler_pic_works=yes
15531 fi
15532 fi
15533 $RM conftest*
15534
15535 fi
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15537 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15538
15539 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15540 case $lt_prog_compiler_pic in
15541 "" | " "*) ;;
15542 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15543 esac
15544 else
15545 lt_prog_compiler_pic=
15546 lt_prog_compiler_can_build_shared=no
15547 fi
15548
15549 fi
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561 #
15562 # Check to make sure the static flag actually works.
15563 #
15564 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15566 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15567 if test ${lt_cv_prog_compiler_static_works+y}
15568 then :
15569 printf %s "(cached) " >&6
15570 else $as_nop
15571 lt_cv_prog_compiler_static_works=no
15572 save_LDFLAGS=$LDFLAGS
15573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15574 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15576 # The linker can only warn and ignore the option if not recognized
15577 # So say no if there are warnings
15578 if test -s conftest.err; then
15579 # Append any errors to the config.log.
15580 cat conftest.err 1>&5
15581 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15583 if diff conftest.exp conftest.er2 >/dev/null; then
15584 lt_cv_prog_compiler_static_works=yes
15585 fi
15586 else
15587 lt_cv_prog_compiler_static_works=yes
15588 fi
15589 fi
15590 $RM -r conftest*
15591 LDFLAGS=$save_LDFLAGS
15592
15593 fi
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15595 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15596
15597 if test yes = "$lt_cv_prog_compiler_static_works"; then
15598 :
15599 else
15600 lt_prog_compiler_static=
15601 fi
15602
15603
15604
15605
15606
15607
15608
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15610 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15611 if test ${lt_cv_prog_compiler_c_o+y}
15612 then :
15613 printf %s "(cached) " >&6
15614 else $as_nop
15615 lt_cv_prog_compiler_c_o=no
15616 $RM -r conftest 2>/dev/null
15617 mkdir conftest
15618 cd conftest
15619 mkdir out
15620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15621
15622 lt_compiler_flag="-o out/conftest2.$ac_objext"
15623 # Insert the option either (1) after the last *FLAGS variable, or
15624 # (2) before a word containing "conftest.", or (3) at the end.
15625 # Note that $ac_compile itself does not contain backslashes and begins
15626 # with a dollar sign (not a hyphen), so the echo should work correctly.
15627 lt_compile=`echo "$ac_compile" | $SED \
15628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15630 -e 's:$: $lt_compiler_flag:'`
15631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15632 (eval "$lt_compile" 2>out/conftest.err)
15633 ac_status=$?
15634 cat out/conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15637 then
15638 # The compiler can only warn and ignore the option if not recognized
15639 # So say no if there are warnings
15640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15643 lt_cv_prog_compiler_c_o=yes
15644 fi
15645 fi
15646 chmod u+w . 2>&5
15647 $RM conftest*
15648 # SGI C++ compiler will create directory out/ii_files/ for
15649 # template instantiation
15650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15651 $RM out/* && rmdir out
15652 cd ..
15653 $RM -r conftest
15654 $RM conftest*
15655
15656 fi
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15658 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
15659
15660
15661
15662
15663
15664
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15666 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15667 if test ${lt_cv_prog_compiler_c_o+y}
15668 then :
15669 printf %s "(cached) " >&6
15670 else $as_nop
15671 lt_cv_prog_compiler_c_o=no
15672 $RM -r conftest 2>/dev/null
15673 mkdir conftest
15674 cd conftest
15675 mkdir out
15676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15677
15678 lt_compiler_flag="-o out/conftest2.$ac_objext"
15679 # Insert the option either (1) after the last *FLAGS variable, or
15680 # (2) before a word containing "conftest.", or (3) at the end.
15681 # Note that $ac_compile itself does not contain backslashes and begins
15682 # with a dollar sign (not a hyphen), so the echo should work correctly.
15683 lt_compile=`echo "$ac_compile" | $SED \
15684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15686 -e 's:$: $lt_compiler_flag:'`
15687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15688 (eval "$lt_compile" 2>out/conftest.err)
15689 ac_status=$?
15690 cat out/conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15693 then
15694 # The compiler can only warn and ignore the option if not recognized
15695 # So say no if there are warnings
15696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15699 lt_cv_prog_compiler_c_o=yes
15700 fi
15701 fi
15702 chmod u+w . 2>&5
15703 $RM conftest*
15704 # SGI C++ compiler will create directory out/ii_files/ for
15705 # template instantiation
15706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15707 $RM out/* && rmdir out
15708 cd ..
15709 $RM -r conftest
15710 $RM conftest*
15711
15712 fi
15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15714 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
15715
15716
15717
15718
15719 hard_links=nottested
15720 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15721 # do not overwrite the value of need_locks provided by the user
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15723 printf %s "checking if we can lock with hard links... " >&6; }
15724 hard_links=yes
15725 $RM conftest*
15726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15727 touch conftest.a
15728 ln conftest.a conftest.b 2>&5 || hard_links=no
15729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15731 printf "%s\n" "$hard_links" >&6; }
15732 if test no = "$hard_links"; then
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15734 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15735 need_locks=warn
15736 fi
15737 else
15738 need_locks=no
15739 fi
15740
15741
15742
15743
15744
15745
15746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15747 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15748
15749 runpath_var=
15750 allow_undefined_flag=
15751 always_export_symbols=no
15752 archive_cmds=
15753 archive_expsym_cmds=
15754 compiler_needs_object=no
15755 enable_shared_with_static_runtimes=no
15756 export_dynamic_flag_spec=
15757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15758 hardcode_automatic=no
15759 hardcode_direct=no
15760 hardcode_direct_absolute=no
15761 hardcode_libdir_flag_spec=
15762 hardcode_libdir_separator=
15763 hardcode_minus_L=no
15764 hardcode_shlibpath_var=unsupported
15765 inherit_rpath=no
15766 link_all_deplibs=unknown
15767 module_cmds=
15768 module_expsym_cmds=
15769 old_archive_from_new_cmds=
15770 old_archive_from_expsyms_cmds=
15771 thread_safe_flag_spec=
15772 whole_archive_flag_spec=
15773 # include_expsyms should be a list of space-separated symbols to be *always*
15774 # included in the symbol list
15775 include_expsyms=
15776 # exclude_expsyms can be an extended regexp of symbols to exclude
15777 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15778 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15779 # as well as any symbol that contains 'd'.
15780 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15781 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15782 # platforms (ab)use it in PIC code, but their linkers get confused if
15783 # the symbol is explicitly referenced. Since portable code cannot
15784 # rely on this symbol name, it's probably fine to never include it in
15785 # preloaded symbol tables.
15786 # Exclude shared library initialization/finalization symbols.
15787 extract_expsyms_cmds=
15788
15789 case $host_os in
15790 cygwin* | mingw* | pw32* | cegcc*)
15791 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
15792 # When not using gcc, we currently assume that we are using
15793 # Microsoft Visual C++ or Intel C++ Compiler.
15794 if test yes != "$GCC"; then
15795 with_gnu_ld=no
15796 fi
15797 ;;
15798 interix*)
15799 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
15800 with_gnu_ld=yes
15801 ;;
15802 openbsd* | bitrig*)
15803 with_gnu_ld=no
15804 ;;
15805 linux* | k*bsd*-gnu | gnu*)
15806 link_all_deplibs=no
15807 ;;
15808 esac
15809
15810 ld_shlibs=yes
15811
15812 # On some targets, GNU ld is compatible enough with the native linker
15813 # that we're better off using the native interface for both.
15814 lt_use_gnu_ld_interface=no
15815 if test yes = "$with_gnu_ld"; then
15816 case $host_os in
15817 aix*)
15818 # The AIX port of GNU ld has always aspired to compatibility
15819 # with the native linker. However, as the warning in the GNU ld
15820 # block says, versions before 2.19.5* couldn't really create working
15821 # shared libraries, regardless of the interface used.
15822 case `$LD -v 2>&1` in
15823 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15824 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15825 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15826 *)
15827 lt_use_gnu_ld_interface=yes
15828 ;;
15829 esac
15830 ;;
15831 *)
15832 lt_use_gnu_ld_interface=yes
15833 ;;
15834 esac
15835 fi
15836
15837 if test yes = "$lt_use_gnu_ld_interface"; then
15838 # If archive_cmds runs LD, not CC, wlarc should be empty
15839 wlarc='$wl'
15840
15841 # Set some defaults for GNU ld with shared library support. These
15842 # are reset later if shared libraries are not supported. Putting them
15843 # here allows them to be overridden if necessary.
15844 runpath_var=LD_RUN_PATH
15845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15846 export_dynamic_flag_spec='$wl--export-dynamic'
15847 # ancient GNU ld didn't support --whole-archive et. al.
15848 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15849 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15850 else
15851 whole_archive_flag_spec=
15852 fi
15853 supports_anon_versioning=no
15854 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
15855 *GNU\ gold*) supports_anon_versioning=yes ;;
15856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15859 *\ 2.11.*) ;; # other 2.11 versions
15860 *) supports_anon_versioning=yes ;;
15861 esac
15862
15863 # See if GNU ld supports shared libraries.
15864 case $host_os in
15865 aix[3-9]*)
15866 # On AIX/PPC, the GNU linker is very broken
15867 if test ia64 != "$host_cpu"; then
15868 ld_shlibs=no
15869 cat <<_LT_EOF 1>&2
15870
15871 *** Warning: the GNU linker, at least up to release 2.19, is reported
15872 *** to be unable to reliably create shared libraries on AIX.
15873 *** Therefore, libtool is disabling shared libraries support. If you
15874 *** really care for shared libraries, you may want to install binutils
15875 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15876 *** You will then need to restart the configuration process.
15877
15878 _LT_EOF
15879 fi
15880 ;;
15881
15882 amigaos*)
15883 case $host_cpu in
15884 powerpc)
15885 # see comment about AmigaOS4 .so support
15886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15887 archive_expsym_cmds=''
15888 ;;
15889 m68k)
15890 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)'
15891 hardcode_libdir_flag_spec='-L$libdir'
15892 hardcode_minus_L=yes
15893 ;;
15894 esac
15895 ;;
15896
15897 beos*)
15898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15899 allow_undefined_flag=unsupported
15900 # Joseph Beckenbach <[email protected]> says some releases of gcc
15901 # support --undefined. This deserves some investigation. FIXME
15902 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15903 else
15904 ld_shlibs=no
15905 fi
15906 ;;
15907
15908 cygwin* | mingw* | pw32* | cegcc*)
15909 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15910 # as there is no search path for DLLs.
15911 hardcode_libdir_flag_spec='-L$libdir'
15912 export_dynamic_flag_spec='$wl--export-all-symbols'
15913 allow_undefined_flag=unsupported
15914 always_export_symbols=no
15915 enable_shared_with_static_runtimes=yes
15916 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'
15917 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15918
15919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15921 # If the export-symbols file already is a .def file, use it as
15922 # is; otherwise, prepend EXPORTS...
15923 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15924 cp $export_symbols $output_objdir/$soname.def;
15925 else
15926 echo EXPORTS > $output_objdir/$soname.def;
15927 cat $export_symbols >> $output_objdir/$soname.def;
15928 fi~
15929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15930 else
15931 ld_shlibs=no
15932 fi
15933 ;;
15934
15935 haiku*)
15936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15937 link_all_deplibs=yes
15938 ;;
15939
15940 os2*)
15941 hardcode_libdir_flag_spec='-L$libdir'
15942 hardcode_minus_L=yes
15943 allow_undefined_flag=unsupported
15944 shrext_cmds=.dll
15945 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15946 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15947 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15948 $ECHO EXPORTS >> $output_objdir/$libname.def~
15949 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15950 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15951 emximp -o $lib $output_objdir/$libname.def'
15952 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15953 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15954 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15955 $ECHO EXPORTS >> $output_objdir/$libname.def~
15956 prefix_cmds="$SED"~
15957 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15958 prefix_cmds="$prefix_cmds -e 1d";
15959 fi~
15960 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15961 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15962 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15963 emximp -o $lib $output_objdir/$libname.def'
15964 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15965 enable_shared_with_static_runtimes=yes
15966 file_list_spec='@'
15967 ;;
15968
15969 interix[3-9]*)
15970 hardcode_direct=no
15971 hardcode_shlibpath_var=no
15972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15973 export_dynamic_flag_spec='$wl-E'
15974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15975 # Instead, shared libraries are loaded at an image base (0x10000000 by
15976 # default) and relocated if they conflict, which is a slow very memory
15977 # consuming and fragmenting process. To avoid this, we pick a random,
15978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15981 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'
15982 ;;
15983
15984 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15985 tmp_diet=no
15986 if test linux-dietlibc = "$host_os"; then
15987 case $cc_basename in
15988 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15989 esac
15990 fi
15991 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15992 && test no = "$tmp_diet"
15993 then
15994 tmp_addflag=' $pic_flag'
15995 tmp_sharedflag='-shared'
15996 case $cc_basename,$host_cpu in
15997 pgcc*) # Portland Group C compiler
15998 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'
15999 tmp_addflag=' $pic_flag'
16000 ;;
16001 pgf77* | pgf90* | pgf95* | pgfortran*)
16002 # Portland Group f77 and f90 compilers
16003 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'
16004 tmp_addflag=' $pic_flag -Mnomain' ;;
16005 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16006 tmp_addflag=' -i_dynamic' ;;
16007 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16008 tmp_addflag=' -i_dynamic -nofor_main' ;;
16009 ifc* | ifort*) # Intel Fortran compiler
16010 tmp_addflag=' -nofor_main' ;;
16011 lf95*) # Lahey Fortran 8.1
16012 whole_archive_flag_spec=
16013 tmp_sharedflag='--shared' ;;
16014 nagfor*) # NAGFOR 5.3
16015 tmp_sharedflag='-Wl,-shared' ;;
16016 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16017 tmp_sharedflag='-qmkshrobj'
16018 tmp_addflag= ;;
16019 nvcc*) # Cuda Compiler Driver 2.2
16020 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'
16021 compiler_needs_object=yes
16022 ;;
16023 esac
16024 case `$CC -V 2>&1 | $SED 5q` in
16025 *Sun\ C*) # Sun C 5.9
16026 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'
16027 compiler_needs_object=yes
16028 tmp_sharedflag='-G' ;;
16029 *Sun\ F*) # Sun Fortran 8.3
16030 tmp_sharedflag='-G' ;;
16031 esac
16032 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16033
16034 if test yes = "$supports_anon_versioning"; then
16035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16036 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16037 echo "local: *; };" >> $output_objdir/$libname.ver~
16038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16039 fi
16040
16041 case $cc_basename in
16042 tcc*)
16043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16044 export_dynamic_flag_spec='-rdynamic'
16045 ;;
16046 xlf* | bgf* | bgxlf* | mpixlf*)
16047 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16048 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16050 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16051 if test yes = "$supports_anon_versioning"; then
16052 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16053 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16054 echo "local: *; };" >> $output_objdir/$libname.ver~
16055 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16056 fi
16057 ;;
16058 esac
16059 else
16060 ld_shlibs=no
16061 fi
16062 ;;
16063
16064 netbsd* | netbsdelf*-gnu)
16065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16066 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16067 wlarc=
16068 else
16069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16071 fi
16072 ;;
16073
16074 solaris*)
16075 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16076 ld_shlibs=no
16077 cat <<_LT_EOF 1>&2
16078
16079 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16080 *** create shared libraries on Solaris systems. Therefore, libtool
16081 *** is disabling shared libraries support. We urge you to upgrade GNU
16082 *** binutils to release 2.9.1 or newer. Another option is to modify
16083 *** your PATH or compiler configuration so that the native linker is
16084 *** used, and then restart.
16085
16086 _LT_EOF
16087 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16089 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16090 else
16091 ld_shlibs=no
16092 fi
16093 ;;
16094
16095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16096 case `$LD -v 2>&1` in
16097 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16098 ld_shlibs=no
16099 cat <<_LT_EOF 1>&2
16100
16101 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16102 *** reliably create shared libraries on SCO systems. Therefore, libtool
16103 *** is disabling shared libraries support. We urge you to upgrade GNU
16104 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16105 *** your PATH or compiler configuration so that the native linker is
16106 *** used, and then restart.
16107
16108 _LT_EOF
16109 ;;
16110 *)
16111 # For security reasons, it is highly recommended that you always
16112 # use absolute paths for naming shared libraries, and exclude the
16113 # DT_RUNPATH tag from executables and libraries. But doing so
16114 # requires that you compile everything twice, which is a pain.
16115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16119 else
16120 ld_shlibs=no
16121 fi
16122 ;;
16123 esac
16124 ;;
16125
16126 sunos4*)
16127 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16128 wlarc=
16129 hardcode_direct=yes
16130 hardcode_shlibpath_var=no
16131 ;;
16132
16133 *)
16134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16136 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16137 else
16138 ld_shlibs=no
16139 fi
16140 ;;
16141 esac
16142
16143 if test no = "$ld_shlibs"; then
16144 runpath_var=
16145 hardcode_libdir_flag_spec=
16146 export_dynamic_flag_spec=
16147 whole_archive_flag_spec=
16148 fi
16149 else
16150 # PORTME fill in a description of your system's linker (not GNU ld)
16151 case $host_os in
16152 aix3*)
16153 allow_undefined_flag=unsupported
16154 always_export_symbols=yes
16155 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'
16156 # Note: this linker hardcodes the directories in LIBPATH if there
16157 # are no directories specified by -L.
16158 hardcode_minus_L=yes
16159 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16160 # Neither direct hardcoding nor static linking is supported with a
16161 # broken collect2.
16162 hardcode_direct=unsupported
16163 fi
16164 ;;
16165
16166 aix[4-9]*)
16167 if test ia64 = "$host_cpu"; then
16168 # On IA64, the linker does run time linking by default, so we don't
16169 # have to do anything special.
16170 aix_use_runtimelinking=no
16171 exp_sym_flag='-Bexport'
16172 no_entry_flag=
16173 else
16174 # If we're using GNU nm, then we don't want the "-C" option.
16175 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16176 # Without the "-l" option, or with the "-B" option, AIX nm treats
16177 # weak defined symbols like other global defined symbols, whereas
16178 # GNU nm marks them as "W".
16179 # While the 'weak' keyword is ignored in the Export File, we need
16180 # it in the Import File for the 'aix-soname' feature, so we have
16181 # to replace the "-B" option with "-P" for AIX nm.
16182 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16183 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'
16184 else
16185 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'
16186 fi
16187 aix_use_runtimelinking=no
16188
16189 # Test if we are trying to use run time linking or normal
16190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16191 # have runtime linking enabled, and use it for executables.
16192 # For shared libraries, we enable/disable runtime linking
16193 # depending on the kind of the shared library created -
16194 # when "with_aix_soname,aix_use_runtimelinking" is:
16195 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16196 # "aix,yes" lib.so shared, rtl:yes, for executables
16197 # lib.a static archive
16198 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16199 # lib.a(lib.so.V) shared, rtl:no, for executables
16200 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16201 # lib.a(lib.so.V) shared, rtl:no
16202 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16203 # lib.a static archive
16204 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16205 for ld_flag in $LDFLAGS; do
16206 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16207 aix_use_runtimelinking=yes
16208 break
16209 fi
16210 done
16211 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16212 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16213 # so we don't have lib.a shared libs to link our executables.
16214 # We have to force runtime linking in this case.
16215 aix_use_runtimelinking=yes
16216 LDFLAGS="$LDFLAGS -Wl,-brtl"
16217 fi
16218 ;;
16219 esac
16220
16221 exp_sym_flag='-bexport'
16222 no_entry_flag='-bnoentry'
16223 fi
16224
16225 # When large executables or shared objects are built, AIX ld can
16226 # have problems creating the table of contents. If linking a library
16227 # or program results in "error TOC overflow" add -mminimal-toc to
16228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16230
16231 archive_cmds=''
16232 hardcode_direct=yes
16233 hardcode_direct_absolute=yes
16234 hardcode_libdir_separator=':'
16235 link_all_deplibs=yes
16236 file_list_spec='$wl-f,'
16237 case $with_aix_soname,$aix_use_runtimelinking in
16238 aix,*) ;; # traditional, no import file
16239 svr4,* | *,yes) # use import file
16240 # The Import File defines what to hardcode.
16241 hardcode_direct=no
16242 hardcode_direct_absolute=no
16243 ;;
16244 esac
16245
16246 if test yes = "$GCC"; then
16247 case $host_os in aix4.[012]|aix4.[012].*)
16248 # We only want to do this on AIX 4.2 and lower, the check
16249 # below for broken collect2 doesn't work under 4.3+
16250 collect2name=`$CC -print-prog-name=collect2`
16251 if test -f "$collect2name" &&
16252 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16253 then
16254 # We have reworked collect2
16255 :
16256 else
16257 # We have old collect2
16258 hardcode_direct=unsupported
16259 # It fails to find uninstalled libraries when the uninstalled
16260 # path is not listed in the libpath. Setting hardcode_minus_L
16261 # to unsupported forces relinking
16262 hardcode_minus_L=yes
16263 hardcode_libdir_flag_spec='-L$libdir'
16264 hardcode_libdir_separator=
16265 fi
16266 ;;
16267 esac
16268 shared_flag='-shared'
16269 if test yes = "$aix_use_runtimelinking"; then
16270 shared_flag="$shared_flag "'$wl-G'
16271 fi
16272 # Need to ensure runtime linking is disabled for the traditional
16273 # shared library, or the linker may eventually find shared libraries
16274 # /with/ Import File - we do not want to mix them.
16275 shared_flag_aix='-shared'
16276 shared_flag_svr4='-shared $wl-G'
16277 else
16278 # not using gcc
16279 if test ia64 = "$host_cpu"; then
16280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16281 # chokes on -Wl,-G. The following line is correct:
16282 shared_flag='-G'
16283 else
16284 if test yes = "$aix_use_runtimelinking"; then
16285 shared_flag='$wl-G'
16286 else
16287 shared_flag='$wl-bM:SRE'
16288 fi
16289 shared_flag_aix='$wl-bM:SRE'
16290 shared_flag_svr4='$wl-G'
16291 fi
16292 fi
16293
16294 export_dynamic_flag_spec='$wl-bexpall'
16295 # It seems that -bexpall does not export symbols beginning with
16296 # underscore (_), so it is better to generate a list of symbols to export.
16297 always_export_symbols=yes
16298 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16299 # Warning - without using the other runtime loading flags (-brtl),
16300 # -berok will link without error, but may produce a broken library.
16301 allow_undefined_flag='-berok'
16302 # Determine the default libpath from the value encoded in an
16303 # empty executable.
16304 if test set = "${lt_cv_aix_libpath+set}"; then
16305 aix_libpath=$lt_cv_aix_libpath
16306 else
16307 if test ${lt_cv_aix_libpath_+y}
16308 then :
16309 printf %s "(cached) " >&6
16310 else $as_nop
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313
16314 int
16315 main (void)
16316 {
16317
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 if ac_fn_c_try_link "$LINENO"
16323 then :
16324
16325 lt_aix_libpath_sed='
16326 /Import File Strings/,/^$/ {
16327 /^0/ {
16328 s/^0 *\([^ ]*\) *$/\1/
16329 p
16330 }
16331 }'
16332 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16333 # Check for a 64-bit object if we didn't find anything.
16334 if test -z "$lt_cv_aix_libpath_"; then
16335 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16336 fi
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16339 conftest$ac_exeext conftest.$ac_ext
16340 if test -z "$lt_cv_aix_libpath_"; then
16341 lt_cv_aix_libpath_=/usr/lib:/lib
16342 fi
16343
16344 fi
16345
16346 aix_libpath=$lt_cv_aix_libpath_
16347 fi
16348
16349 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16350 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
16351 else
16352 if test ia64 = "$host_cpu"; then
16353 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16354 allow_undefined_flag="-z nodefs"
16355 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"
16356 else
16357 # Determine the default libpath from the value encoded in an
16358 # empty executable.
16359 if test set = "${lt_cv_aix_libpath+set}"; then
16360 aix_libpath=$lt_cv_aix_libpath
16361 else
16362 if test ${lt_cv_aix_libpath_+y}
16363 then :
16364 printf %s "(cached) " >&6
16365 else $as_nop
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368
16369 int
16370 main (void)
16371 {
16372
16373 ;
16374 return 0;
16375 }
16376 _ACEOF
16377 if ac_fn_c_try_link "$LINENO"
16378 then :
16379
16380 lt_aix_libpath_sed='
16381 /Import File Strings/,/^$/ {
16382 /^0/ {
16383 s/^0 *\([^ ]*\) *$/\1/
16384 p
16385 }
16386 }'
16387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16388 # Check for a 64-bit object if we didn't find anything.
16389 if test -z "$lt_cv_aix_libpath_"; then
16390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16391 fi
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16394 conftest$ac_exeext conftest.$ac_ext
16395 if test -z "$lt_cv_aix_libpath_"; then
16396 lt_cv_aix_libpath_=/usr/lib:/lib
16397 fi
16398
16399 fi
16400
16401 aix_libpath=$lt_cv_aix_libpath_
16402 fi
16403
16404 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16405 # Warning - without using the other run time loading flags,
16406 # -berok will link without error, but may produce a broken library.
16407 no_undefined_flag=' $wl-bernotok'
16408 allow_undefined_flag=' $wl-berok'
16409 if test yes = "$with_gnu_ld"; then
16410 # We only use this code for GNU lds that support --whole-archive.
16411 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16412 else
16413 # Exported symbols can be pulled into shared objects from archives
16414 whole_archive_flag_spec='$convenience'
16415 fi
16416 archive_cmds_need_lc=yes
16417 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16418 # -brtl affects multiple linker settings, -berok does not and is overridden later
16419 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16420 if test svr4 != "$with_aix_soname"; then
16421 # This is similar to how AIX traditionally builds its shared libraries.
16422 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'
16423 fi
16424 if test aix != "$with_aix_soname"; then
16425 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'
16426 else
16427 # used by -dlpreopen to get the symbols
16428 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16429 fi
16430 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16431 fi
16432 fi
16433 ;;
16434
16435 amigaos*)
16436 case $host_cpu in
16437 powerpc)
16438 # see comment about AmigaOS4 .so support
16439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16440 archive_expsym_cmds=''
16441 ;;
16442 m68k)
16443 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)'
16444 hardcode_libdir_flag_spec='-L$libdir'
16445 hardcode_minus_L=yes
16446 ;;
16447 esac
16448 ;;
16449
16450 bsdi[45]*)
16451 export_dynamic_flag_spec=-rdynamic
16452 ;;
16453
16454 cygwin* | mingw* | pw32* | cegcc*)
16455 # When not using gcc, we currently assume that we are using
16456 # Microsoft Visual C++ or Intel C++ Compiler.
16457 # hardcode_libdir_flag_spec is actually meaningless, as there is
16458 # no search path for DLLs.
16459 case $cc_basename in
16460 cl* | icl*)
16461 # Native MSVC or ICC
16462 hardcode_libdir_flag_spec=' '
16463 allow_undefined_flag=unsupported
16464 always_export_symbols=yes
16465 file_list_spec='@'
16466 # Tell ltmain to make .lib files, not .a files.
16467 libext=lib
16468 # Tell ltmain to make .dll files, not .so files.
16469 shrext_cmds=.dll
16470 # FIXME: Setting linknames here is a bad hack.
16471 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16472 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16473 cp "$export_symbols" "$output_objdir/$soname.def";
16474 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16475 else
16476 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16477 fi~
16478 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16479 linknames='
16480 # The linker will not automatically build a static lib if we build a DLL.
16481 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16482 enable_shared_with_static_runtimes=yes
16483 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16485 # Don't use ranlib
16486 old_postinstall_cmds='chmod 644 $oldlib'
16487 postlink_cmds='lt_outputfile="@OUTPUT@"~
16488 lt_tool_outputfile="@TOOL_OUTPUT@"~
16489 case $lt_outputfile in
16490 *.exe|*.EXE) ;;
16491 *)
16492 lt_outputfile=$lt_outputfile.exe
16493 lt_tool_outputfile=$lt_tool_outputfile.exe
16494 ;;
16495 esac~
16496 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16497 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16498 $RM "$lt_outputfile.manifest";
16499 fi'
16500 ;;
16501 *)
16502 # Assume MSVC and ICC wrapper
16503 hardcode_libdir_flag_spec=' '
16504 allow_undefined_flag=unsupported
16505 # Tell ltmain to make .lib files, not .a files.
16506 libext=lib
16507 # Tell ltmain to make .dll files, not .so files.
16508 shrext_cmds=.dll
16509 # FIXME: Setting linknames here is a bad hack.
16510 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16511 # The linker will automatically build a .lib file if we build a DLL.
16512 old_archive_from_new_cmds='true'
16513 # FIXME: Should let the user specify the lib program.
16514 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16515 enable_shared_with_static_runtimes=yes
16516 ;;
16517 esac
16518 ;;
16519
16520 darwin* | rhapsody*)
16521
16522
16523 archive_cmds_need_lc=no
16524 hardcode_direct=no
16525 hardcode_automatic=yes
16526 hardcode_shlibpath_var=unsupported
16527 if test yes = "$lt_cv_ld_force_load"; then
16528 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\"`'
16529
16530 else
16531 whole_archive_flag_spec=''
16532 fi
16533 link_all_deplibs=yes
16534 allow_undefined_flag=$_lt_dar_allow_undefined
16535 case $cc_basename in
16536 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16537 *) _lt_dar_can_shared=$GCC ;;
16538 esac
16539 if test yes = "$_lt_dar_can_shared"; then
16540 output_verbose_link_cmd=func_echo_all
16541 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16542 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16543 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"
16544 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"
16545
16546 else
16547 ld_shlibs=no
16548 fi
16549
16550 ;;
16551
16552 dgux*)
16553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554 hardcode_libdir_flag_spec='-L$libdir'
16555 hardcode_shlibpath_var=no
16556 ;;
16557
16558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16559 # support. Future versions do this automatically, but an explicit c++rt0.o
16560 # does not break anything, and helps significantly (at the cost of a little
16561 # extra space).
16562 freebsd2.2*)
16563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16564 hardcode_libdir_flag_spec='-R$libdir'
16565 hardcode_direct=yes
16566 hardcode_shlibpath_var=no
16567 ;;
16568
16569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16570 freebsd2.*)
16571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16572 hardcode_direct=yes
16573 hardcode_minus_L=yes
16574 hardcode_shlibpath_var=no
16575 ;;
16576
16577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16578 freebsd* | dragonfly* | midnightbsd*)
16579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16580 hardcode_libdir_flag_spec='-R$libdir'
16581 hardcode_direct=yes
16582 hardcode_shlibpath_var=no
16583 ;;
16584
16585 hpux9*)
16586 if test yes = "$GCC"; then
16587 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'
16588 else
16589 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'
16590 fi
16591 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16592 hardcode_libdir_separator=:
16593 hardcode_direct=yes
16594
16595 # hardcode_minus_L: Not really in the search PATH,
16596 # but as the default location of the library.
16597 hardcode_minus_L=yes
16598 export_dynamic_flag_spec='$wl-E'
16599 ;;
16600
16601 hpux10*)
16602 if test yes,no = "$GCC,$with_gnu_ld"; then
16603 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16604 else
16605 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16606 fi
16607 if test no = "$with_gnu_ld"; then
16608 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16609 hardcode_libdir_separator=:
16610 hardcode_direct=yes
16611 hardcode_direct_absolute=yes
16612 export_dynamic_flag_spec='$wl-E'
16613 # hardcode_minus_L: Not really in the search PATH,
16614 # but as the default location of the library.
16615 hardcode_minus_L=yes
16616 fi
16617 ;;
16618
16619 hpux11*)
16620 if test yes,no = "$GCC,$with_gnu_ld"; then
16621 case $host_cpu in
16622 hppa*64*)
16623 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16624 ;;
16625 ia64*)
16626 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16627 ;;
16628 *)
16629 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16630 ;;
16631 esac
16632 else
16633 case $host_cpu in
16634 hppa*64*)
16635 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 ;;
16637 ia64*)
16638 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16639 ;;
16640 *)
16641
16642 # Older versions of the 11.00 compiler do not understand -b yet
16643 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16645 printf %s "checking if $CC understands -b... " >&6; }
16646 if test ${lt_cv_prog_compiler__b+y}
16647 then :
16648 printf %s "(cached) " >&6
16649 else $as_nop
16650 lt_cv_prog_compiler__b=no
16651 save_LDFLAGS=$LDFLAGS
16652 LDFLAGS="$LDFLAGS -b"
16653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16655 # The linker can only warn and ignore the option if not recognized
16656 # So say no if there are warnings
16657 if test -s conftest.err; then
16658 # Append any errors to the config.log.
16659 cat conftest.err 1>&5
16660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16662 if diff conftest.exp conftest.er2 >/dev/null; then
16663 lt_cv_prog_compiler__b=yes
16664 fi
16665 else
16666 lt_cv_prog_compiler__b=yes
16667 fi
16668 fi
16669 $RM -r conftest*
16670 LDFLAGS=$save_LDFLAGS
16671
16672 fi
16673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16674 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
16675
16676 if test yes = "$lt_cv_prog_compiler__b"; then
16677 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16678 else
16679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16680 fi
16681
16682 ;;
16683 esac
16684 fi
16685 if test no = "$with_gnu_ld"; then
16686 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16687 hardcode_libdir_separator=:
16688
16689 case $host_cpu in
16690 hppa*64*|ia64*)
16691 hardcode_direct=no
16692 hardcode_shlibpath_var=no
16693 ;;
16694 *)
16695 hardcode_direct=yes
16696 hardcode_direct_absolute=yes
16697 export_dynamic_flag_spec='$wl-E'
16698
16699 # hardcode_minus_L: Not really in the search PATH,
16700 # but as the default location of the library.
16701 hardcode_minus_L=yes
16702 ;;
16703 esac
16704 fi
16705 ;;
16706
16707 irix5* | irix6* | nonstopux*)
16708 if test yes = "$GCC"; then
16709 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'
16710 # Try to use the -exported_symbol ld option, if it does not
16711 # work, assume that -exports_file does not work either and
16712 # implicitly export all symbols.
16713 # This should be the same for all languages, so no per-tag cache variable.
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16715 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16716 if test ${lt_cv_irix_exported_symbol+y}
16717 then :
16718 printf %s "(cached) " >&6
16719 else $as_nop
16720 save_LDFLAGS=$LDFLAGS
16721 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16724 int foo (void) { return 0; }
16725 _ACEOF
16726 if ac_fn_c_try_link "$LINENO"
16727 then :
16728 lt_cv_irix_exported_symbol=yes
16729 else $as_nop
16730 lt_cv_irix_exported_symbol=no
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16733 conftest$ac_exeext conftest.$ac_ext
16734 LDFLAGS=$save_LDFLAGS
16735 fi
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16737 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
16738 if test yes = "$lt_cv_irix_exported_symbol"; then
16739 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'
16740 fi
16741 link_all_deplibs=no
16742 else
16743 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'
16744 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'
16745 fi
16746 archive_cmds_need_lc='no'
16747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16748 hardcode_libdir_separator=:
16749 inherit_rpath=yes
16750 link_all_deplibs=yes
16751 ;;
16752
16753 linux*)
16754 case $cc_basename in
16755 tcc*)
16756 # Fabrice Bellard et al's Tiny C Compiler
16757 ld_shlibs=yes
16758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16759 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16760 ;;
16761 esac
16762 ;;
16763
16764 netbsd* | netbsdelf*-gnu)
16765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16767 else
16768 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16769 fi
16770 hardcode_libdir_flag_spec='-R$libdir'
16771 hardcode_direct=yes
16772 hardcode_shlibpath_var=no
16773 ;;
16774
16775 newsos6)
16776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_direct=yes
16778 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16779 hardcode_libdir_separator=:
16780 hardcode_shlibpath_var=no
16781 ;;
16782
16783 *nto* | *qnx*)
16784 ;;
16785
16786 openbsd* | bitrig*)
16787 if test -f /usr/libexec/ld.so; then
16788 hardcode_direct=yes
16789 hardcode_shlibpath_var=no
16790 hardcode_direct_absolute=yes
16791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16794 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16795 export_dynamic_flag_spec='$wl-E'
16796 else
16797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16798 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16799 fi
16800 else
16801 ld_shlibs=no
16802 fi
16803 ;;
16804
16805 os2*)
16806 hardcode_libdir_flag_spec='-L$libdir'
16807 hardcode_minus_L=yes
16808 allow_undefined_flag=unsupported
16809 shrext_cmds=.dll
16810 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16811 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16812 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16813 $ECHO EXPORTS >> $output_objdir/$libname.def~
16814 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16815 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16816 emximp -o $lib $output_objdir/$libname.def'
16817 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16818 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16819 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16820 $ECHO EXPORTS >> $output_objdir/$libname.def~
16821 prefix_cmds="$SED"~
16822 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16823 prefix_cmds="$prefix_cmds -e 1d";
16824 fi~
16825 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16826 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16827 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16828 emximp -o $lib $output_objdir/$libname.def'
16829 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16830 enable_shared_with_static_runtimes=yes
16831 file_list_spec='@'
16832 ;;
16833
16834 osf3*)
16835 if test yes = "$GCC"; then
16836 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16837 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'
16838 else
16839 allow_undefined_flag=' -expect_unresolved \*'
16840 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'
16841 fi
16842 archive_cmds_need_lc='no'
16843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16844 hardcode_libdir_separator=:
16845 ;;
16846
16847 osf4* | osf5*) # as osf3* with the addition of -msym flag
16848 if test yes = "$GCC"; then
16849 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16850 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'
16851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16852 else
16853 allow_undefined_flag=' -expect_unresolved \*'
16854 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'
16855 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~
16856 $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'
16857
16858 # Both c and cxx compiler support -rpath directly
16859 hardcode_libdir_flag_spec='-rpath $libdir'
16860 fi
16861 archive_cmds_need_lc='no'
16862 hardcode_libdir_separator=:
16863 ;;
16864
16865 solaris*)
16866 no_undefined_flag=' -z defs'
16867 if test yes = "$GCC"; then
16868 wlarc='$wl'
16869 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16871 $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'
16872 else
16873 case `$CC -V 2>&1` in
16874 *"Compilers 5.0"*)
16875 wlarc=''
16876 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16878 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16879 ;;
16880 *)
16881 wlarc='$wl'
16882 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16884 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16885 ;;
16886 esac
16887 fi
16888 hardcode_libdir_flag_spec='-R$libdir'
16889 hardcode_shlibpath_var=no
16890 case $host_os in
16891 solaris2.[0-5] | solaris2.[0-5].*) ;;
16892 *)
16893 # The compiler driver will combine and reorder linker options,
16894 # but understands '-z linker_flag'. GCC discards it without '$wl',
16895 # but is careful enough not to reorder.
16896 # Supported since Solaris 2.6 (maybe 2.5.1?)
16897 if test yes = "$GCC"; then
16898 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16899 else
16900 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16901 fi
16902 ;;
16903 esac
16904 link_all_deplibs=yes
16905 ;;
16906
16907 sunos4*)
16908 if test sequent = "$host_vendor"; then
16909 # Use $CC to link under sequent, because it throws in some extra .o
16910 # files that make .init and .fini sections work.
16911 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16912 else
16913 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16914 fi
16915 hardcode_libdir_flag_spec='-L$libdir'
16916 hardcode_direct=yes
16917 hardcode_minus_L=yes
16918 hardcode_shlibpath_var=no
16919 ;;
16920
16921 sysv4)
16922 case $host_vendor in
16923 sni)
16924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16925 hardcode_direct=yes # is this really true???
16926 ;;
16927 siemens)
16928 ## LD is ld it makes a PLAMLIB
16929 ## CC just makes a GrossModule.
16930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16931 reload_cmds='$CC -r -o $output$reload_objs'
16932 hardcode_direct=no
16933 ;;
16934 motorola)
16935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16937 ;;
16938 esac
16939 runpath_var='LD_RUN_PATH'
16940 hardcode_shlibpath_var=no
16941 ;;
16942
16943 sysv4.3*)
16944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16945 hardcode_shlibpath_var=no
16946 export_dynamic_flag_spec='-Bexport'
16947 ;;
16948
16949 sysv4*MP*)
16950 if test -d /usr/nec; then
16951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16952 hardcode_shlibpath_var=no
16953 runpath_var=LD_RUN_PATH
16954 hardcode_runpath_var=yes
16955 ld_shlibs=yes
16956 fi
16957 ;;
16958
16959 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16960 no_undefined_flag='$wl-z,text'
16961 archive_cmds_need_lc=no
16962 hardcode_shlibpath_var=no
16963 runpath_var='LD_RUN_PATH'
16964
16965 if test yes = "$GCC"; then
16966 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16967 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16968 else
16969 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16970 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16971 fi
16972 ;;
16973
16974 sysv5* | sco3.2v5* | sco5v6*)
16975 # Note: We CANNOT use -z defs as we might desire, because we do not
16976 # link with -lc, and that would cause any symbols used from libc to
16977 # always be unresolved, which means just about no library would
16978 # ever link correctly. If we're not using GNU ld we use -z text
16979 # though, which does catch some bad symbols but isn't as heavy-handed
16980 # as -z defs.
16981 no_undefined_flag='$wl-z,text'
16982 allow_undefined_flag='$wl-z,nodefs'
16983 archive_cmds_need_lc=no
16984 hardcode_shlibpath_var=no
16985 hardcode_libdir_flag_spec='$wl-R,$libdir'
16986 hardcode_libdir_separator=':'
16987 link_all_deplibs=yes
16988 export_dynamic_flag_spec='$wl-Bexport'
16989 runpath_var='LD_RUN_PATH'
16990
16991 if test yes = "$GCC"; then
16992 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16994 else
16995 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16996 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16997 fi
16998 ;;
16999
17000 uts4*)
17001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002 hardcode_libdir_flag_spec='-L$libdir'
17003 hardcode_shlibpath_var=no
17004 ;;
17005
17006 *)
17007 ld_shlibs=no
17008 ;;
17009 esac
17010
17011 if test sni = "$host_vendor"; then
17012 case $host in
17013 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17014 export_dynamic_flag_spec='$wl-Blargedynsym'
17015 ;;
17016 esac
17017 fi
17018 fi
17019
17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17021 printf "%s\n" "$ld_shlibs" >&6; }
17022 test no = "$ld_shlibs" && can_build_shared=no
17023
17024 with_gnu_ld=$with_gnu_ld
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040 #
17041 # Do we need to explicitly link libc?
17042 #
17043 case "x$archive_cmds_need_lc" in
17044 x|xyes)
17045 # Assume -lc should be added
17046 archive_cmds_need_lc=yes
17047
17048 if test yes,yes = "$GCC,$enable_shared"; then
17049 case $archive_cmds in
17050 *'~'*)
17051 # FIXME: we may have to deal with multi-command sequences.
17052 ;;
17053 '$CC '*)
17054 # Test whether the compiler implicitly links with -lc since on some
17055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17056 # to ld, don't add -lc before -lgcc.
17057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17058 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17059 if test ${lt_cv_archive_cmds_need_lc+y}
17060 then :
17061 printf %s "(cached) " >&6
17062 else $as_nop
17063 $RM conftest*
17064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17065
17066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17067 (eval $ac_compile) 2>&5
17068 ac_status=$?
17069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17070 test $ac_status = 0; } 2>conftest.err; then
17071 soname=conftest
17072 lib=conftest
17073 libobjs=conftest.$ac_objext
17074 deplibs=
17075 wl=$lt_prog_compiler_wl
17076 pic_flag=$lt_prog_compiler_pic
17077 compiler_flags=-v
17078 linker_flags=-v
17079 verstring=
17080 output_objdir=.
17081 libname=conftest
17082 lt_save_allow_undefined_flag=$allow_undefined_flag
17083 allow_undefined_flag=
17084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17085 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17086 ac_status=$?
17087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17088 test $ac_status = 0; }
17089 then
17090 lt_cv_archive_cmds_need_lc=no
17091 else
17092 lt_cv_archive_cmds_need_lc=yes
17093 fi
17094 allow_undefined_flag=$lt_save_allow_undefined_flag
17095 else
17096 cat conftest.err 1>&5
17097 fi
17098 $RM conftest*
17099
17100 fi
17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17102 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17103 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17104 ;;
17105 esac
17106 fi
17107 ;;
17108 esac
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17262 printf %s "checking dynamic linker characteristics... " >&6; }
17263
17264 if test yes = "$GCC"; then
17265 case $host_os in
17266 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17267 *) lt_awk_arg='/^libraries:/' ;;
17268 esac
17269 case $host_os in
17270 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17271 *) lt_sed_strip_eq='s|=/|/|g' ;;
17272 esac
17273 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17274 case $lt_search_path_spec in
17275 *\;*)
17276 # if the path contains ";" then we assume it to be the separator
17277 # otherwise default to the standard path separator (i.e. ":") - it is
17278 # assumed that no part of a normal pathname contains ";" but that should
17279 # okay in the real world where ";" in dirpaths is itself problematic.
17280 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17281 ;;
17282 *)
17283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17284 ;;
17285 esac
17286 # Ok, now we have the path, separated by spaces, we can step through it
17287 # and add multilib dir if necessary...
17288 lt_tmp_lt_search_path_spec=
17289 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17290 # ...but if some path component already ends with the multilib dir we assume
17291 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17292 case "$lt_multi_os_dir; $lt_search_path_spec " in
17293 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17294 lt_multi_os_dir=
17295 ;;
17296 esac
17297 for lt_sys_path in $lt_search_path_spec; do
17298 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17300 elif test -n "$lt_multi_os_dir"; then
17301 test -d "$lt_sys_path" && \
17302 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17303 fi
17304 done
17305 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17306 BEGIN {RS = " "; FS = "/|\n";} {
17307 lt_foo = "";
17308 lt_count = 0;
17309 for (lt_i = NF; lt_i > 0; lt_i--) {
17310 if ($lt_i != "" && $lt_i != ".") {
17311 if ($lt_i == "..") {
17312 lt_count++;
17313 } else {
17314 if (lt_count == 0) {
17315 lt_foo = "/" $lt_i lt_foo;
17316 } else {
17317 lt_count--;
17318 }
17319 }
17320 }
17321 }
17322 if (lt_foo != "") { lt_freq[lt_foo]++; }
17323 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17324 }'`
17325 # AWK program above erroneously prepends '/' to C:/dos/paths
17326 # for these hosts.
17327 case $host_os in
17328 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17329 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17330 esac
17331 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17332 else
17333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17334 fi
17335 library_names_spec=
17336 libname_spec='lib$name'
17337 soname_spec=
17338 shrext_cmds=.so
17339 postinstall_cmds=
17340 postuninstall_cmds=
17341 finish_cmds=
17342 finish_eval=
17343 shlibpath_var=
17344 shlibpath_overrides_runpath=unknown
17345 version_type=none
17346 dynamic_linker="$host_os ld.so"
17347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17348 need_lib_prefix=unknown
17349 hardcode_into_libs=no
17350
17351 # when you set need_version to no, make sure it does not cause -set_version
17352 # flags to be left without arguments
17353 need_version=unknown
17354
17355
17356
17357 case $host_os in
17358 aix3*)
17359 version_type=linux # correct to gnu/linux during the next big refactor
17360 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17361 shlibpath_var=LIBPATH
17362
17363 # AIX 3 has no versioning support, so we append a major version to the name.
17364 soname_spec='$libname$release$shared_ext$major'
17365 ;;
17366
17367 aix[4-9]*)
17368 version_type=linux # correct to gnu/linux during the next big refactor
17369 need_lib_prefix=no
17370 need_version=no
17371 hardcode_into_libs=yes
17372 if test ia64 = "$host_cpu"; then
17373 # AIX 5 supports IA64
17374 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 else
17377 # With GCC up to 2.95.x, collect2 would create an import file
17378 # for dependence libraries. The import file would start with
17379 # the line '#! .'. This would cause the generated library to
17380 # depend on '.', always an invalid library. This was fixed in
17381 # development snapshots of GCC prior to 3.0.
17382 case $host_os in
17383 aix4 | aix4.[01] | aix4.[01].*)
17384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17385 echo ' yes '
17386 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17387 :
17388 else
17389 can_build_shared=no
17390 fi
17391 ;;
17392 esac
17393 # Using Import Files as archive members, it is possible to support
17394 # filename-based versioning of shared library archives on AIX. While
17395 # this would work for both with and without runtime linking, it will
17396 # prevent static linking of such archives. So we do filename-based
17397 # shared library versioning with .so extension only, which is used
17398 # when both runtime linking and shared linking is enabled.
17399 # Unfortunately, runtime linking may impact performance, so we do
17400 # not want this to be the default eventually. Also, we use the
17401 # versioned .so libs for executables only if there is the -brtl
17402 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17403 # To allow for filename-based versioning support, we need to create
17404 # libNAME.so.V as an archive file, containing:
17405 # *) an Import File, referring to the versioned filename of the
17406 # archive as well as the shared archive member, telling the
17407 # bitwidth (32 or 64) of that shared object, and providing the
17408 # list of exported symbols of that shared object, eventually
17409 # decorated with the 'weak' keyword
17410 # *) the shared object with the F_LOADONLY flag set, to really avoid
17411 # it being seen by the linker.
17412 # At run time we better use the real file rather than another symlink,
17413 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17414
17415 case $with_aix_soname,$aix_use_runtimelinking in
17416 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17417 # soname into executable. Probably we can add versioning support to
17418 # collect2, so additional links can be useful in future.
17419 aix,yes) # traditional libtool
17420 dynamic_linker='AIX unversionable lib.so'
17421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17422 # instead of lib<name>.a to let people know that these are not
17423 # typical AIX shared libraries.
17424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17425 ;;
17426 aix,no) # traditional AIX only
17427 dynamic_linker='AIX lib.a(lib.so.V)'
17428 # We preserve .a as extension for shared libraries through AIX4.2
17429 # and later when we are not doing run time linking.
17430 library_names_spec='$libname$release.a $libname.a'
17431 soname_spec='$libname$release$shared_ext$major'
17432 ;;
17433 svr4,*) # full svr4 only
17434 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17435 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17436 # We do not specify a path in Import Files, so LIBPATH fires.
17437 shlibpath_overrides_runpath=yes
17438 ;;
17439 *,yes) # both, prefer svr4
17440 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17441 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17442 # unpreferred sharedlib libNAME.a needs extra handling
17443 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"'
17444 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"'
17445 # We do not specify a path in Import Files, so LIBPATH fires.
17446 shlibpath_overrides_runpath=yes
17447 ;;
17448 *,no) # both, prefer aix
17449 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17450 library_names_spec='$libname$release.a $libname.a'
17451 soname_spec='$libname$release$shared_ext$major'
17452 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17453 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)'
17454 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"'
17455 ;;
17456 esac
17457 shlibpath_var=LIBPATH
17458 fi
17459 ;;
17460
17461 amigaos*)
17462 case $host_cpu in
17463 powerpc)
17464 # Since July 2007 AmigaOS4 officially supports .so libraries.
17465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17467 ;;
17468 m68k)
17469 library_names_spec='$libname.ixlibrary $libname.a'
17470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17471 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'
17472 ;;
17473 esac
17474 ;;
17475
17476 beos*)
17477 library_names_spec='$libname$shared_ext'
17478 dynamic_linker="$host_os ld.so"
17479 shlibpath_var=LIBRARY_PATH
17480 ;;
17481
17482 bsdi[45]*)
17483 version_type=linux # correct to gnu/linux during the next big refactor
17484 need_version=no
17485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486 soname_spec='$libname$release$shared_ext$major'
17487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17491 # the default ld.so.conf also contains /usr/contrib/lib and
17492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17493 # libtool to hard-code these into programs
17494 ;;
17495
17496 cygwin* | mingw* | pw32* | cegcc*)
17497 version_type=windows
17498 shrext_cmds=.dll
17499 need_version=no
17500 need_lib_prefix=no
17501
17502 case $GCC,$cc_basename in
17503 yes,*)
17504 # gcc
17505 library_names_spec='$libname.dll.a'
17506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17507 postinstall_cmds='base_file=`basename \$file`~
17508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17509 dldir=$destdir/`dirname \$dlpath`~
17510 test -d \$dldir || mkdir -p \$dldir~
17511 $install_prog $dir/$dlname \$dldir/$dlname~
17512 chmod a+x \$dldir/$dlname~
17513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17515 fi'
17516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17517 dlpath=$dir/\$dldll~
17518 $RM \$dlpath'
17519 shlibpath_overrides_runpath=yes
17520
17521 case $host_os in
17522 cygwin*)
17523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17524 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17525
17526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17527 ;;
17528 mingw* | cegcc*)
17529 # MinGW DLLs use traditional 'lib' prefix
17530 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17531 ;;
17532 pw32*)
17533 # pw32 DLLs use 'pw' prefix rather than 'lib'
17534 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17535 ;;
17536 esac
17537 dynamic_linker='Win32 ld.exe'
17538 ;;
17539
17540 *,cl* | *,icl*)
17541 # Native MSVC or ICC
17542 libname_spec='$name'
17543 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17544 library_names_spec='$libname.dll.lib'
17545
17546 case $build_os in
17547 mingw*)
17548 sys_lib_search_path_spec=
17549 lt_save_ifs=$IFS
17550 IFS=';'
17551 for lt_path in $LIB
17552 do
17553 IFS=$lt_save_ifs
17554 # Let DOS variable expansion print the short 8.3 style file name.
17555 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17556 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17557 done
17558 IFS=$lt_save_ifs
17559 # Convert to MSYS style.
17560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17561 ;;
17562 cygwin*)
17563 # Convert to unix form, then to dos form, then back to unix form
17564 # but this time dos style (no spaces!) so that the unix form looks
17565 # like /cygdrive/c/PROGRA~1:/cygdr...
17566 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17567 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17568 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17569 ;;
17570 *)
17571 sys_lib_search_path_spec=$LIB
17572 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17573 # It is most probably a Windows format PATH.
17574 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17575 else
17576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17577 fi
17578 # FIXME: find the short name or the path components, as spaces are
17579 # common. (e.g. "Program Files" -> "PROGRA~1")
17580 ;;
17581 esac
17582
17583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17584 postinstall_cmds='base_file=`basename \$file`~
17585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17586 dldir=$destdir/`dirname \$dlpath`~
17587 test -d \$dldir || mkdir -p \$dldir~
17588 $install_prog $dir/$dlname \$dldir/$dlname'
17589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17590 dlpath=$dir/\$dldll~
17591 $RM \$dlpath'
17592 shlibpath_overrides_runpath=yes
17593 dynamic_linker='Win32 link.exe'
17594 ;;
17595
17596 *)
17597 # Assume MSVC and ICC wrapper
17598 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17599 dynamic_linker='Win32 ld.exe'
17600 ;;
17601 esac
17602 # FIXME: first we should search . and the directory the executable is in
17603 shlibpath_var=PATH
17604 ;;
17605
17606 darwin* | rhapsody*)
17607 dynamic_linker="$host_os dyld"
17608 version_type=darwin
17609 need_lib_prefix=no
17610 need_version=no
17611 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17612 soname_spec='$libname$release$major$shared_ext'
17613 shlibpath_overrides_runpath=yes
17614 shlibpath_var=DYLD_LIBRARY_PATH
17615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17616
17617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17619 ;;
17620
17621 dgux*)
17622 version_type=linux # correct to gnu/linux during the next big refactor
17623 need_lib_prefix=no
17624 need_version=no
17625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17626 soname_spec='$libname$release$shared_ext$major'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 ;;
17629
17630 freebsd* | dragonfly* | midnightbsd*)
17631 # DragonFly does not have aout. When/if they implement a new
17632 # versioning mechanism, adjust this.
17633 if test -x /usr/bin/objformat; then
17634 objformat=`/usr/bin/objformat`
17635 else
17636 case $host_os in
17637 freebsd[23].*) objformat=aout ;;
17638 *) objformat=elf ;;
17639 esac
17640 fi
17641 version_type=freebsd-$objformat
17642 case $version_type in
17643 freebsd-elf*)
17644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17645 soname_spec='$libname$release$shared_ext$major'
17646 need_version=no
17647 need_lib_prefix=no
17648 ;;
17649 freebsd-*)
17650 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17651 need_version=yes
17652 ;;
17653 esac
17654 shlibpath_var=LD_LIBRARY_PATH
17655 case $host_os in
17656 freebsd2.*)
17657 shlibpath_overrides_runpath=yes
17658 ;;
17659 freebsd3.[01]* | freebsdelf3.[01]*)
17660 shlibpath_overrides_runpath=yes
17661 hardcode_into_libs=yes
17662 ;;
17663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17665 shlibpath_overrides_runpath=no
17666 hardcode_into_libs=yes
17667 ;;
17668 *) # from 4.6 on, and DragonFly
17669 shlibpath_overrides_runpath=yes
17670 hardcode_into_libs=yes
17671 ;;
17672 esac
17673 ;;
17674
17675 haiku*)
17676 version_type=linux # correct to gnu/linux during the next big refactor
17677 need_lib_prefix=no
17678 need_version=no
17679 dynamic_linker="$host_os runtime_loader"
17680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17681 soname_spec='$libname$release$shared_ext$major'
17682 shlibpath_var=LIBRARY_PATH
17683 shlibpath_overrides_runpath=no
17684 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17685 hardcode_into_libs=yes
17686 ;;
17687
17688 hpux9* | hpux10* | hpux11*)
17689 # Give a soname corresponding to the major version so that dld.sl refuses to
17690 # link against other versions.
17691 version_type=sunos
17692 need_lib_prefix=no
17693 need_version=no
17694 case $host_cpu in
17695 ia64*)
17696 shrext_cmds='.so'
17697 hardcode_into_libs=yes
17698 dynamic_linker="$host_os dld.so"
17699 shlibpath_var=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17702 soname_spec='$libname$release$shared_ext$major'
17703 if test 32 = "$HPUX_IA64_MODE"; then
17704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17705 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17706 else
17707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17708 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17709 fi
17710 ;;
17711 hppa*64*)
17712 shrext_cmds='.sl'
17713 hardcode_into_libs=yes
17714 dynamic_linker="$host_os dld.sl"
17715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17718 soname_spec='$libname$release$shared_ext$major'
17719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17721 ;;
17722 *)
17723 shrext_cmds='.sl'
17724 dynamic_linker="$host_os dld.sl"
17725 shlibpath_var=SHLIB_PATH
17726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17728 soname_spec='$libname$release$shared_ext$major'
17729 ;;
17730 esac
17731 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17732 postinstall_cmds='chmod 555 $lib'
17733 # or fails outright, so override atomically:
17734 install_override_mode=555
17735 ;;
17736
17737 interix[3-9]*)
17738 version_type=linux # correct to gnu/linux during the next big refactor
17739 need_lib_prefix=no
17740 need_version=no
17741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17742 soname_spec='$libname$release$shared_ext$major'
17743 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=no
17746 hardcode_into_libs=yes
17747 ;;
17748
17749 irix5* | irix6* | nonstopux*)
17750 case $host_os in
17751 nonstopux*) version_type=nonstopux ;;
17752 *)
17753 if test yes = "$lt_cv_prog_gnu_ld"; then
17754 version_type=linux # correct to gnu/linux during the next big refactor
17755 else
17756 version_type=irix
17757 fi ;;
17758 esac
17759 need_lib_prefix=no
17760 need_version=no
17761 soname_spec='$libname$release$shared_ext$major'
17762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17763 case $host_os in
17764 irix5* | nonstopux*)
17765 libsuff= shlibsuff=
17766 ;;
17767 *)
17768 case $LD in # libtool.m4 will add one of these switches to LD
17769 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17770 libsuff= shlibsuff= libmagic=32-bit;;
17771 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17772 libsuff=32 shlibsuff=N32 libmagic=N32;;
17773 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17774 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17775 *) libsuff= shlibsuff= libmagic=never-match;;
17776 esac
17777 ;;
17778 esac
17779 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17780 shlibpath_overrides_runpath=no
17781 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17782 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17783 hardcode_into_libs=yes
17784 ;;
17785
17786 # No shared lib support for Linux oldld, aout, or coff.
17787 linux*oldld* | linux*aout* | linux*coff*)
17788 dynamic_linker=no
17789 ;;
17790
17791 linux*android*)
17792 version_type=none # Android doesn't support versioned libraries.
17793 need_lib_prefix=no
17794 need_version=no
17795 library_names_spec='$libname$release$shared_ext'
17796 soname_spec='$libname$release$shared_ext'
17797 finish_cmds=
17798 shlibpath_var=LD_LIBRARY_PATH
17799 shlibpath_overrides_runpath=yes
17800
17801 # This implies no fast_install, which is unacceptable.
17802 # Some rework will be needed to allow for fast_install
17803 # before this can be enabled.
17804 hardcode_into_libs=yes
17805
17806 dynamic_linker='Android linker'
17807 # Don't embed -rpath directories since the linker doesn't support them.
17808 hardcode_libdir_flag_spec='-L$libdir'
17809 ;;
17810
17811 # This must be glibc/ELF.
17812 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17813 version_type=linux # correct to gnu/linux during the next big refactor
17814 need_lib_prefix=no
17815 need_version=no
17816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17817 soname_spec='$libname$release$shared_ext$major'
17818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17819 shlibpath_var=LD_LIBRARY_PATH
17820 shlibpath_overrides_runpath=no
17821
17822 # Some binutils ld are patched to set DT_RUNPATH
17823 if test ${lt_cv_shlibpath_overrides_runpath+y}
17824 then :
17825 printf %s "(cached) " >&6
17826 else $as_nop
17827 lt_cv_shlibpath_overrides_runpath=no
17828 save_LDFLAGS=$LDFLAGS
17829 save_libdir=$libdir
17830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834
17835 int
17836 main (void)
17837 {
17838
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 if ac_fn_c_try_link "$LINENO"
17844 then :
17845 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17846 then :
17847 lt_cv_shlibpath_overrides_runpath=yes
17848 fi
17849 fi
17850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17851 conftest$ac_exeext conftest.$ac_ext
17852 LDFLAGS=$save_LDFLAGS
17853 libdir=$save_libdir
17854
17855 fi
17856
17857 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17858
17859 # This implies no fast_install, which is unacceptable.
17860 # Some rework will be needed to allow for fast_install
17861 # before this can be enabled.
17862 hardcode_into_libs=yes
17863
17864 # Ideally, we could use ldconfig to report *all* directores which are
17865 # searched for libraries, however this is still not possible. Aside from not
17866 # being certain /sbin/ldconfig is available, command
17867 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17868 # even though it is searched at run-time. Try to do the best guess by
17869 # appending ld.so.conf contents (and includes) to the search path.
17870 if test -f /etc/ld.so.conf; then
17871 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' ' '`
17872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17873 fi
17874
17875 # We used to test for /lib/ld.so.1 and disable shared libraries on
17876 # powerpc, because MkLinux only supported shared libraries with the
17877 # GNU dynamic linker. Since this was broken with cross compilers,
17878 # most powerpc-linux boxes support dynamic linking these days and
17879 # people can always --disable-shared, the test was removed, and we
17880 # assume the GNU/Linux dynamic linker is in use.
17881 dynamic_linker='GNU/Linux ld.so'
17882 ;;
17883
17884 netbsdelf*-gnu)
17885 version_type=linux
17886 need_lib_prefix=no
17887 need_version=no
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17890 shlibpath_var=LD_LIBRARY_PATH
17891 shlibpath_overrides_runpath=no
17892 hardcode_into_libs=yes
17893 dynamic_linker='NetBSD ld.elf_so'
17894 ;;
17895
17896 netbsd*)
17897 version_type=sunos
17898 need_lib_prefix=no
17899 need_version=no
17900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17903 dynamic_linker='NetBSD (a.out) ld.so'
17904 else
17905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17906 soname_spec='$libname$release$shared_ext$major'
17907 dynamic_linker='NetBSD ld.elf_so'
17908 fi
17909 shlibpath_var=LD_LIBRARY_PATH
17910 shlibpath_overrides_runpath=yes
17911 hardcode_into_libs=yes
17912 ;;
17913
17914 newsos6)
17915 version_type=linux # correct to gnu/linux during the next big refactor
17916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17917 shlibpath_var=LD_LIBRARY_PATH
17918 shlibpath_overrides_runpath=yes
17919 ;;
17920
17921 *nto* | *qnx*)
17922 version_type=qnx
17923 need_lib_prefix=no
17924 need_version=no
17925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17926 soname_spec='$libname$release$shared_ext$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 shlibpath_overrides_runpath=no
17929 hardcode_into_libs=yes
17930 dynamic_linker='ldqnx.so'
17931 ;;
17932
17933 openbsd* | bitrig*)
17934 version_type=sunos
17935 sys_lib_dlsearch_path_spec=/usr/lib
17936 need_lib_prefix=no
17937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17938 need_version=no
17939 else
17940 need_version=yes
17941 fi
17942 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 shlibpath_overrides_runpath=yes
17946 ;;
17947
17948 os2*)
17949 libname_spec='$name'
17950 version_type=windows
17951 shrext_cmds=.dll
17952 need_version=no
17953 need_lib_prefix=no
17954 # OS/2 can only load a DLL with a base name of 8 characters or less.
17955 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17956 v=$($ECHO $release$versuffix | tr -d .-);
17957 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17958 $ECHO $n$v`$shared_ext'
17959 library_names_spec='${libname}_dll.$libext'
17960 dynamic_linker='OS/2 ld.exe'
17961 shlibpath_var=BEGINLIBPATH
17962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17964 postinstall_cmds='base_file=`basename \$file`~
17965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17966 dldir=$destdir/`dirname \$dlpath`~
17967 test -d \$dldir || mkdir -p \$dldir~
17968 $install_prog $dir/$dlname \$dldir/$dlname~
17969 chmod a+x \$dldir/$dlname~
17970 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17971 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17972 fi'
17973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17974 dlpath=$dir/\$dldll~
17975 $RM \$dlpath'
17976 ;;
17977
17978 osf3* | osf4* | osf5*)
17979 version_type=osf
17980 need_lib_prefix=no
17981 need_version=no
17982 soname_spec='$libname$release$shared_ext$major'
17983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17984 shlibpath_var=LD_LIBRARY_PATH
17985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17987 ;;
17988
17989 rdos*)
17990 dynamic_linker=no
17991 ;;
17992
17993 solaris*)
17994 version_type=linux # correct to gnu/linux during the next big refactor
17995 need_lib_prefix=no
17996 need_version=no
17997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17998 soname_spec='$libname$release$shared_ext$major'
17999 shlibpath_var=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath=yes
18001 hardcode_into_libs=yes
18002 # ldd complains unless libraries are executable
18003 postinstall_cmds='chmod +x $lib'
18004 ;;
18005
18006 sunos4*)
18007 version_type=sunos
18008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 shlibpath_overrides_runpath=yes
18012 if test yes = "$with_gnu_ld"; then
18013 need_lib_prefix=no
18014 fi
18015 need_version=yes
18016 ;;
18017
18018 sysv4 | sysv4.3*)
18019 version_type=linux # correct to gnu/linux during the next big refactor
18020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18021 soname_spec='$libname$release$shared_ext$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 case $host_vendor in
18024 sni)
18025 shlibpath_overrides_runpath=no
18026 need_lib_prefix=no
18027 runpath_var=LD_RUN_PATH
18028 ;;
18029 siemens)
18030 need_lib_prefix=no
18031 ;;
18032 motorola)
18033 need_lib_prefix=no
18034 need_version=no
18035 shlibpath_overrides_runpath=no
18036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18037 ;;
18038 esac
18039 ;;
18040
18041 sysv4*MP*)
18042 if test -d /usr/nec; then
18043 version_type=linux # correct to gnu/linux during the next big refactor
18044 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18045 soname_spec='$libname$shared_ext.$major'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 fi
18048 ;;
18049
18050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18051 version_type=sco
18052 need_lib_prefix=no
18053 need_version=no
18054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18055 soname_spec='$libname$release$shared_ext$major'
18056 shlibpath_var=LD_LIBRARY_PATH
18057 shlibpath_overrides_runpath=yes
18058 hardcode_into_libs=yes
18059 if test yes = "$with_gnu_ld"; then
18060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18061 else
18062 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18063 case $host_os in
18064 sco3.2v5*)
18065 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18066 ;;
18067 esac
18068 fi
18069 sys_lib_dlsearch_path_spec='/usr/lib'
18070 ;;
18071
18072 tpf*)
18073 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18074 version_type=linux # correct to gnu/linux during the next big refactor
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18078 shlibpath_var=LD_LIBRARY_PATH
18079 shlibpath_overrides_runpath=no
18080 hardcode_into_libs=yes
18081 ;;
18082
18083 uts4*)
18084 version_type=linux # correct to gnu/linux during the next big refactor
18085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18086 soname_spec='$libname$release$shared_ext$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 ;;
18089
18090 *)
18091 dynamic_linker=no
18092 ;;
18093 esac
18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18095 printf "%s\n" "$dynamic_linker" >&6; }
18096 test no = "$dynamic_linker" && can_build_shared=no
18097
18098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18099 if test yes = "$GCC"; then
18100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18101 fi
18102
18103 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18104 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18105 fi
18106
18107 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18108 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18109 fi
18110
18111 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18112 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18113
18114 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18115 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18116
18117 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18118 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18217 printf %s "checking how to hardcode library paths into programs... " >&6; }
18218 hardcode_action=
18219 if test -n "$hardcode_libdir_flag_spec" ||
18220 test -n "$runpath_var" ||
18221 test yes = "$hardcode_automatic"; then
18222
18223 # We can hardcode non-existent directories.
18224 if test no != "$hardcode_direct" &&
18225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18226 # have to relink, otherwise we might link with an installed library
18227 # when we should be linking with a yet-to-be-installed one
18228 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18229 test no != "$hardcode_minus_L"; then
18230 # Linking always hardcodes the temporary library directory.
18231 hardcode_action=relink
18232 else
18233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18234 hardcode_action=immediate
18235 fi
18236 else
18237 # We cannot hardcode anything, or else we can only hardcode existing
18238 # directories.
18239 hardcode_action=unsupported
18240 fi
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18242 printf "%s\n" "$hardcode_action" >&6; }
18243
18244 if test relink = "$hardcode_action" ||
18245 test yes = "$inherit_rpath"; then
18246 # Fast installation is not supported
18247 enable_fast_install=no
18248 elif test yes = "$shlibpath_overrides_runpath" ||
18249 test no = "$enable_shared"; then
18250 # Fast installation is not necessary
18251 enable_fast_install=needless
18252 fi
18253
18254
18255
18256
18257
18258
18259 if test yes != "$enable_dlopen"; then
18260 enable_dlopen=unknown
18261 enable_dlopen_self=unknown
18262 enable_dlopen_self_static=unknown
18263 else
18264 lt_cv_dlopen=no
18265 lt_cv_dlopen_libs=
18266
18267 case $host_os in
18268 beos*)
18269 lt_cv_dlopen=load_add_on
18270 lt_cv_dlopen_libs=
18271 lt_cv_dlopen_self=yes
18272 ;;
18273
18274 mingw* | pw32* | cegcc*)
18275 lt_cv_dlopen=LoadLibrary
18276 lt_cv_dlopen_libs=
18277 ;;
18278
18279 cygwin*)
18280 lt_cv_dlopen=dlopen
18281 lt_cv_dlopen_libs=
18282 ;;
18283
18284 darwin*)
18285 # if libdl is installed we need to link against it
18286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18287 printf %s "checking for dlopen in -ldl... " >&6; }
18288 if test ${ac_cv_lib_dl_dlopen+y}
18289 then :
18290 printf %s "(cached) " >&6
18291 else $as_nop
18292 ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-ldl $LIBS"
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18300 char dlopen ();
18301 int
18302 main (void)
18303 {
18304 return dlopen ();
18305 ;
18306 return 0;
18307 }
18308 _ACEOF
18309 if ac_fn_c_try_link "$LINENO"
18310 then :
18311 ac_cv_lib_dl_dlopen=yes
18312 else $as_nop
18313 ac_cv_lib_dl_dlopen=no
18314 fi
18315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18316 conftest$ac_exeext conftest.$ac_ext
18317 LIBS=$ac_check_lib_save_LIBS
18318 fi
18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18320 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18321 if test "x$ac_cv_lib_dl_dlopen" = xyes
18322 then :
18323 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18324 else $as_nop
18325
18326 lt_cv_dlopen=dyld
18327 lt_cv_dlopen_libs=
18328 lt_cv_dlopen_self=yes
18329
18330 fi
18331
18332 ;;
18333
18334 tpf*)
18335 # Don't try to run any link tests for TPF. We know it's impossible
18336 # because TPF is a cross-compiler, and we know how we open DSOs.
18337 lt_cv_dlopen=dlopen
18338 lt_cv_dlopen_libs=
18339 lt_cv_dlopen_self=no
18340 ;;
18341
18342 *)
18343 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18344 if test "x$ac_cv_func_shl_load" = xyes
18345 then :
18346 lt_cv_dlopen=shl_load
18347 else $as_nop
18348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18349 printf %s "checking for shl_load in -ldld... " >&6; }
18350 if test ${ac_cv_lib_dld_shl_load+y}
18351 then :
18352 printf %s "(cached) " >&6
18353 else $as_nop
18354 ac_check_lib_save_LIBS=$LIBS
18355 LIBS="-ldld $LIBS"
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18358
18359 /* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18362 char shl_load ();
18363 int
18364 main (void)
18365 {
18366 return shl_load ();
18367 ;
18368 return 0;
18369 }
18370 _ACEOF
18371 if ac_fn_c_try_link "$LINENO"
18372 then :
18373 ac_cv_lib_dld_shl_load=yes
18374 else $as_nop
18375 ac_cv_lib_dld_shl_load=no
18376 fi
18377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18378 conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18380 fi
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18382 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18383 if test "x$ac_cv_lib_dld_shl_load" = xyes
18384 then :
18385 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18386 else $as_nop
18387 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18388 if test "x$ac_cv_func_dlopen" = xyes
18389 then :
18390 lt_cv_dlopen=dlopen
18391 else $as_nop
18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18393 printf %s "checking for dlopen in -ldl... " >&6; }
18394 if test ${ac_cv_lib_dl_dlopen+y}
18395 then :
18396 printf %s "(cached) " >&6
18397 else $as_nop
18398 ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-ldl $LIBS"
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18406 char dlopen ();
18407 int
18408 main (void)
18409 {
18410 return dlopen ();
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"
18416 then :
18417 ac_cv_lib_dl_dlopen=yes
18418 else $as_nop
18419 ac_cv_lib_dl_dlopen=no
18420 fi
18421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18422 conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18424 fi
18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18426 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18427 if test "x$ac_cv_lib_dl_dlopen" = xyes
18428 then :
18429 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18430 else $as_nop
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18432 printf %s "checking for dlopen in -lsvld... " >&6; }
18433 if test ${ac_cv_lib_svld_dlopen+y}
18434 then :
18435 printf %s "(cached) " >&6
18436 else $as_nop
18437 ac_check_lib_save_LIBS=$LIBS
18438 LIBS="-lsvld $LIBS"
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441
18442 /* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
18445 char dlopen ();
18446 int
18447 main (void)
18448 {
18449 return dlopen ();
18450 ;
18451 return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_link "$LINENO"
18455 then :
18456 ac_cv_lib_svld_dlopen=yes
18457 else $as_nop
18458 ac_cv_lib_svld_dlopen=no
18459 fi
18460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18461 conftest$ac_exeext conftest.$ac_ext
18462 LIBS=$ac_check_lib_save_LIBS
18463 fi
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18465 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18466 if test "x$ac_cv_lib_svld_dlopen" = xyes
18467 then :
18468 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18469 else $as_nop
18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18471 printf %s "checking for dld_link in -ldld... " >&6; }
18472 if test ${ac_cv_lib_dld_dld_link+y}
18473 then :
18474 printf %s "(cached) " >&6
18475 else $as_nop
18476 ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-ldld $LIBS"
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18480
18481 /* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18484 char dld_link ();
18485 int
18486 main (void)
18487 {
18488 return dld_link ();
18489 ;
18490 return 0;
18491 }
18492 _ACEOF
18493 if ac_fn_c_try_link "$LINENO"
18494 then :
18495 ac_cv_lib_dld_dld_link=yes
18496 else $as_nop
18497 ac_cv_lib_dld_dld_link=no
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18500 conftest$ac_exeext conftest.$ac_ext
18501 LIBS=$ac_check_lib_save_LIBS
18502 fi
18503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18504 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18505 if test "x$ac_cv_lib_dld_dld_link" = xyes
18506 then :
18507 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18508 fi
18509
18510
18511 fi
18512
18513
18514 fi
18515
18516
18517 fi
18518
18519
18520 fi
18521
18522
18523 fi
18524
18525 ;;
18526 esac
18527
18528 if test no = "$lt_cv_dlopen"; then
18529 enable_dlopen=no
18530 else
18531 enable_dlopen=yes
18532 fi
18533
18534 case $lt_cv_dlopen in
18535 dlopen)
18536 save_CPPFLAGS=$CPPFLAGS
18537 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18538
18539 save_LDFLAGS=$LDFLAGS
18540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18541
18542 save_LIBS=$LIBS
18543 LIBS="$lt_cv_dlopen_libs $LIBS"
18544
18545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18546 printf %s "checking whether a program can dlopen itself... " >&6; }
18547 if test ${lt_cv_dlopen_self+y}
18548 then :
18549 printf %s "(cached) " >&6
18550 else $as_nop
18551 if test yes = "$cross_compiling"; then :
18552 lt_cv_dlopen_self=cross
18553 else
18554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18555 lt_status=$lt_dlunknown
18556 cat > conftest.$ac_ext <<_LT_EOF
18557 #line $LINENO "configure"
18558 #include "confdefs.h"
18559
18560 #if HAVE_DLFCN_H
18561 #include <dlfcn.h>
18562 #endif
18563
18564 #include <stdio.h>
18565
18566 #ifdef RTLD_GLOBAL
18567 # define LT_DLGLOBAL RTLD_GLOBAL
18568 #else
18569 # ifdef DL_GLOBAL
18570 # define LT_DLGLOBAL DL_GLOBAL
18571 # else
18572 # define LT_DLGLOBAL 0
18573 # endif
18574 #endif
18575
18576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18577 find out it does not work in some platform. */
18578 #ifndef LT_DLLAZY_OR_NOW
18579 # ifdef RTLD_LAZY
18580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18581 # else
18582 # ifdef DL_LAZY
18583 # define LT_DLLAZY_OR_NOW DL_LAZY
18584 # else
18585 # ifdef RTLD_NOW
18586 # define LT_DLLAZY_OR_NOW RTLD_NOW
18587 # else
18588 # ifdef DL_NOW
18589 # define LT_DLLAZY_OR_NOW DL_NOW
18590 # else
18591 # define LT_DLLAZY_OR_NOW 0
18592 # endif
18593 # endif
18594 # endif
18595 # endif
18596 #endif
18597
18598 /* When -fvisibility=hidden is used, assume the code has been annotated
18599 correspondingly for the symbols needed. */
18600 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18601 int fnord () __attribute__((visibility("default")));
18602 #endif
18603
18604 int fnord () { return 42; }
18605 int main ()
18606 {
18607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18608 int status = $lt_dlunknown;
18609
18610 if (self)
18611 {
18612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18613 else
18614 {
18615 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18616 else puts (dlerror ());
18617 }
18618 /* dlclose (self); */
18619 }
18620 else
18621 puts (dlerror ());
18622
18623 return status;
18624 }
18625 _LT_EOF
18626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18627 (eval $ac_link) 2>&5
18628 ac_status=$?
18629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18630 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18631 (./conftest; exit; ) >&5 2>/dev/null
18632 lt_status=$?
18633 case x$lt_status in
18634 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18635 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18636 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18637 esac
18638 else :
18639 # compilation failed
18640 lt_cv_dlopen_self=no
18641 fi
18642 fi
18643 rm -fr conftest*
18644
18645
18646 fi
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18648 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
18649
18650 if test yes = "$lt_cv_dlopen_self"; then
18651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18653 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
18654 if test ${lt_cv_dlopen_self_static+y}
18655 then :
18656 printf %s "(cached) " >&6
18657 else $as_nop
18658 if test yes = "$cross_compiling"; then :
18659 lt_cv_dlopen_self_static=cross
18660 else
18661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18662 lt_status=$lt_dlunknown
18663 cat > conftest.$ac_ext <<_LT_EOF
18664 #line $LINENO "configure"
18665 #include "confdefs.h"
18666
18667 #if HAVE_DLFCN_H
18668 #include <dlfcn.h>
18669 #endif
18670
18671 #include <stdio.h>
18672
18673 #ifdef RTLD_GLOBAL
18674 # define LT_DLGLOBAL RTLD_GLOBAL
18675 #else
18676 # ifdef DL_GLOBAL
18677 # define LT_DLGLOBAL DL_GLOBAL
18678 # else
18679 # define LT_DLGLOBAL 0
18680 # endif
18681 #endif
18682
18683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18684 find out it does not work in some platform. */
18685 #ifndef LT_DLLAZY_OR_NOW
18686 # ifdef RTLD_LAZY
18687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18688 # else
18689 # ifdef DL_LAZY
18690 # define LT_DLLAZY_OR_NOW DL_LAZY
18691 # else
18692 # ifdef RTLD_NOW
18693 # define LT_DLLAZY_OR_NOW RTLD_NOW
18694 # else
18695 # ifdef DL_NOW
18696 # define LT_DLLAZY_OR_NOW DL_NOW
18697 # else
18698 # define LT_DLLAZY_OR_NOW 0
18699 # endif
18700 # endif
18701 # endif
18702 # endif
18703 #endif
18704
18705 /* When -fvisibility=hidden is used, assume the code has been annotated
18706 correspondingly for the symbols needed. */
18707 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18708 int fnord () __attribute__((visibility("default")));
18709 #endif
18710
18711 int fnord () { return 42; }
18712 int main ()
18713 {
18714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18715 int status = $lt_dlunknown;
18716
18717 if (self)
18718 {
18719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18720 else
18721 {
18722 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18723 else puts (dlerror ());
18724 }
18725 /* dlclose (self); */
18726 }
18727 else
18728 puts (dlerror ());
18729
18730 return status;
18731 }
18732 _LT_EOF
18733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18734 (eval $ac_link) 2>&5
18735 ac_status=$?
18736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18737 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18738 (./conftest; exit; ) >&5 2>/dev/null
18739 lt_status=$?
18740 case x$lt_status in
18741 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18742 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18743 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18744 esac
18745 else :
18746 # compilation failed
18747 lt_cv_dlopen_self_static=no
18748 fi
18749 fi
18750 rm -fr conftest*
18751
18752
18753 fi
18754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18755 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
18756 fi
18757
18758 CPPFLAGS=$save_CPPFLAGS
18759 LDFLAGS=$save_LDFLAGS
18760 LIBS=$save_LIBS
18761 ;;
18762 esac
18763
18764 case $lt_cv_dlopen_self in
18765 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18766 *) enable_dlopen_self=unknown ;;
18767 esac
18768
18769 case $lt_cv_dlopen_self_static in
18770 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18771 *) enable_dlopen_self_static=unknown ;;
18772 esac
18773 fi
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791 striplib=
18792 old_striplib=
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18794 printf %s "checking whether stripping libraries is possible... " >&6; }
18795 if test -z "$STRIP"; then
18796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797 printf "%s\n" "no" >&6; }
18798 else
18799 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18800 old_striplib="$STRIP --strip-debug"
18801 striplib="$STRIP --strip-unneeded"
18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18803 printf "%s\n" "yes" >&6; }
18804 else
18805 case $host_os in
18806 darwin*)
18807 # FIXME - insert some real tests, host_os isn't really good enough
18808 striplib="$STRIP -x"
18809 old_striplib="$STRIP -S"
18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18811 printf "%s\n" "yes" >&6; }
18812 ;;
18813 freebsd*)
18814 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
18815 old_striplib="$STRIP --strip-debug"
18816 striplib="$STRIP --strip-unneeded"
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18818 printf "%s\n" "yes" >&6; }
18819 else
18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821 printf "%s\n" "no" >&6; }
18822 fi
18823 ;;
18824 *)
18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 printf "%s\n" "no" >&6; }
18827 ;;
18828 esac
18829 fi
18830 fi
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843 # Report what library types will actually be built
18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18845 printf %s "checking if libtool supports shared libraries... " >&6; }
18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18847 printf "%s\n" "$can_build_shared" >&6; }
18848
18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18850 printf %s "checking whether to build shared libraries... " >&6; }
18851 test no = "$can_build_shared" && enable_shared=no
18852
18853 # On AIX, shared libraries and static libraries use the same namespace, and
18854 # are all built from PIC.
18855 case $host_os in
18856 aix3*)
18857 test yes = "$enable_shared" && enable_static=no
18858 if test -n "$RANLIB"; then
18859 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18860 postinstall_cmds='$RANLIB $lib'
18861 fi
18862 ;;
18863
18864 aix[4-9]*)
18865 if test ia64 != "$host_cpu"; then
18866 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18867 yes,aix,yes) ;; # shared object as lib.so file only
18868 yes,svr4,*) ;; # shared object as lib.so archive member only
18869 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18870 esac
18871 fi
18872 ;;
18873 esac
18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18875 printf "%s\n" "$enable_shared" >&6; }
18876
18877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18878 printf %s "checking whether to build static libraries... " >&6; }
18879 # Make sure either enable_shared or enable_static is yes.
18880 test yes = "$enable_shared" || enable_static=yes
18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18882 printf "%s\n" "$enable_static" >&6; }
18883
18884
18885
18886
18887 fi
18888 ac_ext=c
18889 ac_cpp='$CPP $CPPFLAGS'
18890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18893
18894 CC=$lt_save_CC
18895
18896 if test -n "$CXX" && ( test no != "$CXX" &&
18897 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18898 (test g++ != "$CXX"))); then
18899 ac_ext=cpp
18900 ac_cpp='$CXXCPP $CPPFLAGS'
18901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18905 printf %s "checking how to run the C++ preprocessor... " >&6; }
18906 if test -z "$CXXCPP"; then
18907 if test ${ac_cv_prog_CXXCPP+y}
18908 then :
18909 printf %s "(cached) " >&6
18910 else $as_nop
18911 # Double quotes because $CXX needs to be expanded
18912 for CXXCPP in "$CXX -E" cpp /lib/cpp
18913 do
18914 ac_preproc_ok=false
18915 for ac_cxx_preproc_warn_flag in '' yes
18916 do
18917 # Use a header file that comes with gcc, so configuring glibc
18918 # with a fresh cross-compiler works.
18919 # On the NeXT, cc -E runs the code through the compiler's parser,
18920 # not just through cpp. "Syntax error" is here to catch this case.
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18923 #include <limits.h>
18924 Syntax error
18925 _ACEOF
18926 if ac_fn_cxx_try_cpp "$LINENO"
18927 then :
18928
18929 else $as_nop
18930 # Broken: fails on valid input.
18931 continue
18932 fi
18933 rm -f conftest.err conftest.i conftest.$ac_ext
18934
18935 # OK, works on sane cases. Now check whether nonexistent headers
18936 # can be detected and how.
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18939 #include <ac_nonexistent.h>
18940 _ACEOF
18941 if ac_fn_cxx_try_cpp "$LINENO"
18942 then :
18943 # Broken: success on invalid input.
18944 continue
18945 else $as_nop
18946 # Passes both tests.
18947 ac_preproc_ok=:
18948 break
18949 fi
18950 rm -f conftest.err conftest.i conftest.$ac_ext
18951
18952 done
18953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18954 rm -f conftest.i conftest.err conftest.$ac_ext
18955 if $ac_preproc_ok
18956 then :
18957 break
18958 fi
18959
18960 done
18961 ac_cv_prog_CXXCPP=$CXXCPP
18962
18963 fi
18964 CXXCPP=$ac_cv_prog_CXXCPP
18965 else
18966 ac_cv_prog_CXXCPP=$CXXCPP
18967 fi
18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18969 printf "%s\n" "$CXXCPP" >&6; }
18970 ac_preproc_ok=false
18971 for ac_cxx_preproc_warn_flag in '' yes
18972 do
18973 # Use a header file that comes with gcc, so configuring glibc
18974 # with a fresh cross-compiler works.
18975 # On the NeXT, cc -E runs the code through the compiler's parser,
18976 # not just through cpp. "Syntax error" is here to catch this case.
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18979 #include <limits.h>
18980 Syntax error
18981 _ACEOF
18982 if ac_fn_cxx_try_cpp "$LINENO"
18983 then :
18984
18985 else $as_nop
18986 # Broken: fails on valid input.
18987 continue
18988 fi
18989 rm -f conftest.err conftest.i conftest.$ac_ext
18990
18991 # OK, works on sane cases. Now check whether nonexistent headers
18992 # can be detected and how.
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18995 #include <ac_nonexistent.h>
18996 _ACEOF
18997 if ac_fn_cxx_try_cpp "$LINENO"
18998 then :
18999 # Broken: success on invalid input.
19000 continue
19001 else $as_nop
19002 # Passes both tests.
19003 ac_preproc_ok=:
19004 break
19005 fi
19006 rm -f conftest.err conftest.i conftest.$ac_ext
19007
19008 done
19009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19010 rm -f conftest.i conftest.err conftest.$ac_ext
19011 if $ac_preproc_ok
19012 then :
19013
19014 else $as_nop
19015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19017 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19018 See \`config.log' for more details" "$LINENO" 5; }
19019 fi
19020
19021 ac_ext=c
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027 else
19028 _lt_caught_CXX_error=yes
19029 fi
19030
19031 ac_ext=cpp
19032 ac_cpp='$CXXCPP $CPPFLAGS'
19033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19036
19037 archive_cmds_need_lc_CXX=no
19038 allow_undefined_flag_CXX=
19039 always_export_symbols_CXX=no
19040 archive_expsym_cmds_CXX=
19041 compiler_needs_object_CXX=no
19042 export_dynamic_flag_spec_CXX=
19043 hardcode_direct_CXX=no
19044 hardcode_direct_absolute_CXX=no
19045 hardcode_libdir_flag_spec_CXX=
19046 hardcode_libdir_separator_CXX=
19047 hardcode_minus_L_CXX=no
19048 hardcode_shlibpath_var_CXX=unsupported
19049 hardcode_automatic_CXX=no
19050 inherit_rpath_CXX=no
19051 module_cmds_CXX=
19052 module_expsym_cmds_CXX=
19053 link_all_deplibs_CXX=unknown
19054 old_archive_cmds_CXX=$old_archive_cmds
19055 reload_flag_CXX=$reload_flag
19056 reload_cmds_CXX=$reload_cmds
19057 no_undefined_flag_CXX=
19058 whole_archive_flag_spec_CXX=
19059 enable_shared_with_static_runtimes_CXX=no
19060
19061 # Source file extension for C++ test sources.
19062 ac_ext=cpp
19063
19064 # Object file extension for compiled C++ test sources.
19065 objext=o
19066 objext_CXX=$objext
19067
19068 # No sense in running all these tests if we already determined that
19069 # the CXX compiler isn't working. Some variables (like enable_shared)
19070 # are currently assumed to apply to all compilers on this platform,
19071 # and will be corrupted by setting them based on a non-working compiler.
19072 if test yes != "$_lt_caught_CXX_error"; then
19073 # Code to be used in simple compile tests
19074 lt_simple_compile_test_code="int some_variable = 0;"
19075
19076 # Code to be used in simple link tests
19077 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19078
19079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19080
19081
19082
19083
19084
19085
19086 # If no C compiler was specified, use CC.
19087 LTCC=${LTCC-"$CC"}
19088
19089 # If no C compiler flags were specified, use CFLAGS.
19090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19091
19092 # Allow CC to be a program name with arguments.
19093 compiler=$CC
19094
19095
19096 # save warnings/boilerplate of simple test code
19097 ac_outfile=conftest.$ac_objext
19098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19100 _lt_compiler_boilerplate=`cat conftest.err`
19101 $RM conftest*
19102
19103 ac_outfile=conftest.$ac_objext
19104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19106 _lt_linker_boilerplate=`cat conftest.err`
19107 $RM -r conftest*
19108
19109
19110 # Allow CC to be a program name with arguments.
19111 lt_save_CC=$CC
19112 lt_save_CFLAGS=$CFLAGS
19113 lt_save_LD=$LD
19114 lt_save_GCC=$GCC
19115 GCC=$GXX
19116 lt_save_with_gnu_ld=$with_gnu_ld
19117 lt_save_path_LD=$lt_cv_path_LD
19118 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19119 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19120 else
19121 $as_unset lt_cv_prog_gnu_ld
19122 fi
19123 if test -n "${lt_cv_path_LDCXX+set}"; then
19124 lt_cv_path_LD=$lt_cv_path_LDCXX
19125 else
19126 $as_unset lt_cv_path_LD
19127 fi
19128 test -z "${LDCXX+set}" || LD=$LDCXX
19129 CC=${CXX-"c++"}
19130 CFLAGS=$CXXFLAGS
19131 compiler=$CC
19132 compiler_CXX=$CC
19133 func_cc_basename $compiler
19134 cc_basename=$func_cc_basename_result
19135
19136
19137 if test -n "$compiler"; then
19138 # We don't want -fno-exception when compiling C++ code, so set the
19139 # no_builtin_flag separately
19140 if test yes = "$GXX"; then
19141 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19142 else
19143 lt_prog_compiler_no_builtin_flag_CXX=
19144 fi
19145
19146 if test yes = "$GXX"; then
19147 # Set up default GNU C++ configuration
19148
19149
19150
19151 # Check whether --with-gnu-ld was given.
19152 if test ${with_gnu_ld+y}
19153 then :
19154 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
19155 else $as_nop
19156 with_gnu_ld=no
19157 fi
19158
19159 ac_prog=ld
19160 if test yes = "$GCC"; then
19161 # Check if gcc -print-prog-name=ld gives a path.
19162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19163 printf %s "checking for ld used by $CC... " >&6; }
19164 case $host in
19165 *-*-mingw*)
19166 # gcc leaves a trailing carriage return, which upsets mingw
19167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19168 *)
19169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19170 esac
19171 case $ac_prog in
19172 # Accept absolute paths.
19173 [\\/]* | ?:[\\/]*)
19174 re_direlt='/[^/][^/]*/\.\./'
19175 # Canonicalize the pathname of ld
19176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19179 done
19180 test -z "$LD" && LD=$ac_prog
19181 ;;
19182 "")
19183 # If it fails, then pretend we aren't using GCC.
19184 ac_prog=ld
19185 ;;
19186 *)
19187 # If it is relative, then search for the first ld in PATH.
19188 with_gnu_ld=unknown
19189 ;;
19190 esac
19191 elif test yes = "$with_gnu_ld"; then
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19193 printf %s "checking for GNU ld... " >&6; }
19194 else
19195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19196 printf %s "checking for non-GNU ld... " >&6; }
19197 fi
19198 if test ${lt_cv_path_LD+y}
19199 then :
19200 printf %s "(cached) " >&6
19201 else $as_nop
19202 if test -z "$LD"; then
19203 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19204 for ac_dir in $PATH; do
19205 IFS=$lt_save_ifs
19206 test -z "$ac_dir" && ac_dir=.
19207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19208 lt_cv_path_LD=$ac_dir/$ac_prog
19209 # Check to see if the program is GNU ld. I'd rather use --version,
19210 # but apparently some variants of GNU ld only accept -v.
19211 # Break only if it was the GNU/non-GNU ld that we prefer.
19212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19213 *GNU* | *'with BFD'*)
19214 test no != "$with_gnu_ld" && break
19215 ;;
19216 *)
19217 test yes != "$with_gnu_ld" && break
19218 ;;
19219 esac
19220 fi
19221 done
19222 IFS=$lt_save_ifs
19223 else
19224 lt_cv_path_LD=$LD # Let the user override the test with a path.
19225 fi
19226 fi
19227
19228 LD=$lt_cv_path_LD
19229 if test -n "$LD"; then
19230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19231 printf "%s\n" "$LD" >&6; }
19232 else
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 printf "%s\n" "no" >&6; }
19235 fi
19236 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19238 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
19239 if test ${lt_cv_prog_gnu_ld+y}
19240 then :
19241 printf %s "(cached) " >&6
19242 else $as_nop
19243 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19244 case `$LD -v 2>&1 </dev/null` in
19245 *GNU* | *'with BFD'*)
19246 lt_cv_prog_gnu_ld=yes
19247 ;;
19248 *)
19249 lt_cv_prog_gnu_ld=no
19250 ;;
19251 esac
19252 fi
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19254 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
19255 with_gnu_ld=$lt_cv_prog_gnu_ld
19256
19257
19258
19259
19260
19261
19262
19263 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19264 # archiving commands below assume that GNU ld is being used.
19265 if test yes = "$with_gnu_ld"; then
19266 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19267 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'
19268
19269 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19270 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19271
19272 # If archive_cmds runs LD, not CC, wlarc should be empty
19273 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19274 # investigate it a little bit more. (MM)
19275 wlarc='$wl'
19276
19277 # ancient GNU ld didn't support --whole-archive et. al.
19278 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19279 $GREP 'no-whole-archive' > /dev/null; then
19280 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19281 else
19282 whole_archive_flag_spec_CXX=
19283 fi
19284 else
19285 with_gnu_ld=no
19286 wlarc=
19287
19288 # A generic and very simple default shared library creation
19289 # command for GNU C++ for the case where it uses the native
19290 # linker, instead of GNU ld. If possible, this setting should
19291 # overridden to take advantage of the native linker features on
19292 # the platform it is being used on.
19293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19294 fi
19295
19296 # Commands to make compiler produce verbose output that lists
19297 # what "hidden" libraries, object files and flags are used when
19298 # linking a shared library.
19299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
19300
19301 else
19302 GXX=no
19303 with_gnu_ld=no
19304 wlarc=
19305 fi
19306
19307 # PORTME: fill in a description of your system's C++ link characteristics
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19309 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19310 ld_shlibs_CXX=yes
19311 case $host_os in
19312 aix3*)
19313 # FIXME: insert proper C++ library support
19314 ld_shlibs_CXX=no
19315 ;;
19316 aix[4-9]*)
19317 if test ia64 = "$host_cpu"; then
19318 # On IA64, the linker does run time linking by default, so we don't
19319 # have to do anything special.
19320 aix_use_runtimelinking=no
19321 exp_sym_flag='-Bexport'
19322 no_entry_flag=
19323 else
19324 aix_use_runtimelinking=no
19325
19326 # Test if we are trying to use run time linking or normal
19327 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19328 # have runtime linking enabled, and use it for executables.
19329 # For shared libraries, we enable/disable runtime linking
19330 # depending on the kind of the shared library created -
19331 # when "with_aix_soname,aix_use_runtimelinking" is:
19332 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
19333 # "aix,yes" lib.so shared, rtl:yes, for executables
19334 # lib.a static archive
19335 # "both,no" lib.so.V(shr.o) shared, rtl:yes
19336 # lib.a(lib.so.V) shared, rtl:no, for executables
19337 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19338 # lib.a(lib.so.V) shared, rtl:no
19339 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
19340 # lib.a static archive
19341 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19342 for ld_flag in $LDFLAGS; do
19343 case $ld_flag in
19344 *-brtl*)
19345 aix_use_runtimelinking=yes
19346 break
19347 ;;
19348 esac
19349 done
19350 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19351 # With aix-soname=svr4, we create the lib.so.V shared archives only,
19352 # so we don't have lib.a shared libs to link our executables.
19353 # We have to force runtime linking in this case.
19354 aix_use_runtimelinking=yes
19355 LDFLAGS="$LDFLAGS -Wl,-brtl"
19356 fi
19357 ;;
19358 esac
19359
19360 exp_sym_flag='-bexport'
19361 no_entry_flag='-bnoentry'
19362 fi
19363
19364 # When large executables or shared objects are built, AIX ld can
19365 # have problems creating the table of contents. If linking a library
19366 # or program results in "error TOC overflow" add -mminimal-toc to
19367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19369
19370 archive_cmds_CXX=''
19371 hardcode_direct_CXX=yes
19372 hardcode_direct_absolute_CXX=yes
19373 hardcode_libdir_separator_CXX=':'
19374 link_all_deplibs_CXX=yes
19375 file_list_spec_CXX='$wl-f,'
19376 case $with_aix_soname,$aix_use_runtimelinking in
19377 aix,*) ;; # no import file
19378 svr4,* | *,yes) # use import file
19379 # The Import File defines what to hardcode.
19380 hardcode_direct_CXX=no
19381 hardcode_direct_absolute_CXX=no
19382 ;;
19383 esac
19384
19385 if test yes = "$GXX"; then
19386 case $host_os in aix4.[012]|aix4.[012].*)
19387 # We only want to do this on AIX 4.2 and lower, the check
19388 # below for broken collect2 doesn't work under 4.3+
19389 collect2name=`$CC -print-prog-name=collect2`
19390 if test -f "$collect2name" &&
19391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19392 then
19393 # We have reworked collect2
19394 :
19395 else
19396 # We have old collect2
19397 hardcode_direct_CXX=unsupported
19398 # It fails to find uninstalled libraries when the uninstalled
19399 # path is not listed in the libpath. Setting hardcode_minus_L
19400 # to unsupported forces relinking
19401 hardcode_minus_L_CXX=yes
19402 hardcode_libdir_flag_spec_CXX='-L$libdir'
19403 hardcode_libdir_separator_CXX=
19404 fi
19405 esac
19406 shared_flag='-shared'
19407 if test yes = "$aix_use_runtimelinking"; then
19408 shared_flag=$shared_flag' $wl-G'
19409 fi
19410 # Need to ensure runtime linking is disabled for the traditional
19411 # shared library, or the linker may eventually find shared libraries
19412 # /with/ Import File - we do not want to mix them.
19413 shared_flag_aix='-shared'
19414 shared_flag_svr4='-shared $wl-G'
19415 else
19416 # not using gcc
19417 if test ia64 = "$host_cpu"; then
19418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19419 # chokes on -Wl,-G. The following line is correct:
19420 shared_flag='-G'
19421 else
19422 if test yes = "$aix_use_runtimelinking"; then
19423 shared_flag='$wl-G'
19424 else
19425 shared_flag='$wl-bM:SRE'
19426 fi
19427 shared_flag_aix='$wl-bM:SRE'
19428 shared_flag_svr4='$wl-G'
19429 fi
19430 fi
19431
19432 export_dynamic_flag_spec_CXX='$wl-bexpall'
19433 # It seems that -bexpall does not export symbols beginning with
19434 # underscore (_), so it is better to generate a list of symbols to
19435 # export.
19436 always_export_symbols_CXX=yes
19437 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19438 # Warning - without using the other runtime loading flags (-brtl),
19439 # -berok will link without error, but may produce a broken library.
19440 # The "-G" linker flag allows undefined symbols.
19441 no_undefined_flag_CXX='-bernotok'
19442 # Determine the default libpath from the value encoded in an empty
19443 # executable.
19444 if test set = "${lt_cv_aix_libpath+set}"; then
19445 aix_libpath=$lt_cv_aix_libpath
19446 else
19447 if test ${lt_cv_aix_libpath__CXX+y}
19448 then :
19449 printf %s "(cached) " >&6
19450 else $as_nop
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453
19454 int
19455 main (void)
19456 {
19457
19458 ;
19459 return 0;
19460 }
19461 _ACEOF
19462 if ac_fn_cxx_try_link "$LINENO"
19463 then :
19464
19465 lt_aix_libpath_sed='
19466 /Import File Strings/,/^$/ {
19467 /^0/ {
19468 s/^0 *\([^ ]*\) *$/\1/
19469 p
19470 }
19471 }'
19472 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19473 # Check for a 64-bit object if we didn't find anything.
19474 if test -z "$lt_cv_aix_libpath__CXX"; then
19475 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19476 fi
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19479 conftest$ac_exeext conftest.$ac_ext
19480 if test -z "$lt_cv_aix_libpath__CXX"; then
19481 lt_cv_aix_libpath__CXX=/usr/lib:/lib
19482 fi
19483
19484 fi
19485
19486 aix_libpath=$lt_cv_aix_libpath__CXX
19487 fi
19488
19489 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19490
19491 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
19492 else
19493 if test ia64 = "$host_cpu"; then
19494 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
19495 allow_undefined_flag_CXX="-z nodefs"
19496 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"
19497 else
19498 # Determine the default libpath from the value encoded in an
19499 # empty executable.
19500 if test set = "${lt_cv_aix_libpath+set}"; then
19501 aix_libpath=$lt_cv_aix_libpath
19502 else
19503 if test ${lt_cv_aix_libpath__CXX+y}
19504 then :
19505 printf %s "(cached) " >&6
19506 else $as_nop
19507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19508 /* end confdefs.h. */
19509
19510 int
19511 main (void)
19512 {
19513
19514 ;
19515 return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_cxx_try_link "$LINENO"
19519 then :
19520
19521 lt_aix_libpath_sed='
19522 /Import File Strings/,/^$/ {
19523 /^0/ {
19524 s/^0 *\([^ ]*\) *$/\1/
19525 p
19526 }
19527 }'
19528 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19529 # Check for a 64-bit object if we didn't find anything.
19530 if test -z "$lt_cv_aix_libpath__CXX"; then
19531 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19532 fi
19533 fi
19534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19535 conftest$ac_exeext conftest.$ac_ext
19536 if test -z "$lt_cv_aix_libpath__CXX"; then
19537 lt_cv_aix_libpath__CXX=/usr/lib:/lib
19538 fi
19539
19540 fi
19541
19542 aix_libpath=$lt_cv_aix_libpath__CXX
19543 fi
19544
19545 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19546 # Warning - without using the other run time loading flags,
19547 # -berok will link without error, but may produce a broken library.
19548 no_undefined_flag_CXX=' $wl-bernotok'
19549 allow_undefined_flag_CXX=' $wl-berok'
19550 if test yes = "$with_gnu_ld"; then
19551 # We only use this code for GNU lds that support --whole-archive.
19552 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19553 else
19554 # Exported symbols can be pulled into shared objects from archives
19555 whole_archive_flag_spec_CXX='$convenience'
19556 fi
19557 archive_cmds_need_lc_CXX=yes
19558 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19559 # -brtl affects multiple linker settings, -berok does not and is overridden later
19560 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19561 if test svr4 != "$with_aix_soname"; then
19562 # This is similar to how AIX traditionally builds its shared
19563 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19564 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'
19565 fi
19566 if test aix != "$with_aix_soname"; then
19567 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'
19568 else
19569 # used by -dlpreopen to get the symbols
19570 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19571 fi
19572 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19573 fi
19574 fi
19575 ;;
19576
19577 beos*)
19578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19579 allow_undefined_flag_CXX=unsupported
19580 # Joseph Beckenbach <[email protected]> says some releases of gcc
19581 # support --undefined. This deserves some investigation. FIXME
19582 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19583 else
19584 ld_shlibs_CXX=no
19585 fi
19586 ;;
19587
19588 chorus*)
19589 case $cc_basename in
19590 *)
19591 # FIXME: insert proper C++ library support
19592 ld_shlibs_CXX=no
19593 ;;
19594 esac
19595 ;;
19596
19597 cygwin* | mingw* | pw32* | cegcc*)
19598 case $GXX,$cc_basename in
19599 ,cl* | no,cl* | ,icl* | no,icl*)
19600 # Native MSVC or ICC
19601 # hardcode_libdir_flag_spec is actually meaningless, as there is
19602 # no search path for DLLs.
19603 hardcode_libdir_flag_spec_CXX=' '
19604 allow_undefined_flag_CXX=unsupported
19605 always_export_symbols_CXX=yes
19606 file_list_spec_CXX='@'
19607 # Tell ltmain to make .lib files, not .a files.
19608 libext=lib
19609 # Tell ltmain to make .dll files, not .so files.
19610 shrext_cmds=.dll
19611 # FIXME: Setting linknames here is a bad hack.
19612 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19613 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19614 cp "$export_symbols" "$output_objdir/$soname.def";
19615 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19616 else
19617 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19618 fi~
19619 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19620 linknames='
19621 # The linker will not automatically build a static lib if we build a DLL.
19622 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19623 enable_shared_with_static_runtimes_CXX=yes
19624 # Don't use ranlib
19625 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19626 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19627 lt_tool_outputfile="@TOOL_OUTPUT@"~
19628 case $lt_outputfile in
19629 *.exe|*.EXE) ;;
19630 *)
19631 lt_outputfile=$lt_outputfile.exe
19632 lt_tool_outputfile=$lt_tool_outputfile.exe
19633 ;;
19634 esac~
19635 func_to_tool_file "$lt_outputfile"~
19636 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19637 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19638 $RM "$lt_outputfile.manifest";
19639 fi'
19640 ;;
19641 *)
19642 # g++
19643 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19644 # as there is no search path for DLLs.
19645 hardcode_libdir_flag_spec_CXX='-L$libdir'
19646 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
19647 allow_undefined_flag_CXX=unsupported
19648 always_export_symbols_CXX=no
19649 enable_shared_with_static_runtimes_CXX=yes
19650
19651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19652 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'
19653 # If the export-symbols file already is a .def file, use it as
19654 # is; otherwise, prepend EXPORTS...
19655 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19656 cp $export_symbols $output_objdir/$soname.def;
19657 else
19658 echo EXPORTS > $output_objdir/$soname.def;
19659 cat $export_symbols >> $output_objdir/$soname.def;
19660 fi~
19661 $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'
19662 else
19663 ld_shlibs_CXX=no
19664 fi
19665 ;;
19666 esac
19667 ;;
19668 darwin* | rhapsody*)
19669
19670
19671 archive_cmds_need_lc_CXX=no
19672 hardcode_direct_CXX=no
19673 hardcode_automatic_CXX=yes
19674 hardcode_shlibpath_var_CXX=unsupported
19675 if test yes = "$lt_cv_ld_force_load"; then
19676 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\"`'
19677
19678 else
19679 whole_archive_flag_spec_CXX=''
19680 fi
19681 link_all_deplibs_CXX=yes
19682 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
19683 case $cc_basename in
19684 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19685 *) _lt_dar_can_shared=$GCC ;;
19686 esac
19687 if test yes = "$_lt_dar_can_shared"; then
19688 output_verbose_link_cmd=func_echo_all
19689 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"
19690 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19691 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"
19692 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"
19693 if test yes != "$lt_cv_apple_cc_single_mod"; then
19694 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"
19695 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"
19696 fi
19697
19698 else
19699 ld_shlibs_CXX=no
19700 fi
19701
19702 ;;
19703
19704 os2*)
19705 hardcode_libdir_flag_spec_CXX='-L$libdir'
19706 hardcode_minus_L_CXX=yes
19707 allow_undefined_flag_CXX=unsupported
19708 shrext_cmds=.dll
19709 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19712 $ECHO EXPORTS >> $output_objdir/$libname.def~
19713 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19714 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19715 emximp -o $lib $output_objdir/$libname.def'
19716 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19719 $ECHO EXPORTS >> $output_objdir/$libname.def~
19720 prefix_cmds="$SED"~
19721 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19722 prefix_cmds="$prefix_cmds -e 1d";
19723 fi~
19724 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19725 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19726 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19727 emximp -o $lib $output_objdir/$libname.def'
19728 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19729 enable_shared_with_static_runtimes_CXX=yes
19730 file_list_spec_CXX='@'
19731 ;;
19732
19733 dgux*)
19734 case $cc_basename in
19735 ec++*)
19736 # FIXME: insert proper C++ library support
19737 ld_shlibs_CXX=no
19738 ;;
19739 ghcx*)
19740 # Green Hills C++ Compiler
19741 # FIXME: insert proper C++ library support
19742 ld_shlibs_CXX=no
19743 ;;
19744 *)
19745 # FIXME: insert proper C++ library support
19746 ld_shlibs_CXX=no
19747 ;;
19748 esac
19749 ;;
19750
19751 freebsd2.*)
19752 # C++ shared libraries reported to be fairly broken before
19753 # switch to ELF
19754 ld_shlibs_CXX=no
19755 ;;
19756
19757 freebsd-elf*)
19758 archive_cmds_need_lc_CXX=no
19759 ;;
19760
19761 freebsd* | dragonfly* | midnightbsd*)
19762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19763 # conventions
19764 ld_shlibs_CXX=yes
19765 ;;
19766
19767 haiku*)
19768 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19769 link_all_deplibs_CXX=yes
19770 ;;
19771
19772 hpux9*)
19773 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19774 hardcode_libdir_separator_CXX=:
19775 export_dynamic_flag_spec_CXX='$wl-E'
19776 hardcode_direct_CXX=yes
19777 hardcode_minus_L_CXX=yes # Not in the search PATH,
19778 # but as the default
19779 # location of the library.
19780
19781 case $cc_basename in
19782 CC*)
19783 # FIXME: insert proper C++ library support
19784 ld_shlibs_CXX=no
19785 ;;
19786 aCC*)
19787 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'
19788 # Commands to make compiler produce verbose output that lists
19789 # what "hidden" libraries, object files and flags are used when
19790 # linking a shared library.
19791 #
19792 # There doesn't appear to be a way to prevent this compiler from
19793 # explicitly linking system object files so we need to strip them
19794 # from the output so that they don't get included in the library
19795 # dependencies.
19796 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"'
19797 ;;
19798 *)
19799 if test yes = "$GXX"; then
19800 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'
19801 else
19802 # FIXME: insert proper C++ library support
19803 ld_shlibs_CXX=no
19804 fi
19805 ;;
19806 esac
19807 ;;
19808
19809 hpux10*|hpux11*)
19810 if test no = "$with_gnu_ld"; then
19811 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19812 hardcode_libdir_separator_CXX=:
19813
19814 case $host_cpu in
19815 hppa*64*|ia64*)
19816 ;;
19817 *)
19818 export_dynamic_flag_spec_CXX='$wl-E'
19819 ;;
19820 esac
19821 fi
19822 case $host_cpu in
19823 hppa*64*|ia64*)
19824 hardcode_direct_CXX=no
19825 hardcode_shlibpath_var_CXX=no
19826 ;;
19827 *)
19828 hardcode_direct_CXX=yes
19829 hardcode_direct_absolute_CXX=yes
19830 hardcode_minus_L_CXX=yes # Not in the search PATH,
19831 # but as the default
19832 # location of the library.
19833 ;;
19834 esac
19835
19836 case $cc_basename in
19837 CC*)
19838 # FIXME: insert proper C++ library support
19839 ld_shlibs_CXX=no
19840 ;;
19841 aCC*)
19842 case $host_cpu in
19843 hppa*64*)
19844 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19845 ;;
19846 ia64*)
19847 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19848 ;;
19849 *)
19850 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19851 ;;
19852 esac
19853 # Commands to make compiler produce verbose output that lists
19854 # what "hidden" libraries, object files and flags are used when
19855 # linking a shared library.
19856 #
19857 # There doesn't appear to be a way to prevent this compiler from
19858 # explicitly linking system object files so we need to strip them
19859 # from the output so that they don't get included in the library
19860 # dependencies.
19861 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"'
19862 ;;
19863 *)
19864 if test yes = "$GXX"; then
19865 if test no = "$with_gnu_ld"; then
19866 case $host_cpu in
19867 hppa*64*)
19868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19869 ;;
19870 ia64*)
19871 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19872 ;;
19873 *)
19874 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'
19875 ;;
19876 esac
19877 fi
19878 else
19879 # FIXME: insert proper C++ library support
19880 ld_shlibs_CXX=no
19881 fi
19882 ;;
19883 esac
19884 ;;
19885
19886 interix[3-9]*)
19887 hardcode_direct_CXX=no
19888 hardcode_shlibpath_var_CXX=no
19889 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19890 export_dynamic_flag_spec_CXX='$wl-E'
19891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19892 # Instead, shared libraries are loaded at an image base (0x10000000 by
19893 # default) and relocated if they conflict, which is a slow very memory
19894 # consuming and fragmenting process. To avoid this, we pick a random,
19895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19897 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'
19898 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'
19899 ;;
19900 irix5* | irix6*)
19901 case $cc_basename in
19902 CC*)
19903 # SGI C++
19904 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'
19905
19906 # Archives containing C++ object files must be created using
19907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19908 # necessary to make sure instantiated templates are included
19909 # in the archive.
19910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19911 ;;
19912 *)
19913 if test yes = "$GXX"; then
19914 if test no = "$with_gnu_ld"; then
19915 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'
19916 else
19917 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'
19918 fi
19919 fi
19920 link_all_deplibs_CXX=yes
19921 ;;
19922 esac
19923 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19924 hardcode_libdir_separator_CXX=:
19925 inherit_rpath_CXX=yes
19926 ;;
19927
19928 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19929 case $cc_basename in
19930 KCC*)
19931 # Kuck and Associates, Inc. (KAI) C++ Compiler
19932
19933 # KCC will only create a shared library if the output file
19934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19935 # to its proper name (with version) after linking.
19936 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'
19937 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'
19938 # Commands to make compiler produce verbose output that lists
19939 # what "hidden" libraries, object files and flags are used when
19940 # linking a shared library.
19941 #
19942 # There doesn't appear to be a way to prevent this compiler from
19943 # explicitly linking system object files so we need to strip them
19944 # from the output so that they don't get included in the library
19945 # dependencies.
19946 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"'
19947
19948 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19949 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19950
19951 # Archives containing C++ object files must be created using
19952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19954 ;;
19955 icpc* | ecpc* )
19956 # Intel C++
19957 with_gnu_ld=yes
19958 # version 8.0 and above of icpc choke on multiply defined symbols
19959 # if we add $predep_objects and $postdep_objects, however 7.1 and
19960 # earlier do not add the objects themselves.
19961 case `$CC -V 2>&1` in
19962 *"Version 7."*)
19963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19964 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'
19965 ;;
19966 *) # Version 8.0 or newer
19967 tmp_idyn=
19968 case $host_cpu in
19969 ia64*) tmp_idyn=' -i_dynamic';;
19970 esac
19971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19972 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'
19973 ;;
19974 esac
19975 archive_cmds_need_lc_CXX=no
19976 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19977 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19978 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19979 ;;
19980 pgCC* | pgcpp*)
19981 # Portland Group C++ compiler
19982 case `$CC -V` in
19983 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19984 prelink_cmds_CXX='tpldir=Template.dir~
19985 rm -rf $tpldir~
19986 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19987 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19988 old_archive_cmds_CXX='tpldir=Template.dir~
19989 rm -rf $tpldir~
19990 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19991 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19992 $RANLIB $oldlib'
19993 archive_cmds_CXX='tpldir=Template.dir~
19994 rm -rf $tpldir~
19995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19996 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19997 archive_expsym_cmds_CXX='tpldir=Template.dir~
19998 rm -rf $tpldir~
19999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20000 $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'
20001 ;;
20002 *) # Version 6 and above use weak symbols
20003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20004 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'
20005 ;;
20006 esac
20007
20008 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20009 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20010 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'
20011 ;;
20012 cxx*)
20013 # Compaq C++
20014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20015 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'
20016
20017 runpath_var=LD_RUN_PATH
20018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20019 hardcode_libdir_separator_CXX=:
20020
20021 # Commands to make compiler produce verbose output that lists
20022 # what "hidden" libraries, object files and flags are used when
20023 # linking a shared library.
20024 #
20025 # There doesn't appear to be a way to prevent this compiler from
20026 # explicitly linking system object files so we need to strip them
20027 # from the output so that they don't get included in the library
20028 # dependencies.
20029 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'
20030 ;;
20031 xl* | mpixl* | bgxl*)
20032 # IBM XL 8.0 on PPC, with GNU ld
20033 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20034 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20035 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20036 if test yes = "$supports_anon_versioning"; then
20037 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20038 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20039 echo "local: *; };" >> $output_objdir/$libname.ver~
20040 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20041 fi
20042 ;;
20043 *)
20044 case `$CC -V 2>&1 | $SED 5q` in
20045 *Sun\ C*)
20046 # Sun C++ 5.9
20047 no_undefined_flag_CXX=' -zdefs'
20048 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20049 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'
20050 hardcode_libdir_flag_spec_CXX='-R$libdir'
20051 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'
20052 compiler_needs_object_CXX=yes
20053
20054 # Not sure whether something based on
20055 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20056 # would be better.
20057 output_verbose_link_cmd='func_echo_all'
20058
20059 # Archives containing C++ object files must be created using
20060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20061 # necessary to make sure instantiated templates are included
20062 # in the archive.
20063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20064 ;;
20065 esac
20066 ;;
20067 esac
20068 ;;
20069
20070 lynxos*)
20071 # FIXME: insert proper C++ library support
20072 ld_shlibs_CXX=no
20073 ;;
20074
20075 m88k*)
20076 # FIXME: insert proper C++ library support
20077 ld_shlibs_CXX=no
20078 ;;
20079
20080 mvs*)
20081 case $cc_basename in
20082 cxx*)
20083 # FIXME: insert proper C++ library support
20084 ld_shlibs_CXX=no
20085 ;;
20086 *)
20087 # FIXME: insert proper C++ library support
20088 ld_shlibs_CXX=no
20089 ;;
20090 esac
20091 ;;
20092
20093 netbsd*)
20094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20095 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20096 wlarc=
20097 hardcode_libdir_flag_spec_CXX='-R$libdir'
20098 hardcode_direct_CXX=yes
20099 hardcode_shlibpath_var_CXX=no
20100 fi
20101 # Workaround some broken pre-1.5 toolchains
20102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20103 ;;
20104
20105 *nto* | *qnx*)
20106 ld_shlibs_CXX=yes
20107 ;;
20108
20109 openbsd* | bitrig*)
20110 if test -f /usr/libexec/ld.so; then
20111 hardcode_direct_CXX=yes
20112 hardcode_shlibpath_var_CXX=no
20113 hardcode_direct_absolute_CXX=yes
20114 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20115 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20117 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20118 export_dynamic_flag_spec_CXX='$wl-E'
20119 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20120 fi
20121 output_verbose_link_cmd=func_echo_all
20122 else
20123 ld_shlibs_CXX=no
20124 fi
20125 ;;
20126
20127 osf3* | osf4* | osf5*)
20128 case $cc_basename in
20129 KCC*)
20130 # Kuck and Associates, Inc. (KAI) C++ Compiler
20131
20132 # KCC will only create a shared library if the output file
20133 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20134 # to its proper name (with version) after linking.
20135 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'
20136
20137 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20138 hardcode_libdir_separator_CXX=:
20139
20140 # Archives containing C++ object files must be created using
20141 # the KAI C++ compiler.
20142 case $host in
20143 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20144 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20145 esac
20146 ;;
20147 RCC*)
20148 # Rational C++ 2.4.1
20149 # FIXME: insert proper C++ library support
20150 ld_shlibs_CXX=no
20151 ;;
20152 cxx*)
20153 case $host in
20154 osf3*)
20155 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20156 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'
20157 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20158 ;;
20159 *)
20160 allow_undefined_flag_CXX=' -expect_unresolved \*'
20161 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'
20162 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20163 echo "-hidden">> $lib.exp~
20164 $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~
20165 $RM $lib.exp'
20166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20167 ;;
20168 esac
20169
20170 hardcode_libdir_separator_CXX=:
20171
20172 # Commands to make compiler produce verbose output that lists
20173 # what "hidden" libraries, object files and flags are used when
20174 # linking a shared library.
20175 #
20176 # There doesn't appear to be a way to prevent this compiler from
20177 # explicitly linking system object files so we need to strip them
20178 # from the output so that they don't get included in the library
20179 # dependencies.
20180 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"'
20181 ;;
20182 *)
20183 if test yes,no = "$GXX,$with_gnu_ld"; then
20184 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20185 case $host in
20186 osf3*)
20187 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'
20188 ;;
20189 *)
20190 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'
20191 ;;
20192 esac
20193
20194 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20195 hardcode_libdir_separator_CXX=:
20196
20197 # Commands to make compiler produce verbose output that lists
20198 # what "hidden" libraries, object files and flags are used when
20199 # linking a shared library.
20200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20201
20202 else
20203 # FIXME: insert proper C++ library support
20204 ld_shlibs_CXX=no
20205 fi
20206 ;;
20207 esac
20208 ;;
20209
20210 psos*)
20211 # FIXME: insert proper C++ library support
20212 ld_shlibs_CXX=no
20213 ;;
20214
20215 sunos4*)
20216 case $cc_basename in
20217 CC*)
20218 # Sun C++ 4.x
20219 # FIXME: insert proper C++ library support
20220 ld_shlibs_CXX=no
20221 ;;
20222 lcc*)
20223 # Lucid
20224 # FIXME: insert proper C++ library support
20225 ld_shlibs_CXX=no
20226 ;;
20227 *)
20228 # FIXME: insert proper C++ library support
20229 ld_shlibs_CXX=no
20230 ;;
20231 esac
20232 ;;
20233
20234 solaris*)
20235 case $cc_basename in
20236 CC* | sunCC*)
20237 # Sun C++ 4.2, 5.x and Centerline C++
20238 archive_cmds_need_lc_CXX=yes
20239 no_undefined_flag_CXX=' -zdefs'
20240 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20241 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20242 $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'
20243
20244 hardcode_libdir_flag_spec_CXX='-R$libdir'
20245 hardcode_shlibpath_var_CXX=no
20246 case $host_os in
20247 solaris2.[0-5] | solaris2.[0-5].*) ;;
20248 *)
20249 # The compiler driver will combine and reorder linker options,
20250 # but understands '-z linker_flag'.
20251 # Supported since Solaris 2.6 (maybe 2.5.1?)
20252 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20253 ;;
20254 esac
20255 link_all_deplibs_CXX=yes
20256
20257 output_verbose_link_cmd='func_echo_all'
20258
20259 # Archives containing C++ object files must be created using
20260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20261 # necessary to make sure instantiated templates are included
20262 # in the archive.
20263 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20264 ;;
20265 gcx*)
20266 # Green Hills C++ Compiler
20267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20268
20269 # The C++ compiler must be used to create the archive.
20270 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20271 ;;
20272 *)
20273 # GNU C++ compiler with Solaris linker
20274 if test yes,no = "$GXX,$with_gnu_ld"; then
20275 no_undefined_flag_CXX=' $wl-z ${wl}defs'
20276 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20277 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20278 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20279 $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'
20280
20281 # Commands to make compiler produce verbose output that lists
20282 # what "hidden" libraries, object files and flags are used when
20283 # linking a shared library.
20284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20285 else
20286 # g++ 2.7 appears to require '-G' NOT '-shared' on this
20287 # platform.
20288 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20289 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20290 $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'
20291
20292 # Commands to make compiler produce verbose output that lists
20293 # what "hidden" libraries, object files and flags are used when
20294 # linking a shared library.
20295 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20296 fi
20297
20298 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
20299 case $host_os in
20300 solaris2.[0-5] | solaris2.[0-5].*) ;;
20301 *)
20302 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20303 ;;
20304 esac
20305 fi
20306 ;;
20307 esac
20308 ;;
20309
20310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20311 no_undefined_flag_CXX='$wl-z,text'
20312 archive_cmds_need_lc_CXX=no
20313 hardcode_shlibpath_var_CXX=no
20314 runpath_var='LD_RUN_PATH'
20315
20316 case $cc_basename in
20317 CC*)
20318 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20319 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20320 ;;
20321 *)
20322 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20323 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20324 ;;
20325 esac
20326 ;;
20327
20328 sysv5* | sco3.2v5* | sco5v6*)
20329 # Note: We CANNOT use -z defs as we might desire, because we do not
20330 # link with -lc, and that would cause any symbols used from libc to
20331 # always be unresolved, which means just about no library would
20332 # ever link correctly. If we're not using GNU ld we use -z text
20333 # though, which does catch some bad symbols but isn't as heavy-handed
20334 # as -z defs.
20335 no_undefined_flag_CXX='$wl-z,text'
20336 allow_undefined_flag_CXX='$wl-z,nodefs'
20337 archive_cmds_need_lc_CXX=no
20338 hardcode_shlibpath_var_CXX=no
20339 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
20340 hardcode_libdir_separator_CXX=':'
20341 link_all_deplibs_CXX=yes
20342 export_dynamic_flag_spec_CXX='$wl-Bexport'
20343 runpath_var='LD_RUN_PATH'
20344
20345 case $cc_basename in
20346 CC*)
20347 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20348 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20349 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20350 '"$old_archive_cmds_CXX"
20351 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20352 '"$reload_cmds_CXX"
20353 ;;
20354 *)
20355 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20356 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20357 ;;
20358 esac
20359 ;;
20360
20361 tandem*)
20362 case $cc_basename in
20363 NCC*)
20364 # NonStop-UX NCC 3.20
20365 # FIXME: insert proper C++ library support
20366 ld_shlibs_CXX=no
20367 ;;
20368 *)
20369 # FIXME: insert proper C++ library support
20370 ld_shlibs_CXX=no
20371 ;;
20372 esac
20373 ;;
20374
20375 vxworks*)
20376 # FIXME: insert proper C++ library support
20377 ld_shlibs_CXX=no
20378 ;;
20379
20380 *)
20381 # FIXME: insert proper C++ library support
20382 ld_shlibs_CXX=no
20383 ;;
20384 esac
20385
20386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20387 printf "%s\n" "$ld_shlibs_CXX" >&6; }
20388 test no = "$ld_shlibs_CXX" && can_build_shared=no
20389
20390 GCC_CXX=$GXX
20391 LD_CXX=$LD
20392
20393 ## CAVEAT EMPTOR:
20394 ## There is no encapsulation within the following macros, do not change
20395 ## the running order or otherwise move them around unless you know exactly
20396 ## what you are doing...
20397 # Dependencies to place before and after the object being linked:
20398 predep_objects_CXX=
20399 postdep_objects_CXX=
20400 predeps_CXX=
20401 postdeps_CXX=
20402 compiler_lib_search_path_CXX=
20403
20404 cat > conftest.$ac_ext <<_LT_EOF
20405 class Foo
20406 {
20407 public:
20408 Foo (void) { a = 0; }
20409 private:
20410 int a;
20411 };
20412 _LT_EOF
20413
20414
20415 _lt_libdeps_save_CFLAGS=$CFLAGS
20416 case "$CC $CFLAGS " in #(
20417 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20418 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20419 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20420 esac
20421
20422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20423 (eval $ac_compile) 2>&5
20424 ac_status=$?
20425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20426 test $ac_status = 0; }; then
20427 # Parse the compiler output and extract the necessary
20428 # objects, libraries and library flags.
20429
20430 # Sentinel used to keep track of whether or not we are before
20431 # the conftest object file.
20432 pre_test_object_deps_done=no
20433
20434 for p in `eval "$output_verbose_link_cmd"`; do
20435 case $prev$p in
20436
20437 -L* | -R* | -l*)
20438 # Some compilers place space between "-{L,R}" and the path.
20439 # Remove the space.
20440 if test x-L = "$p" ||
20441 test x-R = "$p"; then
20442 prev=$p
20443 continue
20444 fi
20445
20446 # Expand the sysroot to ease extracting the directories later.
20447 if test -z "$prev"; then
20448 case $p in
20449 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20450 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20451 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20452 esac
20453 fi
20454 case $p in
20455 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20456 esac
20457 if test no = "$pre_test_object_deps_done"; then
20458 case $prev in
20459 -L | -R)
20460 # Internal compiler library paths should come after those
20461 # provided the user. The postdeps already come after the
20462 # user supplied libs so there is no need to process them.
20463 if test -z "$compiler_lib_search_path_CXX"; then
20464 compiler_lib_search_path_CXX=$prev$p
20465 else
20466 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
20467 fi
20468 ;;
20469 # The "-l" case would never come before the object being
20470 # linked, so don't bother handling this case.
20471 esac
20472 else
20473 if test -z "$postdeps_CXX"; then
20474 postdeps_CXX=$prev$p
20475 else
20476 postdeps_CXX="${postdeps_CXX} $prev$p"
20477 fi
20478 fi
20479 prev=
20480 ;;
20481
20482 *.lto.$objext) ;; # Ignore GCC LTO objects
20483 *.$objext)
20484 # This assumes that the test object file only shows up
20485 # once in the compiler output.
20486 if test "$p" = "conftest.$objext"; then
20487 pre_test_object_deps_done=yes
20488 continue
20489 fi
20490
20491 if test no = "$pre_test_object_deps_done"; then
20492 if test -z "$predep_objects_CXX"; then
20493 predep_objects_CXX=$p
20494 else
20495 predep_objects_CXX="$predep_objects_CXX $p"
20496 fi
20497 else
20498 if test -z "$postdep_objects_CXX"; then
20499 postdep_objects_CXX=$p
20500 else
20501 postdep_objects_CXX="$postdep_objects_CXX $p"
20502 fi
20503 fi
20504 ;;
20505
20506 *) ;; # Ignore the rest.
20507
20508 esac
20509 done
20510
20511 # Clean up.
20512 rm -f a.out a.exe
20513 else
20514 echo "libtool.m4: error: problem compiling CXX test program"
20515 fi
20516
20517 $RM -f confest.$objext
20518 CFLAGS=$_lt_libdeps_save_CFLAGS
20519
20520 # PORTME: override above test on systems where it is broken
20521 case $host_os in
20522 interix[3-9]*)
20523 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20524 # hack all around it, let's just trust "g++" to DTRT.
20525 predep_objects_CXX=
20526 postdep_objects_CXX=
20527 postdeps_CXX=
20528 ;;
20529 esac
20530
20531
20532 case " $postdeps_CXX " in
20533 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20534 esac
20535 compiler_lib_search_dirs_CXX=
20536 if test -n "${compiler_lib_search_path_CXX}"; then
20537 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20538 fi
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570 lt_prog_compiler_wl_CXX=
20571 lt_prog_compiler_pic_CXX=
20572 lt_prog_compiler_static_CXX=
20573
20574
20575 # C++ specific cases for pic, static, wl, etc.
20576 if test yes = "$GXX"; then
20577 lt_prog_compiler_wl_CXX='-Wl,'
20578 lt_prog_compiler_static_CXX='-static'
20579
20580 case $host_os in
20581 aix*)
20582 # All AIX code is PIC.
20583 if test ia64 = "$host_cpu"; then
20584 # AIX 5 now supports IA64 processor
20585 lt_prog_compiler_static_CXX='-Bstatic'
20586 fi
20587 lt_prog_compiler_pic_CXX='-fPIC'
20588 ;;
20589
20590 amigaos*)
20591 case $host_cpu in
20592 powerpc)
20593 # see comment about AmigaOS4 .so support
20594 lt_prog_compiler_pic_CXX='-fPIC'
20595 ;;
20596 m68k)
20597 # FIXME: we need at least 68020 code to build shared libraries, but
20598 # adding the '-m68020' flag to GCC prevents building anything better,
20599 # like '-m68040'.
20600 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20601 ;;
20602 esac
20603 ;;
20604
20605 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20606 # PIC is the default for these OSes.
20607 ;;
20608 mingw* | cygwin* | os2* | pw32* | cegcc*)
20609 # This hack is so that the source file can tell whether it is being
20610 # built for inclusion in a dll (and should export symbols for example).
20611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20612 # (--disable-auto-import) libraries
20613 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20614 case $host_os in
20615 os2*)
20616 lt_prog_compiler_static_CXX='$wl-static'
20617 ;;
20618 esac
20619 ;;
20620 darwin* | rhapsody*)
20621 # PIC is the default on this platform
20622 # Common symbols not allowed in MH_DYLIB files
20623 lt_prog_compiler_pic_CXX='-fno-common'
20624 ;;
20625 *djgpp*)
20626 # DJGPP does not support shared libraries at all
20627 lt_prog_compiler_pic_CXX=
20628 ;;
20629 haiku*)
20630 # PIC is the default for Haiku.
20631 # The "-static" flag exists, but is broken.
20632 lt_prog_compiler_static_CXX=
20633 ;;
20634 interix[3-9]*)
20635 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20636 # Instead, we relocate shared libraries at runtime.
20637 ;;
20638 sysv4*MP*)
20639 if test -d /usr/nec; then
20640 lt_prog_compiler_pic_CXX=-Kconform_pic
20641 fi
20642 ;;
20643 hpux*)
20644 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20645 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20646 # sets the default TLS model and affects inlining.
20647 case $host_cpu in
20648 hppa*64*)
20649 ;;
20650 *)
20651 lt_prog_compiler_pic_CXX='-fPIC'
20652 ;;
20653 esac
20654 ;;
20655 *qnx* | *nto*)
20656 # QNX uses GNU C++, but need to define -shared option too, otherwise
20657 # it will coredump.
20658 lt_prog_compiler_pic_CXX='-fPIC -shared'
20659 ;;
20660 *)
20661 lt_prog_compiler_pic_CXX='-fPIC'
20662 ;;
20663 esac
20664 else
20665 case $host_os in
20666 aix[4-9]*)
20667 # All AIX code is PIC.
20668 if test ia64 = "$host_cpu"; then
20669 # AIX 5 now supports IA64 processor
20670 lt_prog_compiler_static_CXX='-Bstatic'
20671 else
20672 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20673 fi
20674 ;;
20675 chorus*)
20676 case $cc_basename in
20677 cxch68*)
20678 # Green Hills C++ Compiler
20679 # _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"
20680 ;;
20681 esac
20682 ;;
20683 mingw* | cygwin* | os2* | pw32* | cegcc*)
20684 # This hack is so that the source file can tell whether it is being
20685 # built for inclusion in a dll (and should export symbols for example).
20686 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20687 ;;
20688 dgux*)
20689 case $cc_basename in
20690 ec++*)
20691 lt_prog_compiler_pic_CXX='-KPIC'
20692 ;;
20693 ghcx*)
20694 # Green Hills C++ Compiler
20695 lt_prog_compiler_pic_CXX='-pic'
20696 ;;
20697 *)
20698 ;;
20699 esac
20700 ;;
20701 freebsd* | dragonfly* | midnightbsd*)
20702 # FreeBSD uses GNU C++
20703 ;;
20704 hpux9* | hpux10* | hpux11*)
20705 case $cc_basename in
20706 CC*)
20707 lt_prog_compiler_wl_CXX='-Wl,'
20708 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20709 if test ia64 != "$host_cpu"; then
20710 lt_prog_compiler_pic_CXX='+Z'
20711 fi
20712 ;;
20713 aCC*)
20714 lt_prog_compiler_wl_CXX='-Wl,'
20715 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20716 case $host_cpu in
20717 hppa*64*|ia64*)
20718 # +Z the default
20719 ;;
20720 *)
20721 lt_prog_compiler_pic_CXX='+Z'
20722 ;;
20723 esac
20724 ;;
20725 *)
20726 ;;
20727 esac
20728 ;;
20729 interix*)
20730 # This is c89, which is MS Visual C++ (no shared libs)
20731 # Anyone wants to do a port?
20732 ;;
20733 irix5* | irix6* | nonstopux*)
20734 case $cc_basename in
20735 CC*)
20736 lt_prog_compiler_wl_CXX='-Wl,'
20737 lt_prog_compiler_static_CXX='-non_shared'
20738 # CC pic flag -KPIC is the default.
20739 ;;
20740 *)
20741 ;;
20742 esac
20743 ;;
20744 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20745 case $cc_basename in
20746 KCC*)
20747 # KAI C++ Compiler
20748 lt_prog_compiler_wl_CXX='--backend -Wl,'
20749 lt_prog_compiler_pic_CXX='-fPIC'
20750 ;;
20751 ecpc* )
20752 # old Intel C++ for x86_64, which still supported -KPIC.
20753 lt_prog_compiler_wl_CXX='-Wl,'
20754 lt_prog_compiler_pic_CXX='-KPIC'
20755 lt_prog_compiler_static_CXX='-static'
20756 ;;
20757 icpc* )
20758 # Intel C++, used to be incompatible with GCC.
20759 # ICC 10 doesn't accept -KPIC any more.
20760 lt_prog_compiler_wl_CXX='-Wl,'
20761 lt_prog_compiler_pic_CXX='-fPIC'
20762 lt_prog_compiler_static_CXX='-static'
20763 ;;
20764 pgCC* | pgcpp*)
20765 # Portland Group C++ compiler
20766 lt_prog_compiler_wl_CXX='-Wl,'
20767 lt_prog_compiler_pic_CXX='-fpic'
20768 lt_prog_compiler_static_CXX='-Bstatic'
20769 ;;
20770 cxx*)
20771 # Compaq C++
20772 # Make sure the PIC flag is empty. It appears that all Alpha
20773 # Linux and Compaq Tru64 Unix objects are PIC.
20774 lt_prog_compiler_pic_CXX=
20775 lt_prog_compiler_static_CXX='-non_shared'
20776 ;;
20777 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20778 # IBM XL 8.0, 9.0 on PPC and BlueGene
20779 lt_prog_compiler_wl_CXX='-Wl,'
20780 lt_prog_compiler_pic_CXX='-qpic'
20781 lt_prog_compiler_static_CXX='-qstaticlink'
20782 ;;
20783 *)
20784 case `$CC -V 2>&1 | $SED 5q` in
20785 *Sun\ C*)
20786 # Sun C++ 5.9
20787 lt_prog_compiler_pic_CXX='-KPIC'
20788 lt_prog_compiler_static_CXX='-Bstatic'
20789 lt_prog_compiler_wl_CXX='-Qoption ld '
20790 ;;
20791 esac
20792 ;;
20793 esac
20794 ;;
20795 lynxos*)
20796 ;;
20797 m88k*)
20798 ;;
20799 mvs*)
20800 case $cc_basename in
20801 cxx*)
20802 lt_prog_compiler_pic_CXX='-W c,exportall'
20803 ;;
20804 *)
20805 ;;
20806 esac
20807 ;;
20808 netbsd* | netbsdelf*-gnu)
20809 ;;
20810 *qnx* | *nto*)
20811 # QNX uses GNU C++, but need to define -shared option too, otherwise
20812 # it will coredump.
20813 lt_prog_compiler_pic_CXX='-fPIC -shared'
20814 ;;
20815 osf3* | osf4* | osf5*)
20816 case $cc_basename in
20817 KCC*)
20818 lt_prog_compiler_wl_CXX='--backend -Wl,'
20819 ;;
20820 RCC*)
20821 # Rational C++ 2.4.1
20822 lt_prog_compiler_pic_CXX='-pic'
20823 ;;
20824 cxx*)
20825 # Digital/Compaq C++
20826 lt_prog_compiler_wl_CXX='-Wl,'
20827 # Make sure the PIC flag is empty. It appears that all Alpha
20828 # Linux and Compaq Tru64 Unix objects are PIC.
20829 lt_prog_compiler_pic_CXX=
20830 lt_prog_compiler_static_CXX='-non_shared'
20831 ;;
20832 *)
20833 ;;
20834 esac
20835 ;;
20836 psos*)
20837 ;;
20838 solaris*)
20839 case $cc_basename in
20840 CC* | sunCC*)
20841 # Sun C++ 4.2, 5.x and Centerline C++
20842 lt_prog_compiler_pic_CXX='-KPIC'
20843 lt_prog_compiler_static_CXX='-Bstatic'
20844 lt_prog_compiler_wl_CXX='-Qoption ld '
20845 ;;
20846 gcx*)
20847 # Green Hills C++ Compiler
20848 lt_prog_compiler_pic_CXX='-PIC'
20849 ;;
20850 *)
20851 ;;
20852 esac
20853 ;;
20854 sunos4*)
20855 case $cc_basename in
20856 CC*)
20857 # Sun C++ 4.x
20858 lt_prog_compiler_pic_CXX='-pic'
20859 lt_prog_compiler_static_CXX='-Bstatic'
20860 ;;
20861 lcc*)
20862 # Lucid
20863 lt_prog_compiler_pic_CXX='-pic'
20864 ;;
20865 *)
20866 ;;
20867 esac
20868 ;;
20869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20870 case $cc_basename in
20871 CC*)
20872 lt_prog_compiler_wl_CXX='-Wl,'
20873 lt_prog_compiler_pic_CXX='-KPIC'
20874 lt_prog_compiler_static_CXX='-Bstatic'
20875 ;;
20876 esac
20877 ;;
20878 tandem*)
20879 case $cc_basename in
20880 NCC*)
20881 # NonStop-UX NCC 3.20
20882 lt_prog_compiler_pic_CXX='-KPIC'
20883 ;;
20884 *)
20885 ;;
20886 esac
20887 ;;
20888 vxworks*)
20889 ;;
20890 *)
20891 lt_prog_compiler_can_build_shared_CXX=no
20892 ;;
20893 esac
20894 fi
20895
20896 case $host_os in
20897 # For platforms that do not support PIC, -DPIC is meaningless:
20898 *djgpp*)
20899 lt_prog_compiler_pic_CXX=
20900 ;;
20901 *)
20902 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20903 ;;
20904 esac
20905
20906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20907 printf %s "checking for $compiler option to produce PIC... " >&6; }
20908 if test ${lt_cv_prog_compiler_pic_CXX+y}
20909 then :
20910 printf %s "(cached) " >&6
20911 else $as_nop
20912 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20913 fi
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20915 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20916 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20917
20918 #
20919 # Check to make sure the PIC flag actually works.
20920 #
20921 if test -n "$lt_prog_compiler_pic_CXX"; then
20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20923 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20924 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20925 then :
20926 printf %s "(cached) " >&6
20927 else $as_nop
20928 lt_cv_prog_compiler_pic_works_CXX=no
20929 ac_outfile=conftest.$ac_objext
20930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20931 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20932 # Insert the option either (1) after the last *FLAGS variable, or
20933 # (2) before a word containing "conftest.", or (3) at the end.
20934 # Note that $ac_compile itself does not contain backslashes and begins
20935 # with a dollar sign (not a hyphen), so the echo should work correctly.
20936 # The option is referenced via a variable to avoid confusing sed.
20937 lt_compile=`echo "$ac_compile" | $SED \
20938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20940 -e 's:$: $lt_compiler_flag:'`
20941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20942 (eval "$lt_compile" 2>conftest.err)
20943 ac_status=$?
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 if (exit $ac_status) && test -s "$ac_outfile"; then
20947 # The compiler can only warn and ignore the option if not recognized
20948 # So say no if there are warnings other than the usual output.
20949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20952 lt_cv_prog_compiler_pic_works_CXX=yes
20953 fi
20954 fi
20955 $RM conftest*
20956
20957 fi
20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20959 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20960
20961 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20962 case $lt_prog_compiler_pic_CXX in
20963 "" | " "*) ;;
20964 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20965 esac
20966 else
20967 lt_prog_compiler_pic_CXX=
20968 lt_prog_compiler_can_build_shared_CXX=no
20969 fi
20970
20971 fi
20972
20973
20974
20975
20976
20977 #
20978 # Check to make sure the static flag actually works.
20979 #
20980 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20982 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20983 if test ${lt_cv_prog_compiler_static_works_CXX+y}
20984 then :
20985 printf %s "(cached) " >&6
20986 else $as_nop
20987 lt_cv_prog_compiler_static_works_CXX=no
20988 save_LDFLAGS=$LDFLAGS
20989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20992 # The linker can only warn and ignore the option if not recognized
20993 # So say no if there are warnings
20994 if test -s conftest.err; then
20995 # Append any errors to the config.log.
20996 cat conftest.err 1>&5
20997 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20999 if diff conftest.exp conftest.er2 >/dev/null; then
21000 lt_cv_prog_compiler_static_works_CXX=yes
21001 fi
21002 else
21003 lt_cv_prog_compiler_static_works_CXX=yes
21004 fi
21005 fi
21006 $RM -r conftest*
21007 LDFLAGS=$save_LDFLAGS
21008
21009 fi
21010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21011 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21012
21013 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21014 :
21015 else
21016 lt_prog_compiler_static_CXX=
21017 fi
21018
21019
21020
21021
21022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21023 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21024 if test ${lt_cv_prog_compiler_c_o_CXX+y}
21025 then :
21026 printf %s "(cached) " >&6
21027 else $as_nop
21028 lt_cv_prog_compiler_c_o_CXX=no
21029 $RM -r conftest 2>/dev/null
21030 mkdir conftest
21031 cd conftest
21032 mkdir out
21033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21034
21035 lt_compiler_flag="-o out/conftest2.$ac_objext"
21036 # Insert the option either (1) after the last *FLAGS variable, or
21037 # (2) before a word containing "conftest.", or (3) at the end.
21038 # Note that $ac_compile itself does not contain backslashes and begins
21039 # with a dollar sign (not a hyphen), so the echo should work correctly.
21040 lt_compile=`echo "$ac_compile" | $SED \
21041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21043 -e 's:$: $lt_compiler_flag:'`
21044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21045 (eval "$lt_compile" 2>out/conftest.err)
21046 ac_status=$?
21047 cat out/conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21050 then
21051 # The compiler can only warn and ignore the option if not recognized
21052 # So say no if there are warnings
21053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21056 lt_cv_prog_compiler_c_o_CXX=yes
21057 fi
21058 fi
21059 chmod u+w . 2>&5
21060 $RM conftest*
21061 # SGI C++ compiler will create directory out/ii_files/ for
21062 # template instantiation
21063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21064 $RM out/* && rmdir out
21065 cd ..
21066 $RM -r conftest
21067 $RM conftest*
21068
21069 fi
21070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21071 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21072
21073
21074
21075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21076 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21077 if test ${lt_cv_prog_compiler_c_o_CXX+y}
21078 then :
21079 printf %s "(cached) " >&6
21080 else $as_nop
21081 lt_cv_prog_compiler_c_o_CXX=no
21082 $RM -r conftest 2>/dev/null
21083 mkdir conftest
21084 cd conftest
21085 mkdir out
21086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21087
21088 lt_compiler_flag="-o out/conftest2.$ac_objext"
21089 # Insert the option either (1) after the last *FLAGS variable, or
21090 # (2) before a word containing "conftest.", or (3) at the end.
21091 # Note that $ac_compile itself does not contain backslashes and begins
21092 # with a dollar sign (not a hyphen), so the echo should work correctly.
21093 lt_compile=`echo "$ac_compile" | $SED \
21094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21096 -e 's:$: $lt_compiler_flag:'`
21097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21098 (eval "$lt_compile" 2>out/conftest.err)
21099 ac_status=$?
21100 cat out/conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21103 then
21104 # The compiler can only warn and ignore the option if not recognized
21105 # So say no if there are warnings
21106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21109 lt_cv_prog_compiler_c_o_CXX=yes
21110 fi
21111 fi
21112 chmod u+w . 2>&5
21113 $RM conftest*
21114 # SGI C++ compiler will create directory out/ii_files/ for
21115 # template instantiation
21116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21117 $RM out/* && rmdir out
21118 cd ..
21119 $RM -r conftest
21120 $RM conftest*
21121
21122 fi
21123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21124 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21125
21126
21127
21128
21129 hard_links=nottested
21130 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
21131 # do not overwrite the value of need_locks provided by the user
21132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21133 printf %s "checking if we can lock with hard links... " >&6; }
21134 hard_links=yes
21135 $RM conftest*
21136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21137 touch conftest.a
21138 ln conftest.a conftest.b 2>&5 || hard_links=no
21139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21141 printf "%s\n" "$hard_links" >&6; }
21142 if test no = "$hard_links"; then
21143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21144 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
21145 need_locks=warn
21146 fi
21147 else
21148 need_locks=no
21149 fi
21150
21151
21152
21153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21154 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21155
21156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21157 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21158 case $host_os in
21159 aix[4-9]*)
21160 # If we're using GNU nm, then we don't want the "-C" option.
21161 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21162 # Without the "-l" option, or with the "-B" option, AIX nm treats
21163 # weak defined symbols like other global defined symbols, whereas
21164 # GNU nm marks them as "W".
21165 # While the 'weak' keyword is ignored in the Export File, we need
21166 # it in the Import File for the 'aix-soname' feature, so we have
21167 # to replace the "-B" option with "-P" for AIX nm.
21168 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21169 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'
21170 else
21171 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'
21172 fi
21173 ;;
21174 pw32*)
21175 export_symbols_cmds_CXX=$ltdll_cmds
21176 ;;
21177 cygwin* | mingw* | cegcc*)
21178 case $cc_basename in
21179 cl* | icl*)
21180 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21181 ;;
21182 *)
21183 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'
21184 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21185 ;;
21186 esac
21187 ;;
21188 linux* | k*bsd*-gnu | gnu*)
21189 link_all_deplibs_CXX=no
21190 ;;
21191 *)
21192 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21193 ;;
21194 esac
21195
21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21197 printf "%s\n" "$ld_shlibs_CXX" >&6; }
21198 test no = "$ld_shlibs_CXX" && can_build_shared=no
21199
21200 with_gnu_ld_CXX=$with_gnu_ld
21201
21202
21203
21204
21205
21206
21207 #
21208 # Do we need to explicitly link libc?
21209 #
21210 case "x$archive_cmds_need_lc_CXX" in
21211 x|xyes)
21212 # Assume -lc should be added
21213 archive_cmds_need_lc_CXX=yes
21214
21215 if test yes,yes = "$GCC,$enable_shared"; then
21216 case $archive_cmds_CXX in
21217 *'~'*)
21218 # FIXME: we may have to deal with multi-command sequences.
21219 ;;
21220 '$CC '*)
21221 # Test whether the compiler implicitly links with -lc since on some
21222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21223 # to ld, don't add -lc before -lgcc.
21224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21225 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
21226 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
21227 then :
21228 printf %s "(cached) " >&6
21229 else $as_nop
21230 $RM conftest*
21231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21232
21233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21234 (eval $ac_compile) 2>&5
21235 ac_status=$?
21236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21237 test $ac_status = 0; } 2>conftest.err; then
21238 soname=conftest
21239 lib=conftest
21240 libobjs=conftest.$ac_objext
21241 deplibs=
21242 wl=$lt_prog_compiler_wl_CXX
21243 pic_flag=$lt_prog_compiler_pic_CXX
21244 compiler_flags=-v
21245 linker_flags=-v
21246 verstring=
21247 output_objdir=.
21248 libname=conftest
21249 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21250 allow_undefined_flag_CXX=
21251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21252 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21253 ac_status=$?
21254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21255 test $ac_status = 0; }
21256 then
21257 lt_cv_archive_cmds_need_lc_CXX=no
21258 else
21259 lt_cv_archive_cmds_need_lc_CXX=yes
21260 fi
21261 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21262 else
21263 cat conftest.err 1>&5
21264 fi
21265 $RM conftest*
21266
21267 fi
21268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21269 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21270 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21271 ;;
21272 esac
21273 fi
21274 ;;
21275 esac
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21339 printf %s "checking dynamic linker characteristics... " >&6; }
21340
21341 library_names_spec=
21342 libname_spec='lib$name'
21343 soname_spec=
21344 shrext_cmds=.so
21345 postinstall_cmds=
21346 postuninstall_cmds=
21347 finish_cmds=
21348 finish_eval=
21349 shlibpath_var=
21350 shlibpath_overrides_runpath=unknown
21351 version_type=none
21352 dynamic_linker="$host_os ld.so"
21353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21354 need_lib_prefix=unknown
21355 hardcode_into_libs=no
21356
21357 # when you set need_version to no, make sure it does not cause -set_version
21358 # flags to be left without arguments
21359 need_version=unknown
21360
21361
21362
21363 case $host_os in
21364 aix3*)
21365 version_type=linux # correct to gnu/linux during the next big refactor
21366 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21367 shlibpath_var=LIBPATH
21368
21369 # AIX 3 has no versioning support, so we append a major version to the name.
21370 soname_spec='$libname$release$shared_ext$major'
21371 ;;
21372
21373 aix[4-9]*)
21374 version_type=linux # correct to gnu/linux during the next big refactor
21375 need_lib_prefix=no
21376 need_version=no
21377 hardcode_into_libs=yes
21378 if test ia64 = "$host_cpu"; then
21379 # AIX 5 supports IA64
21380 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21381 shlibpath_var=LD_LIBRARY_PATH
21382 else
21383 # With GCC up to 2.95.x, collect2 would create an import file
21384 # for dependence libraries. The import file would start with
21385 # the line '#! .'. This would cause the generated library to
21386 # depend on '.', always an invalid library. This was fixed in
21387 # development snapshots of GCC prior to 3.0.
21388 case $host_os in
21389 aix4 | aix4.[01] | aix4.[01].*)
21390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21391 echo ' yes '
21392 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21393 :
21394 else
21395 can_build_shared=no
21396 fi
21397 ;;
21398 esac
21399 # Using Import Files as archive members, it is possible to support
21400 # filename-based versioning of shared library archives on AIX. While
21401 # this would work for both with and without runtime linking, it will
21402 # prevent static linking of such archives. So we do filename-based
21403 # shared library versioning with .so extension only, which is used
21404 # when both runtime linking and shared linking is enabled.
21405 # Unfortunately, runtime linking may impact performance, so we do
21406 # not want this to be the default eventually. Also, we use the
21407 # versioned .so libs for executables only if there is the -brtl
21408 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21409 # To allow for filename-based versioning support, we need to create
21410 # libNAME.so.V as an archive file, containing:
21411 # *) an Import File, referring to the versioned filename of the
21412 # archive as well as the shared archive member, telling the
21413 # bitwidth (32 or 64) of that shared object, and providing the
21414 # list of exported symbols of that shared object, eventually
21415 # decorated with the 'weak' keyword
21416 # *) the shared object with the F_LOADONLY flag set, to really avoid
21417 # it being seen by the linker.
21418 # At run time we better use the real file rather than another symlink,
21419 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21420
21421 case $with_aix_soname,$aix_use_runtimelinking in
21422 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21423 # soname into executable. Probably we can add versioning support to
21424 # collect2, so additional links can be useful in future.
21425 aix,yes) # traditional libtool
21426 dynamic_linker='AIX unversionable lib.so'
21427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21428 # instead of lib<name>.a to let people know that these are not
21429 # typical AIX shared libraries.
21430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21431 ;;
21432 aix,no) # traditional AIX only
21433 dynamic_linker='AIX lib.a(lib.so.V)'
21434 # We preserve .a as extension for shared libraries through AIX4.2
21435 # and later when we are not doing run time linking.
21436 library_names_spec='$libname$release.a $libname.a'
21437 soname_spec='$libname$release$shared_ext$major'
21438 ;;
21439 svr4,*) # full svr4 only
21440 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21441 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21442 # We do not specify a path in Import Files, so LIBPATH fires.
21443 shlibpath_overrides_runpath=yes
21444 ;;
21445 *,yes) # both, prefer svr4
21446 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21447 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21448 # unpreferred sharedlib libNAME.a needs extra handling
21449 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"'
21450 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"'
21451 # We do not specify a path in Import Files, so LIBPATH fires.
21452 shlibpath_overrides_runpath=yes
21453 ;;
21454 *,no) # both, prefer aix
21455 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21456 library_names_spec='$libname$release.a $libname.a'
21457 soname_spec='$libname$release$shared_ext$major'
21458 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21459 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)'
21460 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"'
21461 ;;
21462 esac
21463 shlibpath_var=LIBPATH
21464 fi
21465 ;;
21466
21467 amigaos*)
21468 case $host_cpu in
21469 powerpc)
21470 # Since July 2007 AmigaOS4 officially supports .so libraries.
21471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21473 ;;
21474 m68k)
21475 library_names_spec='$libname.ixlibrary $libname.a'
21476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21477 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'
21478 ;;
21479 esac
21480 ;;
21481
21482 beos*)
21483 library_names_spec='$libname$shared_ext'
21484 dynamic_linker="$host_os ld.so"
21485 shlibpath_var=LIBRARY_PATH
21486 ;;
21487
21488 bsdi[45]*)
21489 version_type=linux # correct to gnu/linux during the next big refactor
21490 need_version=no
21491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21492 soname_spec='$libname$release$shared_ext$major'
21493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21494 shlibpath_var=LD_LIBRARY_PATH
21495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21497 # the default ld.so.conf also contains /usr/contrib/lib and
21498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21499 # libtool to hard-code these into programs
21500 ;;
21501
21502 cygwin* | mingw* | pw32* | cegcc*)
21503 version_type=windows
21504 shrext_cmds=.dll
21505 need_version=no
21506 need_lib_prefix=no
21507
21508 case $GCC,$cc_basename in
21509 yes,*)
21510 # gcc
21511 library_names_spec='$libname.dll.a'
21512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21513 postinstall_cmds='base_file=`basename \$file`~
21514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21515 dldir=$destdir/`dirname \$dlpath`~
21516 test -d \$dldir || mkdir -p \$dldir~
21517 $install_prog $dir/$dlname \$dldir/$dlname~
21518 chmod a+x \$dldir/$dlname~
21519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21521 fi'
21522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21523 dlpath=$dir/\$dldll~
21524 $RM \$dlpath'
21525 shlibpath_overrides_runpath=yes
21526
21527 case $host_os in
21528 cygwin*)
21529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21530 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21531
21532 ;;
21533 mingw* | cegcc*)
21534 # MinGW DLLs use traditional 'lib' prefix
21535 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21536 ;;
21537 pw32*)
21538 # pw32 DLLs use 'pw' prefix rather than 'lib'
21539 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21540 ;;
21541 esac
21542 dynamic_linker='Win32 ld.exe'
21543 ;;
21544
21545 *,cl* | *,icl*)
21546 # Native MSVC or ICC
21547 libname_spec='$name'
21548 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21549 library_names_spec='$libname.dll.lib'
21550
21551 case $build_os in
21552 mingw*)
21553 sys_lib_search_path_spec=
21554 lt_save_ifs=$IFS
21555 IFS=';'
21556 for lt_path in $LIB
21557 do
21558 IFS=$lt_save_ifs
21559 # Let DOS variable expansion print the short 8.3 style file name.
21560 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21561 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21562 done
21563 IFS=$lt_save_ifs
21564 # Convert to MSYS style.
21565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21566 ;;
21567 cygwin*)
21568 # Convert to unix form, then to dos form, then back to unix form
21569 # but this time dos style (no spaces!) so that the unix form looks
21570 # like /cygdrive/c/PROGRA~1:/cygdr...
21571 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21572 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21573 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21574 ;;
21575 *)
21576 sys_lib_search_path_spec=$LIB
21577 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21578 # It is most probably a Windows format PATH.
21579 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21580 else
21581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21582 fi
21583 # FIXME: find the short name or the path components, as spaces are
21584 # common. (e.g. "Program Files" -> "PROGRA~1")
21585 ;;
21586 esac
21587
21588 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21589 postinstall_cmds='base_file=`basename \$file`~
21590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21591 dldir=$destdir/`dirname \$dlpath`~
21592 test -d \$dldir || mkdir -p \$dldir~
21593 $install_prog $dir/$dlname \$dldir/$dlname'
21594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21595 dlpath=$dir/\$dldll~
21596 $RM \$dlpath'
21597 shlibpath_overrides_runpath=yes
21598 dynamic_linker='Win32 link.exe'
21599 ;;
21600
21601 *)
21602 # Assume MSVC and ICC wrapper
21603 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21604 dynamic_linker='Win32 ld.exe'
21605 ;;
21606 esac
21607 # FIXME: first we should search . and the directory the executable is in
21608 shlibpath_var=PATH
21609 ;;
21610
21611 darwin* | rhapsody*)
21612 dynamic_linker="$host_os dyld"
21613 version_type=darwin
21614 need_lib_prefix=no
21615 need_version=no
21616 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21617 soname_spec='$libname$release$major$shared_ext'
21618 shlibpath_overrides_runpath=yes
21619 shlibpath_var=DYLD_LIBRARY_PATH
21620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21621
21622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21623 ;;
21624
21625 dgux*)
21626 version_type=linux # correct to gnu/linux during the next big refactor
21627 need_lib_prefix=no
21628 need_version=no
21629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21630 soname_spec='$libname$release$shared_ext$major'
21631 shlibpath_var=LD_LIBRARY_PATH
21632 ;;
21633
21634 freebsd* | dragonfly* | midnightbsd*)
21635 # DragonFly does not have aout. When/if they implement a new
21636 # versioning mechanism, adjust this.
21637 if test -x /usr/bin/objformat; then
21638 objformat=`/usr/bin/objformat`
21639 else
21640 case $host_os in
21641 freebsd[23].*) objformat=aout ;;
21642 *) objformat=elf ;;
21643 esac
21644 fi
21645 version_type=freebsd-$objformat
21646 case $version_type in
21647 freebsd-elf*)
21648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21649 soname_spec='$libname$release$shared_ext$major'
21650 need_version=no
21651 need_lib_prefix=no
21652 ;;
21653 freebsd-*)
21654 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21655 need_version=yes
21656 ;;
21657 esac
21658 shlibpath_var=LD_LIBRARY_PATH
21659 case $host_os in
21660 freebsd2.*)
21661 shlibpath_overrides_runpath=yes
21662 ;;
21663 freebsd3.[01]* | freebsdelf3.[01]*)
21664 shlibpath_overrides_runpath=yes
21665 hardcode_into_libs=yes
21666 ;;
21667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21669 shlibpath_overrides_runpath=no
21670 hardcode_into_libs=yes
21671 ;;
21672 *) # from 4.6 on, and DragonFly
21673 shlibpath_overrides_runpath=yes
21674 hardcode_into_libs=yes
21675 ;;
21676 esac
21677 ;;
21678
21679 haiku*)
21680 version_type=linux # correct to gnu/linux during the next big refactor
21681 need_lib_prefix=no
21682 need_version=no
21683 dynamic_linker="$host_os runtime_loader"
21684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21685 soname_spec='$libname$release$shared_ext$major'
21686 shlibpath_var=LIBRARY_PATH
21687 shlibpath_overrides_runpath=no
21688 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21689 hardcode_into_libs=yes
21690 ;;
21691
21692 hpux9* | hpux10* | hpux11*)
21693 # Give a soname corresponding to the major version so that dld.sl refuses to
21694 # link against other versions.
21695 version_type=sunos
21696 need_lib_prefix=no
21697 need_version=no
21698 case $host_cpu in
21699 ia64*)
21700 shrext_cmds='.so'
21701 hardcode_into_libs=yes
21702 dynamic_linker="$host_os dld.so"
21703 shlibpath_var=LD_LIBRARY_PATH
21704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21706 soname_spec='$libname$release$shared_ext$major'
21707 if test 32 = "$HPUX_IA64_MODE"; then
21708 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21709 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21710 else
21711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21712 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21713 fi
21714 ;;
21715 hppa*64*)
21716 shrext_cmds='.sl'
21717 hardcode_into_libs=yes
21718 dynamic_linker="$host_os dld.sl"
21719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21722 soname_spec='$libname$release$shared_ext$major'
21723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21725 ;;
21726 *)
21727 shrext_cmds='.sl'
21728 dynamic_linker="$host_os dld.sl"
21729 shlibpath_var=SHLIB_PATH
21730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21732 soname_spec='$libname$release$shared_ext$major'
21733 ;;
21734 esac
21735 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21736 postinstall_cmds='chmod 555 $lib'
21737 # or fails outright, so override atomically:
21738 install_override_mode=555
21739 ;;
21740
21741 interix[3-9]*)
21742 version_type=linux # correct to gnu/linux during the next big refactor
21743 need_lib_prefix=no
21744 need_version=no
21745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21746 soname_spec='$libname$release$shared_ext$major'
21747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21748 shlibpath_var=LD_LIBRARY_PATH
21749 shlibpath_overrides_runpath=no
21750 hardcode_into_libs=yes
21751 ;;
21752
21753 irix5* | irix6* | nonstopux*)
21754 case $host_os in
21755 nonstopux*) version_type=nonstopux ;;
21756 *)
21757 if test yes = "$lt_cv_prog_gnu_ld"; then
21758 version_type=linux # correct to gnu/linux during the next big refactor
21759 else
21760 version_type=irix
21761 fi ;;
21762 esac
21763 need_lib_prefix=no
21764 need_version=no
21765 soname_spec='$libname$release$shared_ext$major'
21766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21767 case $host_os in
21768 irix5* | nonstopux*)
21769 libsuff= shlibsuff=
21770 ;;
21771 *)
21772 case $LD in # libtool.m4 will add one of these switches to LD
21773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21774 libsuff= shlibsuff= libmagic=32-bit;;
21775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21776 libsuff=32 shlibsuff=N32 libmagic=N32;;
21777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21779 *) libsuff= shlibsuff= libmagic=never-match;;
21780 esac
21781 ;;
21782 esac
21783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21784 shlibpath_overrides_runpath=no
21785 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21786 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21787 hardcode_into_libs=yes
21788 ;;
21789
21790 # No shared lib support for Linux oldld, aout, or coff.
21791 linux*oldld* | linux*aout* | linux*coff*)
21792 dynamic_linker=no
21793 ;;
21794
21795 linux*android*)
21796 version_type=none # Android doesn't support versioned libraries.
21797 need_lib_prefix=no
21798 need_version=no
21799 library_names_spec='$libname$release$shared_ext'
21800 soname_spec='$libname$release$shared_ext'
21801 finish_cmds=
21802 shlibpath_var=LD_LIBRARY_PATH
21803 shlibpath_overrides_runpath=yes
21804
21805 # This implies no fast_install, which is unacceptable.
21806 # Some rework will be needed to allow for fast_install
21807 # before this can be enabled.
21808 hardcode_into_libs=yes
21809
21810 dynamic_linker='Android linker'
21811 # Don't embed -rpath directories since the linker doesn't support them.
21812 hardcode_libdir_flag_spec_CXX='-L$libdir'
21813 ;;
21814
21815 # This must be glibc/ELF.
21816 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21817 version_type=linux # correct to gnu/linux during the next big refactor
21818 need_lib_prefix=no
21819 need_version=no
21820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21821 soname_spec='$libname$release$shared_ext$major'
21822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21823 shlibpath_var=LD_LIBRARY_PATH
21824 shlibpath_overrides_runpath=no
21825
21826 # Some binutils ld are patched to set DT_RUNPATH
21827 if test ${lt_cv_shlibpath_overrides_runpath+y}
21828 then :
21829 printf %s "(cached) " >&6
21830 else $as_nop
21831 lt_cv_shlibpath_overrides_runpath=no
21832 save_LDFLAGS=$LDFLAGS
21833 save_libdir=$libdir
21834 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21835 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h. */
21838
21839 int
21840 main (void)
21841 {
21842
21843 ;
21844 return 0;
21845 }
21846 _ACEOF
21847 if ac_fn_cxx_try_link "$LINENO"
21848 then :
21849 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
21850 then :
21851 lt_cv_shlibpath_overrides_runpath=yes
21852 fi
21853 fi
21854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21855 conftest$ac_exeext conftest.$ac_ext
21856 LDFLAGS=$save_LDFLAGS
21857 libdir=$save_libdir
21858
21859 fi
21860
21861 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21862
21863 # This implies no fast_install, which is unacceptable.
21864 # Some rework will be needed to allow for fast_install
21865 # before this can be enabled.
21866 hardcode_into_libs=yes
21867
21868 # Ideally, we could use ldconfig to report *all* directores which are
21869 # searched for libraries, however this is still not possible. Aside from not
21870 # being certain /sbin/ldconfig is available, command
21871 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21872 # even though it is searched at run-time. Try to do the best guess by
21873 # appending ld.so.conf contents (and includes) to the search path.
21874 if test -f /etc/ld.so.conf; then
21875 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' ' '`
21876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21877 fi
21878
21879 # We used to test for /lib/ld.so.1 and disable shared libraries on
21880 # powerpc, because MkLinux only supported shared libraries with the
21881 # GNU dynamic linker. Since this was broken with cross compilers,
21882 # most powerpc-linux boxes support dynamic linking these days and
21883 # people can always --disable-shared, the test was removed, and we
21884 # assume the GNU/Linux dynamic linker is in use.
21885 dynamic_linker='GNU/Linux ld.so'
21886 ;;
21887
21888 netbsdelf*-gnu)
21889 version_type=linux
21890 need_lib_prefix=no
21891 need_version=no
21892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21893 soname_spec='${libname}${release}${shared_ext}$major'
21894 shlibpath_var=LD_LIBRARY_PATH
21895 shlibpath_overrides_runpath=no
21896 hardcode_into_libs=yes
21897 dynamic_linker='NetBSD ld.elf_so'
21898 ;;
21899
21900 netbsd*)
21901 version_type=sunos
21902 need_lib_prefix=no
21903 need_version=no
21904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21905 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21907 dynamic_linker='NetBSD (a.out) ld.so'
21908 else
21909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21910 soname_spec='$libname$release$shared_ext$major'
21911 dynamic_linker='NetBSD ld.elf_so'
21912 fi
21913 shlibpath_var=LD_LIBRARY_PATH
21914 shlibpath_overrides_runpath=yes
21915 hardcode_into_libs=yes
21916 ;;
21917
21918 newsos6)
21919 version_type=linux # correct to gnu/linux during the next big refactor
21920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21921 shlibpath_var=LD_LIBRARY_PATH
21922 shlibpath_overrides_runpath=yes
21923 ;;
21924
21925 *nto* | *qnx*)
21926 version_type=qnx
21927 need_lib_prefix=no
21928 need_version=no
21929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21930 soname_spec='$libname$release$shared_ext$major'
21931 shlibpath_var=LD_LIBRARY_PATH
21932 shlibpath_overrides_runpath=no
21933 hardcode_into_libs=yes
21934 dynamic_linker='ldqnx.so'
21935 ;;
21936
21937 openbsd* | bitrig*)
21938 version_type=sunos
21939 sys_lib_dlsearch_path_spec=/usr/lib
21940 need_lib_prefix=no
21941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21942 need_version=no
21943 else
21944 need_version=yes
21945 fi
21946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21948 shlibpath_var=LD_LIBRARY_PATH
21949 shlibpath_overrides_runpath=yes
21950 ;;
21951
21952 os2*)
21953 libname_spec='$name'
21954 version_type=windows
21955 shrext_cmds=.dll
21956 need_version=no
21957 need_lib_prefix=no
21958 # OS/2 can only load a DLL with a base name of 8 characters or less.
21959 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21960 v=$($ECHO $release$versuffix | tr -d .-);
21961 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21962 $ECHO $n$v`$shared_ext'
21963 library_names_spec='${libname}_dll.$libext'
21964 dynamic_linker='OS/2 ld.exe'
21965 shlibpath_var=BEGINLIBPATH
21966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21968 postinstall_cmds='base_file=`basename \$file`~
21969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21970 dldir=$destdir/`dirname \$dlpath`~
21971 test -d \$dldir || mkdir -p \$dldir~
21972 $install_prog $dir/$dlname \$dldir/$dlname~
21973 chmod a+x \$dldir/$dlname~
21974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21976 fi'
21977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21978 dlpath=$dir/\$dldll~
21979 $RM \$dlpath'
21980 ;;
21981
21982 osf3* | osf4* | osf5*)
21983 version_type=osf
21984 need_lib_prefix=no
21985 need_version=no
21986 soname_spec='$libname$release$shared_ext$major'
21987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21988 shlibpath_var=LD_LIBRARY_PATH
21989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21991 ;;
21992
21993 rdos*)
21994 dynamic_linker=no
21995 ;;
21996
21997 solaris*)
21998 version_type=linux # correct to gnu/linux during the next big refactor
21999 need_lib_prefix=no
22000 need_version=no
22001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22002 soname_spec='$libname$release$shared_ext$major'
22003 shlibpath_var=LD_LIBRARY_PATH
22004 shlibpath_overrides_runpath=yes
22005 hardcode_into_libs=yes
22006 # ldd complains unless libraries are executable
22007 postinstall_cmds='chmod +x $lib'
22008 ;;
22009
22010 sunos4*)
22011 version_type=sunos
22012 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22014 shlibpath_var=LD_LIBRARY_PATH
22015 shlibpath_overrides_runpath=yes
22016 if test yes = "$with_gnu_ld"; then
22017 need_lib_prefix=no
22018 fi
22019 need_version=yes
22020 ;;
22021
22022 sysv4 | sysv4.3*)
22023 version_type=linux # correct to gnu/linux during the next big refactor
22024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22025 soname_spec='$libname$release$shared_ext$major'
22026 shlibpath_var=LD_LIBRARY_PATH
22027 case $host_vendor in
22028 sni)
22029 shlibpath_overrides_runpath=no
22030 need_lib_prefix=no
22031 runpath_var=LD_RUN_PATH
22032 ;;
22033 siemens)
22034 need_lib_prefix=no
22035 ;;
22036 motorola)
22037 need_lib_prefix=no
22038 need_version=no
22039 shlibpath_overrides_runpath=no
22040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22041 ;;
22042 esac
22043 ;;
22044
22045 sysv4*MP*)
22046 if test -d /usr/nec; then
22047 version_type=linux # correct to gnu/linux during the next big refactor
22048 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22049 soname_spec='$libname$shared_ext.$major'
22050 shlibpath_var=LD_LIBRARY_PATH
22051 fi
22052 ;;
22053
22054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22055 version_type=sco
22056 need_lib_prefix=no
22057 need_version=no
22058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22059 soname_spec='$libname$release$shared_ext$major'
22060 shlibpath_var=LD_LIBRARY_PATH
22061 shlibpath_overrides_runpath=yes
22062 hardcode_into_libs=yes
22063 if test yes = "$with_gnu_ld"; then
22064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22065 else
22066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22067 case $host_os in
22068 sco3.2v5*)
22069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22070 ;;
22071 esac
22072 fi
22073 sys_lib_dlsearch_path_spec='/usr/lib'
22074 ;;
22075
22076 tpf*)
22077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22078 version_type=linux # correct to gnu/linux during the next big refactor
22079 need_lib_prefix=no
22080 need_version=no
22081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22082 shlibpath_var=LD_LIBRARY_PATH
22083 shlibpath_overrides_runpath=no
22084 hardcode_into_libs=yes
22085 ;;
22086
22087 uts4*)
22088 version_type=linux # correct to gnu/linux during the next big refactor
22089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22090 soname_spec='$libname$release$shared_ext$major'
22091 shlibpath_var=LD_LIBRARY_PATH
22092 ;;
22093
22094 *)
22095 dynamic_linker=no
22096 ;;
22097 esac
22098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22099 printf "%s\n" "$dynamic_linker" >&6; }
22100 test no = "$dynamic_linker" && can_build_shared=no
22101
22102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22103 if test yes = "$GCC"; then
22104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22105 fi
22106
22107 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22108 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22109 fi
22110
22111 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22112 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22113 fi
22114
22115 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22116 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22117
22118 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22119 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22120
22121 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22122 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22164 printf %s "checking how to hardcode library paths into programs... " >&6; }
22165 hardcode_action_CXX=
22166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22167 test -n "$runpath_var_CXX" ||
22168 test yes = "$hardcode_automatic_CXX"; then
22169
22170 # We can hardcode non-existent directories.
22171 if test no != "$hardcode_direct_CXX" &&
22172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22173 # have to relink, otherwise we might link with an installed library
22174 # when we should be linking with a yet-to-be-installed one
22175 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22176 test no != "$hardcode_minus_L_CXX"; then
22177 # Linking always hardcodes the temporary library directory.
22178 hardcode_action_CXX=relink
22179 else
22180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22181 hardcode_action_CXX=immediate
22182 fi
22183 else
22184 # We cannot hardcode anything, or else we can only hardcode existing
22185 # directories.
22186 hardcode_action_CXX=unsupported
22187 fi
22188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22189 printf "%s\n" "$hardcode_action_CXX" >&6; }
22190
22191 if test relink = "$hardcode_action_CXX" ||
22192 test yes = "$inherit_rpath_CXX"; then
22193 # Fast installation is not supported
22194 enable_fast_install=no
22195 elif test yes = "$shlibpath_overrides_runpath" ||
22196 test no = "$enable_shared"; then
22197 # Fast installation is not necessary
22198 enable_fast_install=needless
22199 fi
22200
22201
22202
22203
22204
22205
22206
22207 fi # test -n "$compiler"
22208
22209 CC=$lt_save_CC
22210 CFLAGS=$lt_save_CFLAGS
22211 LDCXX=$LD
22212 LD=$lt_save_LD
22213 GCC=$lt_save_GCC
22214 with_gnu_ld=$lt_save_with_gnu_ld
22215 lt_cv_path_LDCXX=$lt_cv_path_LD
22216 lt_cv_path_LD=$lt_save_path_LD
22217 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22218 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22219 fi # test yes != "$_lt_caught_CXX_error"
22220
22221 ac_ext=c
22222 ac_cpp='$CPP $CPPFLAGS'
22223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241 ac_config_commands="$ac_config_commands libtool"
22242
22243
22244
22245
22246 # Only expand once:
22247
22248
22249 if test -n "$ac_tool_prefix"; then
22250 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
22251 set dummy ${ac_tool_prefix}windres; ac_word=$2
22252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 printf %s "checking for $ac_word... " >&6; }
22254 if test ${ac_cv_prog_RC+y}
22255 then :
22256 printf %s "(cached) " >&6
22257 else $as_nop
22258 if test -n "$RC"; then
22259 ac_cv_prog_RC="$RC" # Let the user override the test.
22260 else
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22263 do
22264 IFS=$as_save_IFS
22265 case $as_dir in #(((
22266 '') as_dir=./ ;;
22267 */) ;;
22268 *) as_dir=$as_dir/ ;;
22269 esac
22270 for ac_exec_ext in '' $ac_executable_extensions; do
22271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22272 ac_cv_prog_RC="${ac_tool_prefix}windres"
22273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22274 break 2
22275 fi
22276 done
22277 done
22278 IFS=$as_save_IFS
22279
22280 fi
22281 fi
22282 RC=$ac_cv_prog_RC
22283 if test -n "$RC"; then
22284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
22285 printf "%s\n" "$RC" >&6; }
22286 else
22287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22288 printf "%s\n" "no" >&6; }
22289 fi
22290
22291
22292 fi
22293 if test -z "$ac_cv_prog_RC"; then
22294 ac_ct_RC=$RC
22295 # Extract the first word of "windres", so it can be a program name with args.
22296 set dummy windres; ac_word=$2
22297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22298 printf %s "checking for $ac_word... " >&6; }
22299 if test ${ac_cv_prog_ac_ct_RC+y}
22300 then :
22301 printf %s "(cached) " >&6
22302 else $as_nop
22303 if test -n "$ac_ct_RC"; then
22304 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
22305 else
22306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22307 for as_dir in $PATH
22308 do
22309 IFS=$as_save_IFS
22310 case $as_dir in #(((
22311 '') as_dir=./ ;;
22312 */) ;;
22313 *) as_dir=$as_dir/ ;;
22314 esac
22315 for ac_exec_ext in '' $ac_executable_extensions; do
22316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22317 ac_cv_prog_ac_ct_RC="windres"
22318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22319 break 2
22320 fi
22321 done
22322 done
22323 IFS=$as_save_IFS
22324
22325 fi
22326 fi
22327 ac_ct_RC=$ac_cv_prog_ac_ct_RC
22328 if test -n "$ac_ct_RC"; then
22329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
22330 printf "%s\n" "$ac_ct_RC" >&6; }
22331 else
22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22333 printf "%s\n" "no" >&6; }
22334 fi
22335
22336 if test "x$ac_ct_RC" = x; then
22337 RC=""
22338 else
22339 case $cross_compiling:$ac_tool_warned in
22340 yes:)
22341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22342 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22343 ac_tool_warned=yes ;;
22344 esac
22345 RC=$ac_ct_RC
22346 fi
22347 else
22348 RC="$ac_cv_prog_RC"
22349 fi
22350
22351
22352
22353
22354 # Source file extension for RC test sources.
22355 ac_ext=rc
22356
22357 # Object file extension for compiled RC test sources.
22358 objext=o
22359 objext_RC=$objext
22360
22361 # Code to be used in simple compile tests
22362 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22363
22364 # Code to be used in simple link tests
22365 lt_simple_link_test_code=$lt_simple_compile_test_code
22366
22367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22368
22369
22370
22371
22372
22373
22374 # If no C compiler was specified, use CC.
22375 LTCC=${LTCC-"$CC"}
22376
22377 # If no C compiler flags were specified, use CFLAGS.
22378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22379
22380 # Allow CC to be a program name with arguments.
22381 compiler=$CC
22382
22383
22384 # save warnings/boilerplate of simple test code
22385 ac_outfile=conftest.$ac_objext
22386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22388 _lt_compiler_boilerplate=`cat conftest.err`
22389 $RM conftest*
22390
22391 ac_outfile=conftest.$ac_objext
22392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22394 _lt_linker_boilerplate=`cat conftest.err`
22395 $RM -r conftest*
22396
22397
22398 # Allow CC to be a program name with arguments.
22399 lt_save_CC=$CC
22400 lt_save_CFLAGS=$CFLAGS
22401 lt_save_GCC=$GCC
22402 GCC=
22403 CC=${RC-"windres"}
22404 CFLAGS=
22405 compiler=$CC
22406 compiler_RC=$CC
22407 func_cc_basename $compiler
22408 cc_basename=$func_cc_basename_result
22409
22410 lt_cv_prog_compiler_c_o_RC=yes
22411
22412 if test -n "$compiler"; then
22413 :
22414
22415
22416
22417 fi
22418
22419 GCC=$lt_save_GCC
22420 ac_ext=c
22421 ac_cpp='$CPP $CPPFLAGS'
22422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22425
22426 CC=$lt_save_CC
22427 CFLAGS=$lt_save_CFLAGS
22428
22429 : ${CONFIG_LT=./config.lt}
22430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
22431 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
22432 as_write_fail=0
22433 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
22434 #! $SHELL
22435 # Generated by $as_me.
22436 # Run this file to recreate a libtool stub with the current configuration.
22437 SHELL=\${CONFIG_SHELL-$SHELL}
22438 export SHELL
22439 _ASEOF
22440 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
22441 ## -------------------- ##
22442 ## M4sh Initialization. ##
22443 ## -------------------- ##
22444
22445 # Be more Bourne compatible
22446 DUALCASE=1; export DUALCASE # for MKS sh
22447 as_nop=:
22448 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22449 then :
22450 emulate sh
22451 NULLCMD=:
22452 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22453 # is contrary to our usage. Disable this feature.
22454 alias -g '${1+"$@"}'='"$@"'
22455 setopt NO_GLOB_SUBST
22456 else $as_nop
22457 case `(set -o) 2>/dev/null` in #(
22458 *posix*) :
22459 set -o posix ;; #(
22460 *) :
22461 ;;
22462 esac
22463 fi
22464
22465
22466
22467 # Reset variables that may have inherited troublesome values from
22468 # the environment.
22469
22470 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22471 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22472 # side effect of setting IFS to empty, thus disabling word splitting.)
22473 # Quoting is to prevent editors from complaining about space-tab.
22474 as_nl='
22475 '
22476 export as_nl
22477 IFS=" "" $as_nl"
22478
22479 PS1='$ '
22480 PS2='> '
22481 PS4='+ '
22482
22483 # Ensure predictable behavior from utilities with locale-dependent output.
22484 LC_ALL=C
22485 export LC_ALL
22486 LANGUAGE=C
22487 export LANGUAGE
22488
22489 # We cannot yet rely on "unset" to work, but we need these variables
22490 # to be unset--not just set to an empty or harmless value--now, to
22491 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22492 # also avoids known problems related to "unset" and subshell syntax
22493 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22494 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22495 do eval test \${$as_var+y} \
22496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22497 done
22498
22499 # Ensure that fds 0, 1, and 2 are open.
22500 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22501 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22502 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22503
22504 # The user is always right.
22505 if ${PATH_SEPARATOR+false} :; then
22506 PATH_SEPARATOR=:
22507 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22508 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22509 PATH_SEPARATOR=';'
22510 }
22511 fi
22512
22513
22514 # Find who we are. Look in the path if we contain no directory separator.
22515 as_myself=
22516 case $0 in #((
22517 *[\\/]* ) as_myself=$0 ;;
22518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22519 for as_dir in $PATH
22520 do
22521 IFS=$as_save_IFS
22522 case $as_dir in #(((
22523 '') as_dir=./ ;;
22524 */) ;;
22525 *) as_dir=$as_dir/ ;;
22526 esac
22527 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22528 done
22529 IFS=$as_save_IFS
22530
22531 ;;
22532 esac
22533 # We did not find ourselves, most probably we were run as `sh COMMAND'
22534 # in which case we are not to be found in the path.
22535 if test "x$as_myself" = x; then
22536 as_myself=$0
22537 fi
22538 if test ! -f "$as_myself"; then
22539 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22540 exit 1
22541 fi
22542
22543
22544
22545 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22546 # ----------------------------------------
22547 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22548 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22549 # script with STATUS, using 1 if that was 0.
22550 as_fn_error ()
22551 {
22552 as_status=$1; test $as_status -eq 0 && as_status=1
22553 if test "$4"; then
22554 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22556 fi
22557 printf "%s\n" "$as_me: error: $2" >&2
22558 as_fn_exit $as_status
22559 } # as_fn_error
22560
22561
22562
22563 # as_fn_set_status STATUS
22564 # -----------------------
22565 # Set $? to STATUS, without forking.
22566 as_fn_set_status ()
22567 {
22568 return $1
22569 } # as_fn_set_status
22570
22571 # as_fn_exit STATUS
22572 # -----------------
22573 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22574 as_fn_exit ()
22575 {
22576 set +e
22577 as_fn_set_status $1
22578 exit $1
22579 } # as_fn_exit
22580
22581 # as_fn_unset VAR
22582 # ---------------
22583 # Portably unset VAR.
22584 as_fn_unset ()
22585 {
22586 { eval $1=; unset $1;}
22587 }
22588 as_unset=as_fn_unset
22589
22590 # as_fn_append VAR VALUE
22591 # ----------------------
22592 # Append the text in VALUE to the end of the definition contained in VAR. Take
22593 # advantage of any shell optimizations that allow amortized linear growth over
22594 # repeated appends, instead of the typical quadratic growth present in naive
22595 # implementations.
22596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22597 then :
22598 eval 'as_fn_append ()
22599 {
22600 eval $1+=\$2
22601 }'
22602 else $as_nop
22603 as_fn_append ()
22604 {
22605 eval $1=\$$1\$2
22606 }
22607 fi # as_fn_append
22608
22609 # as_fn_arith ARG...
22610 # ------------------
22611 # Perform arithmetic evaluation on the ARGs, and store the result in the
22612 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22613 # must be portable across $(()) and expr.
22614 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22615 then :
22616 eval 'as_fn_arith ()
22617 {
22618 as_val=$(( $* ))
22619 }'
22620 else $as_nop
22621 as_fn_arith ()
22622 {
22623 as_val=`expr "$@" || test $? -eq 1`
22624 }
22625 fi # as_fn_arith
22626
22627
22628 if expr a : '\(a\)' >/dev/null 2>&1 &&
22629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22630 as_expr=expr
22631 else
22632 as_expr=false
22633 fi
22634
22635 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22636 as_basename=basename
22637 else
22638 as_basename=false
22639 fi
22640
22641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22642 as_dirname=dirname
22643 else
22644 as_dirname=false
22645 fi
22646
22647 as_me=`$as_basename -- "$0" ||
22648 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22649 X"$0" : 'X\(//\)$' \| \
22650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22651 printf "%s\n" X/"$0" |
22652 sed '/^.*\/\([^/][^/]*\)\/*$/{
22653 s//\1/
22654 q
22655 }
22656 /^X\/\(\/\/\)$/{
22657 s//\1/
22658 q
22659 }
22660 /^X\/\(\/\).*/{
22661 s//\1/
22662 q
22663 }
22664 s/.*/./; q'`
22665
22666 # Avoid depending upon Character Ranges.
22667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22670 as_cr_digits='0123456789'
22671 as_cr_alnum=$as_cr_Letters$as_cr_digits
22672
22673
22674 # Determine whether it's possible to make 'echo' print without a newline.
22675 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22676 # for compatibility with existing Makefiles.
22677 ECHO_C= ECHO_N= ECHO_T=
22678 case `echo -n x` in #(((((
22679 -n*)
22680 case `echo 'xy\c'` in
22681 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22682 xy) ECHO_C='\c';;
22683 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22684 ECHO_T=' ';;
22685 esac;;
22686 *)
22687 ECHO_N='-n';;
22688 esac
22689
22690 # For backward compatibility with old third-party macros, we provide
22691 # the shell variables $as_echo and $as_echo_n. New code should use
22692 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22693 as_echo='printf %s\n'
22694 as_echo_n='printf %s'
22695
22696 rm -f conf$$ conf$$.exe conf$$.file
22697 if test -d conf$$.dir; then
22698 rm -f conf$$.dir/conf$$.file
22699 else
22700 rm -f conf$$.dir
22701 mkdir conf$$.dir 2>/dev/null
22702 fi
22703 if (echo >conf$$.file) 2>/dev/null; then
22704 if ln -s conf$$.file conf$$ 2>/dev/null; then
22705 as_ln_s='ln -s'
22706 # ... but there are two gotchas:
22707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22709 # In both cases, we have to default to `cp -pR'.
22710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22711 as_ln_s='cp -pR'
22712 elif ln conf$$.file conf$$ 2>/dev/null; then
22713 as_ln_s=ln
22714 else
22715 as_ln_s='cp -pR'
22716 fi
22717 else
22718 as_ln_s='cp -pR'
22719 fi
22720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22721 rmdir conf$$.dir 2>/dev/null
22722
22723
22724 # as_fn_mkdir_p
22725 # -------------
22726 # Create "$as_dir" as a directory, including parents if necessary.
22727 as_fn_mkdir_p ()
22728 {
22729
22730 case $as_dir in #(
22731 -*) as_dir=./$as_dir;;
22732 esac
22733 test -d "$as_dir" || eval $as_mkdir_p || {
22734 as_dirs=
22735 while :; do
22736 case $as_dir in #(
22737 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22738 *) as_qdir=$as_dir;;
22739 esac
22740 as_dirs="'$as_qdir' $as_dirs"
22741 as_dir=`$as_dirname -- "$as_dir" ||
22742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22743 X"$as_dir" : 'X\(//\)[^/]' \| \
22744 X"$as_dir" : 'X\(//\)$' \| \
22745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22746 printf "%s\n" X"$as_dir" |
22747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22748 s//\1/
22749 q
22750 }
22751 /^X\(\/\/\)[^/].*/{
22752 s//\1/
22753 q
22754 }
22755 /^X\(\/\/\)$/{
22756 s//\1/
22757 q
22758 }
22759 /^X\(\/\).*/{
22760 s//\1/
22761 q
22762 }
22763 s/.*/./; q'`
22764 test -d "$as_dir" && break
22765 done
22766 test -z "$as_dirs" || eval "mkdir $as_dirs"
22767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22768
22769
22770 } # as_fn_mkdir_p
22771 if mkdir -p . 2>/dev/null; then
22772 as_mkdir_p='mkdir -p "$as_dir"'
22773 else
22774 test -d ./-p && rmdir ./-p
22775 as_mkdir_p=false
22776 fi
22777
22778
22779 # as_fn_executable_p FILE
22780 # -----------------------
22781 # Test if FILE is an executable regular file.
22782 as_fn_executable_p ()
22783 {
22784 test -f "$1" && test -x "$1"
22785 } # as_fn_executable_p
22786 as_test_x='test -x'
22787 as_executable_p=as_fn_executable_p
22788
22789 # Sed expression to map a string onto a valid CPP name.
22790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22791
22792 # Sed expression to map a string onto a valid variable name.
22793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22794
22795
22796 exec 6>&1
22797 ## --------------------------------- ##
22798 ## Main body of "$CONFIG_LT" script. ##
22799 ## --------------------------------- ##
22800 _ASEOF
22801 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
22802
22803 cat >>"$CONFIG_LT" <<\_LTEOF
22804 lt_cl_silent=false
22805 exec 5>>config.log
22806 {
22807 echo
22808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22809 ## Running $as_me. ##
22810 _ASBOX
22811 } >&5
22812
22813 lt_cl_help="\
22814 '$as_me' creates a local libtool stub from the current configuration,
22815 for use in further configure time tests before the real libtool is
22816 generated.
22817
22818 Usage: $0 [OPTIONS]
22819
22820 -h, --help print this help, then exit
22821 -V, --version print version number, then exit
22822 -q, --quiet do not print progress messages
22823 -d, --debug don't remove temporary files
22824
22825 Report bugs to <[email protected]>."
22826
22827 lt_cl_version="\
22828 groonga config.lt 16.0.5
22829 configured by $0, generated by GNU Autoconf 2.71.
22830
22831 Copyright (C) 2011 Free Software Foundation, Inc.
22832 This config.lt script is free software; the Free Software Foundation
22833 gives unlimited permision to copy, distribute and modify it."
22834
22835 while test 0 != $#
22836 do
22837 case $1 in
22838 --version | --v* | -V )
22839 echo "$lt_cl_version"; exit 0 ;;
22840 --help | --h* | -h )
22841 echo "$lt_cl_help"; exit 0 ;;
22842 --debug | --d* | -d )
22843 debug=: ;;
22844 --quiet | --q* | --silent | --s* | -q )
22845 lt_cl_silent=: ;;
22846
22847 -*) as_fn_error $? "unrecognized option: $1
22848 Try '$0 --help' for more information." "$LINENO" 5 ;;
22849
22850 *) as_fn_error $? "unrecognized argument: $1
22851 Try '$0 --help' for more information." "$LINENO" 5 ;;
22852 esac
22853 shift
22854 done
22855
22856 if $lt_cl_silent; then
22857 exec 6>/dev/null
22858 fi
22859 _LTEOF
22860
22861 cat >>"$CONFIG_LT" <<_LTEOF
22862
22863
22864 # The HP-UX ksh and POSIX shell print the target directory to stdout
22865 # if CDPATH is set.
22866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22867
22868 sed_quote_subst='$sed_quote_subst'
22869 double_quote_subst='$double_quote_subst'
22870 delay_variable_subst='$delay_variable_subst'
22871 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22872 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22873 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22874 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22875 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22876 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22877 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22878 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22879 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22880 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22881 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22882 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22883 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22884 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22885 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22886 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22887 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22888 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22889 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22890 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22891 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22892 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22893 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22894 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22895 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22896 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22897 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22898 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22899 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22900 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22901 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22902 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22903 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22904 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22905 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22906 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22907 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22908 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22909 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22910 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22911 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22912 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22913 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22914 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22915 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22916 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22917 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22918 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22919 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22920 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22921 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22922 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22923 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22924 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22925 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22926 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22927 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22928 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22929 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22930 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22931 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22932 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"`'
22933 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22934 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22935 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22936 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22937 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22938 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22939 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22940 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22941 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22942 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22943 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22944 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22945 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22946 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22947 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22948 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22949 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22950 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22951 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22952 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22953 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22954 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22955 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22956 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22957 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22958 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22959 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22960 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22961 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22962 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22963 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22964 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22965 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22966 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22967 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22968 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22969 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22970 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22971 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22972 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22973 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22974 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22975 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22976 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22977 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22978 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22979 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22980 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22981 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22982 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22983 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22984 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22985 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22986 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22987 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22988 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22989 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22990 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22991 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22992 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22993 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22994 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22995 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22996 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22997 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22998 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22999 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23000 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23001 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23002 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23003 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23004 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23005 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23006 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23007 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23008 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23009 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23010 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23011 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23012 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23013 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23014 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23015 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23016 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
23017 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23018 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
23019 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23020 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
23021 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23022 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23023 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23024 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
23025 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23026 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
23027 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23028 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
23029 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23030 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
23031 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23032 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
23033 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23034 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
23035 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23036 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
23037 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23038 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
23039 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23040 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
23041 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23042 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23043 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23044 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23045 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23046 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
23047 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23048 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
23049 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23050 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
23051 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23052 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23053 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23054 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23055 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23056 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
23057 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23058 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23059 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23060 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
23061 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23062 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23063 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23064 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23065 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23066 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23067 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23068 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
23069 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23070 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
23071 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23072 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
23073 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23074 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
23075 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23076 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
23077 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23078 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
23079 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23080 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
23081 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23082 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
23083 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23084 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
23085 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23086 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
23087 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23088 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23089 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23090 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23091 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23092 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23093 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23094 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23095 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23096 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
23097 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23098 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
23099 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23100 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
23101 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23102 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
23103 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23104 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
23105 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23106 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
23107 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23108 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
23109 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23110 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
23111
23112 LTCC='$LTCC'
23113 LTCFLAGS='$LTCFLAGS'
23114 compiler='$compiler_DEFAULT'
23115
23116 # A function that is used when there is no print builtin or printf.
23117 func_fallback_echo ()
23118 {
23119 eval 'cat <<_LTECHO_EOF
23120 \$1
23121 _LTECHO_EOF'
23122 }
23123
23124 # Quote evaled strings.
23125 for var in AS \
23126 DLLTOOL \
23127 OBJDUMP \
23128 SHELL \
23129 ECHO \
23130 PATH_SEPARATOR \
23131 SED \
23132 GREP \
23133 EGREP \
23134 FGREP \
23135 LD \
23136 NM \
23137 LN_S \
23138 lt_SP2NL \
23139 lt_NL2SP \
23140 reload_flag \
23141 FILECMD \
23142 deplibs_check_method \
23143 file_magic_cmd \
23144 file_magic_glob \
23145 want_nocaseglob \
23146 sharedlib_from_linklib_cmd \
23147 AR \
23148 archiver_list_spec \
23149 STRIP \
23150 RANLIB \
23151 CC \
23152 CFLAGS \
23153 compiler \
23154 lt_cv_sys_global_symbol_pipe \
23155 lt_cv_sys_global_symbol_to_cdecl \
23156 lt_cv_sys_global_symbol_to_import \
23157 lt_cv_sys_global_symbol_to_c_name_address \
23158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23159 lt_cv_nm_interface \
23160 nm_file_list_spec \
23161 lt_cv_truncate_bin \
23162 lt_prog_compiler_no_builtin_flag \
23163 lt_prog_compiler_pic \
23164 lt_prog_compiler_wl \
23165 lt_prog_compiler_static \
23166 lt_cv_prog_compiler_c_o \
23167 need_locks \
23168 MANIFEST_TOOL \
23169 DSYMUTIL \
23170 NMEDIT \
23171 LIPO \
23172 OTOOL \
23173 OTOOL64 \
23174 shrext_cmds \
23175 export_dynamic_flag_spec \
23176 whole_archive_flag_spec \
23177 compiler_needs_object \
23178 with_gnu_ld \
23179 allow_undefined_flag \
23180 no_undefined_flag \
23181 hardcode_libdir_flag_spec \
23182 hardcode_libdir_separator \
23183 exclude_expsyms \
23184 include_expsyms \
23185 file_list_spec \
23186 variables_saved_for_relink \
23187 libname_spec \
23188 library_names_spec \
23189 soname_spec \
23190 install_override_mode \
23191 finish_eval \
23192 old_striplib \
23193 striplib \
23194 compiler_lib_search_dirs \
23195 predep_objects \
23196 postdep_objects \
23197 predeps \
23198 postdeps \
23199 compiler_lib_search_path \
23200 LD_CXX \
23201 LD_RC \
23202 reload_flag_CXX \
23203 reload_flag_RC \
23204 compiler_CXX \
23205 compiler_RC \
23206 lt_prog_compiler_no_builtin_flag_CXX \
23207 lt_prog_compiler_no_builtin_flag_RC \
23208 lt_prog_compiler_pic_CXX \
23209 lt_prog_compiler_pic_RC \
23210 lt_prog_compiler_wl_CXX \
23211 lt_prog_compiler_wl_RC \
23212 lt_prog_compiler_static_CXX \
23213 lt_prog_compiler_static_RC \
23214 lt_cv_prog_compiler_c_o_CXX \
23215 lt_cv_prog_compiler_c_o_RC \
23216 export_dynamic_flag_spec_CXX \
23217 export_dynamic_flag_spec_RC \
23218 whole_archive_flag_spec_CXX \
23219 whole_archive_flag_spec_RC \
23220 compiler_needs_object_CXX \
23221 compiler_needs_object_RC \
23222 with_gnu_ld_CXX \
23223 with_gnu_ld_RC \
23224 allow_undefined_flag_CXX \
23225 allow_undefined_flag_RC \
23226 no_undefined_flag_CXX \
23227 no_undefined_flag_RC \
23228 hardcode_libdir_flag_spec_CXX \
23229 hardcode_libdir_flag_spec_RC \
23230 hardcode_libdir_separator_CXX \
23231 hardcode_libdir_separator_RC \
23232 exclude_expsyms_CXX \
23233 exclude_expsyms_RC \
23234 include_expsyms_CXX \
23235 include_expsyms_RC \
23236 file_list_spec_CXX \
23237 file_list_spec_RC \
23238 compiler_lib_search_dirs_CXX \
23239 compiler_lib_search_dirs_RC \
23240 predep_objects_CXX \
23241 predep_objects_RC \
23242 postdep_objects_CXX \
23243 postdep_objects_RC \
23244 predeps_CXX \
23245 predeps_RC \
23246 postdeps_CXX \
23247 postdeps_RC \
23248 compiler_lib_search_path_CXX \
23249 compiler_lib_search_path_RC; do
23250 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23251 *[\\\\\\\`\\"\\\$]*)
23252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23253 ;;
23254 *)
23255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23256 ;;
23257 esac
23258 done
23259
23260 # Double-quote double-evaled strings.
23261 for var in reload_cmds \
23262 old_postinstall_cmds \
23263 old_postuninstall_cmds \
23264 old_archive_cmds \
23265 extract_expsyms_cmds \
23266 old_archive_from_new_cmds \
23267 old_archive_from_expsyms_cmds \
23268 archive_cmds \
23269 archive_expsym_cmds \
23270 module_cmds \
23271 module_expsym_cmds \
23272 export_symbols_cmds \
23273 prelink_cmds \
23274 postlink_cmds \
23275 postinstall_cmds \
23276 postuninstall_cmds \
23277 finish_cmds \
23278 sys_lib_search_path_spec \
23279 configure_time_dlsearch_path \
23280 configure_time_lt_sys_library_path \
23281 reload_cmds_CXX \
23282 reload_cmds_RC \
23283 old_archive_cmds_CXX \
23284 old_archive_cmds_RC \
23285 old_archive_from_new_cmds_CXX \
23286 old_archive_from_new_cmds_RC \
23287 old_archive_from_expsyms_cmds_CXX \
23288 old_archive_from_expsyms_cmds_RC \
23289 archive_cmds_CXX \
23290 archive_cmds_RC \
23291 archive_expsym_cmds_CXX \
23292 archive_expsym_cmds_RC \
23293 module_cmds_CXX \
23294 module_cmds_RC \
23295 module_expsym_cmds_CXX \
23296 module_expsym_cmds_RC \
23297 export_symbols_cmds_CXX \
23298 export_symbols_cmds_RC \
23299 prelink_cmds_CXX \
23300 prelink_cmds_RC \
23301 postlink_cmds_CXX \
23302 postlink_cmds_RC; do
23303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23304 *[\\\\\\\`\\"\\\$]*)
23305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23306 ;;
23307 *)
23308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23309 ;;
23310 esac
23311 done
23312
23313 ac_aux_dir='$ac_aux_dir'
23314
23315 # See if we are running on zsh, and set the options that allow our
23316 # commands through without removal of \ escapes INIT.
23317 if test -n "\${ZSH_VERSION+set}"; then
23318 setopt NO_GLOB_SUBST
23319 fi
23320
23321
23322 PACKAGE='$PACKAGE'
23323 VERSION='$VERSION'
23324 RM='$RM'
23325 ofile='$ofile'
23326
23327
23328
23329
23330
23331
23332
23333 _LTEOF
23334
23335 cat >>"$CONFIG_LT" <<\_LTEOF
23336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
23337 printf "%s\n" "$as_me: creating $ofile" >&6;}
23338
23339
23340 # See if we are running on zsh, and set the options that allow our
23341 # commands through without removal of \ escapes.
23342 if test -n "${ZSH_VERSION+set}"; then
23343 setopt NO_GLOB_SUBST
23344 fi
23345
23346 cfgfile=${ofile}T
23347 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23348 $RM "$cfgfile"
23349
23350 cat <<_LT_EOF >> "$cfgfile"
23351 #! $SHELL
23352 # Generated automatically by $as_me ($PACKAGE) $VERSION
23353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23354
23355 # Provide generalized library-building support services.
23356 # Written by Gordon Matzigkeit, 1996
23357
23358 # Copyright (C) 2014 Free Software Foundation, Inc.
23359 # This is free software; see the source for copying conditions. There is NO
23360 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23361
23362 # GNU Libtool is free software; you can redistribute it and/or modify
23363 # it under the terms of the GNU General Public License as published by
23364 # the Free Software Foundation; either version 2 of of the License, or
23365 # (at your option) any later version.
23366 #
23367 # As a special exception to the GNU General Public License, if you
23368 # distribute this file as part of a program or library that is built
23369 # using GNU Libtool, you may include this file under the same
23370 # distribution terms that you use for the rest of that program.
23371 #
23372 # GNU Libtool is distributed in the hope that it will be useful, but
23373 # WITHOUT ANY WARRANTY; without even the implied warranty of
23374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23375 # GNU General Public License for more details.
23376 #
23377 # You should have received a copy of the GNU General Public License
23378 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23379
23380
23381 # The names of the tagged configurations supported by this script.
23382 available_tags='CXX RC '
23383
23384 # Configured defaults for sys_lib_dlsearch_path munging.
23385 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23386
23387 # ### BEGIN LIBTOOL CONFIG
23388
23389 # Which release of libtool.m4 was used?
23390 macro_version=$macro_version
23391 macro_revision=$macro_revision
23392
23393 # Assembler program.
23394 AS=$lt_AS
23395
23396 # DLL creation program.
23397 DLLTOOL=$lt_DLLTOOL
23398
23399 # Object dumper program.
23400 OBJDUMP=$lt_OBJDUMP
23401
23402 # Whether or not to build shared libraries.
23403 build_libtool_libs=$enable_shared
23404
23405 # Whether or not to build static libraries.
23406 build_old_libs=$enable_static
23407
23408 # What type of objects to build.
23409 pic_mode=$pic_mode
23410
23411 # Whether or not to optimize for fast installation.
23412 fast_install=$enable_fast_install
23413
23414 # Shared archive member basename,for filename based shared library versioning on AIX.
23415 shared_archive_member_spec=$shared_archive_member_spec
23416
23417 # Shell to use when invoking shell scripts.
23418 SHELL=$lt_SHELL
23419
23420 # An echo program that protects backslashes.
23421 ECHO=$lt_ECHO
23422
23423 # The PATH separator for the build system.
23424 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23425
23426 # The host system.
23427 host_alias=$host_alias
23428 host=$host
23429 host_os=$host_os
23430
23431 # The build system.
23432 build_alias=$build_alias
23433 build=$build
23434 build_os=$build_os
23435
23436 # A sed program that does not truncate output.
23437 SED=$lt_SED
23438
23439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23440 Xsed="\$SED -e 1s/^X//"
23441
23442 # A grep program that handles long lines.
23443 GREP=$lt_GREP
23444
23445 # An ERE matcher.
23446 EGREP=$lt_EGREP
23447
23448 # A literal string matcher.
23449 FGREP=$lt_FGREP
23450
23451 # A BSD- or MS-compatible name lister.
23452 NM=$lt_NM
23453
23454 # Whether we need soft or hard links.
23455 LN_S=$lt_LN_S
23456
23457 # What is the maximum length of a command?
23458 max_cmd_len=$max_cmd_len
23459
23460 # Object file suffix (normally "o").
23461 objext=$ac_objext
23462
23463 # Executable file suffix (normally "").
23464 exeext=$exeext
23465
23466 # whether the shell understands "unset".
23467 lt_unset=$lt_unset
23468
23469 # turn spaces into newlines.
23470 SP2NL=$lt_lt_SP2NL
23471
23472 # turn newlines into spaces.
23473 NL2SP=$lt_lt_NL2SP
23474
23475 # convert \$build file names to \$host format.
23476 to_host_file_cmd=$lt_cv_to_host_file_cmd
23477
23478 # convert \$build files to toolchain format.
23479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23480
23481 # A file(cmd) program that detects file types.
23482 FILECMD=$lt_FILECMD
23483
23484 # Method to check whether dependent libraries are shared objects.
23485 deplibs_check_method=$lt_deplibs_check_method
23486
23487 # Command to use when deplibs_check_method = "file_magic".
23488 file_magic_cmd=$lt_file_magic_cmd
23489
23490 # How to find potential files when deplibs_check_method = "file_magic".
23491 file_magic_glob=$lt_file_magic_glob
23492
23493 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23494 want_nocaseglob=$lt_want_nocaseglob
23495
23496 # Command to associate shared and link libraries.
23497 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23498
23499 # The archiver.
23500 AR=$lt_AR
23501
23502 # Flags to create an archive (by configure).
23503 lt_ar_flags=$lt_ar_flags
23504
23505 # Flags to create an archive.
23506 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23507
23508 # How to feed a file listing to the archiver.
23509 archiver_list_spec=$lt_archiver_list_spec
23510
23511 # A symbol stripping program.
23512 STRIP=$lt_STRIP
23513
23514 # Commands used to install an old-style archive.
23515 RANLIB=$lt_RANLIB
23516 old_postinstall_cmds=$lt_old_postinstall_cmds
23517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23518
23519 # Whether to use a lock for old archive extraction.
23520 lock_old_archive_extraction=$lock_old_archive_extraction
23521
23522 # A C compiler.
23523 LTCC=$lt_CC
23524
23525 # LTCC compiler flags.
23526 LTCFLAGS=$lt_CFLAGS
23527
23528 # Take the output of nm and produce a listing of raw symbols and C names.
23529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23530
23531 # Transform the output of nm in a proper C declaration.
23532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23533
23534 # Transform the output of nm into a list of symbols to manually relocate.
23535 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23536
23537 # Transform the output of nm in a C name address pair.
23538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23539
23540 # Transform the output of nm in a C name address pair when lib prefix is needed.
23541 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23542
23543 # The name lister interface.
23544 nm_interface=$lt_lt_cv_nm_interface
23545
23546 # Specify filename containing input files for \$NM.
23547 nm_file_list_spec=$lt_nm_file_list_spec
23548
23549 # The root where to search for dependent libraries,and where our libraries should be installed.
23550 lt_sysroot=$lt_sysroot
23551
23552 # Command to truncate a binary pipe.
23553 lt_truncate_bin=$lt_lt_cv_truncate_bin
23554
23555 # The name of the directory that contains temporary libtool files.
23556 objdir=$objdir
23557
23558 # Used to examine libraries when file_magic_cmd begins with "file".
23559 MAGIC_CMD=$MAGIC_CMD
23560
23561 # Must we lock files when doing compilation?
23562 need_locks=$lt_need_locks
23563
23564 # Manifest tool.
23565 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23566
23567 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23568 DSYMUTIL=$lt_DSYMUTIL
23569
23570 # Tool to change global to local symbols on Mac OS X.
23571 NMEDIT=$lt_NMEDIT
23572
23573 # Tool to manipulate fat objects and archives on Mac OS X.
23574 LIPO=$lt_LIPO
23575
23576 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23577 OTOOL=$lt_OTOOL
23578
23579 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23580 OTOOL64=$lt_OTOOL64
23581
23582 # Old archive suffix (normally "a").
23583 libext=$libext
23584
23585 # Shared library suffix (normally ".so").
23586 shrext_cmds=$lt_shrext_cmds
23587
23588 # The commands to extract the exported symbol list from a shared archive.
23589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23590
23591 # Variables whose values should be saved in libtool wrapper scripts and
23592 # restored at link time.
23593 variables_saved_for_relink=$lt_variables_saved_for_relink
23594
23595 # Do we need the "lib" prefix for modules?
23596 need_lib_prefix=$need_lib_prefix
23597
23598 # Do we need a version for libraries?
23599 need_version=$need_version
23600
23601 # Library versioning type.
23602 version_type=$version_type
23603
23604 # Shared library runtime path variable.
23605 runpath_var=$runpath_var
23606
23607 # Shared library path variable.
23608 shlibpath_var=$shlibpath_var
23609
23610 # Is shlibpath searched before the hard-coded library search path?
23611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23612
23613 # Format of library name prefix.
23614 libname_spec=$lt_libname_spec
23615
23616 # List of archive names. First name is the real one, the rest are links.
23617 # The last name is the one that the linker finds with -lNAME
23618 library_names_spec=$lt_library_names_spec
23619
23620 # The coded name of the library, if different from the real name.
23621 soname_spec=$lt_soname_spec
23622
23623 # Permission mode override for installation of shared libraries.
23624 install_override_mode=$lt_install_override_mode
23625
23626 # Command to use after installation of a shared archive.
23627 postinstall_cmds=$lt_postinstall_cmds
23628
23629 # Command to use after uninstallation of a shared archive.
23630 postuninstall_cmds=$lt_postuninstall_cmds
23631
23632 # Commands used to finish a libtool library installation in a directory.
23633 finish_cmds=$lt_finish_cmds
23634
23635 # As "finish_cmds", except a single script fragment to be evaled but
23636 # not shown.
23637 finish_eval=$lt_finish_eval
23638
23639 # Whether we should hardcode library paths into libraries.
23640 hardcode_into_libs=$hardcode_into_libs
23641
23642 # Compile-time system search path for libraries.
23643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23644
23645 # Detected run-time system search path for libraries.
23646 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23647
23648 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23649 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23650
23651 # Whether dlopen is supported.
23652 dlopen_support=$enable_dlopen
23653
23654 # Whether dlopen of programs is supported.
23655 dlopen_self=$enable_dlopen_self
23656
23657 # Whether dlopen of statically linked programs is supported.
23658 dlopen_self_static=$enable_dlopen_self_static
23659
23660 # Commands to strip libraries.
23661 old_striplib=$lt_old_striplib
23662 striplib=$lt_striplib
23663
23664
23665 # The linker used to build libraries.
23666 LD=$lt_LD
23667
23668 # How to create reloadable object files.
23669 reload_flag=$lt_reload_flag
23670 reload_cmds=$lt_reload_cmds
23671
23672 # Commands used to build an old-style archive.
23673 old_archive_cmds=$lt_old_archive_cmds
23674
23675 # A language specific compiler.
23676 CC=$lt_compiler
23677
23678 # Is the compiler the GNU compiler?
23679 with_gcc=$GCC
23680
23681 # Compiler flag to turn off builtin functions.
23682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23683
23684 # Additional compiler flags for building library objects.
23685 pic_flag=$lt_lt_prog_compiler_pic
23686
23687 # How to pass a linker flag through the compiler.
23688 wl=$lt_lt_prog_compiler_wl
23689
23690 # Compiler flag to prevent dynamic linking.
23691 link_static_flag=$lt_lt_prog_compiler_static
23692
23693 # Does compiler simultaneously support -c and -o options?
23694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23695
23696 # Whether or not to add -lc for building shared libraries.
23697 build_libtool_need_lc=$archive_cmds_need_lc
23698
23699 # Whether or not to disallow shared libs when runtime libs are static.
23700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23701
23702 # Compiler flag to allow reflexive dlopens.
23703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23704
23705 # Compiler flag to generate shared objects directly from archives.
23706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23707
23708 # Whether the compiler copes with passing no objects directly.
23709 compiler_needs_object=$lt_compiler_needs_object
23710
23711 # Create an old-style archive from a shared archive.
23712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23713
23714 # Create a temporary old-style archive to link instead of a shared archive.
23715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23716
23717 # Commands used to build a shared archive.
23718 archive_cmds=$lt_archive_cmds
23719 archive_expsym_cmds=$lt_archive_expsym_cmds
23720
23721 # Commands used to build a loadable module if different from building
23722 # a shared archive.
23723 module_cmds=$lt_module_cmds
23724 module_expsym_cmds=$lt_module_expsym_cmds
23725
23726 # Whether we are building with GNU ld or not.
23727 with_gnu_ld=$lt_with_gnu_ld
23728
23729 # Flag that allows shared libraries with undefined symbols to be built.
23730 allow_undefined_flag=$lt_allow_undefined_flag
23731
23732 # Flag that enforces no undefined symbols.
23733 no_undefined_flag=$lt_no_undefined_flag
23734
23735 # Flag to hardcode \$libdir into a binary during linking.
23736 # This must work even if \$libdir does not exist
23737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23738
23739 # Whether we need a single "-rpath" flag with a separated argument.
23740 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23741
23742 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23743 # DIR into the resulting binary.
23744 hardcode_direct=$hardcode_direct
23745
23746 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23747 # DIR into the resulting binary and the resulting library dependency is
23748 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23749 # library is relocated.
23750 hardcode_direct_absolute=$hardcode_direct_absolute
23751
23752 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23753 # into the resulting binary.
23754 hardcode_minus_L=$hardcode_minus_L
23755
23756 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23757 # into the resulting binary.
23758 hardcode_shlibpath_var=$hardcode_shlibpath_var
23759
23760 # Set to "yes" if building a shared library automatically hardcodes DIR
23761 # into the library and all subsequent libraries and executables linked
23762 # against it.
23763 hardcode_automatic=$hardcode_automatic
23764
23765 # Set to yes if linker adds runtime paths of dependent libraries
23766 # to runtime path list.
23767 inherit_rpath=$inherit_rpath
23768
23769 # Whether libtool must link a program against all its dependency libraries.
23770 link_all_deplibs=$link_all_deplibs
23771
23772 # Set to "yes" if exported symbols are required.
23773 always_export_symbols=$always_export_symbols
23774
23775 # The commands to list exported symbols.
23776 export_symbols_cmds=$lt_export_symbols_cmds
23777
23778 # Symbols that should not be listed in the preloaded symbols.
23779 exclude_expsyms=$lt_exclude_expsyms
23780
23781 # Symbols that must always be exported.
23782 include_expsyms=$lt_include_expsyms
23783
23784 # Commands necessary for linking programs (against libraries) with templates.
23785 prelink_cmds=$lt_prelink_cmds
23786
23787 # Commands necessary for finishing linking programs.
23788 postlink_cmds=$lt_postlink_cmds
23789
23790 # Specify filename containing input files.
23791 file_list_spec=$lt_file_list_spec
23792
23793 # How to hardcode a shared library path into an executable.
23794 hardcode_action=$hardcode_action
23795
23796 # The directories searched by this compiler when creating a shared library.
23797 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23798
23799 # Dependencies to place before and after the objects being linked to
23800 # create a shared library.
23801 predep_objects=$lt_predep_objects
23802 postdep_objects=$lt_postdep_objects
23803 predeps=$lt_predeps
23804 postdeps=$lt_postdeps
23805
23806 # The library search path used internally by the compiler when linking
23807 # a shared library.
23808 compiler_lib_search_path=$lt_compiler_lib_search_path
23809
23810 # ### END LIBTOOL CONFIG
23811
23812 _LT_EOF
23813
23814 cat <<'_LT_EOF' >> "$cfgfile"
23815
23816 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23817
23818 # func_munge_path_list VARIABLE PATH
23819 # -----------------------------------
23820 # VARIABLE is name of variable containing _space_ separated list of
23821 # directories to be munged by the contents of PATH, which is string
23822 # having a format:
23823 # "DIR[:DIR]:"
23824 # string "DIR[ DIR]" will be prepended to VARIABLE
23825 # ":DIR[:DIR]"
23826 # string "DIR[ DIR]" will be appended to VARIABLE
23827 # "DIRP[:DIRP]::[DIRA:]DIRA"
23828 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23829 # "DIRA[ DIRA]" will be appended to VARIABLE
23830 # "DIR[:DIR]"
23831 # VARIABLE will be replaced by "DIR[ DIR]"
23832 func_munge_path_list ()
23833 {
23834 case x$2 in
23835 x)
23836 ;;
23837 *:)
23838 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23839 ;;
23840 x:*)
23841 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23842 ;;
23843 *::*)
23844 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23845 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23846 ;;
23847 *)
23848 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23849 ;;
23850 esac
23851 }
23852
23853
23854 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23855 func_cc_basename ()
23856 {
23857 for cc_temp in $*""; do
23858 case $cc_temp in
23859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23861 \-*) ;;
23862 *) break;;
23863 esac
23864 done
23865 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23866 }
23867
23868
23869 # ### END FUNCTIONS SHARED WITH CONFIGURE
23870
23871 _LT_EOF
23872
23873 case $host_os in
23874 aix3*)
23875 cat <<\_LT_EOF >> "$cfgfile"
23876 # AIX sometimes has problems with the GCC collect2 program. For some
23877 # reason, if we set the COLLECT_NAMES environment variable, the problems
23878 # vanish in a puff of smoke.
23879 if test set != "${COLLECT_NAMES+set}"; then
23880 COLLECT_NAMES=
23881 export COLLECT_NAMES
23882 fi
23883 _LT_EOF
23884 ;;
23885 esac
23886
23887
23888
23889 ltmain=$ac_aux_dir/ltmain.sh
23890
23891
23892 # We use sed instead of cat because bash on DJGPP gets confused if
23893 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23894 # text mode, it properly converts lines to CR/LF. This bash problem
23895 # is reportedly fixed, but why not run on old versions too?
23896 $SED '$q' "$ltmain" >> "$cfgfile" \
23897 || (rm -f "$cfgfile"; exit 1)
23898
23899 mv -f "$cfgfile" "$ofile" ||
23900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23901 chmod +x "$ofile"
23902
23903
23904 cat <<_LT_EOF >> "$ofile"
23905
23906 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23907
23908 # The linker used to build libraries.
23909 LD=$lt_LD_CXX
23910
23911 # How to create reloadable object files.
23912 reload_flag=$lt_reload_flag_CXX
23913 reload_cmds=$lt_reload_cmds_CXX
23914
23915 # Commands used to build an old-style archive.
23916 old_archive_cmds=$lt_old_archive_cmds_CXX
23917
23918 # A language specific compiler.
23919 CC=$lt_compiler_CXX
23920
23921 # Is the compiler the GNU compiler?
23922 with_gcc=$GCC_CXX
23923
23924 # Compiler flag to turn off builtin functions.
23925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23926
23927 # Additional compiler flags for building library objects.
23928 pic_flag=$lt_lt_prog_compiler_pic_CXX
23929
23930 # How to pass a linker flag through the compiler.
23931 wl=$lt_lt_prog_compiler_wl_CXX
23932
23933 # Compiler flag to prevent dynamic linking.
23934 link_static_flag=$lt_lt_prog_compiler_static_CXX
23935
23936 # Does compiler simultaneously support -c and -o options?
23937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23938
23939 # Whether or not to add -lc for building shared libraries.
23940 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23941
23942 # Whether or not to disallow shared libs when runtime libs are static.
23943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23944
23945 # Compiler flag to allow reflexive dlopens.
23946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23947
23948 # Compiler flag to generate shared objects directly from archives.
23949 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23950
23951 # Whether the compiler copes with passing no objects directly.
23952 compiler_needs_object=$lt_compiler_needs_object_CXX
23953
23954 # Create an old-style archive from a shared archive.
23955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23956
23957 # Create a temporary old-style archive to link instead of a shared archive.
23958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23959
23960 # Commands used to build a shared archive.
23961 archive_cmds=$lt_archive_cmds_CXX
23962 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23963
23964 # Commands used to build a loadable module if different from building
23965 # a shared archive.
23966 module_cmds=$lt_module_cmds_CXX
23967 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23968
23969 # Whether we are building with GNU ld or not.
23970 with_gnu_ld=$lt_with_gnu_ld_CXX
23971
23972 # Flag that allows shared libraries with undefined symbols to be built.
23973 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23974
23975 # Flag that enforces no undefined symbols.
23976 no_undefined_flag=$lt_no_undefined_flag_CXX
23977
23978 # Flag to hardcode \$libdir into a binary during linking.
23979 # This must work even if \$libdir does not exist
23980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23981
23982 # Whether we need a single "-rpath" flag with a separated argument.
23983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23984
23985 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23986 # DIR into the resulting binary.
23987 hardcode_direct=$hardcode_direct_CXX
23988
23989 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23990 # DIR into the resulting binary and the resulting library dependency is
23991 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23992 # library is relocated.
23993 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23994
23995 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23996 # into the resulting binary.
23997 hardcode_minus_L=$hardcode_minus_L_CXX
23998
23999 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24000 # into the resulting binary.
24001 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24002
24003 # Set to "yes" if building a shared library automatically hardcodes DIR
24004 # into the library and all subsequent libraries and executables linked
24005 # against it.
24006 hardcode_automatic=$hardcode_automatic_CXX
24007
24008 # Set to yes if linker adds runtime paths of dependent libraries
24009 # to runtime path list.
24010 inherit_rpath=$inherit_rpath_CXX
24011
24012 # Whether libtool must link a program against all its dependency libraries.
24013 link_all_deplibs=$link_all_deplibs_CXX
24014
24015 # Set to "yes" if exported symbols are required.
24016 always_export_symbols=$always_export_symbols_CXX
24017
24018 # The commands to list exported symbols.
24019 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24020
24021 # Symbols that should not be listed in the preloaded symbols.
24022 exclude_expsyms=$lt_exclude_expsyms_CXX
24023
24024 # Symbols that must always be exported.
24025 include_expsyms=$lt_include_expsyms_CXX
24026
24027 # Commands necessary for linking programs (against libraries) with templates.
24028 prelink_cmds=$lt_prelink_cmds_CXX
24029
24030 # Commands necessary for finishing linking programs.
24031 postlink_cmds=$lt_postlink_cmds_CXX
24032
24033 # Specify filename containing input files.
24034 file_list_spec=$lt_file_list_spec_CXX
24035
24036 # How to hardcode a shared library path into an executable.
24037 hardcode_action=$hardcode_action_CXX
24038
24039 # The directories searched by this compiler when creating a shared library.
24040 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24041
24042 # Dependencies to place before and after the objects being linked to
24043 # create a shared library.
24044 predep_objects=$lt_predep_objects_CXX
24045 postdep_objects=$lt_postdep_objects_CXX
24046 predeps=$lt_predeps_CXX
24047 postdeps=$lt_postdeps_CXX
24048
24049 # The library search path used internally by the compiler when linking
24050 # a shared library.
24051 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24052
24053 # ### END LIBTOOL TAG CONFIG: CXX
24054 _LT_EOF
24055
24056
24057 cat <<_LT_EOF >> "$ofile"
24058
24059 # ### BEGIN LIBTOOL TAG CONFIG: RC
24060
24061 # The linker used to build libraries.
24062 LD=$lt_LD_RC
24063
24064 # How to create reloadable object files.
24065 reload_flag=$lt_reload_flag_RC
24066 reload_cmds=$lt_reload_cmds_RC
24067
24068 # Commands used to build an old-style archive.
24069 old_archive_cmds=$lt_old_archive_cmds_RC
24070
24071 # A language specific compiler.
24072 CC=$lt_compiler_RC
24073
24074 # Is the compiler the GNU compiler?
24075 with_gcc=$GCC_RC
24076
24077 # Compiler flag to turn off builtin functions.
24078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24079
24080 # Additional compiler flags for building library objects.
24081 pic_flag=$lt_lt_prog_compiler_pic_RC
24082
24083 # How to pass a linker flag through the compiler.
24084 wl=$lt_lt_prog_compiler_wl_RC
24085
24086 # Compiler flag to prevent dynamic linking.
24087 link_static_flag=$lt_lt_prog_compiler_static_RC
24088
24089 # Does compiler simultaneously support -c and -o options?
24090 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24091
24092 # Whether or not to add -lc for building shared libraries.
24093 build_libtool_need_lc=$archive_cmds_need_lc_RC
24094
24095 # Whether or not to disallow shared libs when runtime libs are static.
24096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24097
24098 # Compiler flag to allow reflexive dlopens.
24099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24100
24101 # Compiler flag to generate shared objects directly from archives.
24102 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24103
24104 # Whether the compiler copes with passing no objects directly.
24105 compiler_needs_object=$lt_compiler_needs_object_RC
24106
24107 # Create an old-style archive from a shared archive.
24108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24109
24110 # Create a temporary old-style archive to link instead of a shared archive.
24111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24112
24113 # Commands used to build a shared archive.
24114 archive_cmds=$lt_archive_cmds_RC
24115 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24116
24117 # Commands used to build a loadable module if different from building
24118 # a shared archive.
24119 module_cmds=$lt_module_cmds_RC
24120 module_expsym_cmds=$lt_module_expsym_cmds_RC
24121
24122 # Whether we are building with GNU ld or not.
24123 with_gnu_ld=$lt_with_gnu_ld_RC
24124
24125 # Flag that allows shared libraries with undefined symbols to be built.
24126 allow_undefined_flag=$lt_allow_undefined_flag_RC
24127
24128 # Flag that enforces no undefined symbols.
24129 no_undefined_flag=$lt_no_undefined_flag_RC
24130
24131 # Flag to hardcode \$libdir into a binary during linking.
24132 # This must work even if \$libdir does not exist
24133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24134
24135 # Whether we need a single "-rpath" flag with a separated argument.
24136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24137
24138 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24139 # DIR into the resulting binary.
24140 hardcode_direct=$hardcode_direct_RC
24141
24142 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24143 # DIR into the resulting binary and the resulting library dependency is
24144 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24145 # library is relocated.
24146 hardcode_direct_absolute=$hardcode_direct_absolute_RC
24147
24148 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24149 # into the resulting binary.
24150 hardcode_minus_L=$hardcode_minus_L_RC
24151
24152 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24153 # into the resulting binary.
24154 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24155
24156 # Set to "yes" if building a shared library automatically hardcodes DIR
24157 # into the library and all subsequent libraries and executables linked
24158 # against it.
24159 hardcode_automatic=$hardcode_automatic_RC
24160
24161 # Set to yes if linker adds runtime paths of dependent libraries
24162 # to runtime path list.
24163 inherit_rpath=$inherit_rpath_RC
24164
24165 # Whether libtool must link a program against all its dependency libraries.
24166 link_all_deplibs=$link_all_deplibs_RC
24167
24168 # Set to "yes" if exported symbols are required.
24169 always_export_symbols=$always_export_symbols_RC
24170
24171 # The commands to list exported symbols.
24172 export_symbols_cmds=$lt_export_symbols_cmds_RC
24173
24174 # Symbols that should not be listed in the preloaded symbols.
24175 exclude_expsyms=$lt_exclude_expsyms_RC
24176
24177 # Symbols that must always be exported.
24178 include_expsyms=$lt_include_expsyms_RC
24179
24180 # Commands necessary for linking programs (against libraries) with templates.
24181 prelink_cmds=$lt_prelink_cmds_RC
24182
24183 # Commands necessary for finishing linking programs.
24184 postlink_cmds=$lt_postlink_cmds_RC
24185
24186 # Specify filename containing input files.
24187 file_list_spec=$lt_file_list_spec_RC
24188
24189 # How to hardcode a shared library path into an executable.
24190 hardcode_action=$hardcode_action_RC
24191
24192 # The directories searched by this compiler when creating a shared library.
24193 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
24194
24195 # Dependencies to place before and after the objects being linked to
24196 # create a shared library.
24197 predep_objects=$lt_predep_objects_RC
24198 postdep_objects=$lt_postdep_objects_RC
24199 predeps=$lt_predeps_RC
24200 postdeps=$lt_postdeps_RC
24201
24202 # The library search path used internally by the compiler when linking
24203 # a shared library.
24204 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24205
24206 # ### END LIBTOOL TAG CONFIG: RC
24207 _LT_EOF
24208
24209
24210 as_fn_exit 0
24211 _LTEOF
24212 chmod +x "$CONFIG_LT"
24213
24214 # configure is writing to config.log, but config.lt does its own redirection,
24215 # appending to config.log, which fails on DOS, as config.log is still kept
24216 # open by configure. Here we exec the FD to /dev/null, effectively closing
24217 # config.log, so it can be properly (re)opened and appended to by config.lt.
24218 lt_cl_success=:
24219 test yes = "$silent" &&
24220 lt_config_lt_args="$lt_config_lt_args --quiet"
24221 exec 5>/dev/null
24222 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
24223 exec 5>>config.log
24224 $lt_cl_success || as_fn_exit 1
24225
24226
24227 LT_CURRENT=0
24228 LT_REVISION=0
24229 LT_AGE=0
24230 LT_VERSION_INFO="\$(LT_CURRENT):\$(LT_REVISION):\$(LT_AGE)"
24231
24232
24233
24234
24235
24236 GRN_DLL_FILENAME="libgroonga-\$(LT_CURRENT).dll"
24237
24238
24239 if test "$srcdir/version.sh"; then
24240 . "$srcdir/version.sh"
24241
24242 fi
24243
24244 if test "$GCC" = "yes"; then
24245
24246 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
24247
24248 fi
24249
24250 if test "$netbsd" = "yes"; then
24251
24252 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
24253
24254 fi
24255
24256 if test "$solaris" = "yes"; then
24257
24258 printf "%s\n" "#define _XPG4_2 1" >>confdefs.h
24259
24260
24261 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
24262
24263 fi
24264
24265 # For debug
24266 # Check whether --enable-debug was given.
24267 if test ${enable_debug+y}
24268 then :
24269 enableval=$enable_debug; grn_debug="$enableval"
24270 else $as_nop
24271 grn_debug="no"
24272 fi
24273
24274 if test "x$grn_debug" != "xno"; then
24275 grn_debug="yes"
24276 if test "$CLANG" = "yes"; then
24277 CFLAGS="$CFLAGS -O0 -g"
24278 CXXFLAGS="$CXXFLAGS -O0 -g"
24279 elif test "$GCC" = "yes"; then
24280 CFLAGS="$CFLAGS -O0 -g3"
24281 CXXFLAGS="$CXXFLAGS -O0 -g3"
24282 fi
24283 fi
24284
24285
24286 # For optimization
24287 # Check whether --enable-optimize was given.
24288 if test ${enable_optimize+y}
24289 then :
24290 enableval=$enable_optimize; grn_optimize="$enableval"
24291 else $as_nop
24292 grn_optimize="no"
24293 fi
24294
24295 if test "x$grn_optimize" != "xno"; then
24296 grn_optimize="yes"
24297 if test "$CLANG" = "yes"; then
24298 CFLAGS="$CFLAGS -O3 -march=native"
24299 CXXFLAGS="$CXXFLAGS -O3 -march=native"
24300 elif test "$GCC" = "yes"; then
24301 CFLAGS="$CFLAGS -O3 -march=native"
24302 CXXFLAGS="$CXXFLAGS -O3 -march=native"
24303 fi
24304 fi
24305
24306 # Check whether --enable-windows-back-trace was given.
24307 if test ${enable_windows_back_trace+y}
24308 then :
24309 enableval=$enable_windows_back_trace; grn_with_windows_back_trace="$enableval"
24310 else $as_nop
24311 grn_with_windows_back_trace="yes"
24312 fi
24313
24314 if test "x$grn_with_windows_back_trace" = "yes"; then
24315
24316 printf "%s\n" "#define GRN_WITH_WINDOWS_BACK_TRACE 1" >>confdefs.h
24317
24318 fi
24319
24320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
24321 printf %s "checking for library containing log... " >&6; }
24322 if test ${ac_cv_search_log+y}
24323 then :
24324 printf %s "(cached) " >&6
24325 else $as_nop
24326 ac_func_search_save_LIBS=$LIBS
24327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24328 /* end confdefs.h. */
24329
24330 /* Override any GCC internal prototype to avoid an error.
24331 Use char because int might match the return type of a GCC
24332 builtin and then its argument prototype would still apply. */
24333 char log ();
24334 int
24335 main (void)
24336 {
24337 return log ();
24338 ;
24339 return 0;
24340 }
24341 _ACEOF
24342 for ac_lib in '' m
24343 do
24344 if test -z "$ac_lib"; then
24345 ac_res="none required"
24346 else
24347 ac_res=-l$ac_lib
24348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24349 fi
24350 if ac_fn_c_try_link "$LINENO"
24351 then :
24352 ac_cv_search_log=$ac_res
24353 fi
24354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24355 conftest$ac_exeext
24356 if test ${ac_cv_search_log+y}
24357 then :
24358 break
24359 fi
24360 done
24361 if test ${ac_cv_search_log+y}
24362 then :
24363
24364 else $as_nop
24365 ac_cv_search_log=no
24366 fi
24367 rm conftest.$ac_ext
24368 LIBS=$ac_func_search_save_LIBS
24369 fi
24370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
24371 printf "%s\n" "$ac_cv_search_log" >&6; }
24372 ac_res=$ac_cv_search_log
24373 if test "$ac_res" != no
24374 then :
24375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24376
24377 else $as_nop
24378 as_fn_error $? "\"No libm found\"" "$LINENO" 5
24379 fi
24380
24381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fpclassify" >&5
24382 printf %s "checking for fpclassify... " >&6; }
24383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24384 /* end confdefs.h. */
24385 #include <math.h>
24386 int
24387 main (void)
24388 {
24389 if (fpclassify(0.0)) {return 0;}
24390
24391 ;
24392 return 0;
24393 }
24394 _ACEOF
24395 if ac_fn_c_try_link "$LINENO"
24396 then :
24397
24398
24399 printf "%s\n" "#define HAVE_FPCLASSIFY 1" >>confdefs.h
24400
24401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24402 printf "%s\n" "yes" >&6; }
24403
24404 else $as_nop
24405
24406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24407 /* end confdefs.h. */
24408 #define _ISOC99_SOURCE
24409 #include <math.h>
24410 int
24411 main (void)
24412 {
24413 if (fpclassify(0.0)) {return 0;}
24414
24415 ;
24416 return 0;
24417 }
24418 _ACEOF
24419 if ac_fn_c_try_link "$LINENO"
24420 then :
24421
24422
24423 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
24424
24425
24426 printf "%s\n" "#define HAVE_FPCLASSIFY 1" >>confdefs.h
24427
24428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24429 printf "%s\n" "yes" >&6; }
24430
24431 else $as_nop
24432
24433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24434 printf "%s\n" "no" >&6; }
24435
24436 fi
24437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24438 conftest$ac_exeext conftest.$ac_ext
24439
24440 fi
24441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24442 conftest$ac_exeext conftest.$ac_ext
24443
24444 # -*- autoconf -*-
24445
24446 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
24447 if test "x$ac_cv_header_dirent_h" = xyes
24448 then :
24449 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
24450
24451 fi
24452
24453 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
24454 if test "x$ac_cv_header_dlfcn_h" = xyes
24455 then :
24456 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
24457
24458 fi
24459
24460 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
24461 if test "x$ac_cv_header_errno_h" = xyes
24462 then :
24463 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
24464
24465 fi
24466
24467 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
24468 if test "x$ac_cv_header_execinfo_h" = xyes
24469 then :
24470 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
24471
24472 fi
24473
24474 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
24475 if test "x$ac_cv_header_inttypes_h" = xyes
24476 then :
24477 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
24478
24479 fi
24480
24481 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
24482 if test "x$ac_cv_header_netdb_h" = xyes
24483 then :
24484 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
24485
24486 fi
24487
24488 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24489 if test "x$ac_cv_header_signal_h" = xyes
24490 then :
24491 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
24492
24493 fi
24494
24495 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
24496 if test "x$ac_cv_header_sys_mman_h" = xyes
24497 then :
24498 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
24499
24500 fi
24501
24502 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
24503 if test "x$ac_cv_header_sys_param_h" = xyes
24504 then :
24505 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
24506
24507 fi
24508
24509 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
24510 if test "x$ac_cv_header_sys_resource_h" = xyes
24511 then :
24512 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
24513
24514 fi
24515
24516 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
24517 if test "x$ac_cv_header_sys_socket_h" = xyes
24518 then :
24519 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
24520
24521 fi
24522
24523 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
24524 if test "x$ac_cv_header_sys_time_h" = xyes
24525 then :
24526 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
24527
24528 fi
24529
24530 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
24531 if test "x$ac_cv_header_sys_wait_h" = xyes
24532 then :
24533 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
24534
24535 fi
24536
24537 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
24538 if test "x$ac_cv_header_time_h" = xyes
24539 then :
24540 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
24541
24542 fi
24543
24544 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
24545 if test "x$ac_cv_header_ucontext_h" = xyes
24546 then :
24547 printf "%s\n" "#define HAVE_UCONTEXT_H 1" >>confdefs.h
24548
24549 fi
24550
24551 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
24552 if test "x$ac_cv_header_unistd_h" = xyes
24553 then :
24554 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
24555
24556 fi
24557
24558
24559 # -*- autoconf -*-
24560
24561 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
24562 if test "x$ac_cv_func__gmtime64_s" = xyes
24563 then :
24564 printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h
24565
24566 fi
24567
24568 ac_fn_c_check_func "$LINENO" "_localtime64_s" "ac_cv_func__localtime64_s"
24569 if test "x$ac_cv_func__localtime64_s" = xyes
24570 then :
24571 printf "%s\n" "#define HAVE__LOCALTIME64_S 1" >>confdefs.h
24572
24573 fi
24574
24575 ac_fn_c_check_func "$LINENO" "_strtoui64" "ac_cv_func__strtoui64"
24576 if test "x$ac_cv_func__strtoui64" = xyes
24577 then :
24578 printf "%s\n" "#define HAVE__STRTOUI64 1" >>confdefs.h
24579
24580 fi
24581
24582 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
24583 if test "x$ac_cv_func_fdatasync" = xyes
24584 then :
24585 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
24586
24587 fi
24588
24589 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
24590 if test "x$ac_cv_func_fsync" = xyes
24591 then :
24592 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
24593
24594 fi
24595
24596 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
24597 if test "x$ac_cv_func_futimens" = xyes
24598 then :
24599 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
24600
24601 fi
24602
24603 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
24604 if test "x$ac_cv_func_futimes" = xyes
24605 then :
24606 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
24607
24608 fi
24609
24610 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
24611 if test "x$ac_cv_func_getrusage" = xyes
24612 then :
24613 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
24614
24615 fi
24616
24617 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
24618 if test "x$ac_cv_func_gmtime_r" = xyes
24619 then :
24620 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
24621
24622 fi
24623
24624 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
24625 if test "x$ac_cv_func_localtime_r" = xyes
24626 then :
24627 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
24628
24629 fi
24630
24631 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
24632 if test "x$ac_cv_func_mkstemp" = xyes
24633 then :
24634 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
24635
24636 fi
24637
24638 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24639 if test "x$ac_cv_func_strcasecmp" = xyes
24640 then :
24641 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
24642
24643 fi
24644
24645 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24646 if test "x$ac_cv_func_strncasecmp" = xyes
24647 then :
24648 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
24649
24650 fi
24651
24652 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
24653 if test "x$ac_cv_func_strtoull" = xyes
24654 then :
24655 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
24656
24657 fi
24658
24659
24660
24661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
24662 printf %s "checking for library containing backtrace... " >&6; }
24663 if test ${ac_cv_search_backtrace+y}
24664 then :
24665 printf %s "(cached) " >&6
24666 else $as_nop
24667 ac_func_search_save_LIBS=$LIBS
24668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669 /* end confdefs.h. */
24670
24671 /* Override any GCC internal prototype to avoid an error.
24672 Use char because int might match the return type of a GCC
24673 builtin and then its argument prototype would still apply. */
24674 char backtrace ();
24675 int
24676 main (void)
24677 {
24678 return backtrace ();
24679 ;
24680 return 0;
24681 }
24682 _ACEOF
24683 for ac_lib in '' execinfo
24684 do
24685 if test -z "$ac_lib"; then
24686 ac_res="none required"
24687 else
24688 ac_res=-l$ac_lib
24689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24690 fi
24691 if ac_fn_c_try_link "$LINENO"
24692 then :
24693 ac_cv_search_backtrace=$ac_res
24694 fi
24695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24696 conftest$ac_exeext
24697 if test ${ac_cv_search_backtrace+y}
24698 then :
24699 break
24700 fi
24701 done
24702 if test ${ac_cv_search_backtrace+y}
24703 then :
24704
24705 else $as_nop
24706 ac_cv_search_backtrace=no
24707 fi
24708 rm conftest.$ac_ext
24709 LIBS=$ac_func_search_save_LIBS
24710 fi
24711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
24712 printf "%s\n" "$ac_cv_search_backtrace" >&6; }
24713 ac_res=$ac_cv_search_backtrace
24714 if test "$ac_res" != no
24715 then :
24716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24717
24718 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
24719
24720 fi
24721
24722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24723 printf %s "checking for library containing clock_gettime... " >&6; }
24724 if test ${ac_cv_search_clock_gettime+y}
24725 then :
24726 printf %s "(cached) " >&6
24727 else $as_nop
24728 ac_func_search_save_LIBS=$LIBS
24729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730 /* end confdefs.h. */
24731
24732 /* Override any GCC internal prototype to avoid an error.
24733 Use char because int might match the return type of a GCC
24734 builtin and then its argument prototype would still apply. */
24735 char clock_gettime ();
24736 int
24737 main (void)
24738 {
24739 return clock_gettime ();
24740 ;
24741 return 0;
24742 }
24743 _ACEOF
24744 for ac_lib in '' rt
24745 do
24746 if test -z "$ac_lib"; then
24747 ac_res="none required"
24748 else
24749 ac_res=-l$ac_lib
24750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24751 fi
24752 if ac_fn_c_try_link "$LINENO"
24753 then :
24754 ac_cv_search_clock_gettime=$ac_res
24755 fi
24756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24757 conftest$ac_exeext
24758 if test ${ac_cv_search_clock_gettime+y}
24759 then :
24760 break
24761 fi
24762 done
24763 if test ${ac_cv_search_clock_gettime+y}
24764 then :
24765
24766 else $as_nop
24767 ac_cv_search_clock_gettime=no
24768 fi
24769 rm conftest.$ac_ext
24770 LIBS=$ac_func_search_save_LIBS
24771 fi
24772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24773 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
24774 ac_res=$ac_cv_search_clock_gettime
24775 if test "$ac_res" != no
24776 then :
24777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24778
24779 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24780
24781 fi
24782
24783 # Check whether --enable-largefile was given.
24784 if test ${enable_largefile+y}
24785 then :
24786 enableval=$enable_largefile;
24787 fi
24788
24789 if test "$enable_largefile" != no; then
24790
24791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24792 printf %s "checking for special C compiler options needed for large files... " >&6; }
24793 if test ${ac_cv_sys_largefile_CC+y}
24794 then :
24795 printf %s "(cached) " >&6
24796 else $as_nop
24797 ac_cv_sys_largefile_CC=no
24798 if test "$GCC" != yes; then
24799 ac_save_CC=$CC
24800 while :; do
24801 # IRIX 6.2 and later do not support large files by default,
24802 # so use the C compiler's -n32 option if that helps.
24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h. */
24805 #include <sys/types.h>
24806 /* Check that off_t can represent 2**63 - 1 correctly.
24807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24808 since some C++ compilers masquerading as C compilers
24809 incorrectly reject 9223372036854775807. */
24810 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24812 && LARGE_OFF_T % 2147483647 == 1)
24813 ? 1 : -1];
24814 int
24815 main (void)
24816 {
24817
24818 ;
24819 return 0;
24820 }
24821 _ACEOF
24822 if ac_fn_c_try_compile "$LINENO"
24823 then :
24824 break
24825 fi
24826 rm -f core conftest.err conftest.$ac_objext conftest.beam
24827 CC="$CC -n32"
24828 if ac_fn_c_try_compile "$LINENO"
24829 then :
24830 ac_cv_sys_largefile_CC=' -n32'; break
24831 fi
24832 rm -f core conftest.err conftest.$ac_objext conftest.beam
24833 break
24834 done
24835 CC=$ac_save_CC
24836 rm -f conftest.$ac_ext
24837 fi
24838 fi
24839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24840 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
24841 if test "$ac_cv_sys_largefile_CC" != no; then
24842 CC=$CC$ac_cv_sys_largefile_CC
24843 fi
24844
24845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24846 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24847 if test ${ac_cv_sys_file_offset_bits+y}
24848 then :
24849 printf %s "(cached) " >&6
24850 else $as_nop
24851 while :; do
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h. */
24854 #include <sys/types.h>
24855 /* Check that off_t can represent 2**63 - 1 correctly.
24856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24857 since some C++ compilers masquerading as C compilers
24858 incorrectly reject 9223372036854775807. */
24859 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24861 && LARGE_OFF_T % 2147483647 == 1)
24862 ? 1 : -1];
24863 int
24864 main (void)
24865 {
24866
24867 ;
24868 return 0;
24869 }
24870 _ACEOF
24871 if ac_fn_c_try_compile "$LINENO"
24872 then :
24873 ac_cv_sys_file_offset_bits=no; break
24874 fi
24875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24877 /* end confdefs.h. */
24878 #define _FILE_OFFSET_BITS 64
24879 #include <sys/types.h>
24880 /* Check that off_t can represent 2**63 - 1 correctly.
24881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24882 since some C++ compilers masquerading as C compilers
24883 incorrectly reject 9223372036854775807. */
24884 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24886 && LARGE_OFF_T % 2147483647 == 1)
24887 ? 1 : -1];
24888 int
24889 main (void)
24890 {
24891
24892 ;
24893 return 0;
24894 }
24895 _ACEOF
24896 if ac_fn_c_try_compile "$LINENO"
24897 then :
24898 ac_cv_sys_file_offset_bits=64; break
24899 fi
24900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24901 ac_cv_sys_file_offset_bits=unknown
24902 break
24903 done
24904 fi
24905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24906 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
24907 case $ac_cv_sys_file_offset_bits in #(
24908 no | unknown) ;;
24909 *)
24910 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
24911 ;;
24912 esac
24913 rm -rf conftest*
24914 if test $ac_cv_sys_file_offset_bits = unknown; then
24915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24916 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
24917 if test ${ac_cv_sys_large_files+y}
24918 then :
24919 printf %s "(cached) " >&6
24920 else $as_nop
24921 while :; do
24922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24924 #include <sys/types.h>
24925 /* Check that off_t can represent 2**63 - 1 correctly.
24926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24927 since some C++ compilers masquerading as C compilers
24928 incorrectly reject 9223372036854775807. */
24929 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24931 && LARGE_OFF_T % 2147483647 == 1)
24932 ? 1 : -1];
24933 int
24934 main (void)
24935 {
24936
24937 ;
24938 return 0;
24939 }
24940 _ACEOF
24941 if ac_fn_c_try_compile "$LINENO"
24942 then :
24943 ac_cv_sys_large_files=no; break
24944 fi
24945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24948 #define _LARGE_FILES 1
24949 #include <sys/types.h>
24950 /* Check that off_t can represent 2**63 - 1 correctly.
24951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24952 since some C++ compilers masquerading as C compilers
24953 incorrectly reject 9223372036854775807. */
24954 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24956 && LARGE_OFF_T % 2147483647 == 1)
24957 ? 1 : -1];
24958 int
24959 main (void)
24960 {
24961
24962 ;
24963 return 0;
24964 }
24965 _ACEOF
24966 if ac_fn_c_try_compile "$LINENO"
24967 then :
24968 ac_cv_sys_large_files=1; break
24969 fi
24970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24971 ac_cv_sys_large_files=unknown
24972 break
24973 done
24974 fi
24975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24976 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
24977 case $ac_cv_sys_large_files in #(
24978 no | unknown) ;;
24979 *)
24980 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
24981 ;;
24982 esac
24983 rm -rf conftest*
24984 fi
24985 fi
24986
24987 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24988 if test "x$ac_cv_type_off_t" = xyes
24989 then :
24990
24991 else $as_nop
24992
24993 printf "%s\n" "#define off_t long int" >>confdefs.h
24994
24995 fi
24996
24997 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24998 if test "x$ac_cv_type_size_t" = xyes
24999 then :
25000
25001 else $as_nop
25002
25003 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
25004
25005 fi
25006
25007 # The cast to long int works around a bug in the HP C Compiler
25008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25010 # This bug is HP SR number 8606223364.
25011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
25012 printf %s "checking size of off_t... " >&6; }
25013 if test ${ac_cv_sizeof_off_t+y}
25014 then :
25015 printf %s "(cached) " >&6
25016 else $as_nop
25017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
25018 then :
25019
25020 else $as_nop
25021 if test "$ac_cv_type_off_t" = yes; then
25022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25023 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25024 as_fn_error 77 "cannot compute sizeof (off_t)
25025 See \`config.log' for more details" "$LINENO" 5; }
25026 else
25027 ac_cv_sizeof_off_t=0
25028 fi
25029 fi
25030
25031 fi
25032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
25033 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
25034
25035
25036
25037 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
25038
25039
25040 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
25041 #include <time.h>
25042
25043 "
25044 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
25045 then :
25046
25047 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
25048
25049
25050 fi
25051
25052
25053 # MAP_HUGETLB
25054 # Check whether --enable-map-hugetlb was given.
25055 if test ${enable_map_hugetlb+y}
25056 then :
25057 enableval=$enable_map_hugetlb;
25058 else $as_nop
25059 enable_map_hugetlb="no"
25060 fi
25061
25062 if test "x$enable_map_hugetlb" != "xno"; then
25063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_HUGETLB" >&5
25064 printf %s "checking for MAP_HUGETLB... " >&6; }
25065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066 /* end confdefs.h. */
25067
25068 #ifdef HAVE_SYS_MMAN_H
25069 # include <sys/mman.h>
25070 #endif /* HAVE_SYS_MMAN_H */
25071
25072 int
25073 main (void)
25074 {
25075 MAP_HUGETLB;
25076
25077 ;
25078 return 0;
25079 }
25080 _ACEOF
25081 if ac_fn_c_try_compile "$LINENO"
25082 then :
25083
25084
25085 printf "%s\n" "#define USE_MAP_HUGETLB 1" >>confdefs.h
25086
25087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25088 printf "%s\n" "yes" >&6; }
25089
25090 else $as_nop
25091
25092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25093 printf "%s\n" "no" >&6; }
25094 as_fn_error $? "\"MAP_HUGETLB isn't available.\"" "$LINENO" 5
25095
25096
25097 fi
25098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25099 fi
25100
25101 # log path
25102
25103 # Check whether --with-log_path was given.
25104 if test ${with_log_path+y}
25105 then :
25106 withval=$with_log_path; grn_log_path="$withval"
25107 else $as_nop
25108 grn_log_path="\$(localstatedir)/log/\$(PACKAGE_NAME)/\$(PACKAGE_NAME).log"
25109 fi
25110
25111
25112
25113 # default encoding
25114
25115 # Check whether --with-default_encoding was given.
25116 if test ${with_default_encoding+y}
25117 then :
25118 withval=$with_default_encoding; GRN_DEFAULT_ENCODING="$withval"
25119 else $as_nop
25120 GRN_DEFAULT_ENCODING="utf8"
25121 fi
25122
25123
25124 printf "%s\n" "#define GRN_DEFAULT_ENCODING \"$GRN_DEFAULT_ENCODING\"" >>confdefs.h
25125
25126
25127 # default match escalation threshold
25128
25129 # Check whether --with-match_escalation_threshold was given.
25130 if test ${with_match_escalation_threshold+y}
25131 then :
25132 withval=$with_match_escalation_threshold; GRN_DEFAULT_MATCH_ESCALATION_THRESHOLD="$withval"
25133 else $as_nop
25134 GRN_DEFAULT_MATCH_ESCALATION_THRESHOLD="0"
25135 fi
25136
25137
25138 printf "%s\n" "#define GRN_DEFAULT_MATCH_ESCALATION_THRESHOLD $GRN_DEFAULT_MATCH_ESCALATION_THRESHOLD" >>confdefs.h
25139
25140
25141 # default DB key management algorithm
25142
25143 # Check whether --with-default_db_key was given.
25144 if test ${with_default_db_key+y}
25145 then :
25146 withval=$with_default_db_key; GRN_DEFAULT_DB_KEY="$withval"
25147 else $as_nop
25148 GRN_DEFAULT_DB_KEY="auto"
25149 fi
25150
25151
25152 printf "%s\n" "#define GRN_DEFAULT_DB_KEY \"$GRN_DEFAULT_DB_KEY\"" >>confdefs.h
25153
25154
25155 # DANGER!!!: stack size
25156 GRN_STACK_SIZE=1024
25157
25158 # Check whether --with-stack_size was given.
25159 if test ${with_stack_size+y}
25160 then :
25161 withval=$with_stack_size; GRN_STACK_SIZE="$withval"
25162 fi
25163
25164
25165 printf "%s\n" "#define GRN_STACK_SIZE $GRN_STACK_SIZE" >>confdefs.h
25166
25167
25168 # lock timeout
25169 GRN_LOCK_TIMEOUT=900000
25170
25171 # Check whether --with-lock_timeout was given.
25172 if test ${with_lock_timeout+y}
25173 then :
25174 withval=$with_lock_timeout; GRN_LOCK_TIMEOUT="$withval"
25175 fi
25176
25177
25178 printf "%s\n" "#define GRN_LOCK_TIMEOUT $GRN_LOCK_TIMEOUT" >>confdefs.h
25179
25180
25181 # lock wait time
25182 GRN_LOCK_WAIT_TIME_NANOSECOND=1000000
25183
25184 # Check whether --with-lock_wait_time was given.
25185 if test ${with_lock_wait_time+y}
25186 then :
25187 withval=$with_lock_wait_time; GRN_LOCK_WAIT_TIME_NANOSECOND="$withval"
25188 fi
25189
25190
25191 printf "%s\n" "#define GRN_LOCK_WAIT_TIME_NANOSECOND $GRN_LOCK_WAIT_TIME_NANOSECOND" >>confdefs.h
25192
25193
25194 if test "$os_win32" != "yes"; then
25195 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25196 if test "x$ac_cv_header_pthread_h" = xyes
25197 then :
25198 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
25199
25200 fi
25201
25202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
25203 printf %s "checking for library containing pthread_create... " >&6; }
25204 if test ${ac_cv_search_pthread_create+y}
25205 then :
25206 printf %s "(cached) " >&6
25207 else $as_nop
25208 ac_func_search_save_LIBS=$LIBS
25209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h. */
25211
25212 /* Override any GCC internal prototype to avoid an error.
25213 Use char because int might match the return type of a GCC
25214 builtin and then its argument prototype would still apply. */
25215 char pthread_create ();
25216 int
25217 main (void)
25218 {
25219 return pthread_create ();
25220 ;
25221 return 0;
25222 }
25223 _ACEOF
25224 for ac_lib in '' pthread
25225 do
25226 if test -z "$ac_lib"; then
25227 ac_res="none required"
25228 else
25229 ac_res=-l$ac_lib
25230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25231 fi
25232 if ac_fn_c_try_link "$LINENO"
25233 then :
25234 ac_cv_search_pthread_create=$ac_res
25235 fi
25236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25237 conftest$ac_exeext
25238 if test ${ac_cv_search_pthread_create+y}
25239 then :
25240 break
25241 fi
25242 done
25243 if test ${ac_cv_search_pthread_create+y}
25244 then :
25245
25246 else $as_nop
25247 ac_cv_search_pthread_create=no
25248 fi
25249 rm conftest.$ac_ext
25250 LIBS=$ac_func_search_save_LIBS
25251 fi
25252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
25253 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
25254 ac_res=$ac_cv_search_pthread_create
25255 if test "$ac_res" != no
25256 then :
25257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25258
25259 else $as_nop
25260 as_fn_error $? "\"No libpthread found\"" "$LINENO" 5
25261 fi
25262
25263 fi
25264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25265 printf %s "checking for library containing gethostbyname... " >&6; }
25266 if test ${ac_cv_search_gethostbyname+y}
25267 then :
25268 printf %s "(cached) " >&6
25269 else $as_nop
25270 ac_func_search_save_LIBS=$LIBS
25271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272 /* end confdefs.h. */
25273
25274 /* Override any GCC internal prototype to avoid an error.
25275 Use char because int might match the return type of a GCC
25276 builtin and then its argument prototype would still apply. */
25277 char gethostbyname ();
25278 int
25279 main (void)
25280 {
25281 return gethostbyname ();
25282 ;
25283 return 0;
25284 }
25285 _ACEOF
25286 for ac_lib in '' nsl
25287 do
25288 if test -z "$ac_lib"; then
25289 ac_res="none required"
25290 else
25291 ac_res=-l$ac_lib
25292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25293 fi
25294 if ac_fn_c_try_link "$LINENO"
25295 then :
25296 ac_cv_search_gethostbyname=$ac_res
25297 fi
25298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25299 conftest$ac_exeext
25300 if test ${ac_cv_search_gethostbyname+y}
25301 then :
25302 break
25303 fi
25304 done
25305 if test ${ac_cv_search_gethostbyname+y}
25306 then :
25307
25308 else $as_nop
25309 ac_cv_search_gethostbyname=no
25310 fi
25311 rm conftest.$ac_ext
25312 LIBS=$ac_func_search_save_LIBS
25313 fi
25314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25315 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
25316 ac_res=$ac_cv_search_gethostbyname
25317 if test "$ac_res" != no
25318 then :
25319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25320
25321 fi
25322
25323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25324 printf %s "checking for library containing socket... " >&6; }
25325 if test ${ac_cv_search_socket+y}
25326 then :
25327 printf %s "(cached) " >&6
25328 else $as_nop
25329 ac_func_search_save_LIBS=$LIBS
25330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25331 /* end confdefs.h. */
25332
25333 /* Override any GCC internal prototype to avoid an error.
25334 Use char because int might match the return type of a GCC
25335 builtin and then its argument prototype would still apply. */
25336 char socket ();
25337 int
25338 main (void)
25339 {
25340 return socket ();
25341 ;
25342 return 0;
25343 }
25344 _ACEOF
25345 for ac_lib in '' socket
25346 do
25347 if test -z "$ac_lib"; then
25348 ac_res="none required"
25349 else
25350 ac_res=-l$ac_lib
25351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25352 fi
25353 if ac_fn_c_try_link "$LINENO"
25354 then :
25355 ac_cv_search_socket=$ac_res
25356 fi
25357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25358 conftest$ac_exeext
25359 if test ${ac_cv_search_socket+y}
25360 then :
25361 break
25362 fi
25363 done
25364 if test ${ac_cv_search_socket+y}
25365 then :
25366
25367 else $as_nop
25368 ac_cv_search_socket=no
25369 fi
25370 rm conftest.$ac_ext
25371 LIBS=$ac_func_search_save_LIBS
25372 fi
25373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25374 printf "%s\n" "$ac_cv_search_socket" >&6; }
25375 ac_res=$ac_cv_search_socket
25376 if test "$ac_res" != no
25377 then :
25378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25379
25380 fi
25381
25382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25383 printf %s "checking for library containing dlopen... " >&6; }
25384 if test ${ac_cv_search_dlopen+y}
25385 then :
25386 printf %s "(cached) " >&6
25387 else $as_nop
25388 ac_func_search_save_LIBS=$LIBS
25389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25390 /* end confdefs.h. */
25391
25392 /* Override any GCC internal prototype to avoid an error.
25393 Use char because int might match the return type of a GCC
25394 builtin and then its argument prototype would still apply. */
25395 char dlopen ();
25396 int
25397 main (void)
25398 {
25399 return dlopen ();
25400 ;
25401 return 0;
25402 }
25403 _ACEOF
25404 for ac_lib in '' dl
25405 do
25406 if test -z "$ac_lib"; then
25407 ac_res="none required"
25408 else
25409 ac_res=-l$ac_lib
25410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25411 fi
25412 if ac_fn_c_try_link "$LINENO"
25413 then :
25414 ac_cv_search_dlopen=$ac_res
25415 fi
25416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25417 conftest$ac_exeext
25418 if test ${ac_cv_search_dlopen+y}
25419 then :
25420 break
25421 fi
25422 done
25423 if test ${ac_cv_search_dlopen+y}
25424 then :
25425
25426 else $as_nop
25427 ac_cv_search_dlopen=no
25428 fi
25429 rm conftest.$ac_ext
25430 LIBS=$ac_func_search_save_LIBS
25431 fi
25432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25433 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
25434 ac_res=$ac_cv_search_dlopen
25435 if test "$ac_res" != no
25436 then :
25437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25438
25439 fi
25440
25441
25442 # nfkc
25443 # Check whether --enable-nfkc was given.
25444 if test ${enable_nfkc+y}
25445 then :
25446 enableval=$enable_nfkc;
25447 else $as_nop
25448 enable_nfkc="yes"
25449 fi
25450
25451 if test "x$enable_nfkc" = "xyes"; then
25452
25453 printf "%s\n" "#define GRN_WITH_NFKC 1" >>confdefs.h
25454
25455 fi
25456
25457 # coverage
25458
25459 GENHTML_OPTIONS="--title 'groonga Code Coverage'"
25460
25461 # microyield
25462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable uyield" >&5
25463 printf %s "checking whether enable uyield... " >&6; }
25464 # Check whether --enable-uyield was given.
25465 if test ${enable_uyield+y}
25466 then :
25467 enableval=$enable_uyield;
25468 else $as_nop
25469 enable_uyield="no"
25470 fi
25471
25472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_uyield" >&5
25473 printf "%s\n" "$enable_uyield" >&6; }
25474
25475 # memory debug
25476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether debug memory management" >&5
25477 printf %s "checking whether debug memory management... " >&6; }
25478 # Check whether --enable-memory-debug was given.
25479 if test ${enable_memory_debug+y}
25480 then :
25481 enableval=$enable_memory_debug;
25482 else $as_nop
25483 enable_memory_debug="no"
25484 fi
25485
25486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_memory_debug" >&5
25487 printf "%s\n" "$enable_memory_debug" >&6; }
25488
25489 if test "x$enable_memory_debug" = "xyes"; then
25490
25491 printf "%s\n" "#define GRN_WITH_MEMORY_DEBUG 1" >>confdefs.h
25492
25493 fi
25494
25495 # epoll/kqueue/poll/select check
25496 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
25497 if test "x$ac_cv_header_sys_epoll_h" = xyes
25498 then :
25499
25500 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
25501 if test "x$ac_cv_func_epoll_create" = xyes
25502 then :
25503
25504 if test "$cross_compiling" = yes
25505 then :
25506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25507 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25508 as_fn_error $? "cannot run test program while cross compiling
25509 See \`config.log' for more details" "$LINENO" 5; }
25510 else $as_nop
25511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512 /* end confdefs.h. */
25513
25514 #include <sys/epoll.h>
25515 int main(int argc, char **argv) { return (epoll_create(16) < 0); }
25516
25517 _ACEOF
25518 if ac_fn_c_try_run "$LINENO"
25519 then :
25520
25521 have_epoll="yes"
25522
25523 printf "%s\n" "#define USE_EPOLL 1" >>confdefs.h
25524
25525
25526
25527 fi
25528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25529 conftest.$ac_objext conftest.beam conftest.$ac_ext
25530 fi
25531
25532
25533 fi
25534
25535
25536 fi
25537
25538
25539 if test "x$have_epoll" != "xyes"; then
25540 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
25541 if test "x$ac_cv_header_sys_event_h" = xyes
25542 then :
25543
25544 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
25545 if test "x$ac_cv_func_kevent" = xyes
25546 then :
25547
25548 have_kqueue="yes"
25549
25550 printf "%s\n" "#define USE_KQUEUE 1" >>confdefs.h
25551
25552
25553 fi
25554
25555
25556 fi
25557
25558 if test "x$have_kqueue" != "xyes"; then
25559 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
25560 if test "x$ac_cv_header_poll_h" = xyes
25561 then :
25562
25563 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
25564 if test "x$ac_cv_func_poll" = xyes
25565 then :
25566
25567 have_poll="yes"
25568
25569 printf "%s\n" "#define USE_POLL 1" >>confdefs.h
25570
25571
25572 fi
25573
25574
25575 fi
25576
25577 if test "x$have_poll" != "xyes"; then
25578 if test "$os_win32" = "yes"; then
25579 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25580 if test "x$ac_cv_header_winsock2_h" = xyes
25581 then :
25582 have_select="yes"
25583 fi
25584
25585 else
25586 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
25587 if test "x$ac_cv_func_select" = xyes
25588 then :
25589
25590 have_select="yes"
25591 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
25592 if test "x$ac_cv_header_sys_select_h" = xyes
25593 then :
25594 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
25595
25596 fi
25597
25598
25599 fi
25600
25601 fi
25602 if test "x$have_select" = "xyes"; then
25603
25604 printf "%s\n" "#define USE_SELECT 1" >>confdefs.h
25605
25606 else
25607 as_fn_error $? "epoll/kqueue/poll/select is missing." "$LINENO" 5
25608 fi
25609 fi
25610 fi
25611 fi
25612
25613 # check MSG_MORE defined
25614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MSG_MORE defined" >&5
25615 printf %s "checking whether MSG_MORE defined... " >&6; }
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h. */
25618
25619 #include <sys/types.h>
25620 #include <sys/socket.h>
25621
25622 int main(int argc, char **argv)
25623 {
25624 return MSG_MORE;
25625 }
25626
25627 int
25628 main (void)
25629 {
25630
25631 ;
25632 return 0;
25633 }
25634 _ACEOF
25635 if ac_fn_c_try_compile "$LINENO"
25636 then :
25637
25638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25639 printf "%s\n" "yes" >&6; }
25640
25641 printf "%s\n" "#define USE_MSG_MORE 1" >>confdefs.h
25642
25643
25644 else $as_nop
25645
25646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25647 printf "%s\n" "no" >&6; }
25648
25649 fi
25650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25651
25652 # check MSG_NOSIGNAL defined
25653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MSG_NOSIGNAL defined" >&5
25654 printf %s "checking whether MSG_NOSIGNAL defined... " >&6; }
25655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656 /* end confdefs.h. */
25657
25658 #include <sys/types.h>
25659 #include <sys/socket.h>
25660
25661 int main(int argc, char **argv)
25662 {
25663 return MSG_NOSIGNAL;
25664 }
25665
25666 int
25667 main (void)
25668 {
25669
25670 ;
25671 return 0;
25672 }
25673 _ACEOF
25674 if ac_fn_c_try_compile "$LINENO"
25675 then :
25676
25677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25678 printf "%s\n" "yes" >&6; }
25679
25680 printf "%s\n" "#define USE_MSG_NOSIGNAL 1" >>confdefs.h
25681
25682
25683 else $as_nop
25684
25685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25686 printf "%s\n" "no" >&6; }
25687
25688 fi
25689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25690
25691 # MinGW
25692 if test "$os_win32" = "yes"; then
25693 WINDOWS_LDFLAGS="-mwindows"
25694 WINDOWS_LIBS="-ladvapi32 -lws2_32 -ldbghelp -lpsapi"
25695 else
25696 WINDOWS_LDFLAGS=
25697 WINDOWS_LIBS=
25698 fi
25699
25700
25701
25702 # groonga binary path
25703 GROONGA="${ac_pwd}/src/groonga"
25704
25705
25706 # groonga-benchmark binary path
25707 GROONGA_BENCHMARK="${ac_pwd}/src/groonga-benchmark"
25708
25709
25710 # groonga-suggest-create-dataset binary path
25711 GROONGA_SUGGEST_CREATE_DATASET="${ac_pwd}/src/suggest/groonga-suggest-create-dataset"
25712
25713
25714 # groonga-mruby binary path
25715 GROONGA_MRUBY="${ac_pwd}/src/groonga-mruby"
25716
25717
25718 # check for benchmark
25719 # Check whether --enable-benchmark was given.
25720 if test ${enable_benchmark+y}
25721 then :
25722 enableval=$enable_benchmark;
25723 else $as_nop
25724 enable_benchmark="yes"
25725 fi
25726
25727 if test "x$enable_benchmark" = "xno"; then
25728 benchmark_available="no"
25729 else
25730 REQUIRED_GLIB_VERSION=2.14.0
25731 benchmark_available="no"
25732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for benchmark availablity" >&5
25733 printf %s "checking for benchmark availablity... " >&6; }
25734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_benchmark_available" >&5
25735 printf "%s\n" "$ac_benchmark_available" >&6; }
25736 fi
25737 if test "$benchmark_available" = "yes"; then
25738
25739 printf "%s\n" "#define GRN_WITH_BENCHMARK 1" >>confdefs.h
25740
25741 fi
25742 if test "$benchmark_available" = "yes"; then
25743 WITH_BENCHMARK_TRUE=
25744 WITH_BENCHMARK_FALSE='#'
25745 else
25746 WITH_BENCHMARK_TRUE='#'
25747 WITH_BENCHMARK_FALSE=
25748 fi
25749
25750
25751 # check Ruby for HTTP test
25752 ac_cv_ruby_available="no"
25753
25754 # Check whether --with-ruby was given.
25755 if test ${with_ruby+y}
25756 then :
25757 withval=$with_ruby; RUBY="$withval"
25758 else $as_nop
25759 RUBY="no"
25760 fi
25761
25762
25763 if test "x$RUBY" = "xno"; then
25764 RUBY=
25765 else
25766 if test "x$RUBY" = "xyes"; then
25767 for ac_prog in ruby3.0 ruby30 ruby2.7 ruby27 ruby2.6 ruby26 ruby2.5 ruby25 ruby2.4 ruby24 ruby2.3 ruby23 ruby2.2 ruby22 ruby2.1 ruby21 ruby
25768 do
25769 # Extract the first word of "$ac_prog", so it can be a program name with args.
25770 set dummy $ac_prog; ac_word=$2
25771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25772 printf %s "checking for $ac_word... " >&6; }
25773 if test ${ac_cv_path_RUBY+y}
25774 then :
25775 printf %s "(cached) " >&6
25776 else $as_nop
25777 case $RUBY in
25778 [\\/]* | ?:[\\/]*)
25779 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
25780 ;;
25781 *)
25782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25783 for as_dir in $PATH
25784 do
25785 IFS=$as_save_IFS
25786 case $as_dir in #(((
25787 '') as_dir=./ ;;
25788 */) ;;
25789 *) as_dir=$as_dir/ ;;
25790 esac
25791 for ac_exec_ext in '' $ac_executable_extensions; do
25792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25793 ac_cv_path_RUBY="$as_dir$ac_word$ac_exec_ext"
25794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25795 break 2
25796 fi
25797 done
25798 done
25799 IFS=$as_save_IFS
25800
25801 ;;
25802 esac
25803 fi
25804 RUBY=$ac_cv_path_RUBY
25805 if test -n "$RUBY"; then
25806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
25807 printf "%s\n" "$RUBY" >&6; }
25808 else
25809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25810 printf "%s\n" "no" >&6; }
25811 fi
25812
25813
25814 test -n "$RUBY" && break
25815 done
25816 test -n "$RUBY" || RUBY="ruby-not-found"
25817
25818 if test "$RUBY" != "ruby-not-found"; then
25819 ruby_version="`$RUBY --version`"
25820 if echo "$ruby_version" | grep -q -- 'ruby \(2\|3\)\.'; then
25821 ac_cv_ruby_available="yes"
25822 else
25823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $RUBY isn't Ruby 2.0 or later ($ruby_version)" >&5
25824 printf "%s\n" "$as_me: WARNING: $RUBY isn't Ruby 2.0 or later ($ruby_version)" >&2;}
25825 fi
25826 fi
25827 else
25828 ruby_not_found_warning_message="$RUBY is not found."
25829 case "$RUBY" in
25830 /*)
25831 as_ac_File=`printf "%s\n" "ac_cv_file_$RUBY" | $as_tr_sh`
25832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RUBY" >&5
25833 printf %s "checking for $RUBY... " >&6; }
25834 if eval test \${$as_ac_File+y}
25835 then :
25836 printf %s "(cached) " >&6
25837 else $as_nop
25838 test "$cross_compiling" = yes &&
25839 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
25840 if test -r "$RUBY"; then
25841 eval "$as_ac_File=yes"
25842 else
25843 eval "$as_ac_File=no"
25844 fi
25845 fi
25846 eval ac_res=\$$as_ac_File
25847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25848 printf "%s\n" "$ac_res" >&6; }
25849 if eval test \"x\$"$as_ac_File"\" = x"yes"
25850 then :
25851 ac_cv_ruby_available="yes"
25852 else $as_nop
25853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ruby_not_found_warning_message" >&5
25854 printf "%s\n" "$as_me: WARNING: $ruby_not_found_warning_message" >&2;}
25855 RUBY="$RUBY-not-found"
25856 fi
25857
25858 ;;
25859 *)
25860 ruby_not_found="$RUBY-not-found"
25861 for ac_prog in "$RUBY"
25862 do
25863 # Extract the first word of "$ac_prog", so it can be a program name with args.
25864 set dummy $ac_prog; ac_word=$2
25865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25866 printf %s "checking for $ac_word... " >&6; }
25867 if test ${ac_cv_path_RUBY+y}
25868 then :
25869 printf %s "(cached) " >&6
25870 else $as_nop
25871 case $RUBY in
25872 [\\/]* | ?:[\\/]*)
25873 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
25874 ;;
25875 *)
25876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25877 for as_dir in $PATH
25878 do
25879 IFS=$as_save_IFS
25880 case $as_dir in #(((
25881 '') as_dir=./ ;;
25882 */) ;;
25883 *) as_dir=$as_dir/ ;;
25884 esac
25885 for ac_exec_ext in '' $ac_executable_extensions; do
25886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25887 ac_cv_path_RUBY="$as_dir$ac_word$ac_exec_ext"
25888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25889 break 2
25890 fi
25891 done
25892 done
25893 IFS=$as_save_IFS
25894
25895 ;;
25896 esac
25897 fi
25898 RUBY=$ac_cv_path_RUBY
25899 if test -n "$RUBY"; then
25900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
25901 printf "%s\n" "$RUBY" >&6; }
25902 else
25903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25904 printf "%s\n" "no" >&6; }
25905 fi
25906
25907
25908 test -n "$RUBY" && break
25909 done
25910 test -n "$RUBY" || RUBY=""$ruby_not_found""
25911
25912 if test "$RUBY" = "$ruby_not_found"; then
25913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ruby_not_found_warning_message" >&5
25914 printf "%s\n" "$as_me: WARNING: $ruby_not_found_warning_message" >&2;}
25915 else
25916 ac_cv_ruby_available="yes"
25917 fi
25918 ;;
25919 esac
25920 fi
25921 fi
25922
25923 if test "$ac_cv_ruby_available" = "yes"; then
25924 WITH_RUBY_TRUE=
25925 WITH_RUBY_FALSE='#'
25926 else
25927 WITH_RUBY_TRUE='#'
25928 WITH_RUBY_FALSE=
25929 fi
25930
25931
25932 if test "$ac_cv_ruby_available" = "yes"; then
25933 WITH_COMMAND_TEST_TRUE=
25934 WITH_COMMAND_TEST_FALSE='#'
25935 else
25936 WITH_COMMAND_TEST_TRUE='#'
25937 WITH_COMMAND_TEST_FALSE=
25938 fi
25939
25940
25941 # check Lemon for generating .c and .h files from .y file
25942 lemon_available="no"
25943
25944 # Check whether --with-lemon was given.
25945 if test ${with_lemon+y}
25946 then :
25947 withval=$with_lemon; LEMON="$withval"
25948 else $as_nop
25949 : ${LEMON:=auto}
25950 fi
25951
25952
25953 if test "$LEMON" = "no"; then
25954 LEMON=
25955 else
25956 if test "$LEMON" = "auto"; then
25957 for ac_prog in lemon
25958 do
25959 # Extract the first word of "$ac_prog", so it can be a program name with args.
25960 set dummy $ac_prog; ac_word=$2
25961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25962 printf %s "checking for $ac_word... " >&6; }
25963 if test ${ac_cv_path_LEMON+y}
25964 then :
25965 printf %s "(cached) " >&6
25966 else $as_nop
25967 case $LEMON in
25968 [\\/]* | ?:[\\/]*)
25969 ac_cv_path_LEMON="$LEMON" # Let the user override the test with a path.
25970 ;;
25971 *)
25972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25973 for as_dir in $PATH
25974 do
25975 IFS=$as_save_IFS
25976 case $as_dir in #(((
25977 '') as_dir=./ ;;
25978 */) ;;
25979 *) as_dir=$as_dir/ ;;
25980 esac
25981 for ac_exec_ext in '' $ac_executable_extensions; do
25982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25983 ac_cv_path_LEMON="$as_dir$ac_word$ac_exec_ext"
25984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25985 break 2
25986 fi
25987 done
25988 done
25989 IFS=$as_save_IFS
25990
25991 ;;
25992 esac
25993 fi
25994 LEMON=$ac_cv_path_LEMON
25995 if test -n "$LEMON"; then
25996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEMON" >&5
25997 printf "%s\n" "$LEMON" >&6; }
25998 else
25999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26000 printf "%s\n" "no" >&6; }
26001 fi
26002
26003
26004 test -n "$LEMON" && break
26005 done
26006 test -n "$LEMON" || LEMON="none"
26007
26008 if test "$LEMON" != "none"; then
26009 lemon_available="yes"
26010 fi
26011 elif test "$LEMON" = "yes"; then
26012 for ac_prog in lemon
26013 do
26014 # Extract the first word of "$ac_prog", so it can be a program name with args.
26015 set dummy $ac_prog; ac_word=$2
26016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26017 printf %s "checking for $ac_word... " >&6; }
26018 if test ${ac_cv_path_LEMON+y}
26019 then :
26020 printf %s "(cached) " >&6
26021 else $as_nop
26022 case $LEMON in
26023 [\\/]* | ?:[\\/]*)
26024 ac_cv_path_LEMON="$LEMON" # Let the user override the test with a path.
26025 ;;
26026 *)
26027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26028 for as_dir in $PATH
26029 do
26030 IFS=$as_save_IFS
26031 case $as_dir in #(((
26032 '') as_dir=./ ;;
26033 */) ;;
26034 *) as_dir=$as_dir/ ;;
26035 esac
26036 for ac_exec_ext in '' $ac_executable_extensions; do
26037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26038 ac_cv_path_LEMON="$as_dir$ac_word$ac_exec_ext"
26039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26040 break 2
26041 fi
26042 done
26043 done
26044 IFS=$as_save_IFS
26045
26046 ;;
26047 esac
26048 fi
26049 LEMON=$ac_cv_path_LEMON
26050 if test -n "$LEMON"; then
26051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEMON" >&5
26052 printf "%s\n" "$LEMON" >&6; }
26053 else
26054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26055 printf "%s\n" "no" >&6; }
26056 fi
26057
26058
26059 test -n "$LEMON" && break
26060 done
26061 test -n "$LEMON" || LEMON="none"
26062
26063 if test "$LEMON" = "none"; then
26064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lemon is not found. Disable .y compilation." >&5
26065 printf "%s\n" "$as_me: WARNING: lemon is not found. Disable .y compilation." >&2;}
26066 else
26067 lemon_available="yes"
26068 fi
26069 else
26070 as_ac_File=`printf "%s\n" "ac_cv_file_$LEMON" | $as_tr_sh`
26071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LEMON" >&5
26072 printf %s "checking for $LEMON... " >&6; }
26073 if eval test \${$as_ac_File+y}
26074 then :
26075 printf %s "(cached) " >&6
26076 else $as_nop
26077 test "$cross_compiling" = yes &&
26078 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26079 if test -r "$LEMON"; then
26080 eval "$as_ac_File=yes"
26081 else
26082 eval "$as_ac_File=no"
26083 fi
26084 fi
26085 eval ac_res=\$$as_ac_File
26086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26087 printf "%s\n" "$ac_res" >&6; }
26088 if eval test \"x\$"$as_ac_File"\" = x"yes"
26089 then :
26090 lemon_available="yes"
26091 else $as_nop
26092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $LEMON is not found. Disable .y compilation." >&5
26093 printf "%s\n" "$as_me: WARNING: $LEMON is not found. Disable .y compilation." >&2;}
26094 fi
26095
26096 fi
26097 fi
26098
26099 if test "$lemon_available" = "yes"; then
26100 WITH_LEMON_TRUE=
26101 WITH_LEMON_FALSE='#'
26102 else
26103 WITH_LEMON_TRUE='#'
26104 WITH_LEMON_FALSE=
26105 fi
26106
26107
26108 # libedit
26109 libedit_available="no"
26110
26111 # Check whether --with-libedit was given.
26112 if test ${with_libedit+y}
26113 then :
26114 withval=$with_libedit; with_libedit="$withval"
26115 else $as_nop
26116 : ${with_libedit:=auto}
26117 fi
26118
26119
26120 if test "${with_libedit}" = "no"; then
26121 LIBEDIT_CFLAGS=
26122 LIBEDIT_LIBS=
26123 else
26124 if test "${with_libedit}" = "yes" -o "${with_libedit}" = "auto"; then
26125 LIBEDIT_CFLAGS=
26126 LIBEDIT_LIBS=
26127
26128
26129 pkg_failed=no
26130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit >= 3.0" >&5
26131 printf %s "checking for libedit >= 3.0... " >&6; }
26132
26133 if test -n "$LIBEDIT_CFLAGS"; then
26134 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
26135 elif test -n "$PKG_CONFIG"; then
26136 if test -n "$PKG_CONFIG" && \
26137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit >= 3.0\""; } >&5
26138 ($PKG_CONFIG --exists --print-errors "libedit >= 3.0") 2>&5
26139 ac_status=$?
26140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; then
26142 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit >= 3.0" 2>/dev/null`
26143 test "x$?" != "x0" && pkg_failed=yes
26144 else
26145 pkg_failed=yes
26146 fi
26147 else
26148 pkg_failed=untried
26149 fi
26150 if test -n "$LIBEDIT_LIBS"; then
26151 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
26152 elif test -n "$PKG_CONFIG"; then
26153 if test -n "$PKG_CONFIG" && \
26154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit >= 3.0\""; } >&5
26155 ($PKG_CONFIG --exists --print-errors "libedit >= 3.0") 2>&5
26156 ac_status=$?
26157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; then
26159 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit >= 3.0" 2>/dev/null`
26160 test "x$?" != "x0" && pkg_failed=yes
26161 else
26162 pkg_failed=yes
26163 fi
26164 else
26165 pkg_failed=untried
26166 fi
26167
26168
26169
26170 if test $pkg_failed = yes; then
26171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26172 printf "%s\n" "no" >&6; }
26173
26174 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26175 _pkg_short_errors_supported=yes
26176 else
26177 _pkg_short_errors_supported=no
26178 fi
26179 if test $_pkg_short_errors_supported = yes; then
26180 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit >= 3.0" 2>&1`
26181 else
26182 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit >= 3.0" 2>&1`
26183 fi
26184 # Put the nasty error message in config.log where it belongs
26185 echo "$LIBEDIT_PKG_ERRORS" >&5
26186
26187 LIBEDIT_LIBS="-ledit"
26188 elif test $pkg_failed = untried; then
26189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26190 printf "%s\n" "no" >&6; }
26191 LIBEDIT_LIBS="-ledit"
26192 else
26193 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
26194 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
26195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26196 printf "%s\n" "yes" >&6; }
26197
26198 fi
26199
26200 else
26201 LIBEDIT_CFLAGS="-I${with_libedit}/include"
26202 LIBEDIT_LIBS="-L${with_libedit}/lib -ledit"
26203 fi
26204 CFLAGS_SAVE="${CFLAGS}"
26205 LDFLAGS_SAVE="${LDFLAGS}"
26206 CFLAGS="${LIBEDIT_CFLAGS} ${CFLAGS}"
26207 LDFLAGS="${LIBEDIT_LIBS} ${LDFLAGS}"
26208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing el_wline" >&5
26209 printf %s "checking for library containing el_wline... " >&6; }
26210 if test ${ac_cv_search_el_wline+y}
26211 then :
26212 printf %s "(cached) " >&6
26213 else $as_nop
26214 ac_func_search_save_LIBS=$LIBS
26215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216 /* end confdefs.h. */
26217
26218 /* Override any GCC internal prototype to avoid an error.
26219 Use char because int might match the return type of a GCC
26220 builtin and then its argument prototype would still apply. */
26221 char el_wline ();
26222 int
26223 main (void)
26224 {
26225 return el_wline ();
26226 ;
26227 return 0;
26228 }
26229 _ACEOF
26230 for ac_lib in ''
26231 do
26232 if test -z "$ac_lib"; then
26233 ac_res="none required"
26234 else
26235 ac_res=-l$ac_lib
26236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26237 fi
26238 if ac_fn_c_try_link "$LINENO"
26239 then :
26240 ac_cv_search_el_wline=$ac_res
26241 fi
26242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26243 conftest$ac_exeext
26244 if test ${ac_cv_search_el_wline+y}
26245 then :
26246 break
26247 fi
26248 done
26249 if test ${ac_cv_search_el_wline+y}
26250 then :
26251
26252 else $as_nop
26253 ac_cv_search_el_wline=no
26254 fi
26255 rm conftest.$ac_ext
26256 LIBS=$ac_func_search_save_LIBS
26257 fi
26258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_el_wline" >&5
26259 printf "%s\n" "$ac_cv_search_el_wline" >&6; }
26260 ac_res=$ac_cv_search_el_wline
26261 if test "$ac_res" != no
26262 then :
26263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26264 libedit_available="yes"
26265 else $as_nop
26266 libedit_available="no"
26267 fi
26268
26269 if test "${libedit_available}" = "yes"; then
26270 for ac_header in histedit.h
26271 do :
26272 ac_fn_c_check_header_compile "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
26273 if test "x$ac_cv_header_histedit_h" = xyes
26274 then :
26275 printf "%s\n" "#define HAVE_HISTEDIT_H 1" >>confdefs.h
26276
26277 else $as_nop
26278 libedit_available="no"
26279 fi
26280
26281 done
26282 fi
26283 CFLAGS="${CFLAGS_SAVE}"
26284 LDFLAGS="${LDFLAGS_SAVE}"
26285 if test "${libedit_available}" = "yes"; then
26286
26287 printf "%s\n" "#define GRN_WITH_LIBEDIT 1" >>confdefs.h
26288
26289 else
26290 LIBEDIT_CFLAGS=
26291 LIBEDIT_LIBS=
26292 if test "${with_libedit}" != "auto"; then
26293 as_fn_error $? "\"No libedit found\"" "$LINENO" 5
26294 fi
26295 fi
26296 fi
26297
26298
26299
26300 # zlib
26301
26302 # Check whether --with-zlib was given.
26303 if test ${with_zlib+y}
26304 then :
26305 withval=$with_zlib; with_zlib="$withval"
26306 else $as_nop
26307 with_zlib="auto"
26308 fi
26309
26310 GRN_WITH_ZLIB=no
26311 if test "x$with_zlib" = "xno"; then
26312 ZLIB_CFLAGS=
26313 ZLIB_LIBS=
26314 ZLIB_LIB_DIR=
26315 else
26316 if test "${with_zlib}" = "yes" -o "${with_zlib}" = "auto"; then
26317 ZLIB_CFLAGS=
26318 ZLIB_LIBS=
26319
26320
26321 pkg_failed=no
26322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
26323 printf %s "checking for zlib... " >&6; }
26324
26325 if test -n "$ZLIB_CFLAGS"; then
26326 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
26327 elif test -n "$PKG_CONFIG"; then
26328 if test -n "$PKG_CONFIG" && \
26329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
26330 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
26331 ac_status=$?
26332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26333 test $ac_status = 0; }; then
26334 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
26335 test "x$?" != "x0" && pkg_failed=yes
26336 else
26337 pkg_failed=yes
26338 fi
26339 else
26340 pkg_failed=untried
26341 fi
26342 if test -n "$ZLIB_LIBS"; then
26343 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
26344 elif test -n "$PKG_CONFIG"; then
26345 if test -n "$PKG_CONFIG" && \
26346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
26347 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
26348 ac_status=$?
26349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; then
26351 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
26352 test "x$?" != "x0" && pkg_failed=yes
26353 else
26354 pkg_failed=yes
26355 fi
26356 else
26357 pkg_failed=untried
26358 fi
26359
26360
26361
26362 if test $pkg_failed = yes; then
26363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26364 printf "%s\n" "no" >&6; }
26365
26366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26367 _pkg_short_errors_supported=yes
26368 else
26369 _pkg_short_errors_supported=no
26370 fi
26371 if test $_pkg_short_errors_supported = yes; then
26372 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
26373 else
26374 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
26375 fi
26376 # Put the nasty error message in config.log where it belongs
26377 echo "$ZLIB_PKG_ERRORS" >&5
26378
26379 GRN_WITH_ZLIB=no
26380 elif test $pkg_failed = untried; then
26381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26382 printf "%s\n" "no" >&6; }
26383 GRN_WITH_ZLIB=no
26384 else
26385 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
26386 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
26387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26388 printf "%s\n" "yes" >&6; }
26389 GRN_WITH_ZLIB=yes
26390 fi
26391 if test "${GRN_WITH_ZLIB}" = "yes"; then
26392 if test -n "$ZLIB_LIB_DIR"; then
26393 pkg_cv_ZLIB_LIB_DIR="$ZLIB_LIB_DIR"
26394 elif test -n "$PKG_CONFIG"; then
26395 if test -n "$PKG_CONFIG" && \
26396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
26397 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
26398 ac_status=$?
26399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; then
26401 pkg_cv_ZLIB_LIB_DIR=`$PKG_CONFIG --variable=libdir "zlib" 2>/dev/null`
26402 test "x$?" != "x0" && pkg_failed=yes
26403 else
26404 pkg_failed=yes
26405 fi
26406 else
26407 pkg_failed=untried
26408 fi
26409 ZLIB_LIB_DIR="${pkg_cv_ZLIB_LIB_DIR}"
26410 fi
26411
26412 else
26413 GRN_WITH_ZLIB=yes
26414 ZLIB_CFLAGS="-I${with_zlib}/include"
26415 ZLIB_LIB_DIR="${with_zlib}/lib"
26416 ZLIB_LIBS="-L${ZLIB_LIB_DIR} -lz"
26417 fi
26418 if test "${GRN_WITH_ZLIB}" = "yes"; then
26419
26420 printf "%s\n" "#define GRN_WITH_ZLIB 1" >>confdefs.h
26421
26422 else
26423 if test "${with_zlib}" = "yes"; then
26424 as_fn_error $? "\"No zlib found\"" "$LINENO" 5
26425 fi
26426 fi
26427 fi
26428
26429
26430
26431
26432
26433 # LZ4
26434
26435 # Check whether --with-lz4 was given.
26436 if test ${with_lz4+y}
26437 then :
26438 withval=$with_lz4; with_lz4="$withval"
26439 else $as_nop
26440 with_lz4="auto"
26441 fi
26442
26443 if test "x$with_lz4" != "xno"; then
26444
26445
26446 pkg_failed=no
26447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
26448 printf %s "checking for liblz4... " >&6; }
26449
26450 if test -n "$LIBLZ4_CFLAGS"; then
26451 pkg_cv_LIBLZ4_CFLAGS="$LIBLZ4_CFLAGS"
26452 elif test -n "$PKG_CONFIG"; then
26453 if test -n "$PKG_CONFIG" && \
26454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
26455 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
26456 ac_status=$?
26457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; then
26459 pkg_cv_LIBLZ4_CFLAGS=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
26460 test "x$?" != "x0" && pkg_failed=yes
26461 else
26462 pkg_failed=yes
26463 fi
26464 else
26465 pkg_failed=untried
26466 fi
26467 if test -n "$LIBLZ4_LIBS"; then
26468 pkg_cv_LIBLZ4_LIBS="$LIBLZ4_LIBS"
26469 elif test -n "$PKG_CONFIG"; then
26470 if test -n "$PKG_CONFIG" && \
26471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
26472 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
26473 ac_status=$?
26474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; then
26476 pkg_cv_LIBLZ4_LIBS=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
26477 test "x$?" != "x0" && pkg_failed=yes
26478 else
26479 pkg_failed=yes
26480 fi
26481 else
26482 pkg_failed=untried
26483 fi
26484
26485
26486
26487 if test $pkg_failed = yes; then
26488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26489 printf "%s\n" "no" >&6; }
26490
26491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26492 _pkg_short_errors_supported=yes
26493 else
26494 _pkg_short_errors_supported=no
26495 fi
26496 if test $_pkg_short_errors_supported = yes; then
26497 LIBLZ4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
26498 else
26499 LIBLZ4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
26500 fi
26501 # Put the nasty error message in config.log where it belongs
26502 echo "$LIBLZ4_PKG_ERRORS" >&5
26503
26504 GRN_WITH_LZ4=no
26505 elif test $pkg_failed = untried; then
26506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26507 printf "%s\n" "no" >&6; }
26508 GRN_WITH_LZ4=no
26509 else
26510 LIBLZ4_CFLAGS=$pkg_cv_LIBLZ4_CFLAGS
26511 LIBLZ4_LIBS=$pkg_cv_LIBLZ4_LIBS
26512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26513 printf "%s\n" "yes" >&6; }
26514 GRN_WITH_LZ4=yes
26515 fi
26516
26517 if test "$GRN_WITH_LZ4" = "yes"; then
26518
26519 printf "%s\n" "#define GRN_WITH_LZ4 1" >>confdefs.h
26520
26521 else
26522 if test "x$with_lz4" != "xauto"; then
26523 as_fn_error $? "\"No liblz4 found\"" "$LINENO" 5
26524 fi
26525 fi
26526 else
26527 GRN_WITH_LZ4=no
26528 fi
26529
26530 # Zstandard
26531
26532 # Check whether --with-zstd was given.
26533 if test ${with_zstd+y}
26534 then :
26535 withval=$with_zstd; with_zstd="$withval"
26536 else $as_nop
26537 with_zstd="auto"
26538 fi
26539
26540 if test "x$with_zstd" != "xno"; then
26541
26542
26543 pkg_failed=no
26544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
26545 printf %s "checking for libzstd... " >&6; }
26546
26547 if test -n "$LIBZSTD_CFLAGS"; then
26548 pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
26549 elif test -n "$PKG_CONFIG"; then
26550 if test -n "$PKG_CONFIG" && \
26551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
26552 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
26553 ac_status=$?
26554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26555 test $ac_status = 0; }; then
26556 pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
26557 test "x$?" != "x0" && pkg_failed=yes
26558 else
26559 pkg_failed=yes
26560 fi
26561 else
26562 pkg_failed=untried
26563 fi
26564 if test -n "$LIBZSTD_LIBS"; then
26565 pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
26566 elif test -n "$PKG_CONFIG"; then
26567 if test -n "$PKG_CONFIG" && \
26568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
26569 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
26570 ac_status=$?
26571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26572 test $ac_status = 0; }; then
26573 pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
26574 test "x$?" != "x0" && pkg_failed=yes
26575 else
26576 pkg_failed=yes
26577 fi
26578 else
26579 pkg_failed=untried
26580 fi
26581
26582
26583
26584 if test $pkg_failed = yes; then
26585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26586 printf "%s\n" "no" >&6; }
26587
26588 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26589 _pkg_short_errors_supported=yes
26590 else
26591 _pkg_short_errors_supported=no
26592 fi
26593 if test $_pkg_short_errors_supported = yes; then
26594 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
26595 else
26596 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
26597 fi
26598 # Put the nasty error message in config.log where it belongs
26599 echo "$LIBZSTD_PKG_ERRORS" >&5
26600
26601 GRN_WITH_ZSTD=no
26602 elif test $pkg_failed = untried; then
26603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26604 printf "%s\n" "no" >&6; }
26605 GRN_WITH_ZSTD=no
26606 else
26607 LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
26608 LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
26609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26610 printf "%s\n" "yes" >&6; }
26611 GRN_WITH_ZSTD=yes
26612 fi
26613
26614 if test "$GRN_WITH_ZSTD" = "yes"; then
26615
26616 printf "%s\n" "#define GRN_WITH_ZSTD 1" >>confdefs.h
26617
26618 else
26619 if test "x$with_zstd" != "xauto"; then
26620 as_fn_error $? "\"No libzstd found\"" "$LINENO" 5
26621 fi
26622 fi
26623 else
26624 GRN_WITH_ZSTD=no
26625 fi
26626
26627 # LuaJIT
26628
26629 # Check whether --with-luajit was given.
26630 if test ${with_luajit+y}
26631 then :
26632 withval=$with_luajit; with_luajit="$withval"
26633 else $as_nop
26634 with_luajit="auto"
26635 fi
26636
26637 if test "x$with_luajit" != "xno"; then
26638
26639
26640 pkg_failed=no
26641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luajit" >&5
26642 printf %s "checking for luajit... " >&6; }
26643
26644 if test -n "$LUAJIT_CFLAGS"; then
26645 pkg_cv_LUAJIT_CFLAGS="$LUAJIT_CFLAGS"
26646 elif test -n "$PKG_CONFIG"; then
26647 if test -n "$PKG_CONFIG" && \
26648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"luajit\""; } >&5
26649 ($PKG_CONFIG --exists --print-errors "luajit") 2>&5
26650 ac_status=$?
26651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; then
26653 pkg_cv_LUAJIT_CFLAGS=`$PKG_CONFIG --cflags "luajit" 2>/dev/null`
26654 test "x$?" != "x0" && pkg_failed=yes
26655 else
26656 pkg_failed=yes
26657 fi
26658 else
26659 pkg_failed=untried
26660 fi
26661 if test -n "$LUAJIT_LIBS"; then
26662 pkg_cv_LUAJIT_LIBS="$LUAJIT_LIBS"
26663 elif test -n "$PKG_CONFIG"; then
26664 if test -n "$PKG_CONFIG" && \
26665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"luajit\""; } >&5
26666 ($PKG_CONFIG --exists --print-errors "luajit") 2>&5
26667 ac_status=$?
26668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26669 test $ac_status = 0; }; then
26670 pkg_cv_LUAJIT_LIBS=`$PKG_CONFIG --libs "luajit" 2>/dev/null`
26671 test "x$?" != "x0" && pkg_failed=yes
26672 else
26673 pkg_failed=yes
26674 fi
26675 else
26676 pkg_failed=untried
26677 fi
26678
26679
26680
26681 if test $pkg_failed = yes; then
26682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26683 printf "%s\n" "no" >&6; }
26684
26685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26686 _pkg_short_errors_supported=yes
26687 else
26688 _pkg_short_errors_supported=no
26689 fi
26690 if test $_pkg_short_errors_supported = yes; then
26691 LUAJIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "luajit" 2>&1`
26692 else
26693 LUAJIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "luajit" 2>&1`
26694 fi
26695 # Put the nasty error message in config.log where it belongs
26696 echo "$LUAJIT_PKG_ERRORS" >&5
26697
26698 GRN_WITH_LUAJIT=no
26699 elif test $pkg_failed = untried; then
26700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26701 printf "%s\n" "no" >&6; }
26702 GRN_WITH_LUAJIT=no
26703 else
26704 LUAJIT_CFLAGS=$pkg_cv_LUAJIT_CFLAGS
26705 LUAJIT_LIBS=$pkg_cv_LUAJIT_LIBS
26706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26707 printf "%s\n" "yes" >&6; }
26708 GRN_WITH_LUAJIT=yes
26709 fi
26710
26711 if test "$GRN_WITH_LUAJIT" = "yes"; then
26712
26713 printf "%s\n" "#define GRN_WITH_LUAJIT 1" >>confdefs.h
26714
26715 else
26716 if test "x$with_luajit" != "xauto"; then
26717 as_fn_error $? "\"No LuaJIT found\"" "$LINENO" 5
26718 fi
26719 fi
26720 else
26721 GRN_WITH_LUAJIT=no
26722 fi
26723
26724
26725
26726 # jemalloc
26727
26728 # Check whether --with-jemalloc was given.
26729 if test ${with_jemalloc+y}
26730 then :
26731 withval=$with_jemalloc; with_jemalloc="$withval"
26732 else $as_nop
26733 with_jemalloc="no"
26734 fi
26735
26736 jemalloc_available="no"
26737 if test "x$with_jemalloc" != "xno"; then
26738 if test "x$with_jemalloc" != "xyes"; then
26739 LDFLAGS="-L$with_jemalloc $LDFLAGS"
26740 fi
26741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_conf" >&5
26742 printf %s "checking for library containing malloc_conf... " >&6; }
26743 if test ${ac_cv_search_malloc_conf+y}
26744 then :
26745 printf %s "(cached) " >&6
26746 else $as_nop
26747 ac_func_search_save_LIBS=$LIBS
26748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26749 /* end confdefs.h. */
26750
26751 /* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26754 char malloc_conf ();
26755 int
26756 main (void)
26757 {
26758 return malloc_conf ();
26759 ;
26760 return 0;
26761 }
26762 _ACEOF
26763 for ac_lib in '' jemalloc
26764 do
26765 if test -z "$ac_lib"; then
26766 ac_res="none required"
26767 else
26768 ac_res=-l$ac_lib
26769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26770 fi
26771 if ac_fn_c_try_link "$LINENO"
26772 then :
26773 ac_cv_search_malloc_conf=$ac_res
26774 fi
26775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26776 conftest$ac_exeext
26777 if test ${ac_cv_search_malloc_conf+y}
26778 then :
26779 break
26780 fi
26781 done
26782 if test ${ac_cv_search_malloc_conf+y}
26783 then :
26784
26785 else $as_nop
26786 ac_cv_search_malloc_conf=no
26787 fi
26788 rm conftest.$ac_ext
26789 LIBS=$ac_func_search_save_LIBS
26790 fi
26791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_conf" >&5
26792 printf "%s\n" "$ac_cv_search_malloc_conf" >&6; }
26793 ac_res=$ac_cv_search_malloc_conf
26794 if test "$ac_res" != no
26795 then :
26796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26797 jemalloc_available="yes"
26798 else $as_nop
26799 as_fn_error $? "\"No libjemalloc found\"" "$LINENO" 5
26800 fi
26801
26802 fi
26803
26804 # Apache Arrow
26805 # Check whether --enable-apache-arrow was given.
26806 if test ${enable_apache_arrow+y}
26807 then :
26808 enableval=$enable_apache_arrow; enable_apache_arrow="$enableval"
26809 else $as_nop
26810 enable_apache_arrow="auto"
26811 fi
26812
26813 if test "x$enable_apache_arrow" != "xno"; then
26814
26815
26816 pkg_failed=no
26817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arrow-compute >= 3.0.0" >&5
26818 printf %s "checking for arrow-compute >= 3.0.0... " >&6; }
26819
26820 if test -n "$APACHE_ARROW_CFLAGS"; then
26821 pkg_cv_APACHE_ARROW_CFLAGS="$APACHE_ARROW_CFLAGS"
26822 elif test -n "$PKG_CONFIG"; then
26823 if test -n "$PKG_CONFIG" && \
26824 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"arrow-compute >= 3.0.0\""; } >&5
26825 ($PKG_CONFIG --exists --print-errors "arrow-compute >= 3.0.0") 2>&5
26826 ac_status=$?
26827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26828 test $ac_status = 0; }; then
26829 pkg_cv_APACHE_ARROW_CFLAGS=`$PKG_CONFIG --cflags "arrow-compute >= 3.0.0" 2>/dev/null`
26830 test "x$?" != "x0" && pkg_failed=yes
26831 else
26832 pkg_failed=yes
26833 fi
26834 else
26835 pkg_failed=untried
26836 fi
26837 if test -n "$APACHE_ARROW_LIBS"; then
26838 pkg_cv_APACHE_ARROW_LIBS="$APACHE_ARROW_LIBS"
26839 elif test -n "$PKG_CONFIG"; then
26840 if test -n "$PKG_CONFIG" && \
26841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"arrow-compute >= 3.0.0\""; } >&5
26842 ($PKG_CONFIG --exists --print-errors "arrow-compute >= 3.0.0") 2>&5
26843 ac_status=$?
26844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; then
26846 pkg_cv_APACHE_ARROW_LIBS=`$PKG_CONFIG --libs "arrow-compute >= 3.0.0" 2>/dev/null`
26847 test "x$?" != "x0" && pkg_failed=yes
26848 else
26849 pkg_failed=yes
26850 fi
26851 else
26852 pkg_failed=untried
26853 fi
26854
26855
26856
26857 if test $pkg_failed = yes; then
26858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26859 printf "%s\n" "no" >&6; }
26860
26861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26862 _pkg_short_errors_supported=yes
26863 else
26864 _pkg_short_errors_supported=no
26865 fi
26866 if test $_pkg_short_errors_supported = yes; then
26867 APACHE_ARROW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "arrow-compute >= 3.0.0" 2>&1`
26868 else
26869 APACHE_ARROW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "arrow-compute >= 3.0.0" 2>&1`
26870 fi
26871 # Put the nasty error message in config.log where it belongs
26872 echo "$APACHE_ARROW_PKG_ERRORS" >&5
26873
26874 GRN_WITH_APACHE_ARROW=no
26875 elif test $pkg_failed = untried; then
26876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26877 printf "%s\n" "no" >&6; }
26878 GRN_WITH_APACHE_ARROW=no
26879 else
26880 APACHE_ARROW_CFLAGS=$pkg_cv_APACHE_ARROW_CFLAGS
26881 APACHE_ARROW_LIBS=$pkg_cv_APACHE_ARROW_LIBS
26882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26883 printf "%s\n" "yes" >&6; }
26884 GRN_WITH_APACHE_ARROW=yes
26885 fi
26886
26887 if test "x$GRN_WITH_APACHE_ARROW" = "xyes"; then
26888
26889 printf "%s\n" "#define GRN_WITH_APACHE_ARROW 1" >>confdefs.h
26890
26891 else
26892 if test "x$enable_apache_arrow" = "xyes"; then
26893 as_fn_error $? "\"No Apache Arrow found\"" "$LINENO" 5
26894 fi
26895 fi
26896 else
26897 GRN_WITH_APACHE_ARROW=no
26898 fi
26899 if test "$GRN_WITH_APACHE_ARROW" = "yes"; then
26900 GRN_WITH_APACHE_ARROW_TRUE=
26901 GRN_WITH_APACHE_ARROW_FALSE='#'
26902 else
26903 GRN_WITH_APACHE_ARROW_TRUE='#'
26904 GRN_WITH_APACHE_ARROW_FALSE=
26905 fi
26906
26907
26908 # RapidJSON
26909 BUNDLED_RAPIDJSON_VERSION=1.1.0
26910
26911
26912
26913 RAPIDJSON_CFLAGS=
26914
26915 # Check whether --with-rapidjson was given.
26916 if test ${with_rapidjson+y}
26917 then :
26918 withval=$with_rapidjson; with_rapidjson="$withval"
26919 else $as_nop
26920 with_rapidjson="auto"
26921 fi
26922
26923 if test "x$with_rapidjson" != "xno"; then
26924 if test "x$with_rapidjson" = "xbundled"; then
26925 RAPIDJSON_CFLAGS="-I\$(top_srcdir)/vendor/rapidjson-${BUNDLED_RAPIDJSON_VERSION}/include"
26926 GRN_WITH_RAPIDJSON=yes
26927 else
26928
26929
26930 pkg_failed=no
26931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RapidJSON" >&5
26932 printf %s "checking for RapidJSON... " >&6; }
26933
26934 if test -n "$RAPIDJSON_CFLAGS"; then
26935 pkg_cv_RAPIDJSON_CFLAGS="$RAPIDJSON_CFLAGS"
26936 elif test -n "$PKG_CONFIG"; then
26937 if test -n "$PKG_CONFIG" && \
26938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"RapidJSON\""; } >&5
26939 ($PKG_CONFIG --exists --print-errors "RapidJSON") 2>&5
26940 ac_status=$?
26941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26942 test $ac_status = 0; }; then
26943 pkg_cv_RAPIDJSON_CFLAGS=`$PKG_CONFIG --cflags "RapidJSON" 2>/dev/null`
26944 test "x$?" != "x0" && pkg_failed=yes
26945 else
26946 pkg_failed=yes
26947 fi
26948 else
26949 pkg_failed=untried
26950 fi
26951 if test -n "$RAPIDJSON_LIBS"; then
26952 pkg_cv_RAPIDJSON_LIBS="$RAPIDJSON_LIBS"
26953 elif test -n "$PKG_CONFIG"; then
26954 if test -n "$PKG_CONFIG" && \
26955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"RapidJSON\""; } >&5
26956 ($PKG_CONFIG --exists --print-errors "RapidJSON") 2>&5
26957 ac_status=$?
26958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26959 test $ac_status = 0; }; then
26960 pkg_cv_RAPIDJSON_LIBS=`$PKG_CONFIG --libs "RapidJSON" 2>/dev/null`
26961 test "x$?" != "x0" && pkg_failed=yes
26962 else
26963 pkg_failed=yes
26964 fi
26965 else
26966 pkg_failed=untried
26967 fi
26968
26969
26970
26971 if test $pkg_failed = yes; then
26972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26973 printf "%s\n" "no" >&6; }
26974
26975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26976 _pkg_short_errors_supported=yes
26977 else
26978 _pkg_short_errors_supported=no
26979 fi
26980 if test $_pkg_short_errors_supported = yes; then
26981 RAPIDJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "RapidJSON" 2>&1`
26982 else
26983 RAPIDJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "RapidJSON" 2>&1`
26984 fi
26985 # Put the nasty error message in config.log where it belongs
26986 echo "$RAPIDJSON_PKG_ERRORS" >&5
26987
26988 GRN_WITH_RAPIDJSON=no
26989 elif test $pkg_failed = untried; then
26990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26991 printf "%s\n" "no" >&6; }
26992 GRN_WITH_RAPIDJSON=no
26993 else
26994 RAPIDJSON_CFLAGS=$pkg_cv_RAPIDJSON_CFLAGS
26995 RAPIDJSON_LIBS=$pkg_cv_RAPIDJSON_LIBS
26996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26997 printf "%s\n" "yes" >&6; }
26998 GRN_WITH_RAPIDJSON=yes
26999 fi
27000
27001 if test "$GRN_WITH_RAPIDJSON" = "no"; then
27002 ac_ext=cpp
27003 ac_cpp='$CXXCPP $CPPFLAGS'
27004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27007
27008 ac_fn_cxx_check_header_compile "$LINENO" "rapidjson/rapidjson.h" "ac_cv_header_rapidjson_rapidjson_h" "$ac_includes_default"
27009 if test "x$ac_cv_header_rapidjson_rapidjson_h" = xyes
27010 then :
27011 GRN_WITH_RAPIDJSON=yes
27012 else $as_nop
27013 GRN_WITH_RAPIDJSON=no
27014 fi
27015
27016 ac_ext=c
27017 ac_cpp='$CPP $CPPFLAGS'
27018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27021
27022 fi
27023 fi
27024 if test "$GRN_WITH_RAPIDJSON" = "yes"; then
27025
27026 printf "%s\n" "#define GRN_WITH_RAPIDJSON 1" >>confdefs.h
27027
27028 else
27029 if test "x$with_rapidjson" != "xauto"; then
27030 as_fn_error $? "\"No RapidJSON found\"" "$LINENO" 5
27031 fi
27032 fi
27033 else
27034 GRN_WITH_RAPIDJSON=no
27035 fi
27036
27037
27038 # xxHash
27039
27040 # Check whether --with-xxhash was given.
27041 if test ${with_xxhash+y}
27042 then :
27043 withval=$with_xxhash; with_xxhash="$withval"
27044 else $as_nop
27045 with_xxhash="auto"
27046 fi
27047
27048 if test "x$with_xxhash" != "xno"; then
27049
27050
27051 pkg_failed=no
27052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxxhash >= 0.8.0" >&5
27053 printf %s "checking for libxxhash >= 0.8.0... " >&6; }
27054
27055 if test -n "$LIBXXHASH_CFLAGS"; then
27056 pkg_cv_LIBXXHASH_CFLAGS="$LIBXXHASH_CFLAGS"
27057 elif test -n "$PKG_CONFIG"; then
27058 if test -n "$PKG_CONFIG" && \
27059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxxhash >= 0.8.0\""; } >&5
27060 ($PKG_CONFIG --exists --print-errors "libxxhash >= 0.8.0") 2>&5
27061 ac_status=$?
27062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27063 test $ac_status = 0; }; then
27064 pkg_cv_LIBXXHASH_CFLAGS=`$PKG_CONFIG --cflags "libxxhash >= 0.8.0" 2>/dev/null`
27065 test "x$?" != "x0" && pkg_failed=yes
27066 else
27067 pkg_failed=yes
27068 fi
27069 else
27070 pkg_failed=untried
27071 fi
27072 if test -n "$LIBXXHASH_LIBS"; then
27073 pkg_cv_LIBXXHASH_LIBS="$LIBXXHASH_LIBS"
27074 elif test -n "$PKG_CONFIG"; then
27075 if test -n "$PKG_CONFIG" && \
27076 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxxhash >= 0.8.0\""; } >&5
27077 ($PKG_CONFIG --exists --print-errors "libxxhash >= 0.8.0") 2>&5
27078 ac_status=$?
27079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27080 test $ac_status = 0; }; then
27081 pkg_cv_LIBXXHASH_LIBS=`$PKG_CONFIG --libs "libxxhash >= 0.8.0" 2>/dev/null`
27082 test "x$?" != "x0" && pkg_failed=yes
27083 else
27084 pkg_failed=yes
27085 fi
27086 else
27087 pkg_failed=untried
27088 fi
27089
27090
27091
27092 if test $pkg_failed = yes; then
27093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27094 printf "%s\n" "no" >&6; }
27095
27096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27097 _pkg_short_errors_supported=yes
27098 else
27099 _pkg_short_errors_supported=no
27100 fi
27101 if test $_pkg_short_errors_supported = yes; then
27102 LIBXXHASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxxhash >= 0.8.0" 2>&1`
27103 else
27104 LIBXXHASH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxxhash >= 0.8.0" 2>&1`
27105 fi
27106 # Put the nasty error message in config.log where it belongs
27107 echo "$LIBXXHASH_PKG_ERRORS" >&5
27108
27109 GRN_WITH_XXHASH=no
27110 elif test $pkg_failed = untried; then
27111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27112 printf "%s\n" "no" >&6; }
27113 GRN_WITH_XXHASH=no
27114 else
27115 LIBXXHASH_CFLAGS=$pkg_cv_LIBXXHASH_CFLAGS
27116 LIBXXHASH_LIBS=$pkg_cv_LIBXXHASH_LIBS
27117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27118 printf "%s\n" "yes" >&6; }
27119 GRN_WITH_XXHASH=yes
27120 fi
27121 if test "$GRN_WITH_XXHASH" = "no"; then
27122
27123 pkg_failed=no
27124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
27125 printf %s "checking for libxxhash... " >&6; }
27126
27127 if test -n "$LIBXXHASH_CFLAGS"; then
27128 pkg_cv_LIBXXHASH_CFLAGS="$LIBXXHASH_CFLAGS"
27129 elif test -n "$PKG_CONFIG"; then
27130 if test -n "$PKG_CONFIG" && \
27131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxxhash\""; } >&5
27132 ($PKG_CONFIG --exists --print-errors "libxxhash") 2>&5
27133 ac_status=$?
27134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27135 test $ac_status = 0; }; then
27136 pkg_cv_LIBXXHASH_CFLAGS=`$PKG_CONFIG --cflags "libxxhash" 2>/dev/null`
27137 test "x$?" != "x0" && pkg_failed=yes
27138 else
27139 pkg_failed=yes
27140 fi
27141 else
27142 pkg_failed=untried
27143 fi
27144 if test -n "$LIBXXHASH_LIBS"; then
27145 pkg_cv_LIBXXHASH_LIBS="$LIBXXHASH_LIBS"
27146 elif test -n "$PKG_CONFIG"; then
27147 if test -n "$PKG_CONFIG" && \
27148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxxhash\""; } >&5
27149 ($PKG_CONFIG --exists --print-errors "libxxhash") 2>&5
27150 ac_status=$?
27151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27152 test $ac_status = 0; }; then
27153 pkg_cv_LIBXXHASH_LIBS=`$PKG_CONFIG --libs "libxxhash" 2>/dev/null`
27154 test "x$?" != "x0" && pkg_failed=yes
27155 else
27156 pkg_failed=yes
27157 fi
27158 else
27159 pkg_failed=untried
27160 fi
27161
27162
27163
27164 if test $pkg_failed = yes; then
27165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27166 printf "%s\n" "no" >&6; }
27167
27168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27169 _pkg_short_errors_supported=yes
27170 else
27171 _pkg_short_errors_supported=no
27172 fi
27173 if test $_pkg_short_errors_supported = yes; then
27174 LIBXXHASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxxhash" 2>&1`
27175 else
27176 LIBXXHASH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxxhash" 2>&1`
27177 fi
27178 # Put the nasty error message in config.log where it belongs
27179 echo "$LIBXXHASH_PKG_ERRORS" >&5
27180
27181 GRN_WITH_XXHASH=no
27182 elif test $pkg_failed = untried; then
27183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27184 printf "%s\n" "no" >&6; }
27185 GRN_WITH_XXHASH=no
27186 else
27187 LIBXXHASH_CFLAGS=$pkg_cv_LIBXXHASH_CFLAGS
27188 LIBXXHASH_LIBS=$pkg_cv_LIBXXHASH_LIBS
27189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27190 printf "%s\n" "yes" >&6; }
27191 GRN_WITH_XXHASH=yes
27192 LIBXXHASH_CFLAGS="${LIBXXHASH_CFLAGS} -DXXH_INLINE_ALL"
27193 fi
27194 fi
27195
27196 if test "$GRN_WITH_XXHASH" = "yes"; then
27197
27198 printf "%s\n" "#define GRN_WITH_XXHASH 1" >>confdefs.h
27199
27200 else
27201 if test "x$with_xxhash" != "xauto"; then
27202 as_fn_error $? "\"No libxxhash found\"" "$LINENO" 5
27203 fi
27204 fi
27205 else
27206 GRN_WITH_XXHASH=no
27207 fi
27208
27209 # MeCab
27210 # NOTE: MUST be checked last
27211
27212 BUNDLED_MECAB_VERSION=0.996
27213
27214
27215 BUNDLED_MECAB_NAIST_JDIC_VERSION=0.6.3b-20111013
27216
27217
27218
27219
27220 # Check whether --with-mecab was given.
27221 if test ${with_mecab+y}
27222 then :
27223 withval=$with_mecab; with_mecab="$withval"
27224 else $as_nop
27225 with_mecab="yes"
27226 fi
27227
27228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable MeCab" >&5
27229 printf %s "checking whether enable MeCab... " >&6; }
27230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mecab" >&5
27231 printf "%s\n" "$with_mecab" >&6; }
27232 if test "x$with_mecab" = "xyes"; then
27233 # mecab-config
27234
27235 # Check whether --with-mecab-config was given.
27236 if test ${with_mecab_config+y}
27237 then :
27238 withval=$with_mecab_config; if test "$cross_compiling" = "yes"; then
27239 MECAB_CONFIG="$withval"
27240 else
27241 as_ac_File=`printf "%s\n" "ac_cv_file_"$withval"" | $as_tr_sh`
27242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$withval\"" >&5
27243 printf %s "checking for \"$withval\"... " >&6; }
27244 if eval test \${$as_ac_File+y}
27245 then :
27246 printf %s "(cached) " >&6
27247 else $as_nop
27248 test "$cross_compiling" = yes &&
27249 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27250 if test -r ""$withval""; then
27251 eval "$as_ac_File=yes"
27252 else
27253 eval "$as_ac_File=no"
27254 fi
27255 fi
27256 eval ac_res=\$$as_ac_File
27257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27258 printf "%s\n" "$ac_res" >&6; }
27259 if eval test \"x\$"$as_ac_File"\" = x"yes"
27260 then :
27261 MECAB_CONFIG="$withval"
27262 else $as_nop
27263 MECAB_CONFIG=no
27264 fi
27265
27266 fi
27267 else $as_nop
27268 # Extract the first word of "mecab-config", so it can be a program name with args.
27269 set dummy mecab-config; ac_word=$2
27270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27271 printf %s "checking for $ac_word... " >&6; }
27272 if test ${ac_cv_path_MECAB_CONFIG+y}
27273 then :
27274 printf %s "(cached) " >&6
27275 else $as_nop
27276 case $MECAB_CONFIG in
27277 [\\/]* | ?:[\\/]*)
27278 ac_cv_path_MECAB_CONFIG="$MECAB_CONFIG" # Let the user override the test with a path.
27279 ;;
27280 *)
27281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27282 for as_dir in $PATH
27283 do
27284 IFS=$as_save_IFS
27285 case $as_dir in #(((
27286 '') as_dir=./ ;;
27287 */) ;;
27288 *) as_dir=$as_dir/ ;;
27289 esac
27290 for ac_exec_ext in '' $ac_executable_extensions; do
27291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27292 ac_cv_path_MECAB_CONFIG="$as_dir$ac_word$ac_exec_ext"
27293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27294 break 2
27295 fi
27296 done
27297 done
27298 IFS=$as_save_IFS
27299
27300 test -z "$ac_cv_path_MECAB_CONFIG" && ac_cv_path_MECAB_CONFIG="no"
27301 ;;
27302 esac
27303 fi
27304 MECAB_CONFIG=$ac_cv_path_MECAB_CONFIG
27305 if test -n "$MECAB_CONFIG"; then
27306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MECAB_CONFIG" >&5
27307 printf "%s\n" "$MECAB_CONFIG" >&6; }
27308 else
27309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27310 printf "%s\n" "no" >&6; }
27311 fi
27312
27313
27314 fi
27315
27316 if test "x$MECAB_CONFIG" = "xno"; then
27317 with_mecab="no"
27318 else
27319 MECAB_CPPFLAGS="-I`$MECAB_CONFIG --inc-dir`"
27320 MECAB_LDFLAGS="-L`$MECAB_CONFIG --libs-only-L`"
27321 _SAVE_LIBS="$LIBS"
27322 _SAVE_LDFLAGS="$LDFLAGS"
27323 LDFLAGS="$LDFLAGS $MECAB_LDFLAGS"
27324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mecab_new" >&5
27325 printf %s "checking for library containing mecab_new... " >&6; }
27326 if test ${ac_cv_search_mecab_new+y}
27327 then :
27328 printf %s "(cached) " >&6
27329 else $as_nop
27330 ac_func_search_save_LIBS=$LIBS
27331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27332 /* end confdefs.h. */
27333
27334 /* Override any GCC internal prototype to avoid an error.
27335 Use char because int might match the return type of a GCC
27336 builtin and then its argument prototype would still apply. */
27337 char mecab_new ();
27338 int
27339 main (void)
27340 {
27341 return mecab_new ();
27342 ;
27343 return 0;
27344 }
27345 _ACEOF
27346 for ac_lib in '' mecab
27347 do
27348 if test -z "$ac_lib"; then
27349 ac_res="none required"
27350 else
27351 ac_res=-l$ac_lib
27352 LIBS="-l$ac_lib $PTHREAD_LIBS $ac_func_search_save_LIBS"
27353 fi
27354 if ac_fn_c_try_link "$LINENO"
27355 then :
27356 ac_cv_search_mecab_new=$ac_res
27357 fi
27358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27359 conftest$ac_exeext
27360 if test ${ac_cv_search_mecab_new+y}
27361 then :
27362 break
27363 fi
27364 done
27365 if test ${ac_cv_search_mecab_new+y}
27366 then :
27367
27368 else $as_nop
27369 ac_cv_search_mecab_new=no
27370 fi
27371 rm conftest.$ac_ext
27372 LIBS=$ac_func_search_save_LIBS
27373 fi
27374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mecab_new" >&5
27375 printf "%s\n" "$ac_cv_search_mecab_new" >&6; }
27376 ac_res=$ac_cv_search_mecab_new
27377 if test "$ac_res" != no
27378 then :
27379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27380 MECAB_LIBS="-lmecab $PTHREAD_LIBS"
27381 else $as_nop
27382 as_fn_error $? "\"No libmecab found\"" "$LINENO" 5
27383 fi
27384
27385 LDFLAGS="$_SAVE_LDFLAGS"
27386 LIBS="$_SAVE_LIBS"
27387 _SAVE_CPPFLAGS="$CPPFLAGS"
27388 CPPFLAGS="$CPPFLAGS $MECAB_CPPFLAGS"
27389 ac_fn_c_check_header_compile "$LINENO" "mecab.h" "ac_cv_header_mecab_h" "$ac_includes_default"
27390 if test "x$ac_cv_header_mecab_h" = xyes
27391 then :
27392
27393 else $as_nop
27394 as_fn_error $? "\"No mecab.h found\"" "$LINENO" 5
27395 fi
27396
27397 ac_fn_c_check_type "$LINENO" "mecab_dictionary_info_t" "ac_cv_type_mecab_dictionary_info_t" "#include <mecab.h>
27398 "
27399 if test "x$ac_cv_type_mecab_dictionary_info_t" = xyes
27400 then :
27401
27402 printf "%s\n" "#define HAVE_MECAB_DICTIONARY_INFO_T 1" >>confdefs.h
27403
27404 fi
27405
27406 CPPFLAGS="$_SAVE_CPPFLAGS"
27407
27408
27409
27410 fi
27411 fi
27412 if test "x$with_mecab" = "xyes"; then
27413
27414 printf "%s\n" "#define GRN_WITH_MECAB 1" >>confdefs.h
27415
27416 fi
27417 if test "x$with_mecab" = "xyes"; then
27418 WITH_MECAB_TRUE=
27419 WITH_MECAB_FALSE='#'
27420 else
27421 WITH_MECAB_TRUE='#'
27422 WITH_MECAB_FALSE=
27423 fi
27424
27425
27426 # KyTea
27427 REQUIRED_MINIMUM_KYTEA_VERSION=0.4.2
27428
27429 # Check whether --with-kytea was given.
27430 if test ${with_kytea+y}
27431 then :
27432 withval=$with_kytea; with_kytea="$withval"
27433 else $as_nop
27434 with_kytea="auto"
27435 fi
27436
27437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable KyTea" >&5
27438 printf %s "checking whether enable KyTea... " >&6; }
27439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_kytea" >&5
27440 printf "%s\n" "$with_kytea" >&6; }
27441 if test "x$with_kytea" != "xno"; then
27442
27443
27444 pkg_failed=no
27445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION" >&5
27446 printf %s "checking for kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION... " >&6; }
27447
27448 if test -n "$KYTEA_CFLAGS"; then
27449 pkg_cv_KYTEA_CFLAGS="$KYTEA_CFLAGS"
27450 elif test -n "$PKG_CONFIG"; then
27451 if test -n "$PKG_CONFIG" && \
27452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"kytea >= \$REQUIRED_MINIMUM_KYTEA_VERSION\""; } >&5
27453 ($PKG_CONFIG --exists --print-errors "kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION") 2>&5
27454 ac_status=$?
27455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456 test $ac_status = 0; }; then
27457 pkg_cv_KYTEA_CFLAGS=`$PKG_CONFIG --cflags "kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION" 2>/dev/null`
27458 test "x$?" != "x0" && pkg_failed=yes
27459 else
27460 pkg_failed=yes
27461 fi
27462 else
27463 pkg_failed=untried
27464 fi
27465 if test -n "$KYTEA_LIBS"; then
27466 pkg_cv_KYTEA_LIBS="$KYTEA_LIBS"
27467 elif test -n "$PKG_CONFIG"; then
27468 if test -n "$PKG_CONFIG" && \
27469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"kytea >= \$REQUIRED_MINIMUM_KYTEA_VERSION\""; } >&5
27470 ($PKG_CONFIG --exists --print-errors "kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION") 2>&5
27471 ac_status=$?
27472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; then
27474 pkg_cv_KYTEA_LIBS=`$PKG_CONFIG --libs "kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION" 2>/dev/null`
27475 test "x$?" != "x0" && pkg_failed=yes
27476 else
27477 pkg_failed=yes
27478 fi
27479 else
27480 pkg_failed=untried
27481 fi
27482
27483
27484
27485 if test $pkg_failed = yes; then
27486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27487 printf "%s\n" "no" >&6; }
27488
27489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27490 _pkg_short_errors_supported=yes
27491 else
27492 _pkg_short_errors_supported=no
27493 fi
27494 if test $_pkg_short_errors_supported = yes; then
27495 KYTEA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION" 2>&1`
27496 else
27497 KYTEA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "kytea >= $REQUIRED_MINIMUM_KYTEA_VERSION" 2>&1`
27498 fi
27499 # Put the nasty error message in config.log where it belongs
27500 echo "$KYTEA_PKG_ERRORS" >&5
27501
27502 kytea_exists=no
27503 elif test $pkg_failed = untried; then
27504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27505 printf "%s\n" "no" >&6; }
27506 kytea_exists=no
27507 else
27508 KYTEA_CFLAGS=$pkg_cv_KYTEA_CFLAGS
27509 KYTEA_LIBS=$pkg_cv_KYTEA_LIBS
27510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27511 printf "%s\n" "yes" >&6; }
27512 kytea_exists=yes
27513 fi
27514
27515 if test "$kytea_exists" = "no" -a "x$with_kytea" = "xyes"; then
27516 as_fn_error $? "\"No KyTea found.\"" "$LINENO" 5
27517 fi
27518 with_kytea="$kytea_exists"
27519 fi
27520 if test "x$with_kytea" = "xyes"; then
27521
27522 printf "%s\n" "#define GRN_WITH_KYTEA 1" >>confdefs.h
27523
27524 fi
27525 if test "x$with_kytea" = "xyes"; then
27526 WITH_KYTEA_TRUE=
27527 WITH_KYTEA_FALSE='#'
27528 else
27529 WITH_KYTEA_TRUE='#'
27530 WITH_KYTEA_FALSE=
27531 fi
27532
27533
27534 # libstemmer
27535
27536 # Check whether --with-libstemmer was given.
27537 if test ${with_libstemmer+y}
27538 then :
27539 withval=$with_libstemmer; with_libstemmer="$withval"
27540 else $as_nop
27541 with_libstemmer="auto"
27542 fi
27543
27544
27545 # Check whether --with-libstemmer-include was given.
27546 if test ${with_libstemmer_include+y}
27547 then :
27548 withval=$with_libstemmer_include;
27549 fi
27550
27551
27552 # Check whether --with-libstemmer-lib was given.
27553 if test ${with_libstemmer_lib+y}
27554 then :
27555 withval=$with_libstemmer_lib;
27556 fi
27557
27558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable libstemmer" >&5
27559 printf %s "checking whether enable libstemmer... " >&6; }
27560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libstemmer" >&5
27561 printf "%s\n" "$with_libstemmer" >&6; }
27562 if test "x$with_libstemmer" != "xno"; then
27563 LIBSTEMMER_CFLAGS=""
27564 LIBSTEMMER_LDFLAGS=""
27565 LIBSTEMMER_LIBS=""
27566
27567 CFLAGS_save="${CFLAGS}"
27568 LDFLAGS_save="${LDFLAGS}"
27569 if test "x$with_libstemmer" != "xauto"; then
27570 if test -z "${with_libstemmer_include}"; then
27571 with_libstemmer_include="${with_libstemmer}/include"
27572 fi
27573 LIBSTEMMER_CFLAGS="-I${with_libstemmer_include}"
27574 if test -z "${with_libstemmer_lib}"; then
27575 with_libstemmer_lib="${with_libstemmer}/lib"
27576 fi
27577 LIBSTEMMER_LDFLAGS="-L${with_libstemmer_lib}"
27578 CFLAGS="${CFLAGS} ${LIBSTEMMER_CFLAGS}"
27579 LDFLAGS="${LDFLAGS} ${LIBSTEMMER_LDFLAGS}"
27580 fi
27581 for ac_header in libstemmer.h
27582 do :
27583 ac_fn_c_check_header_compile "$LINENO" "libstemmer.h" "ac_cv_header_libstemmer_h" "$ac_includes_default"
27584 if test "x$ac_cv_header_libstemmer_h" = xyes
27585 then :
27586 printf "%s\n" "#define HAVE_LIBSTEMMER_H 1" >>confdefs.h
27587 libstemmer_exists=yes
27588 else $as_nop
27589 libstemmer_exists=no
27590 fi
27591
27592 done
27593 if test "$libstemmer_exists" = "yes"; then
27594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sb_stemmer_list in -lstemmer" >&5
27595 printf %s "checking for sb_stemmer_list in -lstemmer... " >&6; }
27596 if test ${ac_cv_lib_stemmer_sb_stemmer_list+y}
27597 then :
27598 printf %s "(cached) " >&6
27599 else $as_nop
27600 ac_check_lib_save_LIBS=$LIBS
27601 LIBS="-lstemmer $LIBS"
27602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27603 /* end confdefs.h. */
27604
27605 /* Override any GCC internal prototype to avoid an error.
27606 Use char because int might match the return type of a GCC
27607 builtin and then its argument prototype would still apply. */
27608 char sb_stemmer_list ();
27609 int
27610 main (void)
27611 {
27612 return sb_stemmer_list ();
27613 ;
27614 return 0;
27615 }
27616 _ACEOF
27617 if ac_fn_c_try_link "$LINENO"
27618 then :
27619 ac_cv_lib_stemmer_sb_stemmer_list=yes
27620 else $as_nop
27621 ac_cv_lib_stemmer_sb_stemmer_list=no
27622 fi
27623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27624 conftest$ac_exeext conftest.$ac_ext
27625 LIBS=$ac_check_lib_save_LIBS
27626 fi
27627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stemmer_sb_stemmer_list" >&5
27628 printf "%s\n" "$ac_cv_lib_stemmer_sb_stemmer_list" >&6; }
27629 if test "x$ac_cv_lib_stemmer_sb_stemmer_list" = xyes
27630 then :
27631 LIBSTEMMER_LIBS="-lstemmer"
27632 else $as_nop
27633 libstemmer_exists=no
27634 fi
27635
27636 fi
27637 CFLAGS="${CFLAGS_save}"
27638 LDFLAGS="${LDFLAGS_save}"
27639
27640 if test "$libstemmer_exists" = "no" -a "x$with_libstemmer" != "xauto"; then
27641 as_fn_error $? "\"No libstemmer found at ${with_libstemmer_include} and ${with_libstemmer_lib}.\"" "$LINENO" 5
27642 fi
27643 with_libstemmer="$libstemmer_exists"
27644 fi
27645 if test "x$with_libstemmer" = "xyes"; then
27646
27647
27648
27649
27650 printf "%s\n" "#define GRN_WITH_LIBSTEMMER 1" >>confdefs.h
27651
27652 fi
27653 if test "x$with_libstemmer" = "xyes"; then
27654 WITH_LIBSTEMMER_TRUE=
27655 WITH_LIBSTEMMER_FALSE='#'
27656 else
27657 WITH_LIBSTEMMER_TRUE='#'
27658 WITH_LIBSTEMMER_FALSE=
27659 fi
27660
27661
27662 # futex check
27663 # Check whether --enable-futex was given.
27664 if test ${enable_futex+y}
27665 then :
27666 enableval=$enable_futex;
27667 else $as_nop
27668 enable_futex="no"
27669 fi
27670
27671 if test "x$enable_futex" != "xno"; then
27672 for ac_header in linux/futex.h sys/syscall.h
27673 do :
27674 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27675 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27676 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27677 then :
27678 cat >>confdefs.h <<_ACEOF
27679 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27680 _ACEOF
27681
27682
27683 printf "%s\n" "#define USE_FUTEX 1" >>confdefs.h
27684
27685
27686 else $as_nop
27687
27688 as_fn_error $? "\"linux/futex.h or sys/syscall.h not found\"" "$LINENO" 5
27689
27690 fi
27691
27692 done
27693 fi
27694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable futex" >&5
27695 printf %s "checking whether enable futex... " >&6; }
27696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_futex" >&5
27697 printf "%s\n" "$enable_futex" >&6; }
27698
27699 # ZeroMQ
27700 # Check whether --enable-zeromq was given.
27701 if test ${enable_zeromq+y}
27702 then :
27703 enableval=$enable_zeromq; enable_zeromq="$enableval"
27704 else $as_nop
27705 enable_zeromq="auto"
27706 fi
27707
27708 if test "x$enable_zeromq" != "xno"; then
27709
27710
27711 pkg_failed=no
27712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzmq" >&5
27713 printf %s "checking for libzmq... " >&6; }
27714
27715 if test -n "$LIBZMQ_CFLAGS"; then
27716 pkg_cv_LIBZMQ_CFLAGS="$LIBZMQ_CFLAGS"
27717 elif test -n "$PKG_CONFIG"; then
27718 if test -n "$PKG_CONFIG" && \
27719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmq\""; } >&5
27720 ($PKG_CONFIG --exists --print-errors "libzmq") 2>&5
27721 ac_status=$?
27722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27723 test $ac_status = 0; }; then
27724 pkg_cv_LIBZMQ_CFLAGS=`$PKG_CONFIG --cflags "libzmq" 2>/dev/null`
27725 test "x$?" != "x0" && pkg_failed=yes
27726 else
27727 pkg_failed=yes
27728 fi
27729 else
27730 pkg_failed=untried
27731 fi
27732 if test -n "$LIBZMQ_LIBS"; then
27733 pkg_cv_LIBZMQ_LIBS="$LIBZMQ_LIBS"
27734 elif test -n "$PKG_CONFIG"; then
27735 if test -n "$PKG_CONFIG" && \
27736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmq\""; } >&5
27737 ($PKG_CONFIG --exists --print-errors "libzmq") 2>&5
27738 ac_status=$?
27739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27740 test $ac_status = 0; }; then
27741 pkg_cv_LIBZMQ_LIBS=`$PKG_CONFIG --libs "libzmq" 2>/dev/null`
27742 test "x$?" != "x0" && pkg_failed=yes
27743 else
27744 pkg_failed=yes
27745 fi
27746 else
27747 pkg_failed=untried
27748 fi
27749
27750
27751
27752 if test $pkg_failed = yes; then
27753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27754 printf "%s\n" "no" >&6; }
27755
27756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27757 _pkg_short_errors_supported=yes
27758 else
27759 _pkg_short_errors_supported=no
27760 fi
27761 if test $_pkg_short_errors_supported = yes; then
27762 LIBZMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzmq" 2>&1`
27763 else
27764 LIBZMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzmq" 2>&1`
27765 fi
27766 # Put the nasty error message in config.log where it belongs
27767 echo "$LIBZMQ_PKG_ERRORS" >&5
27768
27769 zeromq_available=no
27770 elif test $pkg_failed = untried; then
27771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27772 printf "%s\n" "no" >&6; }
27773 zeromq_available=no
27774 else
27775 LIBZMQ_CFLAGS=$pkg_cv_LIBZMQ_CFLAGS
27776 LIBZMQ_LIBS=$pkg_cv_LIBZMQ_LIBS
27777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27778 printf "%s\n" "yes" >&6; }
27779 zeromq_available=yes
27780 fi
27781
27782 if test "x$zeromq_available" = "xyes"; then
27783
27784 printf "%s\n" "#define GRN_WITH_ZEROMQ 1" >>confdefs.h
27785
27786 else
27787 if test "x$enable_zeromq" = "xyes"; then
27788 as_fn_error $? "\"No ZeroMQ found\"" "$LINENO" 5
27789 fi
27790 fi
27791 fi
27792
27793 # libevent
27794
27795 # Check whether --with-libevent was given.
27796 if test ${with_libevent+y}
27797 then :
27798 withval=$with_libevent; with_libevent="$withval"
27799 else $as_nop
27800 with_libevent="auto"
27801 fi
27802
27803
27804 # workaround for bundled groonga in MariaDB.
27805 if test "x$with_libevent" = "xbundled"; then
27806 with_libevent=no
27807 fi
27808
27809 if test "x$with_libevent" != "xno"; then
27810 if test "x$with_libevent" = "xyes" -o "x$with_libevent" = "xauto"; then
27811 libevent_cflags=""
27812 libevent_ldflags="-levent"
27813 else
27814 libevent_include_dir="$with_libevent/include"
27815 libevent_lib_dir="$with_libevent/lib"
27816 if ! test -d "$libevent_include_dir" -a -d "$libevent_lib_dir"; then
27817 as_fn_error $? "\"No libevent found in $with_libevent.\"" "$LINENO" 5
27818 fi
27819 libevent_cflags="-I$libevent_include_dir"
27820 libevent_ldflags="-L$libevent_lib_dir -levent"
27821 fi
27822
27823 _SAVE_CFLAGS="$CFLAGS"
27824 _SAVE_LDFLAGS="$LDFLAGS"
27825 _SAVE_LIBS="$LIBS"
27826 CFLAGS="$CFLAGS $libevent_cflags"
27827 LDFLAGS="$LDFLAGS $libevent_ldflags"
27828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_init" >&5
27829 printf %s "checking for library containing event_init... " >&6; }
27830 if test ${ac_cv_search_event_init+y}
27831 then :
27832 printf %s "(cached) " >&6
27833 else $as_nop
27834 ac_func_search_save_LIBS=$LIBS
27835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27836 /* end confdefs.h. */
27837
27838 /* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27841 char event_init ();
27842 int
27843 main (void)
27844 {
27845 return event_init ();
27846 ;
27847 return 0;
27848 }
27849 _ACEOF
27850 for ac_lib in '' event
27851 do
27852 if test -z "$ac_lib"; then
27853 ac_res="none required"
27854 else
27855 ac_res=-l$ac_lib
27856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27857 fi
27858 if ac_fn_c_try_link "$LINENO"
27859 then :
27860 ac_cv_search_event_init=$ac_res
27861 fi
27862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27863 conftest$ac_exeext
27864 if test ${ac_cv_search_event_init+y}
27865 then :
27866 break
27867 fi
27868 done
27869 if test ${ac_cv_search_event_init+y}
27870 then :
27871
27872 else $as_nop
27873 ac_cv_search_event_init=no
27874 fi
27875 rm conftest.$ac_ext
27876 LIBS=$ac_func_search_save_LIBS
27877 fi
27878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_init" >&5
27879 printf "%s\n" "$ac_cv_search_event_init" >&6; }
27880 ac_res=$ac_cv_search_event_init
27881 if test "$ac_res" != no
27882 then :
27883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27884 libevent_available=yes
27885 else $as_nop
27886 libevent_available=no
27887 fi
27888
27889 CFLAGS="$_SAVE_CFLAGS"
27890 LDFLAGS="$_SAVE_LDFLAGS"
27891 LIBS="$_SAVE_LIBS"
27892 if test "$libevent_available" = "yes"; then
27893
27894 printf "%s\n" "#define GRN_WITH_LIBEVENT 1" >>confdefs.h
27895
27896 LIBEVENT_CFLAGS="$libevent_cflags"
27897 LIBEVENT_LIBS="$libevent_ldflags"
27898 else
27899 if test "$enable_option_checking" != "no" -a "x$with_libevent" = "xyes"; then
27900 as_fn_error $? "\"No libevent found\"" "$LINENO" 5
27901 fi
27902 fi
27903 fi
27904
27905
27906
27907 # MessagePack
27908 # Check whether --enable-message-pack was given.
27909 if test ${enable_message_pack+y}
27910 then :
27911 enableval=$enable_message_pack; enable_message_pack="$enableval"
27912 else $as_nop
27913 enable_message_pack="auto"
27914 fi
27915
27916 if test "x$enable_message_pack" != "xno"; then
27917
27918
27919 pkg_failed=no
27920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for msgpack-c" >&5
27921 printf %s "checking for msgpack-c... " >&6; }
27922
27923 if test -n "$MESSAGE_PACK_CFLAGS"; then
27924 pkg_cv_MESSAGE_PACK_CFLAGS="$MESSAGE_PACK_CFLAGS"
27925 elif test -n "$PKG_CONFIG"; then
27926 if test -n "$PKG_CONFIG" && \
27927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack-c\""; } >&5
27928 ($PKG_CONFIG --exists --print-errors "msgpack-c") 2>&5
27929 ac_status=$?
27930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; then
27932 pkg_cv_MESSAGE_PACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack-c" 2>/dev/null`
27933 test "x$?" != "x0" && pkg_failed=yes
27934 else
27935 pkg_failed=yes
27936 fi
27937 else
27938 pkg_failed=untried
27939 fi
27940 if test -n "$MESSAGE_PACK_LIBS"; then
27941 pkg_cv_MESSAGE_PACK_LIBS="$MESSAGE_PACK_LIBS"
27942 elif test -n "$PKG_CONFIG"; then
27943 if test -n "$PKG_CONFIG" && \
27944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack-c\""; } >&5
27945 ($PKG_CONFIG --exists --print-errors "msgpack-c") 2>&5
27946 ac_status=$?
27947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27948 test $ac_status = 0; }; then
27949 pkg_cv_MESSAGE_PACK_LIBS=`$PKG_CONFIG --libs "msgpack-c" 2>/dev/null`
27950 test "x$?" != "x0" && pkg_failed=yes
27951 else
27952 pkg_failed=yes
27953 fi
27954 else
27955 pkg_failed=untried
27956 fi
27957
27958
27959
27960 if test $pkg_failed = yes; then
27961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27962 printf "%s\n" "no" >&6; }
27963
27964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27965 _pkg_short_errors_supported=yes
27966 else
27967 _pkg_short_errors_supported=no
27968 fi
27969 if test $_pkg_short_errors_supported = yes; then
27970 MESSAGE_PACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack-c" 2>&1`
27971 else
27972 MESSAGE_PACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack-c" 2>&1`
27973 fi
27974 # Put the nasty error message in config.log where it belongs
27975 echo "$MESSAGE_PACK_PKG_ERRORS" >&5
27976
27977
27978
27979 pkg_failed=no
27980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
27981 printf %s "checking for msgpack... " >&6; }
27982
27983 if test -n "$MESSAGE_PACK_CFLAGS"; then
27984 pkg_cv_MESSAGE_PACK_CFLAGS="$MESSAGE_PACK_CFLAGS"
27985 elif test -n "$PKG_CONFIG"; then
27986 if test -n "$PKG_CONFIG" && \
27987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
27988 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
27989 ac_status=$?
27990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27991 test $ac_status = 0; }; then
27992 pkg_cv_MESSAGE_PACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
27993 test "x$?" != "x0" && pkg_failed=yes
27994 else
27995 pkg_failed=yes
27996 fi
27997 else
27998 pkg_failed=untried
27999 fi
28000 if test -n "$MESSAGE_PACK_LIBS"; then
28001 pkg_cv_MESSAGE_PACK_LIBS="$MESSAGE_PACK_LIBS"
28002 elif test -n "$PKG_CONFIG"; then
28003 if test -n "$PKG_CONFIG" && \
28004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
28005 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
28006 ac_status=$?
28007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; then
28009 pkg_cv_MESSAGE_PACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
28010 test "x$?" != "x0" && pkg_failed=yes
28011 else
28012 pkg_failed=yes
28013 fi
28014 else
28015 pkg_failed=untried
28016 fi
28017
28018
28019
28020 if test $pkg_failed = yes; then
28021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28022 printf "%s\n" "no" >&6; }
28023
28024 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28025 _pkg_short_errors_supported=yes
28026 else
28027 _pkg_short_errors_supported=no
28028 fi
28029 if test $_pkg_short_errors_supported = yes; then
28030 MESSAGE_PACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
28031 else
28032 MESSAGE_PACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
28033 fi
28034 # Put the nasty error message in config.log where it belongs
28035 echo "$MESSAGE_PACK_PKG_ERRORS" >&5
28036
28037 message_pack_available=no
28038 elif test $pkg_failed = untried; then
28039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28040 printf "%s\n" "no" >&6; }
28041 message_pack_available=no
28042 else
28043 MESSAGE_PACK_CFLAGS=$pkg_cv_MESSAGE_PACK_CFLAGS
28044 MESSAGE_PACK_LIBS=$pkg_cv_MESSAGE_PACK_LIBS
28045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28046 printf "%s\n" "yes" >&6; }
28047 message_pack_available=yes
28048 fi
28049
28050 elif test $pkg_failed = untried; then
28051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28052 printf "%s\n" "no" >&6; }
28053
28054
28055 pkg_failed=no
28056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
28057 printf %s "checking for msgpack... " >&6; }
28058
28059 if test -n "$MESSAGE_PACK_CFLAGS"; then
28060 pkg_cv_MESSAGE_PACK_CFLAGS="$MESSAGE_PACK_CFLAGS"
28061 elif test -n "$PKG_CONFIG"; then
28062 if test -n "$PKG_CONFIG" && \
28063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
28064 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
28065 ac_status=$?
28066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28067 test $ac_status = 0; }; then
28068 pkg_cv_MESSAGE_PACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
28069 test "x$?" != "x0" && pkg_failed=yes
28070 else
28071 pkg_failed=yes
28072 fi
28073 else
28074 pkg_failed=untried
28075 fi
28076 if test -n "$MESSAGE_PACK_LIBS"; then
28077 pkg_cv_MESSAGE_PACK_LIBS="$MESSAGE_PACK_LIBS"
28078 elif test -n "$PKG_CONFIG"; then
28079 if test -n "$PKG_CONFIG" && \
28080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
28081 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
28082 ac_status=$?
28083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28084 test $ac_status = 0; }; then
28085 pkg_cv_MESSAGE_PACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
28086 test "x$?" != "x0" && pkg_failed=yes
28087 else
28088 pkg_failed=yes
28089 fi
28090 else
28091 pkg_failed=untried
28092 fi
28093
28094
28095
28096 if test $pkg_failed = yes; then
28097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28098 printf "%s\n" "no" >&6; }
28099
28100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28101 _pkg_short_errors_supported=yes
28102 else
28103 _pkg_short_errors_supported=no
28104 fi
28105 if test $_pkg_short_errors_supported = yes; then
28106 MESSAGE_PACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
28107 else
28108 MESSAGE_PACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
28109 fi
28110 # Put the nasty error message in config.log where it belongs
28111 echo "$MESSAGE_PACK_PKG_ERRORS" >&5
28112
28113 message_pack_available=no
28114 elif test $pkg_failed = untried; then
28115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28116 printf "%s\n" "no" >&6; }
28117 message_pack_available=no
28118 else
28119 MESSAGE_PACK_CFLAGS=$pkg_cv_MESSAGE_PACK_CFLAGS
28120 MESSAGE_PACK_LIBS=$pkg_cv_MESSAGE_PACK_LIBS
28121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28122 printf "%s\n" "yes" >&6; }
28123 message_pack_available=yes
28124 fi
28125
28126 else
28127 MESSAGE_PACK_CFLAGS=$pkg_cv_MESSAGE_PACK_CFLAGS
28128 MESSAGE_PACK_LIBS=$pkg_cv_MESSAGE_PACK_LIBS
28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28130 printf "%s\n" "yes" >&6; }
28131 message_pack_available=yes
28132 fi
28133
28134
28135 if test "$message_pack_available" = "no"; then
28136
28137 # Check whether --with-message-pack was given.
28138 if test ${with_message_pack+y}
28139 then :
28140 withval=$with_message_pack; with_message_pack="$withval"
28141 else $as_nop
28142 with_message_pack="/usr"
28143 fi
28144
28145 _SAVE_CFLAGS="$CFLAGS"
28146 _SAVE_LDFLAGS="$LDFLAGS"
28147 _SAVE_LIBS="$LIBS"
28148 CFLAGS="$CFLAGS -I$with_message_pack/include"
28149 LDFLAGS="$LDFLAGS -L$with_message_pack/lib"
28150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing msgpack_version" >&5
28151 printf %s "checking for library containing msgpack_version... " >&6; }
28152 if test ${ac_cv_search_msgpack_version+y}
28153 then :
28154 printf %s "(cached) " >&6
28155 else $as_nop
28156 ac_func_search_save_LIBS=$LIBS
28157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28158 /* end confdefs.h. */
28159
28160 /* Override any GCC internal prototype to avoid an error.
28161 Use char because int might match the return type of a GCC
28162 builtin and then its argument prototype would still apply. */
28163 char msgpack_version ();
28164 int
28165 main (void)
28166 {
28167 return msgpack_version ();
28168 ;
28169 return 0;
28170 }
28171 _ACEOF
28172 for ac_lib in '' msgpackc
28173 do
28174 if test -z "$ac_lib"; then
28175 ac_res="none required"
28176 else
28177 ac_res=-l$ac_lib
28178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28179 fi
28180 if ac_fn_c_try_link "$LINENO"
28181 then :
28182 ac_cv_search_msgpack_version=$ac_res
28183 fi
28184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28185 conftest$ac_exeext
28186 if test ${ac_cv_search_msgpack_version+y}
28187 then :
28188 break
28189 fi
28190 done
28191 if test ${ac_cv_search_msgpack_version+y}
28192 then :
28193
28194 else $as_nop
28195 ac_cv_search_msgpack_version=no
28196 fi
28197 rm conftest.$ac_ext
28198 LIBS=$ac_func_search_save_LIBS
28199 fi
28200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_msgpack_version" >&5
28201 printf "%s\n" "$ac_cv_search_msgpack_version" >&6; }
28202 ac_res=$ac_cv_search_msgpack_version
28203 if test "$ac_res" != no
28204 then :
28205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28206 message_pack_available=yes
28207 else $as_nop
28208 message_pack_available=no
28209 fi
28210
28211 CFLAGS="$_SAVE_CFLAGS"
28212 LDFLAGS="$_SAVE_LDFLAGS"
28213 LIBS="$_SAVE_LIBS"
28214
28215 if test "x$message_pack_available" = "xyes"; then
28216 MESSAGE_PACK_CFLAGS="-I$with_message_pack/include"
28217 MESSAGE_PACK_LIBS="-L$with_message_pack/lib -lmsgpackc"
28218 fi
28219 fi
28220
28221 if test "x$message_pack_available" = "xyes"; then
28222
28223 printf "%s\n" "#define GRN_WITH_MESSAGE_PACK 1" >>confdefs.h
28224
28225 else
28226 if test "x$enable_message_pack" = "xyes"; then
28227 as_fn_error $? "\"No MessagePack found\"" "$LINENO" 5
28228 fi
28229 fi
28230 fi
28231
28232
28233
28234 if test "$zeromq_available" = "yes" -a \
28235 "$libevent_available" = "yes" -a \
28236 "$message_pack_available" = "yes"; then
28237 ENABLE_SUGGEST_LEARNER_TRUE=
28238 ENABLE_SUGGEST_LEARNER_FALSE='#'
28239 else
28240 ENABLE_SUGGEST_LEARNER_TRUE='#'
28241 ENABLE_SUGGEST_LEARNER_FALSE=
28242 fi
28243
28244
28245 # Check built-in atomic
28246 case "$host" in
28247 i*86*|x86_64*)
28248 ;;
28249 *)
28250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for platform which requires libatomic" >&5
28251 printf %s "checking for platform which requires libatomic... " >&6; }
28252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __atomic_store_8 in -latomic" >&5
28253 printf %s "checking for __atomic_store_8 in -latomic... " >&6; }
28254 if test ${ac_cv_lib_atomic___atomic_store_8+y}
28255 then :
28256 printf %s "(cached) " >&6
28257 else $as_nop
28258 ac_check_lib_save_LIBS=$LIBS
28259 LIBS="-latomic $LIBS"
28260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28261 /* end confdefs.h. */
28262
28263 /* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28266 char __atomic_store_8 ();
28267 int
28268 main (void)
28269 {
28270 return __atomic_store_8 ();
28271 ;
28272 return 0;
28273 }
28274 _ACEOF
28275 if ac_fn_c_try_link "$LINENO"
28276 then :
28277 ac_cv_lib_atomic___atomic_store_8=yes
28278 else $as_nop
28279 ac_cv_lib_atomic___atomic_store_8=no
28280 fi
28281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28282 conftest$ac_exeext conftest.$ac_ext
28283 LIBS=$ac_check_lib_save_LIBS
28284 fi
28285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_store_8" >&5
28286 printf "%s\n" "$ac_cv_lib_atomic___atomic_store_8" >&6; }
28287 if test "x$ac_cv_lib_atomic___atomic_store_8" = xyes
28288 then :
28289 ATOMIC_LIBS="-latomic"
28290 fi
28291
28292
28293 ;;
28294 esac
28295
28296 # Document
28297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable document" >&5
28298 printf %s "checking whether enable document... " >&6; }
28299 # Check whether --enable-document was given.
28300 if test ${enable_document+y}
28301 then :
28302 enableval=$enable_document; enable_document="$enableval"
28303 else $as_nop
28304 enable_document="auto"
28305 fi
28306
28307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_document" >&5
28308 printf "%s\n" "$enable_document" >&6; }
28309
28310 document_available=no
28311 document_buildable=no
28312 have_built_document=no
28313 if test x"$enable_document" != x"no"; then
28314 if test -f "$srcdir/doc/build-stamp"; then
28315 document_available=yes
28316 have_built_document=yes
28317 fi
28318
28319 if test x"$enable_document" = x"yes"; then
28320 # Extract the first word of "sphinx-build", so it can be a program name with args.
28321 set dummy sphinx-build; ac_word=$2
28322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28323 printf %s "checking for $ac_word... " >&6; }
28324 if test ${ac_cv_path_SPHINX_BUILD+y}
28325 then :
28326 printf %s "(cached) " >&6
28327 else $as_nop
28328 case $SPHINX_BUILD in
28329 [\\/]* | ?:[\\/]*)
28330 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
28331 ;;
28332 *)
28333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28334 for as_dir in $PATH
28335 do
28336 IFS=$as_save_IFS
28337 case $as_dir in #(((
28338 '') as_dir=./ ;;
28339 */) ;;
28340 *) as_dir=$as_dir/ ;;
28341 esac
28342 for ac_exec_ext in '' $ac_executable_extensions; do
28343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28344 ac_cv_path_SPHINX_BUILD="$as_dir$ac_word$ac_exec_ext"
28345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28346 break 2
28347 fi
28348 done
28349 done
28350 IFS=$as_save_IFS
28351
28352 ;;
28353 esac
28354 fi
28355 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
28356 if test -n "$SPHINX_BUILD"; then
28357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
28358 printf "%s\n" "$SPHINX_BUILD" >&6; }
28359 else
28360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28361 printf "%s\n" "no" >&6; }
28362 fi
28363
28364
28365 if test -n "$SPHINX_BUILD"; then
28366 document_available=yes
28367 document_buildable=yes
28368
28369 else
28370 as_fn_error $? "
28371 No sphinx-build found.
28372 Install it and try again.
28373
28374 How to install sphinx-build:
28375
28376 For Debian GNU/Linux based system like Ubuntu:
28377 % sudo apt-get install -y python-sphinx
28378
28379 For Red Hat based system like CentOS:
28380 % sudo yum install -y python-pip
28381 % sudo pip install sphinx
28382
28383 For OS X with Homebrew:
28384 % brew install python
28385 % brew install gettext
28386 % export PATH=\"\`brew --prefix gettext\`/bin:\$PATH\"
28387 % pip install sphinx" "$LINENO" 5
28388 fi
28389
28390 fi
28391 fi
28392
28393 if test "${document_available}" = "yes"; then
28394 DOCUMENT_AVAILABLE_TRUE=
28395 DOCUMENT_AVAILABLE_FALSE='#'
28396 else
28397 DOCUMENT_AVAILABLE_TRUE='#'
28398 DOCUMENT_AVAILABLE_FALSE=
28399 fi
28400
28401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether document available" >&5
28402 printf %s "checking whether document available... " >&6; }
28403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $document_available" >&5
28404 printf "%s\n" "$document_available" >&6; }
28405
28406 if test "${document_buildable}" = "yes"; then
28407 DOCUMENT_BUILDABLE_TRUE=
28408 DOCUMENT_BUILDABLE_FALSE='#'
28409 else
28410 DOCUMENT_BUILDABLE_TRUE='#'
28411 DOCUMENT_BUILDABLE_FALSE=
28412 fi
28413
28414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether document buildable" >&5
28415 printf %s "checking whether document buildable... " >&6; }
28416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $document_buildable" >&5
28417 printf "%s\n" "$document_buildable" >&6; }
28418
28419 if test "${have_built_document}" = "yes"; then
28420 HAVE_BUILT_DOCUMENT_TRUE=
28421 HAVE_BUILT_DOCUMENT_FALSE='#'
28422 else
28423 HAVE_BUILT_DOCUMENT_TRUE='#'
28424 HAVE_BUILT_DOCUMENT_FALSE=
28425 fi
28426
28427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether having built document" >&5
28428 printf %s "checking whether having built document... " >&6; }
28429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_built_document" >&5
28430 printf "%s\n" "$have_built_document" >&6; }
28431
28432 DOCUMENT_VERSION=16.0.5
28433 DOCUMENT_VERSION_FULL="$GRN_VERSION"
28434
28435
28436
28437 # Munin plugins
28438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether install munin plugins" >&5
28439 printf %s "checking whether install munin plugins... " >&6; }
28440
28441 # Check whether --with-munin-plugins was given.
28442 if test ${with_munin_plugins+y}
28443 then :
28444 withval=$with_munin_plugins; install_munin_plugins="$withval"
28445 else $as_nop
28446 install_munin_plugins="no"
28447 fi
28448
28449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $install_munin_plugins" >&5
28450 printf "%s\n" "$install_munin_plugins" >&6; }
28451
28452 if test "${install_munin_plugins}" = "yes"; then
28453 INSTALL_MUNIN_PLUGINS_TRUE=
28454 INSTALL_MUNIN_PLUGINS_FALSE='#'
28455 else
28456 INSTALL_MUNIN_PLUGINS_TRUE='#'
28457 INSTALL_MUNIN_PLUGINS_FALSE=
28458 fi
28459
28460
28461 # platform
28462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether package platform" >&5
28463 printf %s "checking whether package platform... " >&6; }
28464
28465 # Check whether --with-package-platform was given.
28466 if test ${with_package_platform+y}
28467 then :
28468 withval=$with_package_platform; package_platform="$withval"
28469 else $as_nop
28470 package_platform="no"
28471 fi
28472
28473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $package_platform" >&5
28474 printf "%s\n" "$package_platform" >&6; }
28475
28476 rhel_platform=no
28477 case "${package_platform}" in
28478 no)
28479 ;;
28480 rhel)
28481 rhel_platform=yes
28482 ;;
28483 esac
28484 if test "${rhel_platform}" = "yes"; then
28485 RHEL_PLATFORM_TRUE=
28486 RHEL_PLATFORM_FALSE='#'
28487 else
28488 RHEL_PLATFORM_TRUE='#'
28489 RHEL_PLATFORM_FALSE=
28490 fi
28491
28492
28493 # plugins check
28494 relative_pluginsdir_base="\$(PACKAGE)/plugins"
28495
28496 expanded_relative_pluginsdir_base="${PACKAGE}/plugins"
28497
28498
28499 relative_pluginsdir="lib/\$(relative_pluginsdir_base)"
28500
28501
28502 pluginsdir="\${libdir}/\$(relative_pluginsdir_base)"
28503
28504 expanded_pluginsdir="\${libdir}/${expanded_relative_pluginsdir_base}"
28505
28506
28507 tokenizer_pluginsdir="\${pluginsdir}/tokenizers"
28508
28509
28510 query_expander_pluginsdir="\${pluginsdir}/query_expanders"
28511
28512
28513 suggest_pluginsdir="\${pluginsdir}/suggest"
28514
28515
28516 ruby_pluginsdir="\${pluginsdir}/ruby"
28517
28518
28519 token_filter_pluginsdir="\${pluginsdir}/token_filters"
28520
28521
28522 sharding_pluginsdir="\${pluginsdir}/sharding"
28523
28524
28525 function_pluginsdir="\${pluginsdir}/functions"
28526
28527
28528 expression_rewriter_pluginsdir="\${pluginsdir}/expression_rewriters"
28529
28530
28531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the suffix of plugin shared libraries" >&5
28532 printf %s "checking for the suffix of plugin shared libraries... " >&6; }
28533 shrext_cmds=$(./libtool --config | grep '^shrext_cmds=')
28534 eval $shrext_cmds
28535 module=yes eval suffix="$shrext_cmds"
28536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $suffix" >&5
28537 printf "%s\n" "$suffix" >&6; }
28538 if test -z "$suffix"; then
28539 as_fn_error $? "can't detect plugin suffix" "$LINENO" 5
28540 fi
28541
28542 printf "%s\n" "#define GRN_PLUGIN_SUFFIX \"$suffix\"" >>confdefs.h
28543
28544
28545 # for query expanders
28546 GRN_QUERY_EXPANDER_TSV_RELATIVE_SYNONYMS_FILE_BASE="synonyms.tsv"
28547 GRN_QUERY_EXPANDER_TSV_RELATIVE_SYNONYMS_FILE="etc/${PACKAGE}/${GRN_QUERY_EXPANDER_TSV_RELATIVE_SYNONYMS_FILE_BASE}"
28548
28549 printf "%s\n" "#define GRN_QUERY_EXPANDER_TSV_RELATIVE_SYNONYMS_FILE \"$GRN_QUERY_EXPANDER_TSV_RELATIVE_SYNONYMS_FILE\"" >>confdefs.h
28550
28551 GRN_QUERY_EXPANDER_TSV_SYNONYMS_PATH="`
28552 eval echo ${sysconfdir}/${PACKAGE}/${GRN_QUERY_EXPANDER_TSV_RELATIVE_SYNONYMS_FILE_BASE}
28553 `"
28554
28555 printf "%s\n" "#define GRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE \"$GRN_QUERY_EXPANDER_TSV_SYNONYMS_PATH\"" >>confdefs.h
28556
28557
28558 # for examples
28559 examplesdir="\$(pkgdatadir)/examples"
28560
28561
28562 examples_dictionarydir="\$(examplesdir)/dictionary"
28563
28564
28565 # for ruby scripts
28566 relative_ruby_scriptsdir_base="\$(PACKAGE)/scripts/ruby"
28567
28568 relative_ruby_scriptsdir="lib/\$(relative_ruby_scriptsdir_base)"
28569
28570 ruby_scriptsdir="\${libdir}/\$(relative_ruby_scriptsdir_base)"
28571
28572
28573 # for document root
28574 GRN_DEFAULT_DOCUMENT_ROOT_BASE="html/admin"
28575 GRN_DEFAULT_DOCUMENT_ROOT="\${pkgdatadir}/\${GRN_DEFAULT_DOCUMENT_ROOT_BASE}"
28576 GRN_EXPANDED_DEFAULT_DOCUMENT_ROOT="\${datadir}/${PACKAGE}/${GRN_DEFAULT_DOCUMENT_ROOT_BASE}"
28577 GRN_DEFAULT_RELATIVE_DOCUMENT_ROOT="share/\$(PACKAGE)/\$(GRN_DEFAULT_DOCUMENT_ROOT_BASE)"
28578
28579
28580
28581
28582
28583 # flags for compile groonga
28584 GRN_CFLAGS=""
28585
28586 GRN_DEFS=""
28587 GRN_DEFS="$GRN_DEFS -DGRN_DLL_FILENAME=L\\\"\"\$(GRN_DLL_FILENAME)\"\\\""
28588 GRN_DEFS="$GRN_DEFS -DGRN_PLUGINS_DIR=\\\"\"\$(pluginsdir)\"\\\""
28589 GRN_DEFS="$GRN_DEFS -DGRN_RELATIVE_PLUGINS_DIR=\\\"\"\$(relative_pluginsdir)\"\\\""
28590 GRN_DEFS="$GRN_DEFS -DGRN_RUBY_SCRIPTS_DIR=\\\"\"\$(ruby_scriptsdir)\"\\\""
28591 GRN_DEFS="$GRN_DEFS -DGRN_RELATIVE_RUBY_SCRIPTS_DIR=\\\"\"\$(relative_ruby_scriptsdir)\"\\\""
28592 GRN_DEFS="$GRN_DEFS -DGRN_LOG_PATH=\\\"\"\$(grn_log_path)\"\\\""
28593 GRN_DEFS="$GRN_DEFS -DGRN_DEFAULT_DOCUMENT_ROOT=\\\"\"\$(GRN_DEFAULT_DOCUMENT_ROOT)\"\\\""
28594 GRN_DEFS="$GRN_DEFS -DGRN_DEFAULT_RELATIVE_DOCUMENT_ROOT=\\\"\"\$(GRN_DEFAULT_RELATIVE_DOCUMENT_ROOT)\"\\\""
28595
28596 CFLAGS="$CFLAGS $OPT_CFLAGS "
28597
28598 printf "%s\n" "#define CONFIGURE_OPTIONS \"$ac_configure_args\"" >>confdefs.h
28599
28600
28601 # For groonga.org
28602
28603 # Check whether --with-groonga-org-path was given.
28604 if test ${with_groonga_org_path+y}
28605 then :
28606 withval=$with_groonga_org_path; GROONGA_ORG_PATH="$withval"
28607 else $as_nop
28608 GROONGA_ORG_PATH=""
28609 fi
28610
28611
28612
28613 # mruby
28614 # Check whether --enable-mruby was given.
28615 if test ${enable_mruby+y}
28616 then :
28617 enableval=$enable_mruby; enable_mruby="$enableval"
28618 else $as_nop
28619 enable_mruby="no"
28620 fi
28621
28622
28623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enable mruby" >&5
28624 printf %s "checking whether enable mruby... " >&6; }
28625 if test "x$enable_mruby" != "xyes"; then
28626 enable_mruby="no"
28627 fi
28628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_mruby" >&5
28629 printf "%s\n" "$enable_mruby" >&6; }
28630
28631 if test "$enable_mruby" = "yes"; then
28632 if test ! -f "$srcdir/vendor/mruby/mruby_build.timestamp" -a \
28633 "$ac_cv_ruby_available" != "yes"; then
28634 as_fn_error $? "--enable-mruby requires --with-ruby" "$LINENO" 5
28635 fi
28636
28637 printf "%s\n" "#define GRN_WITH_MRUBY 1" >>confdefs.h
28638
28639 MRUBY_CFLAGS="-I\$(top_srcdir)/vendor/mruby-source/include"
28640 GRN_WITH_MRUBY="yes"
28641 else
28642 MRUBY_CFLAGS=""
28643 fi
28644
28645
28646 if test "$enable_mruby" = "yes"; then
28647 WITH_MRUBY_TRUE=
28648 WITH_MRUBY_FALSE='#'
28649 else
28650 WITH_MRUBY_TRUE='#'
28651 WITH_MRUBY_FALSE=
28652 fi
28653
28654
28655 MRUBY_CPPFLAGS="-DMRB_INT64"
28656
28657
28658 # For mruby-file-stat
28659 if test "$os_win32" = "yes"; then
28660 HAVE_SYS_SYSMACROS_H=no
28661 else
28662 for ac_header in sys/sysmacros.h
28663 do :
28664 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
28665 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
28666 then :
28667 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
28668 HAVE_SYS_SYSMACROS_H=yes
28669 else $as_nop
28670 HAVE_SYS_SYSMACROS_H=no
28671 fi
28672
28673 done
28674 fi
28675 if test "$HAVE_SYS_SYSMACROS_H" = "yes"; then
28676 HAVE_SYS_SYSMACROS_H_TRUE=
28677 HAVE_SYS_SYSMACROS_H_FALSE='#'
28678 else
28679 HAVE_SYS_SYSMACROS_H_TRUE='#'
28680 HAVE_SYS_SYSMACROS_H_FALSE=
28681 fi
28682
28683
28684 # This option is used in vendor/onigmo/configure
28685 # Check whether --enable-shared-onigmo was given.
28686 if test ${enable_shared_onigmo+y}
28687 then :
28688 enableval=$enable_shared_onigmo; enable_shared_onigmo="$enableval"
28689 else $as_nop
28690 enable_shared_onigmo="no"
28691 fi
28692
28693 if test "$enable_shared_onigmo" = "yes"; then
28694 WITH_SHARED_ONIGMO_TRUE=
28695 WITH_SHARED_ONIGMO_FALSE='#'
28696 else
28697 WITH_SHARED_ONIGMO_TRUE='#'
28698 WITH_SHARED_ONIGMO_FALSE=
28699 fi
28700
28701
28702
28703 # Check whether --with-onigmo was given.
28704 if test ${with_onigmo+y}
28705 then :
28706 withval=$with_onigmo; with_onigmo="$withval"
28707 else $as_nop
28708 with_onigmo="bundled"
28709 fi
28710
28711 if test "x$with_onigmo" != "xno"; then
28712 GRN_WITH_ONIGMO="yes"
28713 if test "x$with_onigmo" != "xbundled"; then
28714
28715
28716 pkg_failed=no
28717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for onigmo" >&5
28718 printf %s "checking for onigmo... " >&6; }
28719
28720 if test -n "$ONIGMO_CFLAGS"; then
28721 pkg_cv_ONIGMO_CFLAGS="$ONIGMO_CFLAGS"
28722 elif test -n "$PKG_CONFIG"; then
28723 if test -n "$PKG_CONFIG" && \
28724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"onigmo\""; } >&5
28725 ($PKG_CONFIG --exists --print-errors "onigmo") 2>&5
28726 ac_status=$?
28727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28728 test $ac_status = 0; }; then
28729 pkg_cv_ONIGMO_CFLAGS=`$PKG_CONFIG --cflags "onigmo" 2>/dev/null`
28730 test "x$?" != "x0" && pkg_failed=yes
28731 else
28732 pkg_failed=yes
28733 fi
28734 else
28735 pkg_failed=untried
28736 fi
28737 if test -n "$ONIGMO_LIBS"; then
28738 pkg_cv_ONIGMO_LIBS="$ONIGMO_LIBS"
28739 elif test -n "$PKG_CONFIG"; then
28740 if test -n "$PKG_CONFIG" && \
28741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"onigmo\""; } >&5
28742 ($PKG_CONFIG --exists --print-errors "onigmo") 2>&5
28743 ac_status=$?
28744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28745 test $ac_status = 0; }; then
28746 pkg_cv_ONIGMO_LIBS=`$PKG_CONFIG --libs "onigmo" 2>/dev/null`
28747 test "x$?" != "x0" && pkg_failed=yes
28748 else
28749 pkg_failed=yes
28750 fi
28751 else
28752 pkg_failed=untried
28753 fi
28754
28755
28756
28757 if test $pkg_failed = yes; then
28758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28759 printf "%s\n" "no" >&6; }
28760
28761 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28762 _pkg_short_errors_supported=yes
28763 else
28764 _pkg_short_errors_supported=no
28765 fi
28766 if test $_pkg_short_errors_supported = yes; then
28767 ONIGMO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "onigmo" 2>&1`
28768 else
28769 ONIGMO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "onigmo" 2>&1`
28770 fi
28771 # Put the nasty error message in config.log where it belongs
28772 echo "$ONIGMO_PKG_ERRORS" >&5
28773
28774 have_onigmo=no
28775 elif test $pkg_failed = untried; then
28776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28777 printf "%s\n" "no" >&6; }
28778 have_onigmo=no
28779 else
28780 ONIGMO_CFLAGS=$pkg_cv_ONIGMO_CFLAGS
28781 ONIGMO_LIBS=$pkg_cv_ONIGMO_LIBS
28782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28783 printf "%s\n" "yes" >&6; }
28784 have_onigmo=yes
28785 fi
28786
28787 fi
28788 if test "x$with_onigmo" = "xsystem" -a "$have_onigmo" = "no"; then
28789 as_fn_error $? "\"No Onigmo found\"" "$LINENO" 5
28790 fi
28791 if test "x$with_onigmo" = "xbundled" -o "$have_onigmo" = "no"; then
28792
28793
28794 subdirs="$subdirs vendor/onigmo"
28795
28796 ONIGMO_CFLAGS="-I\$(top_srcdir)/vendor/onigmo-source"
28797 ONIGMO_LIBS="\$(top_builddir)/vendor/onigmo-source/libonigmo.la"
28798 fi
28799
28800 printf "%s\n" "#define GRN_WITH_ONIGMO 1" >>confdefs.h
28801
28802 else
28803 GRN_WITH_ONIGMO="no"
28804 fi
28805
28806
28807
28808 if test "$with_onigmo" != "no" -a "x$have_onigmo" != "xyes"; then
28809 WITH_BUNDLED_ONIGMO_TRUE=
28810 WITH_BUNDLED_ONIGMO_FALSE='#'
28811 else
28812 WITH_BUNDLED_ONIGMO_TRUE='#'
28813 WITH_BUNDLED_ONIGMO_FALSE=
28814 fi
28815
28816
28817 # For package
28818
28819 # Check whether --with-rsync-path was given.
28820 if test ${with_rsync_path+y}
28821 then :
28822 withval=$with_rsync_path; RSYNC_PATH="$withval"
28823 else $as_nop
28824 RSYNC_PATH="[email protected]:public"
28825 fi
28826
28827
28828
28829
28830 # Check whether --with-launchpad-ppa was given.
28831 if test ${with_launchpad_ppa+y}
28832 then :
28833 withval=$with_launchpad_ppa; LAUNCHPAD_PPA="$withval"
28834 else $as_nop
28835 LAUNCHPAD_PPA="groonga-ppa"
28836 fi
28837
28838
28839
28840
28841 # Check whether --with-launchpad-uploader-pgp-key was given.
28842 if test ${with_launchpad_uploader_pgp_key+y}
28843 then :
28844 withval=$with_launchpad_uploader_pgp_key; LAUNCHPAD_UPLOADER_PGP_KEY="$withval"
28845 else $as_nop
28846 LAUNCHPAD_UPLOADER_PGP_KEY=""
28847 fi
28848
28849
28850
28851 pkgsysconfdir="\${sysconfdir}/$PACKAGE_NAME"
28852
28853
28854 GRN_CONFIG_PATH="`
28855 test \"$prefix\" = NONE && prefix=/usr/local
28856 eval echo ${sysconfdir}/groonga/groonga.conf
28857 `"
28858
28859 printf "%s\n" "#define GRN_CONFIG_PATH \"$GRN_CONFIG_PATH\"" >>confdefs.h
28860
28861
28862 ac_config_files="$ac_config_files Makefile benchmark/Makefile benchmark/fixtures/Makefile benchmark/fixtures/geo-select/Makefile benchmark/lib/Makefile build/Makefile build/cmake_modules/Makefile config.sh cmake/Makefile data/Makefile data/html/Makefile data/logrotate.d/Makefile data/logrotate.d/rhel/Makefile data/munin/Makefile data/systemd/Makefile data/systemd/rhel/Makefile data/systemd/rhel/sysconfig/Makefile data/tmpfiles.d/Makefile doc/Makefile doc/locale/Makefile doc/locale/en/LC_MESSAGES/Makefile doc/locale/en/Makefile doc/locale/ja/LC_MESSAGES/Makefile doc/locale/ja/Makefile examples/Makefile examples/dictionary/Makefile examples/dictionary/edict/Makefile examples/dictionary/gene95/Makefile examples/dictionary/jmdict/Makefile groonga-arrow.pc groonga.pc include/Makefile include/groonga/Makefile include/groonga/build_option.h include/groonga/version.h lib/Makefile lib/dat/Makefile lib/metadata.rc lib/mrb/Makefile lib/mrb/scripts/Makefile lib/mrb/scripts/command_line/Makefile lib/mrb/scripts/context/Makefile lib/mrb/scripts/expression_rewriters/Makefile lib/mrb/scripts/expression_tree/Makefile lib/mrb/scripts/initialize/Makefile lib/mrb/scripts/logger/Makefile lib/mrb/scripts/query_logger/Makefile lib/proc/Makefile packages/Makefile plugins/Makefile plugins/functions/Makefile plugins/language_model/Makefile plugins/query_expanders/Makefile plugins/ruby/Makefile plugins/sharding/Makefile plugins/suggest/Makefile plugins/token_filters/Makefile plugins/tokenizers/Makefile src/Makefile src/suggest/Makefile test/Makefile test/command/Makefile tools/Makefile vendor/Makefile vendor/groonga-log/Makefile vendor/lz4/Makefile vendor/mecab/Makefile vendor/mruby/Makefile vendor/onigmo/Makefile"
28863
28864
28865 cat >confcache <<\_ACEOF
28866 # This file is a shell script that caches the results of configure
28867 # tests run on this system so they can be shared between configure
28868 # scripts and configure runs, see configure's option --config-cache.
28869 # It is not useful on other systems. If it contains results you don't
28870 # want to keep, you may remove or edit it.
28871 #
28872 # config.status only pays attention to the cache file if you give it
28873 # the --recheck option to rerun configure.
28874 #
28875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28877 # following values.
28878
28879 _ACEOF
28880
28881 # The following way of writing the cache mishandles newlines in values,
28882 # but we know of no workaround that is simple, portable, and efficient.
28883 # So, we kill variables containing newlines.
28884 # Ultrix sh set writes to stderr and can't be redirected directly,
28885 # and sets the high bit in the cache file unless we assign to the vars.
28886 (
28887 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28888 eval ac_val=\$$ac_var
28889 case $ac_val in #(
28890 *${as_nl}*)
28891 case $ac_var in #(
28892 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28893 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28894 esac
28895 case $ac_var in #(
28896 _ | IFS | as_nl) ;; #(
28897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28898 *) { eval $ac_var=; unset $ac_var;} ;;
28899 esac ;;
28900 esac
28901 done
28902
28903 (set) 2>&1 |
28904 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28905 *${as_nl}ac_space=\ *)
28906 # `set' does not quote correctly, so add quotes: double-quote
28907 # substitution turns \\\\ into \\, and sed turns \\ into \.
28908 sed -n \
28909 "s/'/'\\\\''/g;
28910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28911 ;; #(
28912 *)
28913 # `set' quotes correctly as required by POSIX, so do not add quotes.
28914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28915 ;;
28916 esac |
28917 sort
28918 ) |
28919 sed '
28920 /^ac_cv_env_/b end
28921 t clear
28922 :clear
28923 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
28924 t end
28925 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28926 :end' >>confcache
28927 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28928 if test -w "$cache_file"; then
28929 if test "x$cache_file" != "x/dev/null"; then
28930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28931 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
28932 if test ! -f "$cache_file" || test -h "$cache_file"; then
28933 cat confcache >"$cache_file"
28934 else
28935 case $cache_file in #(
28936 */* | ?:*)
28937 mv -f confcache "$cache_file"$$ &&
28938 mv -f "$cache_file"$$ "$cache_file" ;; #(
28939 *)
28940 mv -f confcache "$cache_file" ;;
28941 esac
28942 fi
28943 fi
28944 else
28945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28946 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
28947 fi
28948 fi
28949 rm -f confcache
28950
28951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28952 # Let make expand exec_prefix.
28953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28954
28955 DEFS=-DHAVE_CONFIG_H
28956
28957 ac_libobjs=
28958 ac_ltlibobjs=
28959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28960 # 1. Remove the extension, and $U if already installed.
28961 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28962 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
28963 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28964 # will be set to the directory where LIBOBJS objects are built.
28965 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28966 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28967 done
28968 LIBOBJS=$ac_libobjs
28969
28970 LTLIBOBJS=$ac_ltlibobjs
28971
28972
28973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28974 printf %s "checking that generated files are newer than configure... " >&6; }
28975 if test -n "$am_sleep_pid"; then
28976 # Hide warnings about reused PIDs.
28977 wait $am_sleep_pid 2>/dev/null
28978 fi
28979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
28980 printf "%s\n" "done" >&6; }
28981 if test -n "$EXEEXT"; then
28982 am__EXEEXT_TRUE=
28983 am__EXEEXT_FALSE='#'
28984 else
28985 am__EXEEXT_TRUE='#'
28986 am__EXEEXT_FALSE=
28987 fi
28988
28989 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
28990 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
28991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28992 fi
28993 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
28994 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
28995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28996 fi
28997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28998 as_fn_error $? "conditional \"AMDEP\" was never defined.
28999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29000 fi
29001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29002 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29004 fi
29005
29006 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29007 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
29008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29009 fi
29010 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29011 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29013 fi
29014 if test -z "${WITH_BENCHMARK_TRUE}" && test -z "${WITH_BENCHMARK_FALSE}"; then
29015 as_fn_error $? "conditional \"WITH_BENCHMARK\" was never defined.
29016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29017 fi
29018 if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
29019 as_fn_error $? "conditional \"WITH_RUBY\" was never defined.
29020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29021 fi
29022 if test -z "${WITH_COMMAND_TEST_TRUE}" && test -z "${WITH_COMMAND_TEST_FALSE}"; then
29023 as_fn_error $? "conditional \"WITH_COMMAND_TEST\" was never defined.
29024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29025 fi
29026 if test -z "${WITH_LEMON_TRUE}" && test -z "${WITH_LEMON_FALSE}"; then
29027 as_fn_error $? "conditional \"WITH_LEMON\" was never defined.
29028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29029 fi
29030 if test -z "${GRN_WITH_APACHE_ARROW_TRUE}" && test -z "${GRN_WITH_APACHE_ARROW_FALSE}"; then
29031 as_fn_error $? "conditional \"GRN_WITH_APACHE_ARROW\" was never defined.
29032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29033 fi
29034 if test -z "${WITH_MECAB_TRUE}" && test -z "${WITH_MECAB_FALSE}"; then
29035 as_fn_error $? "conditional \"WITH_MECAB\" was never defined.
29036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29037 fi
29038 if test -z "${WITH_KYTEA_TRUE}" && test -z "${WITH_KYTEA_FALSE}"; then
29039 as_fn_error $? "conditional \"WITH_KYTEA\" was never defined.
29040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29041 fi
29042 if test -z "${WITH_LIBSTEMMER_TRUE}" && test -z "${WITH_LIBSTEMMER_FALSE}"; then
29043 as_fn_error $? "conditional \"WITH_LIBSTEMMER\" was never defined.
29044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29045 fi
29046 if test -z "${ENABLE_SUGGEST_LEARNER_TRUE}" && test -z "${ENABLE_SUGGEST_LEARNER_FALSE}"; then
29047 as_fn_error $? "conditional \"ENABLE_SUGGEST_LEARNER\" was never defined.
29048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29049 fi
29050 if test -z "${DOCUMENT_AVAILABLE_TRUE}" && test -z "${DOCUMENT_AVAILABLE_FALSE}"; then
29051 as_fn_error $? "conditional \"DOCUMENT_AVAILABLE\" was never defined.
29052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29053 fi
29054 if test -z "${DOCUMENT_BUILDABLE_TRUE}" && test -z "${DOCUMENT_BUILDABLE_FALSE}"; then
29055 as_fn_error $? "conditional \"DOCUMENT_BUILDABLE\" was never defined.
29056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29057 fi
29058 if test -z "${HAVE_BUILT_DOCUMENT_TRUE}" && test -z "${HAVE_BUILT_DOCUMENT_FALSE}"; then
29059 as_fn_error $? "conditional \"HAVE_BUILT_DOCUMENT\" was never defined.
29060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29061 fi
29062 if test -z "${INSTALL_MUNIN_PLUGINS_TRUE}" && test -z "${INSTALL_MUNIN_PLUGINS_FALSE}"; then
29063 as_fn_error $? "conditional \"INSTALL_MUNIN_PLUGINS\" was never defined.
29064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29065 fi
29066 if test -z "${RHEL_PLATFORM_TRUE}" && test -z "${RHEL_PLATFORM_FALSE}"; then
29067 as_fn_error $? "conditional \"RHEL_PLATFORM\" was never defined.
29068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29069 fi
29070 if test -z "${WITH_MRUBY_TRUE}" && test -z "${WITH_MRUBY_FALSE}"; then
29071 as_fn_error $? "conditional \"WITH_MRUBY\" was never defined.
29072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29073 fi
29074 if test -z "${HAVE_SYS_SYSMACROS_H_TRUE}" && test -z "${HAVE_SYS_SYSMACROS_H_FALSE}"; then
29075 as_fn_error $? "conditional \"HAVE_SYS_SYSMACROS_H\" was never defined.
29076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29077 fi
29078 if test -z "${WITH_SHARED_ONIGMO_TRUE}" && test -z "${WITH_SHARED_ONIGMO_FALSE}"; then
29079 as_fn_error $? "conditional \"WITH_SHARED_ONIGMO\" was never defined.
29080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29081 fi
29082 if test -z "${WITH_BUNDLED_ONIGMO_TRUE}" && test -z "${WITH_BUNDLED_ONIGMO_FALSE}"; then
29083 as_fn_error $? "conditional \"WITH_BUNDLED_ONIGMO\" was never defined.
29084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29085 fi
29086
29087 : "${CONFIG_STATUS=./config.status}"
29088 ac_write_fail=0
29089 ac_clean_files_save=$ac_clean_files
29090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29092 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
29093 as_write_fail=0
29094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29095 #! $SHELL
29096 # Generated by $as_me.
29097 # Run this file to recreate the current configuration.
29098 # Compiler output produced by configure, useful for debugging
29099 # configure, is in config.log if it exists.
29100
29101 debug=false
29102 ac_cs_recheck=false
29103 ac_cs_silent=false
29104
29105 SHELL=\${CONFIG_SHELL-$SHELL}
29106 export SHELL
29107 _ASEOF
29108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29109 ## -------------------- ##
29110 ## M4sh Initialization. ##
29111 ## -------------------- ##
29112
29113 # Be more Bourne compatible
29114 DUALCASE=1; export DUALCASE # for MKS sh
29115 as_nop=:
29116 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
29117 then :
29118 emulate sh
29119 NULLCMD=:
29120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29121 # is contrary to our usage. Disable this feature.
29122 alias -g '${1+"$@"}'='"$@"'
29123 setopt NO_GLOB_SUBST
29124 else $as_nop
29125 case `(set -o) 2>/dev/null` in #(
29126 *posix*) :
29127 set -o posix ;; #(
29128 *) :
29129 ;;
29130 esac
29131 fi
29132
29133
29134
29135 # Reset variables that may have inherited troublesome values from
29136 # the environment.
29137
29138 # IFS needs to be set, to space, tab, and newline, in precisely that order.
29139 # (If _AS_PATH_WALK were called with IFS unset, it would have the
29140 # side effect of setting IFS to empty, thus disabling word splitting.)
29141 # Quoting is to prevent editors from complaining about space-tab.
29142 as_nl='
29143 '
29144 export as_nl
29145 IFS=" "" $as_nl"
29146
29147 PS1='$ '
29148 PS2='> '
29149 PS4='+ '
29150
29151 # Ensure predictable behavior from utilities with locale-dependent output.
29152 LC_ALL=C
29153 export LC_ALL
29154 LANGUAGE=C
29155 export LANGUAGE
29156
29157 # We cannot yet rely on "unset" to work, but we need these variables
29158 # to be unset--not just set to an empty or harmless value--now, to
29159 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
29160 # also avoids known problems related to "unset" and subshell syntax
29161 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
29162 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
29163 do eval test \${$as_var+y} \
29164 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29165 done
29166
29167 # Ensure that fds 0, 1, and 2 are open.
29168 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
29169 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
29170 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
29171
29172 # The user is always right.
29173 if ${PATH_SEPARATOR+false} :; then
29174 PATH_SEPARATOR=:
29175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29177 PATH_SEPARATOR=';'
29178 }
29179 fi
29180
29181
29182 # Find who we are. Look in the path if we contain no directory separator.
29183 as_myself=
29184 case $0 in #((
29185 *[\\/]* ) as_myself=$0 ;;
29186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29187 for as_dir in $PATH
29188 do
29189 IFS=$as_save_IFS
29190 case $as_dir in #(((
29191 '') as_dir=./ ;;
29192 */) ;;
29193 *) as_dir=$as_dir/ ;;
29194 esac
29195 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
29196 done
29197 IFS=$as_save_IFS
29198
29199 ;;
29200 esac
29201 # We did not find ourselves, most probably we were run as `sh COMMAND'
29202 # in which case we are not to be found in the path.
29203 if test "x$as_myself" = x; then
29204 as_myself=$0
29205 fi
29206 if test ! -f "$as_myself"; then
29207 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29208 exit 1
29209 fi
29210
29211
29212
29213 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29214 # ----------------------------------------
29215 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29216 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29217 # script with STATUS, using 1 if that was 0.
29218 as_fn_error ()
29219 {
29220 as_status=$1; test $as_status -eq 0 && as_status=1
29221 if test "$4"; then
29222 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29224 fi
29225 printf "%s\n" "$as_me: error: $2" >&2
29226 as_fn_exit $as_status
29227 } # as_fn_error
29228
29229
29230
29231 # as_fn_set_status STATUS
29232 # -----------------------
29233 # Set $? to STATUS, without forking.
29234 as_fn_set_status ()
29235 {
29236 return $1
29237 } # as_fn_set_status
29238
29239 # as_fn_exit STATUS
29240 # -----------------
29241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29242 as_fn_exit ()
29243 {
29244 set +e
29245 as_fn_set_status $1
29246 exit $1
29247 } # as_fn_exit
29248
29249 # as_fn_unset VAR
29250 # ---------------
29251 # Portably unset VAR.
29252 as_fn_unset ()
29253 {
29254 { eval $1=; unset $1;}
29255 }
29256 as_unset=as_fn_unset
29257
29258 # as_fn_append VAR VALUE
29259 # ----------------------
29260 # Append the text in VALUE to the end of the definition contained in VAR. Take
29261 # advantage of any shell optimizations that allow amortized linear growth over
29262 # repeated appends, instead of the typical quadratic growth present in naive
29263 # implementations.
29264 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
29265 then :
29266 eval 'as_fn_append ()
29267 {
29268 eval $1+=\$2
29269 }'
29270 else $as_nop
29271 as_fn_append ()
29272 {
29273 eval $1=\$$1\$2
29274 }
29275 fi # as_fn_append
29276
29277 # as_fn_arith ARG...
29278 # ------------------
29279 # Perform arithmetic evaluation on the ARGs, and store the result in the
29280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29281 # must be portable across $(()) and expr.
29282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
29283 then :
29284 eval 'as_fn_arith ()
29285 {
29286 as_val=$(( $* ))
29287 }'
29288 else $as_nop
29289 as_fn_arith ()
29290 {
29291 as_val=`expr "$@" || test $? -eq 1`
29292 }
29293 fi # as_fn_arith
29294
29295
29296 if expr a : '\(a\)' >/dev/null 2>&1 &&
29297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29298 as_expr=expr
29299 else
29300 as_expr=false
29301 fi
29302
29303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29304 as_basename=basename
29305 else
29306 as_basename=false
29307 fi
29308
29309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29310 as_dirname=dirname
29311 else
29312 as_dirname=false
29313 fi
29314
29315 as_me=`$as_basename -- "$0" ||
29316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29317 X"$0" : 'X\(//\)$' \| \
29318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29319 printf "%s\n" X/"$0" |
29320 sed '/^.*\/\([^/][^/]*\)\/*$/{
29321 s//\1/
29322 q
29323 }
29324 /^X\/\(\/\/\)$/{
29325 s//\1/
29326 q
29327 }
29328 /^X\/\(\/\).*/{
29329 s//\1/
29330 q
29331 }
29332 s/.*/./; q'`
29333
29334 # Avoid depending upon Character Ranges.
29335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29338 as_cr_digits='0123456789'
29339 as_cr_alnum=$as_cr_Letters$as_cr_digits
29340
29341
29342 # Determine whether it's possible to make 'echo' print without a newline.
29343 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
29344 # for compatibility with existing Makefiles.
29345 ECHO_C= ECHO_N= ECHO_T=
29346 case `echo -n x` in #(((((
29347 -n*)
29348 case `echo 'xy\c'` in
29349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29350 xy) ECHO_C='\c';;
29351 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29352 ECHO_T=' ';;
29353 esac;;
29354 *)
29355 ECHO_N='-n';;
29356 esac
29357
29358 # For backward compatibility with old third-party macros, we provide
29359 # the shell variables $as_echo and $as_echo_n. New code should use
29360 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
29361 as_echo='printf %s\n'
29362 as_echo_n='printf %s'
29363
29364 rm -f conf$$ conf$$.exe conf$$.file
29365 if test -d conf$$.dir; then
29366 rm -f conf$$.dir/conf$$.file
29367 else
29368 rm -f conf$$.dir
29369 mkdir conf$$.dir 2>/dev/null
29370 fi
29371 if (echo >conf$$.file) 2>/dev/null; then
29372 if ln -s conf$$.file conf$$ 2>/dev/null; then
29373 as_ln_s='ln -s'
29374 # ... but there are two gotchas:
29375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29377 # In both cases, we have to default to `cp -pR'.
29378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29379 as_ln_s='cp -pR'
29380 elif ln conf$$.file conf$$ 2>/dev/null; then
29381 as_ln_s=ln
29382 else
29383 as_ln_s='cp -pR'
29384 fi
29385 else
29386 as_ln_s='cp -pR'
29387 fi
29388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29389 rmdir conf$$.dir 2>/dev/null
29390
29391
29392 # as_fn_mkdir_p
29393 # -------------
29394 # Create "$as_dir" as a directory, including parents if necessary.
29395 as_fn_mkdir_p ()
29396 {
29397
29398 case $as_dir in #(
29399 -*) as_dir=./$as_dir;;
29400 esac
29401 test -d "$as_dir" || eval $as_mkdir_p || {
29402 as_dirs=
29403 while :; do
29404 case $as_dir in #(
29405 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29406 *) as_qdir=$as_dir;;
29407 esac
29408 as_dirs="'$as_qdir' $as_dirs"
29409 as_dir=`$as_dirname -- "$as_dir" ||
29410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29411 X"$as_dir" : 'X\(//\)[^/]' \| \
29412 X"$as_dir" : 'X\(//\)$' \| \
29413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29414 printf "%s\n" X"$as_dir" |
29415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29416 s//\1/
29417 q
29418 }
29419 /^X\(\/\/\)[^/].*/{
29420 s//\1/
29421 q
29422 }
29423 /^X\(\/\/\)$/{
29424 s//\1/
29425 q
29426 }
29427 /^X\(\/\).*/{
29428 s//\1/
29429 q
29430 }
29431 s/.*/./; q'`
29432 test -d "$as_dir" && break
29433 done
29434 test -z "$as_dirs" || eval "mkdir $as_dirs"
29435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29436
29437
29438 } # as_fn_mkdir_p
29439 if mkdir -p . 2>/dev/null; then
29440 as_mkdir_p='mkdir -p "$as_dir"'
29441 else
29442 test -d ./-p && rmdir ./-p
29443 as_mkdir_p=false
29444 fi
29445
29446
29447 # as_fn_executable_p FILE
29448 # -----------------------
29449 # Test if FILE is an executable regular file.
29450 as_fn_executable_p ()
29451 {
29452 test -f "$1" && test -x "$1"
29453 } # as_fn_executable_p
29454 as_test_x='test -x'
29455 as_executable_p=as_fn_executable_p
29456
29457 # Sed expression to map a string onto a valid CPP name.
29458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29459
29460 # Sed expression to map a string onto a valid variable name.
29461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29462
29463
29464 exec 6>&1
29465 ## ----------------------------------- ##
29466 ## Main body of $CONFIG_STATUS script. ##
29467 ## ----------------------------------- ##
29468 _ASEOF
29469 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29470
29471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29472 # Save the log message, to keep $0 and so on meaningful, and to
29473 # report actual input values of CONFIG_FILES etc. instead of their
29474 # values after options handling.
29475 ac_log="
29476 This file was extended by groonga $as_me 16.0.5, which was
29477 generated by GNU Autoconf 2.71. Invocation command line was
29478
29479 CONFIG_FILES = $CONFIG_FILES
29480 CONFIG_HEADERS = $CONFIG_HEADERS
29481 CONFIG_LINKS = $CONFIG_LINKS
29482 CONFIG_COMMANDS = $CONFIG_COMMANDS
29483 $ $0 $@
29484
29485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29486 "
29487
29488 _ACEOF
29489
29490 case $ac_config_files in *"
29491 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29492 esac
29493
29494 case $ac_config_headers in *"
29495 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29496 esac
29497
29498
29499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29500 # Files that config.status was made for.
29501 config_files="$ac_config_files"
29502 config_headers="$ac_config_headers"
29503 config_commands="$ac_config_commands"
29504
29505 _ACEOF
29506
29507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29508 ac_cs_usage="\
29509 \`$as_me' instantiates files and other configuration actions
29510 from templates according to the current configuration. Unless the files
29511 and actions are specified as TAGs, all are instantiated by default.
29512
29513 Usage: $0 [OPTION]... [TAG]...
29514
29515 -h, --help print this help, then exit
29516 -V, --version print version number and configuration settings, then exit
29517 --config print configuration, then exit
29518 -q, --quiet, --silent
29519 do not print progress messages
29520 -d, --debug don't remove temporary files
29521 --recheck update $as_me by reconfiguring in the same conditions
29522 --file=FILE[:TEMPLATE]
29523 instantiate the configuration file FILE
29524 --header=FILE[:TEMPLATE]
29525 instantiate the configuration header FILE
29526
29527 Configuration files:
29528 $config_files
29529
29530 Configuration headers:
29531 $config_headers
29532
29533 Configuration commands:
29534 $config_commands
29535
29536 Report bugs to <[email protected]>."
29537
29538 _ACEOF
29539 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
29540 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
29541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29542 ac_cs_config='$ac_cs_config_escaped'
29543 ac_cs_version="\\
29544 groonga config.status 16.0.5
29545 configured by $0, generated by GNU Autoconf 2.71,
29546 with options \\"\$ac_cs_config\\"
29547
29548 Copyright (C) 2021 Free Software Foundation, Inc.
29549 This config.status script is free software; the Free Software Foundation
29550 gives unlimited permission to copy, distribute and modify it."
29551
29552 ac_pwd='$ac_pwd'
29553 srcdir='$srcdir'
29554 INSTALL='$INSTALL'
29555 MKDIR_P='$MKDIR_P'
29556 AWK='$AWK'
29557 test -n "\$AWK" || AWK=awk
29558 _ACEOF
29559
29560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29561 # The default lists apply if the user does not specify any file.
29562 ac_need_defaults=:
29563 while test $# != 0
29564 do
29565 case $1 in
29566 --*=?*)
29567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29569 ac_shift=:
29570 ;;
29571 --*=)
29572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29573 ac_optarg=
29574 ac_shift=:
29575 ;;
29576 *)
29577 ac_option=$1
29578 ac_optarg=$2
29579 ac_shift=shift
29580 ;;
29581 esac
29582
29583 case $ac_option in
29584 # Handling of the options.
29585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29586 ac_cs_recheck=: ;;
29587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29588 printf "%s\n" "$ac_cs_version"; exit ;;
29589 --config | --confi | --conf | --con | --co | --c )
29590 printf "%s\n" "$ac_cs_config"; exit ;;
29591 --debug | --debu | --deb | --de | --d | -d )
29592 debug=: ;;
29593 --file | --fil | --fi | --f )
29594 $ac_shift
29595 case $ac_optarg in
29596 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29597 '') as_fn_error $? "missing file argument" ;;
29598 esac
29599 as_fn_append CONFIG_FILES " '$ac_optarg'"
29600 ac_need_defaults=false;;
29601 --header | --heade | --head | --hea )
29602 $ac_shift
29603 case $ac_optarg in
29604 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29605 esac
29606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29607 ac_need_defaults=false;;
29608 --he | --h)
29609 # Conflict between --help and --header
29610 as_fn_error $? "ambiguous option: \`$1'
29611 Try \`$0 --help' for more information.";;
29612 --help | --hel | -h )
29613 printf "%s\n" "$ac_cs_usage"; exit ;;
29614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29616 ac_cs_silent=: ;;
29617
29618 # This is an error.
29619 -*) as_fn_error $? "unrecognized option: \`$1'
29620 Try \`$0 --help' for more information." ;;
29621
29622 *) as_fn_append ac_config_targets " $1"
29623 ac_need_defaults=false ;;
29624
29625 esac
29626 shift
29627 done
29628
29629 ac_configure_extra_args=
29630
29631 if $ac_cs_silent; then
29632 exec 6>/dev/null
29633 ac_configure_extra_args="$ac_configure_extra_args --silent"
29634 fi
29635
29636 _ACEOF
29637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29638 if \$ac_cs_recheck; then
29639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29640 shift
29641 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
29642 CONFIG_SHELL='$SHELL'
29643 export CONFIG_SHELL
29644 exec "\$@"
29645 fi
29646
29647 _ACEOF
29648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29649 exec 5>>config.log
29650 {
29651 echo
29652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29653 ## Running $as_me. ##
29654 _ASBOX
29655 printf "%s\n" "$ac_log"
29656 } >&5
29657
29658 _ACEOF
29659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29660 #
29661 # INIT-COMMANDS
29662 #
29663 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
29664
29665
29666 # The HP-UX ksh and POSIX shell print the target directory to stdout
29667 # if CDPATH is set.
29668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29669
29670 sed_quote_subst='$sed_quote_subst'
29671 double_quote_subst='$double_quote_subst'
29672 delay_variable_subst='$delay_variable_subst'
29673 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29674 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29675 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29676 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29677 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29678 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29679 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29680 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29681 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29682 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29683 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29684 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29685 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29686 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29687 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29688 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29689 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29690 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29691 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29692 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29693 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29694 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29695 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29696 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29698 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29699 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29700 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29701 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29702 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29703 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29704 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29705 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29706 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29707 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29708 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29709 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29710 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
29711 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29712 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29713 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29714 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29715 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29716 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29717 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
29718 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29719 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29732 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29733 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29734 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"`'
29735 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29736 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29737 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29738 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29739 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29740 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29741 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29742 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29743 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29744 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29745 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29746 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29747 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29748 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29749 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29750 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29751 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29752 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29753 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29754 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29755 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29756 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29757 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29758 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29759 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29760 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29761 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29762 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29763 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29764 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29765 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29766 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29767 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29768 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29769 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29770 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29771 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29772 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29773 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29774 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29775 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29776 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29777 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29778 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29779 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29780 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29781 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29782 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29783 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29784 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29785 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29786 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29787 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29788 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29789 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29790 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29791 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29792 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29793 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29794 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29795 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29796 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29797 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29798 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29799 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29800 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29801 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29802 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29803 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29804 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29805 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29806 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29807 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29808 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29809 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29810 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29811 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29812 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29813 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29814 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29815 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29816 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29817 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
29818 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
29819 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
29820 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
29821 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29822 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
29823 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29824 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
29825 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
29826 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
29827 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
29828 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
29829 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
29830 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
29831 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
29832 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
29833 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
29834 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
29835 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
29836 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
29837 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
29838 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
29839 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
29840 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
29841 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
29842 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
29843 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29844 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
29845 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29846 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
29847 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
29848 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
29849 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29850 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
29851 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29852 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
29853 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29854 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
29855 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29856 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
29857 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29858 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
29859 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29860 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
29861 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
29862 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
29863 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29864 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
29865 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29866 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
29867 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29868 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
29869 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
29870 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
29871 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
29872 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
29873 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
29874 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
29875 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
29876 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
29877 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
29878 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
29879 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
29880 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
29881 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
29882 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
29883 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
29884 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
29885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
29886 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
29887 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29888 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
29889 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29890 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
29891 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29892 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
29893 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29894 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
29895 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29896 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
29897 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
29898 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
29899 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
29900 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
29901 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
29902 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
29903 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29904 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
29905 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29906 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
29907 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
29908 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
29909 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
29910 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
29911 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
29912 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
29913
29914 LTCC='$LTCC'
29915 LTCFLAGS='$LTCFLAGS'
29916 compiler='$compiler_DEFAULT'
29917
29918 # A function that is used when there is no print builtin or printf.
29919 func_fallback_echo ()
29920 {
29921 eval 'cat <<_LTECHO_EOF
29922 \$1
29923 _LTECHO_EOF'
29924 }
29925
29926 # Quote evaled strings.
29927 for var in AS \
29928 DLLTOOL \
29929 OBJDUMP \
29930 SHELL \
29931 ECHO \
29932 PATH_SEPARATOR \
29933 SED \
29934 GREP \
29935 EGREP \
29936 FGREP \
29937 LD \
29938 NM \
29939 LN_S \
29940 lt_SP2NL \
29941 lt_NL2SP \
29942 reload_flag \
29943 FILECMD \
29944 deplibs_check_method \
29945 file_magic_cmd \
29946 file_magic_glob \
29947 want_nocaseglob \
29948 sharedlib_from_linklib_cmd \
29949 AR \
29950 archiver_list_spec \
29951 STRIP \
29952 RANLIB \
29953 CC \
29954 CFLAGS \
29955 compiler \
29956 lt_cv_sys_global_symbol_pipe \
29957 lt_cv_sys_global_symbol_to_cdecl \
29958 lt_cv_sys_global_symbol_to_import \
29959 lt_cv_sys_global_symbol_to_c_name_address \
29960 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29961 lt_cv_nm_interface \
29962 nm_file_list_spec \
29963 lt_cv_truncate_bin \
29964 lt_prog_compiler_no_builtin_flag \
29965 lt_prog_compiler_pic \
29966 lt_prog_compiler_wl \
29967 lt_prog_compiler_static \
29968 lt_cv_prog_compiler_c_o \
29969 need_locks \
29970 MANIFEST_TOOL \
29971 DSYMUTIL \
29972 NMEDIT \
29973 LIPO \
29974 OTOOL \
29975 OTOOL64 \
29976 shrext_cmds \
29977 export_dynamic_flag_spec \
29978 whole_archive_flag_spec \
29979 compiler_needs_object \
29980 with_gnu_ld \
29981 allow_undefined_flag \
29982 no_undefined_flag \
29983 hardcode_libdir_flag_spec \
29984 hardcode_libdir_separator \
29985 exclude_expsyms \
29986 include_expsyms \
29987 file_list_spec \
29988 variables_saved_for_relink \
29989 libname_spec \
29990 library_names_spec \
29991 soname_spec \
29992 install_override_mode \
29993 finish_eval \
29994 old_striplib \
29995 striplib \
29996 compiler_lib_search_dirs \
29997 predep_objects \
29998 postdep_objects \
29999 predeps \
30000 postdeps \
30001 compiler_lib_search_path \
30002 LD_CXX \
30003 LD_RC \
30004 reload_flag_CXX \
30005 reload_flag_RC \
30006 compiler_CXX \
30007 compiler_RC \
30008 lt_prog_compiler_no_builtin_flag_CXX \
30009 lt_prog_compiler_no_builtin_flag_RC \
30010 lt_prog_compiler_pic_CXX \
30011 lt_prog_compiler_pic_RC \
30012 lt_prog_compiler_wl_CXX \
30013 lt_prog_compiler_wl_RC \
30014 lt_prog_compiler_static_CXX \
30015 lt_prog_compiler_static_RC \
30016 lt_cv_prog_compiler_c_o_CXX \
30017 lt_cv_prog_compiler_c_o_RC \
30018 export_dynamic_flag_spec_CXX \
30019 export_dynamic_flag_spec_RC \
30020 whole_archive_flag_spec_CXX \
30021 whole_archive_flag_spec_RC \
30022 compiler_needs_object_CXX \
30023 compiler_needs_object_RC \
30024 with_gnu_ld_CXX \
30025 with_gnu_ld_RC \
30026 allow_undefined_flag_CXX \
30027 allow_undefined_flag_RC \
30028 no_undefined_flag_CXX \
30029 no_undefined_flag_RC \
30030 hardcode_libdir_flag_spec_CXX \
30031 hardcode_libdir_flag_spec_RC \
30032 hardcode_libdir_separator_CXX \
30033 hardcode_libdir_separator_RC \
30034 exclude_expsyms_CXX \
30035 exclude_expsyms_RC \
30036 include_expsyms_CXX \
30037 include_expsyms_RC \
30038 file_list_spec_CXX \
30039 file_list_spec_RC \
30040 compiler_lib_search_dirs_CXX \
30041 compiler_lib_search_dirs_RC \
30042 predep_objects_CXX \
30043 predep_objects_RC \
30044 postdep_objects_CXX \
30045 postdep_objects_RC \
30046 predeps_CXX \
30047 predeps_RC \
30048 postdeps_CXX \
30049 postdeps_RC \
30050 compiler_lib_search_path_CXX \
30051 compiler_lib_search_path_RC; do
30052 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30053 *[\\\\\\\`\\"\\\$]*)
30054 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30055 ;;
30056 *)
30057 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30058 ;;
30059 esac
30060 done
30061
30062 # Double-quote double-evaled strings.
30063 for var in reload_cmds \
30064 old_postinstall_cmds \
30065 old_postuninstall_cmds \
30066 old_archive_cmds \
30067 extract_expsyms_cmds \
30068 old_archive_from_new_cmds \
30069 old_archive_from_expsyms_cmds \
30070 archive_cmds \
30071 archive_expsym_cmds \
30072 module_cmds \
30073 module_expsym_cmds \
30074 export_symbols_cmds \
30075 prelink_cmds \
30076 postlink_cmds \
30077 postinstall_cmds \
30078 postuninstall_cmds \
30079 finish_cmds \
30080 sys_lib_search_path_spec \
30081 configure_time_dlsearch_path \
30082 configure_time_lt_sys_library_path \
30083 reload_cmds_CXX \
30084 reload_cmds_RC \
30085 old_archive_cmds_CXX \
30086 old_archive_cmds_RC \
30087 old_archive_from_new_cmds_CXX \
30088 old_archive_from_new_cmds_RC \
30089 old_archive_from_expsyms_cmds_CXX \
30090 old_archive_from_expsyms_cmds_RC \
30091 archive_cmds_CXX \
30092 archive_cmds_RC \
30093 archive_expsym_cmds_CXX \
30094 archive_expsym_cmds_RC \
30095 module_cmds_CXX \
30096 module_cmds_RC \
30097 module_expsym_cmds_CXX \
30098 module_expsym_cmds_RC \
30099 export_symbols_cmds_CXX \
30100 export_symbols_cmds_RC \
30101 prelink_cmds_CXX \
30102 prelink_cmds_RC \
30103 postlink_cmds_CXX \
30104 postlink_cmds_RC; do
30105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30106 *[\\\\\\\`\\"\\\$]*)
30107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30108 ;;
30109 *)
30110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30111 ;;
30112 esac
30113 done
30114
30115 ac_aux_dir='$ac_aux_dir'
30116
30117 # See if we are running on zsh, and set the options that allow our
30118 # commands through without removal of \ escapes INIT.
30119 if test -n "\${ZSH_VERSION+set}"; then
30120 setopt NO_GLOB_SUBST
30121 fi
30122
30123
30124 PACKAGE='$PACKAGE'
30125 VERSION='$VERSION'
30126 RM='$RM'
30127 ofile='$ofile'
30128
30129
30130
30131
30132
30133 ac_aux_dir='$ac_aux_dir'
30134
30135
30136
30137 _ACEOF
30138
30139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30140
30141 # Handling of arguments.
30142 for ac_config_target in $ac_config_targets
30143 do
30144 case $ac_config_target in
30145 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30146 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30147 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30149 "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;;
30150 "benchmark/fixtures/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/fixtures/Makefile" ;;
30151 "benchmark/fixtures/geo-select/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/fixtures/geo-select/Makefile" ;;
30152 "benchmark/lib/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/lib/Makefile" ;;
30153 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
30154 "build/cmake_modules/Makefile") CONFIG_FILES="$CONFIG_FILES build/cmake_modules/Makefile" ;;
30155 "config.sh") CONFIG_FILES="$CONFIG_FILES config.sh" ;;
30156 "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;;
30157 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
30158 "data/html/Makefile") CONFIG_FILES="$CONFIG_FILES data/html/Makefile" ;;
30159 "data/logrotate.d/Makefile") CONFIG_FILES="$CONFIG_FILES data/logrotate.d/Makefile" ;;
30160 "data/logrotate.d/rhel/Makefile") CONFIG_FILES="$CONFIG_FILES data/logrotate.d/rhel/Makefile" ;;
30161 "data/munin/Makefile") CONFIG_FILES="$CONFIG_FILES data/munin/Makefile" ;;
30162 "data/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES data/systemd/Makefile" ;;
30163 "data/systemd/rhel/Makefile") CONFIG_FILES="$CONFIG_FILES data/systemd/rhel/Makefile" ;;
30164 "data/systemd/rhel/sysconfig/Makefile") CONFIG_FILES="$CONFIG_FILES data/systemd/rhel/sysconfig/Makefile" ;;
30165 "data/tmpfiles.d/Makefile") CONFIG_FILES="$CONFIG_FILES data/tmpfiles.d/Makefile" ;;
30166 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30167 "doc/locale/Makefile") CONFIG_FILES="$CONFIG_FILES doc/locale/Makefile" ;;
30168 "doc/locale/en/LC_MESSAGES/Makefile") CONFIG_FILES="$CONFIG_FILES doc/locale/en/LC_MESSAGES/Makefile" ;;
30169 "doc/locale/en/Makefile") CONFIG_FILES="$CONFIG_FILES doc/locale/en/Makefile" ;;
30170 "doc/locale/ja/LC_MESSAGES/Makefile") CONFIG_FILES="$CONFIG_FILES doc/locale/ja/LC_MESSAGES/Makefile" ;;
30171 "doc/locale/ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc/locale/ja/Makefile" ;;
30172 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30173 "examples/dictionary/Makefile") CONFIG_FILES="$CONFIG_FILES examples/dictionary/Makefile" ;;
30174 "examples/dictionary/edict/Makefile") CONFIG_FILES="$CONFIG_FILES examples/dictionary/edict/Makefile" ;;
30175 "examples/dictionary/gene95/Makefile") CONFIG_FILES="$CONFIG_FILES examples/dictionary/gene95/Makefile" ;;
30176 "examples/dictionary/jmdict/Makefile") CONFIG_FILES="$CONFIG_FILES examples/dictionary/jmdict/Makefile" ;;
30177 "groonga-arrow.pc") CONFIG_FILES="$CONFIG_FILES groonga-arrow.pc" ;;
30178 "groonga.pc") CONFIG_FILES="$CONFIG_FILES groonga.pc" ;;
30179 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
30180 "include/groonga/Makefile") CONFIG_FILES="$CONFIG_FILES include/groonga/Makefile" ;;
30181 "include/groonga/build_option.h") CONFIG_FILES="$CONFIG_FILES include/groonga/build_option.h" ;;
30182 "include/groonga/version.h") CONFIG_FILES="$CONFIG_FILES include/groonga/version.h" ;;
30183 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30184 "lib/dat/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dat/Makefile" ;;
30185 "lib/metadata.rc") CONFIG_FILES="$CONFIG_FILES lib/metadata.rc" ;;
30186 "lib/mrb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/Makefile" ;;
30187 "lib/mrb/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/Makefile" ;;
30188 "lib/mrb/scripts/command_line/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/command_line/Makefile" ;;
30189 "lib/mrb/scripts/context/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/context/Makefile" ;;
30190 "lib/mrb/scripts/expression_rewriters/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/expression_rewriters/Makefile" ;;
30191 "lib/mrb/scripts/expression_tree/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/expression_tree/Makefile" ;;
30192 "lib/mrb/scripts/initialize/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/initialize/Makefile" ;;
30193 "lib/mrb/scripts/logger/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/logger/Makefile" ;;
30194 "lib/mrb/scripts/query_logger/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mrb/scripts/query_logger/Makefile" ;;
30195 "lib/proc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/proc/Makefile" ;;
30196 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
30197 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
30198 "plugins/functions/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/functions/Makefile" ;;
30199 "plugins/language_model/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/language_model/Makefile" ;;
30200 "plugins/query_expanders/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/query_expanders/Makefile" ;;
30201 "plugins/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ruby/Makefile" ;;
30202 "plugins/sharding/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sharding/Makefile" ;;
30203 "plugins/suggest/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/suggest/Makefile" ;;
30204 "plugins/token_filters/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/token_filters/Makefile" ;;
30205 "plugins/tokenizers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tokenizers/Makefile" ;;
30206 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30207 "src/suggest/Makefile") CONFIG_FILES="$CONFIG_FILES src/suggest/Makefile" ;;
30208 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
30209 "test/command/Makefile") CONFIG_FILES="$CONFIG_FILES test/command/Makefile" ;;
30210 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30211 "vendor/Makefile") CONFIG_FILES="$CONFIG_FILES vendor/Makefile" ;;
30212 "vendor/groonga-log/Makefile") CONFIG_FILES="$CONFIG_FILES vendor/groonga-log/Makefile" ;;
30213 "vendor/lz4/Makefile") CONFIG_FILES="$CONFIG_FILES vendor/lz4/Makefile" ;;
30214 "vendor/mecab/Makefile") CONFIG_FILES="$CONFIG_FILES vendor/mecab/Makefile" ;;
30215 "vendor/mruby/Makefile") CONFIG_FILES="$CONFIG_FILES vendor/mruby/Makefile" ;;
30216 "vendor/onigmo/Makefile") CONFIG_FILES="$CONFIG_FILES vendor/onigmo/Makefile" ;;
30217
30218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30219 esac
30220 done
30221
30222
30223 # If the user did not use the arguments to specify the items to instantiate,
30224 # then the envvar interface is used. Set only those that are not.
30225 # We use the long form for the default assignment because of an extremely
30226 # bizarre bug on SunOS 4.1.3.
30227 if $ac_need_defaults; then
30228 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
30229 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
30230 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
30231 fi
30232
30233 # Have a temporary directory for convenience. Make it in the build tree
30234 # simply because there is no reason against having it here, and in addition,
30235 # creating and moving files from /tmp can sometimes cause problems.
30236 # Hook for its removal unless debugging.
30237 # Note that there is a small window in which the directory will not be cleaned:
30238 # after its creation but before its name has been assigned to `$tmp'.
30239 $debug ||
30240 {
30241 tmp= ac_tmp=
30242 trap 'exit_status=$?
30243 : "${ac_tmp:=$tmp}"
30244 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30245 ' 0
30246 trap 'as_fn_exit 1' 1 2 13 15
30247 }
30248 # Create a (secure) tmp directory for tmp files.
30249
30250 {
30251 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30252 test -d "$tmp"
30253 } ||
30254 {
30255 tmp=./conf$$-$RANDOM
30256 (umask 077 && mkdir "$tmp")
30257 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30258 ac_tmp=$tmp
30259
30260 # Set up the scripts for CONFIG_FILES section.
30261 # No need to generate them if there are no CONFIG_FILES.
30262 # This happens for instance with `./config.status config.h'.
30263 if test -n "$CONFIG_FILES"; then
30264
30265
30266 ac_cr=`echo X | tr X '\015'`
30267 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30268 # But we know of no other shell where ac_cr would be empty at this
30269 # point, so we can use a bashism as a fallback.
30270 if test "x$ac_cr" = x; then
30271 eval ac_cr=\$\'\\r\'
30272 fi
30273 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30275 ac_cs_awk_cr='\\r'
30276 else
30277 ac_cs_awk_cr=$ac_cr
30278 fi
30279
30280 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30281 _ACEOF
30282
30283
30284 {
30285 echo "cat >conf$$subs.awk <<_ACEOF" &&
30286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30287 echo "_ACEOF"
30288 } >conf$$subs.sh ||
30289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30291 ac_delim='%!_!# '
30292 for ac_last_try in false false false false false :; do
30293 . ./conf$$subs.sh ||
30294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30295
30296 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30297 if test $ac_delim_n = $ac_delim_num; then
30298 break
30299 elif $ac_last_try; then
30300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30301 else
30302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30303 fi
30304 done
30305 rm -f conf$$subs.sh
30306
30307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30308 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30309 _ACEOF
30310 sed -n '
30311 h
30312 s/^/S["/; s/!.*/"]=/
30313 p
30314 g
30315 s/^[^!]*!//
30316 :repl
30317 t repl
30318 s/'"$ac_delim"'$//
30319 t delim
30320 :nl
30321 h
30322 s/\(.\{148\}\)..*/\1/
30323 t more1
30324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30325 p
30326 n
30327 b repl
30328 :more1
30329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30330 p
30331 g
30332 s/.\{148\}//
30333 t nl
30334 :delim
30335 h
30336 s/\(.\{148\}\)..*/\1/
30337 t more2
30338 s/["\\]/\\&/g; s/^/"/; s/$/"/
30339 p
30340 b
30341 :more2
30342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30343 p
30344 g
30345 s/.\{148\}//
30346 t delim
30347 ' <conf$$subs.awk | sed '
30348 /^[^""]/{
30349 N
30350 s/\n//
30351 }
30352 ' >>$CONFIG_STATUS || ac_write_fail=1
30353 rm -f conf$$subs.awk
30354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30355 _ACAWK
30356 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30357 for (key in S) S_is_set[key] = 1
30358 FS = ""
30359
30360 }
30361 {
30362 line = $ 0
30363 nfields = split(line, field, "@")
30364 substed = 0
30365 len = length(field[1])
30366 for (i = 2; i < nfields; i++) {
30367 key = field[i]
30368 keylen = length(key)
30369 if (S_is_set[key]) {
30370 value = S[key]
30371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30372 len += length(value) + length(field[++i])
30373 substed = 1
30374 } else
30375 len += 1 + keylen
30376 }
30377
30378 print line
30379 }
30380
30381 _ACAWK
30382 _ACEOF
30383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30386 else
30387 cat
30388 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30389 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30390 _ACEOF
30391
30392 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30393 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30394 # trailing colons and then remove the whole line if VPATH becomes empty
30395 # (actually we leave an empty line to preserve line numbers).
30396 if test "x$srcdir" = x.; then
30397 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30398 h
30399 s///
30400 s/^/:/
30401 s/[ ]*$/:/
30402 s/:\$(srcdir):/:/g
30403 s/:\${srcdir}:/:/g
30404 s/:@srcdir@:/:/g
30405 s/^:*//
30406 s/:*$//
30407 x
30408 s/\(=[ ]*\).*/\1/
30409 G
30410 s/\n//
30411 s/^[^=]*=[ ]*$//
30412 }'
30413 fi
30414
30415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30416 fi # test -n "$CONFIG_FILES"
30417
30418 # Set up the scripts for CONFIG_HEADERS section.
30419 # No need to generate them if there are no CONFIG_HEADERS.
30420 # This happens for instance with `./config.status Makefile'.
30421 if test -n "$CONFIG_HEADERS"; then
30422 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30423 BEGIN {
30424 _ACEOF
30425
30426 # Transform confdefs.h into an awk script `defines.awk', embedded as
30427 # here-document in config.status, that substitutes the proper values into
30428 # config.h.in to produce config.h.
30429
30430 # Create a delimiter string that does not exist in confdefs.h, to ease
30431 # handling of long lines.
30432 ac_delim='%!_!# '
30433 for ac_last_try in false false :; do
30434 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30435 if test -z "$ac_tt"; then
30436 break
30437 elif $ac_last_try; then
30438 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30439 else
30440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30441 fi
30442 done
30443
30444 # For the awk script, D is an array of macro values keyed by name,
30445 # likewise P contains macro parameters if any. Preserve backslash
30446 # newline sequences.
30447
30448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30449 sed -n '
30450 s/.\{148\}/&'"$ac_delim"'/g
30451 t rset
30452 :rset
30453 s/^[ ]*#[ ]*define[ ][ ]*/ /
30454 t def
30455 d
30456 :def
30457 s/\\$//
30458 t bsnl
30459 s/["\\]/\\&/g
30460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30461 D["\1"]=" \3"/p
30462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30463 d
30464 :bsnl
30465 s/["\\]/\\&/g
30466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30467 D["\1"]=" \3\\\\\\n"\\/p
30468 t cont
30469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30470 t cont
30471 d
30472 :cont
30473 n
30474 s/.\{148\}/&'"$ac_delim"'/g
30475 t clear
30476 :clear
30477 s/\\$//
30478 t bsnlc
30479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30480 d
30481 :bsnlc
30482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30483 b cont
30484 ' <confdefs.h | sed '
30485 s/'"$ac_delim"'/"\\\
30486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30487
30488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30489 for (key in D) D_is_set[key] = 1
30490 FS = ""
30491 }
30492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30493 line = \$ 0
30494 split(line, arg, " ")
30495 if (arg[1] == "#") {
30496 defundef = arg[2]
30497 mac1 = arg[3]
30498 } else {
30499 defundef = substr(arg[1], 2)
30500 mac1 = arg[2]
30501 }
30502 split(mac1, mac2, "(") #)
30503 macro = mac2[1]
30504 prefix = substr(line, 1, index(line, defundef) - 1)
30505 if (D_is_set[macro]) {
30506 # Preserve the white space surrounding the "#".
30507 print prefix "define", macro P[macro] D[macro]
30508 next
30509 } else {
30510 # Replace #undef with comments. This is necessary, for example,
30511 # in the case of _POSIX_SOURCE, which is predefined and required
30512 # on some systems where configure will not decide to define it.
30513 if (defundef == "undef") {
30514 print "/*", prefix defundef, macro, "*/"
30515 next
30516 }
30517 }
30518 }
30519 { print }
30520 _ACAWK
30521 _ACEOF
30522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30523 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30524 fi # test -n "$CONFIG_HEADERS"
30525
30526
30527 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30528 shift
30529 for ac_tag
30530 do
30531 case $ac_tag in
30532 :[FHLC]) ac_mode=$ac_tag; continue;;
30533 esac
30534 case $ac_mode$ac_tag in
30535 :[FHL]*:*);;
30536 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30537 :[FH]-) ac_tag=-:-;;
30538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30539 esac
30540 ac_save_IFS=$IFS
30541 IFS=:
30542 set x $ac_tag
30543 IFS=$ac_save_IFS
30544 shift
30545 ac_file=$1
30546 shift
30547
30548 case $ac_mode in
30549 :L) ac_source=$1;;
30550 :[FH])
30551 ac_file_inputs=
30552 for ac_f
30553 do
30554 case $ac_f in
30555 -) ac_f="$ac_tmp/stdin";;
30556 *) # Look for the file first in the build tree, then in the source tree
30557 # (if the path is not absolute). The absolute path cannot be DOS-style,
30558 # because $ac_f cannot contain `:'.
30559 test -f "$ac_f" ||
30560 case $ac_f in
30561 [\\/$]*) false;;
30562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30563 esac ||
30564 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30565 esac
30566 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30567 as_fn_append ac_file_inputs " '$ac_f'"
30568 done
30569
30570 # Let's still pretend it is `configure' which instantiates (i.e., don't
30571 # use $as_me), people would be surprised to read:
30572 # /* config.h. Generated by config.status. */
30573 configure_input='Generated from '`
30574 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30575 `' by configure.'
30576 if test x"$ac_file" != x-; then
30577 configure_input="$ac_file. $configure_input"
30578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30579 printf "%s\n" "$as_me: creating $ac_file" >&6;}
30580 fi
30581 # Neutralize special characters interpreted by sed in replacement strings.
30582 case $configure_input in #(
30583 *\&* | *\|* | *\\* )
30584 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
30585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30586 *) ac_sed_conf_input=$configure_input;;
30587 esac
30588
30589 case $ac_tag in
30590 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30592 esac
30593 ;;
30594 esac
30595
30596 ac_dir=`$as_dirname -- "$ac_file" ||
30597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30598 X"$ac_file" : 'X\(//\)[^/]' \| \
30599 X"$ac_file" : 'X\(//\)$' \| \
30600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30601 printf "%s\n" X"$ac_file" |
30602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30603 s//\1/
30604 q
30605 }
30606 /^X\(\/\/\)[^/].*/{
30607 s//\1/
30608 q
30609 }
30610 /^X\(\/\/\)$/{
30611 s//\1/
30612 q
30613 }
30614 /^X\(\/\).*/{
30615 s//\1/
30616 q
30617 }
30618 s/.*/./; q'`
30619 as_dir="$ac_dir"; as_fn_mkdir_p
30620 ac_builddir=.
30621
30622 case "$ac_dir" in
30623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30624 *)
30625 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30626 # A ".." for each directory in $ac_dir_suffix.
30627 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30628 case $ac_top_builddir_sub in
30629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30631 esac ;;
30632 esac
30633 ac_abs_top_builddir=$ac_pwd
30634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30635 # for backward compatibility:
30636 ac_top_builddir=$ac_top_build_prefix
30637
30638 case $srcdir in
30639 .) # We are building in place.
30640 ac_srcdir=.
30641 ac_top_srcdir=$ac_top_builddir_sub
30642 ac_abs_top_srcdir=$ac_pwd ;;
30643 [\\/]* | ?:[\\/]* ) # Absolute name.
30644 ac_srcdir=$srcdir$ac_dir_suffix;
30645 ac_top_srcdir=$srcdir
30646 ac_abs_top_srcdir=$srcdir ;;
30647 *) # Relative name.
30648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30649 ac_top_srcdir=$ac_top_build_prefix$srcdir
30650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30651 esac
30652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30653
30654
30655 case $ac_mode in
30656 :F)
30657 #
30658 # CONFIG_FILE
30659 #
30660
30661 case $INSTALL in
30662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30664 esac
30665 ac_MKDIR_P=$MKDIR_P
30666 case $MKDIR_P in
30667 [\\/$]* | ?:[\\/]* ) ;;
30668 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30669 esac
30670 _ACEOF
30671
30672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30673 # If the template does not know about datarootdir, expand it.
30674 # FIXME: This hack should be removed a few years after 2.60.
30675 ac_datarootdir_hack=; ac_datarootdir_seen=
30676 ac_sed_dataroot='
30677 /datarootdir/ {
30678 p
30679 q
30680 }
30681 /@datadir@/p
30682 /@docdir@/p
30683 /@infodir@/p
30684 /@localedir@/p
30685 /@mandir@/p'
30686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30687 *datarootdir*) ac_datarootdir_seen=yes;;
30688 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30690 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30691 _ACEOF
30692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30693 ac_datarootdir_hack='
30694 s&@datadir@&$datadir&g
30695 s&@docdir@&$docdir&g
30696 s&@infodir@&$infodir&g
30697 s&@localedir@&$localedir&g
30698 s&@mandir@&$mandir&g
30699 s&\\\${datarootdir}&$datarootdir&g' ;;
30700 esac
30701 _ACEOF
30702
30703 # Neutralize VPATH when `$srcdir' = `.'.
30704 # Shell code in configure.ac might set extrasub.
30705 # FIXME: do we really want to maintain this feature?
30706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30707 ac_sed_extra="$ac_vpsub
30708 $extrasub
30709 _ACEOF
30710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30711 :t
30712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30713 s|@configure_input@|$ac_sed_conf_input|;t t
30714 s&@top_builddir@&$ac_top_builddir_sub&;t t
30715 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30716 s&@srcdir@&$ac_srcdir&;t t
30717 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30718 s&@top_srcdir@&$ac_top_srcdir&;t t
30719 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30720 s&@builddir@&$ac_builddir&;t t
30721 s&@abs_builddir@&$ac_abs_builddir&;t t
30722 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30723 s&@INSTALL@&$ac_INSTALL&;t t
30724 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30725 $ac_datarootdir_hack
30726 "
30727 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30728 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30729
30730 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30731 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30733 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30735 which seems to be undefined. Please make sure it is defined" >&5
30736 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30737 which seems to be undefined. Please make sure it is defined" >&2;}
30738
30739 rm -f "$ac_tmp/stdin"
30740 case $ac_file in
30741 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30742 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30743 esac \
30744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30745 ;;
30746 :H)
30747 #
30748 # CONFIG_HEADER
30749 #
30750 if test x"$ac_file" != x-; then
30751 {
30752 printf "%s\n" "/* $configure_input */" >&1 \
30753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30754 } >"$ac_tmp/config.h" \
30755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30756 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30758 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
30759 else
30760 rm -f "$ac_file"
30761 mv "$ac_tmp/config.h" "$ac_file" \
30762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30763 fi
30764 else
30765 printf "%s\n" "/* $configure_input */" >&1 \
30766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30767 || as_fn_error $? "could not create -" "$LINENO" 5
30768 fi
30769 # Compute "$ac_file"'s index in $config_headers.
30770 _am_arg="$ac_file"
30771 _am_stamp_count=1
30772 for _am_header in $config_headers :; do
30773 case $_am_header in
30774 $_am_arg | $_am_arg:* )
30775 break ;;
30776 * )
30777 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30778 esac
30779 done
30780 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30781 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30782 X"$_am_arg" : 'X\(//\)[^/]' \| \
30783 X"$_am_arg" : 'X\(//\)$' \| \
30784 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30785 printf "%s\n" X"$_am_arg" |
30786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30787 s//\1/
30788 q
30789 }
30790 /^X\(\/\/\)[^/].*/{
30791 s//\1/
30792 q
30793 }
30794 /^X\(\/\/\)$/{
30795 s//\1/
30796 q
30797 }
30798 /^X\(\/\).*/{
30799 s//\1/
30800 q
30801 }
30802 s/.*/./; q'`/stamp-h$_am_stamp_count
30803 ;;
30804
30805 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30806 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
30807 ;;
30808 esac
30809
30810
30811 case $ac_file$ac_mode in
30812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30813 # Older Autoconf quotes --file arguments for eval, but not when files
30814 # are listed without --file. Let's play safe and only enable the eval
30815 # if we detect the quoting.
30816 # TODO: see whether this extra hack can be removed once we start
30817 # requiring Autoconf 2.70 or later.
30818 case $CONFIG_FILES in #(
30819 *\'*) :
30820 eval set x "$CONFIG_FILES" ;; #(
30821 *) :
30822 set x $CONFIG_FILES ;; #(
30823 *) :
30824 ;;
30825 esac
30826 shift
30827 # Used to flag and report bootstrapping failures.
30828 am_rc=0
30829 for am_mf
30830 do
30831 # Strip MF so we end up with the name of the file.
30832 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
30833 # Check whether this is an Automake generated Makefile which includes
30834 # dependency-tracking related rules and includes.
30835 # Grep'ing the whole file directly is not great: AIX grep has a line
30836 # limit of 2048, but all sed's we know have understand at least 4000.
30837 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
30838 || continue
30839 am_dirpart=`$as_dirname -- "$am_mf" ||
30840 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30841 X"$am_mf" : 'X\(//\)[^/]' \| \
30842 X"$am_mf" : 'X\(//\)$' \| \
30843 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30844 printf "%s\n" X"$am_mf" |
30845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30846 s//\1/
30847 q
30848 }
30849 /^X\(\/\/\)[^/].*/{
30850 s//\1/
30851 q
30852 }
30853 /^X\(\/\/\)$/{
30854 s//\1/
30855 q
30856 }
30857 /^X\(\/\).*/{
30858 s//\1/
30859 q
30860 }
30861 s/.*/./; q'`
30862 am_filepart=`$as_basename -- "$am_mf" ||
30863 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
30864 X"$am_mf" : 'X\(//\)$' \| \
30865 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30866 printf "%s\n" X/"$am_mf" |
30867 sed '/^.*\/\([^/][^/]*\)\/*$/{
30868 s//\1/
30869 q
30870 }
30871 /^X\/\(\/\/\)$/{
30872 s//\1/
30873 q
30874 }
30875 /^X\/\(\/\).*/{
30876 s//\1/
30877 q
30878 }
30879 s/.*/./; q'`
30880 { echo "$as_me:$LINENO: cd "$am_dirpart" \
30881 && sed -e '/# am--include-marker/d' "$am_filepart" \
30882 | $MAKE -f - am--depfiles" >&5
30883 (cd "$am_dirpart" \
30884 && sed -e '/# am--include-marker/d' "$am_filepart" \
30885 | $MAKE -f - am--depfiles) >&5 2>&5
30886 ac_status=$?
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } || am_rc=$?
30889 done
30890 if test $am_rc -ne 0; then
30891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30892 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30893 as_fn_error $? "Something went wrong bootstrapping makefile fragments
30894 for automatic dependency tracking. If GNU make was not used, consider
30895 re-running the configure script with MAKE=\"gmake\" (or whatever is
30896 necessary). You can also try re-running configure with the
30897 '--disable-dependency-tracking' option to at least be able to build
30898 the package (albeit without support for automatic dependency tracking).
30899 See \`config.log' for more details" "$LINENO" 5; }
30900 fi
30901 { am_dirpart=; unset am_dirpart;}
30902 { am_filepart=; unset am_filepart;}
30903 { am_mf=; unset am_mf;}
30904 { am_rc=; unset am_rc;}
30905 rm -f conftest-deps.mk
30906 }
30907 ;;
30908 "libtool":C)
30909
30910 # See if we are running on zsh, and set the options that allow our
30911 # commands through without removal of \ escapes.
30912 if test -n "${ZSH_VERSION+set}"; then
30913 setopt NO_GLOB_SUBST
30914 fi
30915
30916 cfgfile=${ofile}T
30917 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30918 $RM "$cfgfile"
30919
30920 cat <<_LT_EOF >> "$cfgfile"
30921 #! $SHELL
30922 # Generated automatically by $as_me ($PACKAGE) $VERSION
30923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30924
30925 # Provide generalized library-building support services.
30926 # Written by Gordon Matzigkeit, 1996
30927
30928 # Copyright (C) 2014 Free Software Foundation, Inc.
30929 # This is free software; see the source for copying conditions. There is NO
30930 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30931
30932 # GNU Libtool is free software; you can redistribute it and/or modify
30933 # it under the terms of the GNU General Public License as published by
30934 # the Free Software Foundation; either version 2 of of the License, or
30935 # (at your option) any later version.
30936 #
30937 # As a special exception to the GNU General Public License, if you
30938 # distribute this file as part of a program or library that is built
30939 # using GNU Libtool, you may include this file under the same
30940 # distribution terms that you use for the rest of that program.
30941 #
30942 # GNU Libtool is distributed in the hope that it will be useful, but
30943 # WITHOUT ANY WARRANTY; without even the implied warranty of
30944 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30945 # GNU General Public License for more details.
30946 #
30947 # You should have received a copy of the GNU General Public License
30948 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30949
30950
30951 # The names of the tagged configurations supported by this script.
30952 available_tags='CXX RC '
30953
30954 # Configured defaults for sys_lib_dlsearch_path munging.
30955 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30956
30957 # ### BEGIN LIBTOOL CONFIG
30958
30959 # Which release of libtool.m4 was used?
30960 macro_version=$macro_version
30961 macro_revision=$macro_revision
30962
30963 # Assembler program.
30964 AS=$lt_AS
30965
30966 # DLL creation program.
30967 DLLTOOL=$lt_DLLTOOL
30968
30969 # Object dumper program.
30970 OBJDUMP=$lt_OBJDUMP
30971
30972 # Whether or not to build shared libraries.
30973 build_libtool_libs=$enable_shared
30974
30975 # Whether or not to build static libraries.
30976 build_old_libs=$enable_static
30977
30978 # What type of objects to build.
30979 pic_mode=$pic_mode
30980
30981 # Whether or not to optimize for fast installation.
30982 fast_install=$enable_fast_install
30983
30984 # Shared archive member basename,for filename based shared library versioning on AIX.
30985 shared_archive_member_spec=$shared_archive_member_spec
30986
30987 # Shell to use when invoking shell scripts.
30988 SHELL=$lt_SHELL
30989
30990 # An echo program that protects backslashes.
30991 ECHO=$lt_ECHO
30992
30993 # The PATH separator for the build system.
30994 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30995
30996 # The host system.
30997 host_alias=$host_alias
30998 host=$host
30999 host_os=$host_os
31000
31001 # The build system.
31002 build_alias=$build_alias
31003 build=$build
31004 build_os=$build_os
31005
31006 # A sed program that does not truncate output.
31007 SED=$lt_SED
31008
31009 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31010 Xsed="\$SED -e 1s/^X//"
31011
31012 # A grep program that handles long lines.
31013 GREP=$lt_GREP
31014
31015 # An ERE matcher.
31016 EGREP=$lt_EGREP
31017
31018 # A literal string matcher.
31019 FGREP=$lt_FGREP
31020
31021 # A BSD- or MS-compatible name lister.
31022 NM=$lt_NM
31023
31024 # Whether we need soft or hard links.
31025 LN_S=$lt_LN_S
31026
31027 # What is the maximum length of a command?
31028 max_cmd_len=$max_cmd_len
31029
31030 # Object file suffix (normally "o").
31031 objext=$ac_objext
31032
31033 # Executable file suffix (normally "").
31034 exeext=$exeext
31035
31036 # whether the shell understands "unset".
31037 lt_unset=$lt_unset
31038
31039 # turn spaces into newlines.
31040 SP2NL=$lt_lt_SP2NL
31041
31042 # turn newlines into spaces.
31043 NL2SP=$lt_lt_NL2SP
31044
31045 # convert \$build file names to \$host format.
31046 to_host_file_cmd=$lt_cv_to_host_file_cmd
31047
31048 # convert \$build files to toolchain format.
31049 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31050
31051 # A file(cmd) program that detects file types.
31052 FILECMD=$lt_FILECMD
31053
31054 # Method to check whether dependent libraries are shared objects.
31055 deplibs_check_method=$lt_deplibs_check_method
31056
31057 # Command to use when deplibs_check_method = "file_magic".
31058 file_magic_cmd=$lt_file_magic_cmd
31059
31060 # How to find potential files when deplibs_check_method = "file_magic".
31061 file_magic_glob=$lt_file_magic_glob
31062
31063 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31064 want_nocaseglob=$lt_want_nocaseglob
31065
31066 # Command to associate shared and link libraries.
31067 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31068
31069 # The archiver.
31070 AR=$lt_AR
31071
31072 # Flags to create an archive (by configure).
31073 lt_ar_flags=$lt_ar_flags
31074
31075 # Flags to create an archive.
31076 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
31077
31078 # How to feed a file listing to the archiver.
31079 archiver_list_spec=$lt_archiver_list_spec
31080
31081 # A symbol stripping program.
31082 STRIP=$lt_STRIP
31083
31084 # Commands used to install an old-style archive.
31085 RANLIB=$lt_RANLIB
31086 old_postinstall_cmds=$lt_old_postinstall_cmds
31087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31088
31089 # Whether to use a lock for old archive extraction.
31090 lock_old_archive_extraction=$lock_old_archive_extraction
31091
31092 # A C compiler.
31093 LTCC=$lt_CC
31094
31095 # LTCC compiler flags.
31096 LTCFLAGS=$lt_CFLAGS
31097
31098 # Take the output of nm and produce a listing of raw symbols and C names.
31099 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31100
31101 # Transform the output of nm in a proper C declaration.
31102 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31103
31104 # Transform the output of nm into a list of symbols to manually relocate.
31105 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
31106
31107 # Transform the output of nm in a C name address pair.
31108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31109
31110 # Transform the output of nm in a C name address pair when lib prefix is needed.
31111 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31112
31113 # The name lister interface.
31114 nm_interface=$lt_lt_cv_nm_interface
31115
31116 # Specify filename containing input files for \$NM.
31117 nm_file_list_spec=$lt_nm_file_list_spec
31118
31119 # The root where to search for dependent libraries,and where our libraries should be installed.
31120 lt_sysroot=$lt_sysroot
31121
31122 # Command to truncate a binary pipe.
31123 lt_truncate_bin=$lt_lt_cv_truncate_bin
31124
31125 # The name of the directory that contains temporary libtool files.
31126 objdir=$objdir
31127
31128 # Used to examine libraries when file_magic_cmd begins with "file".
31129 MAGIC_CMD=$MAGIC_CMD
31130
31131 # Must we lock files when doing compilation?
31132 need_locks=$lt_need_locks
31133
31134 # Manifest tool.
31135 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31136
31137 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31138 DSYMUTIL=$lt_DSYMUTIL
31139
31140 # Tool to change global to local symbols on Mac OS X.
31141 NMEDIT=$lt_NMEDIT
31142
31143 # Tool to manipulate fat objects and archives on Mac OS X.
31144 LIPO=$lt_LIPO
31145
31146 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31147 OTOOL=$lt_OTOOL
31148
31149 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31150 OTOOL64=$lt_OTOOL64
31151
31152 # Old archive suffix (normally "a").
31153 libext=$libext
31154
31155 # Shared library suffix (normally ".so").
31156 shrext_cmds=$lt_shrext_cmds
31157
31158 # The commands to extract the exported symbol list from a shared archive.
31159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31160
31161 # Variables whose values should be saved in libtool wrapper scripts and
31162 # restored at link time.
31163 variables_saved_for_relink=$lt_variables_saved_for_relink
31164
31165 # Do we need the "lib" prefix for modules?
31166 need_lib_prefix=$need_lib_prefix
31167
31168 # Do we need a version for libraries?
31169 need_version=$need_version
31170
31171 # Library versioning type.
31172 version_type=$version_type
31173
31174 # Shared library runtime path variable.
31175 runpath_var=$runpath_var
31176
31177 # Shared library path variable.
31178 shlibpath_var=$shlibpath_var
31179
31180 # Is shlibpath searched before the hard-coded library search path?
31181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31182
31183 # Format of library name prefix.
31184 libname_spec=$lt_libname_spec
31185
31186 # List of archive names. First name is the real one, the rest are links.
31187 # The last name is the one that the linker finds with -lNAME
31188 library_names_spec=$lt_library_names_spec
31189
31190 # The coded name of the library, if different from the real name.
31191 soname_spec=$lt_soname_spec
31192
31193 # Permission mode override for installation of shared libraries.
31194 install_override_mode=$lt_install_override_mode
31195
31196 # Command to use after installation of a shared archive.
31197 postinstall_cmds=$lt_postinstall_cmds
31198
31199 # Command to use after uninstallation of a shared archive.
31200 postuninstall_cmds=$lt_postuninstall_cmds
31201
31202 # Commands used to finish a libtool library installation in a directory.
31203 finish_cmds=$lt_finish_cmds
31204
31205 # As "finish_cmds", except a single script fragment to be evaled but
31206 # not shown.
31207 finish_eval=$lt_finish_eval
31208
31209 # Whether we should hardcode library paths into libraries.
31210 hardcode_into_libs=$hardcode_into_libs
31211
31212 # Compile-time system search path for libraries.
31213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31214
31215 # Detected run-time system search path for libraries.
31216 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
31217
31218 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
31219 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
31220
31221 # Whether dlopen is supported.
31222 dlopen_support=$enable_dlopen
31223
31224 # Whether dlopen of programs is supported.
31225 dlopen_self=$enable_dlopen_self
31226
31227 # Whether dlopen of statically linked programs is supported.
31228 dlopen_self_static=$enable_dlopen_self_static
31229
31230 # Commands to strip libraries.
31231 old_striplib=$lt_old_striplib
31232 striplib=$lt_striplib
31233
31234
31235 # The linker used to build libraries.
31236 LD=$lt_LD
31237
31238 # How to create reloadable object files.
31239 reload_flag=$lt_reload_flag
31240 reload_cmds=$lt_reload_cmds
31241
31242 # Commands used to build an old-style archive.
31243 old_archive_cmds=$lt_old_archive_cmds
31244
31245 # A language specific compiler.
31246 CC=$lt_compiler
31247
31248 # Is the compiler the GNU compiler?
31249 with_gcc=$GCC
31250
31251 # Compiler flag to turn off builtin functions.
31252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31253
31254 # Additional compiler flags for building library objects.
31255 pic_flag=$lt_lt_prog_compiler_pic
31256
31257 # How to pass a linker flag through the compiler.
31258 wl=$lt_lt_prog_compiler_wl
31259
31260 # Compiler flag to prevent dynamic linking.
31261 link_static_flag=$lt_lt_prog_compiler_static
31262
31263 # Does compiler simultaneously support -c and -o options?
31264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31265
31266 # Whether or not to add -lc for building shared libraries.
31267 build_libtool_need_lc=$archive_cmds_need_lc
31268
31269 # Whether or not to disallow shared libs when runtime libs are static.
31270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31271
31272 # Compiler flag to allow reflexive dlopens.
31273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31274
31275 # Compiler flag to generate shared objects directly from archives.
31276 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31277
31278 # Whether the compiler copes with passing no objects directly.
31279 compiler_needs_object=$lt_compiler_needs_object
31280
31281 # Create an old-style archive from a shared archive.
31282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31283
31284 # Create a temporary old-style archive to link instead of a shared archive.
31285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31286
31287 # Commands used to build a shared archive.
31288 archive_cmds=$lt_archive_cmds
31289 archive_expsym_cmds=$lt_archive_expsym_cmds
31290
31291 # Commands used to build a loadable module if different from building
31292 # a shared archive.
31293 module_cmds=$lt_module_cmds
31294 module_expsym_cmds=$lt_module_expsym_cmds
31295
31296 # Whether we are building with GNU ld or not.
31297 with_gnu_ld=$lt_with_gnu_ld
31298
31299 # Flag that allows shared libraries with undefined symbols to be built.
31300 allow_undefined_flag=$lt_allow_undefined_flag
31301
31302 # Flag that enforces no undefined symbols.
31303 no_undefined_flag=$lt_no_undefined_flag
31304
31305 # Flag to hardcode \$libdir into a binary during linking.
31306 # This must work even if \$libdir does not exist
31307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31308
31309 # Whether we need a single "-rpath" flag with a separated argument.
31310 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31311
31312 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31313 # DIR into the resulting binary.
31314 hardcode_direct=$hardcode_direct
31315
31316 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31317 # DIR into the resulting binary and the resulting library dependency is
31318 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31319 # library is relocated.
31320 hardcode_direct_absolute=$hardcode_direct_absolute
31321
31322 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31323 # into the resulting binary.
31324 hardcode_minus_L=$hardcode_minus_L
31325
31326 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31327 # into the resulting binary.
31328 hardcode_shlibpath_var=$hardcode_shlibpath_var
31329
31330 # Set to "yes" if building a shared library automatically hardcodes DIR
31331 # into the library and all subsequent libraries and executables linked
31332 # against it.
31333 hardcode_automatic=$hardcode_automatic
31334
31335 # Set to yes if linker adds runtime paths of dependent libraries
31336 # to runtime path list.
31337 inherit_rpath=$inherit_rpath
31338
31339 # Whether libtool must link a program against all its dependency libraries.
31340 link_all_deplibs=$link_all_deplibs
31341
31342 # Set to "yes" if exported symbols are required.
31343 always_export_symbols=$always_export_symbols
31344
31345 # The commands to list exported symbols.
31346 export_symbols_cmds=$lt_export_symbols_cmds
31347
31348 # Symbols that should not be listed in the preloaded symbols.
31349 exclude_expsyms=$lt_exclude_expsyms
31350
31351 # Symbols that must always be exported.
31352 include_expsyms=$lt_include_expsyms
31353
31354 # Commands necessary for linking programs (against libraries) with templates.
31355 prelink_cmds=$lt_prelink_cmds
31356
31357 # Commands necessary for finishing linking programs.
31358 postlink_cmds=$lt_postlink_cmds
31359
31360 # Specify filename containing input files.
31361 file_list_spec=$lt_file_list_spec
31362
31363 # How to hardcode a shared library path into an executable.
31364 hardcode_action=$hardcode_action
31365
31366 # The directories searched by this compiler when creating a shared library.
31367 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31368
31369 # Dependencies to place before and after the objects being linked to
31370 # create a shared library.
31371 predep_objects=$lt_predep_objects
31372 postdep_objects=$lt_postdep_objects
31373 predeps=$lt_predeps
31374 postdeps=$lt_postdeps
31375
31376 # The library search path used internally by the compiler when linking
31377 # a shared library.
31378 compiler_lib_search_path=$lt_compiler_lib_search_path
31379
31380 # ### END LIBTOOL CONFIG
31381
31382 _LT_EOF
31383
31384 cat <<'_LT_EOF' >> "$cfgfile"
31385
31386 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
31387
31388 # func_munge_path_list VARIABLE PATH
31389 # -----------------------------------
31390 # VARIABLE is name of variable containing _space_ separated list of
31391 # directories to be munged by the contents of PATH, which is string
31392 # having a format:
31393 # "DIR[:DIR]:"
31394 # string "DIR[ DIR]" will be prepended to VARIABLE
31395 # ":DIR[:DIR]"
31396 # string "DIR[ DIR]" will be appended to VARIABLE
31397 # "DIRP[:DIRP]::[DIRA:]DIRA"
31398 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
31399 # "DIRA[ DIRA]" will be appended to VARIABLE
31400 # "DIR[:DIR]"
31401 # VARIABLE will be replaced by "DIR[ DIR]"
31402 func_munge_path_list ()
31403 {
31404 case x$2 in
31405 x)
31406 ;;
31407 *:)
31408 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
31409 ;;
31410 x:*)
31411 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
31412 ;;
31413 *::*)
31414 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
31415 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
31416 ;;
31417 *)
31418 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
31419 ;;
31420 esac
31421 }
31422
31423
31424 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
31425 func_cc_basename ()
31426 {
31427 for cc_temp in $*""; do
31428 case $cc_temp in
31429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
31430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
31431 \-*) ;;
31432 *) break;;
31433 esac
31434 done
31435 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
31436 }
31437
31438
31439 # ### END FUNCTIONS SHARED WITH CONFIGURE
31440
31441 _LT_EOF
31442
31443 case $host_os in
31444 aix3*)
31445 cat <<\_LT_EOF >> "$cfgfile"
31446 # AIX sometimes has problems with the GCC collect2 program. For some
31447 # reason, if we set the COLLECT_NAMES environment variable, the problems
31448 # vanish in a puff of smoke.
31449 if test set != "${COLLECT_NAMES+set}"; then
31450 COLLECT_NAMES=
31451 export COLLECT_NAMES
31452 fi
31453 _LT_EOF
31454 ;;
31455 esac
31456
31457
31458
31459 ltmain=$ac_aux_dir/ltmain.sh
31460
31461
31462 # We use sed instead of cat because bash on DJGPP gets confused if
31463 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31464 # text mode, it properly converts lines to CR/LF. This bash problem
31465 # is reportedly fixed, but why not run on old versions too?
31466 $SED '$q' "$ltmain" >> "$cfgfile" \
31467 || (rm -f "$cfgfile"; exit 1)
31468
31469 mv -f "$cfgfile" "$ofile" ||
31470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31471 chmod +x "$ofile"
31472
31473
31474 cat <<_LT_EOF >> "$ofile"
31475
31476 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31477
31478 # The linker used to build libraries.
31479 LD=$lt_LD_CXX
31480
31481 # How to create reloadable object files.
31482 reload_flag=$lt_reload_flag_CXX
31483 reload_cmds=$lt_reload_cmds_CXX
31484
31485 # Commands used to build an old-style archive.
31486 old_archive_cmds=$lt_old_archive_cmds_CXX
31487
31488 # A language specific compiler.
31489 CC=$lt_compiler_CXX
31490
31491 # Is the compiler the GNU compiler?
31492 with_gcc=$GCC_CXX
31493
31494 # Compiler flag to turn off builtin functions.
31495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31496
31497 # Additional compiler flags for building library objects.
31498 pic_flag=$lt_lt_prog_compiler_pic_CXX
31499
31500 # How to pass a linker flag through the compiler.
31501 wl=$lt_lt_prog_compiler_wl_CXX
31502
31503 # Compiler flag to prevent dynamic linking.
31504 link_static_flag=$lt_lt_prog_compiler_static_CXX
31505
31506 # Does compiler simultaneously support -c and -o options?
31507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31508
31509 # Whether or not to add -lc for building shared libraries.
31510 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31511
31512 # Whether or not to disallow shared libs when runtime libs are static.
31513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31514
31515 # Compiler flag to allow reflexive dlopens.
31516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31517
31518 # Compiler flag to generate shared objects directly from archives.
31519 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31520
31521 # Whether the compiler copes with passing no objects directly.
31522 compiler_needs_object=$lt_compiler_needs_object_CXX
31523
31524 # Create an old-style archive from a shared archive.
31525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31526
31527 # Create a temporary old-style archive to link instead of a shared archive.
31528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31529
31530 # Commands used to build a shared archive.
31531 archive_cmds=$lt_archive_cmds_CXX
31532 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31533
31534 # Commands used to build a loadable module if different from building
31535 # a shared archive.
31536 module_cmds=$lt_module_cmds_CXX
31537 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31538
31539 # Whether we are building with GNU ld or not.
31540 with_gnu_ld=$lt_with_gnu_ld_CXX
31541
31542 # Flag that allows shared libraries with undefined symbols to be built.
31543 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31544
31545 # Flag that enforces no undefined symbols.
31546 no_undefined_flag=$lt_no_undefined_flag_CXX
31547
31548 # Flag to hardcode \$libdir into a binary during linking.
31549 # This must work even if \$libdir does not exist
31550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31551
31552 # Whether we need a single "-rpath" flag with a separated argument.
31553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31554
31555 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31556 # DIR into the resulting binary.
31557 hardcode_direct=$hardcode_direct_CXX
31558
31559 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31560 # DIR into the resulting binary and the resulting library dependency is
31561 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31562 # library is relocated.
31563 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31564
31565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31566 # into the resulting binary.
31567 hardcode_minus_L=$hardcode_minus_L_CXX
31568
31569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31570 # into the resulting binary.
31571 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31572
31573 # Set to "yes" if building a shared library automatically hardcodes DIR
31574 # into the library and all subsequent libraries and executables linked
31575 # against it.
31576 hardcode_automatic=$hardcode_automatic_CXX
31577
31578 # Set to yes if linker adds runtime paths of dependent libraries
31579 # to runtime path list.
31580 inherit_rpath=$inherit_rpath_CXX
31581
31582 # Whether libtool must link a program against all its dependency libraries.
31583 link_all_deplibs=$link_all_deplibs_CXX
31584
31585 # Set to "yes" if exported symbols are required.
31586 always_export_symbols=$always_export_symbols_CXX
31587
31588 # The commands to list exported symbols.
31589 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31590
31591 # Symbols that should not be listed in the preloaded symbols.
31592 exclude_expsyms=$lt_exclude_expsyms_CXX
31593
31594 # Symbols that must always be exported.
31595 include_expsyms=$lt_include_expsyms_CXX
31596
31597 # Commands necessary for linking programs (against libraries) with templates.
31598 prelink_cmds=$lt_prelink_cmds_CXX
31599
31600 # Commands necessary for finishing linking programs.
31601 postlink_cmds=$lt_postlink_cmds_CXX
31602
31603 # Specify filename containing input files.
31604 file_list_spec=$lt_file_list_spec_CXX
31605
31606 # How to hardcode a shared library path into an executable.
31607 hardcode_action=$hardcode_action_CXX
31608
31609 # The directories searched by this compiler when creating a shared library.
31610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31611
31612 # Dependencies to place before and after the objects being linked to
31613 # create a shared library.
31614 predep_objects=$lt_predep_objects_CXX
31615 postdep_objects=$lt_postdep_objects_CXX
31616 predeps=$lt_predeps_CXX
31617 postdeps=$lt_postdeps_CXX
31618
31619 # The library search path used internally by the compiler when linking
31620 # a shared library.
31621 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31622
31623 # ### END LIBTOOL TAG CONFIG: CXX
31624 _LT_EOF
31625
31626
31627 cat <<_LT_EOF >> "$ofile"
31628
31629 # ### BEGIN LIBTOOL TAG CONFIG: RC
31630
31631 # The linker used to build libraries.
31632 LD=$lt_LD_RC
31633
31634 # How to create reloadable object files.
31635 reload_flag=$lt_reload_flag_RC
31636 reload_cmds=$lt_reload_cmds_RC
31637
31638 # Commands used to build an old-style archive.
31639 old_archive_cmds=$lt_old_archive_cmds_RC
31640
31641 # A language specific compiler.
31642 CC=$lt_compiler_RC
31643
31644 # Is the compiler the GNU compiler?
31645 with_gcc=$GCC_RC
31646
31647 # Compiler flag to turn off builtin functions.
31648 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
31649
31650 # Additional compiler flags for building library objects.
31651 pic_flag=$lt_lt_prog_compiler_pic_RC
31652
31653 # How to pass a linker flag through the compiler.
31654 wl=$lt_lt_prog_compiler_wl_RC
31655
31656 # Compiler flag to prevent dynamic linking.
31657 link_static_flag=$lt_lt_prog_compiler_static_RC
31658
31659 # Does compiler simultaneously support -c and -o options?
31660 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
31661
31662 # Whether or not to add -lc for building shared libraries.
31663 build_libtool_need_lc=$archive_cmds_need_lc_RC
31664
31665 # Whether or not to disallow shared libs when runtime libs are static.
31666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
31667
31668 # Compiler flag to allow reflexive dlopens.
31669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
31670
31671 # Compiler flag to generate shared objects directly from archives.
31672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
31673
31674 # Whether the compiler copes with passing no objects directly.
31675 compiler_needs_object=$lt_compiler_needs_object_RC
31676
31677 # Create an old-style archive from a shared archive.
31678 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
31679
31680 # Create a temporary old-style archive to link instead of a shared archive.
31681 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
31682
31683 # Commands used to build a shared archive.
31684 archive_cmds=$lt_archive_cmds_RC
31685 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
31686
31687 # Commands used to build a loadable module if different from building
31688 # a shared archive.
31689 module_cmds=$lt_module_cmds_RC
31690 module_expsym_cmds=$lt_module_expsym_cmds_RC
31691
31692 # Whether we are building with GNU ld or not.
31693 with_gnu_ld=$lt_with_gnu_ld_RC
31694
31695 # Flag that allows shared libraries with undefined symbols to be built.
31696 allow_undefined_flag=$lt_allow_undefined_flag_RC
31697
31698 # Flag that enforces no undefined symbols.
31699 no_undefined_flag=$lt_no_undefined_flag_RC
31700
31701 # Flag to hardcode \$libdir into a binary during linking.
31702 # This must work even if \$libdir does not exist
31703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
31704
31705 # Whether we need a single "-rpath" flag with a separated argument.
31706 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
31707
31708 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31709 # DIR into the resulting binary.
31710 hardcode_direct=$hardcode_direct_RC
31711
31712 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31713 # DIR into the resulting binary and the resulting library dependency is
31714 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31715 # library is relocated.
31716 hardcode_direct_absolute=$hardcode_direct_absolute_RC
31717
31718 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31719 # into the resulting binary.
31720 hardcode_minus_L=$hardcode_minus_L_RC
31721
31722 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31723 # into the resulting binary.
31724 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
31725
31726 # Set to "yes" if building a shared library automatically hardcodes DIR
31727 # into the library and all subsequent libraries and executables linked
31728 # against it.
31729 hardcode_automatic=$hardcode_automatic_RC
31730
31731 # Set to yes if linker adds runtime paths of dependent libraries
31732 # to runtime path list.
31733 inherit_rpath=$inherit_rpath_RC
31734
31735 # Whether libtool must link a program against all its dependency libraries.
31736 link_all_deplibs=$link_all_deplibs_RC
31737
31738 # Set to "yes" if exported symbols are required.
31739 always_export_symbols=$always_export_symbols_RC
31740
31741 # The commands to list exported symbols.
31742 export_symbols_cmds=$lt_export_symbols_cmds_RC
31743
31744 # Symbols that should not be listed in the preloaded symbols.
31745 exclude_expsyms=$lt_exclude_expsyms_RC
31746
31747 # Symbols that must always be exported.
31748 include_expsyms=$lt_include_expsyms_RC
31749
31750 # Commands necessary for linking programs (against libraries) with templates.
31751 prelink_cmds=$lt_prelink_cmds_RC
31752
31753 # Commands necessary for finishing linking programs.
31754 postlink_cmds=$lt_postlink_cmds_RC
31755
31756 # Specify filename containing input files.
31757 file_list_spec=$lt_file_list_spec_RC
31758
31759 # How to hardcode a shared library path into an executable.
31760 hardcode_action=$hardcode_action_RC
31761
31762 # The directories searched by this compiler when creating a shared library.
31763 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
31764
31765 # Dependencies to place before and after the objects being linked to
31766 # create a shared library.
31767 predep_objects=$lt_predep_objects_RC
31768 postdep_objects=$lt_postdep_objects_RC
31769 predeps=$lt_predeps_RC
31770 postdeps=$lt_postdeps_RC
31771
31772 # The library search path used internally by the compiler when linking
31773 # a shared library.
31774 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
31775
31776 # ### END LIBTOOL TAG CONFIG: RC
31777 _LT_EOF
31778
31779 ;;
31780
31781 esac
31782 done # for ac_tag
31783
31784
31785 as_fn_exit 0
31786 _ACEOF
31787 ac_clean_files=$ac_clean_files_save
31788
31789 test $ac_write_fail = 0 ||
31790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31791
31792
31793 # configure is writing to config.log, and then calls config.status.
31794 # config.status does its own redirection, appending to config.log.
31795 # Unfortunately, on DOS this fails, as config.log is still kept open
31796 # by configure, so config.status won't be able to write to it; its
31797 # output is simply discarded. So we exec the FD to /dev/null,
31798 # effectively closing config.log, so it can be properly (re)opened and
31799 # appended to by config.status. When coming back to configure, we
31800 # need to make the FD available again.
31801 if test "$no_create" != yes; then
31802 ac_cs_success=:
31803 ac_config_status_args=
31804 test "$silent" = yes &&
31805 ac_config_status_args="$ac_config_status_args --quiet"
31806 exec 5>/dev/null
31807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31808 exec 5>>config.log
31809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31810 # would make configure fail if this is the last instruction.
31811 $ac_cs_success || as_fn_exit 1
31812 fi
31813
31814 #
31815 # CONFIG_SUBDIRS section.
31816 #
31817 if test "$no_recursion" != yes; then
31818
31819 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
31820 # so they do not pile up.
31821 ac_sub_configure_args=
31822 ac_prev=
31823 eval "set x $ac_configure_args"
31824 shift
31825 for ac_arg
31826 do
31827 if test -n "$ac_prev"; then
31828 ac_prev=
31829 continue
31830 fi
31831 case $ac_arg in
31832 -cache-file | --cache-file | --cache-fil | --cache-fi \
31833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31834 ac_prev=cache_file ;;
31835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31837 | --c=*)
31838 ;;
31839 --config-cache | -C)
31840 ;;
31841 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31842 ac_prev=srcdir ;;
31843 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31844 ;;
31845 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31846 ac_prev=prefix ;;
31847 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31848 ;;
31849 --disable-option-checking)
31850 ;;
31851 *)
31852 case $ac_arg in
31853 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31854 esac
31855 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
31856 esac
31857 done
31858
31859 # Always prepend --prefix to ensure using the same prefix
31860 # in subdir configurations.
31861 ac_arg="--prefix=$prefix"
31862 case $ac_arg in
31863 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31864 esac
31865 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
31866
31867 # Pass --silent
31868 if test "$silent" = yes; then
31869 ac_sub_configure_args="--silent $ac_sub_configure_args"
31870 fi
31871
31872 # Always prepend --disable-option-checking to silence warnings, since
31873 # different subdirs can have different --enable and --with options.
31874 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
31875
31876 ac_popdir=`pwd`
31877 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31878
31879 # Do not complain, so a configure script can configure whichever
31880 # parts of a large source tree are present.
31881 test -d "$srcdir/$ac_dir" || continue
31882
31883 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
31884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
31885 printf "%s\n" "$ac_msg" >&6
31886 as_dir="$ac_dir"; as_fn_mkdir_p
31887 ac_builddir=.
31888
31889 case "$ac_dir" in
31890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31891 *)
31892 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
31893 # A ".." for each directory in $ac_dir_suffix.
31894 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31895 case $ac_top_builddir_sub in
31896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31898 esac ;;
31899 esac
31900 ac_abs_top_builddir=$ac_pwd
31901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31902 # for backward compatibility:
31903 ac_top_builddir=$ac_top_build_prefix
31904
31905 case $srcdir in
31906 .) # We are building in place.
31907 ac_srcdir=.
31908 ac_top_srcdir=$ac_top_builddir_sub
31909 ac_abs_top_srcdir=$ac_pwd ;;
31910 [\\/]* | ?:[\\/]* ) # Absolute name.
31911 ac_srcdir=$srcdir$ac_dir_suffix;
31912 ac_top_srcdir=$srcdir
31913 ac_abs_top_srcdir=$srcdir ;;
31914 *) # Relative name.
31915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31916 ac_top_srcdir=$ac_top_build_prefix$srcdir
31917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31918 esac
31919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31920
31921
31922 cd "$ac_dir"
31923
31924 # Check for configure.gnu first; this name is used for a wrapper for
31925 # Metaconfig's "Configure" on case-insensitive file systems.
31926 if test -f "$ac_srcdir/configure.gnu"; then
31927 ac_sub_configure=$ac_srcdir/configure.gnu
31928 elif test -f "$ac_srcdir/configure"; then
31929 ac_sub_configure=$ac_srcdir/configure
31930 else
31931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
31932 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31933 ac_sub_configure=
31934 fi
31935
31936 # The recursion is here.
31937 if test -n "$ac_sub_configure"; then
31938 # Make the cache file name correct relative to the subdirectory.
31939 case $cache_file in
31940 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31941 *) # Relative name.
31942 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
31943 esac
31944
31945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31946 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31947 # The eval makes quoting arguments work.
31948 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31949 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31950 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
31951 fi
31952
31953 cd "$ac_popdir"
31954 done
31955 fi
31956 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31958 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31959 fi
31960
31961
31962 echo "$PACKAGE_NAME $PACKAGE_VERSION configuration:"
31963 echo "-----------------------"
31964 echo " Compiler: ${CC}"
31965 echo " CFLAGS: ${CFLAGS}"
31966 echo " CXXFLAGS: ${CXXFLAGS}"
31967 echo " Libraries: ${LIBS}"
31968 echo " Stack size: ${GRN_STACK_SIZE}"
31969 echo " Document: ${document_available}"
31970 echo " buildable: ${document_buildable}"
31971 echo " built: ${have_built_document}"
31972 echo " Munin plugins: ${install_munin_plugins}"
31973 echo " Package platform: ${package_platform}"
31974 echo
31975 echo "Paths:"
31976 echo " Install path prefix: ${prefix}"
31977 echo " Configuration file: ${GRN_CONFIG_PATH}"
31978 echo
31979
31980 echo "Tokenizers:"
31981 echo " MeCab: $with_mecab"
31982 if test "x$with_mecab" = "xyes"; then
31983 echo " CPPFLAGS: $MECAB_CPPFLAGS"
31984 echo " LDFLAGS: $MECAB_LDFLAGS"
31985 echo " LIBS: $MECAB_LIBS"
31986 fi
31987 echo " KyTea: $with_kytea"
31988 if test "x$with_kytea" = "xyes"; then
31989 echo " CFLAGS: $KYTEA_CFLAGS"
31990 echo " LIBS: $KYTEA_LIBS"
31991 fi
31992 echo
31993
31994 echo "Token filters:"
31995 echo " libstemmer: $with_libstemmer"
31996 if test "x$with_libstemmer" = "xyes"; then
31997 echo " CFLAGS: $LIBSTEMMER_CFLAGS"
31998 echo " LIBS: $LIBSTEMMER_LIBS"
31999 fi
32000 echo
32001
32002 echo "Libraries:"
32003 echo " ZeroMQ: $zeromq_available"
32004 if test "x$zeromq_available" = "xyes"; then
32005 echo " CFLAGS: ${LIBZMQ_CFLAGS}"
32006 echo " LIBS: ${LIBZMQ_LIBS}"
32007 fi
32008 echo " libevent: $libevent_available"
32009 if test "x$libevent_available" = "xyes"; then
32010 echo " CFLAGS: ${LIBEVENT_CFLAGS}"
32011 echo " LIBS: ${LIBEVENT_LIBS}"
32012 fi
32013 echo " MessagePack: $message_pack_available"
32014 if test "x$message_pack_available" = "xyes"; then
32015 echo " CFLAGS: ${MESSAGE_PACK_CFLAGS}"
32016 echo " LIBS: ${MESSAGE_PACK_LIBS}"
32017 fi
32018 echo " libedit: $libedit_available"
32019 if test "x$libedit_available" = "xyes"; then
32020 echo " CFLAGS: ${LIBEDIT_CFLAGS}"
32021 echo " LIBS: ${LIBEDIT_LIBS}"
32022 fi
32023 echo " zlib: $GRN_WITH_ZLIB"
32024 if test "x$GRN_WITH_ZLIB" = "xyes"; then
32025 echo " CFLAGS: ${ZLIB_CFLAGS}"
32026 echo " LIBS: ${ZLIB_LIBS}"
32027 echo " LIB_DIR: ${ZLIB_LIB_DIR}"
32028 fi
32029 echo " LZ4: $GRN_WITH_LZ4"
32030 if test "x$GRN_WITH_LZ4" = "xyes"; then
32031 echo " CFLAGS: ${LIBLZ4_CFLAGS}"
32032 echo " LIBS: ${LIBLZ4_LIBS}"
32033 fi
32034 echo " Zstandard: $GRN_WITH_ZSTD"
32035 if test "x$GRN_WITH_ZSTD" = "xyes"; then
32036 echo " CFLAGS: ${LIBZSTD_CFLAGS}"
32037 echo " LIBS: ${LIBZSTD_LIBS}"
32038 fi
32039 echo " LuaJIT: $GRN_WITH_LUAJIT"
32040 if test "x$GRN_WITH_LUAJIT" = "xyes"; then
32041 echo " CFLAGS: ${LUAJIT_CFLAGS}"
32042 echo " LIBS: ${LUAJIT_LIBS}"
32043 fi
32044 echo " RapidJSON: $GRN_WITH_RAPIDJSON"
32045 if test "x$GRN_WITH_RAPIDJSON" = "xyes"; then
32046 echo " CFLAGS: ${RAPIDJSON_CFLAGS}"
32047 fi
32048 echo " Apache Arrow: $GRN_WITH_APACHE_ARROW"
32049 if test "x$GRN_WITH_APACHE_ARROW" = "xyes"; then
32050 echo " CFLAGS: ${APACHE_ARROW_CFLAGS}"
32051 echo " LIBS: ${APACHE_ARROW_LIBS}"
32052 fi
32053 echo " xxHash: $GRN_WITH_XXHASH"
32054 if test "x$GRN_WITH_XXHASH" = "xyes"; then
32055 echo " CFLAGS: ${LIBXXHASH_CFLAGS}"
32056 echo " LIBS: ${LIBXXHASH_LIBS}"
32057 fi
32058 echo " mruby: $enable_mruby"
32059 echo " jemalloc: $jemalloc_available"
32060 echo
32061
32062 echo "Tools:"
32063 echo " Sphinx: ${SPHINX_BUILD}"
32064 echo " lemon: ${LEMON}"
32065 echo " Ruby: ${RUBY}"
32066 echo
32067
32068 echo "For packages:"
32069 echo " rsync path: ${RSYNC_PATH}"
32070 echo " Launchpad PGP key: ${LAUNCHPAD_UPLOADER_PGP_KEY}"
32071 echo
32072
32073 echo "Now type 'make' to build $PACKAGE_NAME $PACKAGE_VERSION!"
32074