tarball import: glib-2.25.13.tar.bz2
[mirror-ossqm-glib2.git] / configure
blobf1ac7856d43a8f278365bf18d865c9ee704b9b72
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for glib 2.25.13.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=glib
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
240 exit 1
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
258 { eval $1=; unset $1;}
260 as_unset=as_fn_unset
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
267 return $1
268 } # as_fn_set_status
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
311 /^X\(\/\/\)$/{
312 s//\1/
315 /^X\(\/\).*/{
316 s//\1/
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
336 eval $1+=\$2
338 else
339 as_fn_append ()
341 eval $1=\$$1\$2
343 fi # as_fn_append
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
353 as_val=$(( $* ))
355 else
356 as_fn_arith ()
358 as_val=`expr "$@" || test $? -eq 1`
360 fi # as_fn_arith
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
407 /^X\/\(\/\/\)$/{
408 s//\1/
411 /^X\/\(\/\).*/{
412 s//\1/
415 s/.*/./; q'`
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
438 :lineno
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
466 ECHO_N='-n';;
467 esac
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
490 else
491 as_ln_s='cp -p'
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
537 case X$lt_ECHO in
538 X*--fallback-echo)
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 esac
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
547 shift
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
554 else
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
561 shift
562 cat <<_LT_EOF
564 _LT_EOF
565 exit 0
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 then
580 break
582 done
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
589 else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
594 # So, first we look for a working echo in the user's PATH.
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 ECHO="$dir/echo"
604 break
606 done
607 IFS="$lt_save_ifs"
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 ECHO='print -r'
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 ECHO='printf %s\n'
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 then
653 break
655 prev="$cmd"
656 done
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 ECHO=echo
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
685 # Name of the host.
686 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
691 # Initializations.
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
702 # Identity of this package.
703 PACKAGE_NAME='glib'
704 PACKAGE_TARNAME='glib'
705 PACKAGE_VERSION='2.25.13'
706 PACKAGE_STRING='glib 2.25.13'
707 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib'
708 PACKAGE_URL=''
710 ac_unique_file="glib/glib.h"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 # include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 # include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 gio_INCLUDES
752 gmodule_INCLUDES
753 gobject_INCLUDES
754 gthread_INCLUDES
755 glib_INCLUDES
756 config_h_INCLUDES
757 GLIB_LINK_FLAGS
758 HAVE_DBUS1_FALSE
759 HAVE_DBUS1_TRUE
760 DBUS1_LIBS
761 DBUS1_CFLAGS
762 LTP_GENHTML
764 SHTOOL
765 ABS_TAPSET_DIR
766 ENABLE_SYSTEMTAP_FALSE
767 ENABLE_SYSTEMTAP_TRUE
768 ENABLE_DTRACE_FALSE
769 ENABLE_DTRACE_TRUE
770 DTRACE
771 ENABLE_MAN_FALSE
772 ENABLE_MAN_TRUE
773 XMLCATALOG
774 XML_CATALOG_FILE
775 XSLTPROC
776 GTK_DOC_USE_REBASE_FALSE
777 GTK_DOC_USE_REBASE_TRUE
778 GTK_DOC_USE_LIBTOOL_FALSE
779 GTK_DOC_USE_LIBTOOL_TRUE
780 GTK_DOC_BUILD_PDF_FALSE
781 GTK_DOC_BUILD_PDF_TRUE
782 GTK_DOC_BUILD_HTML_FALSE
783 GTK_DOC_BUILD_HTML_TRUE
784 ENABLE_GTK_DOC_FALSE
785 ENABLE_GTK_DOC_TRUE
786 HTML_DIR
787 GTKDOC_MKPDF
788 GTKDOC_REBASE
789 GTKDOC_CHECK
790 GLIB_COMPILE_SCHEMAS
791 GLIB_GENMARSHAL
792 CROSS_COMPILING_FALSE
793 CROSS_COMPILING_TRUE
794 G_LIBS_EXTRA
795 PCRE_WARN_CFLAGS
796 PCRE_REQUIRES
797 PCRE_LIBS
798 PCRE_CFLAGS
799 USE_SYSTEM_PCRE_FALSE
800 USE_SYSTEM_PCRE_TRUE
801 ENABLE_REGEX_FALSE
802 ENABLE_REGEX_TRUE
803 HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_FALSE
804 HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_TRUE
805 G_THREAD_LIBS_EXTRA
806 G_THREAD_LIBS_FOR_GTHREAD
807 G_THREAD_LIBS
808 G_THREAD_CFLAGS
809 HAVE_THREADS_FALSE
810 HAVE_THREADS_TRUE
811 GTHREAD_COMPILE_IMPL_DEFINES
812 PLATFORM_WIN32_FALSE
813 PLATFORM_WIN32_TRUE
814 ENABLE_TIMELOOP_FALSE
815 ENABLE_TIMELOOP_TRUE
816 PLATFORMDEP
817 XATTR_LIBS
818 HAVE_FAM_FALSE
819 HAVE_FAM_TRUE
820 FAM_LIBS
821 HAVE_FEN_FALSE
822 HAVE_FEN_TRUE
823 HAVE_INOTIFY_FALSE
824 HAVE_INOTIFY_TRUE
825 SELINUX_LIBS
826 GIO_MODULE_DIR
828 GSPAWN
829 GLIB_DEBUG_FLAGS
830 G_MODULE_NEED_USCORE
831 G_MODULE_BROKEN_RTLD_GLOBAL
832 G_MODULE_HAVE_DLERROR
833 G_MODULE_LDFLAGS
834 G_MODULE_PLUGIN_LIBS
835 G_MODULE_LIBS_EXTRA
836 G_MODULE_LIBS
837 G_MODULE_IMPL
838 G_MODULE_SUPPORTED
839 HAVE_GOOD_PRINTF_FALSE
840 HAVE_GOOD_PRINTF_TRUE
841 LIBASYNCNS_LIBADD
842 HAVE_SUNSTUDIO_VISIBILITY_FALSE
843 HAVE_SUNSTUDIO_VISIBILITY_TRUE
844 HAVE_GNUC_VISIBILITY_FALSE
845 HAVE_GNUC_VISIBILITY_TRUE
846 ALLOCA
847 OS_WIN32_AND_DLL_COMPILATION_FALSE
848 OS_WIN32_AND_DLL_COMPILATION_TRUE
849 GLIB_WIN32_STATIC_COMPILATION_DEFINE
850 CXXCPP
851 OTOOL64
852 OTOOL
853 LIPO
854 NMEDIT
855 DSYMUTIL
856 lt_ECHO
858 LN_S
859 ac_ct_DUMPBIN
860 DUMPBIN
862 FGREP
864 LIBTOOL
865 OBJDUMP
866 DLLTOOL
868 ICONV_LIBS
869 GETTEXT_PACKAGE
870 MKINSTALLDIRS
871 POSUB
872 POFILES
873 PO_IN_DATADIR_FALSE
874 PO_IN_DATADIR_TRUE
875 INTLLIBS
876 INSTOBJEXT
877 GMOFILES
878 DATADIRNAME
879 CATOBJEXT
880 CATALOGS
881 XGETTEXT
882 GMSGFMT
883 MSGFMT_OPTS
884 MSGFMT
885 USE_NLS
886 CONFIG_STATUS_DEPENDENCIES
887 ZLIB_LIBS
888 ZLIB_CFLAGS
889 GLIBC21
890 EGREP
891 GREP
892 pkgpyexecdir
893 pyexecdir
894 pkgpythondir
895 pythondir
896 PYTHON_PLATFORM
897 PYTHON_EXEC_PREFIX
898 PYTHON_PREFIX
899 PYTHON_VERSION
900 PYTHON
901 PERL_PATH
902 REBUILD
903 INDENT
904 PERL
905 GLIB_EXTRA_CFLAGS
906 PKG_CONFIG
907 HAVE_CXX_FALSE
908 HAVE_CXX_TRUE
909 am__fastdepCXX_FALSE
910 am__fastdepCXX_TRUE
911 CXXDEPMODE
912 CXXFLAGS
913 ac_ct_CXX
915 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
916 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
917 ABS_GLIB_RUNTIME_LIBDIR
918 GLIB_RUNTIME_LIBDIR
919 DISABLE_MEM_POOLS
920 LIBTOOL_EXPORT_OPTIONS
921 MS_LIB_AVAILABLE_FALSE
922 MS_LIB_AVAILABLE_TRUE
923 ms_librarian
924 RANLIB
926 WINDRES
927 OS_CARBON_FALSE
928 OS_CARBON_TRUE
929 OS_LINUX_FALSE
930 OS_LINUX_TRUE
931 OS_UNIX_FALSE
932 OS_UNIX_TRUE
933 OS_WIN32_X64_FALSE
934 OS_WIN32_X64_TRUE
935 OS_WIN32_FALSE
936 OS_WIN32_TRUE
937 LIB_EXE_MACHINE_FLAG
938 host_os
939 host_vendor
940 host_cpu
941 host
942 build_os
943 build_vendor
944 build_cpu
945 build
947 am__fastdepCC_FALSE
948 am__fastdepCC_TRUE
949 CCDEPMODE
950 AMDEPBACKSLASH
951 AMDEP_FALSE
952 AMDEP_TRUE
953 am__quote
954 am__include
955 DEPDIR
956 OBJEXT
957 EXEEXT
958 ac_ct_CC
959 CPPFLAGS
960 LDFLAGS
961 CFLAGS
963 MAINT
964 MAINTAINER_MODE_FALSE
965 MAINTAINER_MODE_TRUE
966 LT_CURRENT_MINUS_AGE
967 LT_AGE
968 LT_REVISION
969 LT_CURRENT
970 LT_RELEASE
971 GLIB_BINARY_AGE
972 GLIB_INTERFACE_AGE
973 GLIB_VERSION
974 GLIB_MICRO_VERSION
975 GLIB_MINOR_VERSION
976 GLIB_MAJOR_VERSION
977 AM_BACKSLASH
978 AM_DEFAULT_VERBOSITY
979 am__untar
980 am__tar
981 AMTAR
982 am__leading_dot
983 SET_MAKE
985 mkdir_p
986 MKDIR_P
987 INSTALL_STRIP_PROGRAM
988 STRIP
989 install_sh
990 MAKEINFO
991 AUTOHEADER
992 AUTOMAKE
993 AUTOCONF
994 ACLOCAL
995 VERSION
996 PACKAGE
997 CYGPATH_W
998 am__isrc
999 INSTALL_DATA
1000 INSTALL_SCRIPT
1001 INSTALL_PROGRAM
1002 target_alias
1003 host_alias
1004 build_alias
1005 LIBS
1006 ECHO_T
1007 ECHO_N
1008 ECHO_C
1009 DEFS
1010 mandir
1011 localedir
1012 libdir
1013 psdir
1014 pdfdir
1015 dvidir
1016 htmldir
1017 infodir
1018 docdir
1019 oldincludedir
1020 includedir
1021 localstatedir
1022 sharedstatedir
1023 sysconfdir
1024 datadir
1025 datarootdir
1026 libexecdir
1027 sbindir
1028 bindir
1029 program_transform_name
1030 prefix
1031 exec_prefix
1032 PACKAGE_URL
1033 PACKAGE_BUGREPORT
1034 PACKAGE_STRING
1035 PACKAGE_VERSION
1036 PACKAGE_TARNAME
1037 PACKAGE_NAME
1038 PATH_SEPARATOR
1039 SHELL'
1040 ac_subst_files=''
1041 ac_user_opts='
1042 enable_option_checking
1043 enable_silent_rules
1044 enable_maintainer_mode
1045 enable_dependency_tracking
1046 enable_debug
1047 enable_gc_friendly
1048 enable_mem_pools
1049 enable_threads
1050 enable_rebuilds
1051 enable_visibility
1052 with_runtime_libdir
1053 enable_largefile
1054 with_libiconv
1055 enable_iconv_cache
1056 enable_static
1057 enable_shared
1058 with_pic
1059 enable_fast_install
1060 with_gnu_ld
1061 enable_libtool_lock
1062 enable_included_printf
1063 with_gio_module_dir
1064 enable_selinux
1065 enable_fam
1066 enable_xattr
1067 with_threads
1068 enable_regex
1069 with_pcre
1070 with_html_dir
1071 enable_gtk_doc
1072 enable_gtk_doc_html
1073 enable_gtk_doc_pdf
1074 enable_man
1075 with_xml_catalog
1076 enable_dtrace
1077 enable_systemtap
1078 with_tapset_install_dir
1079 enable_gcov
1080 enable_Bsymbolic
1082 ac_precious_vars='build_alias
1083 host_alias
1084 target_alias
1086 CFLAGS
1087 LDFLAGS
1088 LIBS
1089 CPPFLAGS
1092 CXXFLAGS
1094 PKG_CONFIG
1095 ZLIB_CFLAGS
1096 ZLIB_LIBS
1097 CXXCPP
1098 PCRE_CFLAGS
1099 PCRE_LIBS
1100 DBUS1_CFLAGS
1101 DBUS1_LIBS'
1104 # Initialize some variables set by options.
1105 ac_init_help=
1106 ac_init_version=false
1107 ac_unrecognized_opts=
1108 ac_unrecognized_sep=
1109 # The variables have the same names as the options, with
1110 # dashes changed to underlines.
1111 cache_file=/dev/null
1112 exec_prefix=NONE
1113 no_create=
1114 no_recursion=
1115 prefix=NONE
1116 program_prefix=NONE
1117 program_suffix=NONE
1118 program_transform_name=s,x,x,
1119 silent=
1120 site=
1121 srcdir=
1122 verbose=
1123 x_includes=NONE
1124 x_libraries=NONE
1126 # Installation directory options.
1127 # These are left unexpanded so users can "make install exec_prefix=/foo"
1128 # and all the variables that are supposed to be based on exec_prefix
1129 # by default will actually change.
1130 # Use braces instead of parens because sh, perl, etc. also accept them.
1131 # (The list follows the same order as the GNU Coding Standards.)
1132 bindir='${exec_prefix}/bin'
1133 sbindir='${exec_prefix}/sbin'
1134 libexecdir='${exec_prefix}/libexec'
1135 datarootdir='${prefix}/share'
1136 datadir='${datarootdir}'
1137 sysconfdir='${prefix}/etc'
1138 sharedstatedir='${prefix}/com'
1139 localstatedir='${prefix}/var'
1140 includedir='${prefix}/include'
1141 oldincludedir='/usr/include'
1142 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1143 infodir='${datarootdir}/info'
1144 htmldir='${docdir}'
1145 dvidir='${docdir}'
1146 pdfdir='${docdir}'
1147 psdir='${docdir}'
1148 libdir='${exec_prefix}/lib'
1149 localedir='${datarootdir}/locale'
1150 mandir='${datarootdir}/man'
1152 ac_prev=
1153 ac_dashdash=
1154 for ac_option
1156 # If the previous option needs an argument, assign it.
1157 if test -n "$ac_prev"; then
1158 eval $ac_prev=\$ac_option
1159 ac_prev=
1160 continue
1163 case $ac_option in
1164 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1165 *) ac_optarg=yes ;;
1166 esac
1168 # Accept the important Cygnus configure options, so we can diagnose typos.
1170 case $ac_dashdash$ac_option in
1172 ac_dashdash=yes ;;
1174 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1175 ac_prev=bindir ;;
1176 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1177 bindir=$ac_optarg ;;
1179 -build | --build | --buil | --bui | --bu)
1180 ac_prev=build_alias ;;
1181 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1182 build_alias=$ac_optarg ;;
1184 -cache-file | --cache-file | --cache-fil | --cache-fi \
1185 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1186 ac_prev=cache_file ;;
1187 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1188 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1189 cache_file=$ac_optarg ;;
1191 --config-cache | -C)
1192 cache_file=config.cache ;;
1194 -datadir | --datadir | --datadi | --datad)
1195 ac_prev=datadir ;;
1196 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1197 datadir=$ac_optarg ;;
1199 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1200 | --dataroo | --dataro | --datar)
1201 ac_prev=datarootdir ;;
1202 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1203 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1204 datarootdir=$ac_optarg ;;
1206 -disable-* | --disable-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error "invalid feature name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1215 "enable_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval enable_$ac_useropt=no ;;
1222 -docdir | --docdir | --docdi | --doc | --do)
1223 ac_prev=docdir ;;
1224 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1225 docdir=$ac_optarg ;;
1227 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1228 ac_prev=dvidir ;;
1229 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1230 dvidir=$ac_optarg ;;
1232 -enable-* | --enable-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error "invalid feature name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "enable_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval enable_$ac_useropt=\$ac_optarg ;;
1248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1250 | --exec | --exe | --ex)
1251 ac_prev=exec_prefix ;;
1252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1254 | --exec=* | --exe=* | --ex=*)
1255 exec_prefix=$ac_optarg ;;
1257 -gas | --gas | --ga | --g)
1258 # Obsolete; use --with-gas.
1259 with_gas=yes ;;
1261 -help | --help | --hel | --he | -h)
1262 ac_init_help=long ;;
1263 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1264 ac_init_help=recursive ;;
1265 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1266 ac_init_help=short ;;
1268 -host | --host | --hos | --ho)
1269 ac_prev=host_alias ;;
1270 -host=* | --host=* | --hos=* | --ho=*)
1271 host_alias=$ac_optarg ;;
1273 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1274 ac_prev=htmldir ;;
1275 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1276 | --ht=*)
1277 htmldir=$ac_optarg ;;
1279 -includedir | --includedir | --includedi | --included | --include \
1280 | --includ | --inclu | --incl | --inc)
1281 ac_prev=includedir ;;
1282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1283 | --includ=* | --inclu=* | --incl=* | --inc=*)
1284 includedir=$ac_optarg ;;
1286 -infodir | --infodir | --infodi | --infod | --info | --inf)
1287 ac_prev=infodir ;;
1288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1289 infodir=$ac_optarg ;;
1291 -libdir | --libdir | --libdi | --libd)
1292 ac_prev=libdir ;;
1293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1294 libdir=$ac_optarg ;;
1296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1297 | --libexe | --libex | --libe)
1298 ac_prev=libexecdir ;;
1299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1300 | --libexe=* | --libex=* | --libe=*)
1301 libexecdir=$ac_optarg ;;
1303 -localedir | --localedir | --localedi | --localed | --locale)
1304 ac_prev=localedir ;;
1305 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1306 localedir=$ac_optarg ;;
1308 -localstatedir | --localstatedir | --localstatedi | --localstated \
1309 | --localstate | --localstat | --localsta | --localst | --locals)
1310 ac_prev=localstatedir ;;
1311 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1312 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1313 localstatedir=$ac_optarg ;;
1315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1316 ac_prev=mandir ;;
1317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1318 mandir=$ac_optarg ;;
1320 -nfp | --nfp | --nf)
1321 # Obsolete; use --without-fp.
1322 with_fp=no ;;
1324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1325 | --no-cr | --no-c | -n)
1326 no_create=yes ;;
1328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1330 no_recursion=yes ;;
1332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1334 | --oldin | --oldi | --old | --ol | --o)
1335 ac_prev=oldincludedir ;;
1336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1339 oldincludedir=$ac_optarg ;;
1341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1342 ac_prev=prefix ;;
1343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1344 prefix=$ac_optarg ;;
1346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1347 | --program-pre | --program-pr | --program-p)
1348 ac_prev=program_prefix ;;
1349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1351 program_prefix=$ac_optarg ;;
1353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1354 | --program-suf | --program-su | --program-s)
1355 ac_prev=program_suffix ;;
1356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1358 program_suffix=$ac_optarg ;;
1360 -program-transform-name | --program-transform-name \
1361 | --program-transform-nam | --program-transform-na \
1362 | --program-transform-n | --program-transform- \
1363 | --program-transform | --program-transfor \
1364 | --program-transfo | --program-transf \
1365 | --program-trans | --program-tran \
1366 | --progr-tra | --program-tr | --program-t)
1367 ac_prev=program_transform_name ;;
1368 -program-transform-name=* | --program-transform-name=* \
1369 | --program-transform-nam=* | --program-transform-na=* \
1370 | --program-transform-n=* | --program-transform-=* \
1371 | --program-transform=* | --program-transfor=* \
1372 | --program-transfo=* | --program-transf=* \
1373 | --program-trans=* | --program-tran=* \
1374 | --progr-tra=* | --program-tr=* | --program-t=*)
1375 program_transform_name=$ac_optarg ;;
1377 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1378 ac_prev=pdfdir ;;
1379 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1380 pdfdir=$ac_optarg ;;
1382 -psdir | --psdir | --psdi | --psd | --ps)
1383 ac_prev=psdir ;;
1384 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1385 psdir=$ac_optarg ;;
1387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1388 | -silent | --silent | --silen | --sile | --sil)
1389 silent=yes ;;
1391 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1392 ac_prev=sbindir ;;
1393 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1394 | --sbi=* | --sb=*)
1395 sbindir=$ac_optarg ;;
1397 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1398 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1399 | --sharedst | --shareds | --shared | --share | --shar \
1400 | --sha | --sh)
1401 ac_prev=sharedstatedir ;;
1402 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1403 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1404 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1405 | --sha=* | --sh=*)
1406 sharedstatedir=$ac_optarg ;;
1408 -site | --site | --sit)
1409 ac_prev=site ;;
1410 -site=* | --site=* | --sit=*)
1411 site=$ac_optarg ;;
1413 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1414 ac_prev=srcdir ;;
1415 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1416 srcdir=$ac_optarg ;;
1418 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1419 | --syscon | --sysco | --sysc | --sys | --sy)
1420 ac_prev=sysconfdir ;;
1421 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1422 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1423 sysconfdir=$ac_optarg ;;
1425 -target | --target | --targe | --targ | --tar | --ta | --t)
1426 ac_prev=target_alias ;;
1427 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1428 target_alias=$ac_optarg ;;
1430 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1431 verbose=yes ;;
1433 -version | --version | --versio | --versi | --vers | -V)
1434 ac_init_version=: ;;
1436 -with-* | --with-*)
1437 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1438 # Reject names that are not valid shell variable names.
1439 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1440 as_fn_error "invalid package name: $ac_useropt"
1441 ac_useropt_orig=$ac_useropt
1442 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1443 case $ac_user_opts in
1445 "with_$ac_useropt"
1446 "*) ;;
1447 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1448 ac_unrecognized_sep=', ';;
1449 esac
1450 eval with_$ac_useropt=\$ac_optarg ;;
1452 -without-* | --without-*)
1453 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 as_fn_error "invalid package name: $ac_useropt"
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1461 "with_$ac_useropt"
1462 "*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval with_$ac_useropt=no ;;
1468 --x)
1469 # Obsolete; use --with-x.
1470 with_x=yes ;;
1472 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1473 | --x-incl | --x-inc | --x-in | --x-i)
1474 ac_prev=x_includes ;;
1475 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1476 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1477 x_includes=$ac_optarg ;;
1479 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1480 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1481 ac_prev=x_libraries ;;
1482 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1483 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1484 x_libraries=$ac_optarg ;;
1486 -*) as_fn_error "unrecognized option: \`$ac_option'
1487 Try \`$0 --help' for more information."
1490 *=*)
1491 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1492 # Reject names that are not valid shell variable names.
1493 case $ac_envvar in #(
1494 '' | [0-9]* | *[!_$as_cr_alnum]* )
1495 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1496 esac
1497 eval $ac_envvar=\$ac_optarg
1498 export $ac_envvar ;;
1501 # FIXME: should be removed in autoconf 3.0.
1502 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1503 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1504 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1505 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1508 esac
1509 done
1511 if test -n "$ac_prev"; then
1512 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1513 as_fn_error "missing argument to $ac_option"
1516 if test -n "$ac_unrecognized_opts"; then
1517 case $enable_option_checking in
1518 no) ;;
1519 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1520 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1521 esac
1524 # Check all directory arguments for consistency.
1525 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1526 datadir sysconfdir sharedstatedir localstatedir includedir \
1527 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1528 libdir localedir mandir
1530 eval ac_val=\$$ac_var
1531 # Remove trailing slashes.
1532 case $ac_val in
1533 */ )
1534 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1535 eval $ac_var=\$ac_val;;
1536 esac
1537 # Be sure to have absolute directory names.
1538 case $ac_val in
1539 [\\/$]* | ?:[\\/]* ) continue;;
1540 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1541 esac
1542 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1543 done
1545 # There might be people who depend on the old broken behavior: `$host'
1546 # used to hold the argument of --host etc.
1547 # FIXME: To remove some day.
1548 build=$build_alias
1549 host=$host_alias
1550 target=$target_alias
1552 # FIXME: To remove some day.
1553 if test "x$host_alias" != x; then
1554 if test "x$build_alias" = x; then
1555 cross_compiling=maybe
1556 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1557 If a cross compiler is detected then cross compile mode will be used." >&2
1558 elif test "x$build_alias" != "x$host_alias"; then
1559 cross_compiling=yes
1563 ac_tool_prefix=
1564 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1566 test "$silent" = yes && exec 6>/dev/null
1569 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1570 ac_ls_di=`ls -di .` &&
1571 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1572 as_fn_error "working directory cannot be determined"
1573 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1574 as_fn_error "pwd does not report name of working directory"
1577 # Find the source files, if location was not specified.
1578 if test -z "$srcdir"; then
1579 ac_srcdir_defaulted=yes
1580 # Try the directory containing this script, then the parent directory.
1581 ac_confdir=`$as_dirname -- "$as_myself" ||
1582 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1583 X"$as_myself" : 'X\(//\)[^/]' \| \
1584 X"$as_myself" : 'X\(//\)$' \| \
1585 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1586 $as_echo X"$as_myself" |
1587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1588 s//\1/
1591 /^X\(\/\/\)[^/].*/{
1592 s//\1/
1595 /^X\(\/\/\)$/{
1596 s//\1/
1599 /^X\(\/\).*/{
1600 s//\1/
1603 s/.*/./; q'`
1604 srcdir=$ac_confdir
1605 if test ! -r "$srcdir/$ac_unique_file"; then
1606 srcdir=..
1608 else
1609 ac_srcdir_defaulted=no
1611 if test ! -r "$srcdir/$ac_unique_file"; then
1612 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1613 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1615 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1616 ac_abs_confdir=`(
1617 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1618 pwd)`
1619 # When building in place, set srcdir=.
1620 if test "$ac_abs_confdir" = "$ac_pwd"; then
1621 srcdir=.
1623 # Remove unnecessary trailing slashes from srcdir.
1624 # Double slashes in file names in object file debugging info
1625 # mess up M-x gdb in Emacs.
1626 case $srcdir in
1627 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1628 esac
1629 for ac_var in $ac_precious_vars; do
1630 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1631 eval ac_env_${ac_var}_value=\$${ac_var}
1632 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1633 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1634 done
1637 # Report the --help message.
1639 if test "$ac_init_help" = "long"; then
1640 # Omit some internal or obsolete options to make the list less imposing.
1641 # This message is too long to be a string in the A/UX 3.1 sh.
1642 cat <<_ACEOF
1643 \`configure' configures glib 2.25.13 to adapt to many kinds of systems.
1645 Usage: $0 [OPTION]... [VAR=VALUE]...
1647 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1648 VAR=VALUE. See below for descriptions of some of the useful variables.
1650 Defaults for the options are specified in brackets.
1652 Configuration:
1653 -h, --help display this help and exit
1654 --help=short display options specific to this package
1655 --help=recursive display the short help of all the included packages
1656 -V, --version display version information and exit
1657 -q, --quiet, --silent do not print \`checking...' messages
1658 --cache-file=FILE cache test results in FILE [disabled]
1659 -C, --config-cache alias for \`--cache-file=config.cache'
1660 -n, --no-create do not create output files
1661 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1663 Installation directories:
1664 --prefix=PREFIX install architecture-independent files in PREFIX
1665 [$ac_default_prefix]
1666 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1667 [PREFIX]
1669 By default, \`make install' will install all the files in
1670 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1671 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1672 for instance \`--prefix=\$HOME'.
1674 For better control, use the options below.
1676 Fine tuning of the installation directories:
1677 --bindir=DIR user executables [EPREFIX/bin]
1678 --sbindir=DIR system admin executables [EPREFIX/sbin]
1679 --libexecdir=DIR program executables [EPREFIX/libexec]
1680 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1681 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1682 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1683 --libdir=DIR object code libraries [EPREFIX/lib]
1684 --includedir=DIR C header files [PREFIX/include]
1685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1686 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1687 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1688 --infodir=DIR info documentation [DATAROOTDIR/info]
1689 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1690 --mandir=DIR man documentation [DATAROOTDIR/man]
1691 --docdir=DIR documentation root [DATAROOTDIR/doc/glib]
1692 --htmldir=DIR html documentation [DOCDIR]
1693 --dvidir=DIR dvi documentation [DOCDIR]
1694 --pdfdir=DIR pdf documentation [DOCDIR]
1695 --psdir=DIR ps documentation [DOCDIR]
1696 _ACEOF
1698 cat <<\_ACEOF
1700 Program names:
1701 --program-prefix=PREFIX prepend PREFIX to installed program names
1702 --program-suffix=SUFFIX append SUFFIX to installed program names
1703 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1705 System types:
1706 --build=BUILD configure for building on BUILD [guessed]
1707 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1708 _ACEOF
1711 if test -n "$ac_init_help"; then
1712 case $ac_init_help in
1713 short | recursive ) echo "Configuration of glib 2.25.13:";;
1714 esac
1715 cat <<\_ACEOF
1717 Optional Features:
1718 --disable-option-checking ignore unrecognized --enable/--with options
1719 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1720 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1721 --enable-silent-rules less verbose build output (undo: `make V=1')
1722 --disable-silent-rules verbose build output (undo: `make V=0')
1723 --enable-maintainer-mode enable make rules and dependencies not useful
1724 (and sometimes confusing) to the casual installer
1725 --disable-dependency-tracking speeds up one-time build
1726 --enable-dependency-tracking do not reject slow dependency extractors
1727 --enable-debug=[no/minimum/yes]
1728 turn on debugging [default=yes]
1729 --enable-gc-friendly turn on garbage collector friendliness [default=no]
1730 --disable-mem-pools disable all glib memory pools
1731 --enable-threads turn on basic thread support [default=yes] ([=no]
1732 will override --with-threads)
1733 --disable-rebuilds disable all source autogeneration rules
1734 --disable-visibility don't use ELF visibility attributes
1735 --disable-largefile omit support for large files
1736 --enable-iconv-cache=[yes/no/auto]
1737 cache iconv descriptors [default=auto]
1738 --enable-static[=PKGS] build static libraries [default=no]
1739 --enable-shared[=PKGS] build shared libraries [default=yes]
1740 --enable-fast-install[=PKGS]
1741 optimize for fast installation [default=yes]
1742 --disable-libtool-lock avoid locking (might break parallel builds)
1743 --enable-included-printf
1744 use included printf [default=auto]
1745 --disable-selinux build without selinux support
1746 --disable-fam build without enabling fam for file system monitoring
1747 --disable-xattr build without xattr support
1748 --disable-regex disable the compilation of GRegex
1749 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1750 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1751 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1752 --enable-man regenerate man pages from Docbook [default=no]
1753 --enable-dtrace Enable inclusion of dtrace trace support
1754 --enable-systemtap Enable inclusion of systemtap trace support
1755 --enable-gcov Enable gcov
1756 --disable-Bsymbolic avoid linking with -Bsymbolic
1758 Optional Packages:
1759 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1760 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1761 --with-runtime-libdir=RELPATH
1762 Install runtime libraries relative to libdir
1763 --with-libiconv=[no/gnu/native]
1764 use the libiconv library
1765 --with-pic try to use only PIC/non-PIC objects [default=use
1766 both]
1767 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1768 --with-gio-module-dir=PATH
1769 Load gio modules from this directory
1770 [LIBDIR/gio/modules]
1771 --with-threads=[none/posix/dce/win32]
1772 specify a thread implementation to use
1773 --with-pcre=[internal/system]
1774 specify whether to use the internal or the
1775 system-supplied PCRE library
1776 --with-html-dir=PATH path to installed docs
1777 --with-xml-catalog=CATALOG
1778 path to xml catalog to use
1779 --with-tapset-install-dir
1780 The absolute path where the systemtap tapsets will
1781 be installed
1783 Some influential environment variables:
1784 CC C compiler command
1785 CFLAGS C compiler flags
1786 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1787 nonstandard directory <lib dir>
1788 LIBS libraries to pass to the linker, e.g. -l<library>
1789 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1790 you have headers in a nonstandard directory <include dir>
1791 CPP C preprocessor
1792 CXX C++ compiler command
1793 CXXFLAGS C++ compiler flags
1794 PKG_CONFIG path to pkg-config utility
1795 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1796 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1797 CXXCPP C++ preprocessor
1798 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1799 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1800 DBUS1_CFLAGS
1801 C compiler flags for DBUS1, overriding pkg-config
1802 DBUS1_LIBS linker flags for DBUS1, overriding pkg-config
1804 Use these variables to override the choices made by `configure' or to help
1805 it to find libraries and programs with nonstandard names/locations.
1807 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1808 _ACEOF
1809 ac_status=$?
1812 if test "$ac_init_help" = "recursive"; then
1813 # If there are subdirs, report their specific --help.
1814 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1815 test -d "$ac_dir" ||
1816 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1817 continue
1818 ac_builddir=.
1820 case "$ac_dir" in
1821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1824 # A ".." for each directory in $ac_dir_suffix.
1825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1826 case $ac_top_builddir_sub in
1827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1829 esac ;;
1830 esac
1831 ac_abs_top_builddir=$ac_pwd
1832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1833 # for backward compatibility:
1834 ac_top_builddir=$ac_top_build_prefix
1836 case $srcdir in
1837 .) # We are building in place.
1838 ac_srcdir=.
1839 ac_top_srcdir=$ac_top_builddir_sub
1840 ac_abs_top_srcdir=$ac_pwd ;;
1841 [\\/]* | ?:[\\/]* ) # Absolute name.
1842 ac_srcdir=$srcdir$ac_dir_suffix;
1843 ac_top_srcdir=$srcdir
1844 ac_abs_top_srcdir=$srcdir ;;
1845 *) # Relative name.
1846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1847 ac_top_srcdir=$ac_top_build_prefix$srcdir
1848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1849 esac
1850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1852 cd "$ac_dir" || { ac_status=$?; continue; }
1853 # Check for guested configure.
1854 if test -f "$ac_srcdir/configure.gnu"; then
1855 echo &&
1856 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1857 elif test -f "$ac_srcdir/configure"; then
1858 echo &&
1859 $SHELL "$ac_srcdir/configure" --help=recursive
1860 else
1861 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1862 fi || ac_status=$?
1863 cd "$ac_pwd" || { ac_status=$?; break; }
1864 done
1867 test -n "$ac_init_help" && exit $ac_status
1868 if $ac_init_version; then
1869 cat <<\_ACEOF
1870 glib configure 2.25.13
1871 generated by GNU Autoconf 2.65
1873 Copyright (C) 2009 Free Software Foundation, Inc.
1874 This configure script is free software; the Free Software Foundation
1875 gives unlimited permission to copy, distribute and modify it.
1876 _ACEOF
1877 exit
1880 ## ------------------------ ##
1881 ## Autoconf initialization. ##
1882 ## ------------------------ ##
1884 # ac_fn_c_try_compile LINENO
1885 # --------------------------
1886 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext
1891 if { { ac_try="$ac_compile"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_compile") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest.$ac_objext; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=1
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 as_fn_set_status $ac_retval
1920 } # ac_fn_c_try_compile
1922 # ac_fn_c_try_cpp LINENO
1923 # ----------------------
1924 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_c_try_cpp ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { { ac_try="$ac_cpp conftest.$ac_ext"
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 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_cpp conftest.$ac_ext") 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
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } >/dev/null && {
1944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=1
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_cpp
1959 # ac_fn_cxx_try_compile LINENO
1960 # ----------------------------
1961 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_cxx_try_compile ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext
1966 if { { ac_try="$ac_compile"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_compile") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest.$ac_objext; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 ac_retval=1
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
1995 } # ac_fn_cxx_try_compile
1997 # ac_fn_c_try_link LINENO
1998 # -----------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_c_try_link ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_c_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest$ac_exeext && {
2023 test "$cross_compiling" = yes ||
2024 $as_test_x conftest$ac_exeext
2025 }; then :
2026 ac_retval=0
2027 else
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2031 ac_retval=1
2033 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 # interfere with the next link command; also delete a directory that is
2036 # left behind by Apple's compiler. We do this before executing the actions.
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 as_fn_set_status $ac_retval
2041 } # ac_fn_c_try_link
2043 # ac_fn_c_check_func LINENO FUNC VAR
2044 # ----------------------------------
2045 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2046 ac_fn_c_check_func ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2058 #define $2 innocuous_$2
2060 /* System header to define __stub macros and hopefully few prototypes,
2061 which can conflict with char $2 (); below.
2062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2063 <limits.h> exists even on freestanding compilers. */
2065 #ifdef __STDC__
2066 # include <limits.h>
2067 #else
2068 # include <assert.h>
2069 #endif
2071 #undef $2
2073 /* Override any GCC internal prototype to avoid an error.
2074 Use char because int might match the return type of a GCC
2075 builtin and then its argument prototype would still apply. */
2076 #ifdef __cplusplus
2077 extern "C"
2078 #endif
2079 char $2 ();
2080 /* The GNU C library defines this for functions which it implements
2081 to always fail with ENOSYS. Some functions are actually named
2082 something starting with __ and the normal name is an alias. */
2083 #if defined __stub_$2 || defined __stub___$2
2084 choke me
2085 #endif
2088 main ()
2090 return $2 ();
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_link "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2100 rm -f core conftest.err conftest.$ac_objext \
2101 conftest$ac_exeext conftest.$ac_ext
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 } # ac_fn_c_check_func
2110 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2113 # the include files in INCLUDES and setting the cache variable VAR
2114 # accordingly.
2115 ac_fn_c_check_header_mongrel ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 $as_echo_n "(cached) " >&6
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 else
2128 # Is the header compilable?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2130 $as_echo_n "checking $2 usability... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2134 #include <$2>
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_header_compiler=yes
2138 else
2139 ac_header_compiler=no
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2143 $as_echo "$ac_header_compiler" >&6; }
2145 # Is the header present?
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2147 $as_echo_n "checking $2 presence... " >&6; }
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 #include <$2>
2151 _ACEOF
2152 if ac_fn_c_try_cpp "$LINENO"; then :
2153 ac_header_preproc=yes
2154 else
2155 ac_header_preproc=no
2157 rm -f conftest.err conftest.$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2159 $as_echo "$ac_header_preproc" >&6; }
2161 # So? What about this header?
2162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2163 yes:no: )
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2165 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2169 no:yes:* )
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2171 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2173 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2175 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2177 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 ( cat <<\_ASBOX
2181 ## ------------------------------------------------------------------- ##
2182 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2183 ## ------------------------------------------------------------------- ##
2184 _ASBOX
2185 ) | sed "s/^/$as_me: WARNING: /" >&2
2187 esac
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 eval "$3=\$ac_header_compiler"
2195 eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2199 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201 } # ac_fn_c_check_header_mongrel
2203 # ac_fn_c_try_run LINENO
2204 # ----------------------
2205 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2206 # that executables *can* be run.
2207 ac_fn_c_try_run ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 if { { ac_try="$ac_link"
2211 case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214 esac
2215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2216 $as_echo "$ac_try_echo"; } >&5
2217 (eval "$ac_link") 2>&5
2218 ac_status=$?
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2221 { { case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224 esac
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 $as_echo "$ac_try_echo"; } >&5
2227 (eval "$ac_try") 2>&5
2228 ac_status=$?
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; }; }; then :
2231 ac_retval=0
2232 else
2233 $as_echo "$as_me: program exited with status $ac_status" >&5
2234 $as_echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2237 ac_retval=$ac_status
2239 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_c_try_run
2245 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2246 # -------------------------------------------------------
2247 # Tests whether HEADER exists and can be compiled using the include files in
2248 # INCLUDES, setting the cache variable VAR accordingly.
2249 ac_fn_c_check_header_compile ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2260 #include <$2>
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 eval "$3=yes"
2264 else
2265 eval "$3=no"
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 eval ac_res=\$$3
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274 } # ac_fn_c_check_header_compile
2276 # ac_fn_cxx_try_cpp LINENO
2277 # ------------------------
2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_cxx_try_cpp ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 if { { ac_try="$ac_cpp conftest.$ac_ext"
2283 case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2290 ac_status=$?
2291 if test -s conftest.err; then
2292 grep -v '^ *+' conftest.err >conftest.er1
2293 cat conftest.er1 >&5
2294 mv -f conftest.er1 conftest.err
2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297 test $ac_status = 0; } >/dev/null && {
2298 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2299 test ! -s conftest.err
2300 }; then :
2301 ac_retval=0
2302 else
2303 $as_echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 ac_retval=1
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309 as_fn_set_status $ac_retval
2311 } # ac_fn_cxx_try_cpp
2313 # ac_fn_cxx_try_link LINENO
2314 # -------------------------
2315 # Try to link conftest.$ac_ext, and return whether this succeeded.
2316 ac_fn_cxx_try_link ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 rm -f conftest.$ac_objext conftest$ac_exeext
2320 if { { ac_try="$ac_link"
2321 case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326 $as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_link") 2>conftest.err
2328 ac_status=$?
2329 if test -s conftest.err; then
2330 grep -v '^ *+' conftest.err >conftest.er1
2331 cat conftest.er1 >&5
2332 mv -f conftest.er1 conftest.err
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; } && {
2336 test -z "$ac_cxx_werror_flag" ||
2337 test ! -s conftest.err
2338 } && test -s conftest$ac_exeext && {
2339 test "$cross_compiling" = yes ||
2340 $as_test_x conftest$ac_exeext
2341 }; then :
2342 ac_retval=0
2343 else
2344 $as_echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 ac_retval=1
2349 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2350 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2351 # interfere with the next link command; also delete a directory that is
2352 # left behind by Apple's compiler. We do this before executing the actions.
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_cxx_try_link
2359 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2360 # --------------------------------------------
2361 # Tries to find the compile-time value of EXPR in a program that includes
2362 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2363 # computed
2364 ac_fn_c_compute_int ()
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 if test "$cross_compiling" = yes; then
2368 # Depending upon the size, compute the lo and hi bounds.
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2373 main ()
2375 static int test_array [1 - 2 * !(($2) >= 0)];
2376 test_array [0] = 0
2379 return 0;
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 ac_lo=0 ac_mid=0
2384 while :; do
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2389 main ()
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392 test_array [0] = 0
2395 return 0;
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399 ac_hi=$ac_mid; break
2400 else
2401 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2402 if test $ac_lo -le $ac_mid; then
2403 ac_lo= ac_hi=
2404 break
2406 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 done
2410 else
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2415 main ()
2417 static int test_array [1 - 2 * !(($2) < 0)];
2418 test_array [0] = 0
2421 return 0;
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 ac_hi=-1 ac_mid=-1
2426 while :; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 main ()
2433 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2434 test_array [0] = 0
2437 return 0;
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 ac_lo=$ac_mid; break
2442 else
2443 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2444 if test $ac_mid -le $ac_hi; then
2445 ac_lo= ac_hi=
2446 break
2448 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 done
2452 else
2453 ac_lo= ac_hi=
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 # Binary search between lo and hi bounds.
2459 while test "x$ac_lo" != "x$ac_hi"; do
2460 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2465 main ()
2467 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2468 test_array [0] = 0
2471 return 0;
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475 ac_hi=$ac_mid
2476 else
2477 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 done
2481 case $ac_lo in #((
2482 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2483 '') ac_retval=1 ;;
2484 esac
2485 else
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2489 static long int longval () { return $2; }
2490 static unsigned long int ulongval () { return $2; }
2491 #include <stdio.h>
2492 #include <stdlib.h>
2494 main ()
2497 FILE *f = fopen ("conftest.val", "w");
2498 if (! f)
2499 return 1;
2500 if (($2) < 0)
2502 long int i = longval ();
2503 if (i != ($2))
2504 return 1;
2505 fprintf (f, "%ld", i);
2507 else
2509 unsigned long int i = ulongval ();
2510 if (i != ($2))
2511 return 1;
2512 fprintf (f, "%lu", i);
2514 /* Do not output a trailing newline, as this causes \r\n confusion
2515 on some platforms. */
2516 return ferror (f) || fclose (f) != 0;
2519 return 0;
2521 _ACEOF
2522 if ac_fn_c_try_run "$LINENO"; then :
2523 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2524 else
2525 ac_retval=1
2527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2528 conftest.$ac_objext conftest.beam conftest.$ac_ext
2529 rm -f conftest.val
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533 as_fn_set_status $ac_retval
2535 } # ac_fn_c_compute_int
2537 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2538 # ----------------------------------------------------
2539 # Tries to find if the field MEMBER exists in type AGGR, after including
2540 # INCLUDES, setting cache variable VAR accordingly.
2541 ac_fn_c_check_member ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2545 $as_echo_n "checking for $2.$3... " >&6; }
2546 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2553 main ()
2555 static $2 ac_aggr;
2556 if (ac_aggr.$3)
2557 return 0;
2559 return 0;
2561 _ACEOF
2562 if ac_fn_c_try_compile "$LINENO"; then :
2563 eval "$4=yes"
2564 else
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2569 main ()
2571 static $2 ac_aggr;
2572 if (sizeof ac_aggr.$3)
2573 return 0;
2575 return 0;
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579 eval "$4=yes"
2580 else
2581 eval "$4=no"
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 eval ac_res=\$$4
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2592 } # ac_fn_c_check_member
2594 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2595 # -------------------------------------------
2596 # Tests whether TYPE exists after having included INCLUDES, setting cache
2597 # variable VAR accordingly.
2598 ac_fn_c_check_type ()
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2602 $as_echo_n "checking for $2... " >&6; }
2603 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 eval "$3=no"
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2611 main ()
2613 if (sizeof ($2))
2614 return 0;
2616 return 0;
2618 _ACEOF
2619 if ac_fn_c_try_compile "$LINENO"; then :
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2624 main ()
2626 if (sizeof (($2)))
2627 return 0;
2629 return 0;
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"; then :
2634 else
2635 eval "$3=yes"
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2646 } # ac_fn_c_check_type
2647 cat >config.log <<_ACEOF
2648 This file contains any messages produced by compilers while
2649 running configure, to aid debugging if configure makes a mistake.
2651 It was created by glib $as_me 2.25.13, which was
2652 generated by GNU Autoconf 2.65. Invocation command line was
2654 $ $0 $@
2656 _ACEOF
2657 exec 5>>config.log
2659 cat <<_ASUNAME
2660 ## --------- ##
2661 ## Platform. ##
2662 ## --------- ##
2664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2681 _ASUNAME
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 $as_echo "PATH: $as_dir"
2689 done
2690 IFS=$as_save_IFS
2692 } >&5
2694 cat >&5 <<_ACEOF
2697 ## ----------- ##
2698 ## Core tests. ##
2699 ## ----------- ##
2701 _ACEOF
2704 # Keep a trace of the command line.
2705 # Strip out --no-create and --no-recursion so they do not pile up.
2706 # Strip out --silent because we don't want to record it for future runs.
2707 # Also quote any args containing shell meta-characters.
2708 # Make two passes to allow for proper duplicate-argument suppression.
2709 ac_configure_args=
2710 ac_configure_args0=
2711 ac_configure_args1=
2712 ac_must_keep_next=false
2713 for ac_pass in 1 2
2715 for ac_arg
2717 case $ac_arg in
2718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2720 | -silent | --silent | --silen | --sile | --sil)
2721 continue ;;
2722 *\'*)
2723 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 esac
2725 case $ac_pass in
2726 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2728 as_fn_append ac_configure_args1 " '$ac_arg'"
2729 if test $ac_must_keep_next = true; then
2730 ac_must_keep_next=false # Got value, back to normal.
2731 else
2732 case $ac_arg in
2733 *=* | --config-cache | -C | -disable-* | --disable-* \
2734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2736 | -with-* | --with-* | -without-* | --without-* | --x)
2737 case "$ac_configure_args0 " in
2738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2739 esac
2741 -* ) ac_must_keep_next=true ;;
2742 esac
2744 as_fn_append ac_configure_args " '$ac_arg'"
2746 esac
2747 done
2748 done
2749 { ac_configure_args0=; unset ac_configure_args0;}
2750 { ac_configure_args1=; unset ac_configure_args1;}
2752 # When interrupted or exit'd, cleanup temporary files, and complete
2753 # config.log. We remove comments because anyway the quotes in there
2754 # would cause problems or look ugly.
2755 # WARNING: Use '\'' to represent an apostrophe within the trap.
2756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2757 trap 'exit_status=$?
2758 # Save into config.log some information that might help in debugging.
2760 echo
2762 cat <<\_ASBOX
2763 ## ---------------- ##
2764 ## Cache variables. ##
2765 ## ---------------- ##
2766 _ASBOX
2767 echo
2768 # The following way of writing the cache mishandles newlines in values,
2770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2771 eval ac_val=\$$ac_var
2772 case $ac_val in #(
2773 *${as_nl}*)
2774 case $ac_var in #(
2775 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2777 esac
2778 case $ac_var in #(
2779 _ | IFS | as_nl) ;; #(
2780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2781 *) { eval $ac_var=; unset $ac_var;} ;;
2782 esac ;;
2783 esac
2784 done
2785 (set) 2>&1 |
2786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2787 *${as_nl}ac_space=\ *)
2788 sed -n \
2789 "s/'\''/'\''\\\\'\'''\''/g;
2790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2791 ;; #(
2793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2795 esac |
2796 sort
2798 echo
2800 cat <<\_ASBOX
2801 ## ----------------- ##
2802 ## Output variables. ##
2803 ## ----------------- ##
2804 _ASBOX
2805 echo
2806 for ac_var in $ac_subst_vars
2808 eval ac_val=\$$ac_var
2809 case $ac_val in
2810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2811 esac
2812 $as_echo "$ac_var='\''$ac_val'\''"
2813 done | sort
2814 echo
2816 if test -n "$ac_subst_files"; then
2817 cat <<\_ASBOX
2818 ## ------------------- ##
2819 ## File substitutions. ##
2820 ## ------------------- ##
2821 _ASBOX
2822 echo
2823 for ac_var in $ac_subst_files
2825 eval ac_val=\$$ac_var
2826 case $ac_val in
2827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828 esac
2829 $as_echo "$ac_var='\''$ac_val'\''"
2830 done | sort
2831 echo
2834 if test -s confdefs.h; then
2835 cat <<\_ASBOX
2836 ## ----------- ##
2837 ## confdefs.h. ##
2838 ## ----------- ##
2839 _ASBOX
2840 echo
2841 cat confdefs.h
2842 echo
2844 test "$ac_signal" != 0 &&
2845 $as_echo "$as_me: caught signal $ac_signal"
2846 $as_echo "$as_me: exit $exit_status"
2847 } >&5
2848 rm -f core *.core core.conftest.* &&
2849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2850 exit $exit_status
2852 for ac_signal in 1 2 13 15; do
2853 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2854 done
2855 ac_signal=0
2857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2858 rm -f -r conftest* confdefs.h
2860 $as_echo "/* confdefs.h */" > confdefs.h
2862 # Predefined preprocessor variables.
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_NAME "$PACKAGE_NAME"
2866 _ACEOF
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2870 _ACEOF
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2874 _ACEOF
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_STRING "$PACKAGE_STRING"
2878 _ACEOF
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_URL "$PACKAGE_URL"
2886 _ACEOF
2889 # Let the site file select an alternate cache file if it wants to.
2890 # Prefer an explicitly selected file to automatically selected ones.
2891 ac_site_file1=NONE
2892 ac_site_file2=NONE
2893 if test -n "$CONFIG_SITE"; then
2894 ac_site_file1=$CONFIG_SITE
2895 elif test "x$prefix" != xNONE; then
2896 ac_site_file1=$prefix/share/config.site
2897 ac_site_file2=$prefix/etc/config.site
2898 else
2899 ac_site_file1=$ac_default_prefix/share/config.site
2900 ac_site_file2=$ac_default_prefix/etc/config.site
2902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2904 test "x$ac_site_file" = xNONE && continue
2905 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908 sed 's/^/| /' "$ac_site_file" >&5
2909 . "$ac_site_file"
2911 done
2913 if test -r "$cache_file"; then
2914 # Some versions of bash will fail to source /dev/null (special files
2915 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2916 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2918 $as_echo "$as_me: loading cache $cache_file" >&6;}
2919 case $cache_file in
2920 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2921 *) . "./$cache_file";;
2922 esac
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2926 $as_echo "$as_me: creating cache $cache_file" >&6;}
2927 >$cache_file
2930 # Check that the precious variables saved in the cache have kept the same
2931 # value.
2932 ac_cache_corrupted=false
2933 for ac_var in $ac_precious_vars; do
2934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2935 eval ac_new_set=\$ac_env_${ac_var}_set
2936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2937 eval ac_new_val=\$ac_env_${ac_var}_value
2938 case $ac_old_set,$ac_new_set in
2939 set,)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2942 ac_cache_corrupted=: ;;
2943 ,set)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2946 ac_cache_corrupted=: ;;
2947 ,);;
2949 if test "x$ac_old_val" != "x$ac_new_val"; then
2950 # differences in whitespace do not lead to failure.
2951 ac_old_val_w=`echo x $ac_old_val`
2952 ac_new_val_w=`echo x $ac_new_val`
2953 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2956 ac_cache_corrupted=:
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2960 eval $ac_var=\$ac_old_val
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2963 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2965 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2966 fi;;
2967 esac
2968 # Pass precious variables to config.status.
2969 if test "$ac_new_set" = set; then
2970 case $ac_new_val in
2971 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2972 *) ac_arg=$ac_var=$ac_new_val ;;
2973 esac
2974 case " $ac_configure_args " in
2975 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2976 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2977 esac
2979 done
2980 if $ac_cache_corrupted; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2985 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2987 ## -------------------- ##
2988 ## Main body of script. ##
2989 ## -------------------- ##
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 ac_config_headers="$ac_config_headers config.h"
3003 # Save this value here, since automake will set cflags later
3004 cflags_set=${CFLAGS+set}
3006 am__api_version='1.11'
3008 ac_aux_dir=
3009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3010 for ac_t in install-sh install.sh shtool; do
3011 if test -f "$ac_dir/$ac_t"; then
3012 ac_aux_dir=$ac_dir
3013 ac_install_sh="$ac_aux_dir/$ac_t -c"
3014 break 2
3016 done
3017 done
3018 if test -z "$ac_aux_dir"; then
3019 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3022 # These three variables are undocumented and unsupported,
3023 # and are intended to be withdrawn in a future Autoconf release.
3024 # They can cause serious problems if a builder's source tree is in a directory
3025 # whose full name contains unusual characters.
3026 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3027 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3028 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3031 # Find a good install program. We prefer a C program (faster),
3032 # so one script is as good as another. But avoid the broken or
3033 # incompatible versions:
3034 # SysV /etc/install, /usr/sbin/install
3035 # SunOS /usr/etc/install
3036 # IRIX /sbin/install
3037 # AIX /bin/install
3038 # AmigaOS /C/install, which installs bootblocks on floppy discs
3039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3042 # OS/2's system install, which has a completely different semantic
3043 # ./install, which can be erroneously created by make from ./install.sh.
3044 # Reject install programs that cannot install multiple files.
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3046 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3047 if test -z "$INSTALL"; then
3048 if test "${ac_cv_path_install+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 # Account for people who put trailing slashes in PATH elements.
3057 case $as_dir/ in #((
3058 ./ | .// | /[cC]/* | \
3059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3060 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3061 /usr/ucb/* ) ;;
3063 # OSF1 and SCO ODT 3.0 have their own names for install.
3064 # Don't use installbsd from OSF since it installs stuff as root
3065 # by default.
3066 for ac_prog in ginstall scoinst install; do
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3069 if test $ac_prog = install &&
3070 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071 # AIX install. It has an incompatible calling convention.
3073 elif test $ac_prog = install &&
3074 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3075 # program-specific install script used by HP pwplus--don't use.
3077 else
3078 rm -rf conftest.one conftest.two conftest.dir
3079 echo one > conftest.one
3080 echo two > conftest.two
3081 mkdir conftest.dir
3082 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3083 test -s conftest.one && test -s conftest.two &&
3084 test -s conftest.dir/conftest.one &&
3085 test -s conftest.dir/conftest.two
3086 then
3087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3088 break 3
3092 done
3093 done
3095 esac
3097 done
3098 IFS=$as_save_IFS
3100 rm -rf conftest.one conftest.two conftest.dir
3103 if test "${ac_cv_path_install+set}" = set; then
3104 INSTALL=$ac_cv_path_install
3105 else
3106 # As a last resort, use the slow shell script. Don't cache a
3107 # value for INSTALL within a source directory, because that will
3108 # break other packages using the cache if that directory is
3109 # removed, or if the value is a relative name.
3110 INSTALL=$ac_install_sh
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3114 $as_echo "$INSTALL" >&6; }
3116 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3117 # It thinks the first close brace ends the variable substitution.
3118 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3122 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3125 $as_echo_n "checking whether build environment is sane... " >&6; }
3126 # Just in case
3127 sleep 1
3128 echo timestamp > conftest.file
3129 # Reject unsafe characters in $srcdir or the absolute working directory
3130 # name. Accept space and tab only in the latter.
3131 am_lf='
3133 case `pwd` in
3134 *[\\\"\#\$\&\'\`$am_lf]*)
3135 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3136 esac
3137 case $srcdir in
3138 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3139 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3140 esac
3142 # Do `set' in a subshell so we don't clobber the current shell's
3143 # arguments. Must try -L first in case configure is actually a
3144 # symlink; some systems play weird games with the mod time of symlinks
3145 # (eg FreeBSD returns the mod time of the symlink's containing
3146 # directory).
3147 if (
3148 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3149 if test "$*" = "X"; then
3150 # -L didn't work.
3151 set X `ls -t "$srcdir/configure" conftest.file`
3153 rm -f conftest.file
3154 if test "$*" != "X $srcdir/configure conftest.file" \
3155 && test "$*" != "X conftest.file $srcdir/configure"; then
3157 # If neither matched, then we have a broken ls. This can happen
3158 # if, for instance, CONFIG_SHELL is bash and it inherits a
3159 # broken ls alias from the environment. This has actually
3160 # happened. Such a system could not be considered "sane".
3161 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3162 alias in your environment" "$LINENO" 5
3165 test "$2" = conftest.file
3167 then
3168 # Ok.
3170 else
3171 as_fn_error "newly created file is older than distributed files!
3172 Check your system clock" "$LINENO" 5
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3176 test "$program_prefix" != NONE &&
3177 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3178 # Use a double $ so make ignores it.
3179 test "$program_suffix" != NONE &&
3180 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3181 # Double any \ or $.
3182 # By default was `s,x,x', remove it if useless.
3183 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3184 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3186 # expand $ac_aux_dir to an absolute path
3187 am_aux_dir=`cd $ac_aux_dir && pwd`
3189 if test x"${MISSING+set}" != xset; then
3190 case $am_aux_dir in
3191 *\ * | *\ *)
3192 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3194 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3195 esac
3197 # Use eval to expand $SHELL
3198 if eval "$MISSING --run true"; then
3199 am_missing_run="$MISSING --run "
3200 else
3201 am_missing_run=
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3203 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3206 if test x"${install_sh}" != xset; then
3207 case $am_aux_dir in
3208 *\ * | *\ *)
3209 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3211 install_sh="\${SHELL} $am_aux_dir/install-sh"
3212 esac
3215 # Installed binaries are usually stripped using `strip' when the user
3216 # run `make install-strip'. However `strip' might not be the right
3217 # tool to use in cross-compilation environments, therefore Automake
3218 # will honor the `STRIP' environment variable to overrule this program.
3219 if test "$cross_compiling" != no; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}strip; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_STRIP+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$STRIP"; then
3229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 STRIP=$ac_cv_prog_STRIP
3249 if test -n "$STRIP"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251 $as_echo "$STRIP" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$ac_cv_prog_STRIP"; then
3260 ac_ct_STRIP=$STRIP
3261 # Extract the first word of "strip", so it can be a program name with args.
3262 set dummy strip; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$ac_ct_STRIP"; then
3269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_ac_ct_STRIP="strip"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3282 done
3283 done
3284 IFS=$as_save_IFS
3288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3289 if test -n "$ac_ct_STRIP"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3291 $as_echo "$ac_ct_STRIP" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3297 if test "x$ac_ct_STRIP" = x; then
3298 STRIP=":"
3299 else
3300 case $cross_compiling:$ac_tool_warned in
3301 yes:)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3305 esac
3306 STRIP=$ac_ct_STRIP
3308 else
3309 STRIP="$ac_cv_prog_STRIP"
3313 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3316 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3317 if test -z "$MKDIR_P"; then
3318 if test "${ac_cv_path_mkdir+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_prog in mkdir gmkdir; do
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3329 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3330 'mkdir (GNU coreutils) '* | \
3331 'mkdir (coreutils) '* | \
3332 'mkdir (fileutils) '4.1*)
3333 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3334 break 3;;
3335 esac
3336 done
3337 done
3338 done
3339 IFS=$as_save_IFS
3343 test -d ./--version && rmdir ./--version
3344 if test "${ac_cv_path_mkdir+set}" = set; then
3345 MKDIR_P="$ac_cv_path_mkdir -p"
3346 else
3347 # As a last resort, use the slow shell script. Don't cache a
3348 # value for MKDIR_P within a source directory, because that will
3349 # break other packages using the cache if that directory is
3350 # removed, or if the value is a relative name.
3351 MKDIR_P="$ac_install_sh -d"
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3355 $as_echo "$MKDIR_P" >&6; }
3357 mkdir_p="$MKDIR_P"
3358 case $mkdir_p in
3359 [\\/$]* | ?:[\\/]*) ;;
3360 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3361 esac
3363 for ac_prog in gawk mawk nawk awk
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if test "${ac_cv_prog_AWK+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -n "$AWK"; then
3373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_AWK="$ac_prog"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3386 done
3387 done
3388 IFS=$as_save_IFS
3392 AWK=$ac_cv_prog_AWK
3393 if test -n "$AWK"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3395 $as_echo "$AWK" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3402 test -n "$AWK" && break
3403 done
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3406 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3407 set x ${MAKE-make}
3408 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3409 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 cat >conftest.make <<\_ACEOF
3413 SHELL = /bin/sh
3414 all:
3415 @echo '@@@%%%=$(MAKE)=@@@%%%'
3416 _ACEOF
3417 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3418 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3419 *@@@%%%=?*=@@@%%%*)
3420 eval ac_cv_prog_make_${ac_make}_set=yes;;
3422 eval ac_cv_prog_make_${ac_make}_set=no;;
3423 esac
3424 rm -f conftest.make
3426 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428 $as_echo "yes" >&6; }
3429 SET_MAKE=
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 SET_MAKE="MAKE=${MAKE-make}"
3436 rm -rf .tst 2>/dev/null
3437 mkdir .tst 2>/dev/null
3438 if test -d .tst; then
3439 am__leading_dot=.
3440 else
3441 am__leading_dot=_
3443 rmdir .tst 2>/dev/null
3445 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3446 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3447 # is not polluted with repeated "-I."
3448 am__isrc=' -I$(srcdir)'
3449 # test to see if srcdir already configured
3450 if test -f $srcdir/config.status; then
3451 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3455 # test whether we have cygpath
3456 if test -z "$CYGPATH_W"; then
3457 if (cygpath --version) >/dev/null 2>/dev/null; then
3458 CYGPATH_W='cygpath -w'
3459 else
3460 CYGPATH_W=echo
3465 # Define the identity of the package.
3466 PACKAGE='glib'
3467 VERSION='2.25.13'
3470 # Some tools Automake needs.
3472 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3475 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3478 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3481 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3484 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3486 # We need awk for the "check" target. The system "awk" is bad on
3487 # some platforms.
3488 # Always define AMTAR for backward compatibility.
3490 AMTAR=${AMTAR-"${am_missing_run}tar"}
3492 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3499 # Support silent build rules, requires at least automake-1.11. Enable
3500 # by either passing --enable-silent-rules to configure or passing V=0
3501 # to make
3502 # Check whether --enable-silent-rules was given.
3503 if test "${enable_silent_rules+set}" = set; then :
3504 enableval=$enable_silent_rules;
3507 case $enable_silent_rules in
3508 yes) AM_DEFAULT_VERBOSITY=0;;
3509 no) AM_DEFAULT_VERBOSITY=1;;
3510 *) AM_DEFAULT_VERBOSITY=1;;
3511 esac
3512 AM_BACKSLASH='\'
3515 GLIB_MAJOR_VERSION=2
3516 GLIB_MINOR_VERSION=25
3517 GLIB_MICRO_VERSION=13
3518 GLIB_INTERFACE_AGE=0
3519 GLIB_BINARY_AGE=2513
3520 GLIB_VERSION=2.25.13
3530 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3533 $as_echo "#define GLIB_MINOR_VERSION 25" >>confdefs.h
3536 $as_echo "#define GLIB_MICRO_VERSION 13" >>confdefs.h
3539 $as_echo "#define GLIB_INTERFACE_AGE 0" >>confdefs.h
3542 $as_echo "#define GLIB_BINARY_AGE 2513" >>confdefs.h
3545 # libtool versioning
3546 LT_RELEASE=2.25
3547 LT_CURRENT=2513
3548 LT_REVISION=0
3549 LT_AGE=2513
3550 LT_CURRENT_MINUS_AGE=0
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3559 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3560 # Check whether --enable-maintainer-mode was given.
3561 if test "${enable_maintainer_mode+set}" = set; then :
3562 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3563 else
3564 USE_MAINTAINER_MODE=no
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3568 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3569 if test $USE_MAINTAINER_MODE = yes; then
3570 MAINTAINER_MODE_TRUE=
3571 MAINTAINER_MODE_FALSE='#'
3572 else
3573 MAINTAINER_MODE_TRUE='#'
3574 MAINTAINER_MODE_FALSE=
3577 MAINT=$MAINTAINER_MODE_TRUE
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3610 IFS=$as_save_IFS
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3625 if test -z "$ac_cv_prog_CC"; then
3626 ac_ct_CC=$CC
3627 # Extract the first word of "gcc", so it can be a program name with args.
3628 set dummy gcc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$ac_ct_CC"; then
3635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_ac_ct_CC="gcc"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3648 done
3649 done
3650 IFS=$as_save_IFS
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3663 if test "x$ac_ct_CC" = x; then
3664 CC=""
3665 else
3666 case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672 CC=$ac_ct_CC
3674 else
3675 CC="$ac_cv_prog_CC"
3678 if test -z "$CC"; then
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}cc; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="${ac_tool_prefix}cc"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3701 done
3702 done
3703 IFS=$as_save_IFS
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3719 if test -z "$CC"; then
3720 # Extract the first word of "cc", so it can be a program name with args.
3721 set dummy cc; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_CC+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 ac_prog_rejected=no
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3739 ac_prog_rejected=yes
3740 continue
3742 ac_cv_prog_CC="cc"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3750 if test $ac_prog_rejected = yes; then
3751 # We found a bogon in the path, so make sure we never use it.
3752 set dummy $ac_cv_prog_CC
3753 shift
3754 if test $# != 0; then
3755 # We chose a different compiler from the bogus one.
3756 # However, it has the same basename, so the bogon will be chosen
3757 # first if we set CC to just the basename; use the full file name.
3758 shift
3759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3764 CC=$ac_cv_prog_CC
3765 if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3768 else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3775 if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 for ac_prog in cl.exe
3779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_CC+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$CC"; then
3787 ac_cv_prog_CC="$CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3800 done
3801 done
3802 IFS=$as_save_IFS
3806 CC=$ac_cv_prog_CC
3807 if test -n "$CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 $as_echo "$CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3816 test -n "$CC" && break
3817 done
3819 if test -z "$CC"; then
3820 ac_ct_CC=$CC
3821 for ac_prog in cl.exe
3823 # Extract the first word of "$ac_prog", so it can be a program name with args.
3824 set dummy $ac_prog; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_ac_ct_CC="$ac_prog"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3844 done
3845 done
3846 IFS=$as_save_IFS
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3860 test -n "$ac_ct_CC" && break
3861 done
3863 if test "x$ac_ct_CC" = x; then
3864 CC=""
3865 else
3866 case $cross_compiling:$ac_tool_warned in
3867 yes:)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3870 ac_tool_warned=yes ;;
3871 esac
3872 CC=$ac_ct_CC
3879 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error "no acceptable C compiler found in \$PATH
3882 See \`config.log' for more details." "$LINENO" 5; }
3884 # Provide some information about the compiler.
3885 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3886 set X $ac_compile
3887 ac_compiler=$2
3888 for ac_option in --version -v -V -qversion; do
3889 { { ac_try="$ac_compiler $ac_option >&5"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3897 ac_status=$?
3898 if test -s conftest.err; then
3899 sed '10a\
3900 ... rest of stderr output deleted ...
3901 10q' conftest.err >conftest.er1
3902 cat conftest.er1 >&5
3904 rm -f conftest.er1 conftest.err
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }
3907 done
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3913 main ()
3917 return 0;
3919 _ACEOF
3920 ac_clean_files_save=$ac_clean_files
3921 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3922 # Try to create an executable without -o first, disregard a.out.
3923 # It will help us diagnose broken compilers, and finding out an intuition
3924 # of exeext.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3926 $as_echo_n "checking whether the C compiler works... " >&6; }
3927 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3929 # The possible output files:
3930 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3932 ac_rmfiles=
3933 for ac_file in $ac_files
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3937 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3938 esac
3939 done
3940 rm -f $ac_rmfiles
3942 if { { ac_try="$ac_link_default"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_link_default") 2>&5
3950 ac_status=$?
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }; then :
3953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3954 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3955 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3956 # so that the user can short-circuit this test for compilers unknown to
3957 # Autoconf.
3958 for ac_file in $ac_files ''
3960 test -f "$ac_file" || continue
3961 case $ac_file in
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3964 [ab].out )
3965 # We found the default executable, but exeext='' is most
3966 # certainly right.
3967 break;;
3968 *.* )
3969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3970 then :; else
3971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 # We set ac_cv_exeext here because the later test for it is not
3974 # safe: cross compilers may not add the suffix if given an `-o'
3975 # argument, so we may need to know it at that point already.
3976 # Even if this section looks crufty: it has the advantage of
3977 # actually working.
3978 break;;
3980 break;;
3981 esac
3982 done
3983 test "$ac_cv_exeext" = no && ac_cv_exeext=
3985 else
3986 ac_file=''
3988 if test -z "$ac_file"; then :
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 { as_fn_set_status 77
3997 as_fn_error "C compiler cannot create executables
3998 See \`config.log' for more details." "$LINENO" 5; }; }
3999 else
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4001 $as_echo "yes" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4004 $as_echo_n "checking for C compiler default output file name... " >&6; }
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4006 $as_echo "$ac_file" >&6; }
4007 ac_exeext=$ac_cv_exeext
4009 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4010 ac_clean_files=$ac_clean_files_save
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4012 $as_echo_n "checking for suffix of executables... " >&6; }
4013 if { { ac_try="$ac_link"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020 (eval "$ac_link") 2>&5
4021 ac_status=$?
4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; }; then :
4024 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4025 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4026 # work properly (i.e., refer to `conftest.exe'), while it won't with
4027 # `rm'.
4028 for ac_file in conftest.exe conftest conftest.*; do
4029 test -f "$ac_file" || continue
4030 case $ac_file in
4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4033 break;;
4034 * ) break;;
4035 esac
4036 done
4037 else
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error "cannot compute suffix of executables: cannot compile and link
4041 See \`config.log' for more details." "$LINENO" 5; }
4043 rm -f conftest conftest$ac_cv_exeext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4045 $as_echo "$ac_cv_exeext" >&6; }
4047 rm -f conftest.$ac_ext
4048 EXEEXT=$ac_cv_exeext
4049 ac_exeext=$EXEEXT
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <stdio.h>
4054 main ()
4056 FILE *f = fopen ("conftest.out", "w");
4057 return ferror (f) || fclose (f) != 0;
4060 return 0;
4062 _ACEOF
4063 ac_clean_files="$ac_clean_files conftest.out"
4064 # Check that the compiler produces executables we can run. If not, either
4065 # the compiler is broken, or we cross compile.
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4067 $as_echo_n "checking whether we are cross compiling... " >&6; }
4068 if test "$cross_compiling" != yes; then
4069 { { ac_try="$ac_link"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 $as_echo "$ac_try_echo"; } >&5
4076 (eval "$ac_link") 2>&5
4077 ac_status=$?
4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }
4080 if { ac_try='./conftest$ac_cv_exeext'
4081 { { case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_try") 2>&5
4088 ac_status=$?
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }; }; then
4091 cross_compiling=no
4092 else
4093 if test "$cross_compiling" = maybe; then
4094 cross_compiling=yes
4095 else
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error "cannot run C compiled programs.
4099 If you meant to cross compile, use \`--host'.
4100 See \`config.log' for more details." "$LINENO" 5; }
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4105 $as_echo "$cross_compiling" >&6; }
4107 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4108 ac_clean_files=$ac_clean_files_save
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4110 $as_echo_n "checking for suffix of object files... " >&6; }
4111 if test "${ac_cv_objext+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 rm -f conftest.o conftest.obj
4126 if { { ac_try="$ac_compile"
4127 case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132 $as_echo "$ac_try_echo"; } >&5
4133 (eval "$ac_compile") 2>&5
4134 ac_status=$?
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }; then :
4137 for ac_file in conftest.o conftest.obj conftest.*; do
4138 test -f "$ac_file" || continue;
4139 case $ac_file in
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4142 break;;
4143 esac
4144 done
4145 else
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4151 as_fn_error "cannot compute suffix of object files: cannot compile
4152 See \`config.log' for more details." "$LINENO" 5; }
4154 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4157 $as_echo "$ac_cv_objext" >&6; }
4158 OBJEXT=$ac_cv_objext
4159 ac_objext=$OBJEXT
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4161 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4162 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4171 #ifndef __GNUC__
4172 choke me
4173 #endif
4176 return 0;
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_compiler_gnu=yes
4181 else
4182 ac_compiler_gnu=no
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4189 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4190 if test $ac_compiler_gnu = yes; then
4191 GCC=yes
4192 else
4193 GCC=
4195 ac_test_CFLAGS=${CFLAGS+set}
4196 ac_save_CFLAGS=$CFLAGS
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4198 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4199 if test "${ac_cv_prog_cc_g+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_save_c_werror_flag=$ac_c_werror_flag
4203 ac_c_werror_flag=yes
4204 ac_cv_prog_cc_g=no
4205 CFLAGS="-g"
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4214 return 0;
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_g=yes
4219 else
4220 CFLAGS=""
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4234 else
4235 ac_c_werror_flag=$ac_save_c_werror_flag
4236 CFLAGS="-g"
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4241 main ()
4245 return 0;
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_g=yes
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_c_werror_flag=$ac_save_c_werror_flag
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4259 $as_echo "$ac_cv_prog_cc_g" >&6; }
4260 if test "$ac_test_CFLAGS" = set; then
4261 CFLAGS=$ac_save_CFLAGS
4262 elif test $ac_cv_prog_cc_g = yes; then
4263 if test "$GCC" = yes; then
4264 CFLAGS="-g -O2"
4265 else
4266 CFLAGS="-g"
4268 else
4269 if test "$GCC" = yes; then
4270 CFLAGS="-O2"
4271 else
4272 CFLAGS=
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4276 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4277 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 ac_cv_prog_cc_c89=no
4281 ac_save_CC=$CC
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <stdarg.h>
4285 #include <stdio.h>
4286 #include <sys/types.h>
4287 #include <sys/stat.h>
4288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4289 struct buf { int x; };
4290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4291 static char *e (p, i)
4292 char **p;
4293 int i;
4295 return p[i];
4297 static char *f (char * (*g) (char **, int), char **p, ...)
4299 char *s;
4300 va_list v;
4301 va_start (v,p);
4302 s = g (p, va_arg (v,int));
4303 va_end (v);
4304 return s;
4307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4308 function prototypes and stuff, but not '\xHH' hex character constants.
4309 These don't provoke an error unfortunately, instead are silently treated
4310 as 'x'. The following induces an error, until -std is added to get
4311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4312 array size at least. It's necessary to write '\x00'==0 to get something
4313 that's true only with -std. */
4314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4316 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4317 inside strings and character constants. */
4318 #define FOO(x) 'x'
4319 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4321 int test (int i, double x);
4322 struct s1 {int (*f) (int a);};
4323 struct s2 {int (*f) (double a);};
4324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4325 int argc;
4326 char **argv;
4328 main ()
4330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4332 return 0;
4334 _ACEOF
4335 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4336 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4338 CC="$ac_save_CC $ac_arg"
4339 if ac_fn_c_try_compile "$LINENO"; then :
4340 ac_cv_prog_cc_c89=$ac_arg
4342 rm -f core conftest.err conftest.$ac_objext
4343 test "x$ac_cv_prog_cc_c89" != "xno" && break
4344 done
4345 rm -f conftest.$ac_ext
4346 CC=$ac_save_CC
4349 # AC_CACHE_VAL
4350 case "x$ac_cv_prog_cc_c89" in
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4353 $as_echo "none needed" >&6; } ;;
4354 xno)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4356 $as_echo "unsupported" >&6; } ;;
4358 CC="$CC $ac_cv_prog_cc_c89"
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4360 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4361 esac
4362 if test "x$ac_cv_prog_cc_c89" != xno; then :
4366 ac_ext=c
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 DEPDIR="${am__leading_dot}deps"
4373 ac_config_commands="$ac_config_commands depfiles"
4376 am_make=${MAKE-make}
4377 cat > confinc << 'END'
4378 am__doit:
4379 @echo this is the am__doit target
4380 .PHONY: am__doit
4382 # If we don't find an include directive, just comment out the code.
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4384 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4385 am__include="#"
4386 am__quote=
4387 _am_result=none
4388 # First try GNU make style include.
4389 echo "include confinc" > confmf
4390 # Ignore all kinds of additional output from `make'.
4391 case `$am_make -s -f confmf 2> /dev/null` in #(
4392 *the\ am__doit\ target*)
4393 am__include=include
4394 am__quote=
4395 _am_result=GNU
4397 esac
4398 # Now try BSD make style include.
4399 if test "$am__include" = "#"; then
4400 echo '.include "confinc"' > confmf
4401 case `$am_make -s -f confmf 2> /dev/null` in #(
4402 *the\ am__doit\ target*)
4403 am__include=.include
4404 am__quote="\""
4405 _am_result=BSD
4407 esac
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4412 $as_echo "$_am_result" >&6; }
4413 rm -f confinc confmf
4415 # Check whether --enable-dependency-tracking was given.
4416 if test "${enable_dependency_tracking+set}" = set; then :
4417 enableval=$enable_dependency_tracking;
4420 if test "x$enable_dependency_tracking" != xno; then
4421 am_depcomp="$ac_aux_dir/depcomp"
4422 AMDEPBACKSLASH='\'
4424 if test "x$enable_dependency_tracking" != xno; then
4425 AMDEP_TRUE=
4426 AMDEP_FALSE='#'
4427 else
4428 AMDEP_TRUE='#'
4429 AMDEP_FALSE=
4434 depcc="$CC" am_compiler_list=
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4437 $as_echo_n "checking dependency style of $depcc... " >&6; }
4438 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4442 # We make a subdir and do the tests there. Otherwise we can end up
4443 # making bogus files that we don't know about and never remove. For
4444 # instance it was reported that on HP-UX the gcc test will end up
4445 # making a dummy file named `D' -- because `-MD' means `put the output
4446 # in D'.
4447 mkdir conftest.dir
4448 # Copy depcomp to subdir because otherwise we won't find it if we're
4449 # using a relative directory.
4450 cp "$am_depcomp" conftest.dir
4451 cd conftest.dir
4452 # We will build objects and dependencies in a subdirectory because
4453 # it helps to detect inapplicable dependency modes. For instance
4454 # both Tru64's cc and ICC support -MD to output dependencies as a
4455 # side effect of compilation, but ICC will put the dependencies in
4456 # the current directory while Tru64 will put them in the object
4457 # directory.
4458 mkdir sub
4460 am_cv_CC_dependencies_compiler_type=none
4461 if test "$am_compiler_list" = ""; then
4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4464 am__universal=false
4465 case " $depcc " in #(
4466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467 esac
4469 for depmode in $am_compiler_list; do
4470 # Setup a source with many dependencies, because some compilers
4471 # like to wrap large dependency lists on column 80 (with \), and
4472 # we should not choose a depcomp mode which is confused by this.
4474 # We need to recreate these files for each test, as the compiler may
4475 # overwrite some of them when testing with obscure command lines.
4476 # This happens at least with the AIX C compiler.
4477 : > sub/conftest.c
4478 for i in 1 2 3 4 5 6; do
4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4481 # Solaris 8's {/usr,}/bin/sh.
4482 touch sub/conftst$i.h
4483 done
4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4486 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4487 # mode. It turns out that the SunPro C++ compiler does not properly
4488 # handle `-M -o', and we need to detect this. Also, some Intel
4489 # versions had trouble with output in subdirs
4490 am__obj=sub/conftest.${OBJEXT-o}
4491 am__minus_obj="-o $am__obj"
4492 case $depmode in
4493 gcc)
4494 # This depmode causes a compiler race in universal mode.
4495 test "$am__universal" = false || continue
4497 nosideeffect)
4498 # after this tag, mechanisms are not by side-effect, so they'll
4499 # only be used when explicitly requested
4500 if test "x$enable_dependency_tracking" = xyes; then
4501 continue
4502 else
4503 break
4506 msvisualcpp | msvcmsys)
4507 # This compiler won't grok `-c -o', but also, the minuso test has
4508 # not run yet. These depmodes are late enough in the game, and
4509 # so weak that their functioning should not be impacted.
4510 am__obj=conftest.${OBJEXT-o}
4511 am__minus_obj=
4513 none) break ;;
4514 esac
4515 if depmode=$depmode \
4516 source=sub/conftest.c object=$am__obj \
4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519 >/dev/null 2>conftest.err &&
4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524 # icc doesn't choke on unknown options, it will just issue warnings
4525 # or remarks (even with -Werror). So we grep stderr for any message
4526 # that says an option was ignored or not supported.
4527 # When given -MP, icc 7.0 and 7.1 complain thusly:
4528 # icc: Command line warning: ignoring option '-M'; no argument required
4529 # The diagnosis changed in icc 8.0:
4530 # icc: Command line remark: option '-MP' not supported
4531 if (grep 'ignoring option' conftest.err ||
4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533 am_cv_CC_dependencies_compiler_type=$depmode
4534 break
4537 done
4539 cd ..
4540 rm -rf conftest.dir
4541 else
4542 am_cv_CC_dependencies_compiler_type=none
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4551 test "x$enable_dependency_tracking" != xno \
4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553 am__fastdepCC_TRUE=
4554 am__fastdepCC_FALSE='#'
4555 else
4556 am__fastdepCC_TRUE='#'
4557 am__fastdepCC_FALSE=
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4567 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4568 # On Suns, sometimes $CPP names a directory.
4569 if test -n "$CPP" && test -d "$CPP"; then
4570 CPP=
4572 if test -z "$CPP"; then
4573 if test "${ac_cv_prog_CPP+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 # Double quotes because CPP needs to be expanded
4577 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4579 ac_preproc_ok=false
4580 for ac_c_preproc_warn_flag in '' yes
4582 # Use a header file that comes with gcc, so configuring glibc
4583 # with a fresh cross-compiler works.
4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585 # <limits.h> exists even on freestanding compilers.
4586 # On the NeXT, cc -E runs the code through the compiler's parser,
4587 # not just through cpp. "Syntax error" is here to catch this case.
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #ifdef __STDC__
4591 # include <limits.h>
4592 #else
4593 # include <assert.h>
4594 #endif
4595 Syntax error
4596 _ACEOF
4597 if ac_fn_c_try_cpp "$LINENO"; then :
4599 else
4600 # Broken: fails on valid input.
4601 continue
4603 rm -f conftest.err conftest.$ac_ext
4605 # OK, works on sane cases. Now check whether nonexistent headers
4606 # can be detected and how.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <ac_nonexistent.h>
4610 _ACEOF
4611 if ac_fn_c_try_cpp "$LINENO"; then :
4612 # Broken: success on invalid input.
4613 continue
4614 else
4615 # Passes both tests.
4616 ac_preproc_ok=:
4617 break
4619 rm -f conftest.err conftest.$ac_ext
4621 done
4622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623 rm -f conftest.err conftest.$ac_ext
4624 if $ac_preproc_ok; then :
4625 break
4628 done
4629 ac_cv_prog_CPP=$CPP
4632 CPP=$ac_cv_prog_CPP
4633 else
4634 ac_cv_prog_CPP=$CPP
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4637 $as_echo "$CPP" >&6; }
4638 ac_preproc_ok=false
4639 for ac_c_preproc_warn_flag in '' yes
4641 # Use a header file that comes with gcc, so configuring glibc
4642 # with a fresh cross-compiler works.
4643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644 # <limits.h> exists even on freestanding compilers.
4645 # On the NeXT, cc -E runs the code through the compiler's parser,
4646 # not just through cpp. "Syntax error" is here to catch this case.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #ifdef __STDC__
4650 # include <limits.h>
4651 #else
4652 # include <assert.h>
4653 #endif
4654 Syntax error
4655 _ACEOF
4656 if ac_fn_c_try_cpp "$LINENO"; then :
4658 else
4659 # Broken: fails on valid input.
4660 continue
4662 rm -f conftest.err conftest.$ac_ext
4664 # OK, works on sane cases. Now check whether nonexistent headers
4665 # can be detected and how.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <ac_nonexistent.h>
4669 _ACEOF
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4671 # Broken: success on invalid input.
4672 continue
4673 else
4674 # Passes both tests.
4675 ac_preproc_ok=:
4676 break
4678 rm -f conftest.err conftest.$ac_ext
4680 done
4681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682 rm -f conftest.err conftest.$ac_ext
4683 if $ac_preproc_ok; then :
4685 else
4686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4689 See \`config.log' for more details." "$LINENO" 5; }
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 # Make sure we can run config.sub.
4700 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4701 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4704 $as_echo_n "checking build system type... " >&6; }
4705 if test "${ac_cv_build+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_build_alias=$build_alias
4709 test "x$ac_build_alias" = x &&
4710 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4711 test "x$ac_build_alias" = x &&
4712 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4713 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4714 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4718 $as_echo "$ac_cv_build" >&6; }
4719 case $ac_cv_build in
4720 *-*-*) ;;
4721 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4722 esac
4723 build=$ac_cv_build
4724 ac_save_IFS=$IFS; IFS='-'
4725 set x $ac_cv_build
4726 shift
4727 build_cpu=$1
4728 build_vendor=$2
4729 shift; shift
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4732 build_os=$*
4733 IFS=$ac_save_IFS
4734 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4738 $as_echo_n "checking host system type... " >&6; }
4739 if test "${ac_cv_host+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test "x$host_alias" = x; then
4743 ac_cv_host=$ac_cv_build
4744 else
4745 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4746 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4751 $as_echo "$ac_cv_host" >&6; }
4752 case $ac_cv_host in
4753 *-*-*) ;;
4754 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4755 esac
4756 host=$ac_cv_host
4757 ac_save_IFS=$IFS; IFS='-'
4758 set x $ac_cv_host
4759 shift
4760 host_cpu=$1
4761 host_vendor=$2
4762 shift; shift
4763 # Remember, the first character of IFS is used to create $*,
4764 # except with old shells:
4765 host_os=$*
4766 IFS=$ac_save_IFS
4767 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4772 $as_echo_n "checking for the BeOS... " >&6; }
4773 case $host in
4774 *-*-beos*)
4775 glib_native_beos="yes"
4778 glib_native_beos="no"
4780 esac
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4782 $as_echo "$glib_native_beos" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4786 $as_echo_n "checking for Win32... " >&6; }
4787 LIB_EXE_MACHINE_FLAG=X86
4788 case "$host" in
4789 *-*-mingw*)
4790 glib_native_win32=yes
4791 glib_pid_type='void *'
4792 glib_cv_stack_grows=no
4793 # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4794 # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4795 # (Sorry, I don't know exactly what is the problem, but it is related to
4796 # floating point formatting and decimal point vs. comma.)
4797 # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4798 # rigorous enough to notice, though.
4799 # So preset the autoconf cache variables.
4800 ac_cv_func_vsnprintf_c99=no
4801 ac_cv_func_snprintf_c99=no
4802 case "$host" in
4803 x86_64-*-*)
4804 LIB_EXE_MACHINE_FLAG=X64
4806 esac
4809 glib_native_win32=no
4810 glib_pid_type=int
4812 esac
4813 case $host in
4814 *-*-linux*)
4815 glib_os_linux=yes
4817 esac
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4820 $as_echo "$glib_native_win32" >&6; }
4824 glib_have_carbon=no
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4826 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4832 #include <Carbon/Carbon.h>
4833 #include <CoreServices/CoreServices.h>
4835 _ACEOF
4836 if ac_fn_c_try_cpp "$LINENO"; then :
4837 glib_have_carbon=yes
4839 rm -f conftest.err conftest.$ac_ext
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4842 $as_echo "$glib_have_carbon" >&6; }
4844 if test "$glib_native_win32" = "yes"; then
4845 OS_WIN32_TRUE=
4846 OS_WIN32_FALSE='#'
4847 else
4848 OS_WIN32_TRUE='#'
4849 OS_WIN32_FALSE=
4852 if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4853 OS_WIN32_X64_TRUE=
4854 OS_WIN32_X64_FALSE='#'
4855 else
4856 OS_WIN32_X64_TRUE='#'
4857 OS_WIN32_X64_FALSE=
4860 if test "$glib_native_win32" != "yes"; then
4861 OS_UNIX_TRUE=
4862 OS_UNIX_FALSE='#'
4863 else
4864 OS_UNIX_TRUE='#'
4865 OS_UNIX_FALSE=
4868 if test "$glib_os_linux" = "yes"; then
4869 OS_LINUX_TRUE=
4870 OS_LINUX_FALSE='#'
4871 else
4872 OS_LINUX_TRUE='#'
4873 OS_LINUX_FALSE=
4876 if test "$glib_have_carbon" = "yes"; then
4877 OS_CARBON_TRUE=
4878 OS_CARBON_FALSE='#'
4879 else
4880 OS_CARBON_TRUE='#'
4881 OS_CARBON_FALSE=
4885 if test "$glib_native_win32" = "yes"; then
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}windres; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if test "${ac_cv_prog_WINDRES+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 if test -n "$WINDRES"; then
4895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4908 done
4909 done
4910 IFS=$as_save_IFS
4914 WINDRES=$ac_cv_prog_WINDRES
4915 if test -n "$WINDRES"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4917 $as_echo "$WINDRES" >&6; }
4918 else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4925 if test -z "$ac_cv_prog_WINDRES"; then
4926 ac_ct_WINDRES=$WINDRES
4927 # Extract the first word of "windres", so it can be a program name with args.
4928 set dummy windres; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$ac_ct_WINDRES"; then
4935 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_ac_ct_WINDRES="windres"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4955 if test -n "$ac_ct_WINDRES"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
4957 $as_echo "$ac_ct_WINDRES" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4963 if test "x$ac_ct_WINDRES" = x; then
4964 WINDRES="no"
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967 yes:)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970 ac_tool_warned=yes ;;
4971 esac
4972 WINDRES=$ac_ct_WINDRES
4974 else
4975 WINDRES="$ac_cv_prog_WINDRES"
4978 if test "$WINDRES" = no; then
4979 as_fn_error "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}nm; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_NM+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$NM"; then
4990 ac_cv_prog_NM="$NM" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_NM="${ac_tool_prefix}nm"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 NM=$ac_cv_prog_NM
5010 if test -n "$NM"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5012 $as_echo "$NM" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5020 if test -z "$ac_cv_prog_NM"; then
5021 ac_ct_NM=$NM
5022 # Extract the first word of "nm", so it can be a program name with args.
5023 set dummy nm; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$ac_ct_NM"; then
5030 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_ac_ct_NM="nm"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5049 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5050 if test -n "$ac_ct_NM"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5052 $as_echo "$ac_ct_NM" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5058 if test "x$ac_ct_NM" = x; then
5059 NM="no"
5060 else
5061 case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067 NM=$ac_ct_NM
5069 else
5070 NM="$ac_cv_prog_NM"
5073 if test "$NM" = no; then
5074 as_fn_error "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$RANLIB"; then
5085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5100 IFS=$as_save_IFS
5104 RANLIB=$ac_cv_prog_RANLIB
5105 if test -n "$RANLIB"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5107 $as_echo "$RANLIB" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5115 if test -z "$ac_cv_prog_RANLIB"; then
5116 ac_ct_RANLIB=$RANLIB
5117 # Extract the first word of "ranlib", so it can be a program name with args.
5118 set dummy ranlib; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ac_ct_RANLIB"; then
5125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ac_ct_RANLIB="ranlib"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5145 if test -n "$ac_ct_RANLIB"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5147 $as_echo "$ac_ct_RANLIB" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5153 if test "x$ac_ct_RANLIB" = x; then
5154 RANLIB=":"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162 RANLIB=$ac_ct_RANLIB
5164 else
5165 RANLIB="$ac_cv_prog_RANLIB"
5168 # Extract the first word of "lib.exe", so it can be a program name with args.
5169 set dummy lib.exe; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_prog_ms_librarian+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -n "$ms_librarian"; then
5176 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_ms_librarian="yes"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5189 done
5190 done
5191 IFS=$as_save_IFS
5193 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5196 ms_librarian=$ac_cv_prog_ms_librarian
5197 if test -n "$ms_librarian"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5199 $as_echo "$ms_librarian" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5207 if test x$ms_librarian = xyes; then
5208 MS_LIB_AVAILABLE_TRUE=
5209 MS_LIB_AVAILABLE_FALSE='#'
5210 else
5211 MS_LIB_AVAILABLE_TRUE='#'
5212 MS_LIB_AVAILABLE_FALSE=
5216 if test "$glib_native_win32" != yes; then
5217 # libtool option to control which symbols are exported
5218 # right now, symbols starting with _ are not exported
5219 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5220 else
5221 # We currently use .def files on Windows
5222 LIBTOOL_EXPORT_OPTIONS=
5226 if test "x$glib_have_carbon" = "xyes"; then
5228 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5230 LDFLAGS="$LDFLAGS -framework Carbon"
5234 # Check whether --enable-debug was given.
5235 if test "${enable_debug+set}" = set; then :
5236 enableval=$enable_debug;
5237 else
5238 enable_debug=yes
5242 # Check whether --enable-gc_friendly was given.
5243 if test "${enable_gc_friendly+set}" = set; then :
5244 enableval=$enable_gc_friendly;
5245 else
5246 enable_gc_friendly=no
5249 # Check whether --enable-mem_pools was given.
5250 if test "${enable_mem_pools+set}" = set; then :
5251 enableval=$enable_mem_pools;
5252 else
5253 disable_mem_pools=no
5256 # Check whether --enable-threads was given.
5257 if test "${enable_threads+set}" = set; then :
5258 enableval=$enable_threads;
5259 else
5260 enable_threads=yes
5263 # Check whether --enable-rebuilds was given.
5264 if test "${enable_rebuilds+set}" = set; then :
5265 enableval=$enable_rebuilds;
5266 else
5267 enable_rebuilds=yes
5270 # Check whether --enable-visibility was given.
5271 if test "${enable_visibility+set}" = set; then :
5272 enableval=$enable_visibility;
5273 else
5274 enable_visibility=yes
5278 if test "x$enable_threads" != "xyes"; then
5279 enable_threads=no
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5283 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5284 if test "x$enable_gc_friendly" = "xyes"; then
5286 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5289 $as_echo "yes" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5296 $as_echo_n "checking whether to disable memory pools... " >&6; }
5297 if test "x$disable_mem_pools" = "xno"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 else
5302 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5310 # Check whether --with-runtime-libdir was given.
5311 if test "${with_runtime_libdir+set}" = set; then :
5312 withval=$with_runtime_libdir;
5313 else
5314 with_runtime_libdir=""
5317 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5318 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5321 if test "x$with_runtime_libdir" != "x"; then
5322 HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5323 HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5324 else
5325 HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5326 HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5330 if test -n "$ac_tool_prefix"; then
5331 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_CXX+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$CXX"; then
5341 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 CXX=$ac_cv_prog_CXX
5361 if test -n "$CXX"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5363 $as_echo "$CXX" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5370 test -n "$CXX" && break
5371 done
5373 if test -z "$CXX"; then
5374 ac_ct_CXX=$CXX
5375 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$ac_ct_CXX"; then
5385 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_CXX="$ac_prog"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5405 if test -n "$ac_ct_CXX"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5407 $as_echo "$ac_ct_CXX" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5414 test -n "$ac_ct_CXX" && break
5415 done
5417 if test "x$ac_ct_CXX" = x; then
5418 CXX="gcc"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 CXX=$ac_ct_CXX
5431 ac_ext=cpp
5432 ac_cpp='$CXXCPP $CPPFLAGS'
5433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5437 ac_ext=cpp
5438 ac_cpp='$CXXCPP $CPPFLAGS'
5439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5442 if test -z "$CXX"; then
5443 if test -n "$CCC"; then
5444 CXX=$CCC
5445 else
5446 if test -n "$ac_tool_prefix"; then
5447 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if test "${ac_cv_prog_CXX+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$CXX"; then
5457 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5470 done
5471 done
5472 IFS=$as_save_IFS
5476 CXX=$ac_cv_prog_CXX
5477 if test -n "$CXX"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5479 $as_echo "$CXX" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5486 test -n "$CXX" && break
5487 done
5489 if test -z "$CXX"; then
5490 ac_ct_CXX=$CXX
5491 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5493 # Extract the first word of "$ac_prog", so it can be a program name with args.
5494 set dummy $ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$ac_ct_CXX"; then
5501 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_ac_ct_CXX="$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5520 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5521 if test -n "$ac_ct_CXX"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5523 $as_echo "$ac_ct_CXX" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 test -n "$ac_ct_CXX" && break
5531 done
5533 if test "x$ac_ct_CXX" = x; then
5534 CXX="g++"
5535 else
5536 case $cross_compiling:$ac_tool_warned in
5537 yes:)
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540 ac_tool_warned=yes ;;
5541 esac
5542 CXX=$ac_ct_CXX
5548 # Provide some information about the compiler.
5549 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5550 set X $ac_compile
5551 ac_compiler=$2
5552 for ac_option in --version -v -V -qversion; do
5553 { { ac_try="$ac_compiler $ac_option >&5"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5561 ac_status=$?
5562 if test -s conftest.err; then
5563 sed '10a\
5564 ... rest of stderr output deleted ...
5565 10q' conftest.err >conftest.er1
5566 cat conftest.er1 >&5
5568 rm -f conftest.er1 conftest.err
5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5570 test $ac_status = 0; }
5571 done
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5574 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5582 main ()
5584 #ifndef __GNUC__
5585 choke me
5586 #endif
5589 return 0;
5591 _ACEOF
5592 if ac_fn_cxx_try_compile "$LINENO"; then :
5593 ac_compiler_gnu=yes
5594 else
5595 ac_compiler_gnu=no
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5602 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5603 if test $ac_compiler_gnu = yes; then
5604 GXX=yes
5605 else
5606 GXX=
5608 ac_test_CXXFLAGS=${CXXFLAGS+set}
5609 ac_save_CXXFLAGS=$CXXFLAGS
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5611 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5612 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5616 ac_cxx_werror_flag=yes
5617 ac_cv_prog_cxx_g=no
5618 CXXFLAGS="-g"
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5623 main ()
5627 return 0;
5629 _ACEOF
5630 if ac_fn_cxx_try_compile "$LINENO"; then :
5631 ac_cv_prog_cxx_g=yes
5632 else
5633 CXXFLAGS=""
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5638 main ()
5642 return 0;
5644 _ACEOF
5645 if ac_fn_cxx_try_compile "$LINENO"; then :
5647 else
5648 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5649 CXXFLAGS="-g"
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5654 main ()
5658 return 0;
5660 _ACEOF
5661 if ac_fn_cxx_try_compile "$LINENO"; then :
5662 ac_cv_prog_cxx_g=yes
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5672 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5673 if test "$ac_test_CXXFLAGS" = set; then
5674 CXXFLAGS=$ac_save_CXXFLAGS
5675 elif test $ac_cv_prog_cxx_g = yes; then
5676 if test "$GXX" = yes; then
5677 CXXFLAGS="-g -O2"
5678 else
5679 CXXFLAGS="-g"
5681 else
5682 if test "$GXX" = yes; then
5683 CXXFLAGS="-O2"
5684 else
5685 CXXFLAGS=
5688 ac_ext=cpp
5689 ac_cpp='$CXXCPP $CPPFLAGS'
5690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5694 depcc="$CXX" am_compiler_list=
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5697 $as_echo_n "checking dependency style of $depcc... " >&6; }
5698 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5702 # We make a subdir and do the tests there. Otherwise we can end up
5703 # making bogus files that we don't know about and never remove. For
5704 # instance it was reported that on HP-UX the gcc test will end up
5705 # making a dummy file named `D' -- because `-MD' means `put the output
5706 # in D'.
5707 mkdir conftest.dir
5708 # Copy depcomp to subdir because otherwise we won't find it if we're
5709 # using a relative directory.
5710 cp "$am_depcomp" conftest.dir
5711 cd conftest.dir
5712 # We will build objects and dependencies in a subdirectory because
5713 # it helps to detect inapplicable dependency modes. For instance
5714 # both Tru64's cc and ICC support -MD to output dependencies as a
5715 # side effect of compilation, but ICC will put the dependencies in
5716 # the current directory while Tru64 will put them in the object
5717 # directory.
5718 mkdir sub
5720 am_cv_CXX_dependencies_compiler_type=none
5721 if test "$am_compiler_list" = ""; then
5722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5724 am__universal=false
5725 case " $depcc " in #(
5726 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5727 esac
5729 for depmode in $am_compiler_list; do
5730 # Setup a source with many dependencies, because some compilers
5731 # like to wrap large dependency lists on column 80 (with \), and
5732 # we should not choose a depcomp mode which is confused by this.
5734 # We need to recreate these files for each test, as the compiler may
5735 # overwrite some of them when testing with obscure command lines.
5736 # This happens at least with the AIX C compiler.
5737 : > sub/conftest.c
5738 for i in 1 2 3 4 5 6; do
5739 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5740 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5741 # Solaris 8's {/usr,}/bin/sh.
5742 touch sub/conftst$i.h
5743 done
5744 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5746 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5747 # mode. It turns out that the SunPro C++ compiler does not properly
5748 # handle `-M -o', and we need to detect this. Also, some Intel
5749 # versions had trouble with output in subdirs
5750 am__obj=sub/conftest.${OBJEXT-o}
5751 am__minus_obj="-o $am__obj"
5752 case $depmode in
5753 gcc)
5754 # This depmode causes a compiler race in universal mode.
5755 test "$am__universal" = false || continue
5757 nosideeffect)
5758 # after this tag, mechanisms are not by side-effect, so they'll
5759 # only be used when explicitly requested
5760 if test "x$enable_dependency_tracking" = xyes; then
5761 continue
5762 else
5763 break
5766 msvisualcpp | msvcmsys)
5767 # This compiler won't grok `-c -o', but also, the minuso test has
5768 # not run yet. These depmodes are late enough in the game, and
5769 # so weak that their functioning should not be impacted.
5770 am__obj=conftest.${OBJEXT-o}
5771 am__minus_obj=
5773 none) break ;;
5774 esac
5775 if depmode=$depmode \
5776 source=sub/conftest.c object=$am__obj \
5777 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5778 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5779 >/dev/null 2>conftest.err &&
5780 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5782 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5784 # icc doesn't choke on unknown options, it will just issue warnings
5785 # or remarks (even with -Werror). So we grep stderr for any message
5786 # that says an option was ignored or not supported.
5787 # When given -MP, icc 7.0 and 7.1 complain thusly:
5788 # icc: Command line warning: ignoring option '-M'; no argument required
5789 # The diagnosis changed in icc 8.0:
5790 # icc: Command line remark: option '-MP' not supported
5791 if (grep 'ignoring option' conftest.err ||
5792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5793 am_cv_CXX_dependencies_compiler_type=$depmode
5794 break
5797 done
5799 cd ..
5800 rm -rf conftest.dir
5801 else
5802 am_cv_CXX_dependencies_compiler_type=none
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5807 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5808 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5811 test "x$enable_dependency_tracking" != xno \
5812 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5813 am__fastdepCXX_TRUE=
5814 am__fastdepCXX_FALSE='#'
5815 else
5816 am__fastdepCXX_TRUE='#'
5817 am__fastdepCXX_FALSE=
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5826 main ()
5828 class a { int b; } c;
5830 return 0;
5832 _ACEOF
5833 if ac_fn_cxx_try_compile "$LINENO"; then :
5835 else
5836 CXX=
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 if test "$CXX" != ""; then
5840 HAVE_CXX_TRUE=
5841 HAVE_CXX_FALSE='#'
5842 else
5843 HAVE_CXX_TRUE='#'
5844 HAVE_CXX_FALSE=
5847 ac_ext=c
5848 ac_cpp='$CPP $CPPFLAGS'
5849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854 ac_ext=c
5855 ac_cpp='$CPP $CPPFLAGS'
5856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if test "${ac_cv_prog_CC+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 if test -n "$CC"; then
5868 ac_cv_prog_CC="$CC" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5881 done
5882 done
5883 IFS=$as_save_IFS
5887 CC=$ac_cv_prog_CC
5888 if test -n "$CC"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5890 $as_echo "$CC" >&6; }
5891 else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5898 if test -z "$ac_cv_prog_CC"; then
5899 ac_ct_CC=$CC
5900 # Extract the first word of "gcc", so it can be a program name with args.
5901 set dummy gcc; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$ac_ct_CC"; then
5908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_prog_ac_ct_CC="gcc"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5921 done
5922 done
5923 IFS=$as_save_IFS
5927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5928 if test -n "$ac_ct_CC"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5930 $as_echo "$ac_ct_CC" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5936 if test "x$ac_ct_CC" = x; then
5937 CC=""
5938 else
5939 case $cross_compiling:$ac_tool_warned in
5940 yes:)
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945 CC=$ac_ct_CC
5947 else
5948 CC="$ac_cv_prog_CC"
5951 if test -z "$CC"; then
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}cc; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_prog_CC+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$CC"; then
5961 ac_cv_prog_CC="$CC" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_CC="${ac_tool_prefix}cc"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5974 done
5975 done
5976 IFS=$as_save_IFS
5980 CC=$ac_cv_prog_CC
5981 if test -n "$CC"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5983 $as_echo "$CC" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5992 if test -z "$CC"; then
5993 # Extract the first word of "cc", so it can be a program name with args.
5994 set dummy cc; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_prog_CC+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -n "$CC"; then
6001 ac_cv_prog_CC="$CC" # Let the user override the test.
6002 else
6003 ac_prog_rejected=no
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6012 ac_prog_rejected=yes
6013 continue
6015 ac_cv_prog_CC="cc"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6019 done
6020 done
6021 IFS=$as_save_IFS
6023 if test $ac_prog_rejected = yes; then
6024 # We found a bogon in the path, so make sure we never use it.
6025 set dummy $ac_cv_prog_CC
6026 shift
6027 if test $# != 0; then
6028 # We chose a different compiler from the bogus one.
6029 # However, it has the same basename, so the bogon will be chosen
6030 # first if we set CC to just the basename; use the full file name.
6031 shift
6032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6037 CC=$ac_cv_prog_CC
6038 if test -n "$CC"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6040 $as_echo "$CC" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$CC"; then
6049 if test -n "$ac_tool_prefix"; then
6050 for ac_prog in cl.exe
6052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_CC+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$CC"; then
6060 ac_cv_prog_CC="$CC" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6073 done
6074 done
6075 IFS=$as_save_IFS
6079 CC=$ac_cv_prog_CC
6080 if test -n "$CC"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6082 $as_echo "$CC" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6089 test -n "$CC" && break
6090 done
6092 if test -z "$CC"; then
6093 ac_ct_CC=$CC
6094 for ac_prog in cl.exe
6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
6097 set dummy $ac_prog; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 if test -n "$ac_ct_CC"; then
6104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 ac_cv_prog_ac_ct_CC="$ac_prog"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6117 done
6118 done
6119 IFS=$as_save_IFS
6123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6124 if test -n "$ac_ct_CC"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6126 $as_echo "$ac_ct_CC" >&6; }
6127 else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6133 test -n "$ac_ct_CC" && break
6134 done
6136 if test "x$ac_ct_CC" = x; then
6137 CC=""
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145 CC=$ac_ct_CC
6152 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error "no acceptable C compiler found in \$PATH
6155 See \`config.log' for more details." "$LINENO" 5; }
6157 # Provide some information about the compiler.
6158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6159 set X $ac_compile
6160 ac_compiler=$2
6161 for ac_option in --version -v -V -qversion; do
6162 { { ac_try="$ac_compiler $ac_option >&5"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6168 $as_echo "$ac_try_echo"; } >&5
6169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6170 ac_status=$?
6171 if test -s conftest.err; then
6172 sed '10a\
6173 ... rest of stderr output deleted ...
6174 10q' conftest.err >conftest.er1
6175 cat conftest.er1 >&5
6177 rm -f conftest.er1 conftest.err
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }
6180 done
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6183 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6184 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6191 main ()
6193 #ifndef __GNUC__
6194 choke me
6195 #endif
6198 return 0;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_compiler_gnu=yes
6203 else
6204 ac_compiler_gnu=no
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6211 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6212 if test $ac_compiler_gnu = yes; then
6213 GCC=yes
6214 else
6215 GCC=
6217 ac_test_CFLAGS=${CFLAGS+set}
6218 ac_save_CFLAGS=$CFLAGS
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6220 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6221 if test "${ac_cv_prog_cc_g+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 ac_save_c_werror_flag=$ac_c_werror_flag
6225 ac_c_werror_flag=yes
6226 ac_cv_prog_cc_g=no
6227 CFLAGS="-g"
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6232 main ()
6236 return 0;
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240 ac_cv_prog_cc_g=yes
6241 else
6242 CFLAGS=""
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6247 main ()
6251 return 0;
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6256 else
6257 ac_c_werror_flag=$ac_save_c_werror_flag
6258 CFLAGS="-g"
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6263 main ()
6267 return 0;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_prog_cc_g=yes
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 ac_c_werror_flag=$ac_save_c_werror_flag
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6281 $as_echo "$ac_cv_prog_cc_g" >&6; }
6282 if test "$ac_test_CFLAGS" = set; then
6283 CFLAGS=$ac_save_CFLAGS
6284 elif test $ac_cv_prog_cc_g = yes; then
6285 if test "$GCC" = yes; then
6286 CFLAGS="-g -O2"
6287 else
6288 CFLAGS="-g"
6290 else
6291 if test "$GCC" = yes; then
6292 CFLAGS="-O2"
6293 else
6294 CFLAGS=
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6298 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6299 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 ac_cv_prog_cc_c89=no
6303 ac_save_CC=$CC
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdarg.h>
6307 #include <stdio.h>
6308 #include <sys/types.h>
6309 #include <sys/stat.h>
6310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6311 struct buf { int x; };
6312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6313 static char *e (p, i)
6314 char **p;
6315 int i;
6317 return p[i];
6319 static char *f (char * (*g) (char **, int), char **p, ...)
6321 char *s;
6322 va_list v;
6323 va_start (v,p);
6324 s = g (p, va_arg (v,int));
6325 va_end (v);
6326 return s;
6329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6330 function prototypes and stuff, but not '\xHH' hex character constants.
6331 These don't provoke an error unfortunately, instead are silently treated
6332 as 'x'. The following induces an error, until -std is added to get
6333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6334 array size at least. It's necessary to write '\x00'==0 to get something
6335 that's true only with -std. */
6336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6339 inside strings and character constants. */
6340 #define FOO(x) 'x'
6341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6343 int test (int i, double x);
6344 struct s1 {int (*f) (int a);};
6345 struct s2 {int (*f) (double a);};
6346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6347 int argc;
6348 char **argv;
6350 main ()
6352 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6354 return 0;
6356 _ACEOF
6357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6360 CC="$ac_save_CC $ac_arg"
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 ac_cv_prog_cc_c89=$ac_arg
6364 rm -f core conftest.err conftest.$ac_objext
6365 test "x$ac_cv_prog_cc_c89" != "xno" && break
6366 done
6367 rm -f conftest.$ac_ext
6368 CC=$ac_save_CC
6371 # AC_CACHE_VAL
6372 case "x$ac_cv_prog_cc_c89" in
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6375 $as_echo "none needed" >&6; } ;;
6376 xno)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6378 $as_echo "unsupported" >&6; } ;;
6380 CC="$CC $ac_cv_prog_cc_c89"
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6382 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6383 esac
6384 if test "x$ac_cv_prog_cc_c89" != xno; then :
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394 depcc="$CC" am_compiler_list=
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6397 $as_echo_n "checking dependency style of $depcc... " >&6; }
6398 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6402 # We make a subdir and do the tests there. Otherwise we can end up
6403 # making bogus files that we don't know about and never remove. For
6404 # instance it was reported that on HP-UX the gcc test will end up
6405 # making a dummy file named `D' -- because `-MD' means `put the output
6406 # in D'.
6407 mkdir conftest.dir
6408 # Copy depcomp to subdir because otherwise we won't find it if we're
6409 # using a relative directory.
6410 cp "$am_depcomp" conftest.dir
6411 cd conftest.dir
6412 # We will build objects and dependencies in a subdirectory because
6413 # it helps to detect inapplicable dependency modes. For instance
6414 # both Tru64's cc and ICC support -MD to output dependencies as a
6415 # side effect of compilation, but ICC will put the dependencies in
6416 # the current directory while Tru64 will put them in the object
6417 # directory.
6418 mkdir sub
6420 am_cv_CC_dependencies_compiler_type=none
6421 if test "$am_compiler_list" = ""; then
6422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6424 am__universal=false
6425 case " $depcc " in #(
6426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6427 esac
6429 for depmode in $am_compiler_list; do
6430 # Setup a source with many dependencies, because some compilers
6431 # like to wrap large dependency lists on column 80 (with \), and
6432 # we should not choose a depcomp mode which is confused by this.
6434 # We need to recreate these files for each test, as the compiler may
6435 # overwrite some of them when testing with obscure command lines.
6436 # This happens at least with the AIX C compiler.
6437 : > sub/conftest.c
6438 for i in 1 2 3 4 5 6; do
6439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6441 # Solaris 8's {/usr,}/bin/sh.
6442 touch sub/conftst$i.h
6443 done
6444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6447 # mode. It turns out that the SunPro C++ compiler does not properly
6448 # handle `-M -o', and we need to detect this. Also, some Intel
6449 # versions had trouble with output in subdirs
6450 am__obj=sub/conftest.${OBJEXT-o}
6451 am__minus_obj="-o $am__obj"
6452 case $depmode in
6453 gcc)
6454 # This depmode causes a compiler race in universal mode.
6455 test "$am__universal" = false || continue
6457 nosideeffect)
6458 # after this tag, mechanisms are not by side-effect, so they'll
6459 # only be used when explicitly requested
6460 if test "x$enable_dependency_tracking" = xyes; then
6461 continue
6462 else
6463 break
6466 msvisualcpp | msvcmsys)
6467 # This compiler won't grok `-c -o', but also, the minuso test has
6468 # not run yet. These depmodes are late enough in the game, and
6469 # so weak that their functioning should not be impacted.
6470 am__obj=conftest.${OBJEXT-o}
6471 am__minus_obj=
6473 none) break ;;
6474 esac
6475 if depmode=$depmode \
6476 source=sub/conftest.c object=$am__obj \
6477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6479 >/dev/null 2>conftest.err &&
6480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6484 # icc doesn't choke on unknown options, it will just issue warnings
6485 # or remarks (even with -Werror). So we grep stderr for any message
6486 # that says an option was ignored or not supported.
6487 # When given -MP, icc 7.0 and 7.1 complain thusly:
6488 # icc: Command line warning: ignoring option '-M'; no argument required
6489 # The diagnosis changed in icc 8.0:
6490 # icc: Command line remark: option '-MP' not supported
6491 if (grep 'ignoring option' conftest.err ||
6492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6493 am_cv_CC_dependencies_compiler_type=$depmode
6494 break
6497 done
6499 cd ..
6500 rm -rf conftest.dir
6501 else
6502 am_cv_CC_dependencies_compiler_type=none
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6507 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6511 test "x$enable_dependency_tracking" != xno \
6512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6513 am__fastdepCC_TRUE=
6514 am__fastdepCC_FALSE='#'
6515 else
6516 am__fastdepCC_TRUE='#'
6517 am__fastdepCC_FALSE=
6522 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6524 if test "x$CC" != xcc; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6526 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6529 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6531 set dummy $CC; ac_cc=`$as_echo "$2" |
6532 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6533 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6540 main ()
6544 return 0;
6546 _ACEOF
6547 # Make sure it works both with $CC and with simple cc.
6548 # We do the test twice because some compilers refuse to overwrite an
6549 # existing .o file with -o, though they will create one.
6550 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6551 rm -f conftest2.*
6552 if { { case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6557 $as_echo "$ac_try_echo"; } >&5
6558 (eval "$ac_try") 2>&5
6559 ac_status=$?
6560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6561 test $ac_status = 0; } &&
6562 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565 esac
6566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6567 $as_echo "$ac_try_echo"; } >&5
6568 (eval "$ac_try") 2>&5
6569 ac_status=$?
6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6571 test $ac_status = 0; };
6572 then
6573 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6574 if test "x$CC" != xcc; then
6575 # Test first that cc exists at all.
6576 if { ac_try='cc -c conftest.$ac_ext >&5'
6577 { { case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6582 $as_echo "$ac_try_echo"; } >&5
6583 (eval "$ac_try") 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; }; then
6587 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6588 rm -f conftest2.*
6589 if { { case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592 esac
6593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6594 $as_echo "$ac_try_echo"; } >&5
6595 (eval "$ac_try") 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; } &&
6599 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6604 $as_echo "$ac_try_echo"; } >&5
6605 (eval "$ac_try") 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; };
6609 then
6610 # cc works too.
6612 else
6613 # cc exists but doesn't like -o.
6614 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6618 else
6619 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6621 rm -f core conftest*
6624 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6626 $as_echo "yes" >&6; }
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6631 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6635 # FIXME: we rely on the cache variable name because
6636 # there is no other way.
6637 set dummy $CC
6638 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6639 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6640 if test "$am_t" != yes; then
6641 # Losing compiler, so override with the script.
6642 # FIXME: It is wrong to rewrite CC.
6643 # But if we don't then we get into trouble of one sort or another.
6644 # A longer-term fix would be to have automake use am__CC in this case,
6645 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6646 CC="$am_aux_dir/compile $CC"
6652 # Check whether --enable-largefile was given.
6653 if test "${enable_largefile+set}" = set; then :
6654 enableval=$enable_largefile;
6657 if test "$enable_largefile" != no; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6660 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6661 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 ac_cv_sys_largefile_CC=no
6665 if test "$GCC" != yes; then
6666 ac_save_CC=$CC
6667 while :; do
6668 # IRIX 6.2 and later do not support large files by default,
6669 # so use the C compiler's -n32 option if that helps.
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <sys/types.h>
6673 /* Check that off_t can represent 2**63 - 1 correctly.
6674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6675 since some C++ compilers masquerading as C compilers
6676 incorrectly reject 9223372036854775807. */
6677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6679 && LARGE_OFF_T % 2147483647 == 1)
6680 ? 1 : -1];
6682 main ()
6686 return 0;
6688 _ACEOF
6689 if ac_fn_c_try_compile "$LINENO"; then :
6690 break
6692 rm -f core conftest.err conftest.$ac_objext
6693 CC="$CC -n32"
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 ac_cv_sys_largefile_CC=' -n32'; break
6697 rm -f core conftest.err conftest.$ac_objext
6698 break
6699 done
6700 CC=$ac_save_CC
6701 rm -f conftest.$ac_ext
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6705 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6706 if test "$ac_cv_sys_largefile_CC" != no; then
6707 CC=$CC$ac_cv_sys_largefile_CC
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6711 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6712 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 while :; do
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <sys/types.h>
6719 /* Check that off_t can represent 2**63 - 1 correctly.
6720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6721 since some C++ compilers masquerading as C compilers
6722 incorrectly reject 9223372036854775807. */
6723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6725 && LARGE_OFF_T % 2147483647 == 1)
6726 ? 1 : -1];
6728 main ()
6732 return 0;
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 ac_cv_sys_file_offset_bits=no; break
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #define _FILE_OFFSET_BITS 64
6742 #include <sys/types.h>
6743 /* Check that off_t can represent 2**63 - 1 correctly.
6744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6745 since some C++ compilers masquerading as C compilers
6746 incorrectly reject 9223372036854775807. */
6747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6749 && LARGE_OFF_T % 2147483647 == 1)
6750 ? 1 : -1];
6752 main ()
6756 return 0;
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 ac_cv_sys_file_offset_bits=64; break
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 ac_cv_sys_file_offset_bits=unknown
6764 break
6765 done
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6768 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6769 case $ac_cv_sys_file_offset_bits in #(
6770 no | unknown) ;;
6772 cat >>confdefs.h <<_ACEOF
6773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6774 _ACEOF
6776 esac
6777 rm -rf conftest*
6778 if test $ac_cv_sys_file_offset_bits = unknown; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6780 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6781 if test "${ac_cv_sys_large_files+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 while :; do
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <sys/types.h>
6788 /* Check that off_t can represent 2**63 - 1 correctly.
6789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6790 since some C++ compilers masquerading as C compilers
6791 incorrectly reject 9223372036854775807. */
6792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6794 && LARGE_OFF_T % 2147483647 == 1)
6795 ? 1 : -1];
6797 main ()
6801 return 0;
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 ac_cv_sys_large_files=no; break
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #define _LARGE_FILES 1
6811 #include <sys/types.h>
6812 /* Check that off_t can represent 2**63 - 1 correctly.
6813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6814 since some C++ compilers masquerading as C compilers
6815 incorrectly reject 9223372036854775807. */
6816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6818 && LARGE_OFF_T % 2147483647 == 1)
6819 ? 1 : -1];
6821 main ()
6825 return 0;
6827 _ACEOF
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 ac_cv_sys_large_files=1; break
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 ac_cv_sys_large_files=unknown
6833 break
6834 done
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6837 $as_echo "$ac_cv_sys_large_files" >&6; }
6838 case $ac_cv_sys_large_files in #(
6839 no | unknown) ;;
6841 cat >>confdefs.h <<_ACEOF
6842 #define _LARGE_FILES $ac_cv_sys_large_files
6843 _ACEOF
6845 esac
6846 rm -rf conftest*
6853 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 case $PKG_CONFIG in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6878 done
6879 done
6880 IFS=$as_save_IFS
6883 esac
6885 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6886 if test -n "$PKG_CONFIG"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6888 $as_echo "$PKG_CONFIG" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6896 if test -z "$ac_cv_path_PKG_CONFIG"; then
6897 ac_pt_PKG_CONFIG=$PKG_CONFIG
6898 # Extract the first word of "pkg-config", so it can be a program name with args.
6899 set dummy pkg-config; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 case $ac_pt_PKG_CONFIG in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6926 esac
6928 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6929 if test -n "$ac_pt_PKG_CONFIG"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6931 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$ac_pt_PKG_CONFIG" = x; then
6938 PKG_CONFIG=""
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6945 esac
6946 PKG_CONFIG=$ac_pt_PKG_CONFIG
6948 else
6949 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6953 if test -n "$PKG_CONFIG"; then
6954 _pkg_min_version=0.16
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6956 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6957 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6959 $as_echo "yes" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 PKG_CONFIG=""
6968 if test "x$enable_debug" = "xyes"; then
6969 if test x$cflags_set != xset ; then
6970 case " $CFLAGS " in
6971 *[\ \ ]-g[\ \ ]*) ;;
6972 *) CFLAGS="$CFLAGS -g" ;;
6973 esac
6976 GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
6977 else
6978 GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
6980 if test "x$enable_debug" = "xno"; then
6981 GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
6985 if test "x$enable_visibility" = "xno"; then
6986 GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DDISABLE_VISIBILITY"
6989 # Ensure MSVC-compatible struct packing convention is used when
6990 # compiling for Win32 with gcc.
6991 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
6992 # gcc2 uses "-fnative-struct".
6993 if test x"$glib_native_win32" = xyes; then
6994 if test x"$GCC" = xyes; then
6995 msnative_struct=''
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
6997 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
6998 if test -z "$ac_cv_prog_CC"; then
6999 our_gcc="$CC"
7000 else
7001 our_gcc="$ac_cv_prog_CC"
7003 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
7005 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
7006 msnative_struct='-fnative-struct'
7010 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
7011 msnative_struct='-mms-bitfields'
7014 esac
7015 if test x"$msnative_struct" = x ; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
7017 $as_echo "no way" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
7019 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
7020 else
7021 CFLAGS="$CFLAGS $msnative_struct"
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
7023 $as_echo "${msnative_struct}" >&6; }
7027 GLIB_EXTRA_CFLAGS="${msnative_struct}"
7032 # define a MAINT-like variable REBUILD which is set if Perl
7033 # and awk are found, so autogenerated sources can be rebuilt
7034 for ac_prog in gawk mawk nawk awk
7036 # Extract the first word of "$ac_prog", so it can be a program name with args.
7037 set dummy $ac_prog; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if test "${ac_cv_prog_AWK+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$AWK"; then
7044 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_prog_AWK="$ac_prog"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7057 done
7058 done
7059 IFS=$as_save_IFS
7063 AWK=$ac_cv_prog_AWK
7064 if test -n "$AWK"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7066 $as_echo "$AWK" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7073 test -n "$AWK" && break
7074 done
7076 for ac_prog in perl5 perl
7078 # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if test "${ac_cv_prog_PERL+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$PERL"; then
7086 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_PERL="$ac_prog"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 PERL=$ac_cv_prog_PERL
7106 if test -n "$PERL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7108 $as_echo "$PERL" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7115 test -n "$PERL" && break
7116 done
7118 # We would like indent, but don't require it.
7119 # Extract the first word of "indent", so it can be a program name with args.
7120 set dummy indent; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_prog_INDENT+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$INDENT"; then
7127 ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_INDENT="indent"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7146 INDENT=$ac_cv_prog_INDENT
7147 if test -n "$INDENT"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7149 $as_echo "$INDENT" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7156 REBUILD=\#
7157 if test "x$enable_rebuilds" = "xyes" && \
7158 test -n "$PERL" && \
7159 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7160 test -n "$AWK" ; then
7161 REBUILD=
7165 # Need full path to Perl for glib-mkenums
7167 if test "x$PERL" != x ; then
7168 # Extract the first word of "$PERL", so it can be a program name with args.
7169 set dummy $PERL; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if test "${ac_cv_path_PERL_PATH+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 case $PERL_PATH in
7176 [\\/]* | ?:[\\/]*)
7177 ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7191 done
7192 done
7193 IFS=$as_save_IFS
7196 esac
7198 PERL_PATH=$ac_cv_path_PERL_PATH
7199 if test -n "$PERL_PATH"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7201 $as_echo "$PERL_PATH" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7209 if test "x$PERL_PATH" = x ; then
7210 PERL_PATH="/usr/bin/env perl"
7214 # Need suitable python path for greport
7219 if test -n "$PYTHON"; then
7220 # If the user set $PYTHON, use it and don't search something else.
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
7222 $as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
7223 prog="import sys
7224 # split strings by '.' and convert to numeric. Append some zeros
7225 # because we need at least 4 digits for the hex conversion.
7226 # map returns an iterator in Python 3.0 and a list in 2.x
7227 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
7228 minverhex = 0
7229 # xrange is not present in Python 3.0 and range returns an iterator
7230 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7231 sys.exit(sys.hexversion < minverhex)"
7232 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7233 ($PYTHON -c "$prog") >&5 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; then :
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7238 $as_echo "yes" >&6; }
7239 else
7240 as_fn_error "too old" "$LINENO" 5
7242 am_display_PYTHON=$PYTHON
7243 else
7244 # Otherwise, try each interpreter until we find one that satisfies
7245 # VERSION.
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
7247 $as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
7248 if test "${am_cv_pathless_PYTHON+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7252 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7253 test "$am_cv_pathless_PYTHON" = none && break
7254 prog="import sys
7255 # split strings by '.' and convert to numeric. Append some zeros
7256 # because we need at least 4 digits for the hex conversion.
7257 # map returns an iterator in Python 3.0 and a list in 2.x
7258 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
7259 minverhex = 0
7260 # xrange is not present in Python 3.0 and range returns an iterator
7261 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7262 sys.exit(sys.hexversion < minverhex)"
7263 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7264 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; then :
7268 break
7270 done
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7273 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7274 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7275 if test "$am_cv_pathless_PYTHON" = none; then
7276 PYTHON=:
7277 else
7278 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7279 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_path_PYTHON+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 case $PYTHON in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7306 esac
7308 PYTHON=$ac_cv_path_PYTHON
7309 if test -n "$PYTHON"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7311 $as_echo "$PYTHON" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7319 am_display_PYTHON=$am_cv_pathless_PYTHON
7323 if test "$PYTHON" = :; then
7324 PYTHON="/usr/bin/env python2.4"
7325 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7329 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7330 if test "${am_cv_python_version+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7336 $as_echo "$am_cv_python_version" >&6; }
7337 PYTHON_VERSION=$am_cv_python_version
7341 PYTHON_PREFIX='${prefix}'
7343 PYTHON_EXEC_PREFIX='${exec_prefix}'
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7348 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7349 if test "${am_cv_python_platform+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7355 $as_echo "$am_cv_python_platform" >&6; }
7356 PYTHON_PLATFORM=$am_cv_python_platform
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7362 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7363 if test "${am_cv_python_pythondir+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 if test "x$prefix" = xNONE
7367 then
7368 am_py_prefix=$ac_default_prefix
7369 else
7370 am_py_prefix=$prefix
7372 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
7373 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7374 case $am_cv_python_pythondir in
7375 $am_py_prefix*)
7376 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7377 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7380 case $am_py_prefix in
7381 /usr|/System*) ;;
7383 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7385 esac
7387 esac
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7391 $as_echo "$am_cv_python_pythondir" >&6; }
7392 pythondir=$am_cv_python_pythondir
7396 pkgpythondir=\${pythondir}/$PACKAGE
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7400 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7401 if test "${am_cv_python_pyexecdir+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test "x$exec_prefix" = xNONE
7405 then
7406 am_py_exec_prefix=$am_py_prefix
7407 else
7408 am_py_exec_prefix=$exec_prefix
7410 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
7411 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7412 case $am_cv_python_pyexecdir in
7413 $am_py_exec_prefix*)
7414 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7415 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7418 case $am_py_exec_prefix in
7419 /usr|/System*) ;;
7421 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7423 esac
7425 esac
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7429 $as_echo "$am_cv_python_pyexecdir" >&6; }
7430 pyexecdir=$am_cv_python_pyexecdir
7434 pkgpyexecdir=\${pyexecdir}/$PACKAGE
7445 if test x"$glib_native_win32" = xyes; then
7446 with_libiconv=native
7447 else
7449 # Check whether --with-libiconv was given.
7450 if test "${with_libiconv+set}" = set; then :
7451 withval=$with_libiconv;
7452 else
7453 with_libiconv=maybe
7457 found_iconv=no
7458 case $with_libiconv in
7459 maybe)
7460 # Check in the C library first
7461 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7462 if test "x$ac_cv_func_iconv_open" = x""yes; then :
7463 with_libiconv=no; found_iconv=yes
7466 # Check if we have GNU libiconv
7467 if test $found_iconv = "no"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7469 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7470 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 ac_check_lib_save_LIBS=$LIBS
7474 LIBS="-liconv $LIBS"
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7478 /* Override any GCC internal prototype to avoid an error.
7479 Use char because int might match the return type of a GCC
7480 builtin and then its argument prototype would still apply. */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 char libiconv_open ();
7486 main ()
7488 return libiconv_open ();
7490 return 0;
7492 _ACEOF
7493 if ac_fn_c_try_link "$LINENO"; then :
7494 ac_cv_lib_iconv_libiconv_open=yes
7495 else
7496 ac_cv_lib_iconv_libiconv_open=no
7498 rm -f core conftest.err conftest.$ac_objext \
7499 conftest$ac_exeext conftest.$ac_ext
7500 LIBS=$ac_check_lib_save_LIBS
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7503 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7504 if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then :
7505 with_libiconv=gnu; found_iconv=yes
7509 # Check if we have a iconv in -liconv, possibly from vendor
7510 if test $found_iconv = "no"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7512 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7513 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-liconv $LIBS"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7521 /* Override any GCC internal prototype to avoid an error.
7522 Use char because int might match the return type of a GCC
7523 builtin and then its argument prototype would still apply. */
7524 #ifdef __cplusplus
7525 extern "C"
7526 #endif
7527 char iconv_open ();
7529 main ()
7531 return iconv_open ();
7533 return 0;
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"; then :
7537 ac_cv_lib_iconv_iconv_open=yes
7538 else
7539 ac_cv_lib_iconv_iconv_open=no
7541 rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 LIBS=$ac_check_lib_save_LIBS
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7546 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7547 if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then :
7548 with_libiconv=native; found_iconv=yes
7554 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7555 if test "x$ac_cv_func_iconv_open" = x""yes; then :
7556 with_libiconv=no; found_iconv=yes
7560 gnu|yes)
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7562 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7563 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 ac_check_lib_save_LIBS=$LIBS
7567 LIBS="-liconv $LIBS"
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7571 /* Override any GCC internal prototype to avoid an error.
7572 Use char because int might match the return type of a GCC
7573 builtin and then its argument prototype would still apply. */
7574 #ifdef __cplusplus
7575 extern "C"
7576 #endif
7577 char libiconv_open ();
7579 main ()
7581 return libiconv_open ();
7583 return 0;
7585 _ACEOF
7586 if ac_fn_c_try_link "$LINENO"; then :
7587 ac_cv_lib_iconv_libiconv_open=yes
7588 else
7589 ac_cv_lib_iconv_libiconv_open=no
7591 rm -f core conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7593 LIBS=$ac_check_lib_save_LIBS
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7596 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7597 if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then :
7598 with_libiconv=gnu; found_iconv=yes
7602 native)
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7604 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7605 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 ac_check_lib_save_LIBS=$LIBS
7609 LIBS="-liconv $LIBS"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 /* Override any GCC internal prototype to avoid an error.
7614 Use char because int might match the return type of a GCC
7615 builtin and then its argument prototype would still apply. */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 char iconv_open ();
7621 main ()
7623 return iconv_open ();
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 ac_cv_lib_iconv_iconv_open=yes
7630 else
7631 ac_cv_lib_iconv_iconv_open=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7638 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7639 if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then :
7640 with_libiconv=native; found_iconv=yes
7644 esac
7646 if test "x$found_iconv" = "xno" ; then
7647 as_fn_error "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7652 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7653 if test "${ac_cv_path_GREP+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -z "$GREP"; then
7657 ac_path_GREP_found=false
7658 # Loop through the user's path and test for each of PROGNAME-LIST
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_prog in grep ggrep; do
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7667 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7668 # Check for GNU ac_path_GREP and select it if it is found.
7669 # Check for GNU $ac_path_GREP
7670 case `"$ac_path_GREP" --version 2>&1` in
7671 *GNU*)
7672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7674 ac_count=0
7675 $as_echo_n 0123456789 >"conftest.in"
7676 while :
7678 cat "conftest.in" "conftest.in" >"conftest.tmp"
7679 mv "conftest.tmp" "conftest.in"
7680 cp "conftest.in" "conftest.nl"
7681 $as_echo 'GREP' >> "conftest.nl"
7682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7684 as_fn_arith $ac_count + 1 && ac_count=$as_val
7685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7686 # Best one so far, save it but keep looking for a better one
7687 ac_cv_path_GREP="$ac_path_GREP"
7688 ac_path_GREP_max=$ac_count
7690 # 10*(2^10) chars as input seems more than enough
7691 test $ac_count -gt 10 && break
7692 done
7693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7694 esac
7696 $ac_path_GREP_found && break 3
7697 done
7698 done
7699 done
7700 IFS=$as_save_IFS
7701 if test -z "$ac_cv_path_GREP"; then
7702 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7704 else
7705 ac_cv_path_GREP=$GREP
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7710 $as_echo "$ac_cv_path_GREP" >&6; }
7711 GREP="$ac_cv_path_GREP"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7715 $as_echo_n "checking for egrep... " >&6; }
7716 if test "${ac_cv_path_EGREP+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7720 then ac_cv_path_EGREP="$GREP -E"
7721 else
7722 if test -z "$EGREP"; then
7723 ac_path_EGREP_found=false
7724 # Loop through the user's path and test for each of PROGNAME-LIST
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_prog in egrep; do
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7733 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7734 # Check for GNU ac_path_EGREP and select it if it is found.
7735 # Check for GNU $ac_path_EGREP
7736 case `"$ac_path_EGREP" --version 2>&1` in
7737 *GNU*)
7738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7740 ac_count=0
7741 $as_echo_n 0123456789 >"conftest.in"
7742 while :
7744 cat "conftest.in" "conftest.in" >"conftest.tmp"
7745 mv "conftest.tmp" "conftest.in"
7746 cp "conftest.in" "conftest.nl"
7747 $as_echo 'EGREP' >> "conftest.nl"
7748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7750 as_fn_arith $ac_count + 1 && ac_count=$as_val
7751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7752 # Best one so far, save it but keep looking for a better one
7753 ac_cv_path_EGREP="$ac_path_EGREP"
7754 ac_path_EGREP_max=$ac_count
7756 # 10*(2^10) chars as input seems more than enough
7757 test $ac_count -gt 10 && break
7758 done
7759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7760 esac
7762 $ac_path_EGREP_found && break 3
7763 done
7764 done
7765 done
7766 IFS=$as_save_IFS
7767 if test -z "$ac_cv_path_EGREP"; then
7768 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7770 else
7771 ac_cv_path_EGREP=$EGREP
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7777 $as_echo "$ac_cv_path_EGREP" >&6; }
7778 EGREP="$ac_cv_path_EGREP"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7783 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7784 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7790 #include <features.h>
7791 #ifdef __GNU_LIBRARY__
7792 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7793 Lucky GNU user
7794 #endif
7795 #endif
7797 _ACEOF
7798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7799 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7800 ac_cv_gnu_library_2_1=yes
7801 else
7802 ac_cv_gnu_library_2_1=no
7804 rm -f conftest*
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7810 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7812 GLIBC21="$ac_cv_gnu_library_2_1"
7815 # Check whether --enable-iconv-cache was given.
7816 if test "${enable_iconv_cache+set}" = set; then :
7817 enableval=$enable_iconv_cache;
7818 else
7819 enable_iconv_cache=auto
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to cache iconv descriptors" >&5
7824 $as_echo_n "checking Whether to cache iconv descriptors... " >&6; }
7825 case $enable_iconv_cache in
7826 auto)
7827 if test $ac_cv_gnu_library_2_1 = yes; then
7828 enable_iconv_cache=no
7829 else
7830 enable_iconv_cache=yes
7833 yes|no)
7835 *) as_fn_error "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7837 esac
7839 if test $enable_iconv_cache = yes; then
7841 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7846 $as_echo "$enable_iconv_cache" >&6; }
7850 pkg_failed=no
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
7852 $as_echo_n "checking for ZLIB... " >&6; }
7854 if test -n "$ZLIB_CFLAGS"; then
7855 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
7856 elif test -n "$PKG_CONFIG"; then
7857 if test -n "$PKG_CONFIG" && \
7858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7859 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }; then
7863 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
7864 else
7865 pkg_failed=yes
7867 else
7868 pkg_failed=untried
7870 if test -n "$ZLIB_LIBS"; then
7871 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
7872 elif test -n "$PKG_CONFIG"; then
7873 if test -n "$PKG_CONFIG" && \
7874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7875 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7876 ac_status=$?
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; }; then
7879 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
7880 else
7881 pkg_failed=yes
7883 else
7884 pkg_failed=untried
7889 if test $pkg_failed = yes; then
7891 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7892 _pkg_short_errors_supported=yes
7893 else
7894 _pkg_short_errors_supported=no
7896 if test $_pkg_short_errors_supported = yes; then
7897 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "zlib" 2>&1`
7898 else
7899 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "zlib" 2>&1`
7901 # Put the nasty error message in config.log where it belongs
7902 echo "$ZLIB_PKG_ERRORS" >&5
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 found_zlib=no
7907 elif test $pkg_failed = untried; then
7908 found_zlib=no
7909 else
7910 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
7911 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914 found_zlib=yes
7916 if test "x$found_zlib" = "xno" ; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7918 $as_echo_n "checking for ANSI C header files... " >&6; }
7919 if test "${ac_cv_header_stdc+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <stdlib.h>
7925 #include <stdarg.h>
7926 #include <string.h>
7927 #include <float.h>
7930 main ()
7934 return 0;
7936 _ACEOF
7937 if ac_fn_c_try_compile "$LINENO"; then :
7938 ac_cv_header_stdc=yes
7939 else
7940 ac_cv_header_stdc=no
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 if test $ac_cv_header_stdc = yes; then
7945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 #include <string.h>
7950 _ACEOF
7951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7952 $EGREP "memchr" >/dev/null 2>&1; then :
7954 else
7955 ac_cv_header_stdc=no
7957 rm -f conftest*
7961 if test $ac_cv_header_stdc = yes; then
7962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 #include <stdlib.h>
7967 _ACEOF
7968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7969 $EGREP "free" >/dev/null 2>&1; then :
7971 else
7972 ac_cv_header_stdc=no
7974 rm -f conftest*
7978 if test $ac_cv_header_stdc = yes; then
7979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7980 if test "$cross_compiling" = yes; then :
7982 else
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <ctype.h>
7986 #include <stdlib.h>
7987 #if ((' ' & 0x0FF) == 0x020)
7988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7990 #else
7991 # define ISLOWER(c) \
7992 (('a' <= (c) && (c) <= 'i') \
7993 || ('j' <= (c) && (c) <= 'r') \
7994 || ('s' <= (c) && (c) <= 'z'))
7995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7996 #endif
7998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8000 main ()
8002 int i;
8003 for (i = 0; i < 256; i++)
8004 if (XOR (islower (i), ISLOWER (i))
8005 || toupper (i) != TOUPPER (i))
8006 return 2;
8007 return 0;
8009 _ACEOF
8010 if ac_fn_c_try_run "$LINENO"; then :
8012 else
8013 ac_cv_header_stdc=no
8015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8016 conftest.$ac_objext conftest.beam conftest.$ac_ext
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8022 $as_echo "$ac_cv_header_stdc" >&6; }
8023 if test $ac_cv_header_stdc = yes; then
8025 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8031 inttypes.h stdint.h unistd.h
8032 do :
8033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8036 eval as_val=\$$as_ac_Header
8037 if test "x$as_val" = x""yes; then :
8038 cat >>confdefs.h <<_ACEOF
8039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8040 _ACEOF
8044 done
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8048 $as_echo_n "checking for inflate in -lz... " >&6; }
8049 if test "${ac_cv_lib_z_inflate+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lz $LIBS"
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8057 /* Override any GCC internal prototype to avoid an error.
8058 Use char because int might match the return type of a GCC
8059 builtin and then its argument prototype would still apply. */
8060 #ifdef __cplusplus
8061 extern "C"
8062 #endif
8063 char inflate ();
8065 main ()
8067 return inflate ();
8069 return 0;
8071 _ACEOF
8072 if ac_fn_c_try_link "$LINENO"; then :
8073 ac_cv_lib_z_inflate=yes
8074 else
8075 ac_cv_lib_z_inflate=no
8077 rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8082 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8083 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
8084 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8085 if test "x$ac_cv_header_zlib_h" = x""yes; then :
8086 found_zlib=yes
8092 if test "x$found_zlib" = "xno" ; then
8093 as_fn_error "*** Working zlib library and headers not found ***" "$LINENO" 5
8095 ZLIB_LIBS='-lz'
8100 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
8101 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
8104 for ac_header in locale.h
8105 do :
8106 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8107 if test "x$ac_cv_header_locale_h" = x""yes; then :
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_LOCALE_H 1
8110 _ACEOF
8114 done
8116 if test $ac_cv_header_locale_h = yes; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8118 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8119 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <locale.h>
8126 main ()
8128 return LC_MESSAGES
8130 return 0;
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"; then :
8134 am_cv_val_LC_MESSAGES=yes
8135 else
8136 am_cv_val_LC_MESSAGES=no
8138 rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8142 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8143 if test $am_cv_val_LC_MESSAGES = yes; then
8145 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8149 USE_NLS=yes
8152 gt_cv_have_gettext=no
8154 CATOBJEXT=NONE
8155 XGETTEXT=:
8156 INTLLIBS=
8158 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8159 if test "x$ac_cv_header_libintl_h" = x""yes; then :
8160 gt_cv_func_dgettext_libintl="no"
8161 libintl_extra_libs=""
8164 # First check in libc
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
8167 $as_echo_n "checking for ngettext in libc... " >&6; }
8168 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8174 #include <libintl.h>
8177 main ()
8179 return !ngettext ("","", 1)
8181 return 0;
8183 _ACEOF
8184 if ac_fn_c_try_link "$LINENO"; then :
8185 gt_cv_func_ngettext_libc=yes
8186 else
8187 gt_cv_func_ngettext_libc=no
8189 rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
8194 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
8196 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
8198 $as_echo_n "checking for dgettext in libc... " >&6; }
8199 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8205 #include <libintl.h>
8208 main ()
8210 return !dgettext ("","")
8212 return 0;
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 gt_cv_func_dgettext_libc=yes
8217 else
8218 gt_cv_func_dgettext_libc=no
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
8225 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
8228 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8229 for ac_func in bind_textdomain_codeset
8230 do :
8231 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8232 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8235 _ACEOF
8238 done
8243 # If we don't have everything we want, check in libintl
8245 if test "$gt_cv_func_dgettext_libc" != "yes" \
8246 || test "$gt_cv_func_ngettext_libc" != "yes" \
8247 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
8250 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
8251 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lintl $LIBS"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char bindtextdomain ();
8267 main ()
8269 return bindtextdomain ();
8271 return 0;
8273 _ACEOF
8274 if ac_fn_c_try_link "$LINENO"; then :
8275 ac_cv_lib_intl_bindtextdomain=yes
8276 else
8277 ac_cv_lib_intl_bindtextdomain=no
8279 rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281 LIBS=$ac_check_lib_save_LIBS
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
8284 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
8285 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8287 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8288 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 ac_check_lib_save_LIBS=$LIBS
8292 LIBS="-lintl $LIBS"
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 char ngettext ();
8304 main ()
8306 return ngettext ();
8308 return 0;
8310 _ACEOF
8311 if ac_fn_c_try_link "$LINENO"; then :
8312 ac_cv_lib_intl_ngettext=yes
8313 else
8314 ac_cv_lib_intl_ngettext=no
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 LIBS=$ac_check_lib_save_LIBS
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8321 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8322 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
8324 $as_echo_n "checking for dgettext in -lintl... " >&6; }
8325 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 ac_check_lib_save_LIBS=$LIBS
8329 LIBS="-lintl $LIBS"
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 char dgettext ();
8341 main ()
8343 return dgettext ();
8345 return 0;
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 ac_cv_lib_intl_dgettext=yes
8350 else
8351 ac_cv_lib_intl_dgettext=no
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
8358 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
8359 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
8360 gt_cv_func_dgettext_libintl=yes
8368 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
8370 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8372 $as_echo "" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8374 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8375 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 ac_check_lib_save_LIBS=$LIBS
8379 LIBS="-lintl -liconv $LIBS"
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8383 /* Override any GCC internal prototype to avoid an error.
8384 Use char because int might match the return type of a GCC
8385 builtin and then its argument prototype would still apply. */
8386 #ifdef __cplusplus
8387 extern "C"
8388 #endif
8389 char ngettext ();
8391 main ()
8393 return ngettext ();
8395 return 0;
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"; then :
8399 ac_cv_lib_intl_ngettext=yes
8400 else
8401 ac_cv_lib_intl_ngettext=no
8403 rm -f core conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
8405 LIBS=$ac_check_lib_save_LIBS
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8408 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8409 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
8411 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
8412 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lintl -liconv $LIBS"
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8420 /* Override any GCC internal prototype to avoid an error.
8421 Use char because int might match the return type of a GCC
8422 builtin and then its argument prototype would still apply. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 char dcgettext ();
8428 main ()
8430 return dcgettext ();
8432 return 0;
8434 _ACEOF
8435 if ac_fn_c_try_link "$LINENO"; then :
8436 ac_cv_lib_intl_dcgettext=yes
8437 else
8438 ac_cv_lib_intl_dcgettext=no
8440 rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
8445 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
8446 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
8447 gt_cv_func_dgettext_libintl=yes
8448 libintl_extra_libs=-liconv
8449 else
8453 else
8460 # If we found libintl, then check in it for bind_textdomain_codeset();
8461 # we'll prefer libc if neither have bind_textdomain_codeset(),
8462 # and both have dgettext and ngettext
8464 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8465 glib_save_LIBS="$LIBS"
8466 LIBS="$LIBS -lintl $libintl_extra_libs"
8467 unset ac_cv_func_bind_textdomain_codeset
8468 for ac_func in bind_textdomain_codeset
8469 do :
8470 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8471 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
8472 cat >>confdefs.h <<_ACEOF
8473 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8474 _ACEOF
8477 done
8479 LIBS="$glib_save_LIBS"
8481 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8482 gt_cv_func_dgettext_libc=no
8483 else
8484 if test "$gt_cv_func_dgettext_libc" = "yes" \
8485 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8486 gt_cv_func_dgettext_libintl=no
8492 if test "$gt_cv_func_dgettext_libc" = "yes" \
8493 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8494 gt_cv_have_gettext=yes
8497 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8498 INTLLIBS="-lintl $libintl_extra_libs"
8501 if test "$gt_cv_have_gettext" = "yes"; then
8503 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8505 # Extract the first word of "msgfmt", so it can be a program name with args.
8506 set dummy msgfmt; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if test "${ac_cv_path_MSGFMT+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 case "$MSGFMT" in
8514 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8518 for ac_dir in $PATH; do
8519 test -z "$ac_dir" && ac_dir=.
8520 if test -f $ac_dir/$ac_word; then
8521 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8522 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8523 break
8526 done
8527 IFS="$ac_save_ifs"
8528 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8530 esac
8532 MSGFMT="$ac_cv_path_MSGFMT"
8533 if test "$MSGFMT" != "no"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8535 $as_echo "$MSGFMT" >&6; }
8536 else
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8540 if test "$MSGFMT" != "no"; then
8541 glib_save_LIBS="$LIBS"
8542 LIBS="$LIBS $INTLLIBS"
8543 for ac_func in dcgettext
8544 do :
8545 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8546 if test "x$ac_cv_func_dcgettext" = x""yes; then :
8547 cat >>confdefs.h <<_ACEOF
8548 #define HAVE_DCGETTEXT 1
8549 _ACEOF
8552 done
8554 MSGFMT_OPTS=
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8556 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8557 cat >conftest.foo <<_ACEOF
8559 msgid ""
8560 msgstr ""
8561 "Content-Type: text/plain; charset=UTF-8\n"
8562 "Project-Id-Version: test 1.0\n"
8563 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8564 "Last-Translator: test <foo@bar.xx>\n"
8565 "Language-Team: C <LL@li.org>\n"
8566 "MIME-Version: 1.0\n"
8567 "Content-Transfer-Encoding: 8bit\n"
8569 _ACEOF
8570 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8571 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8572 ac_status=$?
8573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574 test $ac_status = 0; }; then
8575 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8576 $as_echo "yes" >&6; }
8577 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 echo "$as_me: failed input was:" >&5
8580 sed 's/^/| /' conftest.foo >&5
8583 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8584 set dummy gmsgfmt; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 case $GMSGFMT in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8612 esac
8614 GMSGFMT=$ac_cv_path_GMSGFMT
8615 if test -n "$GMSGFMT"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8617 $as_echo "$GMSGFMT" >&6; }
8618 else
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8624 # Extract the first word of "xgettext", so it can be a program name with args.
8625 set dummy xgettext; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 case "$XGETTEXT" in
8633 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8637 for ac_dir in $PATH; do
8638 test -z "$ac_dir" && ac_dir=.
8639 if test -f $ac_dir/$ac_word; then
8640 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8641 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8642 break
8645 done
8646 IFS="$ac_save_ifs"
8647 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8649 esac
8651 XGETTEXT="$ac_cv_path_XGETTEXT"
8652 if test "$XGETTEXT" != ":"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8654 $as_echo "$XGETTEXT" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8664 main ()
8666 extern int _nl_msg_cat_cntr;
8667 return _nl_msg_cat_cntr
8669 return 0;
8671 _ACEOF
8672 if ac_fn_c_try_link "$LINENO"; then :
8673 CATOBJEXT=.gmo
8674 DATADIRNAME=share
8675 else
8676 case $host in
8677 *-*-solaris*)
8678 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8679 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
8680 CATOBJEXT=.gmo
8681 DATADIRNAME=share
8682 else
8683 CATOBJEXT=.mo
8684 DATADIRNAME=lib
8689 CATOBJEXT=.mo
8690 DATADIRNAME=lib
8692 esac
8694 rm -f core conftest.err conftest.$ac_objext \
8695 conftest$ac_exeext conftest.$ac_ext
8696 LIBS="$glib_save_LIBS"
8697 INSTOBJEXT=.mo
8698 else
8699 gt_cv_have_gettext=no
8707 if test "$gt_cv_have_gettext" = "yes" ; then
8709 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8713 if test "$XGETTEXT" != ":"; then
8714 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8718 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8719 XGETTEXT=":"
8723 # We need to process the po/ directory.
8724 POSUB=po
8726 ac_config_commands="$ac_config_commands default-1"
8729 for lang in $ALL_LINGUAS; do
8730 GMOFILES="$GMOFILES $lang.gmo"
8731 POFILES="$POFILES $lang.po"
8732 done
8746 if test "$gt_cv_have_gettext" = "yes"; then
8747 if test "x$ALL_LINGUAS" = "x"; then
8748 LINGUAS=
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8751 $as_echo_n "checking for catalogs to be installed... " >&6; }
8752 NEW_LINGUAS=
8753 for presentlang in $ALL_LINGUAS; do
8754 useit=no
8755 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8756 desiredlanguages="$LINGUAS"
8757 else
8758 desiredlanguages="$ALL_LINGUAS"
8760 for desiredlang in $desiredlanguages; do
8761 # Use the presentlang catalog if desiredlang is
8762 # a. equal to presentlang, or
8763 # b. a variant of presentlang (because in this case,
8764 # presentlang can be used as a fallback for messages
8765 # which are not translated in the desiredlang catalog).
8766 case "$desiredlang" in
8767 "$presentlang"*) useit=yes;;
8768 esac
8769 done
8770 if test $useit = yes; then
8771 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8773 done
8774 LINGUAS=$NEW_LINGUAS
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8776 $as_echo "$LINGUAS" >&6; }
8779 if test -n "$LINGUAS"; then
8780 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8784 MKINSTALLDIRS=
8785 if test -n "$ac_aux_dir"; then
8786 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8788 if test -z "$MKINSTALLDIRS"; then
8789 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8793 test -d po || mkdir po
8794 if test "x$srcdir" != "x."; then
8795 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8796 posrcprefix="$srcdir/"
8797 else
8798 posrcprefix="../$srcdir/"
8800 else
8801 posrcprefix="../"
8803 rm -f po/POTFILES
8804 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8805 < $srcdir/po/POTFILES.in > po/POTFILES
8808 if test "$gt_cv_have_gettext" != "yes" ; then
8809 as_fn_error "
8810 *** You must have either have gettext support in your C library, or use the
8811 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
8812 " "$LINENO" 5
8815 LIBS="$INTLLIBS $LIBS"
8817 GETTEXT_PACKAGE=glib20
8820 cat >>confdefs.h <<_ACEOF
8821 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8822 _ACEOF
8825 glib_save_prefix="$prefix"
8826 glib_save_exec_prefix="$exec_prefix"
8827 glib_save_datarootdir="$datarootdir"
8828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8829 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8830 datarootdir=`eval echo "${datarootdir}"`
8831 if test "x$CATOBJEXT" = "x.mo" ; then
8832 localedir=`eval echo "${libdir}/locale"`
8833 else
8834 localedir=`eval echo "${datadir}/locale"`
8836 prefix="$glib_save_prefix"
8837 exec_prefix="$glib_save_exec_prefix"
8838 datarootdir="$glib_save_datarootdir"
8840 cat >>confdefs.h <<_ACEOF
8841 #define GLIB_LOCALE_DIR "$localedir"
8842 _ACEOF
8847 if test x"$glib_native_win32" != xyes; then
8848 if test x$with_libiconv != xno ; then
8849 case " $INTLLIBS " in
8850 *[\ \ ]-liconv[\ \ ]*) ;;
8851 *) ICONV_LIBS="-liconv" ;;
8852 esac
8857 case $with_libiconv in
8858 gnu)
8860 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
8863 native)
8865 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
8868 esac
8871 case `pwd` in
8872 *\ * | *\ *)
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8875 esac
8879 macro_version='2.2.6b'
8880 macro_revision='1.3017'
8894 ltmain="$ac_aux_dir/ltmain.sh"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8897 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8898 if test "${ac_cv_path_SED+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8902 for ac_i in 1 2 3 4 5 6 7; do
8903 ac_script="$ac_script$as_nl$ac_script"
8904 done
8905 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8906 { ac_script=; unset ac_script;}
8907 if test -z "$SED"; then
8908 ac_path_SED_found=false
8909 # Loop through the user's path and test for each of PROGNAME-LIST
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_prog in sed gsed; do
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8918 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8919 # Check for GNU ac_path_SED and select it if it is found.
8920 # Check for GNU $ac_path_SED
8921 case `"$ac_path_SED" --version 2>&1` in
8922 *GNU*)
8923 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8925 ac_count=0
8926 $as_echo_n 0123456789 >"conftest.in"
8927 while :
8929 cat "conftest.in" "conftest.in" >"conftest.tmp"
8930 mv "conftest.tmp" "conftest.in"
8931 cp "conftest.in" "conftest.nl"
8932 $as_echo '' >> "conftest.nl"
8933 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8935 as_fn_arith $ac_count + 1 && ac_count=$as_val
8936 if test $ac_count -gt ${ac_path_SED_max-0}; then
8937 # Best one so far, save it but keep looking for a better one
8938 ac_cv_path_SED="$ac_path_SED"
8939 ac_path_SED_max=$ac_count
8941 # 10*(2^10) chars as input seems more than enough
8942 test $ac_count -gt 10 && break
8943 done
8944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8945 esac
8947 $ac_path_SED_found && break 3
8948 done
8949 done
8950 done
8951 IFS=$as_save_IFS
8952 if test -z "$ac_cv_path_SED"; then
8953 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
8955 else
8956 ac_cv_path_SED=$SED
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8961 $as_echo "$ac_cv_path_SED" >&6; }
8962 SED="$ac_cv_path_SED"
8963 rm -f conftest.sed
8965 test -z "$SED" && SED=sed
8966 Xsed="$SED -e 1s/^X//"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8979 $as_echo_n "checking for fgrep... " >&6; }
8980 if test "${ac_cv_path_FGREP+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8984 then ac_cv_path_FGREP="$GREP -F"
8985 else
8986 if test -z "$FGREP"; then
8987 ac_path_FGREP_found=false
8988 # Loop through the user's path and test for each of PROGNAME-LIST
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_prog in fgrep; do
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8997 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8998 # Check for GNU ac_path_FGREP and select it if it is found.
8999 # Check for GNU $ac_path_FGREP
9000 case `"$ac_path_FGREP" --version 2>&1` in
9001 *GNU*)
9002 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9004 ac_count=0
9005 $as_echo_n 0123456789 >"conftest.in"
9006 while :
9008 cat "conftest.in" "conftest.in" >"conftest.tmp"
9009 mv "conftest.tmp" "conftest.in"
9010 cp "conftest.in" "conftest.nl"
9011 $as_echo 'FGREP' >> "conftest.nl"
9012 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9014 as_fn_arith $ac_count + 1 && ac_count=$as_val
9015 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9016 # Best one so far, save it but keep looking for a better one
9017 ac_cv_path_FGREP="$ac_path_FGREP"
9018 ac_path_FGREP_max=$ac_count
9020 # 10*(2^10) chars as input seems more than enough
9021 test $ac_count -gt 10 && break
9022 done
9023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9024 esac
9026 $ac_path_FGREP_found && break 3
9027 done
9028 done
9029 done
9030 IFS=$as_save_IFS
9031 if test -z "$ac_cv_path_FGREP"; then
9032 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9034 else
9035 ac_cv_path_FGREP=$FGREP
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9041 $as_echo "$ac_cv_path_FGREP" >&6; }
9042 FGREP="$ac_cv_path_FGREP"
9045 test -z "$GREP" && GREP=grep
9065 # Check whether --with-gnu-ld was given.
9066 if test "${with_gnu_ld+set}" = set; then :
9067 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9068 else
9069 with_gnu_ld=no
9072 ac_prog=ld
9073 if test "$GCC" = yes; then
9074 # Check if gcc -print-prog-name=ld gives a path.
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9076 $as_echo_n "checking for ld used by $CC... " >&6; }
9077 case $host in
9078 *-*-mingw*)
9079 # gcc leaves a trailing carriage return which upsets mingw
9080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9083 esac
9084 case $ac_prog in
9085 # Accept absolute paths.
9086 [\\/]* | ?:[\\/]*)
9087 re_direlt='/[^/][^/]*/\.\./'
9088 # Canonicalize the pathname of ld
9089 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9090 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9091 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9092 done
9093 test -z "$LD" && LD="$ac_prog"
9096 # If it fails, then pretend we aren't using GCC.
9097 ac_prog=ld
9100 # If it is relative, then search for the first ld in PATH.
9101 with_gnu_ld=unknown
9103 esac
9104 elif test "$with_gnu_ld" = yes; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9106 $as_echo_n "checking for GNU ld... " >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9109 $as_echo_n "checking for non-GNU ld... " >&6; }
9111 if test "${lt_cv_path_LD+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -z "$LD"; then
9115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9116 for ac_dir in $PATH; do
9117 IFS="$lt_save_ifs"
9118 test -z "$ac_dir" && ac_dir=.
9119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9120 lt_cv_path_LD="$ac_dir/$ac_prog"
9121 # Check to see if the program is GNU ld. I'd rather use --version,
9122 # but apparently some variants of GNU ld only accept -v.
9123 # Break only if it was the GNU/non-GNU ld that we prefer.
9124 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9125 *GNU* | *'with BFD'*)
9126 test "$with_gnu_ld" != no && break
9129 test "$with_gnu_ld" != yes && break
9131 esac
9133 done
9134 IFS="$lt_save_ifs"
9135 else
9136 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9140 LD="$lt_cv_path_LD"
9141 if test -n "$LD"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9143 $as_echo "$LD" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9148 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9150 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9151 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9155 case `$LD -v 2>&1 </dev/null` in
9156 *GNU* | *'with BFD'*)
9157 lt_cv_prog_gnu_ld=yes
9160 lt_cv_prog_gnu_ld=no
9162 esac
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9165 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9166 with_gnu_ld=$lt_cv_prog_gnu_ld
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9177 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9178 if test "${lt_cv_path_NM+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 if test -n "$NM"; then
9182 # Let the user override the test.
9183 lt_cv_path_NM="$NM"
9184 else
9185 lt_nm_to_check="${ac_tool_prefix}nm"
9186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9187 lt_nm_to_check="$lt_nm_to_check nm"
9189 for lt_tmp_nm in $lt_nm_to_check; do
9190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9192 IFS="$lt_save_ifs"
9193 test -z "$ac_dir" && ac_dir=.
9194 tmp_nm="$ac_dir/$lt_tmp_nm"
9195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9196 # Check to see if the nm accepts a BSD-compat flag.
9197 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9198 # nm: unknown option "B" ignored
9199 # Tru64's nm complains that /dev/null is an invalid object file
9200 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9201 */dev/null* | *'Invalid file or object type'*)
9202 lt_cv_path_NM="$tmp_nm -B"
9203 break
9206 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9207 */dev/null*)
9208 lt_cv_path_NM="$tmp_nm -p"
9209 break
9212 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9213 continue # so that we can try to find one that supports BSD flags
9215 esac
9217 esac
9219 done
9220 IFS="$lt_save_ifs"
9221 done
9222 : ${lt_cv_path_NM=no}
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9226 $as_echo "$lt_cv_path_NM" >&6; }
9227 if test "$lt_cv_path_NM" != "no"; then
9228 NM="$lt_cv_path_NM"
9229 else
9230 # Didn't find any BSD compatible name lister, look for dumpbin.
9231 if test -n "$ac_tool_prefix"; then
9232 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 $as_echo_n "checking for $ac_word... " >&6; }
9238 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 if test -n "$DUMPBIN"; then
9242 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9251 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9255 done
9256 done
9257 IFS=$as_save_IFS
9261 DUMPBIN=$ac_cv_prog_DUMPBIN
9262 if test -n "$DUMPBIN"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9264 $as_echo "$DUMPBIN" >&6; }
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9271 test -n "$DUMPBIN" && break
9272 done
9274 if test -z "$DUMPBIN"; then
9275 ac_ct_DUMPBIN=$DUMPBIN
9276 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9278 # Extract the first word of "$ac_prog", so it can be a program name with args.
9279 set dummy $ac_prog; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 if test -n "$ac_ct_DUMPBIN"; then
9286 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9287 else
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9299 done
9300 done
9301 IFS=$as_save_IFS
9305 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9306 if test -n "$ac_ct_DUMPBIN"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9308 $as_echo "$ac_ct_DUMPBIN" >&6; }
9309 else
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9315 test -n "$ac_ct_DUMPBIN" && break
9316 done
9318 if test "x$ac_ct_DUMPBIN" = x; then
9319 DUMPBIN=":"
9320 else
9321 case $cross_compiling:$ac_tool_warned in
9322 yes:)
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9325 ac_tool_warned=yes ;;
9326 esac
9327 DUMPBIN=$ac_ct_DUMPBIN
9332 if test "$DUMPBIN" != ":"; then
9333 NM="$DUMPBIN"
9336 test -z "$NM" && NM=nm
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9344 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9345 if test "${lt_cv_nm_interface+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 lt_cv_nm_interface="BSD nm"
9349 echo "int some_variable = 0;" > conftest.$ac_ext
9350 (eval echo "\"\$as_me:9350: $ac_compile\"" >&5)
9351 (eval "$ac_compile" 2>conftest.err)
9352 cat conftest.err >&5
9353 (eval echo "\"\$as_me:9353: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9354 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9355 cat conftest.err >&5
9356 (eval echo "\"\$as_me:9356: output\"" >&5)
9357 cat conftest.out >&5
9358 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9359 lt_cv_nm_interface="MS dumpbin"
9361 rm -f conftest*
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9364 $as_echo "$lt_cv_nm_interface" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9367 $as_echo_n "checking whether ln -s works... " >&6; }
9368 LN_S=$as_ln_s
9369 if test "$LN_S" = "ln -s"; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371 $as_echo "yes" >&6; }
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9374 $as_echo "no, using $LN_S" >&6; }
9377 # find the maximum length of command line arguments
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9379 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9384 teststring="ABCD"
9386 case $build_os in
9387 msdosdjgpp*)
9388 # On DJGPP, this test can blow up pretty badly due to problems in libc
9389 # (any single argument exceeding 2000 bytes causes a buffer overrun
9390 # during glob expansion). Even if it were fixed, the result of this
9391 # check would be larger than it should be.
9392 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9395 gnu*)
9396 # Under GNU Hurd, this test is not required because there is
9397 # no limit to the length of command line arguments.
9398 # Libtool will interpret -1 as no limit whatsoever
9399 lt_cv_sys_max_cmd_len=-1;
9402 cygwin* | mingw* | cegcc*)
9403 # On Win9x/ME, this test blows up -- it succeeds, but takes
9404 # about 5 minutes as the teststring grows exponentially.
9405 # Worse, since 9x/ME are not pre-emptively multitasking,
9406 # you end up with a "frozen" computer, even though with patience
9407 # the test eventually succeeds (with a max line length of 256k).
9408 # Instead, let's just punt: use the minimum linelength reported by
9409 # all of the supported platforms: 8192 (on NT/2K/XP).
9410 lt_cv_sys_max_cmd_len=8192;
9413 amigaos*)
9414 # On AmigaOS with pdksh, this test takes hours, literally.
9415 # So we just punt and use a minimum line length of 8192.
9416 lt_cv_sys_max_cmd_len=8192;
9419 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9420 # This has been around since 386BSD, at least. Likely further.
9421 if test -x /sbin/sysctl; then
9422 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9423 elif test -x /usr/sbin/sysctl; then
9424 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9425 else
9426 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9428 # And add a safety zone
9429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9433 interix*)
9434 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9435 lt_cv_sys_max_cmd_len=196608
9438 osf*)
9439 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9440 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9441 # nice to cause kernel panics so lets avoid the loop below.
9442 # First set a reasonable default.
9443 lt_cv_sys_max_cmd_len=16384
9445 if test -x /sbin/sysconfig; then
9446 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9447 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9448 esac
9451 sco3.2v5*)
9452 lt_cv_sys_max_cmd_len=102400
9454 sysv5* | sco5v6* | sysv4.2uw2*)
9455 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9456 if test -n "$kargmax"; then
9457 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9458 else
9459 lt_cv_sys_max_cmd_len=32768
9463 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9464 if test -n "$lt_cv_sys_max_cmd_len"; then
9465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9467 else
9468 # Make teststring a little bigger before we do anything with it.
9469 # a 1K string should be a reasonable start.
9470 for i in 1 2 3 4 5 6 7 8 ; do
9471 teststring=$teststring$teststring
9472 done
9473 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9474 # If test is not a shell built-in, we'll probably end up computing a
9475 # maximum length that is only half of the actual maximum length, but
9476 # we can't tell.
9477 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9478 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9479 test $i != 17 # 1/2 MB should be enough
9481 i=`expr $i + 1`
9482 teststring=$teststring$teststring
9483 done
9484 # Only check the string length outside the loop.
9485 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9486 teststring=
9487 # Add a significant safety factor because C++ compilers can tack on
9488 # massive amounts of additional arguments before passing them to the
9489 # linker. It appears as though 1/2 is a usable value.
9490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9493 esac
9497 if test -n $lt_cv_sys_max_cmd_len ; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9499 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9502 $as_echo "none" >&6; }
9504 max_cmd_len=$lt_cv_sys_max_cmd_len
9511 : ${CP="cp -f"}
9512 : ${MV="mv -f"}
9513 : ${RM="rm -f"}
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9516 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9517 # Try some XSI features
9518 xsi_shell=no
9519 ( _lt_dummy="a/b/c"
9520 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9521 = c,a/b,, \
9522 && eval 'test $(( 1 + 1 )) -eq 2 \
9523 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9524 && xsi_shell=yes
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9526 $as_echo "$xsi_shell" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9530 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9531 lt_shell_append=no
9532 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9533 >/dev/null 2>&1 \
9534 && lt_shell_append=yes
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9536 $as_echo "$lt_shell_append" >&6; }
9539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9540 lt_unset=unset
9541 else
9542 lt_unset=false
9549 # test EBCDIC or ASCII
9550 case `echo X|tr X '\101'` in
9551 A) # ASCII based system
9552 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9553 lt_SP2NL='tr \040 \012'
9554 lt_NL2SP='tr \015\012 \040\040'
9556 *) # EBCDIC based system
9557 lt_SP2NL='tr \100 \n'
9558 lt_NL2SP='tr \r\n \100\100'
9560 esac
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9571 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9572 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 lt_cv_ld_reload_flag='-r'
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9578 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9579 reload_flag=$lt_cv_ld_reload_flag
9580 case $reload_flag in
9581 "" | " "*) ;;
9582 *) reload_flag=" $reload_flag" ;;
9583 esac
9584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9585 case $host_os in
9586 darwin*)
9587 if test "$GCC" = yes; then
9588 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9589 else
9590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9593 esac
9603 if test -n "$ac_tool_prefix"; then
9604 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9605 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 if test -n "$OBJDUMP"; then
9612 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9613 else
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9621 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9625 done
9626 done
9627 IFS=$as_save_IFS
9631 OBJDUMP=$ac_cv_prog_OBJDUMP
9632 if test -n "$OBJDUMP"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9634 $as_echo "$OBJDUMP" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9642 if test -z "$ac_cv_prog_OBJDUMP"; then
9643 ac_ct_OBJDUMP=$OBJDUMP
9644 # Extract the first word of "objdump", so it can be a program name with args.
9645 set dummy objdump; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test -n "$ac_ct_OBJDUMP"; then
9652 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9653 else
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9665 done
9666 done
9667 IFS=$as_save_IFS
9671 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9672 if test -n "$ac_ct_OBJDUMP"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9674 $as_echo "$ac_ct_OBJDUMP" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9680 if test "x$ac_ct_OBJDUMP" = x; then
9681 OBJDUMP="false"
9682 else
9683 case $cross_compiling:$ac_tool_warned in
9684 yes:)
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9687 ac_tool_warned=yes ;;
9688 esac
9689 OBJDUMP=$ac_ct_OBJDUMP
9691 else
9692 OBJDUMP="$ac_cv_prog_OBJDUMP"
9695 test -z "$OBJDUMP" && OBJDUMP=objdump
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9703 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9704 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 lt_cv_file_magic_cmd='$MAGIC_CMD'
9708 lt_cv_file_magic_test_file=
9709 lt_cv_deplibs_check_method='unknown'
9710 # Need to set the preceding variable on all platforms that support
9711 # interlibrary dependencies.
9712 # 'none' -- dependencies not supported.
9713 # `unknown' -- same as none, but documents that we really don't know.
9714 # 'pass_all' -- all dependencies passed with no checks.
9715 # 'test_compile' -- check by making test program.
9716 # 'file_magic [[regex]]' -- check by looking for files in library path
9717 # which responds to the $file_magic_cmd with a given extended regex.
9718 # If you have `file' or equivalent on your system and you're not sure
9719 # whether `pass_all' will *always* work, you probably want this one.
9721 case $host_os in
9722 aix[4-9]*)
9723 lt_cv_deplibs_check_method=pass_all
9726 beos*)
9727 lt_cv_deplibs_check_method=pass_all
9730 bsdi[45]*)
9731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9732 lt_cv_file_magic_cmd='/usr/bin/file -L'
9733 lt_cv_file_magic_test_file=/shlib/libc.so
9736 cygwin*)
9737 # func_win32_libid is a shell function defined in ltmain.sh
9738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9739 lt_cv_file_magic_cmd='func_win32_libid'
9742 mingw* | pw32*)
9743 # Base MSYS/MinGW do not provide the 'file' command needed by
9744 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9745 # unless we find 'file', for example because we are cross-compiling.
9746 if ( file / ) >/dev/null 2>&1; then
9747 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9748 lt_cv_file_magic_cmd='func_win32_libid'
9749 else
9750 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9751 lt_cv_file_magic_cmd='$OBJDUMP -f'
9755 cegcc)
9756 # use the weaker test based on 'objdump'. See mingw*.
9757 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9758 lt_cv_file_magic_cmd='$OBJDUMP -f'
9761 darwin* | rhapsody*)
9762 lt_cv_deplibs_check_method=pass_all
9765 freebsd* | dragonfly*)
9766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9767 case $host_cpu in
9768 i*86 )
9769 # Not sure whether the presence of OpenBSD here was a mistake.
9770 # Let's accept both of them until this is cleared up.
9771 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9772 lt_cv_file_magic_cmd=/usr/bin/file
9773 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9775 esac
9776 else
9777 lt_cv_deplibs_check_method=pass_all
9781 gnu*)
9782 lt_cv_deplibs_check_method=pass_all
9785 hpux10.20* | hpux11*)
9786 lt_cv_file_magic_cmd=/usr/bin/file
9787 case $host_cpu in
9788 ia64*)
9789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9790 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9792 hppa*64*)
9793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9794 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9798 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9800 esac
9803 interix[3-9]*)
9804 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9808 irix5* | irix6* | nonstopux*)
9809 case $LD in
9810 *-32|*"-32 ") libmagic=32-bit;;
9811 *-n32|*"-n32 ") libmagic=N32;;
9812 *-64|*"-64 ") libmagic=64-bit;;
9813 *) libmagic=never-match;;
9814 esac
9815 lt_cv_deplibs_check_method=pass_all
9818 # This must be Linux ELF.
9819 linux* | k*bsd*-gnu)
9820 lt_cv_deplibs_check_method=pass_all
9823 netbsd*)
9824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9826 else
9827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9831 newos6*)
9832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9833 lt_cv_file_magic_cmd=/usr/bin/file
9834 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9837 *nto* | *qnx*)
9838 lt_cv_deplibs_check_method=pass_all
9841 openbsd*)
9842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9844 else
9845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9849 osf3* | osf4* | osf5*)
9850 lt_cv_deplibs_check_method=pass_all
9853 rdos*)
9854 lt_cv_deplibs_check_method=pass_all
9857 solaris*)
9858 lt_cv_deplibs_check_method=pass_all
9861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9862 lt_cv_deplibs_check_method=pass_all
9865 sysv4 | sysv4.3*)
9866 case $host_vendor in
9867 motorola)
9868 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]'
9869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9871 ncr)
9872 lt_cv_deplibs_check_method=pass_all
9874 sequent)
9875 lt_cv_file_magic_cmd='/bin/file'
9876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9878 sni)
9879 lt_cv_file_magic_cmd='/bin/file'
9880 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9881 lt_cv_file_magic_test_file=/lib/libc.so
9883 siemens)
9884 lt_cv_deplibs_check_method=pass_all
9887 lt_cv_deplibs_check_method=pass_all
9889 esac
9892 tpf*)
9893 lt_cv_deplibs_check_method=pass_all
9895 esac
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9899 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9900 file_magic_cmd=$lt_cv_file_magic_cmd
9901 deplibs_check_method=$lt_cv_deplibs_check_method
9902 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9915 if test -n "$ac_tool_prefix"; then
9916 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9917 set dummy ${ac_tool_prefix}ar; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if test "${ac_cv_prog_AR+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 if test -n "$AR"; then
9924 ac_cv_prog_AR="$AR" # Let the user override the test.
9925 else
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9933 ac_cv_prog_AR="${ac_tool_prefix}ar"
9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 break 2
9937 done
9938 done
9939 IFS=$as_save_IFS
9943 AR=$ac_cv_prog_AR
9944 if test -n "$AR"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9946 $as_echo "$AR" >&6; }
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9954 if test -z "$ac_cv_prog_AR"; then
9955 ac_ct_AR=$AR
9956 # Extract the first word of "ar", so it can be a program name with args.
9957 set dummy ar; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 if test -n "$ac_ct_AR"; then
9964 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9965 else
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $PATH
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9973 ac_cv_prog_ac_ct_AR="ar"
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9977 done
9978 done
9979 IFS=$as_save_IFS
9983 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9984 if test -n "$ac_ct_AR"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9986 $as_echo "$ac_ct_AR" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9992 if test "x$ac_ct_AR" = x; then
9993 AR="false"
9994 else
9995 case $cross_compiling:$ac_tool_warned in
9996 yes:)
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999 ac_tool_warned=yes ;;
10000 esac
10001 AR=$ac_ct_AR
10003 else
10004 AR="$ac_cv_prog_AR"
10007 test -z "$AR" && AR=ar
10008 test -z "$AR_FLAGS" && AR_FLAGS=cru
10020 if test -n "$ac_tool_prefix"; then
10021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10022 set dummy ${ac_tool_prefix}strip; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if test "${ac_cv_prog_STRIP+set}" = set; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 if test -n "$STRIP"; then
10029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10030 else
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10042 done
10043 done
10044 IFS=$as_save_IFS
10048 STRIP=$ac_cv_prog_STRIP
10049 if test -n "$STRIP"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10051 $as_echo "$STRIP" >&6; }
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10059 if test -z "$ac_cv_prog_STRIP"; then
10060 ac_ct_STRIP=$STRIP
10061 # Extract the first word of "strip", so it can be a program name with args.
10062 set dummy strip; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 if test -n "$ac_ct_STRIP"; then
10069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10070 else
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10078 ac_cv_prog_ac_ct_STRIP="strip"
10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 break 2
10082 done
10083 done
10084 IFS=$as_save_IFS
10088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10089 if test -n "$ac_ct_STRIP"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10091 $as_echo "$ac_ct_STRIP" >&6; }
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10097 if test "x$ac_ct_STRIP" = x; then
10098 STRIP=":"
10099 else
10100 case $cross_compiling:$ac_tool_warned in
10101 yes:)
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10104 ac_tool_warned=yes ;;
10105 esac
10106 STRIP=$ac_ct_STRIP
10108 else
10109 STRIP="$ac_cv_prog_STRIP"
10112 test -z "$STRIP" && STRIP=:
10119 if test -n "$ac_tool_prefix"; then
10120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 if test -n "$RANLIB"; then
10128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10129 else
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10141 done
10142 done
10143 IFS=$as_save_IFS
10147 RANLIB=$ac_cv_prog_RANLIB
10148 if test -n "$RANLIB"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10150 $as_echo "$RANLIB" >&6; }
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10158 if test -z "$ac_cv_prog_RANLIB"; then
10159 ac_ct_RANLIB=$RANLIB
10160 # Extract the first word of "ranlib", so it can be a program name with args.
10161 set dummy ranlib; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 if test -n "$ac_ct_RANLIB"; then
10168 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10169 else
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
10176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10177 ac_cv_prog_ac_ct_RANLIB="ranlib"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10181 done
10182 done
10183 IFS=$as_save_IFS
10187 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10188 if test -n "$ac_ct_RANLIB"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10190 $as_echo "$ac_ct_RANLIB" >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10196 if test "x$ac_ct_RANLIB" = x; then
10197 RANLIB=":"
10198 else
10199 case $cross_compiling:$ac_tool_warned in
10200 yes:)
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10203 ac_tool_warned=yes ;;
10204 esac
10205 RANLIB=$ac_ct_RANLIB
10207 else
10208 RANLIB="$ac_cv_prog_RANLIB"
10211 test -z "$RANLIB" && RANLIB=:
10218 # Determine commands to create old-style static archives.
10219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10220 old_postinstall_cmds='chmod 644 $oldlib'
10221 old_postuninstall_cmds=
10223 if test -n "$RANLIB"; then
10224 case $host_os in
10225 openbsd*)
10226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10231 esac
10232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10268 # If no C compiler was specified, use CC.
10269 LTCC=${LTCC-"$CC"}
10271 # If no C compiler flags were specified, use CFLAGS.
10272 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10274 # Allow CC to be a program name with arguments.
10275 compiler=$CC
10278 # Check for command to grab the raw symbol name followed by C symbol from nm.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10280 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10281 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10285 # These are sane defaults that work on at least a few old systems.
10286 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10288 # Character class describing NM global symbol codes.
10289 symcode='[BCDEGRST]'
10291 # Regexp to match symbols that can be accessed directly from C.
10292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10294 # Define system-specific variables.
10295 case $host_os in
10296 aix*)
10297 symcode='[BCDT]'
10299 cygwin* | mingw* | pw32* | cegcc*)
10300 symcode='[ABCDGISTW]'
10302 hpux*)
10303 if test "$host_cpu" = ia64; then
10304 symcode='[ABCDEGRST]'
10307 irix* | nonstopux*)
10308 symcode='[BCDEGRST]'
10310 osf*)
10311 symcode='[BCDEGQRST]'
10313 solaris*)
10314 symcode='[BDRT]'
10316 sco3.2v5*)
10317 symcode='[DT]'
10319 sysv4.2uw2*)
10320 symcode='[DT]'
10322 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10323 symcode='[ABDT]'
10325 sysv4)
10326 symcode='[DFNSTU]'
10328 esac
10330 # If we're using GNU nm, then use its standard symbol codes.
10331 case `$NM -V 2>&1` in
10332 *GNU* | *'with BFD'*)
10333 symcode='[ABCDGIRSTW]' ;;
10334 esac
10336 # Transform an extracted symbol line into a proper C declaration.
10337 # Some systems (esp. on ia64) link data and code symbols differently,
10338 # so use this general approach.
10339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10341 # Transform an extracted symbol line into symbol name and symbol address
10342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
10345 # Handle CRLF in mingw tool chain
10346 opt_cr=
10347 case $build_os in
10348 mingw*)
10349 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10351 esac
10353 # Try without a prefix underscore, then with it.
10354 for ac_symprfx in "" "_"; do
10356 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10357 symxfrm="\\1 $ac_symprfx\\2 \\2"
10359 # Write the raw and C identifiers.
10360 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10361 # Fake it for dumpbin and say T for any non-static function
10362 # and D for any global variable.
10363 # Also find C++ and __fastcall symbols from MSVC++,
10364 # which start with @ or ?.
10365 lt_cv_sys_global_symbol_pipe="$AWK '"\
10366 " {last_section=section; section=\$ 3};"\
10367 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10368 " \$ 0!~/External *\|/{next};"\
10369 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10370 " {if(hide[section]) next};"\
10371 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10372 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10373 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10374 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10375 " ' prfx=^$ac_symprfx"
10376 else
10377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10380 # Check to see that the pipe works correctly.
10381 pipe_works=no
10383 rm -f conftest*
10384 cat > conftest.$ac_ext <<_LT_EOF
10385 #ifdef __cplusplus
10386 extern "C" {
10387 #endif
10388 char nm_test_var;
10389 void nm_test_func(void);
10390 void nm_test_func(void){}
10391 #ifdef __cplusplus
10393 #endif
10394 int main(){nm_test_var='a';nm_test_func();return(0);}
10395 _LT_EOF
10397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10398 (eval $ac_compile) 2>&5
10399 ac_status=$?
10400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10401 test $ac_status = 0; }; then
10402 # Now try to grab the symbols.
10403 nlist=conftest.nm
10404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10405 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10406 ac_status=$?
10407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408 test $ac_status = 0; } && test -s "$nlist"; then
10409 # Try sorting and uniquifying the output.
10410 if sort "$nlist" | uniq > "$nlist"T; then
10411 mv -f "$nlist"T "$nlist"
10412 else
10413 rm -f "$nlist"T
10416 # Make sure that we snagged all the symbols we need.
10417 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10418 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10419 cat <<_LT_EOF > conftest.$ac_ext
10420 #ifdef __cplusplus
10421 extern "C" {
10422 #endif
10424 _LT_EOF
10425 # Now generate the symbol file.
10426 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10428 cat <<_LT_EOF >> conftest.$ac_ext
10430 /* The mapping between symbol names and symbols. */
10431 const struct {
10432 const char *name;
10433 void *address;
10435 lt__PROGRAM__LTX_preloaded_symbols[] =
10437 { "@PROGRAM@", (void *) 0 },
10438 _LT_EOF
10439 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10440 cat <<\_LT_EOF >> conftest.$ac_ext
10441 {0, (void *) 0}
10444 /* This works around a problem in FreeBSD linker */
10445 #ifdef FREEBSD_WORKAROUND
10446 static const void *lt_preloaded_setup() {
10447 return lt__PROGRAM__LTX_preloaded_symbols;
10449 #endif
10451 #ifdef __cplusplus
10453 #endif
10454 _LT_EOF
10455 # Now try linking the two files.
10456 mv conftest.$ac_objext conftstm.$ac_objext
10457 lt_save_LIBS="$LIBS"
10458 lt_save_CFLAGS="$CFLAGS"
10459 LIBS="conftstm.$ac_objext"
10460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10462 (eval $ac_link) 2>&5
10463 ac_status=$?
10464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10465 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10466 pipe_works=yes
10468 LIBS="$lt_save_LIBS"
10469 CFLAGS="$lt_save_CFLAGS"
10470 else
10471 echo "cannot find nm_test_func in $nlist" >&5
10473 else
10474 echo "cannot find nm_test_var in $nlist" >&5
10476 else
10477 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10479 else
10480 echo "$progname: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10483 rm -rf conftest* conftst*
10485 # Do not use the global_symbol_pipe unless it works.
10486 if test "$pipe_works" = yes; then
10487 break
10488 else
10489 lt_cv_sys_global_symbol_pipe=
10491 done
10495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10496 lt_cv_sys_global_symbol_to_cdecl=
10498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10500 $as_echo "failed" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10503 $as_echo "ok" >&6; }
10527 # Check whether --enable-libtool-lock was given.
10528 if test "${enable_libtool_lock+set}" = set; then :
10529 enableval=$enable_libtool_lock;
10532 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10534 # Some flags need to be propagated to the compiler or linker for good
10535 # libtool support.
10536 case $host in
10537 ia64-*-hpux*)
10538 # Find out which ABI we are using.
10539 echo 'int i;' > conftest.$ac_ext
10540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10541 (eval $ac_compile) 2>&5
10542 ac_status=$?
10543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; }; then
10545 case `/usr/bin/file conftest.$ac_objext` in
10546 *ELF-32*)
10547 HPUX_IA64_MODE="32"
10549 *ELF-64*)
10550 HPUX_IA64_MODE="64"
10552 esac
10554 rm -rf conftest*
10556 *-*-irix6*)
10557 # Find out which ABI we are using.
10558 echo '#line 10558 "configure"' > conftest.$ac_ext
10559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10560 (eval $ac_compile) 2>&5
10561 ac_status=$?
10562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10563 test $ac_status = 0; }; then
10564 if test "$lt_cv_prog_gnu_ld" = yes; then
10565 case `/usr/bin/file conftest.$ac_objext` in
10566 *32-bit*)
10567 LD="${LD-ld} -melf32bsmip"
10569 *N32*)
10570 LD="${LD-ld} -melf32bmipn32"
10572 *64-bit*)
10573 LD="${LD-ld} -melf64bmip"
10575 esac
10576 else
10577 case `/usr/bin/file conftest.$ac_objext` in
10578 *32-bit*)
10579 LD="${LD-ld} -32"
10581 *N32*)
10582 LD="${LD-ld} -n32"
10584 *64-bit*)
10585 LD="${LD-ld} -64"
10587 esac
10590 rm -rf conftest*
10593 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10594 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10595 # Find out which ABI we are using.
10596 echo 'int i;' > conftest.$ac_ext
10597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10598 (eval $ac_compile) 2>&5
10599 ac_status=$?
10600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601 test $ac_status = 0; }; then
10602 case `/usr/bin/file conftest.o` in
10603 *32-bit*)
10604 case $host in
10605 x86_64-*kfreebsd*-gnu)
10606 LD="${LD-ld} -m elf_i386_fbsd"
10608 x86_64-*linux*)
10609 LD="${LD-ld} -m elf_i386"
10611 ppc64-*linux*|powerpc64-*linux*)
10612 LD="${LD-ld} -m elf32ppclinux"
10614 s390x-*linux*)
10615 LD="${LD-ld} -m elf_s390"
10617 sparc64-*linux*)
10618 LD="${LD-ld} -m elf32_sparc"
10620 esac
10622 *64-bit*)
10623 case $host in
10624 x86_64-*kfreebsd*-gnu)
10625 LD="${LD-ld} -m elf_x86_64_fbsd"
10627 x86_64-*linux*)
10628 LD="${LD-ld} -m elf_x86_64"
10630 ppc*-*linux*|powerpc*-*linux*)
10631 LD="${LD-ld} -m elf64ppc"
10633 s390*-*linux*|s390*-*tpf*)
10634 LD="${LD-ld} -m elf64_s390"
10636 sparc*-*linux*)
10637 LD="${LD-ld} -m elf64_sparc"
10639 esac
10641 esac
10643 rm -rf conftest*
10646 *-*-sco3.2v5*)
10647 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10648 SAVE_CFLAGS="$CFLAGS"
10649 CFLAGS="$CFLAGS -belf"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10651 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10652 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 ac_ext=c
10656 ac_cpp='$CPP $CPPFLAGS'
10657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10665 main ()
10669 return 0;
10671 _ACEOF
10672 if ac_fn_c_try_link "$LINENO"; then :
10673 lt_cv_cc_needs_belf=yes
10674 else
10675 lt_cv_cc_needs_belf=no
10677 rm -f core conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679 ac_ext=c
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10687 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10690 CFLAGS="$SAVE_CFLAGS"
10693 sparc*-*solaris*)
10694 # Find out which ABI we are using.
10695 echo 'int i;' > conftest.$ac_ext
10696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10697 (eval $ac_compile) 2>&5
10698 ac_status=$?
10699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10700 test $ac_status = 0; }; then
10701 case `/usr/bin/file conftest.o` in
10702 *64-bit*)
10703 case $lt_cv_prog_gnu_ld in
10704 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10706 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10707 LD="${LD-ld} -64"
10710 esac
10712 esac
10714 rm -rf conftest*
10716 esac
10718 need_locks="$enable_libtool_lock"
10721 case $host_os in
10722 rhapsody* | darwin*)
10723 if test -n "$ac_tool_prefix"; then
10724 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727 $as_echo_n "checking for $ac_word... " >&6; }
10728 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 if test -n "$DSYMUTIL"; then
10732 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10733 else
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10741 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 break 2
10745 done
10746 done
10747 IFS=$as_save_IFS
10751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10752 if test -n "$DSYMUTIL"; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10754 $as_echo "$DSYMUTIL" >&6; }
10755 else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10762 if test -z "$ac_cv_prog_DSYMUTIL"; then
10763 ac_ct_DSYMUTIL=$DSYMUTIL
10764 # Extract the first word of "dsymutil", so it can be a program name with args.
10765 set dummy dsymutil; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10771 if test -n "$ac_ct_DSYMUTIL"; then
10772 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10773 else
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10781 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 break 2
10785 done
10786 done
10787 IFS=$as_save_IFS
10791 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10792 if test -n "$ac_ct_DSYMUTIL"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10794 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10800 if test "x$ac_ct_DSYMUTIL" = x; then
10801 DSYMUTIL=":"
10802 else
10803 case $cross_compiling:$ac_tool_warned in
10804 yes:)
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10807 ac_tool_warned=yes ;;
10808 esac
10809 DSYMUTIL=$ac_ct_DSYMUTIL
10811 else
10812 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10815 if test -n "$ac_tool_prefix"; then
10816 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10817 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test -n "$NMEDIT"; then
10824 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10825 else
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10837 done
10838 done
10839 IFS=$as_save_IFS
10843 NMEDIT=$ac_cv_prog_NMEDIT
10844 if test -n "$NMEDIT"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10846 $as_echo "$NMEDIT" >&6; }
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10854 if test -z "$ac_cv_prog_NMEDIT"; then
10855 ac_ct_NMEDIT=$NMEDIT
10856 # Extract the first word of "nmedit", so it can be a program name with args.
10857 set dummy nmedit; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 if test -n "$ac_ct_NMEDIT"; then
10864 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10865 else
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10873 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10877 done
10878 done
10879 IFS=$as_save_IFS
10883 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10884 if test -n "$ac_ct_NMEDIT"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10886 $as_echo "$ac_ct_NMEDIT" >&6; }
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10892 if test "x$ac_ct_NMEDIT" = x; then
10893 NMEDIT=":"
10894 else
10895 case $cross_compiling:$ac_tool_warned in
10896 yes:)
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10899 ac_tool_warned=yes ;;
10900 esac
10901 NMEDIT=$ac_ct_NMEDIT
10903 else
10904 NMEDIT="$ac_cv_prog_NMEDIT"
10907 if test -n "$ac_tool_prefix"; then
10908 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10909 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if test "${ac_cv_prog_LIPO+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 if test -n "$LIPO"; then
10916 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10917 else
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10929 done
10930 done
10931 IFS=$as_save_IFS
10935 LIPO=$ac_cv_prog_LIPO
10936 if test -n "$LIPO"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10938 $as_echo "$LIPO" >&6; }
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10946 if test -z "$ac_cv_prog_LIPO"; then
10947 ac_ct_LIPO=$LIPO
10948 # Extract the first word of "lipo", so it can be a program name with args.
10949 set dummy lipo; ac_word=$2
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951 $as_echo_n "checking for $ac_word... " >&6; }
10952 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 if test -n "$ac_ct_LIPO"; then
10956 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10957 else
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10961 IFS=$as_save_IFS
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965 ac_cv_prog_ac_ct_LIPO="lipo"
10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10967 break 2
10969 done
10970 done
10971 IFS=$as_save_IFS
10975 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10976 if test -n "$ac_ct_LIPO"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10978 $as_echo "$ac_ct_LIPO" >&6; }
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10984 if test "x$ac_ct_LIPO" = x; then
10985 LIPO=":"
10986 else
10987 case $cross_compiling:$ac_tool_warned in
10988 yes:)
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10991 ac_tool_warned=yes ;;
10992 esac
10993 LIPO=$ac_ct_LIPO
10995 else
10996 LIPO="$ac_cv_prog_LIPO"
10999 if test -n "$ac_tool_prefix"; then
11000 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11001 set dummy ${ac_tool_prefix}otool; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 if test -n "$OTOOL"; then
11008 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11009 else
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11017 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11021 done
11022 done
11023 IFS=$as_save_IFS
11027 OTOOL=$ac_cv_prog_OTOOL
11028 if test -n "$OTOOL"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11030 $as_echo "$OTOOL" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11038 if test -z "$ac_cv_prog_OTOOL"; then
11039 ac_ct_OTOOL=$OTOOL
11040 # Extract the first word of "otool", so it can be a program name with args.
11041 set dummy otool; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 if test -n "$ac_ct_OTOOL"; then
11048 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11049 else
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11057 ac_cv_prog_ac_ct_OTOOL="otool"
11058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 break 2
11061 done
11062 done
11063 IFS=$as_save_IFS
11067 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11068 if test -n "$ac_ct_OTOOL"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11070 $as_echo "$ac_ct_OTOOL" >&6; }
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; }
11076 if test "x$ac_ct_OTOOL" = x; then
11077 OTOOL=":"
11078 else
11079 case $cross_compiling:$ac_tool_warned in
11080 yes:)
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11083 ac_tool_warned=yes ;;
11084 esac
11085 OTOOL=$ac_ct_OTOOL
11087 else
11088 OTOOL="$ac_cv_prog_OTOOL"
11091 if test -n "$ac_tool_prefix"; then
11092 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11093 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test -n "$OTOOL64"; then
11100 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11113 done
11114 done
11115 IFS=$as_save_IFS
11119 OTOOL64=$ac_cv_prog_OTOOL64
11120 if test -n "$OTOOL64"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11122 $as_echo "$OTOOL64" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11130 if test -z "$ac_cv_prog_OTOOL64"; then
11131 ac_ct_OTOOL64=$OTOOL64
11132 # Extract the first word of "otool64", so it can be a program name with args.
11133 set dummy otool64; ac_word=$2
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135 $as_echo_n "checking for $ac_word... " >&6; }
11136 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 if test -n "$ac_ct_OTOOL64"; then
11140 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11141 else
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11149 ac_cv_prog_ac_ct_OTOOL64="otool64"
11150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11151 break 2
11153 done
11154 done
11155 IFS=$as_save_IFS
11159 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11160 if test -n "$ac_ct_OTOOL64"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11162 $as_echo "$ac_ct_OTOOL64" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11168 if test "x$ac_ct_OTOOL64" = x; then
11169 OTOOL64=":"
11170 else
11171 case $cross_compiling:$ac_tool_warned in
11172 yes:)
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11175 ac_tool_warned=yes ;;
11176 esac
11177 OTOOL64=$ac_ct_OTOOL64
11179 else
11180 OTOOL64="$ac_cv_prog_OTOOL64"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11210 $as_echo_n "checking for -single_module linker flag... " >&6; }
11211 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 lt_cv_apple_cc_single_mod=no
11215 if test -z "${LT_MULTI_MODULE}"; then
11216 # By default we will add the -single_module flag. You can override
11217 # by either setting the environment variable LT_MULTI_MODULE
11218 # non-empty at configure time, or by adding -multi_module to the
11219 # link flags.
11220 rm -rf libconftest.dylib*
11221 echo "int foo(void){return 1;}" > conftest.c
11222 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11223 -dynamiclib -Wl,-single_module conftest.c" >&5
11224 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11225 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11226 _lt_result=$?
11227 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11228 lt_cv_apple_cc_single_mod=yes
11229 else
11230 cat conftest.err >&5
11232 rm -rf libconftest.dylib*
11233 rm -f conftest.*
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11237 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11239 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11240 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 lt_cv_ld_exported_symbols_list=no
11244 save_LDFLAGS=$LDFLAGS
11245 echo "_main" > conftest.sym
11246 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11251 main ()
11255 return 0;
11257 _ACEOF
11258 if ac_fn_c_try_link "$LINENO"; then :
11259 lt_cv_ld_exported_symbols_list=yes
11260 else
11261 lt_cv_ld_exported_symbols_list=no
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LDFLAGS="$save_LDFLAGS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11269 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11270 case $host_os in
11271 rhapsody* | darwin1.[012])
11272 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11273 darwin1.*)
11274 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11275 darwin*) # darwin 5.x on
11276 # if running on 10.5 or later, the deployment target defaults
11277 # to the OS version, if on x86, and 10.4, the deployment
11278 # target defaults to 10.4. Don't you love it?
11279 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11280 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11281 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11282 10.[012]*)
11283 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11284 10.*)
11285 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11286 esac
11288 esac
11289 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11290 _lt_dar_single_mod='$single_module'
11292 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11293 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11294 else
11295 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11297 if test "$DSYMUTIL" != ":"; then
11298 _lt_dsymutil='~$DSYMUTIL $lib || :'
11299 else
11300 _lt_dsymutil=
11303 esac
11305 for ac_header in dlfcn.h
11306 do :
11307 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11309 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_DLFCN_H 1
11312 _ACEOF
11316 done
11320 ac_ext=cpp
11321 ac_cpp='$CXXCPP $CPPFLAGS'
11322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11325 if test -z "$CXX"; then
11326 if test -n "$CCC"; then
11327 CXX=$CCC
11328 else
11329 if test -n "$ac_tool_prefix"; then
11330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_CXX+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 if test -n "$CXX"; then
11340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11353 done
11354 done
11355 IFS=$as_save_IFS
11359 CXX=$ac_cv_prog_CXX
11360 if test -n "$CXX"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11362 $as_echo "$CXX" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11369 test -n "$CXX" && break
11370 done
11372 if test -z "$CXX"; then
11373 ac_ct_CXX=$CXX
11374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11376 # Extract the first word of "$ac_prog", so it can be a program name with args.
11377 set dummy $ac_prog; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 if test -n "$ac_ct_CXX"; then
11384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11385 else
11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387 for as_dir in $PATH
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11393 ac_cv_prog_ac_ct_CXX="$ac_prog"
11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11397 done
11398 done
11399 IFS=$as_save_IFS
11403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11404 if test -n "$ac_ct_CXX"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11406 $as_echo "$ac_ct_CXX" >&6; }
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11413 test -n "$ac_ct_CXX" && break
11414 done
11416 if test "x$ac_ct_CXX" = x; then
11417 CXX="g++"
11418 else
11419 case $cross_compiling:$ac_tool_warned in
11420 yes:)
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11423 ac_tool_warned=yes ;;
11424 esac
11425 CXX=$ac_ct_CXX
11431 # Provide some information about the compiler.
11432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11433 set X $ac_compile
11434 ac_compiler=$2
11435 for ac_option in --version -v -V -qversion; do
11436 { { ac_try="$ac_compiler $ac_option >&5"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11442 $as_echo "$ac_try_echo"; } >&5
11443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11444 ac_status=$?
11445 if test -s conftest.err; then
11446 sed '10a\
11447 ... rest of stderr output deleted ...
11448 10q' conftest.err >conftest.er1
11449 cat conftest.er1 >&5
11451 rm -f conftest.er1 conftest.err
11452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11453 test $ac_status = 0; }
11454 done
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11457 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11458 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11465 main ()
11467 #ifndef __GNUC__
11468 choke me
11469 #endif
11472 return 0;
11474 _ACEOF
11475 if ac_fn_cxx_try_compile "$LINENO"; then :
11476 ac_compiler_gnu=yes
11477 else
11478 ac_compiler_gnu=no
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11485 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11486 if test $ac_compiler_gnu = yes; then
11487 GXX=yes
11488 else
11489 GXX=
11491 ac_test_CXXFLAGS=${CXXFLAGS+set}
11492 ac_save_CXXFLAGS=$CXXFLAGS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11494 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11495 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11499 ac_cxx_werror_flag=yes
11500 ac_cv_prog_cxx_g=no
11501 CXXFLAGS="-g"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11506 main ()
11510 return 0;
11512 _ACEOF
11513 if ac_fn_cxx_try_compile "$LINENO"; then :
11514 ac_cv_prog_cxx_g=yes
11515 else
11516 CXXFLAGS=""
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11521 main ()
11525 return 0;
11527 _ACEOF
11528 if ac_fn_cxx_try_compile "$LINENO"; then :
11530 else
11531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11532 CXXFLAGS="-g"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11537 main ()
11541 return 0;
11543 _ACEOF
11544 if ac_fn_cxx_try_compile "$LINENO"; then :
11545 ac_cv_prog_cxx_g=yes
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11555 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11556 if test "$ac_test_CXXFLAGS" = set; then
11557 CXXFLAGS=$ac_save_CXXFLAGS
11558 elif test $ac_cv_prog_cxx_g = yes; then
11559 if test "$GXX" = yes; then
11560 CXXFLAGS="-g -O2"
11561 else
11562 CXXFLAGS="-g"
11564 else
11565 if test "$GXX" = yes; then
11566 CXXFLAGS="-O2"
11567 else
11568 CXXFLAGS=
11571 ac_ext=c
11572 ac_cpp='$CPP $CPPFLAGS'
11573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11577 depcc="$CXX" am_compiler_list=
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11580 $as_echo_n "checking dependency style of $depcc... " >&6; }
11581 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11585 # We make a subdir and do the tests there. Otherwise we can end up
11586 # making bogus files that we don't know about and never remove. For
11587 # instance it was reported that on HP-UX the gcc test will end up
11588 # making a dummy file named `D' -- because `-MD' means `put the output
11589 # in D'.
11590 mkdir conftest.dir
11591 # Copy depcomp to subdir because otherwise we won't find it if we're
11592 # using a relative directory.
11593 cp "$am_depcomp" conftest.dir
11594 cd conftest.dir
11595 # We will build objects and dependencies in a subdirectory because
11596 # it helps to detect inapplicable dependency modes. For instance
11597 # both Tru64's cc and ICC support -MD to output dependencies as a
11598 # side effect of compilation, but ICC will put the dependencies in
11599 # the current directory while Tru64 will put them in the object
11600 # directory.
11601 mkdir sub
11603 am_cv_CXX_dependencies_compiler_type=none
11604 if test "$am_compiler_list" = ""; then
11605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11607 am__universal=false
11608 case " $depcc " in #(
11609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11610 esac
11612 for depmode in $am_compiler_list; do
11613 # Setup a source with many dependencies, because some compilers
11614 # like to wrap large dependency lists on column 80 (with \), and
11615 # we should not choose a depcomp mode which is confused by this.
11617 # We need to recreate these files for each test, as the compiler may
11618 # overwrite some of them when testing with obscure command lines.
11619 # This happens at least with the AIX C compiler.
11620 : > sub/conftest.c
11621 for i in 1 2 3 4 5 6; do
11622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11624 # Solaris 8's {/usr,}/bin/sh.
11625 touch sub/conftst$i.h
11626 done
11627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11630 # mode. It turns out that the SunPro C++ compiler does not properly
11631 # handle `-M -o', and we need to detect this. Also, some Intel
11632 # versions had trouble with output in subdirs
11633 am__obj=sub/conftest.${OBJEXT-o}
11634 am__minus_obj="-o $am__obj"
11635 case $depmode in
11636 gcc)
11637 # This depmode causes a compiler race in universal mode.
11638 test "$am__universal" = false || continue
11640 nosideeffect)
11641 # after this tag, mechanisms are not by side-effect, so they'll
11642 # only be used when explicitly requested
11643 if test "x$enable_dependency_tracking" = xyes; then
11644 continue
11645 else
11646 break
11649 msvisualcpp | msvcmsys)
11650 # This compiler won't grok `-c -o', but also, the minuso test has
11651 # not run yet. These depmodes are late enough in the game, and
11652 # so weak that their functioning should not be impacted.
11653 am__obj=conftest.${OBJEXT-o}
11654 am__minus_obj=
11656 none) break ;;
11657 esac
11658 if depmode=$depmode \
11659 source=sub/conftest.c object=$am__obj \
11660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11662 >/dev/null 2>conftest.err &&
11663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11667 # icc doesn't choke on unknown options, it will just issue warnings
11668 # or remarks (even with -Werror). So we grep stderr for any message
11669 # that says an option was ignored or not supported.
11670 # When given -MP, icc 7.0 and 7.1 complain thusly:
11671 # icc: Command line warning: ignoring option '-M'; no argument required
11672 # The diagnosis changed in icc 8.0:
11673 # icc: Command line remark: option '-MP' not supported
11674 if (grep 'ignoring option' conftest.err ||
11675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11676 am_cv_CXX_dependencies_compiler_type=$depmode
11677 break
11680 done
11682 cd ..
11683 rm -rf conftest.dir
11684 else
11685 am_cv_CXX_dependencies_compiler_type=none
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11690 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11691 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11694 test "x$enable_dependency_tracking" != xno \
11695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11696 am__fastdepCXX_TRUE=
11697 am__fastdepCXX_FALSE='#'
11698 else
11699 am__fastdepCXX_TRUE='#'
11700 am__fastdepCXX_FALSE=
11704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11706 (test "X$CXX" != "Xg++"))) ; then
11707 ac_ext=cpp
11708 ac_cpp='$CXXCPP $CPPFLAGS'
11709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11713 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11714 if test -z "$CXXCPP"; then
11715 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 # Double quotes because CXXCPP needs to be expanded
11719 for CXXCPP in "$CXX -E" "/lib/cpp"
11721 ac_preproc_ok=false
11722 for ac_cxx_preproc_warn_flag in '' yes
11724 # Use a header file that comes with gcc, so configuring glibc
11725 # with a fresh cross-compiler works.
11726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11727 # <limits.h> exists even on freestanding compilers.
11728 # On the NeXT, cc -E runs the code through the compiler's parser,
11729 # not just through cpp. "Syntax error" is here to catch this case.
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11737 Syntax error
11738 _ACEOF
11739 if ac_fn_cxx_try_cpp "$LINENO"; then :
11741 else
11742 # Broken: fails on valid input.
11743 continue
11745 rm -f conftest.err conftest.$ac_ext
11747 # OK, works on sane cases. Now check whether nonexistent headers
11748 # can be detected and how.
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751 #include <ac_nonexistent.h>
11752 _ACEOF
11753 if ac_fn_cxx_try_cpp "$LINENO"; then :
11754 # Broken: success on invalid input.
11755 continue
11756 else
11757 # Passes both tests.
11758 ac_preproc_ok=:
11759 break
11761 rm -f conftest.err conftest.$ac_ext
11763 done
11764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11765 rm -f conftest.err conftest.$ac_ext
11766 if $ac_preproc_ok; then :
11767 break
11770 done
11771 ac_cv_prog_CXXCPP=$CXXCPP
11774 CXXCPP=$ac_cv_prog_CXXCPP
11775 else
11776 ac_cv_prog_CXXCPP=$CXXCPP
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11779 $as_echo "$CXXCPP" >&6; }
11780 ac_preproc_ok=false
11781 for ac_cxx_preproc_warn_flag in '' yes
11783 # Use a header file that comes with gcc, so configuring glibc
11784 # with a fresh cross-compiler works.
11785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786 # <limits.h> exists even on freestanding compilers.
11787 # On the NeXT, cc -E runs the code through the compiler's parser,
11788 # not just through cpp. "Syntax error" is here to catch this case.
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791 #ifdef __STDC__
11792 # include <limits.h>
11793 #else
11794 # include <assert.h>
11795 #endif
11796 Syntax error
11797 _ACEOF
11798 if ac_fn_cxx_try_cpp "$LINENO"; then :
11800 else
11801 # Broken: fails on valid input.
11802 continue
11804 rm -f conftest.err conftest.$ac_ext
11806 # OK, works on sane cases. Now check whether nonexistent headers
11807 # can be detected and how.
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810 #include <ac_nonexistent.h>
11811 _ACEOF
11812 if ac_fn_cxx_try_cpp "$LINENO"; then :
11813 # Broken: success on invalid input.
11814 continue
11815 else
11816 # Passes both tests.
11817 ac_preproc_ok=:
11818 break
11820 rm -f conftest.err conftest.$ac_ext
11822 done
11823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11824 rm -f conftest.err conftest.$ac_ext
11825 if $ac_preproc_ok; then :
11827 else
11828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11830 _lt_caught_CXX_error=yes; }
11833 ac_ext=c
11834 ac_cpp='$CPP $CPPFLAGS'
11835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11839 else
11840 _lt_caught_CXX_error=yes
11846 # Set options
11847 # Check whether --enable-static was given.
11848 if test "${enable_static+set}" = set; then :
11849 enableval=$enable_static; p=${PACKAGE-default}
11850 case $enableval in
11851 yes) enable_static=yes ;;
11852 no) enable_static=no ;;
11854 enable_static=no
11855 # Look at the argument we got. We use all the common list separators.
11856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11857 for pkg in $enableval; do
11858 IFS="$lt_save_ifs"
11859 if test "X$pkg" = "X$p"; then
11860 enable_static=yes
11862 done
11863 IFS="$lt_save_ifs"
11865 esac
11866 else
11867 enable_static=no
11876 enable_win32_dll=yes
11878 case $host in
11879 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11880 if test -n "$ac_tool_prefix"; then
11881 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11882 set dummy ${ac_tool_prefix}as; ac_word=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if test "${ac_cv_prog_AS+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 if test -n "$AS"; then
11889 ac_cv_prog_AS="$AS" # Let the user override the test.
11890 else
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_prog_AS="${ac_tool_prefix}as"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11902 done
11903 done
11904 IFS=$as_save_IFS
11908 AS=$ac_cv_prog_AS
11909 if test -n "$AS"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11911 $as_echo "$AS" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11919 if test -z "$ac_cv_prog_AS"; then
11920 ac_ct_AS=$AS
11921 # Extract the first word of "as", so it can be a program name with args.
11922 set dummy as; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 if test -n "$ac_ct_AS"; then
11929 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11930 else
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11938 ac_cv_prog_ac_ct_AS="as"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11942 done
11943 done
11944 IFS=$as_save_IFS
11948 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11949 if test -n "$ac_ct_AS"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11951 $as_echo "$ac_ct_AS" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11957 if test "x$ac_ct_AS" = x; then
11958 AS="false"
11959 else
11960 case $cross_compiling:$ac_tool_warned in
11961 yes:)
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11964 ac_tool_warned=yes ;;
11965 esac
11966 AS=$ac_ct_AS
11968 else
11969 AS="$ac_cv_prog_AS"
11972 if test -n "$ac_tool_prefix"; then
11973 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11974 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 if test -n "$DLLTOOL"; then
11981 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11982 else
11983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984 for as_dir in $PATH
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11990 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 break 2
11994 done
11995 done
11996 IFS=$as_save_IFS
12000 DLLTOOL=$ac_cv_prog_DLLTOOL
12001 if test -n "$DLLTOOL"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12003 $as_echo "$DLLTOOL" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12011 if test -z "$ac_cv_prog_DLLTOOL"; then
12012 ac_ct_DLLTOOL=$DLLTOOL
12013 # Extract the first word of "dlltool", so it can be a program name with args.
12014 set dummy dlltool; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 if test -n "$ac_ct_DLLTOOL"; then
12021 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12022 else
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12030 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12034 done
12035 done
12036 IFS=$as_save_IFS
12040 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12041 if test -n "$ac_ct_DLLTOOL"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12043 $as_echo "$ac_ct_DLLTOOL" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12049 if test "x$ac_ct_DLLTOOL" = x; then
12050 DLLTOOL="false"
12051 else
12052 case $cross_compiling:$ac_tool_warned in
12053 yes:)
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12056 ac_tool_warned=yes ;;
12057 esac
12058 DLLTOOL=$ac_ct_DLLTOOL
12060 else
12061 DLLTOOL="$ac_cv_prog_DLLTOOL"
12064 if test -n "$ac_tool_prefix"; then
12065 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12066 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 if test -n "$OBJDUMP"; then
12073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12074 else
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12082 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 break 2
12086 done
12087 done
12088 IFS=$as_save_IFS
12092 OBJDUMP=$ac_cv_prog_OBJDUMP
12093 if test -n "$OBJDUMP"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12095 $as_echo "$OBJDUMP" >&6; }
12096 else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12103 if test -z "$ac_cv_prog_OBJDUMP"; then
12104 ac_ct_OBJDUMP=$OBJDUMP
12105 # Extract the first word of "objdump", so it can be a program name with args.
12106 set dummy objdump; ac_word=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108 $as_echo_n "checking for $ac_word... " >&6; }
12109 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 if test -n "$ac_ct_OBJDUMP"; then
12113 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12114 else
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12122 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 break 2
12126 done
12127 done
12128 IFS=$as_save_IFS
12132 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12133 if test -n "$ac_ct_OBJDUMP"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12135 $as_echo "$ac_ct_OBJDUMP" >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12141 if test "x$ac_ct_OBJDUMP" = x; then
12142 OBJDUMP="false"
12143 else
12144 case $cross_compiling:$ac_tool_warned in
12145 yes:)
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12148 ac_tool_warned=yes ;;
12149 esac
12150 OBJDUMP=$ac_ct_OBJDUMP
12152 else
12153 OBJDUMP="$ac_cv_prog_OBJDUMP"
12157 esac
12159 test -z "$AS" && AS=as
12165 test -z "$DLLTOOL" && DLLTOOL=dlltool
12171 test -z "$OBJDUMP" && OBJDUMP=objdump
12179 enable_dlopen=no
12183 # Check whether --enable-shared was given.
12184 if test "${enable_shared+set}" = set; then :
12185 enableval=$enable_shared; p=${PACKAGE-default}
12186 case $enableval in
12187 yes) enable_shared=yes ;;
12188 no) enable_shared=no ;;
12190 enable_shared=no
12191 # Look at the argument we got. We use all the common list separators.
12192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12193 for pkg in $enableval; do
12194 IFS="$lt_save_ifs"
12195 if test "X$pkg" = "X$p"; then
12196 enable_shared=yes
12198 done
12199 IFS="$lt_save_ifs"
12201 esac
12202 else
12203 enable_shared=yes
12216 # Check whether --with-pic was given.
12217 if test "${with_pic+set}" = set; then :
12218 withval=$with_pic; pic_mode="$withval"
12219 else
12220 pic_mode=default
12224 test -z "$pic_mode" && pic_mode=default
12232 # Check whether --enable-fast-install was given.
12233 if test "${enable_fast_install+set}" = set; then :
12234 enableval=$enable_fast_install; p=${PACKAGE-default}
12235 case $enableval in
12236 yes) enable_fast_install=yes ;;
12237 no) enable_fast_install=no ;;
12239 enable_fast_install=no
12240 # Look at the argument we got. We use all the common list separators.
12241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12242 for pkg in $enableval; do
12243 IFS="$lt_save_ifs"
12244 if test "X$pkg" = "X$p"; then
12245 enable_fast_install=yes
12247 done
12248 IFS="$lt_save_ifs"
12250 esac
12251 else
12252 enable_fast_install=yes
12265 # This can be used to rebuild libtool when needed
12266 LIBTOOL_DEPS="$ltmain"
12268 # Always use our own libtool.
12269 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12295 test -z "$LN_S" && LN_S="ln -s"
12310 if test -n "${ZSH_VERSION+set}" ; then
12311 setopt NO_GLOB_SUBST
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12315 $as_echo_n "checking for objdir... " >&6; }
12316 if test "${lt_cv_objdir+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 rm -f .libs 2>/dev/null
12320 mkdir .libs 2>/dev/null
12321 if test -d .libs; then
12322 lt_cv_objdir=.libs
12323 else
12324 # MS-DOS does not allow filenames that begin with a dot.
12325 lt_cv_objdir=_libs
12327 rmdir .libs 2>/dev/null
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12330 $as_echo "$lt_cv_objdir" >&6; }
12331 objdir=$lt_cv_objdir
12337 cat >>confdefs.h <<_ACEOF
12338 #define LT_OBJDIR "$lt_cv_objdir/"
12339 _ACEOF
12357 case $host_os in
12358 aix3*)
12359 # AIX sometimes has problems with the GCC collect2 program. For some
12360 # reason, if we set the COLLECT_NAMES environment variable, the problems
12361 # vanish in a puff of smoke.
12362 if test "X${COLLECT_NAMES+set}" != Xset; then
12363 COLLECT_NAMES=
12364 export COLLECT_NAMES
12367 esac
12369 # Sed substitution that helps us do robust quoting. It backslashifies
12370 # metacharacters that are still active within double-quoted strings.
12371 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12373 # Same as above, but do not quote variable references.
12374 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12376 # Sed substitution to delay expansion of an escaped shell variable in a
12377 # double_quote_subst'ed string.
12378 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12380 # Sed substitution to delay expansion of an escaped single quote.
12381 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12383 # Sed substitution to avoid accidental globbing in evaled expressions
12384 no_glob_subst='s/\*/\\\*/g'
12386 # Global variables:
12387 ofile=libtool
12388 can_build_shared=yes
12390 # All known linkers require a `.a' archive for static linking (except MSVC,
12391 # which needs '.lib').
12392 libext=a
12394 with_gnu_ld="$lt_cv_prog_gnu_ld"
12396 old_CC="$CC"
12397 old_CFLAGS="$CFLAGS"
12399 # Set sane defaults for various variables
12400 test -z "$CC" && CC=cc
12401 test -z "$LTCC" && LTCC=$CC
12402 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12403 test -z "$LD" && LD=ld
12404 test -z "$ac_objext" && ac_objext=o
12406 for cc_temp in $compiler""; do
12407 case $cc_temp in
12408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12410 \-*) ;;
12411 *) break;;
12412 esac
12413 done
12414 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12417 # Only perform the check for file, if the check method requires it
12418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12419 case $deplibs_check_method in
12420 file_magic*)
12421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 case $MAGIC_CMD in
12428 [\\/*] | ?:[\\/]*)
12429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12432 lt_save_MAGIC_CMD="$MAGIC_CMD"
12433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12435 for ac_dir in $ac_dummy; do
12436 IFS="$lt_save_ifs"
12437 test -z "$ac_dir" && ac_dir=.
12438 if test -f $ac_dir/${ac_tool_prefix}file; then
12439 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12440 if test -n "$file_magic_test_file"; then
12441 case $deplibs_check_method in
12442 "file_magic "*)
12443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12446 $EGREP "$file_magic_regex" > /dev/null; then
12448 else
12449 cat <<_LT_EOF 1>&2
12451 *** Warning: the command libtool uses to detect shared libraries,
12452 *** $file_magic_cmd, produces output that libtool cannot recognize.
12453 *** The result is that libtool may fail to recognize shared libraries
12454 *** as such. This will affect the creation of libtool libraries that
12455 *** depend on shared libraries, but programs linked with such libtool
12456 *** libraries will work regardless of this problem. Nevertheless, you
12457 *** may want to report the problem to your system manager and/or to
12458 *** bug-libtool@gnu.org
12460 _LT_EOF
12461 fi ;;
12462 esac
12464 break
12466 done
12467 IFS="$lt_save_ifs"
12468 MAGIC_CMD="$lt_save_MAGIC_CMD"
12470 esac
12473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12474 if test -n "$MAGIC_CMD"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12476 $as_echo "$MAGIC_CMD" >&6; }
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12486 if test -z "$lt_cv_path_MAGIC_CMD"; then
12487 if test -n "$ac_tool_prefix"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12489 $as_echo_n "checking for file... " >&6; }
12490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 case $MAGIC_CMD in
12494 [\\/*] | ?:[\\/]*)
12495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12498 lt_save_MAGIC_CMD="$MAGIC_CMD"
12499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12501 for ac_dir in $ac_dummy; do
12502 IFS="$lt_save_ifs"
12503 test -z "$ac_dir" && ac_dir=.
12504 if test -f $ac_dir/file; then
12505 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12506 if test -n "$file_magic_test_file"; then
12507 case $deplibs_check_method in
12508 "file_magic "*)
12509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12512 $EGREP "$file_magic_regex" > /dev/null; then
12514 else
12515 cat <<_LT_EOF 1>&2
12517 *** Warning: the command libtool uses to detect shared libraries,
12518 *** $file_magic_cmd, produces output that libtool cannot recognize.
12519 *** The result is that libtool may fail to recognize shared libraries
12520 *** as such. This will affect the creation of libtool libraries that
12521 *** depend on shared libraries, but programs linked with such libtool
12522 *** libraries will work regardless of this problem. Nevertheless, you
12523 *** may want to report the problem to your system manager and/or to
12524 *** bug-libtool@gnu.org
12526 _LT_EOF
12527 fi ;;
12528 esac
12530 break
12532 done
12533 IFS="$lt_save_ifs"
12534 MAGIC_CMD="$lt_save_MAGIC_CMD"
12536 esac
12539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12540 if test -n "$MAGIC_CMD"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12542 $as_echo "$MAGIC_CMD" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12549 else
12550 MAGIC_CMD=:
12556 esac
12558 # Use C for the default configuration in the libtool script
12560 lt_save_CC="$CC"
12561 ac_ext=c
12562 ac_cpp='$CPP $CPPFLAGS'
12563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568 # Source file extension for C test sources.
12569 ac_ext=c
12571 # Object file extension for compiled C test sources.
12572 objext=o
12573 objext=$objext
12575 # Code to be used in simple compile tests
12576 lt_simple_compile_test_code="int some_variable = 0;"
12578 # Code to be used in simple link tests
12579 lt_simple_link_test_code='int main(){return(0);}'
12587 # If no C compiler was specified, use CC.
12588 LTCC=${LTCC-"$CC"}
12590 # If no C compiler flags were specified, use CFLAGS.
12591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12593 # Allow CC to be a program name with arguments.
12594 compiler=$CC
12596 # Save the default compiler, since it gets overwritten when the other
12597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12598 compiler_DEFAULT=$CC
12600 # save warnings/boilerplate of simple test code
12601 ac_outfile=conftest.$ac_objext
12602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_compiler_boilerplate=`cat conftest.err`
12605 $RM conftest*
12607 ac_outfile=conftest.$ac_objext
12608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12610 _lt_linker_boilerplate=`cat conftest.err`
12611 $RM -r conftest*
12614 if test -n "$compiler"; then
12616 lt_prog_compiler_no_builtin_flag=
12618 if test "$GCC" = yes; then
12619 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12622 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12623 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 lt_cv_prog_compiler_rtti_exceptions=no
12627 ac_outfile=conftest.$ac_objext
12628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12629 lt_compiler_flag="-fno-rtti -fno-exceptions"
12630 # Insert the option either (1) after the last *FLAGS variable, or
12631 # (2) before a word containing "conftest.", or (3) at the end.
12632 # Note that $ac_compile itself does not contain backslashes and begins
12633 # with a dollar sign (not a hyphen), so the echo should work correctly.
12634 # The option is referenced via a variable to avoid confusing sed.
12635 lt_compile=`echo "$ac_compile" | $SED \
12636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12638 -e 's:$: $lt_compiler_flag:'`
12639 (eval echo "\"\$as_me:12639: $lt_compile\"" >&5)
12640 (eval "$lt_compile" 2>conftest.err)
12641 ac_status=$?
12642 cat conftest.err >&5
12643 echo "$as_me:12643: \$? = $ac_status" >&5
12644 if (exit $ac_status) && test -s "$ac_outfile"; then
12645 # The compiler can only warn and ignore the option if not recognized
12646 # So say no if there are warnings other than the usual output.
12647 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12650 lt_cv_prog_compiler_rtti_exceptions=yes
12653 $RM conftest*
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12657 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12659 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12660 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12661 else
12672 lt_prog_compiler_wl=
12673 lt_prog_compiler_pic=
12674 lt_prog_compiler_static=
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12677 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12679 if test "$GCC" = yes; then
12680 lt_prog_compiler_wl='-Wl,'
12681 lt_prog_compiler_static='-static'
12683 case $host_os in
12684 aix*)
12685 # All AIX code is PIC.
12686 if test "$host_cpu" = ia64; then
12687 # AIX 5 now supports IA64 processor
12688 lt_prog_compiler_static='-Bstatic'
12692 amigaos*)
12693 case $host_cpu in
12694 powerpc)
12695 # see comment about AmigaOS4 .so support
12696 lt_prog_compiler_pic='-fPIC'
12698 m68k)
12699 # FIXME: we need at least 68020 code to build shared libraries, but
12700 # adding the `-m68020' flag to GCC prevents building anything better,
12701 # like `-m68040'.
12702 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12704 esac
12707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12708 # PIC is the default for these OSes.
12711 mingw* | cygwin* | pw32* | os2* | cegcc*)
12712 # This hack is so that the source file can tell whether it is being
12713 # built for inclusion in a dll (and should export symbols for example).
12714 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12715 # (--disable-auto-import) libraries
12716 lt_prog_compiler_pic='-DDLL_EXPORT'
12719 darwin* | rhapsody*)
12720 # PIC is the default on this platform
12721 # Common symbols not allowed in MH_DYLIB files
12722 lt_prog_compiler_pic='-fno-common'
12725 hpux*)
12726 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12727 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12728 # sets the default TLS model and affects inlining.
12729 case $host_cpu in
12730 hppa*64*)
12731 # +Z the default
12734 lt_prog_compiler_pic='-fPIC'
12736 esac
12739 interix[3-9]*)
12740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12741 # Instead, we relocate shared libraries at runtime.
12744 msdosdjgpp*)
12745 # Just because we use GCC doesn't mean we suddenly get shared libraries
12746 # on systems that don't support them.
12747 lt_prog_compiler_can_build_shared=no
12748 enable_shared=no
12751 *nto* | *qnx*)
12752 # QNX uses GNU C++, but need to define -shared option too, otherwise
12753 # it will coredump.
12754 lt_prog_compiler_pic='-fPIC -shared'
12757 sysv4*MP*)
12758 if test -d /usr/nec; then
12759 lt_prog_compiler_pic=-Kconform_pic
12764 lt_prog_compiler_pic='-fPIC'
12766 esac
12767 else
12768 # PORTME Check for flag to pass linker flags through the system compiler.
12769 case $host_os in
12770 aix*)
12771 lt_prog_compiler_wl='-Wl,'
12772 if test "$host_cpu" = ia64; then
12773 # AIX 5 now supports IA64 processor
12774 lt_prog_compiler_static='-Bstatic'
12775 else
12776 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12780 mingw* | cygwin* | pw32* | os2* | cegcc*)
12781 # This hack is so that the source file can tell whether it is being
12782 # built for inclusion in a dll (and should export symbols for example).
12783 lt_prog_compiler_pic='-DDLL_EXPORT'
12786 hpux9* | hpux10* | hpux11*)
12787 lt_prog_compiler_wl='-Wl,'
12788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12789 # not for PA HP-UX.
12790 case $host_cpu in
12791 hppa*64*|ia64*)
12792 # +Z the default
12795 lt_prog_compiler_pic='+Z'
12797 esac
12798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12799 lt_prog_compiler_static='${wl}-a ${wl}archive'
12802 irix5* | irix6* | nonstopux*)
12803 lt_prog_compiler_wl='-Wl,'
12804 # PIC (with -KPIC) is the default.
12805 lt_prog_compiler_static='-non_shared'
12808 linux* | k*bsd*-gnu)
12809 case $cc_basename in
12810 # old Intel for x86_64 which still supported -KPIC.
12811 ecc*)
12812 lt_prog_compiler_wl='-Wl,'
12813 lt_prog_compiler_pic='-KPIC'
12814 lt_prog_compiler_static='-static'
12816 # icc used to be incompatible with GCC.
12817 # ICC 10 doesn't accept -KPIC any more.
12818 icc* | ifort*)
12819 lt_prog_compiler_wl='-Wl,'
12820 lt_prog_compiler_pic='-fPIC'
12821 lt_prog_compiler_static='-static'
12823 # Lahey Fortran 8.1.
12824 lf95*)
12825 lt_prog_compiler_wl='-Wl,'
12826 lt_prog_compiler_pic='--shared'
12827 lt_prog_compiler_static='--static'
12829 pgcc* | pgf77* | pgf90* | pgf95*)
12830 # Portland Group compilers (*not* the Pentium gcc compiler,
12831 # which looks to be a dead project)
12832 lt_prog_compiler_wl='-Wl,'
12833 lt_prog_compiler_pic='-fpic'
12834 lt_prog_compiler_static='-Bstatic'
12836 ccc*)
12837 lt_prog_compiler_wl='-Wl,'
12838 # All Alpha code is PIC.
12839 lt_prog_compiler_static='-non_shared'
12841 xl*)
12842 # IBM XL C 8.0/Fortran 10.1 on PPC
12843 lt_prog_compiler_wl='-Wl,'
12844 lt_prog_compiler_pic='-qpic'
12845 lt_prog_compiler_static='-qstaticlink'
12848 case `$CC -V 2>&1 | sed 5q` in
12849 *Sun\ C*)
12850 # Sun C 5.9
12851 lt_prog_compiler_pic='-KPIC'
12852 lt_prog_compiler_static='-Bstatic'
12853 lt_prog_compiler_wl='-Wl,'
12855 *Sun\ F*)
12856 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12857 lt_prog_compiler_pic='-KPIC'
12858 lt_prog_compiler_static='-Bstatic'
12859 lt_prog_compiler_wl=''
12861 esac
12863 esac
12866 newsos6)
12867 lt_prog_compiler_pic='-KPIC'
12868 lt_prog_compiler_static='-Bstatic'
12871 *nto* | *qnx*)
12872 # QNX uses GNU C++, but need to define -shared option too, otherwise
12873 # it will coredump.
12874 lt_prog_compiler_pic='-fPIC -shared'
12877 osf3* | osf4* | osf5*)
12878 lt_prog_compiler_wl='-Wl,'
12879 # All OSF/1 code is PIC.
12880 lt_prog_compiler_static='-non_shared'
12883 rdos*)
12884 lt_prog_compiler_static='-non_shared'
12887 solaris*)
12888 lt_prog_compiler_pic='-KPIC'
12889 lt_prog_compiler_static='-Bstatic'
12890 case $cc_basename in
12891 f77* | f90* | f95*)
12892 lt_prog_compiler_wl='-Qoption ld ';;
12894 lt_prog_compiler_wl='-Wl,';;
12895 esac
12898 sunos4*)
12899 lt_prog_compiler_wl='-Qoption ld '
12900 lt_prog_compiler_pic='-PIC'
12901 lt_prog_compiler_static='-Bstatic'
12904 sysv4 | sysv4.2uw2* | sysv4.3*)
12905 lt_prog_compiler_wl='-Wl,'
12906 lt_prog_compiler_pic='-KPIC'
12907 lt_prog_compiler_static='-Bstatic'
12910 sysv4*MP*)
12911 if test -d /usr/nec ;then
12912 lt_prog_compiler_pic='-Kconform_pic'
12913 lt_prog_compiler_static='-Bstatic'
12917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12918 lt_prog_compiler_wl='-Wl,'
12919 lt_prog_compiler_pic='-KPIC'
12920 lt_prog_compiler_static='-Bstatic'
12923 unicos*)
12924 lt_prog_compiler_wl='-Wl,'
12925 lt_prog_compiler_can_build_shared=no
12928 uts4*)
12929 lt_prog_compiler_pic='-pic'
12930 lt_prog_compiler_static='-Bstatic'
12934 lt_prog_compiler_can_build_shared=no
12936 esac
12939 case $host_os in
12940 # For platforms which do not support PIC, -DPIC is meaningless:
12941 *djgpp*)
12942 lt_prog_compiler_pic=
12945 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12947 esac
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12949 $as_echo "$lt_prog_compiler_pic" >&6; }
12957 # Check to make sure the PIC flag actually works.
12959 if test -n "$lt_prog_compiler_pic"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12961 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12962 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 lt_cv_prog_compiler_pic_works=no
12966 ac_outfile=conftest.$ac_objext
12967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12968 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12969 # Insert the option either (1) after the last *FLAGS variable, or
12970 # (2) before a word containing "conftest.", or (3) at the end.
12971 # Note that $ac_compile itself does not contain backslashes and begins
12972 # with a dollar sign (not a hyphen), so the echo should work correctly.
12973 # The option is referenced via a variable to avoid confusing sed.
12974 lt_compile=`echo "$ac_compile" | $SED \
12975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12977 -e 's:$: $lt_compiler_flag:'`
12978 (eval echo "\"\$as_me:12978: $lt_compile\"" >&5)
12979 (eval "$lt_compile" 2>conftest.err)
12980 ac_status=$?
12981 cat conftest.err >&5
12982 echo "$as_me:12982: \$? = $ac_status" >&5
12983 if (exit $ac_status) && test -s "$ac_outfile"; then
12984 # The compiler can only warn and ignore the option if not recognized
12985 # So say no if there are warnings other than the usual output.
12986 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12989 lt_cv_prog_compiler_pic_works=yes
12992 $RM conftest*
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12996 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12998 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12999 case $lt_prog_compiler_pic in
13000 "" | " "*) ;;
13001 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13002 esac
13003 else
13004 lt_prog_compiler_pic=
13005 lt_prog_compiler_can_build_shared=no
13016 # Check to make sure the static flag actually works.
13018 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13020 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13021 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 lt_cv_prog_compiler_static_works=no
13025 save_LDFLAGS="$LDFLAGS"
13026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13029 # The linker can only warn and ignore the option if not recognized
13030 # So say no if there are warnings
13031 if test -s conftest.err; then
13032 # Append any errors to the config.log.
13033 cat conftest.err 1>&5
13034 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13036 if diff conftest.exp conftest.er2 >/dev/null; then
13037 lt_cv_prog_compiler_static_works=yes
13039 else
13040 lt_cv_prog_compiler_static_works=yes
13043 $RM -r conftest*
13044 LDFLAGS="$save_LDFLAGS"
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13048 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13050 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13052 else
13053 lt_prog_compiler_static=
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13064 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 lt_cv_prog_compiler_c_o=no
13068 $RM -r conftest 2>/dev/null
13069 mkdir conftest
13070 cd conftest
13071 mkdir out
13072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13074 lt_compiler_flag="-o out/conftest2.$ac_objext"
13075 # Insert the option either (1) after the last *FLAGS variable, or
13076 # (2) before a word containing "conftest.", or (3) at the end.
13077 # Note that $ac_compile itself does not contain backslashes and begins
13078 # with a dollar sign (not a hyphen), so the echo should work correctly.
13079 lt_compile=`echo "$ac_compile" | $SED \
13080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13082 -e 's:$: $lt_compiler_flag:'`
13083 (eval echo "\"\$as_me:13083: $lt_compile\"" >&5)
13084 (eval "$lt_compile" 2>out/conftest.err)
13085 ac_status=$?
13086 cat out/conftest.err >&5
13087 echo "$as_me:13087: \$? = $ac_status" >&5
13088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13089 then
13090 # The compiler can only warn and ignore the option if not recognized
13091 # So say no if there are warnings
13092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13095 lt_cv_prog_compiler_c_o=yes
13098 chmod u+w . 2>&5
13099 $RM conftest*
13100 # SGI C++ compiler will create directory out/ii_files/ for
13101 # template instantiation
13102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13103 $RM out/* && rmdir out
13104 cd ..
13105 $RM -r conftest
13106 $RM conftest*
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13118 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13119 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 lt_cv_prog_compiler_c_o=no
13123 $RM -r conftest 2>/dev/null
13124 mkdir conftest
13125 cd conftest
13126 mkdir out
13127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13129 lt_compiler_flag="-o out/conftest2.$ac_objext"
13130 # Insert the option either (1) after the last *FLAGS variable, or
13131 # (2) before a word containing "conftest.", or (3) at the end.
13132 # Note that $ac_compile itself does not contain backslashes and begins
13133 # with a dollar sign (not a hyphen), so the echo should work correctly.
13134 lt_compile=`echo "$ac_compile" | $SED \
13135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13137 -e 's:$: $lt_compiler_flag:'`
13138 (eval echo "\"\$as_me:13138: $lt_compile\"" >&5)
13139 (eval "$lt_compile" 2>out/conftest.err)
13140 ac_status=$?
13141 cat out/conftest.err >&5
13142 echo "$as_me:13142: \$? = $ac_status" >&5
13143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13144 then
13145 # The compiler can only warn and ignore the option if not recognized
13146 # So say no if there are warnings
13147 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13150 lt_cv_prog_compiler_c_o=yes
13153 chmod u+w . 2>&5
13154 $RM conftest*
13155 # SGI C++ compiler will create directory out/ii_files/ for
13156 # template instantiation
13157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13158 $RM out/* && rmdir out
13159 cd ..
13160 $RM -r conftest
13161 $RM conftest*
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13165 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13170 hard_links="nottested"
13171 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13172 # do not overwrite the value of need_locks provided by the user
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13174 $as_echo_n "checking if we can lock with hard links... " >&6; }
13175 hard_links=yes
13176 $RM conftest*
13177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13178 touch conftest.a
13179 ln conftest.a conftest.b 2>&5 || hard_links=no
13180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13182 $as_echo "$hard_links" >&6; }
13183 if test "$hard_links" = no; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13185 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13186 need_locks=warn
13188 else
13189 need_locks=no
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13198 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13200 runpath_var=
13201 allow_undefined_flag=
13202 always_export_symbols=no
13203 archive_cmds=
13204 archive_expsym_cmds=
13205 compiler_needs_object=no
13206 enable_shared_with_static_runtimes=no
13207 export_dynamic_flag_spec=
13208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13209 hardcode_automatic=no
13210 hardcode_direct=no
13211 hardcode_direct_absolute=no
13212 hardcode_libdir_flag_spec=
13213 hardcode_libdir_flag_spec_ld=
13214 hardcode_libdir_separator=
13215 hardcode_minus_L=no
13216 hardcode_shlibpath_var=unsupported
13217 inherit_rpath=no
13218 link_all_deplibs=unknown
13219 module_cmds=
13220 module_expsym_cmds=
13221 old_archive_from_new_cmds=
13222 old_archive_from_expsyms_cmds=
13223 thread_safe_flag_spec=
13224 whole_archive_flag_spec=
13225 # include_expsyms should be a list of space-separated symbols to be *always*
13226 # included in the symbol list
13227 include_expsyms=
13228 # exclude_expsyms can be an extended regexp of symbols to exclude
13229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13231 # as well as any symbol that contains `d'.
13232 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13234 # platforms (ab)use it in PIC code, but their linkers get confused if
13235 # the symbol is explicitly referenced. Since portable code cannot
13236 # rely on this symbol name, it's probably fine to never include it in
13237 # preloaded symbol tables.
13238 # Exclude shared library initialization/finalization symbols.
13239 extract_expsyms_cmds=
13241 case $host_os in
13242 cygwin* | mingw* | pw32* | cegcc*)
13243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13244 # When not using gcc, we currently assume that we are using
13245 # Microsoft Visual C++.
13246 if test "$GCC" != yes; then
13247 with_gnu_ld=no
13250 interix*)
13251 # we just hope/assume this is gcc and not c89 (= MSVC++)
13252 with_gnu_ld=yes
13254 openbsd*)
13255 with_gnu_ld=no
13257 esac
13259 ld_shlibs=yes
13260 if test "$with_gnu_ld" = yes; then
13261 # If archive_cmds runs LD, not CC, wlarc should be empty
13262 wlarc='${wl}'
13264 # Set some defaults for GNU ld with shared library support. These
13265 # are reset later if shared libraries are not supported. Putting them
13266 # here allows them to be overridden if necessary.
13267 runpath_var=LD_RUN_PATH
13268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13269 export_dynamic_flag_spec='${wl}--export-dynamic'
13270 # ancient GNU ld didn't support --whole-archive et. al.
13271 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13272 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13273 else
13274 whole_archive_flag_spec=
13276 supports_anon_versioning=no
13277 case `$LD -v 2>&1` in
13278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13281 *\ 2.11.*) ;; # other 2.11 versions
13282 *) supports_anon_versioning=yes ;;
13283 esac
13285 # See if GNU ld supports shared libraries.
13286 case $host_os in
13287 aix[3-9]*)
13288 # On AIX/PPC, the GNU linker is very broken
13289 if test "$host_cpu" != ia64; then
13290 ld_shlibs=no
13291 cat <<_LT_EOF 1>&2
13293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13294 *** to be unable to reliably create shared libraries on AIX.
13295 *** Therefore, libtool is disabling shared libraries support. If you
13296 *** really care for shared libraries, you may want to modify your PATH
13297 *** so that a non-GNU linker is found, and then restart.
13299 _LT_EOF
13303 amigaos*)
13304 case $host_cpu in
13305 powerpc)
13306 # see comment about AmigaOS4 .so support
13307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308 archive_expsym_cmds=''
13310 m68k)
13311 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)'
13312 hardcode_libdir_flag_spec='-L$libdir'
13313 hardcode_minus_L=yes
13315 esac
13318 beos*)
13319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13320 allow_undefined_flag=unsupported
13321 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13322 # support --undefined. This deserves some investigation. FIXME
13323 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324 else
13325 ld_shlibs=no
13329 cygwin* | mingw* | pw32* | cegcc*)
13330 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13331 # as there is no search path for DLLs.
13332 hardcode_libdir_flag_spec='-L$libdir'
13333 allow_undefined_flag=unsupported
13334 always_export_symbols=no
13335 enable_shared_with_static_runtimes=yes
13336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13338 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13340 # If the export-symbols file already is a .def file (1st line
13341 # is EXPORTS), use it as is; otherwise, prepend...
13342 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13343 cp $export_symbols $output_objdir/$soname.def;
13344 else
13345 echo EXPORTS > $output_objdir/$soname.def;
13346 cat $export_symbols >> $output_objdir/$soname.def;
13348 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13349 else
13350 ld_shlibs=no
13354 interix[3-9]*)
13355 hardcode_direct=no
13356 hardcode_shlibpath_var=no
13357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13358 export_dynamic_flag_spec='${wl}-E'
13359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13360 # Instead, shared libraries are loaded at an image base (0x10000000 by
13361 # default) and relocated if they conflict, which is a slow very memory
13362 # consuming and fragmenting process. To avoid this, we pick a random,
13363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13364 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13366 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'
13369 gnu* | linux* | tpf* | k*bsd*-gnu)
13370 tmp_diet=no
13371 if test "$host_os" = linux-dietlibc; then
13372 case $cc_basename in
13373 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13374 esac
13376 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13377 && test "$tmp_diet" = no
13378 then
13379 tmp_addflag=
13380 tmp_sharedflag='-shared'
13381 case $cc_basename,$host_cpu in
13382 pgcc*) # Portland Group C compiler
13383 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13384 tmp_addflag=' $pic_flag'
13386 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13387 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13388 tmp_addflag=' $pic_flag -Mnomain' ;;
13389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13390 tmp_addflag=' -i_dynamic' ;;
13391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13392 tmp_addflag=' -i_dynamic -nofor_main' ;;
13393 ifc* | ifort*) # Intel Fortran compiler
13394 tmp_addflag=' -nofor_main' ;;
13395 lf95*) # Lahey Fortran 8.1
13396 whole_archive_flag_spec=
13397 tmp_sharedflag='--shared' ;;
13398 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13399 tmp_sharedflag='-qmkshrobj'
13400 tmp_addflag= ;;
13401 esac
13402 case `$CC -V 2>&1 | sed 5q` in
13403 *Sun\ C*) # Sun C 5.9
13404 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13405 compiler_needs_object=yes
13406 tmp_sharedflag='-G' ;;
13407 *Sun\ F*) # Sun Fortran 8.3
13408 tmp_sharedflag='-G' ;;
13409 esac
13410 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13412 if test "x$supports_anon_versioning" = xyes; then
13413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13415 echo "local: *; };" >> $output_objdir/$libname.ver~
13416 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13419 case $cc_basename in
13420 xlf*)
13421 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13422 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13423 hardcode_libdir_flag_spec=
13424 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13425 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13426 if test "x$supports_anon_versioning" = xyes; then
13427 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13429 echo "local: *; };" >> $output_objdir/$libname.ver~
13430 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13433 esac
13434 else
13435 ld_shlibs=no
13439 netbsd*)
13440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13441 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13442 wlarc=
13443 else
13444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13449 solaris*)
13450 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13451 ld_shlibs=no
13452 cat <<_LT_EOF 1>&2
13454 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13455 *** create shared libraries on Solaris systems. Therefore, libtool
13456 *** is disabling shared libraries support. We urge you to upgrade GNU
13457 *** binutils to release 2.9.1 or newer. Another option is to modify
13458 *** your PATH or compiler configuration so that the native linker is
13459 *** used, and then restart.
13461 _LT_EOF
13462 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13465 else
13466 ld_shlibs=no
13470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13471 case `$LD -v 2>&1` in
13472 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13473 ld_shlibs=no
13474 cat <<_LT_EOF 1>&2
13476 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13477 *** reliably create shared libraries on SCO systems. Therefore, libtool
13478 *** is disabling shared libraries support. We urge you to upgrade GNU
13479 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13480 *** your PATH or compiler configuration so that the native linker is
13481 *** used, and then restart.
13483 _LT_EOF
13486 # For security reasons, it is highly recommended that you always
13487 # use absolute paths for naming shared libraries, and exclude the
13488 # DT_RUNPATH tag from executables and libraries. But doing so
13489 # requires that you compile everything twice, which is a pain.
13490 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13494 else
13495 ld_shlibs=no
13498 esac
13501 sunos4*)
13502 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13503 wlarc=
13504 hardcode_direct=yes
13505 hardcode_shlibpath_var=no
13509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13512 else
13513 ld_shlibs=no
13516 esac
13518 if test "$ld_shlibs" = no; then
13519 runpath_var=
13520 hardcode_libdir_flag_spec=
13521 export_dynamic_flag_spec=
13522 whole_archive_flag_spec=
13524 else
13525 # PORTME fill in a description of your system's linker (not GNU ld)
13526 case $host_os in
13527 aix3*)
13528 allow_undefined_flag=unsupported
13529 always_export_symbols=yes
13530 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'
13531 # Note: this linker hardcodes the directories in LIBPATH if there
13532 # are no directories specified by -L.
13533 hardcode_minus_L=yes
13534 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13535 # Neither direct hardcoding nor static linking is supported with a
13536 # broken collect2.
13537 hardcode_direct=unsupported
13541 aix[4-9]*)
13542 if test "$host_cpu" = ia64; then
13543 # On IA64, the linker does run time linking by default, so we don't
13544 # have to do anything special.
13545 aix_use_runtimelinking=no
13546 exp_sym_flag='-Bexport'
13547 no_entry_flag=""
13548 else
13549 # If we're using GNU nm, then we don't want the "-C" option.
13550 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13551 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13552 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13553 else
13554 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13556 aix_use_runtimelinking=no
13558 # Test if we are trying to use run time linking or normal
13559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13560 # need to do runtime linking.
13561 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13562 for ld_flag in $LDFLAGS; do
13563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13564 aix_use_runtimelinking=yes
13565 break
13567 done
13569 esac
13571 exp_sym_flag='-bexport'
13572 no_entry_flag='-bnoentry'
13575 # When large executables or shared objects are built, AIX ld can
13576 # have problems creating the table of contents. If linking a library
13577 # or program results in "error TOC overflow" add -mminimal-toc to
13578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13581 archive_cmds=''
13582 hardcode_direct=yes
13583 hardcode_direct_absolute=yes
13584 hardcode_libdir_separator=':'
13585 link_all_deplibs=yes
13586 file_list_spec='${wl}-f,'
13588 if test "$GCC" = yes; then
13589 case $host_os in aix4.[012]|aix4.[012].*)
13590 # We only want to do this on AIX 4.2 and lower, the check
13591 # below for broken collect2 doesn't work under 4.3+
13592 collect2name=`${CC} -print-prog-name=collect2`
13593 if test -f "$collect2name" &&
13594 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13595 then
13596 # We have reworked collect2
13598 else
13599 # We have old collect2
13600 hardcode_direct=unsupported
13601 # It fails to find uninstalled libraries when the uninstalled
13602 # path is not listed in the libpath. Setting hardcode_minus_L
13603 # to unsupported forces relinking
13604 hardcode_minus_L=yes
13605 hardcode_libdir_flag_spec='-L$libdir'
13606 hardcode_libdir_separator=
13609 esac
13610 shared_flag='-shared'
13611 if test "$aix_use_runtimelinking" = yes; then
13612 shared_flag="$shared_flag "'${wl}-G'
13614 else
13615 # not using gcc
13616 if test "$host_cpu" = ia64; then
13617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13618 # chokes on -Wl,-G. The following line is correct:
13619 shared_flag='-G'
13620 else
13621 if test "$aix_use_runtimelinking" = yes; then
13622 shared_flag='${wl}-G'
13623 else
13624 shared_flag='${wl}-bM:SRE'
13629 export_dynamic_flag_spec='${wl}-bexpall'
13630 # It seems that -bexpall does not export symbols beginning with
13631 # underscore (_), so it is better to generate a list of symbols to export.
13632 always_export_symbols=yes
13633 if test "$aix_use_runtimelinking" = yes; then
13634 # Warning - without using the other runtime loading flags (-brtl),
13635 # -berok will link without error, but may produce a broken library.
13636 allow_undefined_flag='-berok'
13637 # Determine the default libpath from the value encoded in an
13638 # empty executable.
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13643 main ()
13647 return 0;
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13652 lt_aix_libpath_sed='
13653 /Import File Strings/,/^$/ {
13654 /^0/ {
13655 s/^0 *\(.*\)$/\1/
13659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13660 # Check for a 64-bit object if we didn't find anything.
13661 if test -z "$aix_libpath"; then
13662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13665 rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13670 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13671 else
13672 if test "$host_cpu" = ia64; then
13673 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13674 allow_undefined_flag="-z nodefs"
13675 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"
13676 else
13677 # Determine the default libpath from the value encoded in an
13678 # empty executable.
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13683 main ()
13687 return 0;
13689 _ACEOF
13690 if ac_fn_c_try_link "$LINENO"; then :
13692 lt_aix_libpath_sed='
13693 /Import File Strings/,/^$/ {
13694 /^0/ {
13695 s/^0 *\(.*\)$/\1/
13699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13700 # Check for a 64-bit object if we didn't find anything.
13701 if test -z "$aix_libpath"; then
13702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13710 # Warning - without using the other run time loading flags,
13711 # -berok will link without error, but may produce a broken library.
13712 no_undefined_flag=' ${wl}-bernotok'
13713 allow_undefined_flag=' ${wl}-berok'
13714 # Exported symbols can be pulled into shared objects from archives
13715 whole_archive_flag_spec='$convenience'
13716 archive_cmds_need_lc=yes
13717 # This is similar to how AIX traditionally builds its shared libraries.
13718 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13723 amigaos*)
13724 case $host_cpu in
13725 powerpc)
13726 # see comment about AmigaOS4 .so support
13727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13728 archive_expsym_cmds=''
13730 m68k)
13731 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)'
13732 hardcode_libdir_flag_spec='-L$libdir'
13733 hardcode_minus_L=yes
13735 esac
13738 bsdi[45]*)
13739 export_dynamic_flag_spec=-rdynamic
13742 cygwin* | mingw* | pw32* | cegcc*)
13743 # When not using gcc, we currently assume that we are using
13744 # Microsoft Visual C++.
13745 # hardcode_libdir_flag_spec is actually meaningless, as there is
13746 # no search path for DLLs.
13747 hardcode_libdir_flag_spec=' '
13748 allow_undefined_flag=unsupported
13749 # Tell ltmain to make .lib files, not .a files.
13750 libext=lib
13751 # Tell ltmain to make .dll files, not .so files.
13752 shrext_cmds=".dll"
13753 # FIXME: Setting linknames here is a bad hack.
13754 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13755 # The linker will automatically build a .lib file if we build a DLL.
13756 old_archive_from_new_cmds='true'
13757 # FIXME: Should let the user specify the lib program.
13758 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13759 fix_srcfile_path='`cygpath -w "$srcfile"`'
13760 enable_shared_with_static_runtimes=yes
13763 darwin* | rhapsody*)
13766 archive_cmds_need_lc=no
13767 hardcode_direct=no
13768 hardcode_automatic=yes
13769 hardcode_shlibpath_var=unsupported
13770 whole_archive_flag_spec=''
13771 link_all_deplibs=yes
13772 allow_undefined_flag="$_lt_dar_allow_undefined"
13773 case $cc_basename in
13774 ifort*) _lt_dar_can_shared=yes ;;
13775 *) _lt_dar_can_shared=$GCC ;;
13776 esac
13777 if test "$_lt_dar_can_shared" = "yes"; then
13778 output_verbose_link_cmd=echo
13779 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13780 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13781 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}"
13782 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}"
13784 else
13785 ld_shlibs=no
13790 dgux*)
13791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 hardcode_libdir_flag_spec='-L$libdir'
13793 hardcode_shlibpath_var=no
13796 freebsd1*)
13797 ld_shlibs=no
13800 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13801 # support. Future versions do this automatically, but an explicit c++rt0.o
13802 # does not break anything, and helps significantly (at the cost of a little
13803 # extra space).
13804 freebsd2.2*)
13805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13806 hardcode_libdir_flag_spec='-R$libdir'
13807 hardcode_direct=yes
13808 hardcode_shlibpath_var=no
13811 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13812 freebsd2*)
13813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13814 hardcode_direct=yes
13815 hardcode_minus_L=yes
13816 hardcode_shlibpath_var=no
13819 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13820 freebsd* | dragonfly*)
13821 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13822 hardcode_libdir_flag_spec='-R$libdir'
13823 hardcode_direct=yes
13824 hardcode_shlibpath_var=no
13827 hpux9*)
13828 if test "$GCC" = yes; then
13829 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13830 else
13831 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13834 hardcode_libdir_separator=:
13835 hardcode_direct=yes
13837 # hardcode_minus_L: Not really in the search PATH,
13838 # but as the default location of the library.
13839 hardcode_minus_L=yes
13840 export_dynamic_flag_spec='${wl}-E'
13843 hpux10*)
13844 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13846 else
13847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13849 if test "$with_gnu_ld" = no; then
13850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13851 hardcode_libdir_flag_spec_ld='+b $libdir'
13852 hardcode_libdir_separator=:
13853 hardcode_direct=yes
13854 hardcode_direct_absolute=yes
13855 export_dynamic_flag_spec='${wl}-E'
13856 # hardcode_minus_L: Not really in the search PATH,
13857 # but as the default location of the library.
13858 hardcode_minus_L=yes
13862 hpux11*)
13863 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13864 case $host_cpu in
13865 hppa*64*)
13866 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 ia64*)
13869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13874 esac
13875 else
13876 case $host_cpu in
13877 hppa*64*)
13878 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13880 ia64*)
13881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13886 esac
13888 if test "$with_gnu_ld" = no; then
13889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13890 hardcode_libdir_separator=:
13892 case $host_cpu in
13893 hppa*64*|ia64*)
13894 hardcode_direct=no
13895 hardcode_shlibpath_var=no
13898 hardcode_direct=yes
13899 hardcode_direct_absolute=yes
13900 export_dynamic_flag_spec='${wl}-E'
13902 # hardcode_minus_L: Not really in the search PATH,
13903 # but as the default location of the library.
13904 hardcode_minus_L=yes
13906 esac
13910 irix5* | irix6* | nonstopux*)
13911 if test "$GCC" = yes; then
13912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13913 # Try to use the -exported_symbol ld option, if it does not
13914 # work, assume that -exports_file does not work either and
13915 # implicitly export all symbols.
13916 save_LDFLAGS="$LDFLAGS"
13917 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 int foo(void) {}
13921 _ACEOF
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13926 rm -f core conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13928 LDFLAGS="$save_LDFLAGS"
13929 else
13930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13933 archive_cmds_need_lc='no'
13934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13935 hardcode_libdir_separator=:
13936 inherit_rpath=yes
13937 link_all_deplibs=yes
13940 netbsd*)
13941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13943 else
13944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13946 hardcode_libdir_flag_spec='-R$libdir'
13947 hardcode_direct=yes
13948 hardcode_shlibpath_var=no
13951 newsos6)
13952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13953 hardcode_direct=yes
13954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13955 hardcode_libdir_separator=:
13956 hardcode_shlibpath_var=no
13959 *nto* | *qnx*)
13962 openbsd*)
13963 if test -f /usr/libexec/ld.so; then
13964 hardcode_direct=yes
13965 hardcode_shlibpath_var=no
13966 hardcode_direct_absolute=yes
13967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13969 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13971 export_dynamic_flag_spec='${wl}-E'
13972 else
13973 case $host_os in
13974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13976 hardcode_libdir_flag_spec='-R$libdir'
13979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13982 esac
13984 else
13985 ld_shlibs=no
13989 os2*)
13990 hardcode_libdir_flag_spec='-L$libdir'
13991 hardcode_minus_L=yes
13992 allow_undefined_flag=unsupported
13993 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13994 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13997 osf3*)
13998 if test "$GCC" = yes; then
13999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14000 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14001 else
14002 allow_undefined_flag=' -expect_unresolved \*'
14003 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14005 archive_cmds_need_lc='no'
14006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14007 hardcode_libdir_separator=:
14010 osf4* | osf5*) # as osf3* with the addition of -msym flag
14011 if test "$GCC" = yes; then
14012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14013 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14015 else
14016 allow_undefined_flag=' -expect_unresolved \*'
14017 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14018 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~
14019 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14021 # Both c and cxx compiler support -rpath directly
14022 hardcode_libdir_flag_spec='-rpath $libdir'
14024 archive_cmds_need_lc='no'
14025 hardcode_libdir_separator=:
14028 solaris*)
14029 no_undefined_flag=' -z defs'
14030 if test "$GCC" = yes; then
14031 wlarc='${wl}'
14032 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14034 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14035 else
14036 case `$CC -V 2>&1` in
14037 *"Compilers 5.0"*)
14038 wlarc=''
14039 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14044 wlarc='${wl}'
14045 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14047 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14049 esac
14051 hardcode_libdir_flag_spec='-R$libdir'
14052 hardcode_shlibpath_var=no
14053 case $host_os in
14054 solaris2.[0-5] | solaris2.[0-5].*) ;;
14056 # The compiler driver will combine and reorder linker options,
14057 # but understands `-z linker_flag'. GCC discards it without `$wl',
14058 # but is careful enough not to reorder.
14059 # Supported since Solaris 2.6 (maybe 2.5.1?)
14060 if test "$GCC" = yes; then
14061 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14062 else
14063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14066 esac
14067 link_all_deplibs=yes
14070 sunos4*)
14071 if test "x$host_vendor" = xsequent; then
14072 # Use $CC to link under sequent, because it throws in some extra .o
14073 # files that make .init and .fini sections work.
14074 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14075 else
14076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14078 hardcode_libdir_flag_spec='-L$libdir'
14079 hardcode_direct=yes
14080 hardcode_minus_L=yes
14081 hardcode_shlibpath_var=no
14084 sysv4)
14085 case $host_vendor in
14086 sni)
14087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14088 hardcode_direct=yes # is this really true???
14090 siemens)
14091 ## LD is ld it makes a PLAMLIB
14092 ## CC just makes a GrossModule.
14093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14094 reload_cmds='$CC -r -o $output$reload_objs'
14095 hardcode_direct=no
14097 motorola)
14098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14101 esac
14102 runpath_var='LD_RUN_PATH'
14103 hardcode_shlibpath_var=no
14106 sysv4.3*)
14107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14108 hardcode_shlibpath_var=no
14109 export_dynamic_flag_spec='-Bexport'
14112 sysv4*MP*)
14113 if test -d /usr/nec; then
14114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115 hardcode_shlibpath_var=no
14116 runpath_var=LD_RUN_PATH
14117 hardcode_runpath_var=yes
14118 ld_shlibs=yes
14122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14123 no_undefined_flag='${wl}-z,text'
14124 archive_cmds_need_lc=no
14125 hardcode_shlibpath_var=no
14126 runpath_var='LD_RUN_PATH'
14128 if test "$GCC" = yes; then
14129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14131 else
14132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 sysv5* | sco3.2v5* | sco5v6*)
14138 # Note: We can NOT use -z defs as we might desire, because we do not
14139 # link with -lc, and that would cause any symbols used from libc to
14140 # always be unresolved, which means just about no library would
14141 # ever link correctly. If we're not using GNU ld we use -z text
14142 # though, which does catch some bad symbols but isn't as heavy-handed
14143 # as -z defs.
14144 no_undefined_flag='${wl}-z,text'
14145 allow_undefined_flag='${wl}-z,nodefs'
14146 archive_cmds_need_lc=no
14147 hardcode_shlibpath_var=no
14148 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14149 hardcode_libdir_separator=':'
14150 link_all_deplibs=yes
14151 export_dynamic_flag_spec='${wl}-Bexport'
14152 runpath_var='LD_RUN_PATH'
14154 if test "$GCC" = yes; then
14155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157 else
14158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14163 uts4*)
14164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165 hardcode_libdir_flag_spec='-L$libdir'
14166 hardcode_shlibpath_var=no
14170 ld_shlibs=no
14172 esac
14174 if test x$host_vendor = xsni; then
14175 case $host in
14176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14177 export_dynamic_flag_spec='${wl}-Blargedynsym'
14179 esac
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14184 $as_echo "$ld_shlibs" >&6; }
14185 test "$ld_shlibs" = no && can_build_shared=no
14187 with_gnu_ld=$with_gnu_ld
14204 # Do we need to explicitly link libc?
14206 case "x$archive_cmds_need_lc" in
14207 x|xyes)
14208 # Assume -lc should be added
14209 archive_cmds_need_lc=yes
14211 if test "$enable_shared" = yes && test "$GCC" = yes; then
14212 case $archive_cmds in
14213 *'~'*)
14214 # FIXME: we may have to deal with multi-command sequences.
14216 '$CC '*)
14217 # Test whether the compiler implicitly links with -lc since on some
14218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14219 # to ld, don't add -lc before -lgcc.
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14222 $RM conftest*
14223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14226 (eval $ac_compile) 2>&5
14227 ac_status=$?
14228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14229 test $ac_status = 0; } 2>conftest.err; then
14230 soname=conftest
14231 lib=conftest
14232 libobjs=conftest.$ac_objext
14233 deplibs=
14234 wl=$lt_prog_compiler_wl
14235 pic_flag=$lt_prog_compiler_pic
14236 compiler_flags=-v
14237 linker_flags=-v
14238 verstring=
14239 output_objdir=.
14240 libname=conftest
14241 lt_save_allow_undefined_flag=$allow_undefined_flag
14242 allow_undefined_flag=
14243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14244 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14245 ac_status=$?
14246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14247 test $ac_status = 0; }
14248 then
14249 archive_cmds_need_lc=no
14250 else
14251 archive_cmds_need_lc=yes
14253 allow_undefined_flag=$lt_save_allow_undefined_flag
14254 else
14255 cat conftest.err 1>&5
14257 $RM conftest*
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14259 $as_echo "$archive_cmds_need_lc" >&6; }
14261 esac
14264 esac
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14423 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14425 if test "$GCC" = yes; then
14426 case $host_os in
14427 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14428 *) lt_awk_arg="/^libraries:/" ;;
14429 esac
14430 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14431 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14432 # if the path contains ";" then we assume it to be the separator
14433 # otherwise default to the standard path separator (i.e. ":") - it is
14434 # assumed that no part of a normal pathname contains ";" but that should
14435 # okay in the real world where ";" in dirpaths is itself problematic.
14436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14437 else
14438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14440 # Ok, now we have the path, separated by spaces, we can step through it
14441 # and add multilib dir if necessary.
14442 lt_tmp_lt_search_path_spec=
14443 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14444 for lt_sys_path in $lt_search_path_spec; do
14445 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14446 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14447 else
14448 test -d "$lt_sys_path" && \
14449 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14451 done
14452 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14453 BEGIN {RS=" "; FS="/|\n";} {
14454 lt_foo="";
14455 lt_count=0;
14456 for (lt_i = NF; lt_i > 0; lt_i--) {
14457 if ($lt_i != "" && $lt_i != ".") {
14458 if ($lt_i == "..") {
14459 lt_count++;
14460 } else {
14461 if (lt_count == 0) {
14462 lt_foo="/" $lt_i lt_foo;
14463 } else {
14464 lt_count--;
14469 if (lt_foo != "") { lt_freq[lt_foo]++; }
14470 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14472 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14473 else
14474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14476 library_names_spec=
14477 libname_spec='lib$name'
14478 soname_spec=
14479 shrext_cmds=".so"
14480 postinstall_cmds=
14481 postuninstall_cmds=
14482 finish_cmds=
14483 finish_eval=
14484 shlibpath_var=
14485 shlibpath_overrides_runpath=unknown
14486 version_type=none
14487 dynamic_linker="$host_os ld.so"
14488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14489 need_lib_prefix=unknown
14490 hardcode_into_libs=no
14492 # when you set need_version to no, make sure it does not cause -set_version
14493 # flags to be left without arguments
14494 need_version=unknown
14496 case $host_os in
14497 aix3*)
14498 version_type=linux
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14500 shlibpath_var=LIBPATH
14502 # AIX 3 has no versioning support, so we append a major version to the name.
14503 soname_spec='${libname}${release}${shared_ext}$major'
14506 aix[4-9]*)
14507 version_type=linux
14508 need_lib_prefix=no
14509 need_version=no
14510 hardcode_into_libs=yes
14511 if test "$host_cpu" = ia64; then
14512 # AIX 5 supports IA64
14513 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 else
14516 # With GCC up to 2.95.x, collect2 would create an import file
14517 # for dependence libraries. The import file would start with
14518 # the line `#! .'. This would cause the generated library to
14519 # depend on `.', always an invalid library. This was fixed in
14520 # development snapshots of GCC prior to 3.0.
14521 case $host_os in
14522 aix4 | aix4.[01] | aix4.[01].*)
14523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14524 echo ' yes '
14525 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14527 else
14528 can_build_shared=no
14531 esac
14532 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14533 # soname into executable. Probably we can add versioning support to
14534 # collect2, so additional links can be useful in future.
14535 if test "$aix_use_runtimelinking" = yes; then
14536 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14537 # instead of lib<name>.a to let people know that these are not
14538 # typical AIX shared libraries.
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 else
14541 # We preserve .a as extension for shared libraries through AIX4.2
14542 # and later when we are not doing run time linking.
14543 library_names_spec='${libname}${release}.a $libname.a'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14546 shlibpath_var=LIBPATH
14550 amigaos*)
14551 case $host_cpu in
14552 powerpc)
14553 # Since July 2007 AmigaOS4 officially supports .so libraries.
14554 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 m68k)
14558 library_names_spec='$libname.ixlibrary $libname.a'
14559 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14560 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14562 esac
14565 beos*)
14566 library_names_spec='${libname}${shared_ext}'
14567 dynamic_linker="$host_os ld.so"
14568 shlibpath_var=LIBRARY_PATH
14571 bsdi[45]*)
14572 version_type=linux
14573 need_version=no
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14579 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14580 # the default ld.so.conf also contains /usr/contrib/lib and
14581 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14582 # libtool to hard-code these into programs
14585 cygwin* | mingw* | pw32* | cegcc*)
14586 version_type=windows
14587 shrext_cmds=".dll"
14588 need_version=no
14589 need_lib_prefix=no
14591 case $GCC,$host_os in
14592 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14593 library_names_spec='$libname.dll.a'
14594 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14595 postinstall_cmds='base_file=`basename \${file}`~
14596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14597 dldir=$destdir/`dirname \$dlpath`~
14598 test -d \$dldir || mkdir -p \$dldir~
14599 $install_prog $dir/$dlname \$dldir/$dlname~
14600 chmod a+x \$dldir/$dlname~
14601 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14602 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14605 dlpath=$dir/\$dldll~
14606 $RM \$dlpath'
14607 shlibpath_overrides_runpath=yes
14609 case $host_os in
14610 cygwin*)
14611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14612 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14613 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14615 mingw* | cegcc*)
14616 # MinGW DLLs use traditional 'lib' prefix
14617 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14618 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14619 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14620 # It is most probably a Windows format PATH printed by
14621 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14622 # path with ; separators, and with drive letters. We can handle the
14623 # drive letters (cygwin fileutils understands them), so leave them,
14624 # especially as we might pass files found there to a mingw objdump,
14625 # which wouldn't understand a cygwinified path. Ahh.
14626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14627 else
14628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14631 pw32*)
14632 # pw32 DLLs use 'pw' prefix rather than 'lib'
14633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14635 esac
14639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14641 esac
14642 dynamic_linker='Win32 ld.exe'
14643 # FIXME: first we should search . and the directory the executable is in
14644 shlibpath_var=PATH
14647 darwin* | rhapsody*)
14648 dynamic_linker="$host_os dyld"
14649 version_type=darwin
14650 need_lib_prefix=no
14651 need_version=no
14652 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14653 soname_spec='${libname}${release}${major}$shared_ext'
14654 shlibpath_overrides_runpath=yes
14655 shlibpath_var=DYLD_LIBRARY_PATH
14656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14662 dgux*)
14663 version_type=linux
14664 need_lib_prefix=no
14665 need_version=no
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LD_LIBRARY_PATH
14671 freebsd1*)
14672 dynamic_linker=no
14675 freebsd* | dragonfly*)
14676 # DragonFly does not have aout. When/if they implement a new
14677 # versioning mechanism, adjust this.
14678 if test -x /usr/bin/objformat; then
14679 objformat=`/usr/bin/objformat`
14680 else
14681 case $host_os in
14682 freebsd[123]*) objformat=aout ;;
14683 *) objformat=elf ;;
14684 esac
14686 version_type=freebsd-$objformat
14687 case $version_type in
14688 freebsd-elf*)
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14690 need_version=no
14691 need_lib_prefix=no
14693 freebsd-*)
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14695 need_version=yes
14697 esac
14698 shlibpath_var=LD_LIBRARY_PATH
14699 case $host_os in
14700 freebsd2*)
14701 shlibpath_overrides_runpath=yes
14703 freebsd3.[01]* | freebsdelf3.[01]*)
14704 shlibpath_overrides_runpath=yes
14705 hardcode_into_libs=yes
14707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14709 shlibpath_overrides_runpath=no
14710 hardcode_into_libs=yes
14712 *) # from 4.6 on, and DragonFly
14713 shlibpath_overrides_runpath=yes
14714 hardcode_into_libs=yes
14716 esac
14719 gnu*)
14720 version_type=linux
14721 need_lib_prefix=no
14722 need_version=no
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 shlibpath_var=LD_LIBRARY_PATH
14726 hardcode_into_libs=yes
14729 hpux9* | hpux10* | hpux11*)
14730 # Give a soname corresponding to the major version so that dld.sl refuses to
14731 # link against other versions.
14732 version_type=sunos
14733 need_lib_prefix=no
14734 need_version=no
14735 case $host_cpu in
14736 ia64*)
14737 shrext_cmds='.so'
14738 hardcode_into_libs=yes
14739 dynamic_linker="$host_os dld.so"
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 if test "X$HPUX_IA64_MODE" = X32; then
14745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14746 else
14747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14751 hppa*64*)
14752 shrext_cmds='.sl'
14753 hardcode_into_libs=yes
14754 dynamic_linker="$host_os dld.sl"
14755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14763 shrext_cmds='.sl'
14764 dynamic_linker="$host_os dld.sl"
14765 shlibpath_var=SHLIB_PATH
14766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14770 esac
14771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14772 postinstall_cmds='chmod 555 $lib'
14775 interix[3-9]*)
14776 version_type=linux
14777 need_lib_prefix=no
14778 need_version=no
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=no
14784 hardcode_into_libs=yes
14787 irix5* | irix6* | nonstopux*)
14788 case $host_os in
14789 nonstopux*) version_type=nonstopux ;;
14791 if test "$lt_cv_prog_gnu_ld" = yes; then
14792 version_type=linux
14793 else
14794 version_type=irix
14795 fi ;;
14796 esac
14797 need_lib_prefix=no
14798 need_version=no
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14801 case $host_os in
14802 irix5* | nonstopux*)
14803 libsuff= shlibsuff=
14806 case $LD in # libtool.m4 will add one of these switches to LD
14807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14808 libsuff= shlibsuff= libmagic=32-bit;;
14809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14810 libsuff=32 shlibsuff=N32 libmagic=N32;;
14811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14813 *) libsuff= shlibsuff= libmagic=never-match;;
14814 esac
14816 esac
14817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14818 shlibpath_overrides_runpath=no
14819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14821 hardcode_into_libs=yes
14824 # No shared lib support for Linux oldld, aout, or coff.
14825 linux*oldld* | linux*aout* | linux*coff*)
14826 dynamic_linker=no
14829 # This must be Linux ELF.
14830 linux* | k*bsd*-gnu)
14831 version_type=linux
14832 need_lib_prefix=no
14833 need_version=no
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=no
14839 # Some binutils ld are patched to set DT_RUNPATH
14840 save_LDFLAGS=$LDFLAGS
14841 save_libdir=$libdir
14842 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14843 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14848 main ()
14852 return 0;
14854 _ACEOF
14855 if ac_fn_c_try_link "$LINENO"; then :
14856 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14857 shlibpath_overrides_runpath=yes
14860 rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LDFLAGS=$save_LDFLAGS
14863 libdir=$save_libdir
14865 # This implies no fast_install, which is unacceptable.
14866 # Some rework will be needed to allow for fast_install
14867 # before this can be enabled.
14868 hardcode_into_libs=yes
14870 # Add ABI-specific directories to the system library path.
14871 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14873 # Append ld.so.conf contents to the search path
14874 if test -f /etc/ld.so.conf; then
14875 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;/^$/d' | tr '\n' ' '`
14876 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14879 # We used to test for /lib/ld.so.1 and disable shared libraries on
14880 # powerpc, because MkLinux only supported shared libraries with the
14881 # GNU dynamic linker. Since this was broken with cross compilers,
14882 # most powerpc-linux boxes support dynamic linking these days and
14883 # people can always --disable-shared, the test was removed, and we
14884 # assume the GNU/Linux dynamic linker is in use.
14885 dynamic_linker='GNU/Linux ld.so'
14888 netbsd*)
14889 version_type=sunos
14890 need_lib_prefix=no
14891 need_version=no
14892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14895 dynamic_linker='NetBSD (a.out) ld.so'
14896 else
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 dynamic_linker='NetBSD ld.elf_so'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes
14903 hardcode_into_libs=yes
14906 newsos6)
14907 version_type=linux
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=yes
14913 *nto* | *qnx*)
14914 version_type=qnx
14915 need_lib_prefix=no
14916 need_version=no
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 shlibpath_overrides_runpath=no
14921 hardcode_into_libs=yes
14922 dynamic_linker='ldqnx.so'
14925 openbsd*)
14926 version_type=sunos
14927 sys_lib_dlsearch_path_spec="/usr/lib"
14928 need_lib_prefix=no
14929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14930 case $host_os in
14931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14932 *) need_version=no ;;
14933 esac
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14938 case $host_os in
14939 openbsd2.[89] | openbsd2.[89].*)
14940 shlibpath_overrides_runpath=no
14943 shlibpath_overrides_runpath=yes
14945 esac
14946 else
14947 shlibpath_overrides_runpath=yes
14951 os2*)
14952 libname_spec='$name'
14953 shrext_cmds=".dll"
14954 need_lib_prefix=no
14955 library_names_spec='$libname${shared_ext} $libname.a'
14956 dynamic_linker='OS/2 ld.exe'
14957 shlibpath_var=LIBPATH
14960 osf3* | osf4* | osf5*)
14961 version_type=osf
14962 need_lib_prefix=no
14963 need_version=no
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14971 rdos*)
14972 dynamic_linker=no
14975 solaris*)
14976 version_type=linux
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath=yes
14983 hardcode_into_libs=yes
14984 # ldd complains unless libraries are executable
14985 postinstall_cmds='chmod +x $lib'
14988 sunos4*)
14989 version_type=sunos
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 shlibpath_overrides_runpath=yes
14994 if test "$with_gnu_ld" = yes; then
14995 need_lib_prefix=no
14997 need_version=yes
15000 sysv4 | sysv4.3*)
15001 version_type=linux
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 case $host_vendor in
15006 sni)
15007 shlibpath_overrides_runpath=no
15008 need_lib_prefix=no
15009 runpath_var=LD_RUN_PATH
15011 siemens)
15012 need_lib_prefix=no
15014 motorola)
15015 need_lib_prefix=no
15016 need_version=no
15017 shlibpath_overrides_runpath=no
15018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15020 esac
15023 sysv4*MP*)
15024 if test -d /usr/nec ;then
15025 version_type=linux
15026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15027 soname_spec='$libname${shared_ext}.$major'
15028 shlibpath_var=LD_LIBRARY_PATH
15032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15033 version_type=freebsd-elf
15034 need_lib_prefix=no
15035 need_version=no
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15040 hardcode_into_libs=yes
15041 if test "$with_gnu_ld" = yes; then
15042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15043 else
15044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15045 case $host_os in
15046 sco3.2v5*)
15047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15049 esac
15051 sys_lib_dlsearch_path_spec='/usr/lib'
15054 tpf*)
15055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15056 version_type=linux
15057 need_lib_prefix=no
15058 need_version=no
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=no
15062 hardcode_into_libs=yes
15065 uts4*)
15066 version_type=linux
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15073 dynamic_linker=no
15075 esac
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15077 $as_echo "$dynamic_linker" >&6; }
15078 test "$dynamic_linker" = no && can_build_shared=no
15080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15081 if test "$GCC" = yes; then
15082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15086 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15088 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15089 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15180 hardcode_action=
15181 if test -n "$hardcode_libdir_flag_spec" ||
15182 test -n "$runpath_var" ||
15183 test "X$hardcode_automatic" = "Xyes" ; then
15185 # We can hardcode non-existent directories.
15186 if test "$hardcode_direct" != no &&
15187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15188 # have to relink, otherwise we might link with an installed library
15189 # when we should be linking with a yet-to-be-installed one
15190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15191 test "$hardcode_minus_L" != no; then
15192 # Linking always hardcodes the temporary library directory.
15193 hardcode_action=relink
15194 else
15195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15196 hardcode_action=immediate
15198 else
15199 # We cannot hardcode anything, or else we can only hardcode existing
15200 # directories.
15201 hardcode_action=unsupported
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15204 $as_echo "$hardcode_action" >&6; }
15206 if test "$hardcode_action" = relink ||
15207 test "$inherit_rpath" = yes; then
15208 # Fast installation is not supported
15209 enable_fast_install=no
15210 elif test "$shlibpath_overrides_runpath" = yes ||
15211 test "$enable_shared" = no; then
15212 # Fast installation is not necessary
15213 enable_fast_install=needless
15221 if test "x$enable_dlopen" != xyes; then
15222 enable_dlopen=unknown
15223 enable_dlopen_self=unknown
15224 enable_dlopen_self_static=unknown
15225 else
15226 lt_cv_dlopen=no
15227 lt_cv_dlopen_libs=
15229 case $host_os in
15230 beos*)
15231 lt_cv_dlopen="load_add_on"
15232 lt_cv_dlopen_libs=
15233 lt_cv_dlopen_self=yes
15236 mingw* | pw32* | cegcc*)
15237 lt_cv_dlopen="LoadLibrary"
15238 lt_cv_dlopen_libs=
15241 cygwin*)
15242 lt_cv_dlopen="dlopen"
15243 lt_cv_dlopen_libs=
15246 darwin*)
15247 # if libdl is installed we need to link against it
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15251 $as_echo_n "(cached) " >&6
15252 else
15253 ac_check_lib_save_LIBS=$LIBS
15254 LIBS="-ldl $LIBS"
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 char dlopen ();
15266 main ()
15268 return dlopen ();
15270 return 0;
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"; then :
15274 ac_cv_lib_dl_dlopen=yes
15275 else
15276 ac_cv_lib_dl_dlopen=no
15278 rm -f core conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15284 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15286 else
15288 lt_cv_dlopen="dyld"
15289 lt_cv_dlopen_libs=
15290 lt_cv_dlopen_self=yes
15297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15298 if test "x$ac_cv_func_shl_load" = x""yes; then :
15299 lt_cv_dlopen="shl_load"
15300 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 ac_check_lib_save_LIBS=$LIBS
15307 LIBS="-ldld $LIBS"
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15311 /* Override any GCC internal prototype to avoid an error.
15312 Use char because int might match the return type of a GCC
15313 builtin and then its argument prototype would still apply. */
15314 #ifdef __cplusplus
15315 extern "C"
15316 #endif
15317 char shl_load ();
15319 main ()
15321 return shl_load ();
15323 return 0;
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"; then :
15327 ac_cv_lib_dld_shl_load=yes
15328 else
15329 ac_cv_lib_dld_shl_load=no
15331 rm -f core conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 LIBS=$ac_check_lib_save_LIBS
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15337 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15339 else
15340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15341 if test "x$ac_cv_func_dlopen" = x""yes; then :
15342 lt_cv_dlopen="dlopen"
15343 else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 ac_check_lib_save_LIBS=$LIBS
15350 LIBS="-ldl $LIBS"
15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15354 /* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15357 #ifdef __cplusplus
15358 extern "C"
15359 #endif
15360 char dlopen ();
15362 main ()
15364 return dlopen ();
15366 return 0;
15368 _ACEOF
15369 if ac_fn_c_try_link "$LINENO"; then :
15370 ac_cv_lib_dl_dlopen=yes
15371 else
15372 ac_cv_lib_dl_dlopen=no
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LIBS=$ac_check_lib_save_LIBS
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15380 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15382 else
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15385 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388 ac_check_lib_save_LIBS=$LIBS
15389 LIBS="-lsvld $LIBS"
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15393 /* Override any GCC internal prototype to avoid an error.
15394 Use char because int might match the return type of a GCC
15395 builtin and then its argument prototype would still apply. */
15396 #ifdef __cplusplus
15397 extern "C"
15398 #endif
15399 char dlopen ();
15401 main ()
15403 return dlopen ();
15405 return 0;
15407 _ACEOF
15408 if ac_fn_c_try_link "$LINENO"; then :
15409 ac_cv_lib_svld_dlopen=yes
15410 else
15411 ac_cv_lib_svld_dlopen=no
15413 rm -f core conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15419 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15421 else
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15424 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 ac_check_lib_save_LIBS=$LIBS
15428 LIBS="-ldld $LIBS"
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15432 /* Override any GCC internal prototype to avoid an error.
15433 Use char because int might match the return type of a GCC
15434 builtin and then its argument prototype would still apply. */
15435 #ifdef __cplusplus
15436 extern "C"
15437 #endif
15438 char dld_link ();
15440 main ()
15442 return dld_link ();
15444 return 0;
15446 _ACEOF
15447 if ac_fn_c_try_link "$LINENO"; then :
15448 ac_cv_lib_dld_dld_link=yes
15449 else
15450 ac_cv_lib_dld_dld_link=no
15452 rm -f core conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454 LIBS=$ac_check_lib_save_LIBS
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15458 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15478 esac
15480 if test "x$lt_cv_dlopen" != xno; then
15481 enable_dlopen=yes
15482 else
15483 enable_dlopen=no
15486 case $lt_cv_dlopen in
15487 dlopen)
15488 save_CPPFLAGS="$CPPFLAGS"
15489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15491 save_LDFLAGS="$LDFLAGS"
15492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15494 save_LIBS="$LIBS"
15495 LIBS="$lt_cv_dlopen_libs $LIBS"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15499 if test "${lt_cv_dlopen_self+set}" = set; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15502 if test "$cross_compiling" = yes; then :
15503 lt_cv_dlopen_self=cross
15504 else
15505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15506 lt_status=$lt_dlunknown
15507 cat > conftest.$ac_ext <<_LT_EOF
15508 #line 15508 "configure"
15509 #include "confdefs.h"
15511 #if HAVE_DLFCN_H
15512 #include <dlfcn.h>
15513 #endif
15515 #include <stdio.h>
15517 #ifdef RTLD_GLOBAL
15518 # define LT_DLGLOBAL RTLD_GLOBAL
15519 #else
15520 # ifdef DL_GLOBAL
15521 # define LT_DLGLOBAL DL_GLOBAL
15522 # else
15523 # define LT_DLGLOBAL 0
15524 # endif
15525 #endif
15527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15528 find out it does not work in some platform. */
15529 #ifndef LT_DLLAZY_OR_NOW
15530 # ifdef RTLD_LAZY
15531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15532 # else
15533 # ifdef DL_LAZY
15534 # define LT_DLLAZY_OR_NOW DL_LAZY
15535 # else
15536 # ifdef RTLD_NOW
15537 # define LT_DLLAZY_OR_NOW RTLD_NOW
15538 # else
15539 # ifdef DL_NOW
15540 # define LT_DLLAZY_OR_NOW DL_NOW
15541 # else
15542 # define LT_DLLAZY_OR_NOW 0
15543 # endif
15544 # endif
15545 # endif
15546 # endif
15547 #endif
15549 void fnord() { int i=42;}
15550 int main ()
15552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15553 int status = $lt_dlunknown;
15555 if (self)
15557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15559 /* dlclose (self); */
15561 else
15562 puts (dlerror ());
15564 return status;
15566 _LT_EOF
15567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15568 (eval $ac_link) 2>&5
15569 ac_status=$?
15570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15572 (./conftest; exit; ) >&5 2>/dev/null
15573 lt_status=$?
15574 case x$lt_status in
15575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15578 esac
15579 else :
15580 # compilation failed
15581 lt_cv_dlopen_self=no
15584 rm -fr conftest*
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15589 $as_echo "$lt_cv_dlopen_self" >&6; }
15591 if test "x$lt_cv_dlopen_self" = xyes; then
15592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15595 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 if test "$cross_compiling" = yes; then :
15599 lt_cv_dlopen_self_static=cross
15600 else
15601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15602 lt_status=$lt_dlunknown
15603 cat > conftest.$ac_ext <<_LT_EOF
15604 #line 15604 "configure"
15605 #include "confdefs.h"
15607 #if HAVE_DLFCN_H
15608 #include <dlfcn.h>
15609 #endif
15611 #include <stdio.h>
15613 #ifdef RTLD_GLOBAL
15614 # define LT_DLGLOBAL RTLD_GLOBAL
15615 #else
15616 # ifdef DL_GLOBAL
15617 # define LT_DLGLOBAL DL_GLOBAL
15618 # else
15619 # define LT_DLGLOBAL 0
15620 # endif
15621 #endif
15623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15624 find out it does not work in some platform. */
15625 #ifndef LT_DLLAZY_OR_NOW
15626 # ifdef RTLD_LAZY
15627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15628 # else
15629 # ifdef DL_LAZY
15630 # define LT_DLLAZY_OR_NOW DL_LAZY
15631 # else
15632 # ifdef RTLD_NOW
15633 # define LT_DLLAZY_OR_NOW RTLD_NOW
15634 # else
15635 # ifdef DL_NOW
15636 # define LT_DLLAZY_OR_NOW DL_NOW
15637 # else
15638 # define LT_DLLAZY_OR_NOW 0
15639 # endif
15640 # endif
15641 # endif
15642 # endif
15643 #endif
15645 void fnord() { int i=42;}
15646 int main ()
15648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15649 int status = $lt_dlunknown;
15651 if (self)
15653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15654 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15655 /* dlclose (self); */
15657 else
15658 puts (dlerror ());
15660 return status;
15662 _LT_EOF
15663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15664 (eval $ac_link) 2>&5
15665 ac_status=$?
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15668 (./conftest; exit; ) >&5 2>/dev/null
15669 lt_status=$?
15670 case x$lt_status in
15671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15673 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15674 esac
15675 else :
15676 # compilation failed
15677 lt_cv_dlopen_self_static=no
15680 rm -fr conftest*
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15685 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15688 CPPFLAGS="$save_CPPFLAGS"
15689 LDFLAGS="$save_LDFLAGS"
15690 LIBS="$save_LIBS"
15692 esac
15694 case $lt_cv_dlopen_self in
15695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15696 *) enable_dlopen_self=unknown ;;
15697 esac
15699 case $lt_cv_dlopen_self_static in
15700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15701 *) enable_dlopen_self_static=unknown ;;
15702 esac
15721 striplib=
15722 old_striplib=
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15724 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15725 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15726 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15727 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15729 $as_echo "yes" >&6; }
15730 else
15731 # FIXME - insert some real tests, host_os isn't really good enough
15732 case $host_os in
15733 darwin*)
15734 if test -n "$STRIP" ; then
15735 striplib="$STRIP -x"
15736 old_striplib="$STRIP -S"
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15738 $as_echo "yes" >&6; }
15739 else
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15748 esac
15762 # Report which library types will actually be built
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15764 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15766 $as_echo "$can_build_shared" >&6; }
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15769 $as_echo_n "checking whether to build shared libraries... " >&6; }
15770 test "$can_build_shared" = "no" && enable_shared=no
15772 # On AIX, shared libraries and static libraries use the same namespace, and
15773 # are all built from PIC.
15774 case $host_os in
15775 aix3*)
15776 test "$enable_shared" = yes && enable_static=no
15777 if test -n "$RANLIB"; then
15778 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15779 postinstall_cmds='$RANLIB $lib'
15783 aix[4-9]*)
15784 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15785 test "$enable_shared" = yes && enable_static=no
15788 esac
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15790 $as_echo "$enable_shared" >&6; }
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15793 $as_echo_n "checking whether to build static libraries... " >&6; }
15794 # Make sure either enable_shared or enable_static is yes.
15795 test "$enable_shared" = yes || enable_static=yes
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15797 $as_echo "$enable_static" >&6; }
15803 ac_ext=c
15804 ac_cpp='$CPP $CPPFLAGS'
15805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15809 CC="$lt_save_CC"
15812 ac_ext=cpp
15813 ac_cpp='$CXXCPP $CPPFLAGS'
15814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15818 archive_cmds_need_lc_CXX=no
15819 allow_undefined_flag_CXX=
15820 always_export_symbols_CXX=no
15821 archive_expsym_cmds_CXX=
15822 compiler_needs_object_CXX=no
15823 export_dynamic_flag_spec_CXX=
15824 hardcode_direct_CXX=no
15825 hardcode_direct_absolute_CXX=no
15826 hardcode_libdir_flag_spec_CXX=
15827 hardcode_libdir_flag_spec_ld_CXX=
15828 hardcode_libdir_separator_CXX=
15829 hardcode_minus_L_CXX=no
15830 hardcode_shlibpath_var_CXX=unsupported
15831 hardcode_automatic_CXX=no
15832 inherit_rpath_CXX=no
15833 module_cmds_CXX=
15834 module_expsym_cmds_CXX=
15835 link_all_deplibs_CXX=unknown
15836 old_archive_cmds_CXX=$old_archive_cmds
15837 no_undefined_flag_CXX=
15838 whole_archive_flag_spec_CXX=
15839 enable_shared_with_static_runtimes_CXX=no
15841 # Source file extension for C++ test sources.
15842 ac_ext=cpp
15844 # Object file extension for compiled C++ test sources.
15845 objext=o
15846 objext_CXX=$objext
15848 # No sense in running all these tests if we already determined that
15849 # the CXX compiler isn't working. Some variables (like enable_shared)
15850 # are currently assumed to apply to all compilers on this platform,
15851 # and will be corrupted by setting them based on a non-working compiler.
15852 if test "$_lt_caught_CXX_error" != yes; then
15853 # Code to be used in simple compile tests
15854 lt_simple_compile_test_code="int some_variable = 0;"
15856 # Code to be used in simple link tests
15857 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15866 # If no C compiler was specified, use CC.
15867 LTCC=${LTCC-"$CC"}
15869 # If no C compiler flags were specified, use CFLAGS.
15870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15872 # Allow CC to be a program name with arguments.
15873 compiler=$CC
15876 # save warnings/boilerplate of simple test code
15877 ac_outfile=conftest.$ac_objext
15878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15880 _lt_compiler_boilerplate=`cat conftest.err`
15881 $RM conftest*
15883 ac_outfile=conftest.$ac_objext
15884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15886 _lt_linker_boilerplate=`cat conftest.err`
15887 $RM -r conftest*
15890 # Allow CC to be a program name with arguments.
15891 lt_save_CC=$CC
15892 lt_save_LD=$LD
15893 lt_save_GCC=$GCC
15894 GCC=$GXX
15895 lt_save_with_gnu_ld=$with_gnu_ld
15896 lt_save_path_LD=$lt_cv_path_LD
15897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15899 else
15900 $as_unset lt_cv_prog_gnu_ld
15902 if test -n "${lt_cv_path_LDCXX+set}"; then
15903 lt_cv_path_LD=$lt_cv_path_LDCXX
15904 else
15905 $as_unset lt_cv_path_LD
15907 test -z "${LDCXX+set}" || LD=$LDCXX
15908 CC=${CXX-"c++"}
15909 compiler=$CC
15910 compiler_CXX=$CC
15911 for cc_temp in $compiler""; do
15912 case $cc_temp in
15913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15915 \-*) ;;
15916 *) break;;
15917 esac
15918 done
15919 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15922 if test -n "$compiler"; then
15923 # We don't want -fno-exception when compiling C++ code, so set the
15924 # no_builtin_flag separately
15925 if test "$GXX" = yes; then
15926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15927 else
15928 lt_prog_compiler_no_builtin_flag_CXX=
15931 if test "$GXX" = yes; then
15932 # Set up default GNU C++ configuration
15936 # Check whether --with-gnu-ld was given.
15937 if test "${with_gnu_ld+set}" = set; then :
15938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15939 else
15940 with_gnu_ld=no
15943 ac_prog=ld
15944 if test "$GCC" = yes; then
15945 # Check if gcc -print-prog-name=ld gives a path.
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15947 $as_echo_n "checking for ld used by $CC... " >&6; }
15948 case $host in
15949 *-*-mingw*)
15950 # gcc leaves a trailing carriage return which upsets mingw
15951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15954 esac
15955 case $ac_prog in
15956 # Accept absolute paths.
15957 [\\/]* | ?:[\\/]*)
15958 re_direlt='/[^/][^/]*/\.\./'
15959 # Canonicalize the pathname of ld
15960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15963 done
15964 test -z "$LD" && LD="$ac_prog"
15967 # If it fails, then pretend we aren't using GCC.
15968 ac_prog=ld
15971 # If it is relative, then search for the first ld in PATH.
15972 with_gnu_ld=unknown
15974 esac
15975 elif test "$with_gnu_ld" = yes; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15977 $as_echo_n "checking for GNU ld... " >&6; }
15978 else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15980 $as_echo_n "checking for non-GNU ld... " >&6; }
15982 if test "${lt_cv_path_LD+set}" = set; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 if test -z "$LD"; then
15986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15987 for ac_dir in $PATH; do
15988 IFS="$lt_save_ifs"
15989 test -z "$ac_dir" && ac_dir=.
15990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15991 lt_cv_path_LD="$ac_dir/$ac_prog"
15992 # Check to see if the program is GNU ld. I'd rather use --version,
15993 # but apparently some variants of GNU ld only accept -v.
15994 # Break only if it was the GNU/non-GNU ld that we prefer.
15995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15996 *GNU* | *'with BFD'*)
15997 test "$with_gnu_ld" != no && break
16000 test "$with_gnu_ld" != yes && break
16002 esac
16004 done
16005 IFS="$lt_save_ifs"
16006 else
16007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16011 LD="$lt_cv_path_LD"
16012 if test -n "$LD"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16014 $as_echo "$LD" >&6; }
16015 else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 $as_echo "no" >&6; }
16019 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16022 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16026 case `$LD -v 2>&1 </dev/null` in
16027 *GNU* | *'with BFD'*)
16028 lt_cv_prog_gnu_ld=yes
16031 lt_cv_prog_gnu_ld=no
16033 esac
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16037 with_gnu_ld=$lt_cv_prog_gnu_ld
16045 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16046 # archiving commands below assume that GNU ld is being used.
16047 if test "$with_gnu_ld" = yes; then
16048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16049 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16054 # If archive_cmds runs LD, not CC, wlarc should be empty
16055 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16056 # investigate it a little bit more. (MM)
16057 wlarc='${wl}'
16059 # ancient GNU ld didn't support --whole-archive et. al.
16060 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16061 $GREP 'no-whole-archive' > /dev/null; then
16062 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16063 else
16064 whole_archive_flag_spec_CXX=
16066 else
16067 with_gnu_ld=no
16068 wlarc=
16070 # A generic and very simple default shared library creation
16071 # command for GNU C++ for the case where it uses the native
16072 # linker, instead of GNU ld. If possible, this setting should
16073 # overridden to take advantage of the native linker features on
16074 # the platform it is being used on.
16075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16078 # Commands to make compiler produce verbose output that lists
16079 # what "hidden" libraries, object files and flags are used when
16080 # linking a shared library.
16081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16083 else
16084 GXX=no
16085 with_gnu_ld=no
16086 wlarc=
16089 # PORTME: fill in a description of your system's C++ link characteristics
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16092 ld_shlibs_CXX=yes
16093 case $host_os in
16094 aix3*)
16095 # FIXME: insert proper C++ library support
16096 ld_shlibs_CXX=no
16098 aix[4-9]*)
16099 if test "$host_cpu" = ia64; then
16100 # On IA64, the linker does run time linking by default, so we don't
16101 # have to do anything special.
16102 aix_use_runtimelinking=no
16103 exp_sym_flag='-Bexport'
16104 no_entry_flag=""
16105 else
16106 aix_use_runtimelinking=no
16108 # Test if we are trying to use run time linking or normal
16109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16110 # need to do runtime linking.
16111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16112 for ld_flag in $LDFLAGS; do
16113 case $ld_flag in
16114 *-brtl*)
16115 aix_use_runtimelinking=yes
16116 break
16118 esac
16119 done
16121 esac
16123 exp_sym_flag='-bexport'
16124 no_entry_flag='-bnoentry'
16127 # When large executables or shared objects are built, AIX ld can
16128 # have problems creating the table of contents. If linking a library
16129 # or program results in "error TOC overflow" add -mminimal-toc to
16130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16133 archive_cmds_CXX=''
16134 hardcode_direct_CXX=yes
16135 hardcode_direct_absolute_CXX=yes
16136 hardcode_libdir_separator_CXX=':'
16137 link_all_deplibs_CXX=yes
16138 file_list_spec_CXX='${wl}-f,'
16140 if test "$GXX" = yes; then
16141 case $host_os in aix4.[012]|aix4.[012].*)
16142 # We only want to do this on AIX 4.2 and lower, the check
16143 # below for broken collect2 doesn't work under 4.3+
16144 collect2name=`${CC} -print-prog-name=collect2`
16145 if test -f "$collect2name" &&
16146 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16147 then
16148 # We have reworked collect2
16150 else
16151 # We have old collect2
16152 hardcode_direct_CXX=unsupported
16153 # It fails to find uninstalled libraries when the uninstalled
16154 # path is not listed in the libpath. Setting hardcode_minus_L
16155 # to unsupported forces relinking
16156 hardcode_minus_L_CXX=yes
16157 hardcode_libdir_flag_spec_CXX='-L$libdir'
16158 hardcode_libdir_separator_CXX=
16160 esac
16161 shared_flag='-shared'
16162 if test "$aix_use_runtimelinking" = yes; then
16163 shared_flag="$shared_flag "'${wl}-G'
16165 else
16166 # not using gcc
16167 if test "$host_cpu" = ia64; then
16168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16169 # chokes on -Wl,-G. The following line is correct:
16170 shared_flag='-G'
16171 else
16172 if test "$aix_use_runtimelinking" = yes; then
16173 shared_flag='${wl}-G'
16174 else
16175 shared_flag='${wl}-bM:SRE'
16180 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16181 # It seems that -bexpall does not export symbols beginning with
16182 # underscore (_), so it is better to generate a list of symbols to
16183 # export.
16184 always_export_symbols_CXX=yes
16185 if test "$aix_use_runtimelinking" = yes; then
16186 # Warning - without using the other runtime loading flags (-brtl),
16187 # -berok will link without error, but may produce a broken library.
16188 allow_undefined_flag_CXX='-berok'
16189 # Determine the default libpath from the value encoded in an empty
16190 # executable.
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16195 main ()
16199 return 0;
16201 _ACEOF
16202 if ac_fn_cxx_try_link "$LINENO"; then :
16204 lt_aix_libpath_sed='
16205 /Import File Strings/,/^$/ {
16206 /^0/ {
16207 s/^0 *\(.*\)$/\1/
16211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16212 # Check for a 64-bit object if we didn't find anything.
16213 if test -z "$aix_libpath"; then
16214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16223 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16224 else
16225 if test "$host_cpu" = ia64; then
16226 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16227 allow_undefined_flag_CXX="-z nodefs"
16228 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"
16229 else
16230 # Determine the default libpath from the value encoded in an
16231 # empty executable.
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16236 main ()
16240 return 0;
16242 _ACEOF
16243 if ac_fn_cxx_try_link "$LINENO"; then :
16245 lt_aix_libpath_sed='
16246 /Import File Strings/,/^$/ {
16247 /^0/ {
16248 s/^0 *\(.*\)$/\1/
16252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16253 # Check for a 64-bit object if we didn't find anything.
16254 if test -z "$aix_libpath"; then
16255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16258 rm -f core conftest.err conftest.$ac_objext \
16259 conftest$ac_exeext conftest.$ac_ext
16260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16263 # Warning - without using the other run time loading flags,
16264 # -berok will link without error, but may produce a broken library.
16265 no_undefined_flag_CXX=' ${wl}-bernotok'
16266 allow_undefined_flag_CXX=' ${wl}-berok'
16267 # Exported symbols can be pulled into shared objects from archives
16268 whole_archive_flag_spec_CXX='$convenience'
16269 archive_cmds_need_lc_CXX=yes
16270 # This is similar to how AIX traditionally builds its shared
16271 # libraries.
16272 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16277 beos*)
16278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16279 allow_undefined_flag_CXX=unsupported
16280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16281 # support --undefined. This deserves some investigation. FIXME
16282 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16283 else
16284 ld_shlibs_CXX=no
16288 chorus*)
16289 case $cc_basename in
16291 # FIXME: insert proper C++ library support
16292 ld_shlibs_CXX=no
16294 esac
16297 cygwin* | mingw* | pw32* | cegcc*)
16298 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16299 # as there is no search path for DLLs.
16300 hardcode_libdir_flag_spec_CXX='-L$libdir'
16301 allow_undefined_flag_CXX=unsupported
16302 always_export_symbols_CXX=no
16303 enable_shared_with_static_runtimes_CXX=yes
16305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16306 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'
16307 # If the export-symbols file already is a .def file (1st line
16308 # is EXPORTS), use it as is; otherwise, prepend...
16309 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16310 cp $export_symbols $output_objdir/$soname.def;
16311 else
16312 echo EXPORTS > $output_objdir/$soname.def;
16313 cat $export_symbols >> $output_objdir/$soname.def;
16315 $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'
16316 else
16317 ld_shlibs_CXX=no
16320 darwin* | rhapsody*)
16323 archive_cmds_need_lc_CXX=no
16324 hardcode_direct_CXX=no
16325 hardcode_automatic_CXX=yes
16326 hardcode_shlibpath_var_CXX=unsupported
16327 whole_archive_flag_spec_CXX=''
16328 link_all_deplibs_CXX=yes
16329 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16330 case $cc_basename in
16331 ifort*) _lt_dar_can_shared=yes ;;
16332 *) _lt_dar_can_shared=$GCC ;;
16333 esac
16334 if test "$_lt_dar_can_shared" = "yes"; then
16335 output_verbose_link_cmd=echo
16336 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}"
16337 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16338 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}"
16339 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}"
16340 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16341 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}"
16342 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}"
16345 else
16346 ld_shlibs_CXX=no
16351 dgux*)
16352 case $cc_basename in
16353 ec++*)
16354 # FIXME: insert proper C++ library support
16355 ld_shlibs_CXX=no
16357 ghcx*)
16358 # Green Hills C++ Compiler
16359 # FIXME: insert proper C++ library support
16360 ld_shlibs_CXX=no
16363 # FIXME: insert proper C++ library support
16364 ld_shlibs_CXX=no
16366 esac
16369 freebsd[12]*)
16370 # C++ shared libraries reported to be fairly broken before
16371 # switch to ELF
16372 ld_shlibs_CXX=no
16375 freebsd-elf*)
16376 archive_cmds_need_lc_CXX=no
16379 freebsd* | dragonfly*)
16380 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16381 # conventions
16382 ld_shlibs_CXX=yes
16385 gnu*)
16388 hpux9*)
16389 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16390 hardcode_libdir_separator_CXX=:
16391 export_dynamic_flag_spec_CXX='${wl}-E'
16392 hardcode_direct_CXX=yes
16393 hardcode_minus_L_CXX=yes # Not in the search PATH,
16394 # but as the default
16395 # location of the library.
16397 case $cc_basename in
16398 CC*)
16399 # FIXME: insert proper C++ library support
16400 ld_shlibs_CXX=no
16402 aCC*)
16403 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16404 # Commands to make compiler produce verbose output that lists
16405 # what "hidden" libraries, object files and flags are used when
16406 # linking a shared library.
16408 # There doesn't appear to be a way to prevent this compiler from
16409 # explicitly linking system object files so we need to strip them
16410 # from the output so that they don't get included in the library
16411 # dependencies.
16412 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; $ECHO "X$list" | $Xsed'
16415 if test "$GXX" = yes; then
16416 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16417 else
16418 # FIXME: insert proper C++ library support
16419 ld_shlibs_CXX=no
16422 esac
16425 hpux10*|hpux11*)
16426 if test $with_gnu_ld = no; then
16427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16428 hardcode_libdir_separator_CXX=:
16430 case $host_cpu in
16431 hppa*64*|ia64*)
16434 export_dynamic_flag_spec_CXX='${wl}-E'
16436 esac
16438 case $host_cpu in
16439 hppa*64*|ia64*)
16440 hardcode_direct_CXX=no
16441 hardcode_shlibpath_var_CXX=no
16444 hardcode_direct_CXX=yes
16445 hardcode_direct_absolute_CXX=yes
16446 hardcode_minus_L_CXX=yes # Not in the search PATH,
16447 # but as the default
16448 # location of the library.
16450 esac
16452 case $cc_basename in
16453 CC*)
16454 # FIXME: insert proper C++ library support
16455 ld_shlibs_CXX=no
16457 aCC*)
16458 case $host_cpu in
16459 hppa*64*)
16460 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16462 ia64*)
16463 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16466 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16468 esac
16469 # Commands to make compiler produce verbose output that lists
16470 # what "hidden" libraries, object files and flags are used when
16471 # linking a shared library.
16473 # There doesn't appear to be a way to prevent this compiler from
16474 # explicitly linking system object files so we need to strip them
16475 # from the output so that they don't get included in the library
16476 # dependencies.
16477 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16480 if test "$GXX" = yes; then
16481 if test $with_gnu_ld = no; then
16482 case $host_cpu in
16483 hppa*64*)
16484 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16486 ia64*)
16487 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16490 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16492 esac
16494 else
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16499 esac
16502 interix[3-9]*)
16503 hardcode_direct_CXX=no
16504 hardcode_shlibpath_var_CXX=no
16505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16506 export_dynamic_flag_spec_CXX='${wl}-E'
16507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16508 # Instead, shared libraries are loaded at an image base (0x10000000 by
16509 # default) and relocated if they conflict, which is a slow very memory
16510 # consuming and fragmenting process. To avoid this, we pick a random,
16511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16513 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'
16514 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'
16516 irix5* | irix6*)
16517 case $cc_basename in
16518 CC*)
16519 # SGI C++
16520 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16522 # Archives containing C++ object files must be created using
16523 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16524 # necessary to make sure instantiated templates are included
16525 # in the archive.
16526 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16529 if test "$GXX" = yes; then
16530 if test "$with_gnu_ld" = no; then
16531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16532 else
16533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16536 link_all_deplibs_CXX=yes
16538 esac
16539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator_CXX=:
16541 inherit_rpath_CXX=yes
16544 linux* | k*bsd*-gnu)
16545 case $cc_basename in
16546 KCC*)
16547 # Kuck and Associates, Inc. (KAI) C++ Compiler
16549 # KCC will only create a shared library if the output file
16550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16551 # to its proper name (with version) after linking.
16552 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'
16553 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'
16554 # Commands to make compiler produce verbose output that lists
16555 # what "hidden" libraries, object files and flags are used when
16556 # linking a shared library.
16558 # There doesn't appear to be a way to prevent this compiler from
16559 # explicitly linking system object files so we need to strip them
16560 # from the output so that they don't get included in the library
16561 # dependencies.
16562 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16567 # Archives containing C++ object files must be created using
16568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16571 icpc* | ecpc* )
16572 # Intel C++
16573 with_gnu_ld=yes
16574 # version 8.0 and above of icpc choke on multiply defined symbols
16575 # if we add $predep_objects and $postdep_objects, however 7.1 and
16576 # earlier do not add the objects themselves.
16577 case `$CC -V 2>&1` in
16578 *"Version 7."*)
16579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16580 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'
16582 *) # Version 8.0 or newer
16583 tmp_idyn=
16584 case $host_cpu in
16585 ia64*) tmp_idyn=' -i_dynamic';;
16586 esac
16587 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16588 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'
16590 esac
16591 archive_cmds_need_lc_CXX=no
16592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16594 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16596 pgCC* | pgcpp*)
16597 # Portland Group C++ compiler
16598 case `$CC -V` in
16599 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16600 prelink_cmds_CXX='tpldir=Template.dir~
16601 rm -rf $tpldir~
16602 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16603 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16604 old_archive_cmds_CXX='tpldir=Template.dir~
16605 rm -rf $tpldir~
16606 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16607 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16608 $RANLIB $oldlib'
16609 archive_cmds_CXX='tpldir=Template.dir~
16610 rm -rf $tpldir~
16611 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16612 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16613 archive_expsym_cmds_CXX='tpldir=Template.dir~
16614 rm -rf $tpldir~
16615 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16616 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16618 *) # Version 6 will use weak symbols
16619 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16620 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'
16622 esac
16624 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16626 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16628 cxx*)
16629 # Compaq C++
16630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16631 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'
16633 runpath_var=LD_RUN_PATH
16634 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16635 hardcode_libdir_separator_CXX=:
16637 # Commands to make compiler produce verbose output that lists
16638 # what "hidden" libraries, object files and flags are used when
16639 # linking a shared library.
16641 # There doesn't appear to be a way to prevent this compiler from
16642 # explicitly linking system object files so we need to strip them
16643 # from the output so that they don't get included in the library
16644 # dependencies.
16645 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16647 xl*)
16648 # IBM XL 8.0 on PPC, with GNU ld
16649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16651 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16652 if test "x$supports_anon_versioning" = xyes; then
16653 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16655 echo "local: *; };" >> $output_objdir/$libname.ver~
16656 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16660 case `$CC -V 2>&1 | sed 5q` in
16661 *Sun\ C*)
16662 # Sun C++ 5.9
16663 no_undefined_flag_CXX=' -zdefs'
16664 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16665 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'
16666 hardcode_libdir_flag_spec_CXX='-R$libdir'
16667 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16668 compiler_needs_object_CXX=yes
16670 # Not sure whether something based on
16671 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16672 # would be better.
16673 output_verbose_link_cmd='echo'
16675 # Archives containing C++ object files must be created using
16676 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16677 # necessary to make sure instantiated templates are included
16678 # in the archive.
16679 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16681 esac
16683 esac
16686 lynxos*)
16687 # FIXME: insert proper C++ library support
16688 ld_shlibs_CXX=no
16691 m88k*)
16692 # FIXME: insert proper C++ library support
16693 ld_shlibs_CXX=no
16696 mvs*)
16697 case $cc_basename in
16698 cxx*)
16699 # FIXME: insert proper C++ library support
16700 ld_shlibs_CXX=no
16703 # FIXME: insert proper C++ library support
16704 ld_shlibs_CXX=no
16706 esac
16709 netbsd*)
16710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16711 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16712 wlarc=
16713 hardcode_libdir_flag_spec_CXX='-R$libdir'
16714 hardcode_direct_CXX=yes
16715 hardcode_shlibpath_var_CXX=no
16717 # Workaround some broken pre-1.5 toolchains
16718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16721 *nto* | *qnx*)
16722 ld_shlibs_CXX=yes
16725 openbsd2*)
16726 # C++ shared libraries are fairly broken
16727 ld_shlibs_CXX=no
16730 openbsd*)
16731 if test -f /usr/libexec/ld.so; then
16732 hardcode_direct_CXX=yes
16733 hardcode_shlibpath_var_CXX=no
16734 hardcode_direct_absolute_CXX=yes
16735 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16738 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16739 export_dynamic_flag_spec_CXX='${wl}-E'
16740 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16742 output_verbose_link_cmd=echo
16743 else
16744 ld_shlibs_CXX=no
16748 osf3* | osf4* | osf5*)
16749 case $cc_basename in
16750 KCC*)
16751 # Kuck and Associates, Inc. (KAI) C++ Compiler
16753 # KCC will only create a shared library if the output file
16754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16755 # to its proper name (with version) after linking.
16756 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'
16758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16759 hardcode_libdir_separator_CXX=:
16761 # Archives containing C++ object files must be created using
16762 # the KAI C++ compiler.
16763 case $host in
16764 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16765 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16766 esac
16768 RCC*)
16769 # Rational C++ 2.4.1
16770 # FIXME: insert proper C++ library support
16771 ld_shlibs_CXX=no
16773 cxx*)
16774 case $host in
16775 osf3*)
16776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16777 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16781 allow_undefined_flag_CXX=' -expect_unresolved \*'
16782 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16783 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16784 echo "-hidden">> $lib.exp~
16785 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16786 $RM $lib.exp'
16787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16789 esac
16791 hardcode_libdir_separator_CXX=:
16793 # Commands to make compiler produce verbose output that lists
16794 # what "hidden" libraries, object files and flags are used when
16795 # linking a shared library.
16797 # There doesn't appear to be a way to prevent this compiler from
16798 # explicitly linking system object files so we need to strip them
16799 # from the output so that they don't get included in the library
16800 # dependencies.
16801 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16805 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16806 case $host in
16807 osf3*)
16808 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16811 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16813 esac
16815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16816 hardcode_libdir_separator_CXX=:
16818 # Commands to make compiler produce verbose output that lists
16819 # what "hidden" libraries, object files and flags are used when
16820 # linking a shared library.
16821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16823 else
16824 # FIXME: insert proper C++ library support
16825 ld_shlibs_CXX=no
16828 esac
16831 psos*)
16832 # FIXME: insert proper C++ library support
16833 ld_shlibs_CXX=no
16836 sunos4*)
16837 case $cc_basename in
16838 CC*)
16839 # Sun C++ 4.x
16840 # FIXME: insert proper C++ library support
16841 ld_shlibs_CXX=no
16843 lcc*)
16844 # Lucid
16845 # FIXME: insert proper C++ library support
16846 ld_shlibs_CXX=no
16849 # FIXME: insert proper C++ library support
16850 ld_shlibs_CXX=no
16852 esac
16855 solaris*)
16856 case $cc_basename in
16857 CC*)
16858 # Sun C++ 4.2, 5.x and Centerline C++
16859 archive_cmds_need_lc_CXX=yes
16860 no_undefined_flag_CXX=' -zdefs'
16861 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16862 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16863 $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'
16865 hardcode_libdir_flag_spec_CXX='-R$libdir'
16866 hardcode_shlibpath_var_CXX=no
16867 case $host_os in
16868 solaris2.[0-5] | solaris2.[0-5].*) ;;
16870 # The compiler driver will combine and reorder linker options,
16871 # but understands `-z linker_flag'.
16872 # Supported since Solaris 2.6 (maybe 2.5.1?)
16873 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16875 esac
16876 link_all_deplibs_CXX=yes
16878 output_verbose_link_cmd='echo'
16880 # Archives containing C++ object files must be created using
16881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16882 # necessary to make sure instantiated templates are included
16883 # in the archive.
16884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16886 gcx*)
16887 # Green Hills C++ Compiler
16888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16890 # The C++ compiler must be used to create the archive.
16891 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16894 # GNU C++ compiler with Solaris linker
16895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16896 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16897 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16898 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16899 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16900 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16902 # Commands to make compiler produce verbose output that lists
16903 # what "hidden" libraries, object files and flags are used when
16904 # linking a shared library.
16905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16906 else
16907 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16908 # platform.
16909 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16911 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16913 # Commands to make compiler produce verbose output that lists
16914 # what "hidden" libraries, object files and flags are used when
16915 # linking a shared library.
16916 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16919 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16920 case $host_os in
16921 solaris2.[0-5] | solaris2.[0-5].*) ;;
16923 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16925 esac
16928 esac
16931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16932 no_undefined_flag_CXX='${wl}-z,text'
16933 archive_cmds_need_lc_CXX=no
16934 hardcode_shlibpath_var_CXX=no
16935 runpath_var='LD_RUN_PATH'
16937 case $cc_basename in
16938 CC*)
16939 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16946 esac
16949 sysv5* | sco3.2v5* | sco5v6*)
16950 # Note: We can NOT use -z defs as we might desire, because we do not
16951 # link with -lc, and that would cause any symbols used from libc to
16952 # always be unresolved, which means just about no library would
16953 # ever link correctly. If we're not using GNU ld we use -z text
16954 # though, which does catch some bad symbols but isn't as heavy-handed
16955 # as -z defs.
16956 no_undefined_flag_CXX='${wl}-z,text'
16957 allow_undefined_flag_CXX='${wl}-z,nodefs'
16958 archive_cmds_need_lc_CXX=no
16959 hardcode_shlibpath_var_CXX=no
16960 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16961 hardcode_libdir_separator_CXX=':'
16962 link_all_deplibs_CXX=yes
16963 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16964 runpath_var='LD_RUN_PATH'
16966 case $cc_basename in
16967 CC*)
16968 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16969 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 esac
16978 tandem*)
16979 case $cc_basename in
16980 NCC*)
16981 # NonStop-UX NCC 3.20
16982 # FIXME: insert proper C++ library support
16983 ld_shlibs_CXX=no
16986 # FIXME: insert proper C++ library support
16987 ld_shlibs_CXX=no
16989 esac
16992 vxworks*)
16993 # FIXME: insert proper C++ library support
16994 ld_shlibs_CXX=no
16998 # FIXME: insert proper C++ library support
16999 ld_shlibs_CXX=no
17001 esac
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17004 $as_echo "$ld_shlibs_CXX" >&6; }
17005 test "$ld_shlibs_CXX" = no && can_build_shared=no
17007 GCC_CXX="$GXX"
17008 LD_CXX="$LD"
17010 ## CAVEAT EMPTOR:
17011 ## There is no encapsulation within the following macros, do not change
17012 ## the running order or otherwise move them around unless you know exactly
17013 ## what you are doing...
17014 # Dependencies to place before and after the object being linked:
17015 predep_objects_CXX=
17016 postdep_objects_CXX=
17017 predeps_CXX=
17018 postdeps_CXX=
17019 compiler_lib_search_path_CXX=
17021 cat > conftest.$ac_ext <<_LT_EOF
17022 class Foo
17024 public:
17025 Foo (void) { a = 0; }
17026 private:
17027 int a;
17029 _LT_EOF
17031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17032 (eval $ac_compile) 2>&5
17033 ac_status=$?
17034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17035 test $ac_status = 0; }; then
17036 # Parse the compiler output and extract the necessary
17037 # objects, libraries and library flags.
17039 # Sentinel used to keep track of whether or not we are before
17040 # the conftest object file.
17041 pre_test_object_deps_done=no
17043 for p in `eval "$output_verbose_link_cmd"`; do
17044 case $p in
17046 -L* | -R* | -l*)
17047 # Some compilers place space between "-{L,R}" and the path.
17048 # Remove the space.
17049 if test $p = "-L" ||
17050 test $p = "-R"; then
17051 prev=$p
17052 continue
17053 else
17054 prev=
17057 if test "$pre_test_object_deps_done" = no; then
17058 case $p in
17059 -L* | -R*)
17060 # Internal compiler library paths should come after those
17061 # provided the user. The postdeps already come after the
17062 # user supplied libs so there is no need to process them.
17063 if test -z "$compiler_lib_search_path_CXX"; then
17064 compiler_lib_search_path_CXX="${prev}${p}"
17065 else
17066 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17069 # The "-l" case would never come before the object being
17070 # linked, so don't bother handling this case.
17071 esac
17072 else
17073 if test -z "$postdeps_CXX"; then
17074 postdeps_CXX="${prev}${p}"
17075 else
17076 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17081 *.$objext)
17082 # This assumes that the test object file only shows up
17083 # once in the compiler output.
17084 if test "$p" = "conftest.$objext"; then
17085 pre_test_object_deps_done=yes
17086 continue
17089 if test "$pre_test_object_deps_done" = no; then
17090 if test -z "$predep_objects_CXX"; then
17091 predep_objects_CXX="$p"
17092 else
17093 predep_objects_CXX="$predep_objects_CXX $p"
17095 else
17096 if test -z "$postdep_objects_CXX"; then
17097 postdep_objects_CXX="$p"
17098 else
17099 postdep_objects_CXX="$postdep_objects_CXX $p"
17104 *) ;; # Ignore the rest.
17106 esac
17107 done
17109 # Clean up.
17110 rm -f a.out a.exe
17111 else
17112 echo "libtool.m4: error: problem compiling CXX test program"
17115 $RM -f confest.$objext
17117 # PORTME: override above test on systems where it is broken
17118 case $host_os in
17119 interix[3-9]*)
17120 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17121 # hack all around it, let's just trust "g++" to DTRT.
17122 predep_objects_CXX=
17123 postdep_objects_CXX=
17124 postdeps_CXX=
17127 linux*)
17128 case `$CC -V 2>&1 | sed 5q` in
17129 *Sun\ C*)
17130 # Sun C++ 5.9
17132 # The more standards-conforming stlport4 library is
17133 # incompatible with the Cstd library. Avoid specifying
17134 # it if it's in CXXFLAGS. Ignore libCrun as
17135 # -library=stlport4 depends on it.
17136 case " $CXX $CXXFLAGS " in
17137 *" -library=stlport4 "*)
17138 solaris_use_stlport4=yes
17140 esac
17142 if test "$solaris_use_stlport4" != yes; then
17143 postdeps_CXX='-library=Cstd -library=Crun'
17146 esac
17149 solaris*)
17150 case $cc_basename in
17151 CC*)
17152 # The more standards-conforming stlport4 library is
17153 # incompatible with the Cstd library. Avoid specifying
17154 # it if it's in CXXFLAGS. Ignore libCrun as
17155 # -library=stlport4 depends on it.
17156 case " $CXX $CXXFLAGS " in
17157 *" -library=stlport4 "*)
17158 solaris_use_stlport4=yes
17160 esac
17162 # Adding this requires a known-good setup of shared libraries for
17163 # Sun compiler versions before 5.6, else PIC objects from an old
17164 # archive will be linked into the output, leading to subtle bugs.
17165 if test "$solaris_use_stlport4" != yes; then
17166 postdeps_CXX='-library=Cstd -library=Crun'
17169 esac
17171 esac
17174 case " $postdeps_CXX " in
17175 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17176 esac
17177 compiler_lib_search_dirs_CXX=
17178 if test -n "${compiler_lib_search_path_CXX}"; then
17179 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17212 lt_prog_compiler_wl_CXX=
17213 lt_prog_compiler_pic_CXX=
17214 lt_prog_compiler_static_CXX=
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17219 # C++ specific cases for pic, static, wl, etc.
17220 if test "$GXX" = yes; then
17221 lt_prog_compiler_wl_CXX='-Wl,'
17222 lt_prog_compiler_static_CXX='-static'
17224 case $host_os in
17225 aix*)
17226 # All AIX code is PIC.
17227 if test "$host_cpu" = ia64; then
17228 # AIX 5 now supports IA64 processor
17229 lt_prog_compiler_static_CXX='-Bstatic'
17233 amigaos*)
17234 case $host_cpu in
17235 powerpc)
17236 # see comment about AmigaOS4 .so support
17237 lt_prog_compiler_pic_CXX='-fPIC'
17239 m68k)
17240 # FIXME: we need at least 68020 code to build shared libraries, but
17241 # adding the `-m68020' flag to GCC prevents building anything better,
17242 # like `-m68040'.
17243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17245 esac
17248 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17249 # PIC is the default for these OSes.
17251 mingw* | cygwin* | os2* | pw32* | cegcc*)
17252 # This hack is so that the source file can tell whether it is being
17253 # built for inclusion in a dll (and should export symbols for example).
17254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17255 # (--disable-auto-import) libraries
17256 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17258 darwin* | rhapsody*)
17259 # PIC is the default on this platform
17260 # Common symbols not allowed in MH_DYLIB files
17261 lt_prog_compiler_pic_CXX='-fno-common'
17263 *djgpp*)
17264 # DJGPP does not support shared libraries at all
17265 lt_prog_compiler_pic_CXX=
17267 interix[3-9]*)
17268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17269 # Instead, we relocate shared libraries at runtime.
17271 sysv4*MP*)
17272 if test -d /usr/nec; then
17273 lt_prog_compiler_pic_CXX=-Kconform_pic
17276 hpux*)
17277 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17278 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17279 # sets the default TLS model and affects inlining.
17280 case $host_cpu in
17281 hppa*64*)
17284 lt_prog_compiler_pic_CXX='-fPIC'
17286 esac
17288 *qnx* | *nto*)
17289 # QNX uses GNU C++, but need to define -shared option too, otherwise
17290 # it will coredump.
17291 lt_prog_compiler_pic_CXX='-fPIC -shared'
17294 lt_prog_compiler_pic_CXX='-fPIC'
17296 esac
17297 else
17298 case $host_os in
17299 aix[4-9]*)
17300 # All AIX code is PIC.
17301 if test "$host_cpu" = ia64; then
17302 # AIX 5 now supports IA64 processor
17303 lt_prog_compiler_static_CXX='-Bstatic'
17304 else
17305 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17308 chorus*)
17309 case $cc_basename in
17310 cxch68*)
17311 # Green Hills C++ Compiler
17312 # _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"
17314 esac
17316 dgux*)
17317 case $cc_basename in
17318 ec++*)
17319 lt_prog_compiler_pic_CXX='-KPIC'
17321 ghcx*)
17322 # Green Hills C++ Compiler
17323 lt_prog_compiler_pic_CXX='-pic'
17327 esac
17329 freebsd* | dragonfly*)
17330 # FreeBSD uses GNU C++
17332 hpux9* | hpux10* | hpux11*)
17333 case $cc_basename in
17334 CC*)
17335 lt_prog_compiler_wl_CXX='-Wl,'
17336 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17337 if test "$host_cpu" != ia64; then
17338 lt_prog_compiler_pic_CXX='+Z'
17341 aCC*)
17342 lt_prog_compiler_wl_CXX='-Wl,'
17343 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17344 case $host_cpu in
17345 hppa*64*|ia64*)
17346 # +Z the default
17349 lt_prog_compiler_pic_CXX='+Z'
17351 esac
17355 esac
17357 interix*)
17358 # This is c89, which is MS Visual C++ (no shared libs)
17359 # Anyone wants to do a port?
17361 irix5* | irix6* | nonstopux*)
17362 case $cc_basename in
17363 CC*)
17364 lt_prog_compiler_wl_CXX='-Wl,'
17365 lt_prog_compiler_static_CXX='-non_shared'
17366 # CC pic flag -KPIC is the default.
17370 esac
17372 linux* | k*bsd*-gnu)
17373 case $cc_basename in
17374 KCC*)
17375 # KAI C++ Compiler
17376 lt_prog_compiler_wl_CXX='--backend -Wl,'
17377 lt_prog_compiler_pic_CXX='-fPIC'
17379 ecpc* )
17380 # old Intel C++ for x86_64 which still supported -KPIC.
17381 lt_prog_compiler_wl_CXX='-Wl,'
17382 lt_prog_compiler_pic_CXX='-KPIC'
17383 lt_prog_compiler_static_CXX='-static'
17385 icpc* )
17386 # Intel C++, used to be incompatible with GCC.
17387 # ICC 10 doesn't accept -KPIC any more.
17388 lt_prog_compiler_wl_CXX='-Wl,'
17389 lt_prog_compiler_pic_CXX='-fPIC'
17390 lt_prog_compiler_static_CXX='-static'
17392 pgCC* | pgcpp*)
17393 # Portland Group C++ compiler
17394 lt_prog_compiler_wl_CXX='-Wl,'
17395 lt_prog_compiler_pic_CXX='-fpic'
17396 lt_prog_compiler_static_CXX='-Bstatic'
17398 cxx*)
17399 # Compaq C++
17400 # Make sure the PIC flag is empty. It appears that all Alpha
17401 # Linux and Compaq Tru64 Unix objects are PIC.
17402 lt_prog_compiler_pic_CXX=
17403 lt_prog_compiler_static_CXX='-non_shared'
17405 xlc* | xlC*)
17406 # IBM XL 8.0 on PPC
17407 lt_prog_compiler_wl_CXX='-Wl,'
17408 lt_prog_compiler_pic_CXX='-qpic'
17409 lt_prog_compiler_static_CXX='-qstaticlink'
17412 case `$CC -V 2>&1 | sed 5q` in
17413 *Sun\ C*)
17414 # Sun C++ 5.9
17415 lt_prog_compiler_pic_CXX='-KPIC'
17416 lt_prog_compiler_static_CXX='-Bstatic'
17417 lt_prog_compiler_wl_CXX='-Qoption ld '
17419 esac
17421 esac
17423 lynxos*)
17425 m88k*)
17427 mvs*)
17428 case $cc_basename in
17429 cxx*)
17430 lt_prog_compiler_pic_CXX='-W c,exportall'
17434 esac
17436 netbsd*)
17438 *qnx* | *nto*)
17439 # QNX uses GNU C++, but need to define -shared option too, otherwise
17440 # it will coredump.
17441 lt_prog_compiler_pic_CXX='-fPIC -shared'
17443 osf3* | osf4* | osf5*)
17444 case $cc_basename in
17445 KCC*)
17446 lt_prog_compiler_wl_CXX='--backend -Wl,'
17448 RCC*)
17449 # Rational C++ 2.4.1
17450 lt_prog_compiler_pic_CXX='-pic'
17452 cxx*)
17453 # Digital/Compaq C++
17454 lt_prog_compiler_wl_CXX='-Wl,'
17455 # Make sure the PIC flag is empty. It appears that all Alpha
17456 # Linux and Compaq Tru64 Unix objects are PIC.
17457 lt_prog_compiler_pic_CXX=
17458 lt_prog_compiler_static_CXX='-non_shared'
17462 esac
17464 psos*)
17466 solaris*)
17467 case $cc_basename in
17468 CC*)
17469 # Sun C++ 4.2, 5.x and Centerline C++
17470 lt_prog_compiler_pic_CXX='-KPIC'
17471 lt_prog_compiler_static_CXX='-Bstatic'
17472 lt_prog_compiler_wl_CXX='-Qoption ld '
17474 gcx*)
17475 # Green Hills C++ Compiler
17476 lt_prog_compiler_pic_CXX='-PIC'
17480 esac
17482 sunos4*)
17483 case $cc_basename in
17484 CC*)
17485 # Sun C++ 4.x
17486 lt_prog_compiler_pic_CXX='-pic'
17487 lt_prog_compiler_static_CXX='-Bstatic'
17489 lcc*)
17490 # Lucid
17491 lt_prog_compiler_pic_CXX='-pic'
17495 esac
17497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17498 case $cc_basename in
17499 CC*)
17500 lt_prog_compiler_wl_CXX='-Wl,'
17501 lt_prog_compiler_pic_CXX='-KPIC'
17502 lt_prog_compiler_static_CXX='-Bstatic'
17504 esac
17506 tandem*)
17507 case $cc_basename in
17508 NCC*)
17509 # NonStop-UX NCC 3.20
17510 lt_prog_compiler_pic_CXX='-KPIC'
17514 esac
17516 vxworks*)
17519 lt_prog_compiler_can_build_shared_CXX=no
17521 esac
17524 case $host_os in
17525 # For platforms which do not support PIC, -DPIC is meaningless:
17526 *djgpp*)
17527 lt_prog_compiler_pic_CXX=
17530 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17532 esac
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17534 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17539 # Check to make sure the PIC flag actually works.
17541 if test -n "$lt_prog_compiler_pic_CXX"; then
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17543 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17544 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17545 $as_echo_n "(cached) " >&6
17546 else
17547 lt_cv_prog_compiler_pic_works_CXX=no
17548 ac_outfile=conftest.$ac_objext
17549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17550 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17551 # Insert the option either (1) after the last *FLAGS variable, or
17552 # (2) before a word containing "conftest.", or (3) at the end.
17553 # Note that $ac_compile itself does not contain backslashes and begins
17554 # with a dollar sign (not a hyphen), so the echo should work correctly.
17555 # The option is referenced via a variable to avoid confusing sed.
17556 lt_compile=`echo "$ac_compile" | $SED \
17557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17559 -e 's:$: $lt_compiler_flag:'`
17560 (eval echo "\"\$as_me:17560: $lt_compile\"" >&5)
17561 (eval "$lt_compile" 2>conftest.err)
17562 ac_status=$?
17563 cat conftest.err >&5
17564 echo "$as_me:17564: \$? = $ac_status" >&5
17565 if (exit $ac_status) && test -s "$ac_outfile"; then
17566 # The compiler can only warn and ignore the option if not recognized
17567 # So say no if there are warnings other than the usual output.
17568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17571 lt_cv_prog_compiler_pic_works_CXX=yes
17574 $RM conftest*
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17578 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17580 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17581 case $lt_prog_compiler_pic_CXX in
17582 "" | " "*) ;;
17583 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17584 esac
17585 else
17586 lt_prog_compiler_pic_CXX=
17587 lt_prog_compiler_can_build_shared_CXX=no
17595 # Check to make sure the static flag actually works.
17597 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17599 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17600 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 lt_cv_prog_compiler_static_works_CXX=no
17604 save_LDFLAGS="$LDFLAGS"
17605 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17606 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17608 # The linker can only warn and ignore the option if not recognized
17609 # So say no if there are warnings
17610 if test -s conftest.err; then
17611 # Append any errors to the config.log.
17612 cat conftest.err 1>&5
17613 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17615 if diff conftest.exp conftest.er2 >/dev/null; then
17616 lt_cv_prog_compiler_static_works_CXX=yes
17618 else
17619 lt_cv_prog_compiler_static_works_CXX=yes
17622 $RM -r conftest*
17623 LDFLAGS="$save_LDFLAGS"
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17627 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17629 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17631 else
17632 lt_prog_compiler_static_CXX=
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17640 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17642 else
17643 lt_cv_prog_compiler_c_o_CXX=no
17644 $RM -r conftest 2>/dev/null
17645 mkdir conftest
17646 cd conftest
17647 mkdir out
17648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17650 lt_compiler_flag="-o out/conftest2.$ac_objext"
17651 # Insert the option either (1) after the last *FLAGS variable, or
17652 # (2) before a word containing "conftest.", or (3) at the end.
17653 # Note that $ac_compile itself does not contain backslashes and begins
17654 # with a dollar sign (not a hyphen), so the echo should work correctly.
17655 lt_compile=`echo "$ac_compile" | $SED \
17656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17658 -e 's:$: $lt_compiler_flag:'`
17659 (eval echo "\"\$as_me:17659: $lt_compile\"" >&5)
17660 (eval "$lt_compile" 2>out/conftest.err)
17661 ac_status=$?
17662 cat out/conftest.err >&5
17663 echo "$as_me:17663: \$? = $ac_status" >&5
17664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17665 then
17666 # The compiler can only warn and ignore the option if not recognized
17667 # So say no if there are warnings
17668 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17671 lt_cv_prog_compiler_c_o_CXX=yes
17674 chmod u+w . 2>&5
17675 $RM conftest*
17676 # SGI C++ compiler will create directory out/ii_files/ for
17677 # template instantiation
17678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17679 $RM out/* && rmdir out
17680 cd ..
17681 $RM -r conftest
17682 $RM conftest*
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17686 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17692 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 lt_cv_prog_compiler_c_o_CXX=no
17696 $RM -r conftest 2>/dev/null
17697 mkdir conftest
17698 cd conftest
17699 mkdir out
17700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17702 lt_compiler_flag="-o out/conftest2.$ac_objext"
17703 # Insert the option either (1) after the last *FLAGS variable, or
17704 # (2) before a word containing "conftest.", or (3) at the end.
17705 # Note that $ac_compile itself does not contain backslashes and begins
17706 # with a dollar sign (not a hyphen), so the echo should work correctly.
17707 lt_compile=`echo "$ac_compile" | $SED \
17708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17710 -e 's:$: $lt_compiler_flag:'`
17711 (eval echo "\"\$as_me:17711: $lt_compile\"" >&5)
17712 (eval "$lt_compile" 2>out/conftest.err)
17713 ac_status=$?
17714 cat out/conftest.err >&5
17715 echo "$as_me:17715: \$? = $ac_status" >&5
17716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17717 then
17718 # The compiler can only warn and ignore the option if not recognized
17719 # So say no if there are warnings
17720 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17723 lt_cv_prog_compiler_c_o_CXX=yes
17726 chmod u+w . 2>&5
17727 $RM conftest*
17728 # SGI C++ compiler will create directory out/ii_files/ for
17729 # template instantiation
17730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17731 $RM out/* && rmdir out
17732 cd ..
17733 $RM -r conftest
17734 $RM conftest*
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17738 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17743 hard_links="nottested"
17744 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17745 # do not overwrite the value of need_locks provided by the user
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17747 $as_echo_n "checking if we can lock with hard links... " >&6; }
17748 hard_links=yes
17749 $RM conftest*
17750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17751 touch conftest.a
17752 ln conftest.a conftest.b 2>&5 || hard_links=no
17753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17755 $as_echo "$hard_links" >&6; }
17756 if test "$hard_links" = no; then
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17758 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17759 need_locks=warn
17761 else
17762 need_locks=no
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17770 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17771 case $host_os in
17772 aix[4-9]*)
17773 # If we're using GNU nm, then we don't want the "-C" option.
17774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17775 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17776 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17777 else
17778 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17781 pw32*)
17782 export_symbols_cmds_CXX="$ltdll_cmds"
17784 cygwin* | mingw* | cegcc*)
17785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17788 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17790 esac
17791 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17794 $as_echo "$ld_shlibs_CXX" >&6; }
17795 test "$ld_shlibs_CXX" = no && can_build_shared=no
17797 with_gnu_ld_CXX=$with_gnu_ld
17805 # Do we need to explicitly link libc?
17807 case "x$archive_cmds_need_lc_CXX" in
17808 x|xyes)
17809 # Assume -lc should be added
17810 archive_cmds_need_lc_CXX=yes
17812 if test "$enable_shared" = yes && test "$GCC" = yes; then
17813 case $archive_cmds_CXX in
17814 *'~'*)
17815 # FIXME: we may have to deal with multi-command sequences.
17817 '$CC '*)
17818 # Test whether the compiler implicitly links with -lc since on some
17819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17820 # to ld, don't add -lc before -lgcc.
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17822 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17823 $RM conftest*
17824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17827 (eval $ac_compile) 2>&5
17828 ac_status=$?
17829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17830 test $ac_status = 0; } 2>conftest.err; then
17831 soname=conftest
17832 lib=conftest
17833 libobjs=conftest.$ac_objext
17834 deplibs=
17835 wl=$lt_prog_compiler_wl_CXX
17836 pic_flag=$lt_prog_compiler_pic_CXX
17837 compiler_flags=-v
17838 linker_flags=-v
17839 verstring=
17840 output_objdir=.
17841 libname=conftest
17842 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17843 allow_undefined_flag_CXX=
17844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17845 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17846 ac_status=$?
17847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17848 test $ac_status = 0; }
17849 then
17850 archive_cmds_need_lc_CXX=no
17851 else
17852 archive_cmds_need_lc_CXX=yes
17854 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17855 else
17856 cat conftest.err 1>&5
17858 $RM conftest*
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17860 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17862 esac
17865 esac
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17931 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17933 library_names_spec=
17934 libname_spec='lib$name'
17935 soname_spec=
17936 shrext_cmds=".so"
17937 postinstall_cmds=
17938 postuninstall_cmds=
17939 finish_cmds=
17940 finish_eval=
17941 shlibpath_var=
17942 shlibpath_overrides_runpath=unknown
17943 version_type=none
17944 dynamic_linker="$host_os ld.so"
17945 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17946 need_lib_prefix=unknown
17947 hardcode_into_libs=no
17949 # when you set need_version to no, make sure it does not cause -set_version
17950 # flags to be left without arguments
17951 need_version=unknown
17953 case $host_os in
17954 aix3*)
17955 version_type=linux
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17957 shlibpath_var=LIBPATH
17959 # AIX 3 has no versioning support, so we append a major version to the name.
17960 soname_spec='${libname}${release}${shared_ext}$major'
17963 aix[4-9]*)
17964 version_type=linux
17965 need_lib_prefix=no
17966 need_version=no
17967 hardcode_into_libs=yes
17968 if test "$host_cpu" = ia64; then
17969 # AIX 5 supports IA64
17970 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 else
17973 # With GCC up to 2.95.x, collect2 would create an import file
17974 # for dependence libraries. The import file would start with
17975 # the line `#! .'. This would cause the generated library to
17976 # depend on `.', always an invalid library. This was fixed in
17977 # development snapshots of GCC prior to 3.0.
17978 case $host_os in
17979 aix4 | aix4.[01] | aix4.[01].*)
17980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17981 echo ' yes '
17982 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17984 else
17985 can_build_shared=no
17988 esac
17989 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17990 # soname into executable. Probably we can add versioning support to
17991 # collect2, so additional links can be useful in future.
17992 if test "$aix_use_runtimelinking" = yes; then
17993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17994 # instead of lib<name>.a to let people know that these are not
17995 # typical AIX shared libraries.
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17997 else
17998 # We preserve .a as extension for shared libraries through AIX4.2
17999 # and later when we are not doing run time linking.
18000 library_names_spec='${libname}${release}.a $libname.a'
18001 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LIBPATH
18007 amigaos*)
18008 case $host_cpu in
18009 powerpc)
18010 # Since July 2007 AmigaOS4 officially supports .so libraries.
18011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18014 m68k)
18015 library_names_spec='$libname.ixlibrary $libname.a'
18016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18017 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18019 esac
18022 beos*)
18023 library_names_spec='${libname}${shared_ext}'
18024 dynamic_linker="$host_os ld.so"
18025 shlibpath_var=LIBRARY_PATH
18028 bsdi[45]*)
18029 version_type=linux
18030 need_version=no
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032 soname_spec='${libname}${release}${shared_ext}$major'
18033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18037 # the default ld.so.conf also contains /usr/contrib/lib and
18038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18039 # libtool to hard-code these into programs
18042 cygwin* | mingw* | pw32* | cegcc*)
18043 version_type=windows
18044 shrext_cmds=".dll"
18045 need_version=no
18046 need_lib_prefix=no
18048 case $GCC,$host_os in
18049 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18050 library_names_spec='$libname.dll.a'
18051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18052 postinstall_cmds='base_file=`basename \${file}`~
18053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18054 dldir=$destdir/`dirname \$dlpath`~
18055 test -d \$dldir || mkdir -p \$dldir~
18056 $install_prog $dir/$dlname \$dldir/$dlname~
18057 chmod a+x \$dldir/$dlname~
18058 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18059 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18062 dlpath=$dir/\$dldll~
18063 $RM \$dlpath'
18064 shlibpath_overrides_runpath=yes
18066 case $host_os in
18067 cygwin*)
18068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18070 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18072 mingw* | cegcc*)
18073 # MinGW DLLs use traditional 'lib' prefix
18074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18075 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18076 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18077 # It is most probably a Windows format PATH printed by
18078 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18079 # path with ; separators, and with drive letters. We can handle the
18080 # drive letters (cygwin fileutils understands them), so leave them,
18081 # especially as we might pass files found there to a mingw objdump,
18082 # which wouldn't understand a cygwinified path. Ahh.
18083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18084 else
18085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18088 pw32*)
18089 # pw32 DLLs use 'pw' prefix rather than 'lib'
18090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18092 esac
18096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18098 esac
18099 dynamic_linker='Win32 ld.exe'
18100 # FIXME: first we should search . and the directory the executable is in
18101 shlibpath_var=PATH
18104 darwin* | rhapsody*)
18105 dynamic_linker="$host_os dyld"
18106 version_type=darwin
18107 need_lib_prefix=no
18108 need_version=no
18109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18110 soname_spec='${libname}${release}${major}$shared_ext'
18111 shlibpath_overrides_runpath=yes
18112 shlibpath_var=DYLD_LIBRARY_PATH
18113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18118 dgux*)
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 shlibpath_var=LD_LIBRARY_PATH
18127 freebsd1*)
18128 dynamic_linker=no
18131 freebsd* | dragonfly*)
18132 # DragonFly does not have aout. When/if they implement a new
18133 # versioning mechanism, adjust this.
18134 if test -x /usr/bin/objformat; then
18135 objformat=`/usr/bin/objformat`
18136 else
18137 case $host_os in
18138 freebsd[123]*) objformat=aout ;;
18139 *) objformat=elf ;;
18140 esac
18142 version_type=freebsd-$objformat
18143 case $version_type in
18144 freebsd-elf*)
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18146 need_version=no
18147 need_lib_prefix=no
18149 freebsd-*)
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18151 need_version=yes
18153 esac
18154 shlibpath_var=LD_LIBRARY_PATH
18155 case $host_os in
18156 freebsd2*)
18157 shlibpath_overrides_runpath=yes
18159 freebsd3.[01]* | freebsdelf3.[01]*)
18160 shlibpath_overrides_runpath=yes
18161 hardcode_into_libs=yes
18163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18165 shlibpath_overrides_runpath=no
18166 hardcode_into_libs=yes
18168 *) # from 4.6 on, and DragonFly
18169 shlibpath_overrides_runpath=yes
18170 hardcode_into_libs=yes
18172 esac
18175 gnu*)
18176 version_type=linux
18177 need_lib_prefix=no
18178 need_version=no
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 shlibpath_var=LD_LIBRARY_PATH
18182 hardcode_into_libs=yes
18185 hpux9* | hpux10* | hpux11*)
18186 # Give a soname corresponding to the major version so that dld.sl refuses to
18187 # link against other versions.
18188 version_type=sunos
18189 need_lib_prefix=no
18190 need_version=no
18191 case $host_cpu in
18192 ia64*)
18193 shrext_cmds='.so'
18194 hardcode_into_libs=yes
18195 dynamic_linker="$host_os dld.so"
18196 shlibpath_var=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 if test "X$HPUX_IA64_MODE" = X32; then
18201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18202 else
18203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18207 hppa*64*)
18208 shrext_cmds='.sl'
18209 hardcode_into_libs=yes
18210 dynamic_linker="$host_os dld.sl"
18211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18219 shrext_cmds='.sl'
18220 dynamic_linker="$host_os dld.sl"
18221 shlibpath_var=SHLIB_PATH
18222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 soname_spec='${libname}${release}${shared_ext}$major'
18226 esac
18227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18228 postinstall_cmds='chmod 555 $lib'
18231 interix[3-9]*)
18232 version_type=linux
18233 need_lib_prefix=no
18234 need_version=no
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18238 shlibpath_var=LD_LIBRARY_PATH
18239 shlibpath_overrides_runpath=no
18240 hardcode_into_libs=yes
18243 irix5* | irix6* | nonstopux*)
18244 case $host_os in
18245 nonstopux*) version_type=nonstopux ;;
18247 if test "$lt_cv_prog_gnu_ld" = yes; then
18248 version_type=linux
18249 else
18250 version_type=irix
18251 fi ;;
18252 esac
18253 need_lib_prefix=no
18254 need_version=no
18255 soname_spec='${libname}${release}${shared_ext}$major'
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18257 case $host_os in
18258 irix5* | nonstopux*)
18259 libsuff= shlibsuff=
18262 case $LD in # libtool.m4 will add one of these switches to LD
18263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18264 libsuff= shlibsuff= libmagic=32-bit;;
18265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18266 libsuff=32 shlibsuff=N32 libmagic=N32;;
18267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18269 *) libsuff= shlibsuff= libmagic=never-match;;
18270 esac
18272 esac
18273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18274 shlibpath_overrides_runpath=no
18275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18277 hardcode_into_libs=yes
18280 # No shared lib support for Linux oldld, aout, or coff.
18281 linux*oldld* | linux*aout* | linux*coff*)
18282 dynamic_linker=no
18285 # This must be Linux ELF.
18286 linux* | k*bsd*-gnu)
18287 version_type=linux
18288 need_lib_prefix=no
18289 need_version=no
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath=no
18295 # Some binutils ld are patched to set DT_RUNPATH
18296 save_LDFLAGS=$LDFLAGS
18297 save_libdir=$libdir
18298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18304 main ()
18308 return 0;
18310 _ACEOF
18311 if ac_fn_cxx_try_link "$LINENO"; then :
18312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18313 shlibpath_overrides_runpath=yes
18316 rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18318 LDFLAGS=$save_LDFLAGS
18319 libdir=$save_libdir
18321 # This implies no fast_install, which is unacceptable.
18322 # Some rework will be needed to allow for fast_install
18323 # before this can be enabled.
18324 hardcode_into_libs=yes
18326 # Add ABI-specific directories to the system library path.
18327 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18329 # Append ld.so.conf contents to the search path
18330 if test -f /etc/ld.so.conf; then
18331 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;/^$/d' | tr '\n' ' '`
18332 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18335 # We used to test for /lib/ld.so.1 and disable shared libraries on
18336 # powerpc, because MkLinux only supported shared libraries with the
18337 # GNU dynamic linker. Since this was broken with cross compilers,
18338 # most powerpc-linux boxes support dynamic linking these days and
18339 # people can always --disable-shared, the test was removed, and we
18340 # assume the GNU/Linux dynamic linker is in use.
18341 dynamic_linker='GNU/Linux ld.so'
18344 netbsd*)
18345 version_type=sunos
18346 need_lib_prefix=no
18347 need_version=no
18348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18351 dynamic_linker='NetBSD (a.out) ld.so'
18352 else
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 dynamic_linker='NetBSD ld.elf_so'
18357 shlibpath_var=LD_LIBRARY_PATH
18358 shlibpath_overrides_runpath=yes
18359 hardcode_into_libs=yes
18362 newsos6)
18363 version_type=linux
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=yes
18369 *nto* | *qnx*)
18370 version_type=qnx
18371 need_lib_prefix=no
18372 need_version=no
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 shlibpath_var=LD_LIBRARY_PATH
18376 shlibpath_overrides_runpath=no
18377 hardcode_into_libs=yes
18378 dynamic_linker='ldqnx.so'
18381 openbsd*)
18382 version_type=sunos
18383 sys_lib_dlsearch_path_spec="/usr/lib"
18384 need_lib_prefix=no
18385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18386 case $host_os in
18387 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18388 *) need_version=no ;;
18389 esac
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18394 case $host_os in
18395 openbsd2.[89] | openbsd2.[89].*)
18396 shlibpath_overrides_runpath=no
18399 shlibpath_overrides_runpath=yes
18401 esac
18402 else
18403 shlibpath_overrides_runpath=yes
18407 os2*)
18408 libname_spec='$name'
18409 shrext_cmds=".dll"
18410 need_lib_prefix=no
18411 library_names_spec='$libname${shared_ext} $libname.a'
18412 dynamic_linker='OS/2 ld.exe'
18413 shlibpath_var=LIBPATH
18416 osf3* | osf4* | osf5*)
18417 version_type=osf
18418 need_lib_prefix=no
18419 need_version=no
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422 shlibpath_var=LD_LIBRARY_PATH
18423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18427 rdos*)
18428 dynamic_linker=no
18431 solaris*)
18432 version_type=linux
18433 need_lib_prefix=no
18434 need_version=no
18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 shlibpath_var=LD_LIBRARY_PATH
18438 shlibpath_overrides_runpath=yes
18439 hardcode_into_libs=yes
18440 # ldd complains unless libraries are executable
18441 postinstall_cmds='chmod +x $lib'
18444 sunos4*)
18445 version_type=sunos
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18448 shlibpath_var=LD_LIBRARY_PATH
18449 shlibpath_overrides_runpath=yes
18450 if test "$with_gnu_ld" = yes; then
18451 need_lib_prefix=no
18453 need_version=yes
18456 sysv4 | sysv4.3*)
18457 version_type=linux
18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18459 soname_spec='${libname}${release}${shared_ext}$major'
18460 shlibpath_var=LD_LIBRARY_PATH
18461 case $host_vendor in
18462 sni)
18463 shlibpath_overrides_runpath=no
18464 need_lib_prefix=no
18465 runpath_var=LD_RUN_PATH
18467 siemens)
18468 need_lib_prefix=no
18470 motorola)
18471 need_lib_prefix=no
18472 need_version=no
18473 shlibpath_overrides_runpath=no
18474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18476 esac
18479 sysv4*MP*)
18480 if test -d /usr/nec ;then
18481 version_type=linux
18482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18483 soname_spec='$libname${shared_ext}.$major'
18484 shlibpath_var=LD_LIBRARY_PATH
18488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18489 version_type=freebsd-elf
18490 need_lib_prefix=no
18491 need_version=no
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 shlibpath_overrides_runpath=yes
18496 hardcode_into_libs=yes
18497 if test "$with_gnu_ld" = yes; then
18498 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18499 else
18500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18501 case $host_os in
18502 sco3.2v5*)
18503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18505 esac
18507 sys_lib_dlsearch_path_spec='/usr/lib'
18510 tpf*)
18511 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18512 version_type=linux
18513 need_lib_prefix=no
18514 need_version=no
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516 shlibpath_var=LD_LIBRARY_PATH
18517 shlibpath_overrides_runpath=no
18518 hardcode_into_libs=yes
18521 uts4*)
18522 version_type=linux
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18524 soname_spec='${libname}${release}${shared_ext}$major'
18525 shlibpath_var=LD_LIBRARY_PATH
18529 dynamic_linker=no
18531 esac
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18533 $as_echo "$dynamic_linker" >&6; }
18534 test "$dynamic_linker" = no && can_build_shared=no
18536 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18537 if test "$GCC" = yes; then
18538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18541 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18544 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18584 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18585 hardcode_action_CXX=
18586 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18587 test -n "$runpath_var_CXX" ||
18588 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18590 # We can hardcode non-existent directories.
18591 if test "$hardcode_direct_CXX" != no &&
18592 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18593 # have to relink, otherwise we might link with an installed library
18594 # when we should be linking with a yet-to-be-installed one
18595 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18596 test "$hardcode_minus_L_CXX" != no; then
18597 # Linking always hardcodes the temporary library directory.
18598 hardcode_action_CXX=relink
18599 else
18600 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18601 hardcode_action_CXX=immediate
18603 else
18604 # We cannot hardcode anything, or else we can only hardcode existing
18605 # directories.
18606 hardcode_action_CXX=unsupported
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18609 $as_echo "$hardcode_action_CXX" >&6; }
18611 if test "$hardcode_action_CXX" = relink ||
18612 test "$inherit_rpath_CXX" = yes; then
18613 # Fast installation is not supported
18614 enable_fast_install=no
18615 elif test "$shlibpath_overrides_runpath" = yes ||
18616 test "$enable_shared" = no; then
18617 # Fast installation is not necessary
18618 enable_fast_install=needless
18627 fi # test -n "$compiler"
18629 CC=$lt_save_CC
18630 LDCXX=$LD
18631 LD=$lt_save_LD
18632 GCC=$lt_save_GCC
18633 with_gnu_ld=$lt_save_with_gnu_ld
18634 lt_cv_path_LDCXX=$lt_cv_path_LD
18635 lt_cv_path_LD=$lt_save_path_LD
18636 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18637 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18638 fi # test "$_lt_caught_CXX_error" != yes
18640 ac_ext=c
18641 ac_cpp='$CPP $CPPFLAGS'
18642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18658 ac_config_commands="$ac_config_commands libtool"
18663 # Only expand once:
18666 : ${CONFIG_LT=./config.lt}
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
18668 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
18669 cat >"$CONFIG_LT" <<_LTEOF
18670 #! $SHELL
18671 # Generated by $as_me.
18672 # Run this file to recreate a libtool stub with the current configuration.
18674 lt_cl_silent=false
18675 SHELL=\${CONFIG_SHELL-$SHELL}
18676 _LTEOF
18678 cat >>"$CONFIG_LT" <<\_LTEOF
18679 ## -------------------- ##
18680 ## M4sh Initialization. ##
18681 ## -------------------- ##
18683 # Be more Bourne compatible
18684 DUALCASE=1; export DUALCASE # for MKS sh
18685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18686 emulate sh
18687 NULLCMD=:
18688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18689 # is contrary to our usage. Disable this feature.
18690 alias -g '${1+"$@"}'='"$@"'
18691 setopt NO_GLOB_SUBST
18692 else
18693 case `(set -o) 2>/dev/null` in #(
18694 *posix*) :
18695 set -o posix ;; #(
18696 *) :
18698 esac
18702 as_nl='
18704 export as_nl
18705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18709 # Prefer a ksh shell builtin over an external printf program on Solaris,
18710 # but without wasting forks for bash or zsh.
18711 if test -z "$BASH_VERSION$ZSH_VERSION" \
18712 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18713 as_echo='print -r --'
18714 as_echo_n='print -rn --'
18715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18716 as_echo='printf %s\n'
18717 as_echo_n='printf %s'
18718 else
18719 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18720 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18721 as_echo_n='/usr/ucb/echo -n'
18722 else
18723 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18724 as_echo_n_body='eval
18725 arg=$1;
18726 case $arg in #(
18727 *"$as_nl"*)
18728 expr "X$arg" : "X\\(.*\\)$as_nl";
18729 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18730 esac;
18731 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18733 export as_echo_n_body
18734 as_echo_n='sh -c $as_echo_n_body as_echo'
18736 export as_echo_body
18737 as_echo='sh -c $as_echo_body as_echo'
18740 # The user is always right.
18741 if test "${PATH_SEPARATOR+set}" != set; then
18742 PATH_SEPARATOR=:
18743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18745 PATH_SEPARATOR=';'
18750 # IFS
18751 # We need space, tab and new line, in precisely that order. Quoting is
18752 # there to prevent editors from complaining about space-tab.
18753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18754 # splitting by setting IFS to empty value.)
18755 IFS=" "" $as_nl"
18757 # Find who we are. Look in the path if we contain no directory separator.
18758 case $0 in #((
18759 *[\\/]* ) as_myself=$0 ;;
18760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18763 IFS=$as_save_IFS
18764 test -z "$as_dir" && as_dir=.
18765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18766 done
18767 IFS=$as_save_IFS
18770 esac
18771 # We did not find ourselves, most probably we were run as `sh COMMAND'
18772 # in which case we are not to be found in the path.
18773 if test "x$as_myself" = x; then
18774 as_myself=$0
18776 if test ! -f "$as_myself"; then
18777 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18778 exit 1
18781 # Unset variables that we do not need and which cause bugs (e.g. in
18782 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18783 # suppresses any "Segmentation fault" message there. '((' could
18784 # trigger a bug in pdksh 5.2.14.
18785 for as_var in BASH_ENV ENV MAIL MAILPATH
18786 do eval test x\${$as_var+set} = xset \
18787 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18788 done
18789 PS1='$ '
18790 PS2='> '
18791 PS4='+ '
18793 # NLS nuisances.
18794 LC_ALL=C
18795 export LC_ALL
18796 LANGUAGE=C
18797 export LANGUAGE
18799 # CDPATH.
18800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18804 # as_fn_error ERROR [LINENO LOG_FD]
18805 # ---------------------------------
18806 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18807 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18808 # script with status $?, using 1 if that was 0.
18809 as_fn_error ()
18811 as_status=$?; test $as_status -eq 0 && as_status=1
18812 if test "$3"; then
18813 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18816 $as_echo "$as_me: error: $1" >&2
18817 as_fn_exit $as_status
18818 } # as_fn_error
18821 # as_fn_set_status STATUS
18822 # -----------------------
18823 # Set $? to STATUS, without forking.
18824 as_fn_set_status ()
18826 return $1
18827 } # as_fn_set_status
18829 # as_fn_exit STATUS
18830 # -----------------
18831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18832 as_fn_exit ()
18834 set +e
18835 as_fn_set_status $1
18836 exit $1
18837 } # as_fn_exit
18839 # as_fn_unset VAR
18840 # ---------------
18841 # Portably unset VAR.
18842 as_fn_unset ()
18844 { eval $1=; unset $1;}
18846 as_unset=as_fn_unset
18847 # as_fn_append VAR VALUE
18848 # ----------------------
18849 # Append the text in VALUE to the end of the definition contained in VAR. Take
18850 # advantage of any shell optimizations that allow amortized linear growth over
18851 # repeated appends, instead of the typical quadratic growth present in naive
18852 # implementations.
18853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18854 eval 'as_fn_append ()
18856 eval $1+=\$2
18858 else
18859 as_fn_append ()
18861 eval $1=\$$1\$2
18863 fi # as_fn_append
18865 # as_fn_arith ARG...
18866 # ------------------
18867 # Perform arithmetic evaluation on the ARGs, and store the result in the
18868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18869 # must be portable across $(()) and expr.
18870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18871 eval 'as_fn_arith ()
18873 as_val=$(( $* ))
18875 else
18876 as_fn_arith ()
18878 as_val=`expr "$@" || test $? -eq 1`
18880 fi # as_fn_arith
18883 if expr a : '\(a\)' >/dev/null 2>&1 &&
18884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18885 as_expr=expr
18886 else
18887 as_expr=false
18890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18891 as_basename=basename
18892 else
18893 as_basename=false
18896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18897 as_dirname=dirname
18898 else
18899 as_dirname=false
18902 as_me=`$as_basename -- "$0" ||
18903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18904 X"$0" : 'X\(//\)$' \| \
18905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18906 $as_echo X/"$0" |
18907 sed '/^.*\/\([^/][^/]*\)\/*$/{
18908 s//\1/
18911 /^X\/\(\/\/\)$/{
18912 s//\1/
18915 /^X\/\(\/\).*/{
18916 s//\1/
18919 s/.*/./; q'`
18921 # Avoid depending upon Character Ranges.
18922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18925 as_cr_digits='0123456789'
18926 as_cr_alnum=$as_cr_Letters$as_cr_digits
18928 ECHO_C= ECHO_N= ECHO_T=
18929 case `echo -n x` in #(((((
18930 -n*)
18931 case `echo 'xy\c'` in
18932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18933 xy) ECHO_C='\c';;
18934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18935 ECHO_T=' ';;
18936 esac;;
18938 ECHO_N='-n';;
18939 esac
18941 rm -f conf$$ conf$$.exe conf$$.file
18942 if test -d conf$$.dir; then
18943 rm -f conf$$.dir/conf$$.file
18944 else
18945 rm -f conf$$.dir
18946 mkdir conf$$.dir 2>/dev/null
18948 if (echo >conf$$.file) 2>/dev/null; then
18949 if ln -s conf$$.file conf$$ 2>/dev/null; then
18950 as_ln_s='ln -s'
18951 # ... but there are two gotchas:
18952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18954 # In both cases, we have to default to `cp -p'.
18955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18956 as_ln_s='cp -p'
18957 elif ln conf$$.file conf$$ 2>/dev/null; then
18958 as_ln_s=ln
18959 else
18960 as_ln_s='cp -p'
18962 else
18963 as_ln_s='cp -p'
18965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18966 rmdir conf$$.dir 2>/dev/null
18969 # as_fn_mkdir_p
18970 # -------------
18971 # Create "$as_dir" as a directory, including parents if necessary.
18972 as_fn_mkdir_p ()
18975 case $as_dir in #(
18976 -*) as_dir=./$as_dir;;
18977 esac
18978 test -d "$as_dir" || eval $as_mkdir_p || {
18979 as_dirs=
18980 while :; do
18981 case $as_dir in #(
18982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18983 *) as_qdir=$as_dir;;
18984 esac
18985 as_dirs="'$as_qdir' $as_dirs"
18986 as_dir=`$as_dirname -- "$as_dir" ||
18987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18988 X"$as_dir" : 'X\(//\)[^/]' \| \
18989 X"$as_dir" : 'X\(//\)$' \| \
18990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18991 $as_echo X"$as_dir" |
18992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18993 s//\1/
18996 /^X\(\/\/\)[^/].*/{
18997 s//\1/
19000 /^X\(\/\/\)$/{
19001 s//\1/
19004 /^X\(\/\).*/{
19005 s//\1/
19008 s/.*/./; q'`
19009 test -d "$as_dir" && break
19010 done
19011 test -z "$as_dirs" || eval "mkdir $as_dirs"
19012 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" "$LINENO" 5
19015 } # as_fn_mkdir_p
19016 if mkdir -p . 2>/dev/null; then
19017 as_mkdir_p='mkdir -p "$as_dir"'
19018 else
19019 test -d ./-p && rmdir ./-p
19020 as_mkdir_p=false
19023 if test -x / >/dev/null 2>&1; then
19024 as_test_x='test -x'
19025 else
19026 if ls -dL / >/dev/null 2>&1; then
19027 as_ls_L_option=L
19028 else
19029 as_ls_L_option=
19031 as_test_x='
19032 eval sh -c '\''
19033 if test -d "$1"; then
19034 test -d "$1/.";
19035 else
19036 case $1 in #(
19037 -*)set "./$1";;
19038 esac;
19039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19040 ???[sx]*):;;*)false;;esac;fi
19041 '\'' sh
19044 as_executable_p=$as_test_x
19046 # Sed expression to map a string onto a valid CPP name.
19047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19049 # Sed expression to map a string onto a valid variable name.
19050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19054 exec 6>&1
19055 exec 5>>config.log
19057 echo
19058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19059 ## Running $as_me. ##
19060 _ASBOX
19061 } >&5
19063 lt_cl_help="\
19064 \`$as_me' creates a local libtool stub from the current configuration,
19065 for use in further configure time tests before the real libtool is
19066 generated.
19068 Usage: $0 [OPTIONS]
19070 -h, --help print this help, then exit
19071 -V, --version print version number, then exit
19072 -q, --quiet do not print progress messages
19073 -d, --debug don't remove temporary files
19075 Report bugs to <bug-libtool@gnu.org>."
19077 lt_cl_version="\
19078 glib config.lt 2.25.13
19079 configured by $0, generated by GNU Autoconf 2.65.
19081 Copyright (C) 2008 Free Software Foundation, Inc.
19082 This config.lt script is free software; the Free Software Foundation
19083 gives unlimited permision to copy, distribute and modify it."
19085 while test $# != 0
19087 case $1 in
19088 --version | --v* | -V )
19089 echo "$lt_cl_version"; exit 0 ;;
19090 --help | --h* | -h )
19091 echo "$lt_cl_help"; exit 0 ;;
19092 --debug | --d* | -d )
19093 debug=: ;;
19094 --quiet | --q* | --silent | --s* | -q )
19095 lt_cl_silent=: ;;
19097 -*) as_fn_error "unrecognized option: $1
19098 Try \`$0 --help' for more information." "$LINENO" 5 ;;
19100 *) as_fn_error "unrecognized argument: $1
19101 Try \`$0 --help' for more information." "$LINENO" 5 ;;
19102 esac
19103 shift
19104 done
19106 if $lt_cl_silent; then
19107 exec 6>/dev/null
19109 _LTEOF
19111 cat >>"$CONFIG_LT" <<_LTEOF
19114 # The HP-UX ksh and POSIX shell print the target directory to stdout
19115 # if CDPATH is set.
19116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19118 sed_quote_subst='$sed_quote_subst'
19119 double_quote_subst='$double_quote_subst'
19120 delay_variable_subst='$delay_variable_subst'
19121 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19122 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19123 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19124 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
19125 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19126 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19127 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19128 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19129 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19130 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19131 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19132 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19133 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19134 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19135 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19136 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19137 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19138 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19139 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19140 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19141 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19142 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19143 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19144 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19145 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19146 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19147 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19148 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19149 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19150 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19151 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19152 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19153 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19154 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19155 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19156 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19157 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19158 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19159 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19160 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19161 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19162 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19163 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19164 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19165 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19166 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19167 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19168 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19169 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19170 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19171 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19172 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19173 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19174 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19175 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19176 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19177 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19178 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19179 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19180 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19181 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19182 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19183 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19184 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19185 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19186 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19187 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19188 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19189 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19190 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19191 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19192 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19193 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19194 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19195 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19196 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19197 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19198 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19199 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19200 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19201 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19202 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19203 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19204 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19205 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19206 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19207 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19208 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19209 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19210 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19211 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19212 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19213 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19214 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19215 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19216 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19217 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19218 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19219 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19220 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19221 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19222 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19223 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19224 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19225 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19226 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19227 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19228 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19229 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19230 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19231 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19232 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19233 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19234 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19235 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19236 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19237 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19238 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19239 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19240 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19241 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19242 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19243 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19244 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19245 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19246 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19247 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19248 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19249 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19250 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19251 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19252 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19253 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19254 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19255 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19256 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19257 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19258 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19259 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19260 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19261 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19262 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19263 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19264 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19265 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19266 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19267 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19268 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19269 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19270 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19271 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19272 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19273 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19274 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19275 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19276 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19277 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19278 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19279 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19280 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19281 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19282 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19283 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19284 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19285 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19286 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19287 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19288 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19289 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19290 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19291 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19292 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19293 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19295 LTCC='$LTCC'
19296 LTCFLAGS='$LTCFLAGS'
19297 compiler='$compiler_DEFAULT'
19299 # Quote evaled strings.
19300 for var in SED \
19301 GREP \
19302 EGREP \
19303 FGREP \
19304 LD \
19305 NM \
19306 LN_S \
19307 lt_SP2NL \
19308 lt_NL2SP \
19309 reload_flag \
19310 deplibs_check_method \
19311 file_magic_cmd \
19312 AR \
19313 AR_FLAGS \
19314 STRIP \
19315 RANLIB \
19316 CC \
19317 CFLAGS \
19318 compiler \
19319 lt_cv_sys_global_symbol_pipe \
19320 lt_cv_sys_global_symbol_to_cdecl \
19321 lt_cv_sys_global_symbol_to_c_name_address \
19322 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19323 SHELL \
19324 ECHO \
19325 lt_prog_compiler_no_builtin_flag \
19326 lt_prog_compiler_wl \
19327 lt_prog_compiler_pic \
19328 lt_prog_compiler_static \
19329 lt_cv_prog_compiler_c_o \
19330 need_locks \
19331 DSYMUTIL \
19332 NMEDIT \
19333 LIPO \
19334 OTOOL \
19335 OTOOL64 \
19336 shrext_cmds \
19337 export_dynamic_flag_spec \
19338 whole_archive_flag_spec \
19339 compiler_needs_object \
19340 with_gnu_ld \
19341 allow_undefined_flag \
19342 no_undefined_flag \
19343 hardcode_libdir_flag_spec \
19344 hardcode_libdir_flag_spec_ld \
19345 hardcode_libdir_separator \
19346 fix_srcfile_path \
19347 exclude_expsyms \
19348 include_expsyms \
19349 file_list_spec \
19350 variables_saved_for_relink \
19351 libname_spec \
19352 library_names_spec \
19353 soname_spec \
19354 finish_eval \
19355 old_striplib \
19356 striplib \
19357 compiler_lib_search_dirs \
19358 predep_objects \
19359 postdep_objects \
19360 predeps \
19361 postdeps \
19362 compiler_lib_search_path \
19363 LD_CXX \
19364 compiler_CXX \
19365 lt_prog_compiler_no_builtin_flag_CXX \
19366 lt_prog_compiler_wl_CXX \
19367 lt_prog_compiler_pic_CXX \
19368 lt_prog_compiler_static_CXX \
19369 lt_cv_prog_compiler_c_o_CXX \
19370 export_dynamic_flag_spec_CXX \
19371 whole_archive_flag_spec_CXX \
19372 compiler_needs_object_CXX \
19373 with_gnu_ld_CXX \
19374 allow_undefined_flag_CXX \
19375 no_undefined_flag_CXX \
19376 hardcode_libdir_flag_spec_CXX \
19377 hardcode_libdir_flag_spec_ld_CXX \
19378 hardcode_libdir_separator_CXX \
19379 fix_srcfile_path_CXX \
19380 exclude_expsyms_CXX \
19381 include_expsyms_CXX \
19382 file_list_spec_CXX \
19383 compiler_lib_search_dirs_CXX \
19384 predep_objects_CXX \
19385 postdep_objects_CXX \
19386 predeps_CXX \
19387 postdeps_CXX \
19388 compiler_lib_search_path_CXX; do
19389 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19390 *[\\\\\\\`\\"\\\$]*)
19391 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19394 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19396 esac
19397 done
19399 # Double-quote double-evaled strings.
19400 for var in reload_cmds \
19401 old_postinstall_cmds \
19402 old_postuninstall_cmds \
19403 old_archive_cmds \
19404 extract_expsyms_cmds \
19405 old_archive_from_new_cmds \
19406 old_archive_from_expsyms_cmds \
19407 archive_cmds \
19408 archive_expsym_cmds \
19409 module_cmds \
19410 module_expsym_cmds \
19411 export_symbols_cmds \
19412 prelink_cmds \
19413 postinstall_cmds \
19414 postuninstall_cmds \
19415 finish_cmds \
19416 sys_lib_search_path_spec \
19417 sys_lib_dlsearch_path_spec \
19418 old_archive_cmds_CXX \
19419 old_archive_from_new_cmds_CXX \
19420 old_archive_from_expsyms_cmds_CXX \
19421 archive_cmds_CXX \
19422 archive_expsym_cmds_CXX \
19423 module_cmds_CXX \
19424 module_expsym_cmds_CXX \
19425 export_symbols_cmds_CXX \
19426 prelink_cmds_CXX; do
19427 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19428 *[\\\\\\\`\\"\\\$]*)
19429 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19432 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19434 esac
19435 done
19437 # Fix-up fallback echo if it was mangled by the above quoting rules.
19438 case \$lt_ECHO in
19439 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19441 esac
19443 ac_aux_dir='$ac_aux_dir'
19444 xsi_shell='$xsi_shell'
19445 lt_shell_append='$lt_shell_append'
19447 # See if we are running on zsh, and set the options which allow our
19448 # commands through without removal of \ escapes INIT.
19449 if test -n "\${ZSH_VERSION+set}" ; then
19450 setopt NO_GLOB_SUBST
19454 PACKAGE='$PACKAGE'
19455 VERSION='$VERSION'
19456 TIMESTAMP='$TIMESTAMP'
19457 RM='$RM'
19458 ofile='$ofile'
19464 _LTEOF
19466 cat >>"$CONFIG_LT" <<\_LTEOF
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
19468 $as_echo "$as_me: creating $ofile" >&6;}
19471 # See if we are running on zsh, and set the options which allow our
19472 # commands through without removal of \ escapes.
19473 if test -n "${ZSH_VERSION+set}" ; then
19474 setopt NO_GLOB_SUBST
19477 cfgfile="${ofile}T"
19478 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19479 $RM "$cfgfile"
19481 cat <<_LT_EOF >> "$cfgfile"
19482 #! $SHELL
19484 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19485 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19490 # 2006, 2007, 2008 Free Software Foundation, Inc.
19491 # Written by Gordon Matzigkeit, 1996
19493 # This file is part of GNU Libtool.
19495 # GNU Libtool is free software; you can redistribute it and/or
19496 # modify it under the terms of the GNU General Public License as
19497 # published by the Free Software Foundation; either version 2 of
19498 # the License, or (at your option) any later version.
19500 # As a special exception to the GNU General Public License,
19501 # if you distribute this file as part of a program or library that
19502 # is built using GNU Libtool, you may include this file under the
19503 # same distribution terms that you use for the rest of that program.
19505 # GNU Libtool is distributed in the hope that it will be useful,
19506 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19507 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19508 # GNU General Public License for more details.
19510 # You should have received a copy of the GNU General Public License
19511 # along with GNU Libtool; see the file COPYING. If not, a copy
19512 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19513 # obtained by writing to the Free Software Foundation, Inc.,
19514 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19517 # The names of the tagged configurations supported by this script.
19518 available_tags="CXX "
19520 # ### BEGIN LIBTOOL CONFIG
19522 # Which release of libtool.m4 was used?
19523 macro_version=$macro_version
19524 macro_revision=$macro_revision
19526 # Whether or not to build static libraries.
19527 build_old_libs=$enable_static
19529 # Assembler program.
19530 AS=$AS
19532 # DLL creation program.
19533 DLLTOOL=$DLLTOOL
19535 # Object dumper program.
19536 OBJDUMP=$OBJDUMP
19538 # Whether or not to build shared libraries.
19539 build_libtool_libs=$enable_shared
19541 # What type of objects to build.
19542 pic_mode=$pic_mode
19544 # Whether or not to optimize for fast installation.
19545 fast_install=$enable_fast_install
19547 # The host system.
19548 host_alias=$host_alias
19549 host=$host
19550 host_os=$host_os
19552 # The build system.
19553 build_alias=$build_alias
19554 build=$build
19555 build_os=$build_os
19557 # A sed program that does not truncate output.
19558 SED=$lt_SED
19560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19561 Xsed="\$SED -e 1s/^X//"
19563 # A grep program that handles long lines.
19564 GREP=$lt_GREP
19566 # An ERE matcher.
19567 EGREP=$lt_EGREP
19569 # A literal string matcher.
19570 FGREP=$lt_FGREP
19572 # A BSD- or MS-compatible name lister.
19573 NM=$lt_NM
19575 # Whether we need soft or hard links.
19576 LN_S=$lt_LN_S
19578 # What is the maximum length of a command?
19579 max_cmd_len=$max_cmd_len
19581 # Object file suffix (normally "o").
19582 objext=$ac_objext
19584 # Executable file suffix (normally "").
19585 exeext=$exeext
19587 # whether the shell understands "unset".
19588 lt_unset=$lt_unset
19590 # turn spaces into newlines.
19591 SP2NL=$lt_lt_SP2NL
19593 # turn newlines into spaces.
19594 NL2SP=$lt_lt_NL2SP
19596 # How to create reloadable object files.
19597 reload_flag=$lt_reload_flag
19598 reload_cmds=$lt_reload_cmds
19600 # Method to check whether dependent libraries are shared objects.
19601 deplibs_check_method=$lt_deplibs_check_method
19603 # Command to use when deplibs_check_method == "file_magic".
19604 file_magic_cmd=$lt_file_magic_cmd
19606 # The archiver.
19607 AR=$lt_AR
19608 AR_FLAGS=$lt_AR_FLAGS
19610 # A symbol stripping program.
19611 STRIP=$lt_STRIP
19613 # Commands used to install an old-style archive.
19614 RANLIB=$lt_RANLIB
19615 old_postinstall_cmds=$lt_old_postinstall_cmds
19616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19618 # A C compiler.
19619 LTCC=$lt_CC
19621 # LTCC compiler flags.
19622 LTCFLAGS=$lt_CFLAGS
19624 # Take the output of nm and produce a listing of raw symbols and C names.
19625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19627 # Transform the output of nm in a proper C declaration.
19628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19630 # Transform the output of nm in a C name address pair.
19631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19633 # Transform the output of nm in a C name address pair when lib prefix is needed.
19634 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19636 # The name of the directory that contains temporary libtool files.
19637 objdir=$objdir
19639 # Shell to use when invoking shell scripts.
19640 SHELL=$lt_SHELL
19642 # An echo program that does not interpret backslashes.
19643 ECHO=$lt_ECHO
19645 # Used to examine libraries when file_magic_cmd begins with "file".
19646 MAGIC_CMD=$MAGIC_CMD
19648 # Must we lock files when doing compilation?
19649 need_locks=$lt_need_locks
19651 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19652 DSYMUTIL=$lt_DSYMUTIL
19654 # Tool to change global to local symbols on Mac OS X.
19655 NMEDIT=$lt_NMEDIT
19657 # Tool to manipulate fat objects and archives on Mac OS X.
19658 LIPO=$lt_LIPO
19660 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19661 OTOOL=$lt_OTOOL
19663 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19664 OTOOL64=$lt_OTOOL64
19666 # Old archive suffix (normally "a").
19667 libext=$libext
19669 # Shared library suffix (normally ".so").
19670 shrext_cmds=$lt_shrext_cmds
19672 # The commands to extract the exported symbol list from a shared archive.
19673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19675 # Variables whose values should be saved in libtool wrapper scripts and
19676 # restored at link time.
19677 variables_saved_for_relink=$lt_variables_saved_for_relink
19679 # Do we need the "lib" prefix for modules?
19680 need_lib_prefix=$need_lib_prefix
19682 # Do we need a version for libraries?
19683 need_version=$need_version
19685 # Library versioning type.
19686 version_type=$version_type
19688 # Shared library runtime path variable.
19689 runpath_var=$runpath_var
19691 # Shared library path variable.
19692 shlibpath_var=$shlibpath_var
19694 # Is shlibpath searched before the hard-coded library search path?
19695 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19697 # Format of library name prefix.
19698 libname_spec=$lt_libname_spec
19700 # List of archive names. First name is the real one, the rest are links.
19701 # The last name is the one that the linker finds with -lNAME
19702 library_names_spec=$lt_library_names_spec
19704 # The coded name of the library, if different from the real name.
19705 soname_spec=$lt_soname_spec
19707 # Command to use after installation of a shared archive.
19708 postinstall_cmds=$lt_postinstall_cmds
19710 # Command to use after uninstallation of a shared archive.
19711 postuninstall_cmds=$lt_postuninstall_cmds
19713 # Commands used to finish a libtool library installation in a directory.
19714 finish_cmds=$lt_finish_cmds
19716 # As "finish_cmds", except a single script fragment to be evaled but
19717 # not shown.
19718 finish_eval=$lt_finish_eval
19720 # Whether we should hardcode library paths into libraries.
19721 hardcode_into_libs=$hardcode_into_libs
19723 # Compile-time system search path for libraries.
19724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19726 # Run-time system search path for libraries.
19727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19729 # Whether dlopen is supported.
19730 dlopen_support=$enable_dlopen
19732 # Whether dlopen of programs is supported.
19733 dlopen_self=$enable_dlopen_self
19735 # Whether dlopen of statically linked programs is supported.
19736 dlopen_self_static=$enable_dlopen_self_static
19738 # Commands to strip libraries.
19739 old_striplib=$lt_old_striplib
19740 striplib=$lt_striplib
19743 # The linker used to build libraries.
19744 LD=$lt_LD
19746 # Commands used to build an old-style archive.
19747 old_archive_cmds=$lt_old_archive_cmds
19749 # A language specific compiler.
19750 CC=$lt_compiler
19752 # Is the compiler the GNU compiler?
19753 with_gcc=$GCC
19755 # Compiler flag to turn off builtin functions.
19756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19758 # How to pass a linker flag through the compiler.
19759 wl=$lt_lt_prog_compiler_wl
19761 # Additional compiler flags for building library objects.
19762 pic_flag=$lt_lt_prog_compiler_pic
19764 # Compiler flag to prevent dynamic linking.
19765 link_static_flag=$lt_lt_prog_compiler_static
19767 # Does compiler simultaneously support -c and -o options?
19768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19770 # Whether or not to add -lc for building shared libraries.
19771 build_libtool_need_lc=$archive_cmds_need_lc
19773 # Whether or not to disallow shared libs when runtime libs are static.
19774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19776 # Compiler flag to allow reflexive dlopens.
19777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19779 # Compiler flag to generate shared objects directly from archives.
19780 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19782 # Whether the compiler copes with passing no objects directly.
19783 compiler_needs_object=$lt_compiler_needs_object
19785 # Create an old-style archive from a shared archive.
19786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19788 # Create a temporary old-style archive to link instead of a shared archive.
19789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19791 # Commands used to build a shared archive.
19792 archive_cmds=$lt_archive_cmds
19793 archive_expsym_cmds=$lt_archive_expsym_cmds
19795 # Commands used to build a loadable module if different from building
19796 # a shared archive.
19797 module_cmds=$lt_module_cmds
19798 module_expsym_cmds=$lt_module_expsym_cmds
19800 # Whether we are building with GNU ld or not.
19801 with_gnu_ld=$lt_with_gnu_ld
19803 # Flag that allows shared libraries with undefined symbols to be built.
19804 allow_undefined_flag=$lt_allow_undefined_flag
19806 # Flag that enforces no undefined symbols.
19807 no_undefined_flag=$lt_no_undefined_flag
19809 # Flag to hardcode \$libdir into a binary during linking.
19810 # This must work even if \$libdir does not exist
19811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19813 # If ld is used when linking, flag to hardcode \$libdir into a binary
19814 # during linking. This must work even if \$libdir does not exist.
19815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19817 # Whether we need a single "-rpath" flag with a separated argument.
19818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19821 # DIR into the resulting binary.
19822 hardcode_direct=$hardcode_direct
19824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19825 # DIR into the resulting binary and the resulting library dependency is
19826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19827 # library is relocated.
19828 hardcode_direct_absolute=$hardcode_direct_absolute
19830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19831 # into the resulting binary.
19832 hardcode_minus_L=$hardcode_minus_L
19834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19835 # into the resulting binary.
19836 hardcode_shlibpath_var=$hardcode_shlibpath_var
19838 # Set to "yes" if building a shared library automatically hardcodes DIR
19839 # into the library and all subsequent libraries and executables linked
19840 # against it.
19841 hardcode_automatic=$hardcode_automatic
19843 # Set to yes if linker adds runtime paths of dependent libraries
19844 # to runtime path list.
19845 inherit_rpath=$inherit_rpath
19847 # Whether libtool must link a program against all its dependency libraries.
19848 link_all_deplibs=$link_all_deplibs
19850 # Fix the shell variable \$srcfile for the compiler.
19851 fix_srcfile_path=$lt_fix_srcfile_path
19853 # Set to "yes" if exported symbols are required.
19854 always_export_symbols=$always_export_symbols
19856 # The commands to list exported symbols.
19857 export_symbols_cmds=$lt_export_symbols_cmds
19859 # Symbols that should not be listed in the preloaded symbols.
19860 exclude_expsyms=$lt_exclude_expsyms
19862 # Symbols that must always be exported.
19863 include_expsyms=$lt_include_expsyms
19865 # Commands necessary for linking programs (against libraries) with templates.
19866 prelink_cmds=$lt_prelink_cmds
19868 # Specify filename containing input files.
19869 file_list_spec=$lt_file_list_spec
19871 # How to hardcode a shared library path into an executable.
19872 hardcode_action=$hardcode_action
19874 # The directories searched by this compiler when creating a shared library.
19875 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19877 # Dependencies to place before and after the objects being linked to
19878 # create a shared library.
19879 predep_objects=$lt_predep_objects
19880 postdep_objects=$lt_postdep_objects
19881 predeps=$lt_predeps
19882 postdeps=$lt_postdeps
19884 # The library search path used internally by the compiler when linking
19885 # a shared library.
19886 compiler_lib_search_path=$lt_compiler_lib_search_path
19888 # ### END LIBTOOL CONFIG
19890 _LT_EOF
19892 case $host_os in
19893 aix3*)
19894 cat <<\_LT_EOF >> "$cfgfile"
19895 # AIX sometimes has problems with the GCC collect2 program. For some
19896 # reason, if we set the COLLECT_NAMES environment variable, the problems
19897 # vanish in a puff of smoke.
19898 if test "X${COLLECT_NAMES+set}" != Xset; then
19899 COLLECT_NAMES=
19900 export COLLECT_NAMES
19902 _LT_EOF
19904 esac
19907 ltmain="$ac_aux_dir/ltmain.sh"
19910 # We use sed instead of cat because bash on DJGPP gets confused if
19911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19912 # text mode, it properly converts lines to CR/LF. This bash problem
19913 # is reportedly fixed, but why not run on old versions too?
19914 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19915 || (rm -f "$cfgfile"; exit 1)
19917 case $xsi_shell in
19918 yes)
19919 cat << \_LT_EOF >> "$cfgfile"
19921 # func_dirname file append nondir_replacement
19922 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19923 # otherwise set result to NONDIR_REPLACEMENT.
19924 func_dirname ()
19926 case ${1} in
19927 */*) func_dirname_result="${1%/*}${2}" ;;
19928 * ) func_dirname_result="${3}" ;;
19929 esac
19932 # func_basename file
19933 func_basename ()
19935 func_basename_result="${1##*/}"
19938 # func_dirname_and_basename file append nondir_replacement
19939 # perform func_basename and func_dirname in a single function
19940 # call:
19941 # dirname: Compute the dirname of FILE. If nonempty,
19942 # add APPEND to the result, otherwise set result
19943 # to NONDIR_REPLACEMENT.
19944 # value returned in "$func_dirname_result"
19945 # basename: Compute filename of FILE.
19946 # value retuned in "$func_basename_result"
19947 # Implementation must be kept synchronized with func_dirname
19948 # and func_basename. For efficiency, we do not delegate to
19949 # those functions but instead duplicate the functionality here.
19950 func_dirname_and_basename ()
19952 case ${1} in
19953 */*) func_dirname_result="${1%/*}${2}" ;;
19954 * ) func_dirname_result="${3}" ;;
19955 esac
19956 func_basename_result="${1##*/}"
19959 # func_stripname prefix suffix name
19960 # strip PREFIX and SUFFIX off of NAME.
19961 # PREFIX and SUFFIX must not contain globbing or regex special
19962 # characters, hashes, percent signs, but SUFFIX may contain a leading
19963 # dot (in which case that matches only a dot).
19964 func_stripname ()
19966 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19967 # positional parameters, so assign one to ordinary parameter first.
19968 func_stripname_result=${3}
19969 func_stripname_result=${func_stripname_result#"${1}"}
19970 func_stripname_result=${func_stripname_result%"${2}"}
19973 # func_opt_split
19974 func_opt_split ()
19976 func_opt_split_opt=${1%%=*}
19977 func_opt_split_arg=${1#*=}
19980 # func_lo2o object
19981 func_lo2o ()
19983 case ${1} in
19984 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19985 *) func_lo2o_result=${1} ;;
19986 esac
19989 # func_xform libobj-or-source
19990 func_xform ()
19992 func_xform_result=${1%.*}.lo
19995 # func_arith arithmetic-term...
19996 func_arith ()
19998 func_arith_result=$(( $* ))
20001 # func_len string
20002 # STRING may not start with a hyphen.
20003 func_len ()
20005 func_len_result=${#1}
20008 _LT_EOF
20010 *) # Bourne compatible functions.
20011 cat << \_LT_EOF >> "$cfgfile"
20013 # func_dirname file append nondir_replacement
20014 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20015 # otherwise set result to NONDIR_REPLACEMENT.
20016 func_dirname ()
20018 # Extract subdirectory from the argument.
20019 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20020 if test "X$func_dirname_result" = "X${1}"; then
20021 func_dirname_result="${3}"
20022 else
20023 func_dirname_result="$func_dirname_result${2}"
20027 # func_basename file
20028 func_basename ()
20030 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20034 # func_stripname prefix suffix name
20035 # strip PREFIX and SUFFIX off of NAME.
20036 # PREFIX and SUFFIX must not contain globbing or regex special
20037 # characters, hashes, percent signs, but SUFFIX may contain a leading
20038 # dot (in which case that matches only a dot).
20039 # func_strip_suffix prefix name
20040 func_stripname ()
20042 case ${2} in
20043 .*) func_stripname_result=`$ECHO "X${3}" \
20044 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20045 *) func_stripname_result=`$ECHO "X${3}" \
20046 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20047 esac
20050 # sed scripts:
20051 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20052 my_sed_long_arg='1s/^-[^=]*=//'
20054 # func_opt_split
20055 func_opt_split ()
20057 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20058 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20061 # func_lo2o object
20062 func_lo2o ()
20064 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20067 # func_xform libobj-or-source
20068 func_xform ()
20070 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20073 # func_arith arithmetic-term...
20074 func_arith ()
20076 func_arith_result=`expr "$@"`
20079 # func_len string
20080 # STRING may not start with a hyphen.
20081 func_len ()
20083 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20086 _LT_EOF
20087 esac
20089 case $lt_shell_append in
20090 yes)
20091 cat << \_LT_EOF >> "$cfgfile"
20093 # func_append var value
20094 # Append VALUE to the end of shell variable VAR.
20095 func_append ()
20097 eval "$1+=\$2"
20099 _LT_EOF
20102 cat << \_LT_EOF >> "$cfgfile"
20104 # func_append var value
20105 # Append VALUE to the end of shell variable VAR.
20106 func_append ()
20108 eval "$1=\$$1\$2"
20111 _LT_EOF
20113 esac
20116 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20117 || (rm -f "$cfgfile"; exit 1)
20119 mv -f "$cfgfile" "$ofile" ||
20120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20121 chmod +x "$ofile"
20124 cat <<_LT_EOF >> "$ofile"
20126 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20128 # The linker used to build libraries.
20129 LD=$lt_LD_CXX
20131 # Commands used to build an old-style archive.
20132 old_archive_cmds=$lt_old_archive_cmds_CXX
20134 # A language specific compiler.
20135 CC=$lt_compiler_CXX
20137 # Is the compiler the GNU compiler?
20138 with_gcc=$GCC_CXX
20140 # Compiler flag to turn off builtin functions.
20141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20143 # How to pass a linker flag through the compiler.
20144 wl=$lt_lt_prog_compiler_wl_CXX
20146 # Additional compiler flags for building library objects.
20147 pic_flag=$lt_lt_prog_compiler_pic_CXX
20149 # Compiler flag to prevent dynamic linking.
20150 link_static_flag=$lt_lt_prog_compiler_static_CXX
20152 # Does compiler simultaneously support -c and -o options?
20153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20155 # Whether or not to add -lc for building shared libraries.
20156 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20158 # Whether or not to disallow shared libs when runtime libs are static.
20159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20161 # Compiler flag to allow reflexive dlopens.
20162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20164 # Compiler flag to generate shared objects directly from archives.
20165 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20167 # Whether the compiler copes with passing no objects directly.
20168 compiler_needs_object=$lt_compiler_needs_object_CXX
20170 # Create an old-style archive from a shared archive.
20171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20173 # Create a temporary old-style archive to link instead of a shared archive.
20174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20176 # Commands used to build a shared archive.
20177 archive_cmds=$lt_archive_cmds_CXX
20178 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20180 # Commands used to build a loadable module if different from building
20181 # a shared archive.
20182 module_cmds=$lt_module_cmds_CXX
20183 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20185 # Whether we are building with GNU ld or not.
20186 with_gnu_ld=$lt_with_gnu_ld_CXX
20188 # Flag that allows shared libraries with undefined symbols to be built.
20189 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20191 # Flag that enforces no undefined symbols.
20192 no_undefined_flag=$lt_no_undefined_flag_CXX
20194 # Flag to hardcode \$libdir into a binary during linking.
20195 # This must work even if \$libdir does not exist
20196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20198 # If ld is used when linking, flag to hardcode \$libdir into a binary
20199 # during linking. This must work even if \$libdir does not exist.
20200 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20202 # Whether we need a single "-rpath" flag with a separated argument.
20203 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20205 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20206 # DIR into the resulting binary.
20207 hardcode_direct=$hardcode_direct_CXX
20209 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20210 # DIR into the resulting binary and the resulting library dependency is
20211 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20212 # library is relocated.
20213 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20215 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20216 # into the resulting binary.
20217 hardcode_minus_L=$hardcode_minus_L_CXX
20219 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20220 # into the resulting binary.
20221 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20223 # Set to "yes" if building a shared library automatically hardcodes DIR
20224 # into the library and all subsequent libraries and executables linked
20225 # against it.
20226 hardcode_automatic=$hardcode_automatic_CXX
20228 # Set to yes if linker adds runtime paths of dependent libraries
20229 # to runtime path list.
20230 inherit_rpath=$inherit_rpath_CXX
20232 # Whether libtool must link a program against all its dependency libraries.
20233 link_all_deplibs=$link_all_deplibs_CXX
20235 # Fix the shell variable \$srcfile for the compiler.
20236 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20238 # Set to "yes" if exported symbols are required.
20239 always_export_symbols=$always_export_symbols_CXX
20241 # The commands to list exported symbols.
20242 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20244 # Symbols that should not be listed in the preloaded symbols.
20245 exclude_expsyms=$lt_exclude_expsyms_CXX
20247 # Symbols that must always be exported.
20248 include_expsyms=$lt_include_expsyms_CXX
20250 # Commands necessary for linking programs (against libraries) with templates.
20251 prelink_cmds=$lt_prelink_cmds_CXX
20253 # Specify filename containing input files.
20254 file_list_spec=$lt_file_list_spec_CXX
20256 # How to hardcode a shared library path into an executable.
20257 hardcode_action=$hardcode_action_CXX
20259 # The directories searched by this compiler when creating a shared library.
20260 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20262 # Dependencies to place before and after the objects being linked to
20263 # create a shared library.
20264 predep_objects=$lt_predep_objects_CXX
20265 postdep_objects=$lt_postdep_objects_CXX
20266 predeps=$lt_predeps_CXX
20267 postdeps=$lt_postdeps_CXX
20269 # The library search path used internally by the compiler when linking
20270 # a shared library.
20271 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20273 # ### END LIBTOOL TAG CONFIG: CXX
20274 _LT_EOF
20277 as_fn_exit 0
20278 _LTEOF
20279 chmod +x "$CONFIG_LT"
20281 # configure is writing to config.log, but config.lt does its own redirection,
20282 # appending to config.log, which fails on DOS, as config.log is still kept
20283 # open by configure. Here we exec the FD to /dev/null, effectively closing
20284 # config.log, so it can be properly (re)opened and appended to by config.lt.
20285 if test "$no_create" != yes; then
20286 lt_cl_success=:
20287 test "$silent" = yes &&
20288 lt_config_lt_args="$lt_config_lt_args --quiet"
20289 exec 5>/dev/null
20290 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
20291 exec 5>>config.log
20292 $lt_cl_success || as_fn_exit 1
20297 if test "x$GCC" = "xyes"; then
20298 case " $CFLAGS " in
20299 *[\ \ ]-Wall[\ \ ]*) ;;
20300 *) CFLAGS="$CFLAGS -Wall" ;;
20301 esac
20304 CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES"
20306 if test "$glib_native_win32" = "yes"; then
20307 if test x$enable_static = xyes -a x$enable_shared = xyes; then
20308 as_fn_error "Can not build both shared and static at the same time on Windows." "$LINENO" 5
20310 if test x$enable_static = xyes; then
20311 glib_win32_static_compilation=yes
20312 GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
20313 #define GOBJECT_STATIC_COMPILATION 1"
20317 if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
20318 OS_WIN32_AND_DLL_COMPILATION_TRUE=
20319 OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
20320 else
20321 OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
20322 OS_WIN32_AND_DLL_COMPILATION_FALSE=
20326 if test $cross_compiling != yes ; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
20328 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
20329 glib_save_LIBS=$LIBS
20330 LIBS="$LIBS -lm"
20331 if test "$cross_compiling" = yes; then :
20332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20334 as_fn_error "cannot run test program while cross compiling
20335 See \`config.log' for more details." "$LINENO" 5; }
20336 else
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339 #include <math.h>
20340 int main (void) { return (log(1) != log(1.)); }
20341 _ACEOF
20342 if ac_fn_c_try_run "$LINENO"; then :
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20344 $as_echo "none needed" >&6; }
20345 else
20346 glib_save_CFLAGS=$CFLAGS
20347 CFLAGS="$CFLAGS -std1"
20348 if test "$cross_compiling" = yes; then :
20349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20351 as_fn_error "cannot run test program while cross compiling
20352 See \`config.log' for more details." "$LINENO" 5; }
20353 else
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356 #include <math.h>
20357 int main (void) { return (log(1) != log(1.)); }
20358 _ACEOF
20359 if ac_fn_c_try_run "$LINENO"; then :
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
20361 $as_echo "-std1" >&6; }
20362 else
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20364 $as_echo "" >&6; }
20365 CFLAGS=$glib_save_CFLAGS
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
20367 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
20370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20371 conftest.$ac_objext conftest.beam conftest.$ac_ext
20376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20377 conftest.$ac_objext conftest.beam conftest.$ac_ext
20380 LIBS=$glib_save_LIBS
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
20384 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
20385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20387 #include <dirent.h>
20389 main ()
20391 DIR *dir;
20393 return 0;
20395 _ACEOF
20396 if ac_fn_c_try_compile "$LINENO"; then :
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20398 $as_echo "none needed" >&6; }
20399 else
20400 glib_save_CFLAGS=$CFLAGS
20401 CFLAGS="$CFLAGS -posix"
20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h. */
20404 #include <dirent.h>
20406 main ()
20408 DIR *dir;
20410 return 0;
20412 _ACEOF
20413 if ac_fn_c_try_compile "$LINENO"; then :
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
20415 $as_echo "-posix" >&6; }
20416 else
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20418 $as_echo "" >&6; }
20419 CFLAGS=$glib_save_CFLAGS
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
20421 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427 # Checks for header files.
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20429 $as_echo_n "checking for ANSI C header files... " >&6; }
20430 if test "${ac_cv_header_stdc+set}" = set; then :
20431 $as_echo_n "(cached) " >&6
20432 else
20433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435 #include <stdlib.h>
20436 #include <stdarg.h>
20437 #include <string.h>
20438 #include <float.h>
20441 main ()
20445 return 0;
20447 _ACEOF
20448 if ac_fn_c_try_compile "$LINENO"; then :
20449 ac_cv_header_stdc=yes
20450 else
20451 ac_cv_header_stdc=no
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 if test $ac_cv_header_stdc = yes; then
20456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20459 #include <string.h>
20461 _ACEOF
20462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20463 $EGREP "memchr" >/dev/null 2>&1; then :
20465 else
20466 ac_cv_header_stdc=no
20468 rm -f conftest*
20472 if test $ac_cv_header_stdc = yes; then
20473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20476 #include <stdlib.h>
20478 _ACEOF
20479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20480 $EGREP "free" >/dev/null 2>&1; then :
20482 else
20483 ac_cv_header_stdc=no
20485 rm -f conftest*
20489 if test $ac_cv_header_stdc = yes; then
20490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20491 if test "$cross_compiling" = yes; then :
20493 else
20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20496 #include <ctype.h>
20497 #include <stdlib.h>
20498 #if ((' ' & 0x0FF) == 0x020)
20499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20501 #else
20502 # define ISLOWER(c) \
20503 (('a' <= (c) && (c) <= 'i') \
20504 || ('j' <= (c) && (c) <= 'r') \
20505 || ('s' <= (c) && (c) <= 'z'))
20506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20507 #endif
20509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20511 main ()
20513 int i;
20514 for (i = 0; i < 256; i++)
20515 if (XOR (islower (i), ISLOWER (i))
20516 || toupper (i) != TOUPPER (i))
20517 return 2;
20518 return 0;
20520 _ACEOF
20521 if ac_fn_c_try_run "$LINENO"; then :
20523 else
20524 ac_cv_header_stdc=no
20526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20527 conftest.$ac_objext conftest.beam conftest.$ac_ext
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20533 $as_echo "$ac_cv_header_stdc" >&6; }
20534 if test $ac_cv_header_stdc = yes; then
20536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20541 # Checks for library functions.
20542 for ac_func in vprintf
20543 do :
20544 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20545 if test "x$ac_cv_func_vprintf" = x""yes; then :
20546 cat >>confdefs.h <<_ACEOF
20547 #define HAVE_VPRINTF 1
20548 _ACEOF
20550 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20551 if test "x$ac_cv_func__doprnt" = x""yes; then :
20553 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20558 done
20561 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20562 # for constant arguments. Useless!
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20564 $as_echo_n "checking for working alloca.h... " >&6; }
20565 if test "${ac_cv_working_alloca_h+set}" = set; then :
20566 $as_echo_n "(cached) " >&6
20567 else
20568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20569 /* end confdefs.h. */
20570 #include <alloca.h>
20572 main ()
20574 char *p = (char *) alloca (2 * sizeof (int));
20575 if (p) return 0;
20577 return 0;
20579 _ACEOF
20580 if ac_fn_c_try_link "$LINENO"; then :
20581 ac_cv_working_alloca_h=yes
20582 else
20583 ac_cv_working_alloca_h=no
20585 rm -f core conftest.err conftest.$ac_objext \
20586 conftest$ac_exeext conftest.$ac_ext
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20589 $as_echo "$ac_cv_working_alloca_h" >&6; }
20590 if test $ac_cv_working_alloca_h = yes; then
20592 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20597 $as_echo_n "checking for alloca... " >&6; }
20598 if test "${ac_cv_func_alloca_works+set}" = set; then :
20599 $as_echo_n "(cached) " >&6
20600 else
20601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602 /* end confdefs.h. */
20603 #ifdef __GNUC__
20604 # define alloca __builtin_alloca
20605 #else
20606 # ifdef _MSC_VER
20607 # include <malloc.h>
20608 # define alloca _alloca
20609 # else
20610 # ifdef HAVE_ALLOCA_H
20611 # include <alloca.h>
20612 # else
20613 # ifdef _AIX
20614 #pragma alloca
20615 # else
20616 # ifndef alloca /* predefined by HP cc +Olibcalls */
20617 char *alloca ();
20618 # endif
20619 # endif
20620 # endif
20621 # endif
20622 #endif
20625 main ()
20627 char *p = (char *) alloca (1);
20628 if (p) return 0;
20630 return 0;
20632 _ACEOF
20633 if ac_fn_c_try_link "$LINENO"; then :
20634 ac_cv_func_alloca_works=yes
20635 else
20636 ac_cv_func_alloca_works=no
20638 rm -f core conftest.err conftest.$ac_objext \
20639 conftest$ac_exeext conftest.$ac_ext
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20642 $as_echo "$ac_cv_func_alloca_works" >&6; }
20644 if test $ac_cv_func_alloca_works = yes; then
20646 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20648 else
20649 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20650 # that cause trouble. Some versions do not even contain alloca or
20651 # contain a buggy version. If you still want to use their alloca,
20652 # use ar to extract alloca.o from them instead of compiling alloca.c.
20654 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20656 $as_echo "#define C_ALLOCA 1" >>confdefs.h
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20660 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20661 if test "${ac_cv_os_cray+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20663 else
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20666 #if defined CRAY && ! defined CRAY2
20667 webecray
20668 #else
20669 wenotbecray
20670 #endif
20672 _ACEOF
20673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20674 $EGREP "webecray" >/dev/null 2>&1; then :
20675 ac_cv_os_cray=yes
20676 else
20677 ac_cv_os_cray=no
20679 rm -f conftest*
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20683 $as_echo "$ac_cv_os_cray" >&6; }
20684 if test $ac_cv_os_cray = yes; then
20685 for ac_func in _getb67 GETB67 getb67; do
20686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20687 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20688 eval as_val=\$$as_ac_var
20689 if test "x$as_val" = x""yes; then :
20691 cat >>confdefs.h <<_ACEOF
20692 #define CRAY_STACKSEG_END $ac_func
20693 _ACEOF
20695 break
20698 done
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20702 $as_echo_n "checking stack direction for C alloca... " >&6; }
20703 if test "${ac_cv_c_stack_direction+set}" = set; then :
20704 $as_echo_n "(cached) " >&6
20705 else
20706 if test "$cross_compiling" = yes; then :
20707 ac_cv_c_stack_direction=0
20708 else
20709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710 /* end confdefs.h. */
20711 $ac_includes_default
20713 find_stack_direction ()
20715 static char *addr = 0;
20716 auto char dummy;
20717 if (addr == 0)
20719 addr = &dummy;
20720 return find_stack_direction ();
20722 else
20723 return (&dummy > addr) ? 1 : -1;
20727 main ()
20729 return find_stack_direction () < 0;
20731 _ACEOF
20732 if ac_fn_c_try_run "$LINENO"; then :
20733 ac_cv_c_stack_direction=1
20734 else
20735 ac_cv_c_stack_direction=-1
20737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20738 conftest.$ac_objext conftest.beam conftest.$ac_ext
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20743 $as_echo "$ac_cv_c_stack_direction" >&6; }
20744 cat >>confdefs.h <<_ACEOF
20745 #define STACK_DIRECTION $ac_cv_c_stack_direction
20746 _ACEOF
20751 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
20752 do :
20753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20755 eval as_val=\$$as_ac_var
20756 if test "x$as_val" = x""yes; then :
20757 cat >>confdefs.h <<_ACEOF
20758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20759 _ACEOF
20762 done
20764 for ac_func in atexit on_exit timegm gmtime_r
20765 do :
20766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20768 eval as_val=\$$as_ac_var
20769 if test "x$as_val" = x""yes; then :
20770 cat >>confdefs.h <<_ACEOF
20771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20772 _ACEOF
20775 done
20778 # The cast to long int works around a bug in the HP C Compiler
20779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20781 # This bug is HP SR number 8606223364.
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
20783 $as_echo_n "checking size of char... " >&6; }
20784 if test "${ac_cv_sizeof_char+set}" = set; then :
20785 $as_echo_n "(cached) " >&6
20786 else
20787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
20789 else
20790 if test "$ac_cv_type_char" = yes; then
20791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20793 { as_fn_set_status 77
20794 as_fn_error "cannot compute sizeof (char)
20795 See \`config.log' for more details." "$LINENO" 5; }; }
20796 else
20797 ac_cv_sizeof_char=0
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
20803 $as_echo "$ac_cv_sizeof_char" >&6; }
20807 cat >>confdefs.h <<_ACEOF
20808 #define SIZEOF_CHAR $ac_cv_sizeof_char
20809 _ACEOF
20812 # The cast to long int works around a bug in the HP C Compiler
20813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20815 # This bug is HP SR number 8606223364.
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20817 $as_echo_n "checking size of short... " >&6; }
20818 if test "${ac_cv_sizeof_short+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20820 else
20821 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
20823 else
20824 if test "$ac_cv_type_short" = yes; then
20825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20827 { as_fn_set_status 77
20828 as_fn_error "cannot compute sizeof (short)
20829 See \`config.log' for more details." "$LINENO" 5; }; }
20830 else
20831 ac_cv_sizeof_short=0
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20837 $as_echo "$ac_cv_sizeof_short" >&6; }
20841 cat >>confdefs.h <<_ACEOF
20842 #define SIZEOF_SHORT $ac_cv_sizeof_short
20843 _ACEOF
20846 # The cast to long int works around a bug in the HP C Compiler
20847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20849 # This bug is HP SR number 8606223364.
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20851 $as_echo_n "checking size of long... " >&6; }
20852 if test "${ac_cv_sizeof_long+set}" = set; then :
20853 $as_echo_n "(cached) " >&6
20854 else
20855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
20857 else
20858 if test "$ac_cv_type_long" = yes; then
20859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20861 { as_fn_set_status 77
20862 as_fn_error "cannot compute sizeof (long)
20863 See \`config.log' for more details." "$LINENO" 5; }; }
20864 else
20865 ac_cv_sizeof_long=0
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20871 $as_echo "$ac_cv_sizeof_long" >&6; }
20875 cat >>confdefs.h <<_ACEOF
20876 #define SIZEOF_LONG $ac_cv_sizeof_long
20877 _ACEOF
20880 # The cast to long int works around a bug in the HP C Compiler
20881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20883 # This bug is HP SR number 8606223364.
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20885 $as_echo_n "checking size of int... " >&6; }
20886 if test "${ac_cv_sizeof_int+set}" = set; then :
20887 $as_echo_n "(cached) " >&6
20888 else
20889 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20891 else
20892 if test "$ac_cv_type_int" = yes; then
20893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20895 { as_fn_set_status 77
20896 as_fn_error "cannot compute sizeof (int)
20897 See \`config.log' for more details." "$LINENO" 5; }; }
20898 else
20899 ac_cv_sizeof_int=0
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20905 $as_echo "$ac_cv_sizeof_int" >&6; }
20909 cat >>confdefs.h <<_ACEOF
20910 #define SIZEOF_INT $ac_cv_sizeof_int
20911 _ACEOF
20914 # The cast to long int works around a bug in the HP C Compiler
20915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20917 # This bug is HP SR number 8606223364.
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20919 $as_echo_n "checking size of void *... " >&6; }
20920 if test "${ac_cv_sizeof_void_p+set}" = set; then :
20921 $as_echo_n "(cached) " >&6
20922 else
20923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
20925 else
20926 if test "$ac_cv_type_void_p" = yes; then
20927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20929 { as_fn_set_status 77
20930 as_fn_error "cannot compute sizeof (void *)
20931 See \`config.log' for more details." "$LINENO" 5; }; }
20932 else
20933 ac_cv_sizeof_void_p=0
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20939 $as_echo "$ac_cv_sizeof_void_p" >&6; }
20943 cat >>confdefs.h <<_ACEOF
20944 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20945 _ACEOF
20948 # The cast to long int works around a bug in the HP C Compiler
20949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20951 # This bug is HP SR number 8606223364.
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20953 $as_echo_n "checking size of long long... " >&6; }
20954 if test "${ac_cv_sizeof_long_long+set}" = set; then :
20955 $as_echo_n "(cached) " >&6
20956 else
20957 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
20959 else
20960 if test "$ac_cv_type_long_long" = yes; then
20961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20963 { as_fn_set_status 77
20964 as_fn_error "cannot compute sizeof (long long)
20965 See \`config.log' for more details." "$LINENO" 5; }; }
20966 else
20967 ac_cv_sizeof_long_long=0
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20973 $as_echo "$ac_cv_sizeof_long_long" >&6; }
20977 cat >>confdefs.h <<_ACEOF
20978 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20979 _ACEOF
20982 # The cast to long int works around a bug in the HP C Compiler
20983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20985 # This bug is HP SR number 8606223364.
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
20987 $as_echo_n "checking size of __int64... " >&6; }
20988 if test "${ac_cv_sizeof___int64+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20990 else
20991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
20993 else
20994 if test "$ac_cv_type___int64" = yes; then
20995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20997 { as_fn_set_status 77
20998 as_fn_error "cannot compute sizeof (__int64)
20999 See \`config.log' for more details." "$LINENO" 5; }; }
21000 else
21001 ac_cv_sizeof___int64=0
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
21007 $as_echo "$ac_cv_sizeof___int64" >&6; }
21011 cat >>confdefs.h <<_ACEOF
21012 #define SIZEOF___INT64 $ac_cv_sizeof___int64
21013 _ACEOF
21017 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
21019 else
21020 as_fn_error "
21021 *** GLib requires a 64 bit type. You might want to consider
21022 *** using the GNU C compiler.
21023 " "$LINENO" 5
21026 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
21027 # long long is a 64 bit integer.
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21029 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21030 if test "${glib_cv_long_long_format+set}" = set; then :
21031 $as_echo_n "(cached) " >&6
21032 else
21034 for format in ll q I64; do
21035 if test "$cross_compiling" = yes; then :
21037 else
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21040 #include <stdio.h>
21041 int main()
21043 long long b, a = -0x3AFAFAFAFAFAFAFALL;
21044 char buffer[1000];
21045 sprintf (buffer, "%${format}u", a);
21046 sscanf (buffer, "%${format}u", &b);
21047 exit (b!=a);
21050 _ACEOF
21051 if ac_fn_c_try_run "$LINENO"; then :
21052 glib_cv_long_long_format=${format}
21053 break
21055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21056 conftest.$ac_objext conftest.beam conftest.$ac_ext
21059 done
21062 if test -n "$glib_cv_long_long_format"; then
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21064 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21066 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21068 if test x"$glib_cv_long_long_format" = xI64; then
21070 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21073 else
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21075 $as_echo "none" >&6; }
21077 elif test x$ac_cv_sizeof___int64 = x8; then
21078 # __int64 is a 64 bit integer.
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21080 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21081 # We know this is MSVCRT.DLL, and what the formats are
21082 glib_cv_long_long_format=I64
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21084 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21086 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21089 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21094 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21095 if test "${ac_cv_c_const+set}" = set; then :
21096 $as_echo_n "(cached) " >&6
21097 else
21098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21102 main ()
21104 /* FIXME: Include the comments suggested by Paul. */
21105 #ifndef __cplusplus
21106 /* Ultrix mips cc rejects this. */
21107 typedef int charset[2];
21108 const charset cs;
21109 /* SunOS 4.1.1 cc rejects this. */
21110 char const *const *pcpcc;
21111 char **ppc;
21112 /* NEC SVR4.0.2 mips cc rejects this. */
21113 struct point {int x, y;};
21114 static struct point const zero = {0,0};
21115 /* AIX XL C 1.02.0.0 rejects this.
21116 It does not let you subtract one const X* pointer from another in
21117 an arm of an if-expression whose if-part is not a constant
21118 expression */
21119 const char *g = "string";
21120 pcpcc = &g + (g ? g-g : 0);
21121 /* HPUX 7.0 cc rejects these. */
21122 ++pcpcc;
21123 ppc = (char**) pcpcc;
21124 pcpcc = (char const *const *) ppc;
21125 { /* SCO 3.2v4 cc rejects this. */
21126 char *t;
21127 char const *s = 0 ? (char *) 0 : (char const *) 0;
21129 *t++ = 0;
21130 if (s) return 0;
21132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21133 int x[] = {25, 17};
21134 const int *foo = &x[0];
21135 ++foo;
21137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21138 typedef const int *iptr;
21139 iptr p = 0;
21140 ++p;
21142 { /* AIX XL C 1.02.0.0 rejects this saying
21143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21144 struct s { int j; const int *ap[3]; };
21145 struct s *b; b->j = 5;
21147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21148 const int foo = 10;
21149 if (!foo) return 0;
21151 return !cs[0] && !zero.x;
21152 #endif
21155 return 0;
21157 _ACEOF
21158 if ac_fn_c_try_compile "$LINENO"; then :
21159 ac_cv_c_const=yes
21160 else
21161 ac_cv_c_const=no
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21166 $as_echo "$ac_cv_c_const" >&6; }
21167 if test $ac_cv_c_const = no; then
21169 $as_echo "#define const /**/" >>confdefs.h
21174 SANE_MALLOC_PROTOS=no
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
21176 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
21177 glib_save_CFLAGS=$CFLAGS
21178 if test "x$GCC" = "xyes"; then
21179 CFLAGS="$CFLAGS -Werror"
21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21181 /* end confdefs.h. */
21182 #include <stdlib.h>
21184 main ()
21187 void* (*my_calloc_p) (size_t, size_t) = calloc;
21188 void* (*my_malloc_p) (size_t) = malloc;
21189 void (*my_free_p) (void*) = free;
21190 void* (*my_realloc_p) (void*, size_t) = realloc;
21191 my_calloc_p = 0;
21192 my_malloc_p = 0;
21193 my_free_p = 0;
21194 my_realloc_p = 0;
21197 return 0;
21199 _ACEOF
21200 if ac_fn_c_try_compile "$LINENO"; then :
21202 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
21204 SANE_MALLOC_PROTOS=yes
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
21209 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
21210 CFLAGS=$glib_save_CFLAGS
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
21213 $as_echo_n "checking for growing stack pointer... " >&6; }
21214 if test "${glib_cv_stack_grows+set}" = set; then :
21215 $as_echo_n "(cached) " >&6
21216 else
21218 if test "$cross_compiling" = yes; then :
21219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21221 as_fn_error "cannot run test program while cross compiling
21222 See \`config.log' for more details." "$LINENO" 5; }
21223 else
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21227 volatile int *a = 0, *b = 0;
21228 void foo (void);
21229 int main () { volatile int y = 7; a = &y; foo (); return b > a; }
21230 void foo (void) { volatile int x = 5; b = &x; }
21232 _ACEOF
21233 if ac_fn_c_try_run "$LINENO"; then :
21234 glib_cv_stack_grows=no
21236 else
21237 glib_cv_stack_grows=yes
21240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21241 conftest.$ac_objext conftest.beam conftest.$ac_ext
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
21247 $as_echo "$glib_cv_stack_grows" >&6; }
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
21250 $as_echo_n "checking for __inline... " >&6; }
21251 if test "${glib_cv_has__inline+set}" = set; then :
21252 $as_echo_n "(cached) " >&6
21253 else
21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256 /* end confdefs.h. */
21258 __inline int foo () { return 0; }
21259 int main () { return foo (); }
21261 _ACEOF
21262 if ac_fn_c_try_compile "$LINENO"; then :
21263 glib_cv_has__inline=yes
21265 else
21266 glib_cv_has__inline=no
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
21273 $as_echo "$glib_cv_has__inline" >&6; }
21274 case x$glib_cv_has__inline in
21275 xyes)
21276 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
21278 esac
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
21280 $as_echo_n "checking for __inline__... " >&6; }
21281 if test "${glib_cv_has__inline__+set}" = set; then :
21282 $as_echo_n "(cached) " >&6
21283 else
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21288 __inline__ int foo () { return 0; }
21289 int main () { return foo (); }
21291 _ACEOF
21292 if ac_fn_c_try_compile "$LINENO"; then :
21293 glib_cv_has__inline__=yes
21295 else
21296 glib_cv_has__inline__=no
21299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
21303 $as_echo "$glib_cv_has__inline__" >&6; }
21304 case x$glib_cv_has__inline__ in
21305 xyes)
21306 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
21308 esac
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21310 $as_echo_n "checking for inline... " >&6; }
21311 if test "${glib_cv_hasinline+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21313 else
21315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h. */
21318 #undef inline
21319 inline int foo () { return 0; }
21320 int main () { return foo (); }
21322 _ACEOF
21323 if ac_fn_c_try_compile "$LINENO"; then :
21324 glib_cv_hasinline=yes
21326 else
21327 glib_cv_hasinline=no
21330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
21334 $as_echo "$glib_cv_hasinline" >&6; }
21335 case x$glib_cv_hasinline in
21336 xyes)
21337 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
21339 esac
21341 # if we can use inline functions in headers
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
21343 $as_echo_n "checking if inline functions in headers work... " >&6; }
21344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21347 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
21348 # undef inline
21349 # define inline __inline__
21350 #elif !defined (G_HAVE_INLINE)
21351 # undef inline
21352 # if defined (G_HAVE___INLINE__)
21353 # define inline __inline__
21354 # elif defined (G_HAVE___INLINE)
21355 # define inline __inline
21356 # endif
21357 #endif
21359 int glib_test_func2 (int);
21361 static inline int
21362 glib_test_func1 (void) {
21363 return glib_test_func2 (1);
21367 main (void) {
21368 int i = 1;
21370 _ACEOF
21371 if ac_fn_c_try_link "$LINENO"; then :
21372 g_can_inline=yes
21373 else
21374 g_can_inline=no
21376 rm -f core conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
21379 $as_echo "$g_can_inline" >&6; }
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
21382 $as_echo_n "checking for working do while(0) macros... " >&6; }
21383 if test "${g_cv_support_dowhile_macros+set}" = set; then :
21384 $as_echo_n "(cached) " >&6
21385 else
21387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388 /* end confdefs.h. */
21391 main ()
21394 #define STMT_START do
21395 #define STMT_END while(0)
21396 #define STMT_TEST STMT_START { i = 0; } STMT_END
21397 int main(void) { int i = 1; STMT_TEST; return i; }
21399 return 0;
21401 _ACEOF
21402 if ac_fn_c_try_compile "$LINENO"; then :
21403 g_cv_support_dowhile_macros=yes
21404 else
21405 g_cv_support_dowhile_macros=no
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
21411 $as_echo "$g_cv_support_dowhile_macros" >&6; }
21412 if test x$g_cv_support_dowhile_macros = xyes; then
21414 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
21418 # check for flavours of varargs macros
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
21420 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21425 main ()
21428 int a(int p1, int p2, int p3);
21429 #define call_a(...) a(1,__VA_ARGS__)
21430 call_a(2,3);
21433 return 0;
21435 _ACEOF
21436 if ac_fn_c_try_compile "$LINENO"; then :
21437 g_have_iso_c_varargs=yes
21438 else
21439 g_have_iso_c_varargs=no
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
21443 $as_echo "$g_have_iso_c_varargs" >&6; }
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
21446 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
21447 if test "$CXX" = ""; then
21448 g_have_iso_cxx_varargs=no
21449 else
21450 ac_ext=cpp
21451 ac_cpp='$CXXCPP $CPPFLAGS'
21452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457 /* end confdefs.h. */
21460 main ()
21463 int a(int p1, int p2, int p3);
21464 #define call_a(...) a(1,__VA_ARGS__)
21465 call_a(2,3);
21468 return 0;
21470 _ACEOF
21471 if ac_fn_cxx_try_compile "$LINENO"; then :
21472 g_have_iso_cxx_varargs=yes
21473 else
21474 g_have_iso_cxx_varargs=no
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477 ac_ext=c
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
21485 $as_echo "$g_have_iso_cxx_varargs" >&6; }
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
21488 $as_echo_n "checking for GNUC varargs macros... " >&6; }
21489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21490 /* end confdefs.h. */
21493 main ()
21496 int a(int p1, int p2, int p3);
21497 #define call_a(params...) a(1,params)
21498 call_a(2,3);
21501 return 0;
21503 _ACEOF
21504 if ac_fn_c_try_compile "$LINENO"; then :
21505 g_have_gnuc_varargs=yes
21506 else
21507 g_have_gnuc_varargs=no
21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
21511 $as_echo "$g_have_gnuc_varargs" >&6; }
21513 # check for GNUC visibility support
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
21515 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h. */
21519 void
21520 __attribute__ ((visibility ("hidden")))
21521 f_hidden (void)
21524 void
21525 __attribute__ ((visibility ("internal")))
21526 f_internal (void)
21529 void
21530 __attribute__ ((visibility ("protected")))
21531 f_protected (void)
21534 void
21535 __attribute__ ((visibility ("default")))
21536 f_default (void)
21539 int main (int argc, char **argv)
21541 f_hidden();
21542 f_internal();
21543 f_protected();
21544 f_default();
21545 return 0;
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 glib_ac_compile_save="$ac_compile"
21551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
21552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21553 (eval $ac_compile) 2>conftest.err
21554 ac_status=$?
21555 if test -s conftest.err; then
21556 grep -v '^ *+' conftest.err >conftest.er1
21557 cat conftest.er1 >&5
21558 mv -f conftest.er1 conftest.err
21560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561 test $ac_status = 0; } &&
21562 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
21563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21567 test $ac_status = 0; }; }; then :
21568 g_have_gnuc_visibility=yes
21569 else
21570 echo "$as_me: failed program was:" >&5
21571 cat conftest.$ac_ext >&5
21572 g_have_gnuc_visibility=no
21574 ac_compile="$glib_ac_compile_save"
21575 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
21577 $as_echo "$g_have_gnuc_visibility" >&6; }
21578 if test x$g_have_gnuc_visibility = xyes; then
21579 HAVE_GNUC_VISIBILITY_TRUE=
21580 HAVE_GNUC_VISIBILITY_FALSE='#'
21581 else
21582 HAVE_GNUC_VISIBILITY_TRUE='#'
21583 HAVE_GNUC_VISIBILITY_FALSE=
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
21588 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21591 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
21592 #else
21593 # include "error: this is not Sun Studio."
21594 #endif
21597 main ()
21601 return 0;
21603 _ACEOF
21604 if ac_fn_c_try_compile "$LINENO"; then :
21605 g_have_sunstudio_visibility=yes
21606 else
21607 g_have_sunstudio_visibility=no
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
21611 $as_echo "$g_have_sunstudio_visibility" >&6; }
21612 if test x$g_have_sunstudio_visibility = xyes; then
21613 HAVE_SUNSTUDIO_VISIBILITY_TRUE=
21614 HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
21615 else
21616 HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
21617 HAVE_SUNSTUDIO_VISIBILITY_FALSE=
21621 # check for bytesex stuff
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21623 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21624 if test "${ac_cv_c_bigendian+set}" = set; then :
21625 $as_echo_n "(cached) " >&6
21626 else
21627 ac_cv_c_bigendian=unknown
21628 # See if we're dealing with a universal compiler.
21629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h. */
21631 #ifndef __APPLE_CC__
21632 not a universal capable compiler
21633 #endif
21634 typedef int dummy;
21636 _ACEOF
21637 if ac_fn_c_try_compile "$LINENO"; then :
21639 # Check for potential -arch flags. It is not universal unless
21640 # there are at least two -arch flags with different values.
21641 ac_arch=
21642 ac_prev=
21643 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21644 if test -n "$ac_prev"; then
21645 case $ac_word in
21646 i?86 | x86_64 | ppc | ppc64)
21647 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21648 ac_arch=$ac_word
21649 else
21650 ac_cv_c_bigendian=universal
21651 break
21654 esac
21655 ac_prev=
21656 elif test "x$ac_word" = "x-arch"; then
21657 ac_prev=arch
21659 done
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 if test $ac_cv_c_bigendian = unknown; then
21663 # See if sys/param.h defines the BYTE_ORDER macro.
21664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21665 /* end confdefs.h. */
21666 #include <sys/types.h>
21667 #include <sys/param.h>
21670 main ()
21672 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21673 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21674 && LITTLE_ENDIAN)
21675 bogus endian macros
21676 #endif
21679 return 0;
21681 _ACEOF
21682 if ac_fn_c_try_compile "$LINENO"; then :
21683 # It does; now see whether it defined to BIG_ENDIAN or not.
21684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h. */
21686 #include <sys/types.h>
21687 #include <sys/param.h>
21690 main ()
21692 #if BYTE_ORDER != BIG_ENDIAN
21693 not big endian
21694 #endif
21697 return 0;
21699 _ACEOF
21700 if ac_fn_c_try_compile "$LINENO"; then :
21701 ac_cv_c_bigendian=yes
21702 else
21703 ac_cv_c_bigendian=no
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709 if test $ac_cv_c_bigendian = unknown; then
21710 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21713 #include <limits.h>
21716 main ()
21718 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21719 bogus endian macros
21720 #endif
21723 return 0;
21725 _ACEOF
21726 if ac_fn_c_try_compile "$LINENO"; then :
21727 # It does; now see whether it defined to _BIG_ENDIAN or not.
21728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21729 /* end confdefs.h. */
21730 #include <limits.h>
21733 main ()
21735 #ifndef _BIG_ENDIAN
21736 not big endian
21737 #endif
21740 return 0;
21742 _ACEOF
21743 if ac_fn_c_try_compile "$LINENO"; then :
21744 ac_cv_c_bigendian=yes
21745 else
21746 ac_cv_c_bigendian=no
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752 if test $ac_cv_c_bigendian = unknown; then
21753 # Compile a test program.
21754 if test "$cross_compiling" = yes; then :
21755 # Try to guess by grepping values from an object file.
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h. */
21758 short int ascii_mm[] =
21759 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21760 short int ascii_ii[] =
21761 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21762 int use_ascii (int i) {
21763 return ascii_mm[i] + ascii_ii[i];
21765 short int ebcdic_ii[] =
21766 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21767 short int ebcdic_mm[] =
21768 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21769 int use_ebcdic (int i) {
21770 return ebcdic_mm[i] + ebcdic_ii[i];
21772 extern int foo;
21775 main ()
21777 return use_ascii (foo) == use_ebcdic (foo);
21779 return 0;
21781 _ACEOF
21782 if ac_fn_c_try_compile "$LINENO"; then :
21783 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21784 ac_cv_c_bigendian=yes
21786 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21787 if test "$ac_cv_c_bigendian" = unknown; then
21788 ac_cv_c_bigendian=no
21789 else
21790 # finding both strings is unlikely to happen, but who knows?
21791 ac_cv_c_bigendian=unknown
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 else
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21799 $ac_includes_default
21801 main ()
21804 /* Are we little or big endian? From Harbison&Steele. */
21805 union
21807 long int l;
21808 char c[sizeof (long int)];
21809 } u;
21810 u.l = 1;
21811 return u.c[sizeof (long int) - 1] == 1;
21814 return 0;
21816 _ACEOF
21817 if ac_fn_c_try_run "$LINENO"; then :
21818 ac_cv_c_bigendian=no
21819 else
21820 ac_cv_c_bigendian=yes
21822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21823 conftest.$ac_objext conftest.beam conftest.$ac_ext
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21829 $as_echo "$ac_cv_c_bigendian" >&6; }
21830 case $ac_cv_c_bigendian in #(
21831 yes)
21832 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21833 ;; #(
21835 ;; #(
21836 universal)
21838 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21840 ;; #(
21842 as_fn_error "unknown endianness
21843 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21844 esac
21846 if test x$ac_cv_c_bigendian = xuniversal ; then
21847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21848 /* end confdefs.h. */
21849 #include <endian.h>
21851 main ()
21853 #if __BYTE_ORDER == __BIG_ENDIAN
21854 #else
21855 #error Not a big endian.
21856 #endif
21858 return 0;
21860 _ACEOF
21861 if ac_fn_c_try_compile "$LINENO"; then :
21862 ac_cv_c_bigendian=yes
21864 else
21865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21866 /* end confdefs.h. */
21867 #include <endian.h>
21869 main ()
21871 #if __BYTE_ORDER == __LITTLE_ENDIAN
21872 #else
21873 #error Not a little endian.
21874 #endif
21876 return 0;
21878 _ACEOF
21879 if ac_fn_c_try_compile "$LINENO"; then :
21880 ac_cv_c_bigendian=no
21882 else
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
21884 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21892 # check for header files
21893 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
21894 do :
21895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21897 eval as_val=\$$as_ac_Header
21898 if test "x$as_val" = x""yes; then :
21899 cat >>confdefs.h <<_ACEOF
21900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21901 _ACEOF
21905 done
21907 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
21908 do :
21909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21911 eval as_val=\$$as_ac_Header
21912 if test "x$as_val" = x""yes; then :
21913 cat >>confdefs.h <<_ACEOF
21914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21915 _ACEOF
21919 done
21921 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
21922 do :
21923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21924 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21925 eval as_val=\$$as_ac_Header
21926 if test "x$as_val" = x""yes; then :
21927 cat >>confdefs.h <<_ACEOF
21928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21929 _ACEOF
21933 done
21935 for ac_header in sys/vfs.h sys/mount.h sys/vmount.h sys/statfs.h sys/statvfs.h
21936 do :
21937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21938 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21939 eval as_val=\$$as_ac_Header
21940 if test "x$as_val" = x""yes; then :
21941 cat >>confdefs.h <<_ACEOF
21942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21943 _ACEOF
21947 done
21949 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h sys/sysctl.h fstab.h
21950 do :
21951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21953 eval as_val=\$$as_ac_Header
21954 if test "x$as_val" = x""yes; then :
21955 cat >>confdefs.h <<_ACEOF
21956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21957 _ACEOF
21961 done
21963 for ac_header in sys/uio.h
21964 do :
21965 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
21966 if test "x$ac_cv_header_sys_uio_h" = x""yes; then :
21967 cat >>confdefs.h <<_ACEOF
21968 #define HAVE_SYS_UIO_H 1
21969 _ACEOF
21973 done
21976 # check for structure fields
21977 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
21978 if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then :
21980 cat >>confdefs.h <<_ACEOF
21981 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
21982 _ACEOF
21986 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
21987 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = x""yes; then :
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
21991 _ACEOF
21995 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
21996 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
21998 cat >>confdefs.h <<_ACEOF
21999 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22000 _ACEOF
22004 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
22005 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22007 cat >>confdefs.h <<_ACEOF
22008 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22009 _ACEOF
22013 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
22014 if test "x$ac_cv_member_struct_stat_st_ctimensec" = x""yes; then :
22016 cat >>confdefs.h <<_ACEOF
22017 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
22018 _ACEOF
22022 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
22023 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = x""yes; then :
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
22027 _ACEOF
22032 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
22033 #include <sys/stat.h>
22034 #include <unistd.h>
22035 #ifdef HAVE_SYS_STATFS_H
22036 #include <sys/statfs.h>
22037 #endif
22038 #ifdef HAVE_SYS_PARAM_H
22039 #include <sys/param.h>
22040 #endif
22041 #ifdef HAVE_SYS_MOUNT_H
22042 #include <sys/mount.h>
22043 #endif
22045 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
22047 cat >>confdefs.h <<_ACEOF
22048 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22049 _ACEOF
22053 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
22054 #include <sys/stat.h>
22055 #include <unistd.h>
22056 #ifdef HAVE_SYS_STATFS_H
22057 #include <sys/statfs.h>
22058 #endif
22059 #ifdef HAVE_SYS_PARAM_H
22060 #include <sys/param.h>
22061 #endif
22062 #ifdef HAVE_SYS_MOUNT_H
22063 #include <sys/mount.h>
22064 #endif
22066 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
22068 cat >>confdefs.h <<_ACEOF
22069 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22070 _ACEOF
22074 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
22075 #include <sys/stat.h>
22076 #include <unistd.h>
22077 #ifdef HAVE_SYS_STATFS_H
22078 #include <sys/statfs.h>
22079 #endif
22080 #ifdef HAVE_SYS_PARAM_H
22081 #include <sys/param.h>
22082 #endif
22083 #ifdef HAVE_SYS_MOUNT_H
22084 #include <sys/mount.h>
22085 #endif
22087 if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
22089 cat >>confdefs.h <<_ACEOF
22090 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
22091 _ACEOF
22095 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
22096 #include <sys/stat.h>
22097 #include <unistd.h>
22098 #ifdef HAVE_SYS_STATFS_H
22099 #include <sys/statfs.h>
22100 #endif
22101 #ifdef HAVE_SYS_PARAM_H
22102 #include <sys/param.h>
22103 #endif
22104 #ifdef HAVE_SYS_MOUNT_H
22105 #include <sys/mount.h>
22106 #endif
22108 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
22110 cat >>confdefs.h <<_ACEOF
22111 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
22112 _ACEOF
22117 # struct statvfs.f_basetype is available on Solaris but not for Linux.
22118 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
22120 if test "x$ac_cv_member_struct_statvfs_f_basetype" = x""yes; then :
22122 cat >>confdefs.h <<_ACEOF
22123 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
22124 _ACEOF
22130 # Checks for libcharset
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22133 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22134 if test "${am_cv_langinfo_codeset+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22136 else
22137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h. */
22139 #include <langinfo.h>
22141 main ()
22143 char* cs = nl_langinfo(CODESET);
22145 return 0;
22147 _ACEOF
22148 if ac_fn_c_try_link "$LINENO"; then :
22149 am_cv_langinfo_codeset=yes
22150 else
22151 am_cv_langinfo_codeset=no
22153 rm -f core conftest.err conftest.$ac_objext \
22154 conftest$ac_exeext conftest.$ac_ext
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
22158 $as_echo "$am_cv_langinfo_codeset" >&6; }
22159 if test $am_cv_langinfo_codeset = yes; then
22161 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
22167 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
22168 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
22169 $as_echo_n "(cached) " >&6
22170 else
22171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h. */
22174 #include <features.h>
22175 #ifdef __GNU_LIBRARY__
22176 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22177 Lucky GNU user
22178 #endif
22179 #endif
22181 _ACEOF
22182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22183 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
22184 ac_cv_gnu_library_2_1=yes
22185 else
22186 ac_cv_gnu_library_2_1=no
22188 rm -f conftest*
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
22194 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
22196 GLIBC21="$ac_cv_gnu_library_2_1"
22199 for ac_header in stddef.h stdlib.h string.h
22200 do :
22201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22203 eval as_val=\$$as_ac_Header
22204 if test "x$as_val" = x""yes; then :
22205 cat >>confdefs.h <<_ACEOF
22206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22207 _ACEOF
22211 done
22213 for ac_func in setlocale
22214 do :
22215 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22216 if test "x$ac_cv_func_setlocale" = x""yes; then :
22217 cat >>confdefs.h <<_ACEOF
22218 #define HAVE_SETLOCALE 1
22219 _ACEOF
22222 done
22225 # check additional type sizes
22226 # The cast to long int works around a bug in the HP C Compiler
22227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22229 # This bug is HP SR number 8606223364.
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22231 $as_echo_n "checking size of size_t... " >&6; }
22232 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22233 $as_echo_n "(cached) " >&6
22234 else
22235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
22237 else
22238 if test "$ac_cv_type_size_t" = yes; then
22239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22241 { as_fn_set_status 77
22242 as_fn_error "cannot compute sizeof (size_t)
22243 See \`config.log' for more details." "$LINENO" 5; }; }
22244 else
22245 ac_cv_sizeof_size_t=0
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22251 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22255 cat >>confdefs.h <<_ACEOF
22256 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22257 _ACEOF
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
22262 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
22264 case $ac_cv_sizeof_size_t in
22265 $ac_cv_sizeof_short)
22266 glib_size_type=short
22268 $ac_cv_sizeof_int)
22269 glib_size_type=int
22271 $ac_cv_sizeof_long)
22272 glib_size_type=long
22274 $ac_cv_sizeof_long_long)
22275 glib_size_type='long long'
22277 $ac_cv_sizeof__int64)
22278 glib_size_type='__int64'
22280 *) as_fn_error "No type matching size_t in size" "$LINENO" 5
22282 esac
22284 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
22285 test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22289 #if defined(_AIX) && !defined(__GNUC__)
22290 #pragma options langlvl=stdc89
22291 #endif
22292 #include <stddef.h>
22293 int main ()
22295 size_t s = 1;
22296 unsigned int *size_int = &s;
22297 return (int)*size_int;
22300 _ACEOF
22301 rm -f conftest.$ac_objext
22302 glib_ac_compile_save="$ac_compile"
22303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22305 (eval $ac_compile) 2>conftest.err
22306 ac_status=$?
22307 if test -s conftest.err; then
22308 grep -v '^ *+' conftest.err >conftest.er1
22309 cat conftest.er1 >&5
22310 mv -f conftest.er1 conftest.err
22312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22313 test $ac_status = 0; } &&
22314 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22316 (eval $ac_try) 2>&5
22317 ac_status=$?
22318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22319 test $ac_status = 0; }; }; then :
22320 glib_size_type=int
22321 else
22322 echo "$as_me: failed program was:" >&5
22323 cat conftest.$ac_ext >&5
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22327 #if defined(_AIX) && !defined(__GNUC__)
22328 #pragma options langlvl=stdc89
22329 #endif
22330 #include <stddef.h>
22331 int main ()
22333 size_t s = 1;
22334 unsigned long *size_long = &s;
22335 return (int)*size_long;
22338 _ACEOF
22339 rm -f conftest.$ac_objext
22340 glib_ac_compile_save="$ac_compile"
22341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22343 (eval $ac_compile) 2>conftest.err
22344 ac_status=$?
22345 if test -s conftest.err; then
22346 grep -v '^ *+' conftest.err >conftest.er1
22347 cat conftest.er1 >&5
22348 mv -f conftest.er1 conftest.err
22350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22351 test $ac_status = 0; } &&
22352 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22357 test $ac_status = 0; }; }; then :
22358 glib_size_type=long
22359 else
22360 echo "$as_me: failed program was:" >&5
22361 cat conftest.$ac_ext >&5
22363 ac_compile="$glib_ac_compile_save"
22364 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22366 ac_compile="$glib_ac_compile_save"
22367 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
22371 $as_echo "unsigned $glib_size_type" >&6; }
22373 # Check for some functions
22374 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
22375 do :
22376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22378 eval as_val=\$$as_ac_var
22379 if test "x$as_val" = x""yes; then :
22380 cat >>confdefs.h <<_ACEOF
22381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22382 _ACEOF
22385 done
22387 for ac_func in chown lchmod lchown fchmod fchown link statvfs statfs utimes getgrgid getpwuid
22388 do :
22389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22391 eval as_val=\$$as_ac_var
22392 if test "x$as_val" = x""yes; then :
22393 cat >>confdefs.h <<_ACEOF
22394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22395 _ACEOF
22398 done
22400 for ac_func in getmntent_r setmntent endmntent hasmntopt getmntinfo
22401 do :
22402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22403 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22404 eval as_val=\$$as_ac_var
22405 if test "x$as_val" = x""yes; then :
22406 cat >>confdefs.h <<_ACEOF
22407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22408 _ACEOF
22411 done
22413 # Check for high-resolution sleep functions
22414 for ac_func in nanosleep nsleep
22415 do :
22416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22418 eval as_val=\$$as_ac_var
22419 if test "x$as_val" = x""yes; then :
22420 cat >>confdefs.h <<_ACEOF
22421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22422 _ACEOF
22425 done
22427 for ac_func in splice
22428 do :
22429 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
22430 if test "x$ac_cv_func_splice" = x""yes; then :
22431 cat >>confdefs.h <<_ACEOF
22432 #define HAVE_SPLICE 1
22433 _ACEOF
22436 done
22439 for ac_header in crt_externs.h
22440 do :
22441 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
22442 if test "x$ac_cv_header_crt_externs_h" = x""yes; then :
22443 cat >>confdefs.h <<_ACEOF
22444 #define HAVE_CRT_EXTERNS_H 1
22445 _ACEOF
22449 done
22451 for ac_func in _NSGetEnviron
22452 do :
22453 ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
22454 if test "x$ac_cv_func__NSGetEnviron" = x""yes; then :
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE__NSGETENVIRON 1
22457 _ACEOF
22460 done
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
22464 $as_echo_n "checking for C99 vsnprintf... " >&6; }
22465 if test "${ac_cv_func_vsnprintf_c99+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22467 else
22468 if test "$cross_compiling" = yes; then :
22469 ac_cv_func_vsnprintf_c99=no
22470 else
22471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22472 /* end confdefs.h. */
22473 #include <stdio.h>
22474 #include <stdarg.h>
22477 doit(char * s, ...)
22479 char buffer[32];
22480 va_list args;
22481 int r;
22483 va_start(args, s);
22484 r = vsnprintf(buffer, 5, s, args);
22485 va_end(args);
22487 if (r != 7)
22488 exit(1);
22490 /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
22491 implementation. The above will return 7 but if you replace
22492 the size of the buffer with 0, it borks! */
22493 va_start(args, s);
22494 r = vsnprintf(buffer, 0, s, args);
22495 va_end(args);
22497 if (r != 7)
22498 exit(1);
22500 exit(0);
22504 main(void)
22506 doit("1234567");
22507 exit(1);
22509 _ACEOF
22510 if ac_fn_c_try_run "$LINENO"; then :
22511 ac_cv_func_vsnprintf_c99=yes
22512 else
22513 ac_cv_func_vsnprintf_c99=no
22515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22516 conftest.$ac_objext conftest.beam conftest.$ac_ext
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
22521 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
22522 if test $ac_cv_func_vsnprintf_c99 = yes; then
22524 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
22529 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
22530 if test "${ac_cv_func_printf_unix98+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22532 else
22533 if test "$cross_compiling" = yes; then :
22534 ac_cv_func_printf_unix98=no
22535 else
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22538 #include <stdio.h>
22541 main (void)
22543 char buffer[128];
22545 sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
22546 if (strcmp ("2 3 1", buffer) == 0)
22547 exit (0);
22548 exit (1);
22550 _ACEOF
22551 if ac_fn_c_try_run "$LINENO"; then :
22552 ac_cv_func_printf_unix98=yes
22553 else
22554 ac_cv_func_printf_unix98=no
22556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22557 conftest.$ac_objext conftest.beam conftest.$ac_ext
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
22562 $as_echo "$ac_cv_func_printf_unix98" >&6; }
22563 if test $ac_cv_func_printf_unix98 = yes; then
22565 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
22570 # Internet address families
22571 if test $glib_native_win32 = yes; then
22572 glib_inet_includes="
22573 #include <winsock2.h>
22575 else
22576 glib_inet_includes="
22577 #include <sys/types.h>
22578 #include <sys/socket.h>
22582 glib_failed=false
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
22584 $as_echo_n "checking value of AF_INET... " >&6; }
22585 if test "${glib_cv_value_AF_INET+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588 if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET" "$glib_inet_includes"; then :
22590 else
22591 glib_failed=true
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
22597 $as_echo "$glib_cv_value_AF_INET" >&6; }
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
22600 $as_echo_n "checking value of AF_INET6... " >&6; }
22601 if test "${glib_cv_value_AF_INET6+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22603 else
22604 if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6" "$glib_inet_includes"; then :
22606 else
22607 glib_failed=true
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
22613 $as_echo "$glib_cv_value_AF_INET6" >&6; }
22615 # winsock defines this even though it doesn't support it
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
22617 $as_echo_n "checking value of AF_UNIX... " >&6; }
22618 if test "${glib_cv_value_AF_UNIX+set}" = set; then :
22619 $as_echo_n "(cached) " >&6
22620 else
22621 if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX" "$glib_inet_includes"; then :
22623 else
22624 glib_failed=true
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
22630 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
22632 if $glib_failed ; then
22633 as_fn_error "Could not determine values for AF_INET* constants" "$LINENO" 5
22636 glib_failed=false
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
22638 $as_echo_n "checking value of MSG_PEEK... " >&6; }
22639 if test "${glib_cv_value_MSG_PEEK+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK" "$glib_inet_includes"; then :
22644 else
22645 glib_failed=true
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
22651 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
22654 $as_echo_n "checking value of MSG_OOB... " >&6; }
22655 if test "${glib_cv_value_MSG_OOB+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22657 else
22658 if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB" "$glib_inet_includes"; then :
22660 else
22661 glib_failed=true
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
22667 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
22670 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
22671 if test "${glib_cv_value_MSG_DONTROUTE+set}" = set; then :
22672 $as_echo_n "(cached) " >&6
22673 else
22674 if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE" "$glib_inet_includes"; then :
22676 else
22677 glib_failed=true
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
22683 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
22685 if $glib_failed ; then
22686 as_fn_error "Could not determine values for MSG_* constants" "$LINENO" 5
22689 for ac_func in getprotobyname_r endservent
22690 do :
22691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22692 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22693 eval as_val=\$$as_ac_var
22694 if test "x$as_val" = x""yes; then :
22695 cat >>confdefs.h <<_ACEOF
22696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22697 _ACEOF
22700 done
22702 for ac_header in netdb.h wspiapi.h
22703 do :
22704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22706 eval as_val=\$$as_ac_Header
22707 if test "x$as_val" = x""yes; then :
22708 cat >>confdefs.h <<_ACEOF
22709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22710 _ACEOF
22714 done
22717 # For gio/libasyncns
22718 if test $glib_native_win32 = no; then
22719 for ac_func in strndup setresuid setreuid
22720 do :
22721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22723 eval as_val=\$$as_ac_var
22724 if test "x$as_val" = x""yes; then :
22725 cat >>confdefs.h <<_ACEOF
22726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22727 _ACEOF
22730 done
22732 for ac_header in sys/prctl.h arpa/nameser_compat.h
22733 do :
22734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22736 eval as_val=\$$as_ac_Header
22737 if test "x$as_val" = x""yes; then :
22738 cat >>confdefs.h <<_ACEOF
22739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22740 _ACEOF
22744 done
22747 # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
22749 $as_echo_n "checking for res_query... " >&6; }
22750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22751 /* end confdefs.h. */
22752 #include <sys/types.h>
22753 #include <netinet/in.h>
22754 #include <arpa/nameser.h>
22755 #include <resolv.h>
22757 main ()
22759 res_query("test", 0, 0, (void *)0, 0);
22761 return 0;
22763 _ACEOF
22764 if ac_fn_c_try_link "$LINENO"; then :
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22766 $as_echo "yes" >&6; }
22767 else
22768 save_libs="$LIBS"
22769 LIBS="-lresolv $LIBS"
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h. */
22772 #include <sys/types.h>
22773 #include <netinet/in.h>
22774 #include <arpa/nameser.h>
22775 #include <resolv.h>
22777 main ()
22779 res_query("test", 0, 0, (void *)0, 0);
22781 return 0;
22783 _ACEOF
22784 if ac_fn_c_try_link "$LINENO"; then :
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
22786 $as_echo "in -lresolv" >&6; }
22787 LIBASYNCNS_LIBADD="-lresolv"
22788 else
22789 LIBS="-lbind $save_libs"
22790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791 /* end confdefs.h. */
22792 #include <resolv.h>
22794 main ()
22796 res_query("test", 0, 0, (void *)0, 0);
22798 return 0;
22800 _ACEOF
22801 if ac_fn_c_try_link "$LINENO"; then :
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
22803 $as_echo "in -lbind" >&6; }
22804 LIBASYNCNS_LIBADD="-lbind"
22805 else
22806 as_fn_error "not found" "$LINENO" 5
22808 rm -f core conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
22811 rm -f core conftest.err conftest.$ac_objext \
22812 conftest$ac_exeext conftest.$ac_ext
22813 LIBS="$save_libs"
22815 rm -f core conftest.err conftest.$ac_objext \
22816 conftest$ac_exeext conftest.$ac_ext
22820 case $host in
22821 *-*-solaris* )
22823 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
22826 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
22829 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22832 esac
22834 if test "$ac_cv_func_statfs" = yes ; then
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
22836 $as_echo_n "checking number of arguments to statfs()... " >&6; }
22837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22838 /* end confdefs.h. */
22839 #include <unistd.h>
22840 #ifdef HAVE_SYS_PARAM_H
22841 #include <sys/param.h>
22842 #endif
22843 #ifdef HAVE_SYS_VFS_H
22844 #include <sys/vfs.h>
22845 #endif
22846 #ifdef HAVE_SYS_MOUNT_H
22847 #include <sys/mount.h>
22848 #endif
22849 #ifdef HAVE_SYS_STATFS_H
22850 #include <sys/statfs.h>
22851 #endif
22853 main ()
22855 struct statfs st;
22856 statfs(NULL, &st);
22858 return 0;
22860 _ACEOF
22861 if ac_fn_c_try_compile "$LINENO"; then :
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
22864 $as_echo "2" >&6; }
22866 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
22868 else
22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22872 #include <unistd.h>
22873 #ifdef HAVE_SYS_PARAM_H
22874 #include <sys/param.h>
22875 #endif
22876 #ifdef HAVE_SYS_VFS_H
22877 #include <sys/vfs.h>
22878 #endif
22879 #ifdef HAVE_SYS_MOUNT_H
22880 #include <sys/mount.h>
22881 #endif
22882 #ifdef HAVE_SYS_STATFS_H
22883 #include <sys/statfs.h>
22884 #endif
22886 main ()
22888 struct statfs st;
22889 statfs(NULL, &st, sizeof (st), 0);
22891 return 0;
22893 _ACEOF
22894 if ac_fn_c_try_compile "$LINENO"; then :
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
22897 $as_echo "4" >&6; }
22899 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
22901 else
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
22904 $as_echo "unknown" >&6; }
22905 as_fn_error "unable to determine number of arguments to statfs()" "$LINENO" 5
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913 # Check whether to use an included printf
22916 # Check whether --enable-included-printf was given.
22917 if test "${enable_included_printf+set}" = set; then :
22918 enableval=$enable_included_printf; enable_included_printf="$enableval"
22922 need_included_printf=no
22923 if test "x$enable_included_printf" = "xyes" ; then
22924 need_included_printf=yes
22926 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
22927 need_included_printf=yes
22929 if test "$ac_cv_func_printf_unix98" != "yes" ; then
22930 need_included_printf=yes
22932 if test "x$ac_cv_sizeof_long_long" = "x8" &&
22933 test -z "$glib_cv_long_long_format" ; then
22934 need_included_printf=yes
22937 if test "x$enable_included_printf" = "xno" &&
22938 test "x$need_included_printf" = "xyes" ; then
22939 as_fn_error "
22940 *** Your C library's printf doesn't appear to have the features that
22941 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
22944 enable_included_printf=$need_included_printf
22946 if test "$enable_included_printf" != "yes"; then
22947 HAVE_GOOD_PRINTF_TRUE=
22948 HAVE_GOOD_PRINTF_FALSE='#'
22949 else
22950 HAVE_GOOD_PRINTF_TRUE='#'
22951 HAVE_GOOD_PRINTF_FALSE=
22954 if test "$enable_included_printf" != "yes" ; then
22956 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
22958 else
22959 if test -z "$glib_cv_long_long_format" ; then
22960 glib_cv_long_long_format="ll"
22962 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
22966 # Checks needed for gnulib vasnprintf
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
22969 $as_echo_n "checking for signed... " >&6; }
22970 if test "${bh_cv_c_signed+set}" = set; then :
22971 $as_echo_n "(cached) " >&6
22972 else
22973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22974 /* end confdefs.h. */
22977 main ()
22979 signed char x;
22981 return 0;
22983 _ACEOF
22984 if ac_fn_c_try_compile "$LINENO"; then :
22985 bh_cv_c_signed=yes
22986 else
22987 bh_cv_c_signed=no
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
22992 $as_echo "$bh_cv_c_signed" >&6; }
22993 if test $bh_cv_c_signed = no; then
22995 $as_echo "#define signed /**/" >>confdefs.h
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
23001 $as_echo_n "checking for long long... " >&6; }
23002 if test "${ac_cv_type_long_long+set}" = set; then :
23003 $as_echo_n "(cached) " >&6
23004 else
23005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006 /* end confdefs.h. */
23007 long long ll = 1LL; int i = 63;
23009 main ()
23011 long long llmax = (long long) -1;
23012 return ll << i | ll >> i | llmax / ll | llmax % ll;
23014 return 0;
23016 _ACEOF
23017 if ac_fn_c_try_link "$LINENO"; then :
23018 ac_cv_type_long_long=yes
23019 else
23020 ac_cv_type_long_long=no
23022 rm -f core conftest.err conftest.$ac_objext \
23023 conftest$ac_exeext conftest.$ac_ext
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
23026 $as_echo "$ac_cv_type_long_long" >&6; }
23027 if test $ac_cv_type_long_long = yes; then
23029 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23035 $as_echo_n "checking for long double... " >&6; }
23036 if test "${gt_cv_c_long_double+set}" = set; then :
23037 $as_echo_n "(cached) " >&6
23038 else
23039 if test "$GCC" = yes; then
23040 gt_cv_c_long_double=yes
23041 else
23042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h. */
23045 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
23046 long double foo = 0.0;
23047 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23048 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23051 main ()
23055 return 0;
23057 _ACEOF
23058 if ac_fn_c_try_compile "$LINENO"; then :
23059 gt_cv_c_long_double=yes
23060 else
23061 gt_cv_c_long_double=no
23063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
23067 $as_echo "$gt_cv_c_long_double" >&6; }
23068 if test $gt_cv_c_long_double = yes; then
23070 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
23076 $as_echo_n "checking for wchar_t... " >&6; }
23077 if test "${gt_cv_c_wchar_t+set}" = set; then :
23078 $as_echo_n "(cached) " >&6
23079 else
23080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23081 /* end confdefs.h. */
23082 #include <stddef.h>
23083 wchar_t foo = (wchar_t)'\0';
23085 main ()
23089 return 0;
23091 _ACEOF
23092 if ac_fn_c_try_compile "$LINENO"; then :
23093 gt_cv_c_wchar_t=yes
23094 else
23095 gt_cv_c_wchar_t=no
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
23100 $as_echo "$gt_cv_c_wchar_t" >&6; }
23101 if test $gt_cv_c_wchar_t = yes; then
23103 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
23109 $as_echo_n "checking for wint_t... " >&6; }
23110 if test "${gt_cv_c_wint_t+set}" = set; then :
23111 $as_echo_n "(cached) " >&6
23112 else
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h. */
23115 #include <wchar.h>
23116 wint_t foo = (wchar_t)'\0';
23118 main ()
23122 return 0;
23124 _ACEOF
23125 if ac_fn_c_try_compile "$LINENO"; then :
23126 gt_cv_c_wint_t=yes
23127 else
23128 gt_cv_c_wint_t=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
23133 $as_echo "$gt_cv_c_wint_t" >&6; }
23134 if test $gt_cv_c_wint_t = yes; then
23136 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
23140 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23141 if test "x$ac_cv_type_size_t" = x""yes; then :
23143 else
23145 cat >>confdefs.h <<_ACEOF
23146 #define size_t unsigned int
23147 _ACEOF
23151 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23152 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
23154 cat >>confdefs.h <<_ACEOF
23155 #define HAVE_PTRDIFF_T 1
23156 _ACEOF
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
23163 $as_echo_n "checking for inttypes.h... " >&6; }
23164 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
23165 $as_echo_n "(cached) " >&6
23166 else
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23169 #include <sys/types.h>
23170 #include <inttypes.h>
23172 main ()
23174 uintmax_t i = (uintmax_t) -1;
23176 return 0;
23178 _ACEOF
23179 if ac_fn_c_try_compile "$LINENO"; then :
23180 jm_ac_cv_header_inttypes_h=yes
23181 else
23182 jm_ac_cv_header_inttypes_h=no
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
23187 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
23188 if test $jm_ac_cv_header_inttypes_h = yes; then
23190 cat >>confdefs.h <<_ACEOF
23191 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
23192 _ACEOF
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
23198 $as_echo_n "checking for stdint.h... " >&6; }
23199 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
23200 $as_echo_n "(cached) " >&6
23201 else
23202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h. */
23204 #include <sys/types.h>
23205 #include <stdint.h>
23207 main ()
23209 uintmax_t i = (uintmax_t) -1;
23211 return 0;
23213 _ACEOF
23214 if ac_fn_c_try_compile "$LINENO"; then :
23215 jm_ac_cv_header_stdint_h=yes
23216 else
23217 jm_ac_cv_header_stdint_h=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
23222 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
23223 if test $jm_ac_cv_header_stdint_h = yes; then
23225 cat >>confdefs.h <<_ACEOF
23226 #define HAVE_STDINT_H_WITH_UINTMAX 1
23227 _ACEOF
23234 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
23236 test $ac_cv_type_long_long = yes \
23237 && ac_type='long long' \
23238 || ac_type='long'
23240 cat >>confdefs.h <<_ACEOF
23241 #define intmax_t $ac_type
23242 _ACEOF
23244 else
23246 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23250 for ac_func in snprintf wcslen
23251 do :
23252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23254 eval as_val=\$$as_ac_var
23255 if test "x$as_val" = x""yes; then :
23256 cat >>confdefs.h <<_ACEOF
23257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23258 _ACEOF
23261 done
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
23264 $as_echo_n "checking for C99 snprintf... " >&6; }
23265 if test "${ac_cv_func_snprintf_c99+set}" = set; then :
23266 $as_echo_n "(cached) " >&6
23267 else
23268 if test "$cross_compiling" = yes; then :
23269 ac_cv_func_snprintf_c99=no
23270 else
23271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23272 /* end confdefs.h. */
23273 #include <stdio.h>
23274 #include <stdarg.h>
23277 doit()
23279 char buffer[32];
23280 va_list args;
23281 int r;
23283 r = snprintf(buffer, 5, "1234567");
23285 if (r != 7)
23286 exit(1);
23288 r = snprintf(buffer, 0, "1234567");
23290 if (r != 7)
23291 exit(1);
23293 r = snprintf(NULL, 0, "1234567");
23295 if (r != 7)
23296 exit(1);
23298 exit(0);
23302 main(void)
23304 doit();
23305 exit(1);
23307 _ACEOF
23308 if ac_fn_c_try_run "$LINENO"; then :
23309 ac_cv_func_snprintf_c99=yes
23310 else
23311 ac_cv_func_snprintf_c99=no
23313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23314 conftest.$ac_objext conftest.beam conftest.$ac_ext
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
23319 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
23320 if test $ac_cv_func_snprintf_c99 = yes; then
23322 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
23327 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
23328 # The check is borrowed from the PERL Configure script.
23329 if test "$ac_cv_func_memmove" != "yes"; then
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
23331 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
23332 if test "${glib_cv_working_bcopy+set}" = set; then :
23333 $as_echo_n "(cached) " >&6
23334 else
23335 if test "$cross_compiling" = yes; then :
23336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23338 as_fn_error "cannot run test program while cross compiling
23339 See \`config.log' for more details." "$LINENO" 5; }
23340 else
23341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23342 /* end confdefs.h. */
23344 int main() {
23345 char buf[128], abc[128], *b;
23346 int len, off, align;
23347 bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
23348 for (align = 7; align >= 0; align--) {
23349 for (len = 36; len; len--) {
23350 b = buf+align; bcopy(abc, b, len);
23351 for (off = 1; off <= len; off++) {
23352 bcopy(b, b+off, len); bcopy(b+off, b, len);
23353 if (bcmp(b, abc, len)) return(1);
23357 return(0);
23359 _ACEOF
23360 if ac_fn_c_try_run "$LINENO"; then :
23361 glib_cv_working_bcopy=yes
23362 else
23363 glib_cv_working_bcopy=no
23365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23366 conftest.$ac_objext conftest.beam conftest.$ac_ext
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
23371 $as_echo "$glib_cv_working_bcopy" >&6; }
23373 if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
23374 as_fn_error "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
23377 if test "$glib_cv_working_bcopy" = "yes"; then
23379 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
23384 # Check for sys_errlist
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
23386 $as_echo_n "checking for sys_errlist... " >&6; }
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23391 main ()
23394 extern char *sys_errlist[];
23395 extern int sys_nerr;
23396 sys_errlist[sys_nerr-1][0] = 0;
23399 return 0;
23401 _ACEOF
23402 if ac_fn_c_try_link "$LINENO"; then :
23403 glib_ok=yes
23404 else
23405 glib_ok=no
23407 rm -f core conftest.err conftest.$ac_objext \
23408 conftest$ac_exeext conftest.$ac_ext
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ok" >&5
23410 $as_echo "$glib_ok" >&6; }
23411 if test "$glib_ok" = "no"; then
23413 $as_echo "#define NO_SYS_ERRLIST 1" >>confdefs.h
23417 # Check for sys_siglist
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist" >&5
23419 $as_echo_n "checking for sys_siglist... " >&6; }
23420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23421 /* end confdefs.h. */
23424 main ()
23427 extern char *sys_siglist[];
23428 exit (sys_siglist[0]);
23431 return 0;
23433 _ACEOF
23434 if ac_fn_c_try_link "$LINENO"; then :
23435 glib_ok=yes
23436 else
23437 glib_ok=no
23439 rm -f core conftest.err conftest.$ac_objext \
23440 conftest$ac_exeext conftest.$ac_ext
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ok" >&5
23442 $as_echo "$glib_ok" >&6; }
23443 if test "$glib_ok" = "no"; then
23445 $as_echo "#define NO_SYS_SIGLIST 1" >>confdefs.h
23449 # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist declaration" >&5
23451 $as_echo_n "checking for sys_siglist declaration... " >&6; }
23452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23453 /* end confdefs.h. */
23454 #include <signal.h>
23456 main ()
23459 strlen (sys_siglist[0]);
23462 return 0;
23464 _ACEOF
23465 if ac_fn_c_try_compile "$LINENO"; then :
23466 glib_ok=yes
23467 else
23468 glib_ok=no
23470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ok" >&5
23472 $as_echo "$glib_ok" >&6; }
23473 if test "$glib_ok" = "no"; then
23475 $as_echo "#define NO_SYS_SIGLIST_DECL 1" >>confdefs.h
23479 # Check if <sys/select.h> needs to be included for fd_set
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
23481 $as_echo_n "checking for fd_set... " >&6; }
23482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23483 /* end confdefs.h. */
23484 #include <sys/types.h>
23486 main ()
23488 fd_set readMask, writeMask;
23490 return 0;
23492 _ACEOF
23493 if ac_fn_c_try_compile "$LINENO"; then :
23494 gtk_ok=yes
23495 else
23496 gtk_ok=no
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 if test "$gtk_ok" = "yes"; then
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
23501 $as_echo "yes, found in sys/types.h" >&6; }
23502 else
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23505 #include <sys/select.h>
23507 _ACEOF
23508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23509 $EGREP "fd_set" >/dev/null 2>&1; then :
23510 gtk_ok=yes
23512 rm -f conftest*
23514 if test "$gtk_ok" = "yes"; then
23515 # *** FIXME: give it a different name
23517 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
23520 $as_echo "yes, found in sys/select.h" >&6; }
23521 else
23523 $as_echo "#define NO_FD_SET 1" >>confdefs.h
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23526 $as_echo "no" >&6; }
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
23531 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
23532 if test "${glib_cv_sane_realloc+set}" = set; then :
23533 $as_echo_n "(cached) " >&6
23534 else
23536 if test "$cross_compiling" = yes; then :
23537 glib_cv_sane_realloc=yes
23538 else
23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540 /* end confdefs.h. */
23541 #include <stdlib.h>
23542 int main() {
23543 return realloc (0, sizeof (int)) == 0;
23545 _ACEOF
23546 if ac_fn_c_try_run "$LINENO"; then :
23547 glib_cv_sane_realloc=yes
23548 else
23549 glib_cv_sane_realloc=no
23551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23552 conftest.$ac_objext conftest.beam conftest.$ac_ext
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
23558 $as_echo "$glib_cv_sane_realloc" >&6; }
23559 if test x$glib_cv_sane_realloc = xyes; then
23561 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
23566 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
23567 if test "${glib_cv_langinfo_codeset+set}" = set; then :
23568 $as_echo_n "(cached) " >&6
23569 else
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 #include <langinfo.h>
23575 main ()
23577 char *codeset = nl_langinfo (CODESET);
23579 return 0;
23581 _ACEOF
23582 if ac_fn_c_try_compile "$LINENO"; then :
23583 glib_cv_langinfo_codeset=yes
23584 else
23585 glib_cv_langinfo_codeset=no
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
23590 $as_echo "$glib_cv_langinfo_codeset" >&6; }
23591 if test x$glib_cv_langinfo_codeset = xyes; then
23593 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
23598 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
23599 if test "${glib_cv_compliant_posix_memalign+set}" = set; then :
23600 $as_echo_n "(cached) " >&6
23601 else
23603 glib_cv_compliant_posix_memalign=0
23604 if test "$ac_cv_func_posix_memalign" = "yes" ; then
23605 if test "$cross_compiling" = yes; then :
23607 else
23608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23609 /* end confdefs.h. */
23611 #define _XOPEN_SOURCE 600
23612 #include <stdlib.h> /* posix_memalign() should be defined here */
23613 /* some systems break if #include <malloc.h> used */
23614 static void test_memalign (size_t boundary, size_t size) {
23615 void *mem = 0;
23616 if (posix_memalign (&mem, boundary, size) != 0 || !mem)
23617 exit (1);
23618 else
23619 free (mem);
23621 int main() {
23622 test_memalign ( 128, 128 - 2 * sizeof (void*));
23623 test_memalign ( 256, 256 - 2 * sizeof (void*));
23624 test_memalign ( 512, 512 - 2 * sizeof (void*));
23625 test_memalign ( 1024, 1024 - 2 * sizeof (void*));
23626 test_memalign ( 2048, 2048 - 2 * sizeof (void*));
23627 test_memalign ( 4096, 4096 - 2 * sizeof (void*));
23628 test_memalign ( 8192, 8192 - 2 * sizeof (void*));
23629 test_memalign (16384, 16384 - 2 * sizeof (void*));
23630 test_memalign (32768, 32768 - 2 * sizeof (void*));
23631 exit (0); /* success */
23634 _ACEOF
23635 if ac_fn_c_try_run "$LINENO"; then :
23636 glib_cv_compliant_posix_memalign=1
23638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23639 conftest.$ac_objext conftest.beam conftest.$ac_ext
23647 if test "$glib_cv_compliant_posix_memalign" = "1"; then
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23649 $as_echo "yes" >&6; }
23651 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
23653 else
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655 $as_echo "no" >&6; }
23659 # Check for strlcpy
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
23661 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
23662 if test "${glib_cv_have_strlcpy+set}" = set; then :
23663 $as_echo_n "(cached) " >&6
23664 else
23666 if test "$cross_compiling" = yes; then :
23667 glib_cv_have_strlcpy=no
23668 else
23669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h. */
23671 #include <stdlib.h>
23672 #include <string.h>
23673 int main() {
23674 char p[10];
23675 (void) strlcpy (p, "hi", 10);
23676 if (strlcat (p, "bye", 0) != 3)
23677 return 1;
23678 return 0;
23680 _ACEOF
23681 if ac_fn_c_try_run "$LINENO"; then :
23682 glib_cv_have_strlcpy=yes
23683 else
23684 glib_cv_have_strlcpy=no
23686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23687 conftest.$ac_objext conftest.beam conftest.$ac_ext
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
23692 $as_echo "$glib_cv_have_strlcpy" >&6; }
23693 if test "$glib_cv_have_strlcpy" = "yes"; then
23695 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
23701 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
23702 if test "${glib_cv_va_copy+set}" = set; then :
23703 $as_echo_n "(cached) " >&6
23704 else
23706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23707 /* end confdefs.h. */
23708 #include <stdarg.h>
23709 #include <stdlib.h>
23710 void f (int i, ...) {
23711 va_list args1, args2;
23712 va_start (args1, i);
23713 va_copy (args2, args1);
23714 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23715 exit (1);
23716 va_end (args1); va_end (args2);
23718 int main() {
23719 f (0, 42);
23720 return 0;
23722 _ACEOF
23723 if ac_fn_c_try_link "$LINENO"; then :
23724 glib_cv_va_copy=yes
23725 else
23726 glib_cv_va_copy=no
23728 rm -f core conftest.err conftest.$ac_objext \
23729 conftest$ac_exeext conftest.$ac_ext
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
23733 $as_echo "$glib_cv_va_copy" >&6; }
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
23735 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
23736 if test "${glib_cv___va_copy+set}" = set; then :
23737 $as_echo_n "(cached) " >&6
23738 else
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23742 #include <stdarg.h>
23743 #include <stdlib.h>
23744 void f (int i, ...) {
23745 va_list args1, args2;
23746 va_start (args1, i);
23747 __va_copy (args2, args1);
23748 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23749 exit (1);
23750 va_end (args1); va_end (args2);
23752 int main() {
23753 f (0, 42);
23754 return 0;
23756 _ACEOF
23757 if ac_fn_c_try_link "$LINENO"; then :
23758 glib_cv___va_copy=yes
23759 else
23760 glib_cv___va_copy=no
23762 rm -f core conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
23767 $as_echo "$glib_cv___va_copy" >&6; }
23769 if test "x$glib_cv_va_copy" = "xyes"; then
23770 g_va_copy_func=va_copy
23771 else if test "x$glib_cv___va_copy" = "xyes"; then
23772 g_va_copy_func=__va_copy
23776 if test -n "$g_va_copy_func"; then
23778 cat >>confdefs.h <<_ACEOF
23779 #define G_VA_COPY $g_va_copy_func
23780 _ACEOF
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
23785 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
23786 if test "${glib_cv_va_val_copy+set}" = set; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23790 if test "$cross_compiling" = yes; then :
23791 glib_cv_va_val_copy=yes
23792 else
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23795 #include <stdarg.h>
23796 #include <stdlib.h>
23797 void f (int i, ...) {
23798 va_list args1, args2;
23799 va_start (args1, i);
23800 args2 = args1;
23801 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23802 exit (1);
23803 va_end (args1); va_end (args2);
23805 int main() {
23806 f (0, 42);
23807 return 0;
23809 _ACEOF
23810 if ac_fn_c_try_run "$LINENO"; then :
23811 glib_cv_va_val_copy=yes
23812 else
23813 glib_cv_va_val_copy=no
23815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23816 conftest.$ac_objext conftest.beam conftest.$ac_ext
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
23822 $as_echo "$glib_cv_va_val_copy" >&6; }
23824 if test "x$glib_cv_va_val_copy" = "xno"; then
23826 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
23830 G_MODULE_LIBS=
23831 G_MODULE_LIBS_EXTRA=
23832 G_MODULE_PLUGIN_LIBS=
23833 if test x"$glib_native_win32" = xyes; then
23834 G_MODULE_LDFLAGS=
23835 else
23836 export SED
23837 G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
23839 G_MODULE_NEED_USCORE=0
23840 G_MODULE_BROKEN_RTLD_GLOBAL=0
23841 G_MODULE_HAVE_DLERROR=0
23842 if test -z "$G_MODULE_IMPL"; then
23843 case "$host" in
23844 *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
23845 esac
23847 if test -z "$G_MODULE_IMPL"; then
23848 case "$host" in
23849 *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
23850 esac
23852 if test -z "$G_MODULE_IMPL"; then
23853 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23854 if test "x$ac_cv_func_dlopen" = x""yes; then :
23855 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
23856 if test "x$ac_cv_func_dlsym" = x""yes; then :
23857 G_MODULE_IMPL=G_MODULE_IMPL_DL
23863 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
23865 $as_echo_n "checking for load_image in -lroot... " >&6; }
23866 if test "${ac_cv_lib_root_load_image+set}" = set; then :
23867 $as_echo_n "(cached) " >&6
23868 else
23869 ac_check_lib_save_LIBS=$LIBS
23870 LIBS="-lroot $LIBS"
23871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23874 /* Override any GCC internal prototype to avoid an error.
23875 Use char because int might match the return type of a GCC
23876 builtin and then its argument prototype would still apply. */
23877 #ifdef __cplusplus
23878 extern "C"
23879 #endif
23880 char load_image ();
23882 main ()
23884 return load_image ();
23886 return 0;
23888 _ACEOF
23889 if ac_fn_c_try_link "$LINENO"; then :
23890 ac_cv_lib_root_load_image=yes
23891 else
23892 ac_cv_lib_root_load_image=no
23894 rm -f core conftest.err conftest.$ac_objext \
23895 conftest$ac_exeext conftest.$ac_ext
23896 LIBS=$ac_check_lib_save_LIBS
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
23899 $as_echo "$ac_cv_lib_root_load_image" >&6; }
23900 if test "x$ac_cv_lib_root_load_image" = x""yes; then :
23901 G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
23902 G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
23903 G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
23904 G_MODULE_IMPL=G_MODULE_IMPL_BEOS
23908 if test -z "$G_MODULE_IMPL"; then
23909 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
23910 if test "x$ac_cv_func_NSLinkModule" = x""yes; then :
23911 G_MODULE_IMPL=G_MODULE_IMPL_DYLD
23912 G_MODULE_NEED_USCORE=1
23916 if test -z "$G_MODULE_IMPL"; then
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
23919 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
23920 $as_echo_n "(cached) " >&6
23921 else
23922 ac_check_lib_save_LIBS=$LIBS
23923 LIBS="-ldl $LIBS"
23924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925 /* end confdefs.h. */
23927 /* Override any GCC internal prototype to avoid an error.
23928 Use char because int might match the return type of a GCC
23929 builtin and then its argument prototype would still apply. */
23930 #ifdef __cplusplus
23931 extern "C"
23932 #endif
23933 char dlopen ();
23935 main ()
23937 return dlopen ();
23939 return 0;
23941 _ACEOF
23942 if ac_fn_c_try_link "$LINENO"; then :
23943 ac_cv_lib_dl_dlopen=yes
23944 else
23945 ac_cv_lib_dl_dlopen=no
23947 rm -f core conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
23949 LIBS=$ac_check_lib_save_LIBS
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23953 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
23955 $as_echo_n "checking for dlsym in -ldl... " >&6; }
23956 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23958 else
23959 ac_check_lib_save_LIBS=$LIBS
23960 LIBS="-ldl $LIBS"
23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h. */
23964 /* Override any GCC internal prototype to avoid an error.
23965 Use char because int might match the return type of a GCC
23966 builtin and then its argument prototype would still apply. */
23967 #ifdef __cplusplus
23968 extern "C"
23969 #endif
23970 char dlsym ();
23972 main ()
23974 return dlsym ();
23976 return 0;
23978 _ACEOF
23979 if ac_fn_c_try_link "$LINENO"; then :
23980 ac_cv_lib_dl_dlsym=yes
23981 else
23982 ac_cv_lib_dl_dlsym=no
23984 rm -f core conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
23986 LIBS=$ac_check_lib_save_LIBS
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
23989 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
23990 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
23991 G_MODULE_LIBS=-ldl
23992 G_MODULE_IMPL=G_MODULE_IMPL_DL
23998 if test -z "$G_MODULE_IMPL"; then
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24000 $as_echo_n "checking for shl_load in -ldld... " >&6; }
24001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
24002 $as_echo_n "(cached) " >&6
24003 else
24004 ac_check_lib_save_LIBS=$LIBS
24005 LIBS="-ldld $LIBS"
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h. */
24009 /* Override any GCC internal prototype to avoid an error.
24010 Use char because int might match the return type of a GCC
24011 builtin and then its argument prototype would still apply. */
24012 #ifdef __cplusplus
24013 extern "C"
24014 #endif
24015 char shl_load ();
24017 main ()
24019 return shl_load ();
24021 return 0;
24023 _ACEOF
24024 if ac_fn_c_try_link "$LINENO"; then :
24025 ac_cv_lib_dld_shl_load=yes
24026 else
24027 ac_cv_lib_dld_shl_load=no
24029 rm -f core conftest.err conftest.$ac_objext \
24030 conftest$ac_exeext conftest.$ac_ext
24031 LIBS=$ac_check_lib_save_LIBS
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24034 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24035 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
24036 G_MODULE_LIBS=-ldld
24037 G_MODULE_IMPL=G_MODULE_IMPL_DLD
24041 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
24042 LIBS_orig="$LIBS"
24043 LDFLAGS_orig="$LDFLAGS"
24044 LIBS="$G_MODULE_LIBS $LIBS"
24045 LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
24046 echo "void glib_plugin_test(void) { }" > plugin.c
24047 ${SHELL} ./libtool --mode=compile ${CC} -shared \
24048 -export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
24050 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
24051 if test "${glib_cv_rtldglobal_broken+set}" = set; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24055 if test "$cross_compiling" = yes; then :
24056 glib_cv_rtldglobal_broken=no
24057 else
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h. */
24061 #include <dlfcn.h>
24062 #ifndef RTLD_GLOBAL
24063 # define RTLD_GLOBAL 0
24064 #endif
24065 #ifndef RTLD_LAZY
24066 # define RTLD_LAZY 0
24067 #endif
24068 int glib_plugin_test;
24069 int main () {
24070 void *handle, *global, *local;
24071 global = &glib_plugin_test;
24072 handle = dlopen ("./.libs/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
24073 if (!handle) return 0;
24074 local = dlsym (handle, "glib_plugin_test");
24075 return global == local;
24077 _ACEOF
24078 if ac_fn_c_try_run "$LINENO"; then :
24079 glib_cv_rtldglobal_broken=no
24080 else
24081 glib_cv_rtldglobal_broken=yes
24083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24084 conftest.$ac_objext conftest.beam conftest.$ac_ext
24087 rm -f plugin.c plugin.o plugin.lo .libs/plugin.o
24088 rmdir .libs 2>/dev/null
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
24092 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
24093 if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
24094 G_MODULE_BROKEN_RTLD_GLOBAL=1
24095 else
24096 G_MODULE_BROKEN_RTLD_GLOBAL=0
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
24099 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
24100 if test "${glib_cv_uscore+set}" = set; then :
24101 $as_echo_n "(cached) " >&6
24102 else
24104 if test "$cross_compiling" = yes; then :
24105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24107 as_fn_error "cannot run test program while cross compiling
24108 See \`config.log' for more details." "$LINENO" 5; }
24109 else
24110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h. */
24112 #include <dlfcn.h>
24113 int glib_underscore_test (void) { return 42; }
24114 int main() {
24115 void *f1 = (void*)0, *f2 = (void*)0, *handle;
24116 handle = dlopen ((void*)0, 0);
24117 if (handle) {
24118 f1 = dlsym (handle, "glib_underscore_test");
24119 f2 = dlsym (handle, "_glib_underscore_test");
24120 } return (!f2 || f1);
24122 _ACEOF
24123 if ac_fn_c_try_run "$LINENO"; then :
24124 glib_cv_uscore=yes
24125 else
24126 glib_cv_uscore=no
24128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24129 conftest.$ac_objext conftest.beam conftest.$ac_ext
24132 rm -f plugin.c plugin.$ac_objext plugin.lo
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
24136 $as_echo "$glib_cv_uscore" >&6; }
24137 if test "x${glib_cv_uscore+set}" != "xset" ; then
24138 as_fn_error "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
24141 if test "x$glib_cv_uscore" = "xyes"; then
24142 G_MODULE_NEED_USCORE=1
24143 else
24144 G_MODULE_NEED_USCORE=0
24147 LDFLAGS="$LDFLAGS_orig"
24148 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
24149 if test "x$ac_cv_func_dlerror" = x""yes; then :
24150 G_MODULE_HAVE_DLERROR=1
24151 else
24152 G_MODULE_HAVE_DLERROR=0
24155 LIBS="$LIBS_orig"
24157 if test -z "$G_MODULE_IMPL"; then
24158 G_MODULE_IMPL=0
24159 G_MODULE_SUPPORTED=false
24160 else
24161 G_MODULE_SUPPORTED=true
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
24165 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
24166 export SED
24167 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
24168 eval $shrext_cmds
24169 module=yes eval std_shrext=$shrext_cmds
24170 # chop the initial dot
24171 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
24173 $as_echo ".$glib_gmodule_suffix" >&6; }
24174 # any reason it may fail?
24175 if test "x$glib_gmodule_suffix" = x; then
24176 as_fn_error "Cannot determine shared library suffix from libtool" "$LINENO" 5
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
24192 $as_echo_n "checking for gspawn implementation... " >&6; }
24193 case "$host" in
24194 *-*-mingw*)
24195 GSPAWN=gspawn-win32.lo
24198 GSPAWN=gspawn.lo
24200 esac
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
24202 $as_echo "$GSPAWN" >&6; }
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
24207 $as_echo_n "checking for GIOChannel implementation... " >&6; }
24208 case "$host" in
24209 *-*-mingw*)
24210 GIO=giowin32.lo
24213 GIO=giounix.lo
24215 esac
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
24217 $as_echo "$GIO" >&6; }
24222 # Check whether --with-gio-module-dir was given.
24223 if test "${with_gio_module_dir+set}" = set; then :
24224 withval=$with_gio_module_dir;
24225 else
24226 with_gio_module_dir='${libdir}/gio/modules'
24229 GIO_MODULE_DIR=$with_gio_module_dir
24232 # Check whether --enable-selinux was given.
24233 if test "${enable_selinux+set}" = set; then :
24234 enableval=$enable_selinux;
24237 msg_selinux=no
24238 SELINUX_LIBS=
24239 if test "x$enable_selinux" != "xno"; then
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
24242 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24243 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
24244 $as_echo_n "(cached) " >&6
24245 else
24246 ac_check_lib_save_LIBS=$LIBS
24247 LIBS="-lselinux $LIBS"
24248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h. */
24251 /* Override any GCC internal prototype to avoid an error.
24252 Use char because int might match the return type of a GCC
24253 builtin and then its argument prototype would still apply. */
24254 #ifdef __cplusplus
24255 extern "C"
24256 #endif
24257 char is_selinux_enabled ();
24259 main ()
24261 return is_selinux_enabled ();
24263 return 0;
24265 _ACEOF
24266 if ac_fn_c_try_link "$LINENO"; then :
24267 ac_cv_lib_selinux_is_selinux_enabled=yes
24268 else
24269 ac_cv_lib_selinux_is_selinux_enabled=no
24271 rm -f core conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
24273 LIBS=$ac_check_lib_save_LIBS
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24276 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24277 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
24278 for ac_header in selinux/selinux.h
24279 do :
24280 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
24281 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
24282 cat >>confdefs.h <<_ACEOF
24283 #define HAVE_SELINUX_SELINUX_H 1
24284 _ACEOF
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
24286 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
24287 if test "${ac_cv_lib_selinux_lgetfilecon_raw+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 ac_check_lib_save_LIBS=$LIBS
24291 LIBS="-lselinux $LIBS"
24292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h. */
24295 /* Override any GCC internal prototype to avoid an error.
24296 Use char because int might match the return type of a GCC
24297 builtin and then its argument prototype would still apply. */
24298 #ifdef __cplusplus
24299 extern "C"
24300 #endif
24301 char lgetfilecon_raw ();
24303 main ()
24305 return lgetfilecon_raw ();
24307 return 0;
24309 _ACEOF
24310 if ac_fn_c_try_link "$LINENO"; then :
24311 ac_cv_lib_selinux_lgetfilecon_raw=yes
24312 else
24313 ac_cv_lib_selinux_lgetfilecon_raw=no
24315 rm -f core conftest.err conftest.$ac_objext \
24316 conftest$ac_exeext conftest.$ac_ext
24317 LIBS=$ac_check_lib_save_LIBS
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
24320 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
24321 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = x""yes; then :
24323 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
24325 SELINUX_LIBS="-lselinux"
24326 msg_selinux=yes
24332 done
24340 inotify_support=no
24341 for ac_header in sys/inotify.h
24342 do :
24343 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
24344 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
24345 cat >>confdefs.h <<_ACEOF
24346 #define HAVE_SYS_INOTIFY_H 1
24347 _ACEOF
24349 inotify_support=yes
24350 for ac_func in inotify_init1
24351 do :
24352 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
24353 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
24354 cat >>confdefs.h <<_ACEOF
24355 #define HAVE_INOTIFY_INIT1 1
24356 _ACEOF
24359 done
24364 done
24367 if test "$inotify_support" = "yes"; then
24368 HAVE_INOTIFY_TRUE=
24369 HAVE_INOTIFY_FALSE='#'
24370 else
24371 HAVE_INOTIFY_TRUE='#'
24372 HAVE_INOTIFY_FALSE=
24376 fen_support=no
24377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24378 /* end confdefs.h. */
24380 #include <port.h>
24381 #ifndef PORT_SOURCE_FILE
24382 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
24383 #endif
24384 int main() { return 0; }
24385 _ACEOF
24386 if ac_fn_c_try_compile "$LINENO"; then :
24388 fen_support=yes
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 if test "$fen_support" = "yes"; then
24394 HAVE_FEN_TRUE=
24395 HAVE_FEN_FALSE='#'
24396 else
24397 HAVE_FEN_TRUE='#'
24398 HAVE_FEN_FALSE=
24403 should_disable_fam=no
24405 # Check whether --enable-fam was given.
24406 if test "${enable_fam+set}" = set; then :
24407 enableval=$enable_fam;
24408 if test "x$enable_fam" = "xno"; then
24409 should_disable_fam=yes
24410 echo "Not building FAM support"
24416 fam_support=no
24417 FAM_LIBS=
24418 if test "x$should_disable_fam" = "xno"; then
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5
24420 $as_echo_n "checking for FAMOpen in -lfam... " >&6; }
24421 if test "${ac_cv_lib_fam_FAMOpen+set}" = set; then :
24422 $as_echo_n "(cached) " >&6
24423 else
24424 ac_check_lib_save_LIBS=$LIBS
24425 LIBS="-lfam $LIBS"
24426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24427 /* end confdefs.h. */
24429 /* Override any GCC internal prototype to avoid an error.
24430 Use char because int might match the return type of a GCC
24431 builtin and then its argument prototype would still apply. */
24432 #ifdef __cplusplus
24433 extern "C"
24434 #endif
24435 char FAMOpen ();
24437 main ()
24439 return FAMOpen ();
24441 return 0;
24443 _ACEOF
24444 if ac_fn_c_try_link "$LINENO"; then :
24445 ac_cv_lib_fam_FAMOpen=yes
24446 else
24447 ac_cv_lib_fam_FAMOpen=no
24449 rm -f core conftest.err conftest.$ac_objext \
24450 conftest$ac_exeext conftest.$ac_ext
24451 LIBS=$ac_check_lib_save_LIBS
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5
24454 $as_echo "$ac_cv_lib_fam_FAMOpen" >&6; }
24455 if test "x$ac_cv_lib_fam_FAMOpen" = x""yes; then :
24456 for ac_header in fam.h
24457 do :
24458 ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
24459 if test "x$ac_cv_header_fam_h" = x""yes; then :
24460 cat >>confdefs.h <<_ACEOF
24461 #define HAVE_FAM_H 1
24462 _ACEOF
24464 $as_echo "#define HAVE_FAM /**/" >>confdefs.h
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMNoExists in -lfam" >&5
24467 $as_echo_n "checking for FAMNoExists in -lfam... " >&6; }
24468 if test "${ac_cv_lib_fam_FAMNoExists+set}" = set; then :
24469 $as_echo_n "(cached) " >&6
24470 else
24471 ac_check_lib_save_LIBS=$LIBS
24472 LIBS="-lfam $LIBS"
24473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h. */
24476 /* Override any GCC internal prototype to avoid an error.
24477 Use char because int might match the return type of a GCC
24478 builtin and then its argument prototype would still apply. */
24479 #ifdef __cplusplus
24480 extern "C"
24481 #endif
24482 char FAMNoExists ();
24484 main ()
24486 return FAMNoExists ();
24488 return 0;
24490 _ACEOF
24491 if ac_fn_c_try_link "$LINENO"; then :
24492 ac_cv_lib_fam_FAMNoExists=yes
24493 else
24494 ac_cv_lib_fam_FAMNoExists=no
24496 rm -f core conftest.err conftest.$ac_objext \
24497 conftest$ac_exeext conftest.$ac_ext
24498 LIBS=$ac_check_lib_save_LIBS
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMNoExists" >&5
24501 $as_echo "$ac_cv_lib_fam_FAMNoExists" >&6; }
24502 if test "x$ac_cv_lib_fam_FAMNoExists" = x""yes; then :
24504 $as_echo "#define HAVE_FAM_NO_EXISTS /**/" >>confdefs.h
24508 FAM_LIBS="-lfam"
24509 fam_support=yes
24510 else
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (header files not found) ***" >&5
24512 $as_echo "$as_me: WARNING: *** FAM support will not be built (header files not found) ***" >&2;}
24515 done
24517 else
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (FAM library not found) ***" >&5
24519 $as_echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) ***" >&2;}
24524 if test "$fam_support" = "yes"; then
24525 HAVE_FAM_TRUE=
24526 HAVE_FAM_FALSE='#'
24527 else
24528 HAVE_FAM_TRUE='#'
24529 HAVE_FAM_FALSE=
24534 # Check whether --enable-xattr was given.
24535 if test "${enable_xattr+set}" = set; then :
24536 enableval=$enable_xattr;
24539 msg_xattr=no
24540 XATTR_LIBS=
24541 if test "x$enable_xattr" != "xno"; then
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
24546 $as_echo_n "checking for getxattr in -lc... " >&6; }
24547 if test "${ac_cv_lib_c_getxattr+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24549 else
24550 ac_check_lib_save_LIBS=$LIBS
24551 LIBS="-lc $LIBS"
24552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h. */
24555 /* Override any GCC internal prototype to avoid an error.
24556 Use char because int might match the return type of a GCC
24557 builtin and then its argument prototype would still apply. */
24558 #ifdef __cplusplus
24559 extern "C"
24560 #endif
24561 char getxattr ();
24563 main ()
24565 return getxattr ();
24567 return 0;
24569 _ACEOF
24570 if ac_fn_c_try_link "$LINENO"; then :
24571 ac_cv_lib_c_getxattr=yes
24572 else
24573 ac_cv_lib_c_getxattr=no
24575 rm -f core conftest.err conftest.$ac_objext \
24576 conftest$ac_exeext conftest.$ac_ext
24577 LIBS=$ac_check_lib_save_LIBS
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
24580 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
24581 if test "x$ac_cv_lib_c_getxattr" = x""yes; then :
24582 for ac_header in sys/xattr.h
24583 do :
24584 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
24585 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
24586 cat >>confdefs.h <<_ACEOF
24587 #define HAVE_SYS_XATTR_H 1
24588 _ACEOF
24590 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
24592 msg_xattr=yes
24595 done
24601 if test "x$msg_xattr" != "xyes"; then
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
24603 $as_echo_n "checking for getxattr in -lattr... " >&6; }
24604 if test "${ac_cv_lib_attr_getxattr+set}" = set; then :
24605 $as_echo_n "(cached) " >&6
24606 else
24607 ac_check_lib_save_LIBS=$LIBS
24608 LIBS="-lattr $LIBS"
24609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610 /* end confdefs.h. */
24612 /* Override any GCC internal prototype to avoid an error.
24613 Use char because int might match the return type of a GCC
24614 builtin and then its argument prototype would still apply. */
24615 #ifdef __cplusplus
24616 extern "C"
24617 #endif
24618 char getxattr ();
24620 main ()
24622 return getxattr ();
24624 return 0;
24626 _ACEOF
24627 if ac_fn_c_try_link "$LINENO"; then :
24628 ac_cv_lib_attr_getxattr=yes
24629 else
24630 ac_cv_lib_attr_getxattr=no
24632 rm -f core conftest.err conftest.$ac_objext \
24633 conftest$ac_exeext conftest.$ac_ext
24634 LIBS=$ac_check_lib_save_LIBS
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
24637 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
24638 if test "x$ac_cv_lib_attr_getxattr" = x""yes; then :
24639 for ac_header in attr/xattr.h
24640 do :
24641 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
24642 if test "x$ac_cv_header_attr_xattr_h" = x""yes; then :
24643 cat >>confdefs.h <<_ACEOF
24644 #define HAVE_ATTR_XATTR_H 1
24645 _ACEOF
24647 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
24649 XATTR_LIBS="-lattr"
24650 msg_xattr=yes
24653 done
24660 if test "x$msg_xattr" = "xyes"; then
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
24662 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24666 #include <stdio.h>
24667 #ifdef HAVE_SYS_TYPES_H
24668 #include <sys/types.h>
24669 #endif
24670 #ifdef HAVE_SYS_XATTR_H
24671 #include <sys/xattr.h>
24672 #elif HAVE_ATTR_XATTR_H
24673 #include <attr/xattr.h>
24674 #endif
24677 main ()
24679 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
24681 return 0;
24683 _ACEOF
24684 if ac_fn_c_try_compile "$LINENO"; then :
24687 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24690 $as_echo "yes" >&6; }
24692 else
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24694 $as_echo "no" >&6; }
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
24705 $as_echo_n "checking for platform-dependent source... " >&6; }
24706 case "$host" in
24707 *-*-cygwin*|*-*-mingw*)
24708 PLATFORMDEP=gwin32.lo
24711 PLATFORMDEP=
24713 esac
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
24715 $as_echo "$PLATFORMDEP" >&6; }
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
24719 $as_echo_n "checking whether to compile timeloop... " >&6; }
24720 case "$host" in
24721 *-*-cygwin*|*-*-mingw*|*-*-minix)
24722 enable_timeloop=no
24725 enable_timeloop=yes
24727 esac
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
24729 $as_echo "$enable_timeloop" >&6; }
24730 if test x$enable_timeloop = xyes; then
24731 ENABLE_TIMELOOP_TRUE=
24732 ENABLE_TIMELOOP_FALSE='#'
24733 else
24734 ENABLE_TIMELOOP_TRUE='#'
24735 ENABLE_TIMELOOP_FALSE=
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
24740 $as_echo_n "checking if building for some Win32 platform... " >&6; }
24741 case "$host" in
24742 *-*-mingw*|*-*-cygwin*)
24743 platform_win32=yes
24746 platform_win32=no
24748 esac
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
24750 $as_echo "$platform_win32" >&6; }
24751 if test x$platform_win32 = xyes; then
24752 PLATFORM_WIN32_TRUE=
24753 PLATFORM_WIN32_FALSE='#'
24754 else
24755 PLATFORM_WIN32_TRUE='#'
24756 PLATFORM_WIN32_FALSE=
24762 # Check whether --with-threads was given.
24763 if test "${with_threads+set}" = set; then :
24764 withval=$with_threads; if test "x$with_threads" = x; then
24765 want_threads=yes
24766 else
24767 want_threads=$with_threads
24769 else
24770 want_threads=yes
24773 if test "x$enable_threads" = "xno"; then
24774 want_threads=no
24778 THREAD_NO_IMPLEMENTATION="You do not have any known thread system on your
24779 computer. GLib will not have a default thread implementation."
24781 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
24782 platform (normally it's "_REENTRANT"). I'll not use any flag on
24783 compilation now, but then your programs might not work.
24784 Please provide information on how it is done on your system."
24786 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
24789 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
24790 provide information on your thread implementation.
24791 You can also run 'configure --disable-threads'
24792 to compile without thread support."
24794 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
24795 functions will not be MT-safe during their first call because
24796 there is no working 'getpwuid_r' on your system."
24798 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
24799 because there is no 'localtime_r' on your system."
24801 POSIX_NO_YIELD="I can not find a yield functions for your platform. A rather
24802 crude surrogate will be used. If you happen to know a
24803 yield function for your system, please inform the GLib
24804 developers."
24806 POSIX_NO_PRIORITIES="I can not find the minimal and maximal priorities for
24807 threads on your system. Thus threads can only have the default
24808 priority. If you happen to know these main/max
24809 priorities, please inform the GLib developers."
24811 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
24812 linking threaded applications. As GLib cannot do that
24813 automatically, you will get an linkg error everytime you are
24814 not using the right compiler. In that case you have to relink
24815 with the right compiler. Ususally just '_r' is appended
24816 to the compiler name."
24819 # have_threads=no means no thread support
24820 # have_threads=none means no default thread implementation
24822 have_threads=no
24823 if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
24824 || test "x$want_threads" = xdce; then
24825 # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
24826 # -U_OSF_SOURCE is for Digital UNIX 4.0d
24827 GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
24828 glib_save_CPPFLAGS="$CPPFLAGS"
24829 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
24830 if test "x$have_threads" = xno; then
24831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24832 /* end confdefs.h. */
24833 #include <pthread.h>
24835 main ()
24837 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
24839 return 0;
24841 _ACEOF
24842 if ac_fn_c_try_compile "$LINENO"; then :
24843 have_threads=posix
24845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24847 if test "x$have_threads" = xno; then
24848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24849 /* end confdefs.h. */
24850 #include <pthread.h>
24852 main ()
24854 pthread_mutex_t m;
24855 pthread_mutex_init (&m, pthread_mutexattr_default);
24857 return 0;
24859 _ACEOF
24860 if ac_fn_c_try_compile "$LINENO"; then :
24861 have_threads=dce
24863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24865 # Tru64Unix requires -pthread to find pthread.h. See #103020
24866 CPPFLAGS="$CPPFLAGS -pthread"
24867 if test "x$have_threads" = xno; then
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h. */
24870 #include <pthread.h>
24872 main ()
24874 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
24876 return 0;
24878 _ACEOF
24879 if ac_fn_c_try_compile "$LINENO"; then :
24880 have_threads=posix
24882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884 CPPFLAGS="$glib_save_CPPFLAGS"
24886 if test "x$want_threads" = xyes || test "x$want_threads" = xwin32; then
24887 case $host in
24888 *-*-mingw*)
24889 have_threads=win32
24891 esac
24893 if test "x$want_threads" = xnone; then
24894 have_threads=none
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
24898 $as_echo_n "checking for thread implementation... " >&6; }
24900 if test "x$have_threads" = xno && test "x$want_threads" != xno; then
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
24902 $as_echo "none available" >&6; }
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $THREAD_NO_IMPLEMENTATION" >&5
24904 $as_echo "$as_me: WARNING: $THREAD_NO_IMPLEMENTATION" >&2;}
24905 else
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
24907 $as_echo "$have_threads" >&6; }
24912 G_THREAD_LIBS=
24913 G_THREAD_LIBS_EXTRA=
24914 G_THREAD_CFLAGS=
24920 if test x"$have_threads" != xno; then
24922 if test x"$have_threads" = xposix; then
24923 # First we test for posix, whether -pthread or -pthreads do the trick as
24924 # both CPPFLAG and LIBS.
24925 # One of them does for most gcc versions and some other platforms/compilers
24926 # too and could be considered as the canonical way to go.
24927 case $host in
24928 *-*-cygwin*|*-*-darwin*)
24929 # skip cygwin and darwin -pthread or -pthreads test
24931 *-solaris*)
24932 # These compiler/linker flags work with both Sun Studio and gcc
24933 # Sun Studio expands -mt to -D_REENTRANT and -lthread
24934 # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
24935 G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
24936 G_THREAD_LIBS="-lpthread -lthread"
24939 for flag in pthread pthreads mt; do
24940 glib_save_CFLAGS="$CFLAGS"
24941 CFLAGS="$CFLAGS -$flag"
24942 if test "$cross_compiling" = yes; then :
24943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24944 /* end confdefs.h. */
24946 #include <pthread.h>
24947 int check_me = 0;
24948 void* func(void* data) {check_me = 42; return &check_me;}
24949 int main()
24950 { pthread_t t;
24951 void *ret;
24952 pthread_create (&t, 0, func, 0);
24953 pthread_join (t, &ret);
24954 return (check_me != 42 || ret != &check_me);
24956 _ACEOF
24957 if ac_fn_c_try_link "$LINENO"; then :
24958 glib_flag_works=yes
24959 else
24960 glib_flag_works=no
24962 rm -f core conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
24964 else
24965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24966 /* end confdefs.h. */
24968 #include <pthread.h>
24969 int check_me = 0;
24970 void* func(void* data) {check_me = 42; return &check_me;}
24971 int main()
24972 { pthread_t t;
24973 void *ret;
24974 pthread_create (&t, 0, func, 0);
24975 pthread_join (t, &ret);
24976 return (check_me != 42 || ret != &check_me);
24978 _ACEOF
24979 if ac_fn_c_try_run "$LINENO"; then :
24980 glib_flag_works=yes
24981 else
24982 glib_flag_works=no
24984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24985 conftest.$ac_objext conftest.beam conftest.$ac_ext
24988 CFLAGS="$glib_save_CFLAGS"
24989 if test $glib_flag_works = yes ; then
24990 G_THREAD_CFLAGS=-$flag
24991 G_THREAD_LIBS=-$flag
24992 break;
24994 done
24996 esac
24999 if test x"$G_THREAD_CFLAGS" = x; then
25001 # The canonical -pthread[s] does not work. Try something different.
25003 case $host in
25004 *-aix*)
25005 if test x"$GCC" = xyes; then
25006 # GCC 3.0 and above needs -pthread.
25007 # Should be coverd by the case above.
25008 # GCC 2.x and below needs -mthreads
25009 G_THREAD_CFLAGS="-mthreads"
25010 G_THREAD_LIBS=$G_THREAD_CFLAGS
25011 else
25012 # We are probably using the aix compiler. Normaly a
25013 # program would have to be compiled with the _r variant
25014 # of the corresponding compiler, but we as GLib cannot
25015 # do that: but the good news is that for compiling the
25016 # only difference is the added -D_THREAD_SAFE compile
25017 # option. This is according to the "C for AIX User's
25018 # Guide".
25019 G_THREAD_CFLAGS="-D_THREAD_SAFE"
25022 *-dg-dgux*) # DG/UX
25023 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
25025 *-osf*)
25026 # So we are using dce threads. posix threads are already
25027 # catched above.
25028 G_THREAD_CFLAGS="-threads"
25029 G_THREAD_LIBS=$G_THREAD_CFLAGS
25031 *-sysv5uw7*) # UnixWare 7
25032 # We are not using gcc with -pthread. Catched above.
25033 G_THREAD_CFLAGS="-Kthread"
25034 G_THREAD_LIBS=$G_THREAD_CFLAGS
25036 *-mingw*)
25037 # No flag needed when using MSVCRT.DLL
25038 G_THREAD_CFLAGS=""
25041 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
25043 esac
25047 # if we are not finding the localtime_r function, then we probably are
25048 # not using the proper multithread flag
25050 glib_save_CPPFLAGS="$CPPFLAGS"
25051 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
25053 # First we test, whether localtime_r is declared in time.h
25054 # directly. Then we test whether a macro localtime_r exists, in
25055 # which case localtime_r in the test program is replaced and thus
25056 # if we still find localtime_r in the output, it is not defined as
25057 # a macro.
25059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25060 /* end confdefs.h. */
25061 #include <time.h>
25062 _ACEOF
25063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25064 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
25066 else
25067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25068 /* end confdefs.h. */
25069 #include <time.h>
25070 localtime_r(a,b)
25071 _ACEOF
25072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25073 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
25075 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
25077 rm -f conftest*
25080 rm -f conftest*
25083 CPPFLAGS="$glib_save_CPPFLAGS"
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
25086 $as_echo_n "checking thread related cflags... " >&6; }
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
25088 $as_echo "$G_THREAD_CFLAGS" >&6; }
25089 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
25093 mutex_has_default=no
25094 case $have_threads in
25095 posix|dce)
25096 glib_save_CPPFLAGS="$CPPFLAGS"
25097 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
25098 if test x"$G_THREAD_LIBS" = x; then
25099 case $host in
25100 *-aix*)
25101 # We are not using gcc (would have set G_THREAD_LIBS) and thus
25102 # probably using the aix compiler.
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
25104 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
25107 G_THREAD_LIBS=error
25108 glib_save_LIBS="$LIBS"
25109 for thread_lib in "" pthread pthread32 pthreads thread dce; do
25110 if test x"$thread_lib" = x; then
25111 add_thread_lib=""
25112 IN=""
25113 else
25114 add_thread_lib="-l$thread_lib"
25115 IN=" in -l$thread_lib"
25117 if test x"$have_threads" = xposix; then
25118 defattr=0
25119 else
25120 defattr=pthread_attr_default
25123 LIBS="$add_thread_lib $glib_save_LIBS"
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
25126 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
25127 if test "$cross_compiling" = yes; then :
25128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25129 /* end confdefs.h. */
25131 #include <pthread.h>
25132 int check_me = 0;
25133 void* func(void* data) {check_me = 42; return &check_me;}
25134 int main()
25135 { pthread_t t;
25136 void *ret;
25137 pthread_create (&t, $defattr, func, 0);
25138 pthread_join (t, &ret);
25139 return (check_me != 42 || ret != &check_me);
25141 _ACEOF
25142 if ac_fn_c_try_link "$LINENO"; then :
25143 glib_result=yes
25144 else
25145 glib_result=no
25147 rm -f core conftest.err conftest.$ac_objext \
25148 conftest$ac_exeext conftest.$ac_ext
25149 else
25150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151 /* end confdefs.h. */
25153 #include <pthread.h>
25154 int check_me = 0;
25155 void* func(void* data) {check_me = 42; return &check_me;}
25156 int main()
25157 { pthread_t t;
25158 void *ret;
25159 pthread_create (&t, $defattr, func, 0);
25160 pthread_join (t, &ret);
25161 return (check_me != 42 || ret != &check_me);
25163 _ACEOF
25164 if ac_fn_c_try_run "$LINENO"; then :
25165 glib_result=yes
25166 else
25167 glib_result=no
25169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25170 conftest.$ac_objext conftest.beam conftest.$ac_ext
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
25174 $as_echo "$glib_result" >&6; }
25176 if test "$glib_result" = "yes" ; then
25177 G_THREAD_LIBS="$add_thread_lib"
25178 break
25180 done
25181 if test "x$G_THREAD_LIBS" = xerror; then
25182 as_fn_error "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
25184 LIBS="$glib_save_LIBS"
25186 esac
25189 glib_save_LIBS="$LIBS"
25190 for thread_lib in "" rt rte; do
25191 if test x"$thread_lib" = x; then
25192 add_thread_lib=""
25193 IN=""
25194 else
25195 add_thread_lib="-l$thread_lib"
25196 IN=" in -l$thread_lib"
25198 LIBS="$add_thread_lib $glib_save_LIBS"
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_get_priority_min$IN" >&5
25201 $as_echo_n "checking for sched_get_priority_min$IN... " >&6; }
25202 if test "$cross_compiling" = yes; then :
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25206 #include <sched.h>
25207 #include <errno.h>
25208 int main() {
25209 errno = 0;
25210 return sched_get_priority_min(SCHED_OTHER)==-1
25211 && errno != 0;
25213 _ACEOF
25214 if ac_fn_c_try_link "$LINENO"; then :
25215 glib_result=yes
25216 else
25217 glib_result=no
25219 rm -f core conftest.err conftest.$ac_objext \
25220 conftest$ac_exeext conftest.$ac_ext
25221 else
25222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h. */
25225 #include <sched.h>
25226 #include <errno.h>
25227 int main() {
25228 errno = 0;
25229 return sched_get_priority_min(SCHED_OTHER)==-1
25230 && errno != 0;
25232 _ACEOF
25233 if ac_fn_c_try_run "$LINENO"; then :
25234 glib_result=yes
25235 else
25236 glib_result=no
25238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25239 conftest.$ac_objext conftest.beam conftest.$ac_ext
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
25243 $as_echo "$glib_result" >&6; }
25245 if test "$glib_result" = "yes" ; then
25246 G_THREAD_LIBS="$G_THREAD_LIBS $add_thread_lib"
25247 posix_priority_min="sched_get_priority_min(SCHED_OTHER)"
25248 posix_priority_max="sched_get_priority_max(SCHED_OTHER)"
25249 break
25251 done
25252 LIBS="$glib_save_LIBS"
25253 mutex_has_default=yes
25254 mutex_default_type='pthread_mutex_t'
25255 mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
25256 mutex_header_file='pthread.h'
25257 if test "x$have_threads" = "xposix"; then
25258 g_threads_impl="POSIX"
25259 else
25260 g_threads_impl="DCE"
25261 have_threads="posix"
25264 CPPFLAGS="$glib_save_CPPFLAGS"
25266 win32)
25267 g_threads_impl="WIN32"
25269 none|no)
25270 g_threads_impl="NONE"
25273 g_threads_impl="NONE"
25274 G_THREAD_LIBS=error
25276 esac
25278 if test "x$G_THREAD_LIBS" = xerror; then
25279 as_fn_error "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
25282 case $host in
25283 *-*-beos*)
25284 G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
25285 G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
25289 esac
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
25292 $as_echo_n "checking thread related libraries... " >&6; }
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
25294 $as_echo "$G_THREAD_LIBS" >&6; }
25297 if test x"$have_threads" != xno; then
25298 glib_save_LIBS="$LIBS"
25299 # we are not doing the following for now, as this might require glib
25300 # to always be linked with the thread libs on some platforms.
25301 # LIBS="$LIBS $G_THREAD_LIBS"
25302 for ac_func in localtime_r gmtime_r
25303 do :
25304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25306 eval as_val=\$$as_ac_var
25307 if test "x$as_val" = x""yes; then :
25308 cat >>confdefs.h <<_ACEOF
25309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25310 _ACEOF
25313 done
25315 if test "$ac_cv_header_pwd_h" = "yes"; then
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
25317 $as_echo_n "checking for posix getpwuid_r... " >&6; }
25318 if test "${ac_cv_func_posix_getpwuid_r+set}" = set; then :
25319 $as_echo_n "(cached) " >&6
25320 else
25321 if test "$cross_compiling" = yes; then :
25322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25324 as_fn_error "cannot run test program while cross compiling
25325 See \`config.log' for more details." "$LINENO" 5; }
25326 else
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h. */
25330 #include <errno.h>
25331 #include <pwd.h>
25332 int main () {
25333 char buffer[10000];
25334 struct passwd pwd, *pwptr = &pwd;
25335 int error;
25336 errno = 0;
25337 error = getpwuid_r (0, &pwd, buffer,
25338 sizeof (buffer), &pwptr);
25339 return (error < 0 && errno == ENOSYS)
25340 || error == ENOSYS;
25342 _ACEOF
25343 if ac_fn_c_try_run "$LINENO"; then :
25344 ac_cv_func_posix_getpwuid_r=yes
25345 else
25346 ac_cv_func_posix_getpwuid_r=no
25348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25349 conftest.$ac_objext conftest.beam conftest.$ac_ext
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
25354 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
25355 if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
25356 as_fn_error "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
25359 if test "$ac_cv_func_posix_getpwuid_r" = yes; then
25361 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25363 else
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
25365 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
25366 if test "${ac_cv_func_nonposix_getpwuid_r+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25368 else
25369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370 /* end confdefs.h. */
25371 #include <pwd.h>
25373 main ()
25375 char buffer[10000];
25376 struct passwd pwd;
25377 getpwuid_r (0, &pwd, buffer,
25378 sizeof (buffer));
25380 return 0;
25382 _ACEOF
25383 if ac_fn_c_try_link "$LINENO"; then :
25384 ac_cv_func_nonposix_getpwuid_r=yes
25385 else
25386 ac_cv_func_nonposix_getpwuid_r=no
25388 rm -f core conftest.err conftest.$ac_objext \
25389 conftest$ac_exeext conftest.$ac_ext
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
25392 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
25393 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
25394 as_fn_error "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
25397 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
25399 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
25404 if test "$ac_cv_header_grp_h" = "yes"; then
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
25406 $as_echo_n "checking for posix getgrgid_r... " >&6; }
25407 if test "${ac_cv_func_posix_getgrgid_r+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410 if test "$cross_compiling" = yes; then :
25411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25413 as_fn_error "cannot run test program while cross compiling
25414 See \`config.log' for more details." "$LINENO" 5; }
25415 else
25416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25417 /* end confdefs.h. */
25419 #include <errno.h>
25420 #include <grp.h>
25421 int main () {
25422 char buffer[10000];
25423 struct group grp, *grpptr = &grp;
25424 int error;
25425 errno = 0;
25426 error = getgrgid_r (0, &grp, buffer,
25427 sizeof (buffer), &grpptr);
25428 return (error < 0 && errno == ENOSYS)
25429 || error == ENOSYS;
25431 _ACEOF
25432 if ac_fn_c_try_run "$LINENO"; then :
25433 ac_cv_func_posix_getgrgid_r=yes
25434 else
25435 ac_cv_func_posix_getgrgid_r=no
25437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25438 conftest.$ac_objext conftest.beam conftest.$ac_ext
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
25443 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
25444 if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
25445 as_fn_error "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
25448 if test "$ac_cv_func_posix_getgrgid_r" = yes; then
25450 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
25452 else
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
25454 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
25455 if test "${ac_cv_func_nonposix_getgrgid_r+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25457 else
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h. */
25460 #include <grp.h>
25462 main ()
25464 char buffer[10000];
25465 struct group grp;
25466 getgrgid_r (0, &grp, buffer,
25467 sizeof (buffer));
25469 return 0;
25471 _ACEOF
25472 if ac_fn_c_try_link "$LINENO"; then :
25473 ac_cv_func_nonposix_getgrgid_r=yes
25474 else
25475 ac_cv_func_nonposix_getgrgid_r=no
25477 rm -f core conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
25481 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
25482 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
25483 as_fn_error "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
25486 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
25488 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
25493 LIBS="$G_THREAD_LIBS $LIBS"
25494 if test x"$have_threads" = xposix; then
25495 glib_save_CPPFLAGS="$CPPFLAGS"
25496 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
25498 $as_echo_n "checking size of pthread_t... " >&6; }
25499 if test "${glib_cv_sizeof_system_thread+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25501 else
25502 # The cast to unsigned long works around a bug in the HP C Compiler
25503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25505 # This bug is HP SR number 8606223364.
25506 if ac_fn_c_compute_int "$LINENO" "(long) (sizeof (pthread_t))" "glib_cv_sizeof_system_thread" "#include <pthread.h>
25507 "; then :
25509 else
25510 as_fn_error "cannot compute sizeof (pthread_t), 77" "$LINENO" 5
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sizeof_system_thread" >&5
25517 $as_echo "$glib_cv_sizeof_system_thread" >&6; }
25518 cat >>confdefs.h <<_ACEOF
25519 #define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
25520 _ACEOF
25523 # This is not AC_CHECK_FUNC to also work with function
25524 # name mangling in header files.
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
25526 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
25527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25528 /* end confdefs.h. */
25529 #include <pthread.h>
25531 main ()
25533 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
25535 return 0;
25537 _ACEOF
25538 if ac_fn_c_try_link "$LINENO"; then :
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25540 $as_echo "yes" >&6; }
25542 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
25544 else
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25546 $as_echo "no" >&6; }
25548 rm -f core conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext conftest.$ac_ext
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimal/maximal thread priority" >&5
25551 $as_echo_n "checking for minimal/maximal thread priority... " >&6; }
25552 if test x"$posix_priority_min" = x; then
25553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25554 /* end confdefs.h. */
25555 #include <pthread.h>
25556 PX_PRIO_MIN
25557 _ACEOF
25558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25559 $EGREP "PX_PRIO_MIN" >/dev/null 2>&1; then :
25561 else
25563 posix_priority_min=PX_PRIO_MIN
25564 posix_priority_max=PX_PRIO_MAX
25566 rm -f conftest*
25569 if test x"$posix_priority_min" = x; then
25570 # AIX
25571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25572 /* end confdefs.h. */
25573 #include <pthread.h>
25574 PTHREAD_PRIO_MIN
25575 _ACEOF
25576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25577 $EGREP "PTHREAD_PRIO_MIN" >/dev/null 2>&1; then :
25579 else
25581 posix_priority_min=PTHREAD_PRIO_MIN
25582 posix_priority_max=PTHREAD_PRIO_MAX
25584 rm -f conftest*
25587 if test x"$posix_priority_min" = x; then
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589 /* end confdefs.h. */
25590 #include <pthread.h>
25591 PRI_OTHER_MIN
25592 _ACEOF
25593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25594 $EGREP "PRI_OTHER_MIN" >/dev/null 2>&1; then :
25596 else
25598 posix_priority_min=PRI_OTHER_MIN
25599 posix_priority_max=PRI_OTHER_MAX
25601 rm -f conftest*
25604 if test x"$posix_priority_min" = x; then
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
25606 $as_echo "none found" >&6; }
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $POSIX_NO_PRIORITIES" >&5
25608 $as_echo "$as_me: WARNING: $POSIX_NO_PRIORITIES" >&2;}
25609 posix_priority_min=-1
25610 posix_priority_max=-1
25611 else
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $posix_priority_min/$posix_priority_max" >&5
25613 $as_echo "$posix_priority_min/$posix_priority_max" >&6; }
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setschedparam" >&5
25615 $as_echo_n "checking for pthread_setschedparam... " >&6; }
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h. */
25618 #include <pthread.h>
25620 main ()
25622 pthread_t t; pthread_setschedparam(t, 0, NULL)
25624 return 0;
25626 _ACEOF
25627 if ac_fn_c_try_link "$LINENO"; then :
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25629 $as_echo "yes" >&6; }
25631 cat >>confdefs.h <<_ACEOF
25632 #define POSIX_MIN_PRIORITY $posix_priority_min
25633 _ACEOF
25636 cat >>confdefs.h <<_ACEOF
25637 #define POSIX_MAX_PRIORITY $posix_priority_max
25638 _ACEOF
25640 else
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25642 $as_echo "no" >&6; }
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $POSIX_NO_PRIORITIES" >&5
25644 $as_echo "$as_me: WARNING: $POSIX_NO_PRIORITIES" >&2;}
25646 rm -f core conftest.err conftest.$ac_objext \
25647 conftest$ac_exeext conftest.$ac_ext
25649 posix_yield_func=none
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix yield function" >&5
25651 $as_echo_n "checking for posix yield function... " >&6; }
25652 for yield_func in sched_yield pthread_yield_np pthread_yield \
25653 thr_yield; do
25654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25655 /* end confdefs.h. */
25656 #include <pthread.h>
25658 main ()
25660 $yield_func()
25662 return 0;
25664 _ACEOF
25665 if ac_fn_c_try_link "$LINENO"; then :
25666 posix_yield_func="$yield_func"
25667 break
25669 rm -f core conftest.err conftest.$ac_objext \
25670 conftest$ac_exeext conftest.$ac_ext
25671 done
25672 if test x"$posix_yield_func" = xnone; then
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
25674 $as_echo "none found" >&6; }
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $POSIX_NO_YIELD" >&5
25676 $as_echo "$as_me: WARNING: $POSIX_NO_YIELD" >&2;}
25677 posix_yield_func="g_usleep(1000)"
25678 else
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $posix_yield_func" >&5
25680 $as_echo "$posix_yield_func" >&6; }
25681 posix_yield_func="$posix_yield_func()"
25684 cat >>confdefs.h <<_ACEOF
25685 #define POSIX_YIELD_FUNC $posix_yield_func
25686 _ACEOF
25688 CPPFLAGS="$glib_save_CPPFLAGS"
25690 elif test x"$have_threads" = xwin32; then
25691 # It's a pointer to a private struct
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct _GThreadData *" >&5
25693 $as_echo_n "checking size of struct _GThreadData *... " >&6; }
25694 if test "${glib_cv_sizeof_system_thread+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25696 else
25697 # The cast to unsigned long works around a bug in the HP C Compiler
25698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25700 # This bug is HP SR number 8606223364.
25701 if ac_fn_c_compute_int "$LINENO" "(long) (sizeof (struct _GThreadData *))" "glib_cv_sizeof_system_thread" "$ac_includes_default"; then :
25703 else
25704 as_fn_error "cannot compute sizeof (struct _GThreadData *), 77" "$LINENO" 5
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sizeof_system_thread" >&5
25711 $as_echo "$glib_cv_sizeof_system_thread" >&6; }
25712 cat >>confdefs.h <<_ACEOF
25713 #define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
25714 _ACEOF
25719 LIBS="$glib_save_LIBS"
25721 # now spit out all the warnings.
25722 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
25723 test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
25725 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
25727 if test "$ac_cv_func_localtime_r" != "yes"; then
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
25729 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
25733 if test x"$glib_cv_sizeof_system_thread" = x; then
25734 # use a pointer as a fallback.
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
25736 $as_echo_n "checking size of void *... " >&6; }
25737 if test "${glib_cv_sizeof_system_thread+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25739 else
25740 # The cast to unsigned long works around a bug in the HP C Compiler
25741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25743 # This bug is HP SR number 8606223364.
25744 if ac_fn_c_compute_int "$LINENO" "(long) (sizeof (void *))" "glib_cv_sizeof_system_thread" "$ac_includes_default"; then :
25746 else
25747 as_fn_error "cannot compute sizeof (void *), 77" "$LINENO" 5
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sizeof_system_thread" >&5
25754 $as_echo "$glib_cv_sizeof_system_thread" >&6; }
25755 cat >>confdefs.h <<_ACEOF
25756 #define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
25757 _ACEOF
25763 # Hack to deal with:
25765 # a) GCC < 3.3 for Linux doesn't include -lpthread when
25766 # building shared libraries with linux.
25767 # b) FreeBSD doesn't do this either.
25769 case $host in
25770 *-*-freebsd*|*-*-linux*)
25771 G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
25774 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
25776 esac
25778 if test "$have_threads" != "none"; then
25779 HAVE_THREADS_TRUE=
25780 HAVE_THREADS_FALSE='#'
25781 else
25782 HAVE_THREADS_TRUE='#'
25783 HAVE_THREADS_FALSE=
25787 cat >>confdefs.h <<_ACEOF
25788 #define G_THREAD_SOURCE "gthread-$have_threads.c"
25789 _ACEOF
25796 if test $mutex_has_default = yes ; then
25797 glib_save_CPPFLAGS="$CPPFLAGS"
25798 glib_save_LIBS="$LIBS"
25799 LIBS="$G_THREAD_LIBS $LIBS"
25800 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of $mutex_default_type" >&5
25802 $as_echo_n "checking size of $mutex_default_type... " >&6; }
25803 if test "${glib_cv_sizeof_gmutex+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25805 else
25806 # The cast to unsigned long works around a bug in the HP C Compiler
25807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25809 # This bug is HP SR number 8606223364.
25810 if ac_fn_c_compute_int "$LINENO" "(long) (sizeof ($mutex_default_type))" "glib_cv_sizeof_gmutex" "#include <$mutex_header_file>
25811 "; then :
25813 else
25814 as_fn_error "cannot compute sizeof ($mutex_default_type), 77" "$LINENO" 5
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sizeof_gmutex" >&5
25821 $as_echo "$glib_cv_sizeof_gmutex" >&6; }
25822 cat >>confdefs.h <<_ACEOF
25823 #define GLIB_SIZEOF_GMUTEX $glib_cv_sizeof_gmutex
25824 _ACEOF
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking byte contents of $mutex_default_init" >&5
25828 $as_echo_n "checking byte contents of $mutex_default_init... " >&6; }
25829 if test "${glib_cv_byte_contents_gmutex+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 if test "$cross_compiling" = yes; then :
25833 glib_cv_byte_contents_gmutex=no
25834 else
25835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25836 /* end confdefs.h. */
25837 #include <stdio.h>
25838 #include <$mutex_header_file>
25839 main()
25841 static $mutex_default_type tv = $mutex_default_init;
25842 char *p = (char*) &tv;
25843 int i;
25844 FILE *f=fopen("conftestval", "w");
25845 if (!f) exit(1);
25846 for (i = 0; i < $glib_cv_sizeof_gmutex; i++)
25847 fprintf(f, "%s%d", i?",":"", *(p++));
25848 fprintf(f, "\n");
25849 exit(0);
25851 _ACEOF
25852 if ac_fn_c_try_run "$LINENO"; then :
25853 glib_cv_byte_contents_gmutex=`cat conftestval`
25854 else
25855 glib_cv_byte_contents_gmutex=no
25857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25858 conftest.$ac_objext conftest.beam conftest.$ac_ext
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_byte_contents_gmutex" >&5
25863 $as_echo "$glib_cv_byte_contents_gmutex" >&6; }
25865 cat >>confdefs.h <<_ACEOF
25866 #define GLIB_BYTE_CONTENTS_GMUTEX $glib_cv_byte_contents_gmutex
25867 _ACEOF
25870 if test x"$glib_cv_byte_contents_gmutex" = xno; then
25871 mutex_has_default=no
25873 CPPFLAGS="$glib_save_CPPFLAGS"
25874 LIBS="$glib_save_LIBS"
25877 for ac_func in clock_gettime
25878 do :
25879 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25880 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
25881 cat >>confdefs.h <<_ACEOF
25882 #define HAVE_CLOCK_GETTIME 1
25883 _ACEOF
25885 else
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25888 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25889 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 ac_check_lib_save_LIBS=$LIBS
25893 LIBS="-lrt $LIBS"
25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895 /* end confdefs.h. */
25897 /* Override any GCC internal prototype to avoid an error.
25898 Use char because int might match the return type of a GCC
25899 builtin and then its argument prototype would still apply. */
25900 #ifdef __cplusplus
25901 extern "C"
25902 #endif
25903 char clock_gettime ();
25905 main ()
25907 return clock_gettime ();
25909 return 0;
25911 _ACEOF
25912 if ac_fn_c_try_link "$LINENO"; then :
25913 ac_cv_lib_rt_clock_gettime=yes
25914 else
25915 ac_cv_lib_rt_clock_gettime=no
25917 rm -f core conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
25919 LIBS=$ac_check_lib_save_LIBS
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25922 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25923 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25925 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25927 G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
25928 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
25934 done
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clocks" >&5
25938 $as_echo_n "checking for monotonic clocks... " >&6; }
25939 if test "${glib_cv_monotonic_clock+set}" = set; then :
25940 $as_echo_n "(cached) " >&6
25941 else
25942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25943 /* end confdefs.h. */
25945 #include <time.h>
25946 #include <unistd.h>
25947 int main() {
25948 #if !(defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0 && defined(CLOCK_MONOTONIC))
25949 #error No monotonic clock
25950 #endif
25951 return 0;
25954 _ACEOF
25955 if ac_fn_c_try_compile "$LINENO"; then :
25956 glib_cv_monotonic_clock=yes
25957 else
25958 glib_cv_monotonic_clock=no
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_monotonic_clock" >&5
25963 $as_echo "$glib_cv_monotonic_clock" >&6; }
25964 if test "$glib_cv_monotonic_clock" = "yes"; then
25966 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use assembler code for atomic operations" >&5
25973 $as_echo_n "checking whether to use assembler code for atomic operations... " >&6; }
25975 glib_cv_gcc_has_builtin_atomic_operations=no
25976 if test x"$GCC" = xyes; then
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports build-in atomic intrinsics" >&5
25978 $as_echo_n "checking whether GCC supports build-in atomic intrinsics... " >&6; }
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25983 main ()
25985 int i;
25986 __sync_synchronize ();
25987 __sync_bool_compare_and_swap (&i, 0, 1);
25988 __sync_fetch_and_add (&i, 1);
25991 return 0;
25993 _ACEOF
25994 if ac_fn_c_try_link "$LINENO"; then :
25995 glib_cv_gcc_has_builtin_atomic_operations=yes
25996 else
25997 glib_cv_gcc_has_builtin_atomic_operations=no
25999 rm -f core conftest.err conftest.$ac_objext \
26000 conftest$ac_exeext conftest.$ac_ext
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_gcc_has_builtin_atomic_operations" >&5
26003 $as_echo "$glib_cv_gcc_has_builtin_atomic_operations" >&6; }
26004 if test $glib_cv_gcc_has_builtin_atomic_operations = yes; then
26005 glib_memory_barrier_needed=yes
26006 else
26007 case $host_cpu in
26008 i386)
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
26010 $as_echo "none" >&6; }
26011 glib_memory_barrier_needed=no
26013 i?86)
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: i486" >&5
26015 $as_echo "i486" >&6; }
26017 cat >>confdefs.h <<_ACEOF
26018 #define G_ATOMIC_I486 1
26019 _ACEOF
26021 glib_memory_barrier_needed=no
26023 sparc*)
26024 SPARCV9_WARNING="Try to rerun configure with CFLAGS='-mcpu=v9',
26025 when you are using a sparc with v9 instruction set (most
26026 sparcs nowadays). This will make the code for atomic
26027 operations much faster. The resulting code will not run
26028 on very old sparcs though."
26030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h. */
26033 main ()
26035 int tmp1, tmp2, tmp3;
26036 __asm__ __volatile__("casx [%2], %0, %1"
26037 : "=&r" (tmp1), "=&r" (tmp2) : "r" (&tmp3));
26039 _ACEOF
26040 if ac_fn_c_try_link "$LINENO"; then :
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sparcv9" >&5
26042 $as_echo "sparcv9" >&6; }
26044 cat >>confdefs.h <<_ACEOF
26045 #define G_ATOMIC_SPARCV9 1
26046 _ACEOF
26048 else
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26050 $as_echo "no" >&6; }
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SPARCV9_WARNING" >&5
26052 $as_echo "$as_me: WARNING: $SPARCV9_WARNING" >&2;}
26054 rm -f core conftest.err conftest.$ac_objext \
26055 conftest$ac_exeext conftest.$ac_ext
26056 glib_memory_barrier_needed=yes
26058 alpha*)
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
26060 $as_echo "alpha" >&6; }
26062 cat >>confdefs.h <<_ACEOF
26063 #define G_ATOMIC_ALPHA 1
26064 _ACEOF
26066 glib_memory_barrier_needed=yes
26068 x86_64)
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
26070 $as_echo "x86_64" >&6; }
26072 cat >>confdefs.h <<_ACEOF
26073 #define G_ATOMIC_X86_64 1
26074 _ACEOF
26076 glib_memory_barrier_needed=no
26078 powerpc*)
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: powerpc" >&5
26080 $as_echo "powerpc" >&6; }
26082 cat >>confdefs.h <<_ACEOF
26083 #define G_ATOMIC_POWERPC 1
26084 _ACEOF
26086 glib_memory_barrier_needed=yes
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm supports numbered local labels" >&5
26088 $as_echo_n "checking whether asm supports numbered local labels... " >&6; }
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h. */
26093 main ()
26096 __asm__ __volatile__ ("1: nop\n"
26097 " bne- 1b")
26100 return 0;
26102 _ACEOF
26103 if ac_fn_c_try_compile "$LINENO"; then :
26106 cat >>confdefs.h <<_ACEOF
26107 #define ASM_NUMERIC_LABELS 1
26108 _ACEOF
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26111 $as_echo "yes" >&6; }
26113 else
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26116 $as_echo "no" >&6; }
26119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 ia64)
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ia64" >&5
26123 $as_echo "ia64" >&6; }
26125 cat >>confdefs.h <<_ACEOF
26126 #define G_ATOMIC_IA64 1
26127 _ACEOF
26129 glib_memory_barrier_needed=yes
26131 s390|s390x)
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: s390" >&5
26133 $as_echo "s390" >&6; }
26135 cat >>confdefs.h <<_ACEOF
26136 #define G_ATOMIC_S390 1
26137 _ACEOF
26139 glib_memory_barrier_needed=no
26141 arm*)
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arm" >&5
26143 $as_echo "arm" >&6; }
26145 cat >>confdefs.h <<_ACEOF
26146 #define G_ATOMIC_ARM 1
26147 _ACEOF
26149 glib_memory_barrier_needed=no
26151 crisv32*|etraxfs*)
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crisv32" >&5
26153 $as_echo "crisv32" >&6; }
26155 cat >>confdefs.h <<_ACEOF
26156 #define G_ATOMIC_CRISV32 1
26157 _ACEOF
26159 glib_memory_barrier_needed=no
26161 cris*|etrax*)
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cris" >&5
26163 $as_echo "cris" >&6; }
26165 cat >>confdefs.h <<_ACEOF
26166 #define G_ATOMIC_CRIS 1
26167 _ACEOF
26169 glib_memory_barrier_needed=no
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
26173 $as_echo "none" >&6; }
26174 glib_memory_barrier_needed=yes
26176 esac
26178 else
26179 if test $glib_native_win32 = yes; then
26180 # For Windows but not using gcc. No barriers needed then either.
26181 glib_memory_barrier_needed=no
26185 if test $glib_cv_gcc_has_builtin_atomic_operations = yes; then
26186 HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_TRUE=
26187 HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_FALSE='#'
26188 else
26189 HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_TRUE='#'
26190 HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_FALSE=
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
26195 $as_echo_n "checking for futex(2) system call... " >&6; }
26196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h. */
26199 #include <linux/futex.h>
26200 #include <syscall.h>
26201 #include <unistd.h>
26204 main (void)
26206 /* it's not like this actually runs or anything... */
26207 syscall (SYS_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
26208 return 0;
26211 _ACEOF
26212 if ac_fn_c_try_compile "$LINENO"; then :
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26215 $as_echo "yes" >&6; }
26217 $as_echo "#define HAVE_FUTEX test \"\$have_futex\" = \"yes\"" >>confdefs.h
26220 else
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26223 $as_echo "no" >&6; }
26226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26229 glib_poll_includes="
26230 #include <sys/types.h>
26231 #include <sys/poll.h>
26234 if test $ac_cv_header_sys_types_h = yes &&
26235 test $ac_cv_header_sys_poll_h = yes ; then
26236 glib_failed=false
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
26238 $as_echo_n "checking value of POLLIN... " >&6; }
26239 if test "${glib_cv_value_POLLIN+set}" = set; then :
26240 $as_echo_n "(cached) " >&6
26241 else
26242 if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN" "$glib_poll_includes"; then :
26244 else
26245 glib_failed=true
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
26251 $as_echo "$glib_cv_value_POLLIN" >&6; }
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
26254 $as_echo_n "checking value of POLLOUT... " >&6; }
26255 if test "${glib_cv_value_POLLOUT+set}" = set; then :
26256 $as_echo_n "(cached) " >&6
26257 else
26258 if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT" "$glib_poll_includes"; then :
26260 else
26261 glib_failed=true
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
26267 $as_echo "$glib_cv_value_POLLOUT" >&6; }
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
26270 $as_echo_n "checking value of POLLPRI... " >&6; }
26271 if test "${glib_cv_value_POLLPRI+set}" = set; then :
26272 $as_echo_n "(cached) " >&6
26273 else
26274 if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI" "$glib_poll_includes"; then :
26276 else
26277 glib_failed=true
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
26283 $as_echo "$glib_cv_value_POLLPRI" >&6; }
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
26286 $as_echo_n "checking value of POLLERR... " >&6; }
26287 if test "${glib_cv_value_POLLERR+set}" = set; then :
26288 $as_echo_n "(cached) " >&6
26289 else
26290 if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR" "$glib_poll_includes"; then :
26292 else
26293 glib_failed=true
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
26299 $as_echo "$glib_cv_value_POLLERR" >&6; }
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
26302 $as_echo_n "checking value of POLLHUP... " >&6; }
26303 if test "${glib_cv_value_POLLHUP+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26305 else
26306 if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP" "$glib_poll_includes"; then :
26308 else
26309 glib_failed=true
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
26315 $as_echo "$glib_cv_value_POLLHUP" >&6; }
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
26318 $as_echo_n "checking value of POLLNVAL... " >&6; }
26319 if test "${glib_cv_value_POLLNVAL+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26321 else
26322 if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL" "$glib_poll_includes"; then :
26324 else
26325 glib_failed=true
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
26331 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
26333 if $glib_failed ; then
26334 as_fn_error "Could not determine values for POLL* constants" "$LINENO" 5
26336 else
26337 glib_cv_value_POLLIN=1
26338 glib_cv_value_POLLOUT=4
26339 glib_cv_value_POLLPRI=2
26340 glib_cv_value_POLLERR=8
26341 glib_cv_value_POLLHUP=16
26342 glib_cv_value_POLLNVAL=32
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
26346 $as_echo_n "checking for broken poll... " >&6; }
26347 if test "$cross_compiling" = yes; then :
26348 broken_poll="no (cross compiling)"
26349 else
26350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26353 #include <stdlib.h>
26354 #include <fcntl.h>
26355 #include <poll.h>
26356 #ifdef HAVE_SYS_POLL_H
26357 #include <sys/poll.h>
26358 #endif
26359 int main(void) {
26360 struct pollfd fds[1];
26361 int fd;
26362 fd = open("/dev/null", 1);
26363 fds[0].fd = fd;
26364 fds[0].events = POLLIN;
26365 fds[0].revents = 0;
26366 if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
26367 exit(1); /* Does not work for devices -- fail */
26369 exit(0);
26371 _ACEOF
26372 if ac_fn_c_try_run "$LINENO"; then :
26373 broken_poll=no
26374 else
26375 broken_poll=yes
26377 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
26380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26381 conftest.$ac_objext conftest.beam conftest.$ac_ext
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
26385 $as_echo "$broken_poll" >&6; }
26387 PCRE_REQUIRED_VERSION=7.2
26389 # Check if we should compile GRegex
26390 # Check whether --enable-regex was given.
26391 if test "${enable_regex+set}" = set; then :
26392 enableval=$enable_regex; case "${enableval}" in
26393 yes) enable_regex=true ;;
26394 no) enable_regex=false ;;
26395 *) as_fn_error "bad value ${enableval} for --enable-regex" "$LINENO" 5 ;;
26396 esac
26397 else
26398 enable_regex=true
26402 if $enable_regex; then
26403 ENABLE_REGEX_TRUE=
26404 ENABLE_REGEX_FALSE='#'
26405 else
26406 ENABLE_REGEX_TRUE='#'
26407 ENABLE_REGEX_FALSE=
26411 if test x$enable_regex = xtrue; then
26413 $as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
26415 # Check if we should use the internal or the system-supplied pcre
26417 # Check whether --with-pcre was given.
26418 if test "${with_pcre+set}" = set; then :
26419 withval=$with_pcre;
26423 if test "x$with_pcre" = xsystem; then
26424 USE_SYSTEM_PCRE_TRUE=
26425 USE_SYSTEM_PCRE_FALSE='#'
26426 else
26427 USE_SYSTEM_PCRE_TRUE='#'
26428 USE_SYSTEM_PCRE_FALSE=
26432 if test "x$with_pcre" = xsystem; then
26434 pkg_failed=no
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
26436 $as_echo_n "checking for PCRE... " >&6; }
26438 if test -n "$PCRE_CFLAGS"; then
26439 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
26440 elif test -n "$PKG_CONFIG"; then
26441 if test -n "$PKG_CONFIG" && \
26442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
26443 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
26444 ac_status=$?
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; then
26447 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
26448 else
26449 pkg_failed=yes
26451 else
26452 pkg_failed=untried
26454 if test -n "$PCRE_LIBS"; then
26455 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
26456 elif test -n "$PKG_CONFIG"; then
26457 if test -n "$PKG_CONFIG" && \
26458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
26459 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
26460 ac_status=$?
26461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26462 test $ac_status = 0; }; then
26463 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
26464 else
26465 pkg_failed=yes
26467 else
26468 pkg_failed=untried
26473 if test $pkg_failed = yes; then
26475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26476 _pkg_short_errors_supported=yes
26477 else
26478 _pkg_short_errors_supported=no
26480 if test $_pkg_short_errors_supported = yes; then
26481 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
26482 else
26483 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
26485 # Put the nasty error message in config.log where it belongs
26486 echo "$PCRE_PKG_ERRORS" >&5
26488 as_fn_error "Package requirements (libpcre >= $PCRE_REQUIRED_VERSION) were not met:
26490 $PCRE_PKG_ERRORS
26492 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26493 installed software in a non-standard prefix.
26495 Alternatively, you may set the environment variables PCRE_CFLAGS
26496 and PCRE_LIBS to avoid the need to call pkg-config.
26497 See the pkg-config man page for more details.
26498 " "$LINENO" 5
26499 elif test $pkg_failed = untried; then
26500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26502 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
26503 is in your PATH or set the PKG_CONFIG environment variable to the full
26504 path to pkg-config.
26506 Alternatively, you may set the environment variables PCRE_CFLAGS
26507 and PCRE_LIBS to avoid the need to call pkg-config.
26508 See the pkg-config man page for more details.
26510 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26511 See \`config.log' for more details." "$LINENO" 5; }
26512 else
26513 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
26514 PCRE_LIBS=$pkg_cv_PCRE_LIBS
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26516 $as_echo "yes" >&6; }
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unicode support in PCRE" >&5
26520 $as_echo_n "checking for Unicode support in PCRE... " >&6; }
26521 if test "${glib_cv_pcre_has_unicode+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26523 else
26525 glib_save_CFLAGS="$CFLAGS"
26526 glib_save_LIBS="$LIBS"
26527 CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS"
26528 if test "$cross_compiling" = yes; then :
26529 glib_cv_pcre_has_unicode=yes
26530 else
26531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532 /* end confdefs.h. */
26533 #include <pcre.h>
26534 int main () {
26535 int support;
26536 pcre_config (PCRE_CONFIG_UTF8, &support);
26537 if (!support)
26538 return 1;
26539 pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support);
26540 if (!support)
26541 return 1;
26542 return 0;
26544 _ACEOF
26545 if ac_fn_c_try_run "$LINENO"; then :
26546 glib_cv_pcre_has_unicode=yes
26547 else
26548 glib_cv_pcre_has_unicode=no
26550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26551 conftest.$ac_objext conftest.beam conftest.$ac_ext
26554 CFLAGS="$glib_save_CFLAGS"
26555 LIBS="$glib_save_LIBS"
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_pcre_has_unicode" >&5
26559 $as_echo "$glib_cv_pcre_has_unicode" >&6; }
26560 if test "$glib_cv_pcre_has_unicode" = "no"; then
26561 as_fn_error "*** The system-supplied PCRE does not support Unicode properties or UTF-8." "$LINENO" 5
26566 $as_echo "#define USE_SYSTEM_PCRE /**/" >>confdefs.h
26568 PCRE_REQUIRES=libpcre
26570 else
26571 # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
26572 if test x"$GCC" = xyes; then
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wno-pointer-sign" >&5
26574 $as_echo_n "checking whether compiler understands -Wno-pointer-sign... " >&6; }
26575 save_CFLAGS="$CFLAGS"
26576 CFLAGS="$CFLAGS -Wno-pointer-sign"
26577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578 /* end confdefs.h. */
26581 main ()
26585 return 0;
26587 _ACEOF
26588 if ac_fn_c_try_compile "$LINENO"; then :
26589 PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26591 $as_echo "yes" >&6; }
26592 else
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26594 $as_echo "no" >&6; }
26596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26597 CFLAGS="$save_CFLAGS"
26601 else
26602 if false]; then
26603 USE_SYSTEM_PCRE_TRUE=
26604 USE_SYSTEM_PCRE_FALSE='#'
26605 else
26606 USE_SYSTEM_PCRE_TRUE='#'
26607 USE_SYSTEM_PCRE_FALSE=
26613 case $host in
26614 *-*-cygwin*)
26615 G_LIBS_EXTRA="-luser32 -lkernel32"
26617 *-*-mingw*)
26618 G_LIBS_EXTRA="-lws2_32 -lole32"
26621 G_LIBS_EXTRA=""
26623 esac
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
26628 $as_echo_n "checking for EILSEQ... " >&6; }
26629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630 /* end confdefs.h. */
26632 #include <errno.h>
26635 main ()
26638 int error = EILSEQ;
26641 return 0;
26643 _ACEOF
26644 if ac_fn_c_try_compile "$LINENO"; then :
26645 have_eilseq=yes
26646 else
26647 have_eilseq=no
26649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
26651 $as_echo "$have_eilseq" >&6; }
26654 if test $cross_compiling = yes; then
26655 CROSS_COMPILING_TRUE=
26656 CROSS_COMPILING_FALSE='#'
26657 else
26658 CROSS_COMPILING_TRUE='#'
26659 CROSS_COMPILING_FALSE=
26663 if test $cross_compiling = yes; then
26664 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
26665 set dummy glib-genmarshal; ac_word=$2
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26667 $as_echo_n "checking for $ac_word... " >&6; }
26668 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then :
26669 $as_echo_n "(cached) " >&6
26670 else
26671 case $GLIB_GENMARSHAL in
26672 [\\/]* | ?:[\\/]*)
26673 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
26676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26677 for as_dir in $PATH
26679 IFS=$as_save_IFS
26680 test -z "$as_dir" && as_dir=.
26681 for ac_exec_ext in '' $ac_executable_extensions; do
26682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26683 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
26684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26685 break 2
26687 done
26688 done
26689 IFS=$as_save_IFS
26691 test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="no"
26693 esac
26695 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
26696 if test -n "$GLIB_GENMARSHAL"; then
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
26698 $as_echo "$GLIB_GENMARSHAL" >&6; }
26699 else
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26701 $as_echo "no" >&6; }
26705 if test x$GLIB_GENMARSHAL = xno; then
26706 as_fn_error "Could not find a glib-genmarshal in your PATH" "$LINENO" 5
26709 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
26710 set dummy glib-compile-schemas; ac_word=$2
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26712 $as_echo_n "checking for $ac_word... " >&6; }
26713 if test "${ac_cv_path_GLIB_COMPILE_SCHEMAS+set}" = set; then :
26714 $as_echo_n "(cached) " >&6
26715 else
26716 case $GLIB_COMPILE_SCHEMAS in
26717 [\\/]* | ?:[\\/]*)
26718 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
26721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26722 for as_dir in $PATH
26724 IFS=$as_save_IFS
26725 test -z "$as_dir" && as_dir=.
26726 for ac_exec_ext in '' $ac_executable_extensions; do
26727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26728 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
26729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26730 break 2
26732 done
26733 done
26734 IFS=$as_save_IFS
26736 test -z "$ac_cv_path_GLIB_COMPILE_SCHEMAS" && ac_cv_path_GLIB_COMPILE_SCHEMAS="no"
26738 esac
26740 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
26741 if test -n "$GLIB_COMPILE_SCHEMAS"; then
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
26743 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
26744 else
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26746 $as_echo "no" >&6; }
26750 if test x$GLIB_COMPILE_SCHEMAS = xno; then
26751 as_fn_error "Could not find a glib-compile-schemas in your PATH" "$LINENO" 5
26758 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
26759 set dummy gtkdoc-check; ac_word=$2
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26761 $as_echo_n "checking for $ac_word... " >&6; }
26762 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
26763 $as_echo_n "(cached) " >&6
26764 else
26765 case $GTKDOC_CHECK in
26766 [\\/]* | ?:[\\/]*)
26767 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
26770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26771 for as_dir in $PATH
26773 IFS=$as_save_IFS
26774 test -z "$as_dir" && as_dir=.
26775 for ac_exec_ext in '' $ac_executable_extensions; do
26776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26777 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
26778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26779 break 2
26781 done
26782 done
26783 IFS=$as_save_IFS
26786 esac
26788 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
26789 if test -n "$GTKDOC_CHECK"; then
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
26791 $as_echo "$GTKDOC_CHECK" >&6; }
26792 else
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26794 $as_echo "no" >&6; }
26798 for ac_prog in gtkdoc-rebase
26800 # Extract the first word of "$ac_prog", so it can be a program name with args.
26801 set dummy $ac_prog; ac_word=$2
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26803 $as_echo_n "checking for $ac_word... " >&6; }
26804 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
26805 $as_echo_n "(cached) " >&6
26806 else
26807 case $GTKDOC_REBASE in
26808 [\\/]* | ?:[\\/]*)
26809 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
26812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26813 for as_dir in $PATH
26815 IFS=$as_save_IFS
26816 test -z "$as_dir" && as_dir=.
26817 for ac_exec_ext in '' $ac_executable_extensions; do
26818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26819 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
26820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26821 break 2
26823 done
26824 done
26825 IFS=$as_save_IFS
26828 esac
26830 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
26831 if test -n "$GTKDOC_REBASE"; then
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
26833 $as_echo "$GTKDOC_REBASE" >&6; }
26834 else
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26836 $as_echo "no" >&6; }
26840 test -n "$GTKDOC_REBASE" && break
26841 done
26842 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
26844 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
26845 set dummy gtkdoc-mkpdf; ac_word=$2
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26847 $as_echo_n "checking for $ac_word... " >&6; }
26848 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
26849 $as_echo_n "(cached) " >&6
26850 else
26851 case $GTKDOC_MKPDF in
26852 [\\/]* | ?:[\\/]*)
26853 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
26856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26857 for as_dir in $PATH
26859 IFS=$as_save_IFS
26860 test -z "$as_dir" && as_dir=.
26861 for ac_exec_ext in '' $ac_executable_extensions; do
26862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26863 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
26864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26865 break 2
26867 done
26868 done
26869 IFS=$as_save_IFS
26872 esac
26874 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
26875 if test -n "$GTKDOC_MKPDF"; then
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
26877 $as_echo "$GTKDOC_MKPDF" >&6; }
26878 else
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26880 $as_echo "no" >&6; }
26886 # Check whether --with-html-dir was given.
26887 if test "${with_html_dir+set}" = set; then :
26888 withval=$with_html_dir;
26889 else
26890 with_html_dir='${datadir}/gtk-doc/html'
26893 HTML_DIR="$with_html_dir"
26896 # Check whether --enable-gtk-doc was given.
26897 if test "${enable_gtk_doc+set}" = set; then :
26898 enableval=$enable_gtk_doc;
26899 else
26900 enable_gtk_doc=no
26904 if test x$enable_gtk_doc = xyes; then
26905 if test -n "$PKG_CONFIG" && \
26906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
26907 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
26908 ac_status=$?
26909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26910 test $ac_status = 0; }; then
26912 else
26913 as_fn_error "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
26918 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
26920 $as_echo "$enable_gtk_doc" >&6; }
26922 # Check whether --enable-gtk-doc-html was given.
26923 if test "${enable_gtk_doc_html+set}" = set; then :
26924 enableval=$enable_gtk_doc_html;
26925 else
26926 enable_gtk_doc_html=yes
26929 # Check whether --enable-gtk-doc-pdf was given.
26930 if test "${enable_gtk_doc_pdf+set}" = set; then :
26931 enableval=$enable_gtk_doc_pdf;
26932 else
26933 enable_gtk_doc_pdf=no
26937 if test -z "$GTKDOC_MKPDF"; then
26938 enable_gtk_doc_pdf=no
26942 if test x$enable_gtk_doc = xyes; then
26943 ENABLE_GTK_DOC_TRUE=
26944 ENABLE_GTK_DOC_FALSE='#'
26945 else
26946 ENABLE_GTK_DOC_TRUE='#'
26947 ENABLE_GTK_DOC_FALSE=
26950 if test x$enable_gtk_doc_html = xyes; then
26951 GTK_DOC_BUILD_HTML_TRUE=
26952 GTK_DOC_BUILD_HTML_FALSE='#'
26953 else
26954 GTK_DOC_BUILD_HTML_TRUE='#'
26955 GTK_DOC_BUILD_HTML_FALSE=
26958 if test x$enable_gtk_doc_pdf = xyes; then
26959 GTK_DOC_BUILD_PDF_TRUE=
26960 GTK_DOC_BUILD_PDF_FALSE='#'
26961 else
26962 GTK_DOC_BUILD_PDF_TRUE='#'
26963 GTK_DOC_BUILD_PDF_FALSE=
26966 if test -n "$LIBTOOL"; then
26967 GTK_DOC_USE_LIBTOOL_TRUE=
26968 GTK_DOC_USE_LIBTOOL_FALSE='#'
26969 else
26970 GTK_DOC_USE_LIBTOOL_TRUE='#'
26971 GTK_DOC_USE_LIBTOOL_FALSE=
26974 if test -n "$GTKDOC_REBASE"; then
26975 GTK_DOC_USE_REBASE_TRUE=
26976 GTK_DOC_USE_REBASE_FALSE='#'
26977 else
26978 GTK_DOC_USE_REBASE_TRUE='#'
26979 GTK_DOC_USE_REBASE_FALSE=
26984 # Check whether --enable-man was given.
26985 if test "${enable_man+set}" = set; then :
26986 enableval=$enable_man; enable_man=yes
26987 else
26988 enable_man=no
26992 if test "${enable_man}" != no; then
26993 # Extract the first word of "xsltproc", so it can be a program name with args.
26994 set dummy xsltproc; ac_word=$2
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26996 $as_echo_n "checking for $ac_word... " >&6; }
26997 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
26998 $as_echo_n "(cached) " >&6
26999 else
27000 case $XSLTPROC in
27001 [\\/]* | ?:[\\/]*)
27002 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
27005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27006 for as_dir in $PATH
27008 IFS=$as_save_IFS
27009 test -z "$as_dir" && as_dir=.
27010 for ac_exec_ext in '' $ac_executable_extensions; do
27011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27012 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
27013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27014 break 2
27016 done
27017 done
27018 IFS=$as_save_IFS
27021 esac
27023 XSLTPROC=$ac_cv_path_XSLTPROC
27024 if test -n "$XSLTPROC"; then
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
27026 $as_echo "$XSLTPROC" >&6; }
27027 else
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27029 $as_echo "no" >&6; }
27033 if test -z "$XSLTPROC"; then
27034 enable_man=no
27038 # check for the presence of the XML catalog
27040 # Check whether --with-xml-catalog was given.
27041 if test "${with_xml_catalog+set}" = set; then :
27042 withval=$with_xml_catalog;
27043 else
27044 with_xml_catalog=/etc/xml/catalog
27047 jh_found_xmlcatalog=true
27048 XML_CATALOG_FILE="$with_xml_catalog"
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
27051 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
27052 if test -f "$XML_CATALOG_FILE"; then
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27054 $as_echo "found" >&6; }
27055 else
27056 jh_found_xmlcatalog=false
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27058 $as_echo "not found" >&6; }
27061 # check for the xmlcatalog program
27062 # Extract the first word of "xmlcatalog", so it can be a program name with args.
27063 set dummy xmlcatalog; ac_word=$2
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27065 $as_echo_n "checking for $ac_word... " >&6; }
27066 if test "${ac_cv_path_XMLCATALOG+set}" = set; then :
27067 $as_echo_n "(cached) " >&6
27068 else
27069 case $XMLCATALOG in
27070 [\\/]* | ?:[\\/]*)
27071 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
27074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27075 for as_dir in $PATH
27077 IFS=$as_save_IFS
27078 test -z "$as_dir" && as_dir=.
27079 for ac_exec_ext in '' $ac_executable_extensions; do
27080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27081 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
27082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27083 break 2
27085 done
27086 done
27087 IFS=$as_save_IFS
27089 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
27091 esac
27093 XMLCATALOG=$ac_cv_path_XMLCATALOG
27094 if test -n "$XMLCATALOG"; then
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
27096 $as_echo "$XMLCATALOG" >&6; }
27097 else
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27099 $as_echo "no" >&6; }
27103 if test "x$XMLCATALOG" = xno; then
27104 jh_found_xmlcatalog=false
27107 if $jh_found_xmlcatalog; then
27109 else
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
27115 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
27116 if $jh_found_xmlcatalog && \
27117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
27118 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
27119 ac_status=$?
27120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27121 test $ac_status = 0; }; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27123 $as_echo "found" >&6; }
27124 else
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27126 $as_echo "not found" >&6; }
27127 enable_man=no
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
27132 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
27133 if $jh_found_xmlcatalog && \
27134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
27135 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
27136 ac_status=$?
27137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27138 test $ac_status = 0; }; then
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27140 $as_echo "found" >&6; }
27141 else
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27143 $as_echo "not found" >&6; }
27144 enable_man=no
27149 if test x$enable_man != xno; then
27150 ENABLE_MAN_TRUE=
27151 ENABLE_MAN_FALSE='#'
27152 else
27153 ENABLE_MAN_TRUE='#'
27154 ENABLE_MAN_FALSE=
27159 # Check whether --enable-dtrace was given.
27160 if test "${enable_dtrace+set}" = set; then :
27161 enableval=$enable_dtrace;
27164 have_dtrace=no
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dtrace tracing support" >&5
27166 $as_echo_n "checking whether to include dtrace tracing support... " >&6; }
27167 if test "x$enable_dtrace" != xno; then
27168 if test x$glib_have_carbon = xyes; then
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not yet compatible with MacOS dtrace)" >&5
27170 $as_echo "no (not yet compatible with MacOS dtrace)" >&6; }
27171 else
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27173 $as_echo "yes" >&6; }
27174 for ac_prog in dtrace
27176 # Extract the first word of "$ac_prog", so it can be a program name with args.
27177 set dummy $ac_prog; ac_word=$2
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27179 $as_echo_n "checking for $ac_word... " >&6; }
27180 if test "${ac_cv_prog_DTRACE+set}" = set; then :
27181 $as_echo_n "(cached) " >&6
27182 else
27183 if test -n "$DTRACE"; then
27184 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
27185 else
27186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27187 for as_dir in $PATH
27189 IFS=$as_save_IFS
27190 test -z "$as_dir" && as_dir=.
27191 for ac_exec_ext in '' $ac_executable_extensions; do
27192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27193 ac_cv_prog_DTRACE="$ac_prog"
27194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27195 break 2
27197 done
27198 done
27199 IFS=$as_save_IFS
27203 DTRACE=$ac_cv_prog_DTRACE
27204 if test -n "$DTRACE"; then
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
27206 $as_echo "$DTRACE" >&6; }
27207 else
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27209 $as_echo "no" >&6; }
27213 test -n "$DTRACE" && break
27214 done
27216 if test -z "$DTRACE"; then
27217 if test "x$enable_dtrace" = xyes; then
27218 as_fn_error "dtrace not found" "$LINENO" 5
27221 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
27222 if test "x$ac_cv_header_sys_sdt_h" = x""yes; then :
27223 have_dtrace=yes
27224 else
27225 if test "x$enable_dtrace" = xyes; then
27226 as_fn_error "dtrace support needs sys/sdt.h header" "$LINENO" 5
27232 else
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27234 $as_echo "no" >&6; }
27236 if test "x$have_dtrace" = xyes; then
27238 $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
27241 if test x$have_dtrace = xyes ; then
27242 ENABLE_DTRACE_TRUE=
27243 ENABLE_DTRACE_FALSE='#'
27244 else
27245 ENABLE_DTRACE_TRUE='#'
27246 ENABLE_DTRACE_FALSE=
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include systemtap tracing support" >&5
27251 $as_echo_n "checking whether to include systemtap tracing support... " >&6; }
27252 # Check whether --enable-systemtap was given.
27253 if test "${enable_systemtap+set}" = set; then :
27254 enableval=$enable_systemtap;
27257 have_systemtap=no
27258 if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then
27259 have_systemtap=yes
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_systemtap}" >&5
27262 $as_echo "${have_systemtap}" >&6; }
27264 if test x$have_systemtap = xyes; then
27265 ENABLE_SYSTEMTAP_TRUE=
27266 ENABLE_SYSTEMTAP_FALSE='#'
27267 else
27268 ENABLE_SYSTEMTAP_TRUE='#'
27269 ENABLE_SYSTEMTAP_FALSE=
27274 # Check whether --with-tapset-install-dir was given.
27275 if test "${with_tapset_install_dir+set}" = set; then :
27276 withval=$with_tapset_install_dir; if test "x${withval}" = x; then
27277 ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
27278 else
27279 ABS_TAPSET_DIR="${withval}"
27281 else
27282 ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
27288 # Check whether --enable-gcov was given.
27289 if test "${enable_gcov+set}" = set; then :
27290 enableval=$enable_gcov; use_gcov=$enableval
27291 else
27292 use_gcov=no
27296 if test "x$use_gcov" = "xyes"; then
27297 if test "$GCC" != "yes"; then
27298 as_fn_error "GCC is required for --enable-gcov" "$LINENO" 5
27301 # Extract the first word of "shtool", so it can be a program name with args.
27302 set dummy shtool; ac_word=$2
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27304 $as_echo_n "checking for $ac_word... " >&6; }
27305 if test "${ac_cv_prog_SHTOOL+set}" = set; then :
27306 $as_echo_n "(cached) " >&6
27307 else
27308 if test -n "$SHTOOL"; then
27309 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
27310 else
27311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27312 for as_dir in $PATH
27314 IFS=$as_save_IFS
27315 test -z "$as_dir" && as_dir=.
27316 for ac_exec_ext in '' $ac_executable_extensions; do
27317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27318 ac_cv_prog_SHTOOL="shtool"
27319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27320 break 2
27322 done
27323 done
27324 IFS=$as_save_IFS
27328 SHTOOL=$ac_cv_prog_SHTOOL
27329 if test -n "$SHTOOL"; then
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
27331 $as_echo "$SHTOOL" >&6; }
27332 else
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27334 $as_echo "no" >&6; }
27338 case `$SHTOOL path $CC` in
27339 *ccache*) gcc_ccache=yes;;
27340 *) gcc_ccache=no;;
27341 esac
27343 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
27344 as_fn_error "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
27347 ltp_version_list="1.6 1.7 1.8"
27348 # Extract the first word of "lcov", so it can be a program name with args.
27349 set dummy lcov; ac_word=$2
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27351 $as_echo_n "checking for $ac_word... " >&6; }
27352 if test "${ac_cv_prog_LTP+set}" = set; then :
27353 $as_echo_n "(cached) " >&6
27354 else
27355 if test -n "$LTP"; then
27356 ac_cv_prog_LTP="$LTP" # Let the user override the test.
27357 else
27358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27359 for as_dir in $PATH
27361 IFS=$as_save_IFS
27362 test -z "$as_dir" && as_dir=.
27363 for ac_exec_ext in '' $ac_executable_extensions; do
27364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27365 ac_cv_prog_LTP="lcov"
27366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27367 break 2
27369 done
27370 done
27371 IFS=$as_save_IFS
27375 LTP=$ac_cv_prog_LTP
27376 if test -n "$LTP"; then
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
27378 $as_echo "$LTP" >&6; }
27379 else
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27381 $as_echo "no" >&6; }
27385 # Extract the first word of "genhtml", so it can be a program name with args.
27386 set dummy genhtml; ac_word=$2
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27388 $as_echo_n "checking for $ac_word... " >&6; }
27389 if test "${ac_cv_prog_LTP_GENHTML+set}" = set; then :
27390 $as_echo_n "(cached) " >&6
27391 else
27392 if test -n "$LTP_GENHTML"; then
27393 ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
27394 else
27395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27396 for as_dir in $PATH
27398 IFS=$as_save_IFS
27399 test -z "$as_dir" && as_dir=.
27400 for ac_exec_ext in '' $ac_executable_extensions; do
27401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27402 ac_cv_prog_LTP_GENHTML="genhtml"
27403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27404 break 2
27406 done
27407 done
27408 IFS=$as_save_IFS
27412 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
27413 if test -n "$LTP_GENHTML"; then
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
27415 $as_echo "$LTP_GENHTML" >&6; }
27416 else
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27418 $as_echo "no" >&6; }
27423 if test "$LTP"; then
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
27425 $as_echo_n "checking for ltp version... " >&6; }
27426 if test "${glib_cv_ltp_version+set}" = set; then :
27427 $as_echo_n "(cached) " >&6
27428 else
27430 glib_cv_ltp_version=invalid
27431 ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
27432 for ltp_check_version in $ltp_version_list; do
27433 if test "$ltp_version" = "$ltp_check_version"; then
27434 glib_cv_ltp_version="$ltp_check_version (ok)"
27436 done
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
27440 $as_echo "$glib_cv_ltp_version" >&6; }
27441 else
27442 ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
27443 as_fn_error "$ltp_msg" "$LINENO" 5
27446 case $glib_cv_ltp_version in
27447 ""|invalid)
27448 ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
27449 as_fn_error "$ltp_msg" "$LINENO" 5
27450 LTP="exit 0;"
27452 esac
27454 if test -z "$LTP_GENHTML"; then
27455 as_fn_error "Could not find genhtml from the LTP package" "$LINENO" 5
27459 $as_echo "#define HAVE_GCOV 1" >>confdefs.h
27463 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
27466 CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
27467 LDFLAGS="$LDFLAGS -lgcov"
27471 ac_config_commands="$ac_config_commands glib/glibconfig.h"
27474 # Check for libdbus1 - Optional - is only used in the GDBus test cases
27476 # 1.2.14 required for dbus_message_set_serial
27478 pkg_failed=no
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS1" >&5
27480 $as_echo_n "checking for DBUS1... " >&6; }
27482 if test -n "$DBUS1_CFLAGS"; then
27483 pkg_cv_DBUS1_CFLAGS="$DBUS1_CFLAGS"
27484 elif test -n "$PKG_CONFIG"; then
27485 if test -n "$PKG_CONFIG" && \
27486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
27487 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
27488 ac_status=$?
27489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27490 test $ac_status = 0; }; then
27491 pkg_cv_DBUS1_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.14" 2>/dev/null`
27492 else
27493 pkg_failed=yes
27495 else
27496 pkg_failed=untried
27498 if test -n "$DBUS1_LIBS"; then
27499 pkg_cv_DBUS1_LIBS="$DBUS1_LIBS"
27500 elif test -n "$PKG_CONFIG"; then
27501 if test -n "$PKG_CONFIG" && \
27502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
27503 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
27504 ac_status=$?
27505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27506 test $ac_status = 0; }; then
27507 pkg_cv_DBUS1_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.14" 2>/dev/null`
27508 else
27509 pkg_failed=yes
27511 else
27512 pkg_failed=untried
27517 if test $pkg_failed = yes; then
27519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27520 _pkg_short_errors_supported=yes
27521 else
27522 _pkg_short_errors_supported=no
27524 if test $_pkg_short_errors_supported = yes; then
27525 DBUS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.2.14" 2>&1`
27526 else
27527 DBUS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.2.14" 2>&1`
27529 # Put the nasty error message in config.log where it belongs
27530 echo "$DBUS1_PKG_ERRORS" >&5
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27533 $as_echo "no" >&6; }
27534 have_dbus1=no
27535 elif test $pkg_failed = untried; then
27536 have_dbus1=no
27537 else
27538 DBUS1_CFLAGS=$pkg_cv_DBUS1_CFLAGS
27539 DBUS1_LIBS=$pkg_cv_DBUS1_LIBS
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27541 $as_echo "yes" >&6; }
27543 $as_echo "#define HAVE_DBUS1 1" >>confdefs.h
27544 have_dbus1=yes
27548 if test "x$have_dbus1" = "xyes"; then
27549 HAVE_DBUS1_TRUE=
27550 HAVE_DBUS1_FALSE='#'
27551 else
27552 HAVE_DBUS1_TRUE='#'
27553 HAVE_DBUS1_FALSE=
27558 # Check whether --enable-Bsymbolic was given.
27559 if test "${enable_Bsymbolic+set}" = set; then :
27560 enableval=$enable_Bsymbolic;
27561 else
27562 SAVED_LDFLAGS="${LDFLAGS}"
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
27564 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
27565 LDFLAGS=-Wl,-Bsymbolic-functions
27566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h. */
27570 main ()
27572 int main (void) { return 0; }
27574 return 0;
27576 _ACEOF
27577 if ac_fn_c_try_link "$LINENO"; then :
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27579 $as_echo "yes" >&6; }
27580 enable_Bsymbolic=yes
27581 else
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27583 $as_echo "no" >&6; }
27584 enable_Bsymbolic=no
27586 rm -f core conftest.err conftest.$ac_objext \
27587 conftest$ac_exeext conftest.$ac_ext
27588 LDFLAGS="${SAVED_LDFLAGS}"
27592 if test "x${enable_Bsymbolic}" == "xyes"; then
27593 GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
27599 # Define variables corresponding to the correct include paths to use for
27600 # in-tree building.
27603 # for config.h:
27604 config_h_INCLUDES='-I$(top_builddir)'
27607 # glib:
27608 # config.h
27609 # $(top_builddir)/glib: for glibconfig.h
27610 # $(top_srcdir)/glib: for glib.h
27611 # $(top_srcdir): for everything
27612 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
27615 # gthread:
27616 # same as glib
27617 gthread_INCLUDES='$(glib_INCLUDES)'
27620 # gobject:
27621 # same as gthread
27622 gobject_INCLUDES='$(gthread_INCLUDES)'
27625 # gmodule:
27626 # glib includes
27627 # $(top_srcdir)/gmodule: for gmodule.h
27628 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
27631 # gio:
27632 # same as gmodule
27633 gio_INCLUDES='$(gmodule_INCLUDES)'
27637 ac_config_files="$ac_config_files glib-2.0.pc glib-2.0-uninstalled.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gmodule-2.0-uninstalled.pc gmodule-no-export-2.0-uninstalled.pc gthread-2.0.pc gthread-2.0-uninstalled.pc gobject-2.0.pc gobject-2.0-uninstalled.pc gio-2.0.pc gio-unix-2.0.pc gio-windows-2.0.pc gio-2.0-uninstalled.pc gio-unix-2.0-uninstalled.pc glib-zip glib-gettextize Makefile build/Makefile build/win32/Makefile build/win32/dirent/Makefile build/win32/vs9/Makefile glib/Makefile glib/glib.stp glib/libcharset/Makefile glib/gnulib/Makefile glib/pcre/Makefile glib/update-pcre/Makefile glib/tests/Makefile gmodule/Makefile gmodule/gmoduleconf.h gobject/Makefile gobject/gobject.stp gobject/glib-mkenums gobject/tests/Makefile gthread/Makefile gthread/tests/Makefile gio/Makefile gio/xdgmime/Makefile gio/inotify/Makefile gio/libasyncns/Makefile gio/fen/Makefile gio/fam/Makefile gio/win32/Makefile gio/tests/Makefile po/Makefile.in docs/Makefile docs/reference/Makefile docs/reference/glib/Makefile docs/reference/glib/version.xml docs/reference/gobject/Makefile docs/reference/gobject/version.xml docs/reference/gio/Makefile docs/reference/gio/version.xml tests/Makefile tests/gobject/Makefile tests/refcount/Makefile m4macros/Makefile"
27640 ac_config_commands="$ac_config_commands chmod-scripts"
27643 # we want to invoke this macro solely so that the config.status script
27644 # and automake generated makefiles know about these generated files.
27645 # They are only needed to distcheck the package
27646 if false; then
27647 ac_config_files="$ac_config_files INSTALL README config.h.win32 glib/glibconfig.h.win32 glib/makefile.msc glib/glib.rc gmodule/makefile.msc gmodule/gmodule.rc gobject/makefile.msc gobject/gobject.rc gthread/makefile.msc gthread/gthread.rc gio/gio.rc tests/makefile.msc"
27651 cat >confcache <<\_ACEOF
27652 # This file is a shell script that caches the results of configure
27653 # tests run on this system so they can be shared between configure
27654 # scripts and configure runs, see configure's option --config-cache.
27655 # It is not useful on other systems. If it contains results you don't
27656 # want to keep, you may remove or edit it.
27658 # config.status only pays attention to the cache file if you give it
27659 # the --recheck option to rerun configure.
27661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27663 # following values.
27665 _ACEOF
27667 # The following way of writing the cache mishandles newlines in values,
27668 # but we know of no workaround that is simple, portable, and efficient.
27669 # So, we kill variables containing newlines.
27670 # Ultrix sh set writes to stderr and can't be redirected directly,
27671 # and sets the high bit in the cache file unless we assign to the vars.
27673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27674 eval ac_val=\$$ac_var
27675 case $ac_val in #(
27676 *${as_nl}*)
27677 case $ac_var in #(
27678 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27679 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27680 esac
27681 case $ac_var in #(
27682 _ | IFS | as_nl) ;; #(
27683 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27684 *) { eval $ac_var=; unset $ac_var;} ;;
27685 esac ;;
27686 esac
27687 done
27689 (set) 2>&1 |
27690 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27691 *${as_nl}ac_space=\ *)
27692 # `set' does not quote correctly, so add quotes: double-quote
27693 # substitution turns \\\\ into \\, and sed turns \\ into \.
27694 sed -n \
27695 "s/'/'\\\\''/g;
27696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27697 ;; #(
27699 # `set' quotes correctly as required by POSIX, so do not add quotes.
27700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27702 esac |
27703 sort
27705 sed '
27706 /^ac_cv_env_/b end
27707 t clear
27708 :clear
27709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27710 t end
27711 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27712 :end' >>confcache
27713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27714 if test -w "$cache_file"; then
27715 test "x$cache_file" != "x/dev/null" &&
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27717 $as_echo "$as_me: updating cache $cache_file" >&6;}
27718 cat confcache >$cache_file
27719 else
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27721 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27724 rm -f confcache
27726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27727 # Let make expand exec_prefix.
27728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27730 DEFS=-DHAVE_CONFIG_H
27732 ac_libobjs=
27733 ac_ltlibobjs=
27734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27735 # 1. Remove the extension, and $U if already installed.
27736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27739 # will be set to the directory where LIBOBJS objects are built.
27740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27742 done
27743 LIBOBJS=$ac_libobjs
27745 LTLIBOBJS=$ac_ltlibobjs
27748 if test -n "$EXEEXT"; then
27749 am__EXEEXT_TRUE=
27750 am__EXEEXT_FALSE='#'
27751 else
27752 am__EXEEXT_TRUE='#'
27753 am__EXEEXT_FALSE=
27756 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27757 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
27758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27761 as_fn_error "conditional \"AMDEP\" was never defined.
27762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27765 as_fn_error "conditional \"am__fastdepCC\" was never defined.
27766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27768 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
27769 as_fn_error "conditional \"OS_WIN32\" was never defined.
27770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27772 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
27773 as_fn_error "conditional \"OS_WIN32_X64\" was never defined.
27774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27776 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
27777 as_fn_error "conditional \"OS_UNIX\" was never defined.
27778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27780 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
27781 as_fn_error "conditional \"OS_LINUX\" was never defined.
27782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27784 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
27785 as_fn_error "conditional \"OS_CARBON\" was never defined.
27786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27788 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
27789 as_fn_error "conditional \"MS_LIB_AVAILABLE\" was never defined.
27790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27792 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
27793 as_fn_error "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
27794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27796 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27797 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
27798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27800 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
27801 as_fn_error "conditional \"HAVE_CXX\" was never defined.
27802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27804 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27805 as_fn_error "conditional \"am__fastdepCC\" was never defined.
27806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27808 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27809 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
27810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27812 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
27813 as_fn_error "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
27814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27816 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
27817 as_fn_error "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
27818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27820 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
27821 as_fn_error "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
27822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27825 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
27826 as_fn_error "conditional \"HAVE_GOOD_PRINTF\" was never defined.
27827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27829 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
27830 as_fn_error "conditional \"HAVE_INOTIFY\" was never defined.
27831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27833 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
27834 as_fn_error "conditional \"HAVE_FEN\" was never defined.
27835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27837 if test -z "${HAVE_FAM_TRUE}" && test -z "${HAVE_FAM_FALSE}"; then
27838 as_fn_error "conditional \"HAVE_FAM\" was never defined.
27839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27841 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
27842 as_fn_error "conditional \"ENABLE_TIMELOOP\" was never defined.
27843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27845 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
27846 as_fn_error "conditional \"PLATFORM_WIN32\" was never defined.
27847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27849 if test -z "${HAVE_THREADS_TRUE}" && test -z "${HAVE_THREADS_FALSE}"; then
27850 as_fn_error "conditional \"HAVE_THREADS\" was never defined.
27851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27853 if test -z "${HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_TRUE}" && test -z "${HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS_FALSE}"; then
27854 as_fn_error "conditional \"HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS\" was never defined.
27855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27857 if test -z "${ENABLE_REGEX_TRUE}" && test -z "${ENABLE_REGEX_FALSE}"; then
27858 as_fn_error "conditional \"ENABLE_REGEX\" was never defined.
27859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27861 if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then
27862 as_fn_error "conditional \"USE_SYSTEM_PCRE\" was never defined.
27863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27865 if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then
27866 as_fn_error "conditional \"USE_SYSTEM_PCRE\" was never defined.
27867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27869 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
27870 as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
27871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27873 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
27874 as_fn_error "conditional \"ENABLE_GTK_DOC\" was never defined.
27875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27877 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
27878 as_fn_error "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
27879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27881 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
27882 as_fn_error "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
27883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27885 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
27886 as_fn_error "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
27887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27889 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
27890 as_fn_error "conditional \"GTK_DOC_USE_REBASE\" was never defined.
27891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27893 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
27894 as_fn_error "conditional \"ENABLE_MAN\" was never defined.
27895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27897 if test -z "${ENABLE_DTRACE_TRUE}" && test -z "${ENABLE_DTRACE_FALSE}"; then
27898 as_fn_error "conditional \"ENABLE_DTRACE\" was never defined.
27899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27901 if test -z "${ENABLE_SYSTEMTAP_TRUE}" && test -z "${ENABLE_SYSTEMTAP_FALSE}"; then
27902 as_fn_error "conditional \"ENABLE_SYSTEMTAP\" was never defined.
27903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27905 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
27906 as_fn_error "conditional \"HAVE_DBUS1\" was never defined.
27907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27910 : ${CONFIG_STATUS=./config.status}
27911 ac_write_fail=0
27912 ac_clean_files_save=$ac_clean_files
27913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27916 as_write_fail=0
27917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27918 #! $SHELL
27919 # Generated by $as_me.
27920 # Run this file to recreate the current configuration.
27921 # Compiler output produced by configure, useful for debugging
27922 # configure, is in config.log if it exists.
27924 debug=false
27925 ac_cs_recheck=false
27926 ac_cs_silent=false
27928 SHELL=\${CONFIG_SHELL-$SHELL}
27929 export SHELL
27930 _ASEOF
27931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27932 ## -------------------- ##
27933 ## M4sh Initialization. ##
27934 ## -------------------- ##
27936 # Be more Bourne compatible
27937 DUALCASE=1; export DUALCASE # for MKS sh
27938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27939 emulate sh
27940 NULLCMD=:
27941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27942 # is contrary to our usage. Disable this feature.
27943 alias -g '${1+"$@"}'='"$@"'
27944 setopt NO_GLOB_SUBST
27945 else
27946 case `(set -o) 2>/dev/null` in #(
27947 *posix*) :
27948 set -o posix ;; #(
27949 *) :
27951 esac
27955 as_nl='
27957 export as_nl
27958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27962 # Prefer a ksh shell builtin over an external printf program on Solaris,
27963 # but without wasting forks for bash or zsh.
27964 if test -z "$BASH_VERSION$ZSH_VERSION" \
27965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27966 as_echo='print -r --'
27967 as_echo_n='print -rn --'
27968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27969 as_echo='printf %s\n'
27970 as_echo_n='printf %s'
27971 else
27972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27974 as_echo_n='/usr/ucb/echo -n'
27975 else
27976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27977 as_echo_n_body='eval
27978 arg=$1;
27979 case $arg in #(
27980 *"$as_nl"*)
27981 expr "X$arg" : "X\\(.*\\)$as_nl";
27982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27983 esac;
27984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27986 export as_echo_n_body
27987 as_echo_n='sh -c $as_echo_n_body as_echo'
27989 export as_echo_body
27990 as_echo='sh -c $as_echo_body as_echo'
27993 # The user is always right.
27994 if test "${PATH_SEPARATOR+set}" != set; then
27995 PATH_SEPARATOR=:
27996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27998 PATH_SEPARATOR=';'
28003 # IFS
28004 # We need space, tab and new line, in precisely that order. Quoting is
28005 # there to prevent editors from complaining about space-tab.
28006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28007 # splitting by setting IFS to empty value.)
28008 IFS=" "" $as_nl"
28010 # Find who we are. Look in the path if we contain no directory separator.
28011 case $0 in #((
28012 *[\\/]* ) as_myself=$0 ;;
28013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28014 for as_dir in $PATH
28016 IFS=$as_save_IFS
28017 test -z "$as_dir" && as_dir=.
28018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28019 done
28020 IFS=$as_save_IFS
28023 esac
28024 # We did not find ourselves, most probably we were run as `sh COMMAND'
28025 # in which case we are not to be found in the path.
28026 if test "x$as_myself" = x; then
28027 as_myself=$0
28029 if test ! -f "$as_myself"; then
28030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28031 exit 1
28034 # Unset variables that we do not need and which cause bugs (e.g. in
28035 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28036 # suppresses any "Segmentation fault" message there. '((' could
28037 # trigger a bug in pdksh 5.2.14.
28038 for as_var in BASH_ENV ENV MAIL MAILPATH
28039 do eval test x\${$as_var+set} = xset \
28040 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28041 done
28042 PS1='$ '
28043 PS2='> '
28044 PS4='+ '
28046 # NLS nuisances.
28047 LC_ALL=C
28048 export LC_ALL
28049 LANGUAGE=C
28050 export LANGUAGE
28052 # CDPATH.
28053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28056 # as_fn_error ERROR [LINENO LOG_FD]
28057 # ---------------------------------
28058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28060 # script with status $?, using 1 if that was 0.
28061 as_fn_error ()
28063 as_status=$?; test $as_status -eq 0 && as_status=1
28064 if test "$3"; then
28065 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28068 $as_echo "$as_me: error: $1" >&2
28069 as_fn_exit $as_status
28070 } # as_fn_error
28073 # as_fn_set_status STATUS
28074 # -----------------------
28075 # Set $? to STATUS, without forking.
28076 as_fn_set_status ()
28078 return $1
28079 } # as_fn_set_status
28081 # as_fn_exit STATUS
28082 # -----------------
28083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28084 as_fn_exit ()
28086 set +e
28087 as_fn_set_status $1
28088 exit $1
28089 } # as_fn_exit
28091 # as_fn_unset VAR
28092 # ---------------
28093 # Portably unset VAR.
28094 as_fn_unset ()
28096 { eval $1=; unset $1;}
28098 as_unset=as_fn_unset
28099 # as_fn_append VAR VALUE
28100 # ----------------------
28101 # Append the text in VALUE to the end of the definition contained in VAR. Take
28102 # advantage of any shell optimizations that allow amortized linear growth over
28103 # repeated appends, instead of the typical quadratic growth present in naive
28104 # implementations.
28105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28106 eval 'as_fn_append ()
28108 eval $1+=\$2
28110 else
28111 as_fn_append ()
28113 eval $1=\$$1\$2
28115 fi # as_fn_append
28117 # as_fn_arith ARG...
28118 # ------------------
28119 # Perform arithmetic evaluation on the ARGs, and store the result in the
28120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28121 # must be portable across $(()) and expr.
28122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28123 eval 'as_fn_arith ()
28125 as_val=$(( $* ))
28127 else
28128 as_fn_arith ()
28130 as_val=`expr "$@" || test $? -eq 1`
28132 fi # as_fn_arith
28135 if expr a : '\(a\)' >/dev/null 2>&1 &&
28136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28137 as_expr=expr
28138 else
28139 as_expr=false
28142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28143 as_basename=basename
28144 else
28145 as_basename=false
28148 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28149 as_dirname=dirname
28150 else
28151 as_dirname=false
28154 as_me=`$as_basename -- "$0" ||
28155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28156 X"$0" : 'X\(//\)$' \| \
28157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28158 $as_echo X/"$0" |
28159 sed '/^.*\/\([^/][^/]*\)\/*$/{
28160 s//\1/
28163 /^X\/\(\/\/\)$/{
28164 s//\1/
28167 /^X\/\(\/\).*/{
28168 s//\1/
28171 s/.*/./; q'`
28173 # Avoid depending upon Character Ranges.
28174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28177 as_cr_digits='0123456789'
28178 as_cr_alnum=$as_cr_Letters$as_cr_digits
28180 ECHO_C= ECHO_N= ECHO_T=
28181 case `echo -n x` in #(((((
28182 -n*)
28183 case `echo 'xy\c'` in
28184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28185 xy) ECHO_C='\c';;
28186 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28187 ECHO_T=' ';;
28188 esac;;
28190 ECHO_N='-n';;
28191 esac
28193 rm -f conf$$ conf$$.exe conf$$.file
28194 if test -d conf$$.dir; then
28195 rm -f conf$$.dir/conf$$.file
28196 else
28197 rm -f conf$$.dir
28198 mkdir conf$$.dir 2>/dev/null
28200 if (echo >conf$$.file) 2>/dev/null; then
28201 if ln -s conf$$.file conf$$ 2>/dev/null; then
28202 as_ln_s='ln -s'
28203 # ... but there are two gotchas:
28204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28206 # In both cases, we have to default to `cp -p'.
28207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28208 as_ln_s='cp -p'
28209 elif ln conf$$.file conf$$ 2>/dev/null; then
28210 as_ln_s=ln
28211 else
28212 as_ln_s='cp -p'
28214 else
28215 as_ln_s='cp -p'
28217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28218 rmdir conf$$.dir 2>/dev/null
28221 # as_fn_mkdir_p
28222 # -------------
28223 # Create "$as_dir" as a directory, including parents if necessary.
28224 as_fn_mkdir_p ()
28227 case $as_dir in #(
28228 -*) as_dir=./$as_dir;;
28229 esac
28230 test -d "$as_dir" || eval $as_mkdir_p || {
28231 as_dirs=
28232 while :; do
28233 case $as_dir in #(
28234 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28235 *) as_qdir=$as_dir;;
28236 esac
28237 as_dirs="'$as_qdir' $as_dirs"
28238 as_dir=`$as_dirname -- "$as_dir" ||
28239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28240 X"$as_dir" : 'X\(//\)[^/]' \| \
28241 X"$as_dir" : 'X\(//\)$' \| \
28242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28243 $as_echo X"$as_dir" |
28244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28245 s//\1/
28248 /^X\(\/\/\)[^/].*/{
28249 s//\1/
28252 /^X\(\/\/\)$/{
28253 s//\1/
28256 /^X\(\/\).*/{
28257 s//\1/
28260 s/.*/./; q'`
28261 test -d "$as_dir" && break
28262 done
28263 test -z "$as_dirs" || eval "mkdir $as_dirs"
28264 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28267 } # as_fn_mkdir_p
28268 if mkdir -p . 2>/dev/null; then
28269 as_mkdir_p='mkdir -p "$as_dir"'
28270 else
28271 test -d ./-p && rmdir ./-p
28272 as_mkdir_p=false
28275 if test -x / >/dev/null 2>&1; then
28276 as_test_x='test -x'
28277 else
28278 if ls -dL / >/dev/null 2>&1; then
28279 as_ls_L_option=L
28280 else
28281 as_ls_L_option=
28283 as_test_x='
28284 eval sh -c '\''
28285 if test -d "$1"; then
28286 test -d "$1/.";
28287 else
28288 case $1 in #(
28289 -*)set "./$1";;
28290 esac;
28291 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28292 ???[sx]*):;;*)false;;esac;fi
28293 '\'' sh
28296 as_executable_p=$as_test_x
28298 # Sed expression to map a string onto a valid CPP name.
28299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28301 # Sed expression to map a string onto a valid variable name.
28302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28305 exec 6>&1
28306 ## ----------------------------------- ##
28307 ## Main body of $CONFIG_STATUS script. ##
28308 ## ----------------------------------- ##
28309 _ASEOF
28310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28313 # Save the log message, to keep $0 and so on meaningful, and to
28314 # report actual input values of CONFIG_FILES etc. instead of their
28315 # values after options handling.
28316 ac_log="
28317 This file was extended by glib $as_me 2.25.13, which was
28318 generated by GNU Autoconf 2.65. Invocation command line was
28320 CONFIG_FILES = $CONFIG_FILES
28321 CONFIG_HEADERS = $CONFIG_HEADERS
28322 CONFIG_LINKS = $CONFIG_LINKS
28323 CONFIG_COMMANDS = $CONFIG_COMMANDS
28324 $ $0 $@
28326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28329 _ACEOF
28331 case $ac_config_files in *"
28332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28333 esac
28335 case $ac_config_headers in *"
28336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28337 esac
28340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28341 # Files that config.status was made for.
28342 config_files="$ac_config_files"
28343 config_headers="$ac_config_headers"
28344 config_commands="$ac_config_commands"
28346 _ACEOF
28348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28349 ac_cs_usage="\
28350 \`$as_me' instantiates files and other configuration actions
28351 from templates according to the current configuration. Unless the files
28352 and actions are specified as TAGs, all are instantiated by default.
28354 Usage: $0 [OPTION]... [TAG]...
28356 -h, --help print this help, then exit
28357 -V, --version print version number and configuration settings, then exit
28358 --config print configuration, then exit
28359 -q, --quiet, --silent
28360 do not print progress messages
28361 -d, --debug don't remove temporary files
28362 --recheck update $as_me by reconfiguring in the same conditions
28363 --file=FILE[:TEMPLATE]
28364 instantiate the configuration file FILE
28365 --header=FILE[:TEMPLATE]
28366 instantiate the configuration header FILE
28368 Configuration files:
28369 $config_files
28371 Configuration headers:
28372 $config_headers
28374 Configuration commands:
28375 $config_commands
28377 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
28379 _ACEOF
28380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28381 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28382 ac_cs_version="\\
28383 glib config.status 2.25.13
28384 configured by $0, generated by GNU Autoconf 2.65,
28385 with options \\"\$ac_cs_config\\"
28387 Copyright (C) 2009 Free Software Foundation, Inc.
28388 This config.status script is free software; the Free Software Foundation
28389 gives unlimited permission to copy, distribute and modify it."
28391 ac_pwd='$ac_pwd'
28392 srcdir='$srcdir'
28393 INSTALL='$INSTALL'
28394 MKDIR_P='$MKDIR_P'
28395 AWK='$AWK'
28396 test -n "\$AWK" || AWK=awk
28397 _ACEOF
28399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28400 # The default lists apply if the user does not specify any file.
28401 ac_need_defaults=:
28402 while test $# != 0
28404 case $1 in
28405 --*=*)
28406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28408 ac_shift=:
28411 ac_option=$1
28412 ac_optarg=$2
28413 ac_shift=shift
28415 esac
28417 case $ac_option in
28418 # Handling of the options.
28419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28420 ac_cs_recheck=: ;;
28421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28422 $as_echo "$ac_cs_version"; exit ;;
28423 --config | --confi | --conf | --con | --co | --c )
28424 $as_echo "$ac_cs_config"; exit ;;
28425 --debug | --debu | --deb | --de | --d | -d )
28426 debug=: ;;
28427 --file | --fil | --fi | --f )
28428 $ac_shift
28429 case $ac_optarg in
28430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28431 esac
28432 as_fn_append CONFIG_FILES " '$ac_optarg'"
28433 ac_need_defaults=false;;
28434 --header | --heade | --head | --hea )
28435 $ac_shift
28436 case $ac_optarg in
28437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28438 esac
28439 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28440 ac_need_defaults=false;;
28441 --he | --h)
28442 # Conflict between --help and --header
28443 as_fn_error "ambiguous option: \`$1'
28444 Try \`$0 --help' for more information.";;
28445 --help | --hel | -h )
28446 $as_echo "$ac_cs_usage"; exit ;;
28447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28448 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28449 ac_cs_silent=: ;;
28451 # This is an error.
28452 -*) as_fn_error "unrecognized option: \`$1'
28453 Try \`$0 --help' for more information." ;;
28455 *) as_fn_append ac_config_targets " $1"
28456 ac_need_defaults=false ;;
28458 esac
28459 shift
28460 done
28462 ac_configure_extra_args=
28464 if $ac_cs_silent; then
28465 exec 6>/dev/null
28466 ac_configure_extra_args="$ac_configure_extra_args --silent"
28469 _ACEOF
28470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28471 if \$ac_cs_recheck; then
28472 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28473 shift
28474 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28475 CONFIG_SHELL='$SHELL'
28476 export CONFIG_SHELL
28477 exec "\$@"
28480 _ACEOF
28481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28482 exec 5>>config.log
28484 echo
28485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28486 ## Running $as_me. ##
28487 _ASBOX
28488 $as_echo "$ac_log"
28489 } >&5
28491 _ACEOF
28492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28494 # INIT-COMMANDS
28496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28500 # The HP-UX ksh and POSIX shell print the target directory to stdout
28501 # if CDPATH is set.
28502 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28504 sed_quote_subst='$sed_quote_subst'
28505 double_quote_subst='$double_quote_subst'
28506 delay_variable_subst='$delay_variable_subst'
28507 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28508 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28509 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28510 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
28511 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28512 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28513 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28514 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28515 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28516 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28517 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28518 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28519 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28520 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28521 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28522 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28523 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28524 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28525 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28526 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28527 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28528 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28529 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28530 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28531 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28532 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28533 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28534 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28535 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28536 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28537 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28538 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28539 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28540 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28541 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28542 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28543 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28544 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28545 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28546 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28547 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28548 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28549 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28550 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28551 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28553 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
28554 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28555 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28556 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28557 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28558 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28559 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28560 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28561 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28562 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28563 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28564 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28565 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28566 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28567 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28568 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28569 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28570 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28571 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28572 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28573 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28574 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28575 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28576 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28577 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28578 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28579 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28580 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28581 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28582 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28583 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28584 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28585 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28586 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28587 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28588 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28589 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28590 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28591 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28592 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28593 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28594 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28595 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28596 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28597 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28598 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28599 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28600 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28601 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28602 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28603 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28604 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28605 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28606 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28607 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28608 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28609 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28610 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28611 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28612 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28613 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28614 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28615 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28616 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28617 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28618 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28619 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28620 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28621 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28622 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28623 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28624 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28625 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28626 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28627 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
28628 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28629 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28630 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28631 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28632 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28633 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28634 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28635 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28636 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28637 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28638 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28639 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28640 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28641 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28642 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28643 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28644 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28645 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28646 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28647 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28648 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28649 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28650 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28651 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28652 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28653 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28654 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28655 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28656 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28657 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28658 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28659 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28660 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28661 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28662 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28663 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28664 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28665 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28666 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28667 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28668 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28669 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28670 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28671 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28672 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28673 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28674 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28675 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28676 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28677 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28678 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28679 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28681 LTCC='$LTCC'
28682 LTCFLAGS='$LTCFLAGS'
28683 compiler='$compiler_DEFAULT'
28685 # Quote evaled strings.
28686 for var in SED \
28687 GREP \
28688 EGREP \
28689 FGREP \
28690 LD \
28691 NM \
28692 LN_S \
28693 lt_SP2NL \
28694 lt_NL2SP \
28695 reload_flag \
28696 deplibs_check_method \
28697 file_magic_cmd \
28698 AR \
28699 AR_FLAGS \
28700 STRIP \
28701 RANLIB \
28702 CC \
28703 CFLAGS \
28704 compiler \
28705 lt_cv_sys_global_symbol_pipe \
28706 lt_cv_sys_global_symbol_to_cdecl \
28707 lt_cv_sys_global_symbol_to_c_name_address \
28708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28709 SHELL \
28710 ECHO \
28711 lt_prog_compiler_no_builtin_flag \
28712 lt_prog_compiler_wl \
28713 lt_prog_compiler_pic \
28714 lt_prog_compiler_static \
28715 lt_cv_prog_compiler_c_o \
28716 need_locks \
28717 DSYMUTIL \
28718 NMEDIT \
28719 LIPO \
28720 OTOOL \
28721 OTOOL64 \
28722 shrext_cmds \
28723 export_dynamic_flag_spec \
28724 whole_archive_flag_spec \
28725 compiler_needs_object \
28726 with_gnu_ld \
28727 allow_undefined_flag \
28728 no_undefined_flag \
28729 hardcode_libdir_flag_spec \
28730 hardcode_libdir_flag_spec_ld \
28731 hardcode_libdir_separator \
28732 fix_srcfile_path \
28733 exclude_expsyms \
28734 include_expsyms \
28735 file_list_spec \
28736 variables_saved_for_relink \
28737 libname_spec \
28738 library_names_spec \
28739 soname_spec \
28740 finish_eval \
28741 old_striplib \
28742 striplib \
28743 compiler_lib_search_dirs \
28744 predep_objects \
28745 postdep_objects \
28746 predeps \
28747 postdeps \
28748 compiler_lib_search_path \
28749 LD_CXX \
28750 compiler_CXX \
28751 lt_prog_compiler_no_builtin_flag_CXX \
28752 lt_prog_compiler_wl_CXX \
28753 lt_prog_compiler_pic_CXX \
28754 lt_prog_compiler_static_CXX \
28755 lt_cv_prog_compiler_c_o_CXX \
28756 export_dynamic_flag_spec_CXX \
28757 whole_archive_flag_spec_CXX \
28758 compiler_needs_object_CXX \
28759 with_gnu_ld_CXX \
28760 allow_undefined_flag_CXX \
28761 no_undefined_flag_CXX \
28762 hardcode_libdir_flag_spec_CXX \
28763 hardcode_libdir_flag_spec_ld_CXX \
28764 hardcode_libdir_separator_CXX \
28765 fix_srcfile_path_CXX \
28766 exclude_expsyms_CXX \
28767 include_expsyms_CXX \
28768 file_list_spec_CXX \
28769 compiler_lib_search_dirs_CXX \
28770 predep_objects_CXX \
28771 postdep_objects_CXX \
28772 predeps_CXX \
28773 postdeps_CXX \
28774 compiler_lib_search_path_CXX; do
28775 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28776 *[\\\\\\\`\\"\\\$]*)
28777 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28780 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28782 esac
28783 done
28785 # Double-quote double-evaled strings.
28786 for var in reload_cmds \
28787 old_postinstall_cmds \
28788 old_postuninstall_cmds \
28789 old_archive_cmds \
28790 extract_expsyms_cmds \
28791 old_archive_from_new_cmds \
28792 old_archive_from_expsyms_cmds \
28793 archive_cmds \
28794 archive_expsym_cmds \
28795 module_cmds \
28796 module_expsym_cmds \
28797 export_symbols_cmds \
28798 prelink_cmds \
28799 postinstall_cmds \
28800 postuninstall_cmds \
28801 finish_cmds \
28802 sys_lib_search_path_spec \
28803 sys_lib_dlsearch_path_spec \
28804 old_archive_cmds_CXX \
28805 old_archive_from_new_cmds_CXX \
28806 old_archive_from_expsyms_cmds_CXX \
28807 archive_cmds_CXX \
28808 archive_expsym_cmds_CXX \
28809 module_cmds_CXX \
28810 module_expsym_cmds_CXX \
28811 export_symbols_cmds_CXX \
28812 prelink_cmds_CXX; do
28813 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28814 *[\\\\\\\`\\"\\\$]*)
28815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28820 esac
28821 done
28823 # Fix-up fallback echo if it was mangled by the above quoting rules.
28824 case \$lt_ECHO in
28825 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28827 esac
28829 ac_aux_dir='$ac_aux_dir'
28830 xsi_shell='$xsi_shell'
28831 lt_shell_append='$lt_shell_append'
28833 # See if we are running on zsh, and set the options which allow our
28834 # commands through without removal of \ escapes INIT.
28835 if test -n "\${ZSH_VERSION+set}" ; then
28836 setopt NO_GLOB_SUBST
28840 PACKAGE='$PACKAGE'
28841 VERSION='$VERSION'
28842 TIMESTAMP='$TIMESTAMP'
28843 RM='$RM'
28844 ofile='$ofile'
28848 ac_aux_dir='$ac_aux_dir'
28853 # Note that if two cases are the same, case goes with the first one.
28854 # Note also that this is inside an AC_OUTPUT_COMMAND. We do not depend
28855 # on variable expansion in case labels. Look at the generated config.status
28856 # for a hint.
28858 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
28859 glib_header_alloca_h="$ac_cv_working_alloca_h"
28860 else
28861 glib_header_alloca_h="$ac_cv_header_alloca_h"
28864 case xyes in
28865 x$ac_cv_header_float_h)
28866 glib_float_h=yes
28867 glib_mf=FLT_MIN glib_Mf=FLT_MAX
28868 glib_md=DBL_MIN glib_Md=DBL_MAX
28870 x$ac_cv_header_values_h)
28871 glib_values_h=yes
28872 glib_mf=MINFLOAT glib_Mf=MAXFLOAT
28873 glib_md=MINDOUBLE glib_Md=MAXDOUBLE
28875 esac
28877 case xyes in
28878 x$ac_cv_header_limits_h)
28879 glib_limits_h=yes
28880 glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
28881 glib_mi=INT_MIN glib_Mi=INT_MAX glib_Mui=UINT_MAX
28882 glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
28884 x$ac_cv_header_values_h)
28885 glib_values_h=yes
28886 glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
28887 glib_mi=MININT glib_Mi=MAXINT glib_Mui="(((guint)G_MAXINT)*2+1)"
28888 glib_ml=MINLONG glib_Ml=MAXLONG glib_Mul="(((gulong)G_MAXLONG)*2+1)"
28890 esac
28892 if test x$ac_cv_header_sys_poll_h = xyes ; then
28893 glib_sys_poll_h=yes
28896 if test x$enable_included_printf = xyes ; then
28897 glib_included_printf=yes
28900 case 2 in
28901 $ac_cv_sizeof_short)
28902 gint16=short
28903 gint16_modifier='"h"'
28904 gint16_format='"hi"'
28905 guint16_format='"hu"'
28907 $ac_cv_sizeof_int)
28908 gint16=int
28909 gint16_modifier='""'
28910 gint16_format='"i"'
28911 guint16_format='"u"'
28913 esac
28914 case 4 in
28915 $ac_cv_sizeof_short)
28916 gint32=short
28917 gint32_modifier='"h"'
28918 gint32_format='"hi"'
28919 guint32_format='"hu"'
28921 $ac_cv_sizeof_int)
28922 gint32=int
28923 gint32_modifier='""'
28924 gint32_format='"i"'
28925 guint32_format='"u"'
28927 $ac_cv_sizeof_long)
28928 gint32=long
28929 gint32_modifier='"l"'
28930 gint32_format='"li"'
28931 guint32_format='"lu"'
28933 esac
28934 case 8 in
28935 $ac_cv_sizeof_int)
28936 gint64=int
28937 gint64_modifier='""'
28938 gint64_format='"i"'
28939 guint64_format='"u"'
28940 glib_extension=
28941 gint64_constant='(val)'
28942 guint64_constant='(val)'
28944 $ac_cv_sizeof_long)
28945 gint64=long
28946 gint64_modifier='"l"'
28947 gint64_format='"li"'
28948 guint64_format='"lu"'
28949 glib_extension=
28950 gint64_constant='(val##L)'
28951 guint64_constant='(val##UL)'
28953 $ac_cv_sizeof_long_long)
28954 gint64='long long'
28955 if test -n "$glib_cv_long_long_format"; then
28956 gint64_modifier='"'$glib_cv_long_long_format'"'
28957 gint64_format='"'$glib_cv_long_long_format'i"'
28958 guint64_format='"'$glib_cv_long_long_format'u"'
28960 glib_extension='G_GNUC_EXTENSION '
28961 gint64_constant='(G_GNUC_EXTENSION (val##LL))'
28962 guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
28964 $ac_cv_sizeof___int64)
28965 gint64='__int64'
28966 if test -n "$glib_cv_long_long_format"; then
28967 gint64_modifier='"'$glib_cv_long_long_format'"'
28968 gint64_format='"'$glib_cv_long_long_format'i"'
28969 guint64_format='"'$glib_cv_long_long_format'u"'
28971 glib_extension=
28972 gint64_constant='(val##i64)'
28973 guint64_constant='(val##ui64)'
28975 esac
28976 glib_size_t=$ac_cv_sizeof_size_t
28977 glib_size_type_define="$glib_size_type"
28978 glib_void_p=$ac_cv_sizeof_void_p
28979 glib_long=$ac_cv_sizeof_long
28981 case "$glib_size_type" in
28982 short)
28983 gsize_modifier='"h"'
28984 gsize_format='"hu"'
28985 gssize_format='"hi"'
28986 glib_msize_type='SHRT'
28988 int)
28989 gsize_modifier='""'
28990 gsize_format='"u"'
28991 gssize_format='"i"'
28992 glib_msize_type='INT'
28994 long)
28995 gsize_modifier='"l"'
28996 gsize_format='"lu"'
28997 gssize_format='"li"'
28998 glib_msize_type='LONG'
29000 "long long"|__int64)
29001 gsize_modifier='"I64"'
29002 gsize_format='"I64u"'
29003 gssize_format='"I64i"'
29004 glib_msize_type='INT64'
29006 esac
29008 gintbits=`expr $ac_cv_sizeof_int \* 8`
29009 glongbits=`expr $ac_cv_sizeof_long \* 8`
29010 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
29012 case $ac_cv_sizeof_void_p in
29013 $ac_cv_sizeof_int)
29014 glib_intptr_type_define=int
29015 gintptr_modifier='""'
29016 gintptr_format='"i"'
29017 guintptr_format='"u"'
29018 glib_gpi_cast=''
29019 glib_gpui_cast=''
29021 $ac_cv_sizeof_long)
29022 glib_intptr_type_define=long
29023 gintptr_modifier='"l"'
29024 gintptr_format='"li"'
29025 guintptr_format='"lu"'
29026 glib_gpi_cast='(glong)'
29027 glib_gpui_cast='(gulong)'
29029 $ac_cv_sizeof_long_long)
29030 glib_intptr_type_define='long long'
29031 gintptr_modifier='"I64"'
29032 gintptr_format='"I64i"'
29033 guintptr_format='"I64u"'
29034 glib_gpi_cast='(gint64)'
29035 glib_gpui_cast='(guint64)'
29037 $ac_cv_sizeof___int64)
29038 glib_intptr_type_define=__int64
29039 gintptr_modifier='"I64"'
29040 gintptr_format='"I64i"'
29041 guintptr_format='"I64u"'
29042 glib_gpi_cast='(gint64)'
29043 glib_gpui_cast='(guint64)'
29046 glib_unknown_void_p=yes
29048 esac
29051 case xyes in
29052 x$ac_cv_func_atexit)
29053 glib_atexit="
29054 #ifdef NeXT /* @#%@! NeXTStep */
29055 # define g_ATEXIT(proc) (!atexit (proc))
29056 #else
29057 # define g_ATEXIT(proc) (atexit (proc))
29058 #endif"
29060 x$ac_cv_func_on_exit)
29061 glib_atexit="
29062 #define g_ATEXIT(proc) (on_exit ((void (*)(int, void*))(proc), NULL))"
29064 esac
29066 case xyes in
29067 x$ac_cv_func_memmove)
29068 glib_memmove='
29069 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
29071 x$glib_cv_working_bcopy)
29072 glib_memmove="
29073 /* memmove isn't available, but bcopy can copy overlapping memory regions */
29074 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
29077 glib_memmove="
29078 /* memmove isn't found and bcopy can't copy overlapping memory regions,
29079 * so we have to roll our own copy routine. */
29080 void g_memmove (void* dest, const void * src, unsigned long len);"
29082 esac
29084 glib_defines="
29085 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
29086 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
29087 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
29090 case xyes in
29091 x$glib_cv_va_copy) glib_vacopy='#define G_VA_COPY va_copy' ;;
29092 x$glib_cv___va_copy) glib_vacopy='#define G_VA_COPY __va_copy' ;;
29093 *) glib_vacopy=''
29094 esac
29096 if test x$glib_cv_va_val_copy = xno; then
29097 glib_vacopy="\$glib_vacopy
29098 #define G_VA_COPY_AS_ARRAY 1"
29101 if test x$glib_cv_hasinline = xyes; then
29102 glib_inline='#define G_HAVE_INLINE 1'
29104 if test x$glib_cv_has__inline = xyes; then
29105 glib_inline="\$glib_inline
29106 #define G_HAVE___INLINE 1"
29108 if test x$glib_cv_has__inline__ = xyes; then
29109 glib_inline="\$glib_inline
29110 #define G_HAVE___INLINE__ 1"
29113 g_have_gnuc_varargs=$g_have_gnuc_varargs
29114 g_have_iso_c_varargs=$g_have_iso_c_varargs
29115 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
29117 g_can_inline=$g_can_inline
29118 g_have_gnuc_visibility=$g_have_gnuc_visibility
29119 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
29121 if test x$ac_cv_c_bigendian = xyes; then
29122 g_byte_order=G_BIG_ENDIAN
29123 g_bs_native=BE
29124 g_bs_alien=LE
29125 else
29126 g_byte_order=G_LITTLE_ENDIAN
29127 g_bs_native=LE
29128 g_bs_alien=BE
29131 g_pollin=$glib_cv_value_POLLIN
29132 g_pollout=$glib_cv_value_POLLOUT
29133 g_pollpri=$glib_cv_value_POLLPRI
29134 g_pollhup=$glib_cv_value_POLLHUP
29135 g_pollerr=$glib_cv_value_POLLERR
29136 g_pollnval=$glib_cv_value_POLLNVAL
29138 g_af_unix=$glib_cv_value_AF_UNIX
29139 g_af_inet=$glib_cv_value_AF_INET
29140 g_af_inet6=$glib_cv_value_AF_INET6
29142 g_msg_peek=$glib_cv_value_MSG_PEEK
29143 g_msg_oob=$glib_cv_value_MSG_OOB
29144 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
29146 g_stack_grows=$glib_cv_stack_grows
29148 g_have_eilseq=$have_eilseq
29150 case x$have_threads in
29151 xno) g_enable_threads_def="#undef";;
29152 *) g_enable_threads_def="#define";;
29153 esac
29155 g_threads_impl_def=$g_threads_impl
29157 g_mutex_has_default="$mutex_has_default"
29158 g_mutex_sizeof="$glib_cv_sizeof_gmutex"
29159 g_system_thread_sizeof="$glib_cv_sizeof_system_thread"
29160 g_mutex_contents="$glib_cv_byte_contents_gmutex"
29162 g_memory_barrier_needed="$glib_memory_barrier_needed"
29164 g_module_suffix="$glib_gmodule_suffix"
29166 g_pid_type="$glib_pid_type"
29167 case $host in
29168 *-*-beos*)
29169 glib_os="#define G_OS_BEOS"
29171 *-*-cygwin*)
29172 glib_os="#define G_OS_UNIX
29173 #define G_PLATFORM_WIN32
29174 #define G_WITH_CYGWIN"
29176 *-*-mingw*)
29177 glib_os="#define G_OS_WIN32
29178 #define G_PLATFORM_WIN32"
29181 glib_os="#define G_OS_UNIX"
29183 esac
29184 glib_static_compilation=""
29185 if test x$glib_win32_static_compilation = xyes; then
29186 glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
29187 #define GOBJECT_STATIC_COMPILATION 1"
29191 _ACEOF
29193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29195 # Handling of arguments.
29196 for ac_config_target in $ac_config_targets
29198 case $ac_config_target in
29199 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29201 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29202 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29203 "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
29204 "glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0.pc" ;;
29205 "glib-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0-uninstalled.pc" ;;
29206 "gmodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0.pc" ;;
29207 "gmodule-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-export-2.0.pc" ;;
29208 "gmodule-no-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0.pc" ;;
29209 "gmodule-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0-uninstalled.pc" ;;
29210 "gmodule-no-export-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0-uninstalled.pc" ;;
29211 "gthread-2.0.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0.pc" ;;
29212 "gthread-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0-uninstalled.pc" ;;
29213 "gobject-2.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0.pc" ;;
29214 "gobject-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0-uninstalled.pc" ;;
29215 "gio-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0.pc" ;;
29216 "gio-unix-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0.pc" ;;
29217 "gio-windows-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-windows-2.0.pc" ;;
29218 "gio-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0-uninstalled.pc" ;;
29219 "gio-unix-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0-uninstalled.pc" ;;
29220 "glib-zip") CONFIG_FILES="$CONFIG_FILES glib-zip" ;;
29221 "glib-gettextize") CONFIG_FILES="$CONFIG_FILES glib-gettextize" ;;
29222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29223 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
29224 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
29225 "build/win32/dirent/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/dirent/Makefile" ;;
29226 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
29227 "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
29228 "glib/glib.stp") CONFIG_FILES="$CONFIG_FILES glib/glib.stp" ;;
29229 "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
29230 "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
29231 "glib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/pcre/Makefile" ;;
29232 "glib/update-pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/update-pcre/Makefile" ;;
29233 "glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES glib/tests/Makefile" ;;
29234 "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;;
29235 "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;;
29236 "gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/Makefile" ;;
29237 "gobject/gobject.stp") CONFIG_FILES="$CONFIG_FILES gobject/gobject.stp" ;;
29238 "gobject/glib-mkenums") CONFIG_FILES="$CONFIG_FILES gobject/glib-mkenums" ;;
29239 "gobject/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/tests/Makefile" ;;
29240 "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;;
29241 "gthread/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/tests/Makefile" ;;
29242 "gio/Makefile") CONFIG_FILES="$CONFIG_FILES gio/Makefile" ;;
29243 "gio/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES gio/xdgmime/Makefile" ;;
29244 "gio/inotify/Makefile") CONFIG_FILES="$CONFIG_FILES gio/inotify/Makefile" ;;
29245 "gio/libasyncns/Makefile") CONFIG_FILES="$CONFIG_FILES gio/libasyncns/Makefile" ;;
29246 "gio/fen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fen/Makefile" ;;
29247 "gio/fam/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fam/Makefile" ;;
29248 "gio/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gio/win32/Makefile" ;;
29249 "gio/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/Makefile" ;;
29250 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29251 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
29252 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
29253 "docs/reference/glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/Makefile" ;;
29254 "docs/reference/glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/version.xml" ;;
29255 "docs/reference/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/Makefile" ;;
29256 "docs/reference/gobject/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/version.xml" ;;
29257 "docs/reference/gio/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/Makefile" ;;
29258 "docs/reference/gio/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/version.xml" ;;
29259 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29260 "tests/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gobject/Makefile" ;;
29261 "tests/refcount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount/Makefile" ;;
29262 "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
29263 "chmod-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;;
29264 "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
29265 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
29266 "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
29267 "glib/glibconfig.h.win32") CONFIG_FILES="$CONFIG_FILES glib/glibconfig.h.win32" ;;
29268 "glib/makefile.msc") CONFIG_FILES="$CONFIG_FILES glib/makefile.msc" ;;
29269 "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
29270 "gmodule/makefile.msc") CONFIG_FILES="$CONFIG_FILES gmodule/makefile.msc" ;;
29271 "gmodule/gmodule.rc") CONFIG_FILES="$CONFIG_FILES gmodule/gmodule.rc" ;;
29272 "gobject/makefile.msc") CONFIG_FILES="$CONFIG_FILES gobject/makefile.msc" ;;
29273 "gobject/gobject.rc") CONFIG_FILES="$CONFIG_FILES gobject/gobject.rc" ;;
29274 "gthread/makefile.msc") CONFIG_FILES="$CONFIG_FILES gthread/makefile.msc" ;;
29275 "gthread/gthread.rc") CONFIG_FILES="$CONFIG_FILES gthread/gthread.rc" ;;
29276 "gio/gio.rc") CONFIG_FILES="$CONFIG_FILES gio/gio.rc" ;;
29277 "tests/makefile.msc") CONFIG_FILES="$CONFIG_FILES tests/makefile.msc" ;;
29279 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29280 esac
29281 done
29284 # If the user did not use the arguments to specify the items to instantiate,
29285 # then the envvar interface is used. Set only those that are not.
29286 # We use the long form for the default assignment because of an extremely
29287 # bizarre bug on SunOS 4.1.3.
29288 if $ac_need_defaults; then
29289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29294 # Have a temporary directory for convenience. Make it in the build tree
29295 # simply because there is no reason against having it here, and in addition,
29296 # creating and moving files from /tmp can sometimes cause problems.
29297 # Hook for its removal unless debugging.
29298 # Note that there is a small window in which the directory will not be cleaned:
29299 # after its creation but before its name has been assigned to `$tmp'.
29300 $debug ||
29302 tmp=
29303 trap 'exit_status=$?
29304 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29306 trap 'as_fn_exit 1' 1 2 13 15
29308 # Create a (secure) tmp directory for tmp files.
29311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29312 test -n "$tmp" && test -d "$tmp"
29313 } ||
29315 tmp=./conf$$-$RANDOM
29316 (umask 077 && mkdir "$tmp")
29317 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29319 # Set up the scripts for CONFIG_FILES section.
29320 # No need to generate them if there are no CONFIG_FILES.
29321 # This happens for instance with `./config.status config.h'.
29322 if test -n "$CONFIG_FILES"; then
29325 ac_cr=`echo X | tr X '\015'`
29326 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29327 # But we know of no other shell where ac_cr would be empty at this
29328 # point, so we can use a bashism as a fallback.
29329 if test "x$ac_cr" = x; then
29330 eval ac_cr=\$\'\\r\'
29332 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29333 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29334 ac_cs_awk_cr='\r'
29335 else
29336 ac_cs_awk_cr=$ac_cr
29339 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29340 _ACEOF
29344 echo "cat >conf$$subs.awk <<_ACEOF" &&
29345 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29346 echo "_ACEOF"
29347 } >conf$$subs.sh ||
29348 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29349 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29350 ac_delim='%!_!# '
29351 for ac_last_try in false false false false false :; do
29352 . ./conf$$subs.sh ||
29353 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29355 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29356 if test $ac_delim_n = $ac_delim_num; then
29357 break
29358 elif $ac_last_try; then
29359 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29360 else
29361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29363 done
29364 rm -f conf$$subs.sh
29366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29367 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29368 _ACEOF
29369 sed -n '
29371 s/^/S["/; s/!.*/"]=/
29374 s/^[^!]*!//
29375 :repl
29376 t repl
29377 s/'"$ac_delim"'$//
29378 t delim
29381 s/\(.\{148\}\)..*/\1/
29382 t more1
29383 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29386 b repl
29387 :more1
29388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29391 s/.\{148\}//
29392 t nl
29393 :delim
29395 s/\(.\{148\}\)..*/\1/
29396 t more2
29397 s/["\\]/\\&/g; s/^/"/; s/$/"/
29400 :more2
29401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29404 s/.\{148\}//
29405 t delim
29406 ' <conf$$subs.awk | sed '
29407 /^[^""]/{
29409 s/\n//
29411 ' >>$CONFIG_STATUS || ac_write_fail=1
29412 rm -f conf$$subs.awk
29413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29414 _ACAWK
29415 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29416 for (key in S) S_is_set[key] = 1
29417 FS = "\a"
29421 line = $ 0
29422 nfields = split(line, field, "@")
29423 substed = 0
29424 len = length(field[1])
29425 for (i = 2; i < nfields; i++) {
29426 key = field[i]
29427 keylen = length(key)
29428 if (S_is_set[key]) {
29429 value = S[key]
29430 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29431 len += length(value) + length(field[++i])
29432 substed = 1
29433 } else
29434 len += 1 + keylen
29437 print line
29440 _ACAWK
29441 _ACEOF
29442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29443 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29445 else
29447 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29448 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29449 _ACEOF
29451 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29452 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29453 # trailing colons and then remove the whole line if VPATH becomes empty
29454 # (actually we leave an empty line to preserve line numbers).
29455 if test "x$srcdir" = x.; then
29456 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29457 s/:*\$(srcdir):*/:/
29458 s/:*\${srcdir}:*/:/
29459 s/:*@srcdir@:*/:/
29460 s/^\([^=]*=[ ]*\):*/\1/
29461 s/:*$//
29462 s/^[^=]*=[ ]*$//
29466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29467 fi # test -n "$CONFIG_FILES"
29469 # Set up the scripts for CONFIG_HEADERS section.
29470 # No need to generate them if there are no CONFIG_HEADERS.
29471 # This happens for instance with `./config.status Makefile'.
29472 if test -n "$CONFIG_HEADERS"; then
29473 cat >"$tmp/defines.awk" <<\_ACAWK ||
29474 BEGIN {
29475 _ACEOF
29477 # Transform confdefs.h into an awk script `defines.awk', embedded as
29478 # here-document in config.status, that substitutes the proper values into
29479 # config.h.in to produce config.h.
29481 # Create a delimiter string that does not exist in confdefs.h, to ease
29482 # handling of long lines.
29483 ac_delim='%!_!# '
29484 for ac_last_try in false false :; do
29485 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29486 if test -z "$ac_t"; then
29487 break
29488 elif $ac_last_try; then
29489 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29490 else
29491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29493 done
29495 # For the awk script, D is an array of macro values keyed by name,
29496 # likewise P contains macro parameters if any. Preserve backslash
29497 # newline sequences.
29499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29500 sed -n '
29501 s/.\{148\}/&'"$ac_delim"'/g
29502 t rset
29503 :rset
29504 s/^[ ]*#[ ]*define[ ][ ]*/ /
29505 t def
29507 :def
29508 s/\\$//
29509 t bsnl
29510 s/["\\]/\\&/g
29511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29512 D["\1"]=" \3"/p
29513 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29515 :bsnl
29516 s/["\\]/\\&/g
29517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29518 D["\1"]=" \3\\\\\\n"\\/p
29519 t cont
29520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29521 t cont
29523 :cont
29525 s/.\{148\}/&'"$ac_delim"'/g
29526 t clear
29527 :clear
29528 s/\\$//
29529 t bsnlc
29530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29532 :bsnlc
29533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29534 b cont
29535 ' <confdefs.h | sed '
29536 s/'"$ac_delim"'/"\\\
29537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29540 for (key in D) D_is_set[key] = 1
29541 FS = "\a"
29543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29544 line = \$ 0
29545 split(line, arg, " ")
29546 if (arg[1] == "#") {
29547 defundef = arg[2]
29548 mac1 = arg[3]
29549 } else {
29550 defundef = substr(arg[1], 2)
29551 mac1 = arg[2]
29553 split(mac1, mac2, "(") #)
29554 macro = mac2[1]
29555 prefix = substr(line, 1, index(line, defundef) - 1)
29556 if (D_is_set[macro]) {
29557 # Preserve the white space surrounding the "#".
29558 print prefix "define", macro P[macro] D[macro]
29559 next
29560 } else {
29561 # Replace #undef with comments. This is necessary, for example,
29562 # in the case of _POSIX_SOURCE, which is predefined and required
29563 # on some systems where configure will not decide to define it.
29564 if (defundef == "undef") {
29565 print "/*", prefix defundef, macro, "*/"
29566 next
29570 { print }
29571 _ACAWK
29572 _ACEOF
29573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29574 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29575 fi # test -n "$CONFIG_HEADERS"
29578 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29579 shift
29580 for ac_tag
29582 case $ac_tag in
29583 :[FHLC]) ac_mode=$ac_tag; continue;;
29584 esac
29585 case $ac_mode$ac_tag in
29586 :[FHL]*:*);;
29587 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29588 :[FH]-) ac_tag=-:-;;
29589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29590 esac
29591 ac_save_IFS=$IFS
29592 IFS=:
29593 set x $ac_tag
29594 IFS=$ac_save_IFS
29595 shift
29596 ac_file=$1
29597 shift
29599 case $ac_mode in
29600 :L) ac_source=$1;;
29601 :[FH])
29602 ac_file_inputs=
29603 for ac_f
29605 case $ac_f in
29606 -) ac_f="$tmp/stdin";;
29607 *) # Look for the file first in the build tree, then in the source tree
29608 # (if the path is not absolute). The absolute path cannot be DOS-style,
29609 # because $ac_f cannot contain `:'.
29610 test -f "$ac_f" ||
29611 case $ac_f in
29612 [\\/$]*) false;;
29613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29614 esac ||
29615 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29616 esac
29617 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29618 as_fn_append ac_file_inputs " '$ac_f'"
29619 done
29621 # Let's still pretend it is `configure' which instantiates (i.e., don't
29622 # use $as_me), people would be surprised to read:
29623 # /* config.h. Generated by config.status. */
29624 configure_input='Generated from '`
29625 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29626 `' by configure.'
29627 if test x"$ac_file" != x-; then
29628 configure_input="$ac_file. $configure_input"
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29630 $as_echo "$as_me: creating $ac_file" >&6;}
29632 # Neutralize special characters interpreted by sed in replacement strings.
29633 case $configure_input in #(
29634 *\&* | *\|* | *\\* )
29635 ac_sed_conf_input=`$as_echo "$configure_input" |
29636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29637 *) ac_sed_conf_input=$configure_input;;
29638 esac
29640 case $ac_tag in
29641 *:-:* | *:-) cat >"$tmp/stdin" \
29642 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29643 esac
29645 esac
29647 ac_dir=`$as_dirname -- "$ac_file" ||
29648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29649 X"$ac_file" : 'X\(//\)[^/]' \| \
29650 X"$ac_file" : 'X\(//\)$' \| \
29651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29652 $as_echo X"$ac_file" |
29653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29654 s//\1/
29657 /^X\(\/\/\)[^/].*/{
29658 s//\1/
29661 /^X\(\/\/\)$/{
29662 s//\1/
29665 /^X\(\/\).*/{
29666 s//\1/
29669 s/.*/./; q'`
29670 as_dir="$ac_dir"; as_fn_mkdir_p
29671 ac_builddir=.
29673 case "$ac_dir" in
29674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29677 # A ".." for each directory in $ac_dir_suffix.
29678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29679 case $ac_top_builddir_sub in
29680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29682 esac ;;
29683 esac
29684 ac_abs_top_builddir=$ac_pwd
29685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29686 # for backward compatibility:
29687 ac_top_builddir=$ac_top_build_prefix
29689 case $srcdir in
29690 .) # We are building in place.
29691 ac_srcdir=.
29692 ac_top_srcdir=$ac_top_builddir_sub
29693 ac_abs_top_srcdir=$ac_pwd ;;
29694 [\\/]* | ?:[\\/]* ) # Absolute name.
29695 ac_srcdir=$srcdir$ac_dir_suffix;
29696 ac_top_srcdir=$srcdir
29697 ac_abs_top_srcdir=$srcdir ;;
29698 *) # Relative name.
29699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29700 ac_top_srcdir=$ac_top_build_prefix$srcdir
29701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29702 esac
29703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29706 case $ac_mode in
29709 # CONFIG_FILE
29712 case $INSTALL in
29713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29714 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29715 esac
29716 ac_MKDIR_P=$MKDIR_P
29717 case $MKDIR_P in
29718 [\\/$]* | ?:[\\/]* ) ;;
29719 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29720 esac
29721 _ACEOF
29723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29724 # If the template does not know about datarootdir, expand it.
29725 # FIXME: This hack should be removed a few years after 2.60.
29726 ac_datarootdir_hack=; ac_datarootdir_seen=
29727 ac_sed_dataroot='
29728 /datarootdir/ {
29732 /@datadir@/p
29733 /@docdir@/p
29734 /@infodir@/p
29735 /@localedir@/p
29736 /@mandir@/p'
29737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29738 *datarootdir*) ac_datarootdir_seen=yes;;
29739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29741 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29742 _ACEOF
29743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29744 ac_datarootdir_hack='
29745 s&@datadir@&$datadir&g
29746 s&@docdir@&$docdir&g
29747 s&@infodir@&$infodir&g
29748 s&@localedir@&$localedir&g
29749 s&@mandir@&$mandir&g
29750 s&\\\${datarootdir}&$datarootdir&g' ;;
29751 esac
29752 _ACEOF
29754 # Neutralize VPATH when `$srcdir' = `.'.
29755 # Shell code in configure.ac might set extrasub.
29756 # FIXME: do we really want to maintain this feature?
29757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29758 ac_sed_extra="$ac_vpsub
29759 $extrasub
29760 _ACEOF
29761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29764 s|@configure_input@|$ac_sed_conf_input|;t t
29765 s&@top_builddir@&$ac_top_builddir_sub&;t t
29766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29767 s&@srcdir@&$ac_srcdir&;t t
29768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29769 s&@top_srcdir@&$ac_top_srcdir&;t t
29770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29771 s&@builddir@&$ac_builddir&;t t
29772 s&@abs_builddir@&$ac_abs_builddir&;t t
29773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29774 s&@INSTALL@&$ac_INSTALL&;t t
29775 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29776 $ac_datarootdir_hack
29778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29779 || as_fn_error "could not create $ac_file" "$LINENO" 5
29781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29782 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29783 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29785 which seems to be undefined. Please make sure it is defined." >&5
29786 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29787 which seems to be undefined. Please make sure it is defined." >&2;}
29789 rm -f "$tmp/stdin"
29790 case $ac_file in
29791 -) cat "$tmp/out" && rm -f "$tmp/out";;
29792 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29793 esac \
29794 || as_fn_error "could not create $ac_file" "$LINENO" 5
29798 # CONFIG_HEADER
29800 if test x"$ac_file" != x-; then
29802 $as_echo "/* $configure_input */" \
29803 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29804 } >"$tmp/config.h" \
29805 || as_fn_error "could not create $ac_file" "$LINENO" 5
29806 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29808 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29809 else
29810 rm -f "$ac_file"
29811 mv "$tmp/config.h" "$ac_file" \
29812 || as_fn_error "could not create $ac_file" "$LINENO" 5
29814 else
29815 $as_echo "/* $configure_input */" \
29816 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29817 || as_fn_error "could not create -" "$LINENO" 5
29819 # Compute "$ac_file"'s index in $config_headers.
29820 _am_arg="$ac_file"
29821 _am_stamp_count=1
29822 for _am_header in $config_headers :; do
29823 case $_am_header in
29824 $_am_arg | $_am_arg:* )
29825 break ;;
29827 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29828 esac
29829 done
29830 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29831 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29832 X"$_am_arg" : 'X\(//\)[^/]' \| \
29833 X"$_am_arg" : 'X\(//\)$' \| \
29834 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29835 $as_echo X"$_am_arg" |
29836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29837 s//\1/
29840 /^X\(\/\/\)[^/].*/{
29841 s//\1/
29844 /^X\(\/\/\)$/{
29845 s//\1/
29848 /^X\(\/\).*/{
29849 s//\1/
29852 s/.*/./; q'`/stamp-h$_am_stamp_count
29855 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29856 $as_echo "$as_me: executing $ac_file commands" >&6;}
29858 esac
29861 case $ac_file$ac_mode in
29862 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29863 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29864 # are listed without --file. Let's play safe and only enable the eval
29865 # if we detect the quoting.
29866 case $CONFIG_FILES in
29867 *\'*) eval set x "$CONFIG_FILES" ;;
29868 *) set x $CONFIG_FILES ;;
29869 esac
29870 shift
29871 for mf
29873 # Strip MF so we end up with the name of the file.
29874 mf=`echo "$mf" | sed -e 's/:.*$//'`
29875 # Check whether this is an Automake generated Makefile or not.
29876 # We used to match only the files named `Makefile.in', but
29877 # some people rename them; so instead we look at the file content.
29878 # Grep'ing the first line is not enough: some people post-process
29879 # each Makefile.in and add a new line on top of each file to say so.
29880 # Grep'ing the whole file is not good either: AIX grep has a line
29881 # limit of 2048, but all sed's we know have understand at least 4000.
29882 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29883 dirpart=`$as_dirname -- "$mf" ||
29884 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29885 X"$mf" : 'X\(//\)[^/]' \| \
29886 X"$mf" : 'X\(//\)$' \| \
29887 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29888 $as_echo X"$mf" |
29889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29890 s//\1/
29893 /^X\(\/\/\)[^/].*/{
29894 s//\1/
29897 /^X\(\/\/\)$/{
29898 s//\1/
29901 /^X\(\/\).*/{
29902 s//\1/
29905 s/.*/./; q'`
29906 else
29907 continue
29909 # Extract the definition of DEPDIR, am__include, and am__quote
29910 # from the Makefile without running `make'.
29911 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29912 test -z "$DEPDIR" && continue
29913 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29914 test -z "am__include" && continue
29915 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29916 # When using ansi2knr, U may be empty or an underscore; expand it
29917 U=`sed -n 's/^U = //p' < "$mf"`
29918 # Find all dependency output files, they are included files with
29919 # $(DEPDIR) in their names. We invoke sed twice because it is the
29920 # simplest approach to changing $(DEPDIR) to its actual value in the
29921 # expansion.
29922 for file in `sed -n "
29923 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29924 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29925 # Make sure the directory exists.
29926 test -f "$dirpart/$file" && continue
29927 fdir=`$as_dirname -- "$file" ||
29928 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29929 X"$file" : 'X\(//\)[^/]' \| \
29930 X"$file" : 'X\(//\)$' \| \
29931 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29932 $as_echo X"$file" |
29933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29934 s//\1/
29937 /^X\(\/\/\)[^/].*/{
29938 s//\1/
29941 /^X\(\/\/\)$/{
29942 s//\1/
29945 /^X\(\/\).*/{
29946 s//\1/
29949 s/.*/./; q'`
29950 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29951 # echo "creating $dirpart/$file"
29952 echo '# dummy' > "$dirpart/$file"
29953 done
29954 done
29957 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
29958 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
29959 esac ;;
29960 "libtool":C)
29962 # See if we are running on zsh, and set the options which allow our
29963 # commands through without removal of \ escapes.
29964 if test -n "${ZSH_VERSION+set}" ; then
29965 setopt NO_GLOB_SUBST
29968 cfgfile="${ofile}T"
29969 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29970 $RM "$cfgfile"
29972 cat <<_LT_EOF >> "$cfgfile"
29973 #! $SHELL
29975 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29976 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29978 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29980 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29981 # 2006, 2007, 2008 Free Software Foundation, Inc.
29982 # Written by Gordon Matzigkeit, 1996
29984 # This file is part of GNU Libtool.
29986 # GNU Libtool is free software; you can redistribute it and/or
29987 # modify it under the terms of the GNU General Public License as
29988 # published by the Free Software Foundation; either version 2 of
29989 # the License, or (at your option) any later version.
29991 # As a special exception to the GNU General Public License,
29992 # if you distribute this file as part of a program or library that
29993 # is built using GNU Libtool, you may include this file under the
29994 # same distribution terms that you use for the rest of that program.
29996 # GNU Libtool is distributed in the hope that it will be useful,
29997 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29998 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29999 # GNU General Public License for more details.
30001 # You should have received a copy of the GNU General Public License
30002 # along with GNU Libtool; see the file COPYING. If not, a copy
30003 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30004 # obtained by writing to the Free Software Foundation, Inc.,
30005 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30008 # The names of the tagged configurations supported by this script.
30009 available_tags="CXX "
30011 # ### BEGIN LIBTOOL CONFIG
30013 # Which release of libtool.m4 was used?
30014 macro_version=$macro_version
30015 macro_revision=$macro_revision
30017 # Whether or not to build static libraries.
30018 build_old_libs=$enable_static
30020 # Assembler program.
30021 AS=$AS
30023 # DLL creation program.
30024 DLLTOOL=$DLLTOOL
30026 # Object dumper program.
30027 OBJDUMP=$OBJDUMP
30029 # Whether or not to build shared libraries.
30030 build_libtool_libs=$enable_shared
30032 # What type of objects to build.
30033 pic_mode=$pic_mode
30035 # Whether or not to optimize for fast installation.
30036 fast_install=$enable_fast_install
30038 # The host system.
30039 host_alias=$host_alias
30040 host=$host
30041 host_os=$host_os
30043 # The build system.
30044 build_alias=$build_alias
30045 build=$build
30046 build_os=$build_os
30048 # A sed program that does not truncate output.
30049 SED=$lt_SED
30051 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30052 Xsed="\$SED -e 1s/^X//"
30054 # A grep program that handles long lines.
30055 GREP=$lt_GREP
30057 # An ERE matcher.
30058 EGREP=$lt_EGREP
30060 # A literal string matcher.
30061 FGREP=$lt_FGREP
30063 # A BSD- or MS-compatible name lister.
30064 NM=$lt_NM
30066 # Whether we need soft or hard links.
30067 LN_S=$lt_LN_S
30069 # What is the maximum length of a command?
30070 max_cmd_len=$max_cmd_len
30072 # Object file suffix (normally "o").
30073 objext=$ac_objext
30075 # Executable file suffix (normally "").
30076 exeext=$exeext
30078 # whether the shell understands "unset".
30079 lt_unset=$lt_unset
30081 # turn spaces into newlines.
30082 SP2NL=$lt_lt_SP2NL
30084 # turn newlines into spaces.
30085 NL2SP=$lt_lt_NL2SP
30087 # How to create reloadable object files.
30088 reload_flag=$lt_reload_flag
30089 reload_cmds=$lt_reload_cmds
30091 # Method to check whether dependent libraries are shared objects.
30092 deplibs_check_method=$lt_deplibs_check_method
30094 # Command to use when deplibs_check_method == "file_magic".
30095 file_magic_cmd=$lt_file_magic_cmd
30097 # The archiver.
30098 AR=$lt_AR
30099 AR_FLAGS=$lt_AR_FLAGS
30101 # A symbol stripping program.
30102 STRIP=$lt_STRIP
30104 # Commands used to install an old-style archive.
30105 RANLIB=$lt_RANLIB
30106 old_postinstall_cmds=$lt_old_postinstall_cmds
30107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30109 # A C compiler.
30110 LTCC=$lt_CC
30112 # LTCC compiler flags.
30113 LTCFLAGS=$lt_CFLAGS
30115 # Take the output of nm and produce a listing of raw symbols and C names.
30116 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30118 # Transform the output of nm in a proper C declaration.
30119 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30121 # Transform the output of nm in a C name address pair.
30122 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30124 # Transform the output of nm in a C name address pair when lib prefix is needed.
30125 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30127 # The name of the directory that contains temporary libtool files.
30128 objdir=$objdir
30130 # Shell to use when invoking shell scripts.
30131 SHELL=$lt_SHELL
30133 # An echo program that does not interpret backslashes.
30134 ECHO=$lt_ECHO
30136 # Used to examine libraries when file_magic_cmd begins with "file".
30137 MAGIC_CMD=$MAGIC_CMD
30139 # Must we lock files when doing compilation?
30140 need_locks=$lt_need_locks
30142 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30143 DSYMUTIL=$lt_DSYMUTIL
30145 # Tool to change global to local symbols on Mac OS X.
30146 NMEDIT=$lt_NMEDIT
30148 # Tool to manipulate fat objects and archives on Mac OS X.
30149 LIPO=$lt_LIPO
30151 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30152 OTOOL=$lt_OTOOL
30154 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30155 OTOOL64=$lt_OTOOL64
30157 # Old archive suffix (normally "a").
30158 libext=$libext
30160 # Shared library suffix (normally ".so").
30161 shrext_cmds=$lt_shrext_cmds
30163 # The commands to extract the exported symbol list from a shared archive.
30164 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30166 # Variables whose values should be saved in libtool wrapper scripts and
30167 # restored at link time.
30168 variables_saved_for_relink=$lt_variables_saved_for_relink
30170 # Do we need the "lib" prefix for modules?
30171 need_lib_prefix=$need_lib_prefix
30173 # Do we need a version for libraries?
30174 need_version=$need_version
30176 # Library versioning type.
30177 version_type=$version_type
30179 # Shared library runtime path variable.
30180 runpath_var=$runpath_var
30182 # Shared library path variable.
30183 shlibpath_var=$shlibpath_var
30185 # Is shlibpath searched before the hard-coded library search path?
30186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30188 # Format of library name prefix.
30189 libname_spec=$lt_libname_spec
30191 # List of archive names. First name is the real one, the rest are links.
30192 # The last name is the one that the linker finds with -lNAME
30193 library_names_spec=$lt_library_names_spec
30195 # The coded name of the library, if different from the real name.
30196 soname_spec=$lt_soname_spec
30198 # Command to use after installation of a shared archive.
30199 postinstall_cmds=$lt_postinstall_cmds
30201 # Command to use after uninstallation of a shared archive.
30202 postuninstall_cmds=$lt_postuninstall_cmds
30204 # Commands used to finish a libtool library installation in a directory.
30205 finish_cmds=$lt_finish_cmds
30207 # As "finish_cmds", except a single script fragment to be evaled but
30208 # not shown.
30209 finish_eval=$lt_finish_eval
30211 # Whether we should hardcode library paths into libraries.
30212 hardcode_into_libs=$hardcode_into_libs
30214 # Compile-time system search path for libraries.
30215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30217 # Run-time system search path for libraries.
30218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30220 # Whether dlopen is supported.
30221 dlopen_support=$enable_dlopen
30223 # Whether dlopen of programs is supported.
30224 dlopen_self=$enable_dlopen_self
30226 # Whether dlopen of statically linked programs is supported.
30227 dlopen_self_static=$enable_dlopen_self_static
30229 # Commands to strip libraries.
30230 old_striplib=$lt_old_striplib
30231 striplib=$lt_striplib
30234 # The linker used to build libraries.
30235 LD=$lt_LD
30237 # Commands used to build an old-style archive.
30238 old_archive_cmds=$lt_old_archive_cmds
30240 # A language specific compiler.
30241 CC=$lt_compiler
30243 # Is the compiler the GNU compiler?
30244 with_gcc=$GCC
30246 # Compiler flag to turn off builtin functions.
30247 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30249 # How to pass a linker flag through the compiler.
30250 wl=$lt_lt_prog_compiler_wl
30252 # Additional compiler flags for building library objects.
30253 pic_flag=$lt_lt_prog_compiler_pic
30255 # Compiler flag to prevent dynamic linking.
30256 link_static_flag=$lt_lt_prog_compiler_static
30258 # Does compiler simultaneously support -c and -o options?
30259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30261 # Whether or not to add -lc for building shared libraries.
30262 build_libtool_need_lc=$archive_cmds_need_lc
30264 # Whether or not to disallow shared libs when runtime libs are static.
30265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30267 # Compiler flag to allow reflexive dlopens.
30268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30270 # Compiler flag to generate shared objects directly from archives.
30271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30273 # Whether the compiler copes with passing no objects directly.
30274 compiler_needs_object=$lt_compiler_needs_object
30276 # Create an old-style archive from a shared archive.
30277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30279 # Create a temporary old-style archive to link instead of a shared archive.
30280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30282 # Commands used to build a shared archive.
30283 archive_cmds=$lt_archive_cmds
30284 archive_expsym_cmds=$lt_archive_expsym_cmds
30286 # Commands used to build a loadable module if different from building
30287 # a shared archive.
30288 module_cmds=$lt_module_cmds
30289 module_expsym_cmds=$lt_module_expsym_cmds
30291 # Whether we are building with GNU ld or not.
30292 with_gnu_ld=$lt_with_gnu_ld
30294 # Flag that allows shared libraries with undefined symbols to be built.
30295 allow_undefined_flag=$lt_allow_undefined_flag
30297 # Flag that enforces no undefined symbols.
30298 no_undefined_flag=$lt_no_undefined_flag
30300 # Flag to hardcode \$libdir into a binary during linking.
30301 # This must work even if \$libdir does not exist
30302 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30304 # If ld is used when linking, flag to hardcode \$libdir into a binary
30305 # during linking. This must work even if \$libdir does not exist.
30306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30308 # Whether we need a single "-rpath" flag with a separated argument.
30309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30312 # DIR into the resulting binary.
30313 hardcode_direct=$hardcode_direct
30315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30316 # DIR into the resulting binary and the resulting library dependency is
30317 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30318 # library is relocated.
30319 hardcode_direct_absolute=$hardcode_direct_absolute
30321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30322 # into the resulting binary.
30323 hardcode_minus_L=$hardcode_minus_L
30325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30326 # into the resulting binary.
30327 hardcode_shlibpath_var=$hardcode_shlibpath_var
30329 # Set to "yes" if building a shared library automatically hardcodes DIR
30330 # into the library and all subsequent libraries and executables linked
30331 # against it.
30332 hardcode_automatic=$hardcode_automatic
30334 # Set to yes if linker adds runtime paths of dependent libraries
30335 # to runtime path list.
30336 inherit_rpath=$inherit_rpath
30338 # Whether libtool must link a program against all its dependency libraries.
30339 link_all_deplibs=$link_all_deplibs
30341 # Fix the shell variable \$srcfile for the compiler.
30342 fix_srcfile_path=$lt_fix_srcfile_path
30344 # Set to "yes" if exported symbols are required.
30345 always_export_symbols=$always_export_symbols
30347 # The commands to list exported symbols.
30348 export_symbols_cmds=$lt_export_symbols_cmds
30350 # Symbols that should not be listed in the preloaded symbols.
30351 exclude_expsyms=$lt_exclude_expsyms
30353 # Symbols that must always be exported.
30354 include_expsyms=$lt_include_expsyms
30356 # Commands necessary for linking programs (against libraries) with templates.
30357 prelink_cmds=$lt_prelink_cmds
30359 # Specify filename containing input files.
30360 file_list_spec=$lt_file_list_spec
30362 # How to hardcode a shared library path into an executable.
30363 hardcode_action=$hardcode_action
30365 # The directories searched by this compiler when creating a shared library.
30366 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30368 # Dependencies to place before and after the objects being linked to
30369 # create a shared library.
30370 predep_objects=$lt_predep_objects
30371 postdep_objects=$lt_postdep_objects
30372 predeps=$lt_predeps
30373 postdeps=$lt_postdeps
30375 # The library search path used internally by the compiler when linking
30376 # a shared library.
30377 compiler_lib_search_path=$lt_compiler_lib_search_path
30379 # ### END LIBTOOL CONFIG
30381 _LT_EOF
30383 case $host_os in
30384 aix3*)
30385 cat <<\_LT_EOF >> "$cfgfile"
30386 # AIX sometimes has problems with the GCC collect2 program. For some
30387 # reason, if we set the COLLECT_NAMES environment variable, the problems
30388 # vanish in a puff of smoke.
30389 if test "X${COLLECT_NAMES+set}" != Xset; then
30390 COLLECT_NAMES=
30391 export COLLECT_NAMES
30393 _LT_EOF
30395 esac
30398 ltmain="$ac_aux_dir/ltmain.sh"
30401 # We use sed instead of cat because bash on DJGPP gets confused if
30402 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30403 # text mode, it properly converts lines to CR/LF. This bash problem
30404 # is reportedly fixed, but why not run on old versions too?
30405 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30406 || (rm -f "$cfgfile"; exit 1)
30408 case $xsi_shell in
30409 yes)
30410 cat << \_LT_EOF >> "$cfgfile"
30412 # func_dirname file append nondir_replacement
30413 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30414 # otherwise set result to NONDIR_REPLACEMENT.
30415 func_dirname ()
30417 case ${1} in
30418 */*) func_dirname_result="${1%/*}${2}" ;;
30419 * ) func_dirname_result="${3}" ;;
30420 esac
30423 # func_basename file
30424 func_basename ()
30426 func_basename_result="${1##*/}"
30429 # func_dirname_and_basename file append nondir_replacement
30430 # perform func_basename and func_dirname in a single function
30431 # call:
30432 # dirname: Compute the dirname of FILE. If nonempty,
30433 # add APPEND to the result, otherwise set result
30434 # to NONDIR_REPLACEMENT.
30435 # value returned in "$func_dirname_result"
30436 # basename: Compute filename of FILE.
30437 # value retuned in "$func_basename_result"
30438 # Implementation must be kept synchronized with func_dirname
30439 # and func_basename. For efficiency, we do not delegate to
30440 # those functions but instead duplicate the functionality here.
30441 func_dirname_and_basename ()
30443 case ${1} in
30444 */*) func_dirname_result="${1%/*}${2}" ;;
30445 * ) func_dirname_result="${3}" ;;
30446 esac
30447 func_basename_result="${1##*/}"
30450 # func_stripname prefix suffix name
30451 # strip PREFIX and SUFFIX off of NAME.
30452 # PREFIX and SUFFIX must not contain globbing or regex special
30453 # characters, hashes, percent signs, but SUFFIX may contain a leading
30454 # dot (in which case that matches only a dot).
30455 func_stripname ()
30457 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30458 # positional parameters, so assign one to ordinary parameter first.
30459 func_stripname_result=${3}
30460 func_stripname_result=${func_stripname_result#"${1}"}
30461 func_stripname_result=${func_stripname_result%"${2}"}
30464 # func_opt_split
30465 func_opt_split ()
30467 func_opt_split_opt=${1%%=*}
30468 func_opt_split_arg=${1#*=}
30471 # func_lo2o object
30472 func_lo2o ()
30474 case ${1} in
30475 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30476 *) func_lo2o_result=${1} ;;
30477 esac
30480 # func_xform libobj-or-source
30481 func_xform ()
30483 func_xform_result=${1%.*}.lo
30486 # func_arith arithmetic-term...
30487 func_arith ()
30489 func_arith_result=$(( $* ))
30492 # func_len string
30493 # STRING may not start with a hyphen.
30494 func_len ()
30496 func_len_result=${#1}
30499 _LT_EOF
30501 *) # Bourne compatible functions.
30502 cat << \_LT_EOF >> "$cfgfile"
30504 # func_dirname file append nondir_replacement
30505 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30506 # otherwise set result to NONDIR_REPLACEMENT.
30507 func_dirname ()
30509 # Extract subdirectory from the argument.
30510 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30511 if test "X$func_dirname_result" = "X${1}"; then
30512 func_dirname_result="${3}"
30513 else
30514 func_dirname_result="$func_dirname_result${2}"
30518 # func_basename file
30519 func_basename ()
30521 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30525 # func_stripname prefix suffix name
30526 # strip PREFIX and SUFFIX off of NAME.
30527 # PREFIX and SUFFIX must not contain globbing or regex special
30528 # characters, hashes, percent signs, but SUFFIX may contain a leading
30529 # dot (in which case that matches only a dot).
30530 # func_strip_suffix prefix name
30531 func_stripname ()
30533 case ${2} in
30534 .*) func_stripname_result=`$ECHO "X${3}" \
30535 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30536 *) func_stripname_result=`$ECHO "X${3}" \
30537 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30538 esac
30541 # sed scripts:
30542 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30543 my_sed_long_arg='1s/^-[^=]*=//'
30545 # func_opt_split
30546 func_opt_split ()
30548 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30549 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30552 # func_lo2o object
30553 func_lo2o ()
30555 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30558 # func_xform libobj-or-source
30559 func_xform ()
30561 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
30564 # func_arith arithmetic-term...
30565 func_arith ()
30567 func_arith_result=`expr "$@"`
30570 # func_len string
30571 # STRING may not start with a hyphen.
30572 func_len ()
30574 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30577 _LT_EOF
30578 esac
30580 case $lt_shell_append in
30581 yes)
30582 cat << \_LT_EOF >> "$cfgfile"
30584 # func_append var value
30585 # Append VALUE to the end of shell variable VAR.
30586 func_append ()
30588 eval "$1+=\$2"
30590 _LT_EOF
30593 cat << \_LT_EOF >> "$cfgfile"
30595 # func_append var value
30596 # Append VALUE to the end of shell variable VAR.
30597 func_append ()
30599 eval "$1=\$$1\$2"
30602 _LT_EOF
30604 esac
30607 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30608 || (rm -f "$cfgfile"; exit 1)
30610 mv -f "$cfgfile" "$ofile" ||
30611 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30612 chmod +x "$ofile"
30615 cat <<_LT_EOF >> "$ofile"
30617 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30619 # The linker used to build libraries.
30620 LD=$lt_LD_CXX
30622 # Commands used to build an old-style archive.
30623 old_archive_cmds=$lt_old_archive_cmds_CXX
30625 # A language specific compiler.
30626 CC=$lt_compiler_CXX
30628 # Is the compiler the GNU compiler?
30629 with_gcc=$GCC_CXX
30631 # Compiler flag to turn off builtin functions.
30632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30634 # How to pass a linker flag through the compiler.
30635 wl=$lt_lt_prog_compiler_wl_CXX
30637 # Additional compiler flags for building library objects.
30638 pic_flag=$lt_lt_prog_compiler_pic_CXX
30640 # Compiler flag to prevent dynamic linking.
30641 link_static_flag=$lt_lt_prog_compiler_static_CXX
30643 # Does compiler simultaneously support -c and -o options?
30644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30646 # Whether or not to add -lc for building shared libraries.
30647 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30649 # Whether or not to disallow shared libs when runtime libs are static.
30650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30652 # Compiler flag to allow reflexive dlopens.
30653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30655 # Compiler flag to generate shared objects directly from archives.
30656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30658 # Whether the compiler copes with passing no objects directly.
30659 compiler_needs_object=$lt_compiler_needs_object_CXX
30661 # Create an old-style archive from a shared archive.
30662 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30664 # Create a temporary old-style archive to link instead of a shared archive.
30665 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30667 # Commands used to build a shared archive.
30668 archive_cmds=$lt_archive_cmds_CXX
30669 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30671 # Commands used to build a loadable module if different from building
30672 # a shared archive.
30673 module_cmds=$lt_module_cmds_CXX
30674 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30676 # Whether we are building with GNU ld or not.
30677 with_gnu_ld=$lt_with_gnu_ld_CXX
30679 # Flag that allows shared libraries with undefined symbols to be built.
30680 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30682 # Flag that enforces no undefined symbols.
30683 no_undefined_flag=$lt_no_undefined_flag_CXX
30685 # Flag to hardcode \$libdir into a binary during linking.
30686 # This must work even if \$libdir does not exist
30687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30689 # If ld is used when linking, flag to hardcode \$libdir into a binary
30690 # during linking. This must work even if \$libdir does not exist.
30691 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30693 # Whether we need a single "-rpath" flag with a separated argument.
30694 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30697 # DIR into the resulting binary.
30698 hardcode_direct=$hardcode_direct_CXX
30700 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30701 # DIR into the resulting binary and the resulting library dependency is
30702 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30703 # library is relocated.
30704 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30706 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30707 # into the resulting binary.
30708 hardcode_minus_L=$hardcode_minus_L_CXX
30710 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30711 # into the resulting binary.
30712 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30714 # Set to "yes" if building a shared library automatically hardcodes DIR
30715 # into the library and all subsequent libraries and executables linked
30716 # against it.
30717 hardcode_automatic=$hardcode_automatic_CXX
30719 # Set to yes if linker adds runtime paths of dependent libraries
30720 # to runtime path list.
30721 inherit_rpath=$inherit_rpath_CXX
30723 # Whether libtool must link a program against all its dependency libraries.
30724 link_all_deplibs=$link_all_deplibs_CXX
30726 # Fix the shell variable \$srcfile for the compiler.
30727 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30729 # Set to "yes" if exported symbols are required.
30730 always_export_symbols=$always_export_symbols_CXX
30732 # The commands to list exported symbols.
30733 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30735 # Symbols that should not be listed in the preloaded symbols.
30736 exclude_expsyms=$lt_exclude_expsyms_CXX
30738 # Symbols that must always be exported.
30739 include_expsyms=$lt_include_expsyms_CXX
30741 # Commands necessary for linking programs (against libraries) with templates.
30742 prelink_cmds=$lt_prelink_cmds_CXX
30744 # Specify filename containing input files.
30745 file_list_spec=$lt_file_list_spec_CXX
30747 # How to hardcode a shared library path into an executable.
30748 hardcode_action=$hardcode_action_CXX
30750 # The directories searched by this compiler when creating a shared library.
30751 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30753 # Dependencies to place before and after the objects being linked to
30754 # create a shared library.
30755 predep_objects=$lt_predep_objects_CXX
30756 postdep_objects=$lt_postdep_objects_CXX
30757 predeps=$lt_predeps_CXX
30758 postdeps=$lt_postdeps_CXX
30760 # The library search path used internally by the compiler when linking
30761 # a shared library.
30762 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30764 # ### END LIBTOOL TAG CONFIG: CXX
30765 _LT_EOF
30768 "glib/glibconfig.h":C)
30769 outfile=glib/glibconfig.h-tmp
30770 cat > $outfile <<\_______EOF
30771 /* glibconfig.h
30773 * This is a generated file. Please modify 'configure.ac'
30776 #ifndef __G_LIBCONFIG_H__
30777 #define __G_LIBCONFIG_H__
30779 #include <glib/gmacros.h>
30781 _______EOF
30783 if test x$glib_limits_h = xyes; then
30784 echo '#include <limits.h>' >> $outfile
30786 if test x$glib_float_h = xyes; then
30787 echo '#include <float.h>' >> $outfile
30789 if test x$glib_values_h = xyes; then
30790 echo '#include <values.h>' >> $outfile
30792 if test "$glib_header_alloca_h" = "yes"; then
30793 echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
30795 if test x$glib_sys_poll_h = xyes; then
30796 echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
30798 if test x$glib_included_printf != xyes; then
30799 echo "
30800 /* Specifies that GLib's g_print*() functions wrap the
30801 * system printf functions. This is useful to know, for example,
30802 * when using glibc's register_printf_function().
30803 */" >> $outfile
30804 echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
30807 cat >> $outfile <<_______EOF
30809 G_BEGIN_DECLS
30811 #define G_MINFLOAT $glib_mf
30812 #define G_MAXFLOAT $glib_Mf
30813 #define G_MINDOUBLE $glib_md
30814 #define G_MAXDOUBLE $glib_Md
30815 #define G_MINSHORT $glib_ms
30816 #define G_MAXSHORT $glib_Ms
30817 #define G_MAXUSHORT $glib_Mus
30818 #define G_MININT $glib_mi
30819 #define G_MAXINT $glib_Mi
30820 #define G_MAXUINT $glib_Mui
30821 #define G_MINLONG $glib_ml
30822 #define G_MAXLONG $glib_Ml
30823 #define G_MAXULONG $glib_Mul
30825 _______EOF
30828 ### this should always be true in a modern C/C++ compiler
30829 cat >>$outfile <<_______EOF
30830 typedef signed char gint8;
30831 typedef unsigned char guint8;
30832 _______EOF
30835 if test -n "$gint16"; then
30836 cat >>$outfile <<_______EOF
30837 typedef signed $gint16 gint16;
30838 typedef unsigned $gint16 guint16;
30839 #define G_GINT16_MODIFIER $gint16_modifier
30840 #define G_GINT16_FORMAT $gint16_format
30841 #define G_GUINT16_FORMAT $guint16_format
30842 _______EOF
30846 if test -n "$gint32"; then
30847 cat >>$outfile <<_______EOF
30848 typedef signed $gint32 gint32;
30849 typedef unsigned $gint32 guint32;
30850 #define G_GINT32_MODIFIER $gint32_modifier
30851 #define G_GINT32_FORMAT $gint32_format
30852 #define G_GUINT32_FORMAT $guint32_format
30853 _______EOF
30856 cat >>$outfile <<_______EOF
30857 #define G_HAVE_GINT64 1 /* deprecated, always true */
30859 ${glib_extension}typedef signed $gint64 gint64;
30860 ${glib_extension}typedef unsigned $gint64 guint64;
30862 #define G_GINT64_CONSTANT(val) $gint64_constant
30863 #define G_GUINT64_CONSTANT(val) $guint64_constant
30864 _______EOF
30866 if test x$gint64_format != x ; then
30867 cat >>$outfile <<_______EOF
30868 #define G_GINT64_MODIFIER $gint64_modifier
30869 #define G_GINT64_FORMAT $gint64_format
30870 #define G_GUINT64_FORMAT $guint64_format
30871 _______EOF
30872 else
30873 cat >>$outfile <<_______EOF
30874 #undef G_GINT64_MODIFIER
30875 #undef G_GINT64_FORMAT
30876 #undef G_GUINT64_FORMAT
30877 _______EOF
30880 cat >>$outfile <<_______EOF
30882 #define GLIB_SIZEOF_VOID_P $glib_void_p
30883 #define GLIB_SIZEOF_LONG $glib_long
30884 #define GLIB_SIZEOF_SIZE_T $glib_size_t
30886 _______EOF
30888 cat >>$outfile <<_______EOF
30889 typedef signed $glib_size_type_define gssize;
30890 typedef unsigned $glib_size_type_define gsize;
30891 #define G_GSIZE_MODIFIER $gsize_modifier
30892 #define G_GSSIZE_FORMAT $gssize_format
30893 #define G_GSIZE_FORMAT $gsize_format
30895 #define G_MAXSIZE G_MAXU$glib_msize_type
30896 #define G_MINSSIZE G_MIN$glib_msize_type
30897 #define G_MAXSSIZE G_MAX$glib_msize_type
30899 typedef gint64 goffset;
30900 #define G_MINOFFSET G_MININT64
30901 #define G_MAXOFFSET G_MAXINT64
30903 #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
30904 #define G_GOFFSET_FORMAT G_GINT64_FORMAT
30905 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
30907 _______EOF
30909 if test -z "$glib_unknown_void_p"; then
30910 cat >>$outfile <<_______EOF
30912 #define GPOINTER_TO_INT(p) ((gint) ${glib_gpi_cast} (p))
30913 #define GPOINTER_TO_UINT(p) ((guint) ${glib_gpui_cast} (p))
30915 #define GINT_TO_POINTER(i) ((gpointer) ${glib_gpi_cast} (i))
30916 #define GUINT_TO_POINTER(u) ((gpointer) ${glib_gpui_cast} (u))
30918 typedef signed $glib_intptr_type_define gintptr;
30919 typedef unsigned $glib_intptr_type_define guintptr;
30921 #define G_GINTPTR_MODIFIER $gintptr_modifier
30922 #define G_GINTPTR_FORMAT $gintptr_format
30923 #define G_GUINTPTR_FORMAT $guintptr_format
30924 _______EOF
30925 else
30926 echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
30931 cat >>$outfile <<_______EOF
30932 $glib_atexit
30933 $glib_memmove
30934 $glib_defines
30935 $glib_os
30936 $glib_static_compilation
30938 $glib_vacopy
30940 #ifdef __cplusplus
30941 #define G_HAVE_INLINE 1
30942 #else /* !__cplusplus */
30943 $glib_inline
30944 #endif /* !__cplusplus */
30946 #ifdef __cplusplus
30947 #define G_CAN_INLINE 1
30948 _______EOF
30950 if test x$g_can_inline = xyes ; then
30951 cat >>$outfile <<_______EOF
30952 #else /* !__cplusplus */
30953 #define G_CAN_INLINE 1
30954 _______EOF
30957 cat >>$outfile <<_______EOF
30958 #endif
30960 _______EOF
30962 if test x$g_have_iso_c_varargs = xyes ; then
30963 cat >>$outfile <<_______EOF
30964 #ifndef __cplusplus
30965 # define G_HAVE_ISO_VARARGS 1
30966 #endif
30967 _______EOF
30969 if test x$g_have_iso_cxx_varargs = xyes ; then
30970 cat >>$outfile <<_______EOF
30971 #ifdef __cplusplus
30972 # define G_HAVE_ISO_VARARGS 1
30973 #endif
30974 _______EOF
30976 if test x$g_have_gnuc_varargs = xyes ; then
30977 cat >>$outfile <<_______EOF
30979 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
30980 * is passed ISO vararg support is turned off, and there is no work
30981 * around to turn it on, so we unconditionally turn it off.
30983 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
30984 # undef G_HAVE_ISO_VARARGS
30985 #endif
30987 #define G_HAVE_GNUC_VARARGS 1
30988 _______EOF
30991 case x$g_stack_grows in
30992 xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
30993 *) echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
30994 esac
30997 echo >>$outfile
30998 if test x$g_have_eilseq = xno; then
30999 cat >>$outfile <<_______EOF
31000 #ifndef EILSEQ
31001 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
31002 * The correspondence between this and the corresponding definition
31003 * in libiconv is essential.
31005 # define EILSEQ ENOENT
31006 #endif
31007 _______EOF
31011 if test x$g_have_gnuc_visibility = xyes; then
31012 cat >>$outfile <<_______EOF
31013 #define G_HAVE_GNUC_VISIBILITY 1
31014 _______EOF
31016 cat >>$outfile <<_______EOF
31017 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
31018 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
31019 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
31020 #define G_GNUC_INTERNAL __hidden
31021 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
31022 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
31023 #else
31024 #define G_GNUC_INTERNAL
31025 #endif
31026 _______EOF
31029 echo >>$outfile
31030 if test x$g_mutex_has_default = xyes; then
31031 cat >>$outfile <<_______EOF
31032 $g_enable_threads_def G_THREADS_ENABLED
31033 #define G_THREADS_IMPL_$g_threads_impl_def
31034 typedef struct _GStaticMutex GStaticMutex;
31035 struct _GStaticMutex
31037 struct _GMutex *runtime_mutex;
31038 union {
31039 char pad[$g_mutex_sizeof];
31040 double dummy_double;
31041 void *dummy_pointer;
31042 long dummy_long;
31043 } static_mutex;
31045 #define G_STATIC_MUTEX_INIT { NULL, { { $g_mutex_contents} } }
31046 #define g_static_mutex_get_mutex(mutex) \\
31047 (g_thread_use_default_impl ? ((GMutex*)(gpointer) ((mutex)->static_mutex.pad)) : \\
31048 g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
31049 _______EOF
31050 else
31051 cat >>$outfile <<_______EOF
31052 $g_enable_threads_def G_THREADS_ENABLED
31053 #define G_THREADS_IMPL_$g_threads_impl_def
31054 typedef struct _GMutex* GStaticMutex;
31055 #define G_STATIC_MUTEX_INIT NULL
31056 #define g_static_mutex_get_mutex(mutex) \\
31057 (g_static_mutex_get_mutex_impl_shortcut (mutex))
31058 _______EOF
31061 cat >>$outfile <<_______EOF
31062 /* This represents a system thread as used by the implementation. An
31063 * alien implementaion, as loaded by g_thread_init can only count on
31064 * "sizeof (gpointer)" bytes to store their info. We however need more
31065 * for some of our native implementations. */
31066 typedef union _GSystemThread GSystemThread;
31067 union _GSystemThread
31069 char data[$g_system_thread_sizeof];
31070 double dummy_double;
31071 void *dummy_pointer;
31072 long dummy_long;
31074 _______EOF
31075 if test x"$g_memory_barrier_needed" != xno; then
31076 echo >>$outfile
31077 echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
31080 echo >>$outfile
31081 g_bit_sizes="16 32 64"
31082 for bits in $g_bit_sizes; do
31083 cat >>$outfile <<_______EOF
31084 #define GINT${bits}_TO_${g_bs_native}(val) ((gint${bits}) (val))
31085 #define GUINT${bits}_TO_${g_bs_native}(val) ((guint${bits}) (val))
31086 #define GINT${bits}_TO_${g_bs_alien}(val) ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
31087 #define GUINT${bits}_TO_${g_bs_alien}(val) (GUINT${bits}_SWAP_LE_BE (val))
31088 _______EOF
31089 done
31091 cat >>$outfile <<_______EOF
31092 #define GLONG_TO_LE(val) ((glong) GINT${glongbits}_TO_LE (val))
31093 #define GULONG_TO_LE(val) ((gulong) GUINT${glongbits}_TO_LE (val))
31094 #define GLONG_TO_BE(val) ((glong) GINT${glongbits}_TO_BE (val))
31095 #define GULONG_TO_BE(val) ((gulong) GUINT${glongbits}_TO_BE (val))
31096 #define GINT_TO_LE(val) ((gint) GINT${gintbits}_TO_LE (val))
31097 #define GUINT_TO_LE(val) ((guint) GUINT${gintbits}_TO_LE (val))
31098 #define GINT_TO_BE(val) ((gint) GINT${gintbits}_TO_BE (val))
31099 #define GUINT_TO_BE(val) ((guint) GUINT${gintbits}_TO_BE (val))
31100 #define GSIZE_TO_LE(val) ((gsize) GUINT${gsizebits}_TO_LE (val))
31101 #define GSSIZE_TO_LE(val) ((gssize) GINT${gsizebits}_TO_LE (val))
31102 #define GSIZE_TO_BE(val) ((gsize) GUINT${gsizebits}_TO_BE (val))
31103 #define GSSIZE_TO_BE(val) ((gssize) GINT${gsizebits}_TO_BE (val))
31104 #define G_BYTE_ORDER $g_byte_order
31106 #define GLIB_SYSDEF_POLLIN =$g_pollin
31107 #define GLIB_SYSDEF_POLLOUT =$g_pollout
31108 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
31109 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
31110 #define GLIB_SYSDEF_POLLERR =$g_pollerr
31111 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
31113 #define G_MODULE_SUFFIX "$g_module_suffix"
31115 /* A GPid is an abstraction for a process "handle". It is *not* an
31116 * abstraction for a process identifier in general. GPid is used in
31117 * GLib only for descendant processes spawned with the g_spawn*
31118 * functions. On POSIX there is no "process handle" concept as such,
31119 * but on Windows a GPid is a handle to a process, a kind of pointer,
31120 * not a process identifier.
31122 typedef $g_pid_type GPid;
31124 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
31125 #define GLIB_SYSDEF_AF_INET $g_af_inet
31126 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
31128 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
31129 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
31130 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
31132 G_END_DECLS
31134 #endif /* GLIBCONFIG_H */
31135 _______EOF
31138 if cmp -s $outfile glib/glibconfig.h; then
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
31140 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
31141 rm -f $outfile
31142 else
31143 mv $outfile glib/glibconfig.h
31146 "chmod-scripts":C) chmod 0755 glib-zip
31147 chmod 0755 glib-gettextize
31148 chmod 0755 gobject/glib-mkenums ;;
31150 esac
31151 done # for ac_tag
31154 as_fn_exit 0
31155 _ACEOF
31156 ac_clean_files=$ac_clean_files_save
31158 test $ac_write_fail = 0 ||
31159 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31162 # configure is writing to config.log, and then calls config.status.
31163 # config.status does its own redirection, appending to config.log.
31164 # Unfortunately, on DOS this fails, as config.log is still kept open
31165 # by configure, so config.status won't be able to write to it; its
31166 # output is simply discarded. So we exec the FD to /dev/null,
31167 # effectively closing config.log, so it can be properly (re)opened and
31168 # appended to by config.status. When coming back to configure, we
31169 # need to make the FD available again.
31170 if test "$no_create" != yes; then
31171 ac_cs_success=:
31172 ac_config_status_args=
31173 test "$silent" = yes &&
31174 ac_config_status_args="$ac_config_status_args --quiet"
31175 exec 5>/dev/null
31176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31177 exec 5>>config.log
31178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31179 # would make configure fail if this is the last instruction.
31180 $ac_cs_success || as_fn_exit $?
31182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}