Changes to update Tomato RAF.
[tomato.git] / release / src / router / glib / autom4te.cache / output.2
blob304ead1470a31724c38ca7a0460e15e034c19c4a
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68.
4 @%:@ 
5 @%:@ 
6 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 @%:@ Foundation, Inc.
9 @%:@ 
10 @%:@ 
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in @%:@(
28   *posix*) :
29     set -o posix ;; @%:@(
30   *) :
31      ;;
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in @%:@(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in @%:@((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in @%:@(
147   *posix*) :
148     set -o posix ;; @%:@(
149   *) :
150      ;;
151 esac
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166   
167 else
168   exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190   
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in @%:@(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in @%:@ ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 @%:@ as_fn_unset VAR
266 @%:@ ---------------
267 @%:@ Portably unset VAR.
268 as_fn_unset ()
270   { eval $1=; unset $1;}
272 as_unset=as_fn_unset
274 @%:@ as_fn_set_status STATUS
275 @%:@ -----------------------
276 @%:@ Set @S|@? to STATUS, without forking.
277 as_fn_set_status ()
279   return $1
280 } @%:@ as_fn_set_status
282 @%:@ as_fn_exit STATUS
283 @%:@ -----------------
284 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } @%:@ as_fn_exit
292 @%:@ as_fn_mkdir_p
293 @%:@ -------------
294 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338 } @%:@ as_fn_mkdir_p
339 @%:@ as_fn_append VAR VALUE
340 @%:@ ----------------------
341 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
342 @%:@ advantage of any shell optimizations that allow amortized linear growth over
343 @%:@ repeated appends, instead of the typical quadratic growth present in naive
344 @%:@ implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
357 @%:@ as_fn_arith ARG...
358 @%:@ ------------------
359 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
360 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
361 @%:@ must be portable across @S|@(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
375 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
376 @%:@ ----------------------------------------
377 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 @%:@ script with STATUS, using 1 if that was 0.
380 as_fn_error ()
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } @%:@ as_fn_error
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in @%:@(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
478   ECHO_N='-n';;
479 esac
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in @%:@(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556 # Initializations.
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIB@&t@OBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
575 ac_unique_file="glist.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIB@&t@OBJS
616 G_THREAD_LIBS
617 G_THREAD_CFLAGS
618 GLIB_DEBUG_FLAGS
619 G_MODULE_BROKEN_RTLD_GLOBAL
620 G_MODULE_NEED_USCORE
621 G_MODULE_HAVE_DLERROR
622 G_MODULE_LDFLAGS
623 G_MODULE_LIBS
624 G_MODULE_IMPL
625 ENABLE_MEM_PROFILE
626 ENABLE_MEM_CHECK
627 MAINT
628 MAINTAINER_MODE_FALSE
629 MAINTAINER_MODE_TRUE
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
636 MANIFEST_TOOL
637 RANLIB
638 ac_ct_AR
640 DLLTOOL
641 OBJDUMP
642 LN_S
644 ac_ct_DUMPBIN
645 DUMPBIN
647 FGREP
648 EGREP
649 GREP
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 LIBTOOL
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LT_AGE
700 LT_REVISION
701 LT_CURRENT
702 LT_RELEASE
703 GLIB_BINARY_AGE
704 GLIB_INTERFACE_AGE
705 GLIB_VERSION
706 GLIB_MICRO_VERSION
707 GLIB_MINOR_VERSION
708 GLIB_MAJOR_VERSION
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 enable_dependency_tracking
755 with_gnu_ld
756 with_sysroot
757 enable_libtool_lock
758 enable_maintainer_mode
759 enable_debug
760 enable_mem_check
761 enable_mem_profile
762 enable_ansi
763 enable_threads
764 with_threads
766       ac_precious_vars='build_alias
767 host_alias
768 target_alias
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP'
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
825 ac_prev=
826 ac_dashdash=
827 for ac_option
829   # If the previous option needs an argument, assign it.
830   if test -n "$ac_prev"; then
831     eval $ac_prev=\$ac_option
832     ac_prev=
833     continue
834   fi
836   case $ac_option in
837   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838   *=)   ac_optarg= ;;
839   *)    ac_optarg=yes ;;
840   esac
842   # Accept the important Cygnus configure options, so we can diagnose typos.
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
865   --config-cache | -C)
866     cache_file=config.cache ;;
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
880   -disable-* | --disable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=no ;;
896   -docdir | --docdir | --docdi | --doc | --do)
897     ac_prev=docdir ;;
898   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899     docdir=$ac_optarg ;;
901   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902     ac_prev=dvidir ;;
903   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904     dvidir=$ac_optarg ;;
906   -enable-* | --enable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=\$ac_optarg ;;
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1110   -with-* | --with-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error $? "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1160   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162     ;;
1164   *=*)
1165     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166     # Reject names that are not valid shell variable names.
1167     case $ac_envvar in #(
1168       '' | [0-9]* | *[!_$as_cr_alnum]* )
1169       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170     esac
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180     ;;
1182   esac
1183 done
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   as_fn_error $? "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191   case $enable_option_checking in
1192     no) ;;
1193     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195   esac
1198 # Check all directory arguments for consistency.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1204   eval ac_val=\$$ac_var
1205   # Remove trailing slashes.
1206   case $ac_val in
1207     */ )
1208       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209       eval $ac_var=\$ac_val;;
1210   esac
1211   # Be sure to have absolute directory names.
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used" >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   as_fn_error $? "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$as_myself" : 'X\(//\)[^/]' \| \
1258          X"$as_myself" : 'X\(//\)$' \| \
1259          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures this package to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking ...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           @<:@@S|@ac_default_prefix@:>@
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           @<:@PREFIX@:>@
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351   --bindir=DIR            user executables [EPREFIX/bin]
1352   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR        program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR            object code libraries [EPREFIX/lib]
1358   --includedir=DIR        C header files [PREFIX/include]
1359   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR           info documentation [DATAROOTDIR/info]
1363   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR            man documentation [DATAROOTDIR/man]
1365   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1366   --htmldir=DIR           html documentation [DOCDIR]
1367   --dvidir=DIR            dvi documentation [DOCDIR]
1368   --pdfdir=DIR            pdf documentation [DOCDIR]
1369   --psdir=DIR             ps documentation [DOCDIR]
1370 _ACEOF
1372   cat <<\_ACEOF
1374 Program names:
1375   --program-prefix=PREFIX            prepend PREFIX to installed program names
1376   --program-suffix=SUFFIX            append SUFFIX to installed program names
1377   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1387   cat <<\_ACEOF
1389 Optional Features:
1390   --disable-option-checking  ignore unrecognized --enable/--with options
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1394   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1395   --enable-fast-install@<:@=PKGS@:>@ 
1396                           optimize for fast installation @<:@default=yes@:>@
1397   --disable-dependency-tracking  speeds up one-time build
1398   --enable-dependency-tracking   do not reject slow dependency extractors
1399   --disable-libtool-lock  avoid locking (might break parallel builds)
1400   --enable-maintainer-mode  enable make rules and dependencies not useful
1401                           (and sometimes confusing) to the casual installer
1402   --enable-debug=no/minimum/yes turn on debugging default=$debug_default
1403   --enable-mem-check      turn on malloc/free sanity checking (not recommended) default=no
1404   --enable-mem-profile    turn on malloc profiling atexit (not recommended) default=no
1405   --enable-ansi           turn on strict ansi default=no
1406   --enable-threads        turn on basic thread support default=yes
1407                           (=no will override --with-threads)
1409 Optional Packages:
1410   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1413                           both@:>@
1414   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1415   --with-sysroot=DIR Search for dependent libraries within DIR
1416                         (or the compiler's sysroot if not specified).
1417   --with-threads=none/posix/solaris/nspr specify a thread implementation to use
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   CPP         C preprocessor
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to the package provider.
1433 _ACEOF
1434 ac_status=$?
1437 if test "$ac_init_help" = "recursive"; then
1438   # If there are subdirs, report their specific --help.
1439   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440     test -d "$ac_dir" ||
1441       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442       continue
1443     ac_builddir=.
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 configure
1496 generated by GNU Autoconf 2.68
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502   exit
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 @%:@ ac_fn_c_try_compile LINENO
1510 @%:@ --------------------------
1511 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515   rm -f conftest.$ac_objext
1516   if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519   *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523   (eval "$ac_compile") 2>conftest.err
1524   ac_status=$?
1525   if test -s conftest.err; then
1526     grep -v '^ *+' conftest.err >conftest.er1
1527     cat conftest.er1 >&5
1528     mv -f conftest.er1 conftest.err
1529   fi
1530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531   test $ac_status = 0; } && {
1532          test -z "$ac_c_werror_flag" ||
1533          test ! -s conftest.err
1534        } && test -s conftest.$ac_objext; then :
1535   ac_retval=0
1536 else
1537   $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1540         ac_retval=1
1542   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543   as_fn_set_status $ac_retval
1545 } @%:@ ac_fn_c_try_compile
1547 @%:@ ac_fn_c_try_link LINENO
1548 @%:@ -----------------------
1549 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_link ()
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   rm -f conftest.$ac_objext conftest$ac_exeext
1554   if { { ac_try="$ac_link"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_link") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } && {
1570          test -z "$ac_c_werror_flag" ||
1571          test ! -s conftest.err
1572        } && test -s conftest$ac_exeext && {
1573          test "$cross_compiling" = yes ||
1574          $as_test_x conftest$ac_exeext
1575        }; then :
1576   ac_retval=0
1577 else
1578   $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1581         ac_retval=1
1583   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1584   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1585   # interfere with the next link command; also delete a directory that is
1586   # left behind by Apple's compiler.  We do this before executing the actions.
1587   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589   as_fn_set_status $ac_retval
1591 } @%:@ ac_fn_c_try_link
1593 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1594 @%:@ -------------------------------------------------------
1595 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1596 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1597 ac_fn_c_check_header_compile ()
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603   $as_echo_n "(cached) " >&6
1604 else
1605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h.  */
1608 @%:@include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611   eval "$3=yes"
1612 else
1613   eval "$3=no"
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 eval ac_res=\$$3
1618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 } @%:@ ac_fn_c_check_header_compile
1624 @%:@ ac_fn_c_try_cpp LINENO
1625 @%:@ ----------------------
1626 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } > conftest.i && {
1646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        }; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1654     ac_retval=1
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1659 } @%:@ ac_fn_c_try_cpp
1661 @%:@ ac_fn_c_try_run LINENO
1662 @%:@ ----------------------
1663 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1664 @%:@ that executables *can* be run.
1665 ac_fn_c_try_run ()
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>&5
1676   ac_status=$?
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679   { { case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_try") 2>&5
1686   ac_status=$?
1687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688   test $ac_status = 0; }; }; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: program exited with status $ac_status" >&5
1692        $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695        ac_retval=$ac_status
1697   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699   as_fn_set_status $ac_retval
1701 } @%:@ ac_fn_c_try_run
1703 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1704 @%:@ ----------------------------------
1705 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1706 ac_fn_c_check_func ()
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712   $as_echo_n "(cached) " >&6
1713 else
1714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1718 #define $2 innocuous_$2
1720 /* System header to define __stub macros and hopefully few prototypes,
1721     which can conflict with char $2 (); below.
1722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1723     <limits.h> exists even on freestanding compilers.  */
1725 #ifdef __STDC__
1726 # include <limits.h>
1727 #else
1728 # include <assert.h>
1729 #endif
1731 #undef $2
1733 /* Override any GCC internal prototype to avoid an error.
1734    Use char because int might match the return type of a GCC
1735    builtin and then its argument prototype would still apply.  */
1736 #ifdef __cplusplus
1737 extern "C"
1738 #endif
1739 char $2 ();
1740 /* The GNU C library defines this for functions which it implements
1741     to always fail with ENOSYS.  Some functions are actually named
1742     something starting with __ and the normal name is an alias.  */
1743 #if defined __stub_$2 || defined __stub___$2
1744 choke me
1745 #endif
1748 main ()
1750 return $2 ();
1751   ;
1752   return 0;
1754 _ACEOF
1755 if ac_fn_c_try_link "$LINENO"; then :
1756   eval "$3=yes"
1757 else
1758   eval "$3=no"
1760 rm -f core conftest.err conftest.$ac_objext \
1761     conftest$ac_exeext conftest.$ac_ext
1763 eval ac_res=\$$3
1764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 } @%:@ ac_fn_c_check_func
1770 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1771 @%:@ --------------------------------------------
1772 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1773 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1774 @%:@ computed
1775 ac_fn_c_compute_int ()
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if test "$cross_compiling" = yes; then
1779     # Depending upon the size, compute the lo and hi bounds.
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1784 main ()
1786 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1787 test_array @<:@0@:>@ = 0
1789   ;
1790   return 0;
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794   ac_lo=0 ac_mid=0
1795   while :; do
1796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1800 main ()
1802 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1803 test_array @<:@0@:>@ = 0
1805   ;
1806   return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810   ac_hi=$ac_mid; break
1811 else
1812   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1813                         if test $ac_lo -le $ac_mid; then
1814                           ac_lo= ac_hi=
1815                           break
1816                         fi
1817                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820   done
1821 else
1822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1826 main ()
1828 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
1829 test_array @<:@0@:>@ = 0
1831   ;
1832   return 0;
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836   ac_hi=-1 ac_mid=-1
1837   while :; do
1838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1842 main ()
1844 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
1845 test_array @<:@0@:>@ = 0
1847   ;
1848   return 0;
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852   ac_lo=$ac_mid; break
1853 else
1854   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1855                         if test $ac_mid -le $ac_hi; then
1856                           ac_lo= ac_hi=
1857                           break
1858                         fi
1859                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862   done
1863 else
1864   ac_lo= ac_hi=
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 # Binary search between lo and hi bounds.
1870 while test "x$ac_lo" != "x$ac_hi"; do
1871   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1876 main ()
1878 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1879 test_array @<:@0@:>@ = 0
1881   ;
1882   return 0;
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886   ac_hi=$ac_mid
1887 else
1888   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 done
1892 case $ac_lo in @%:@((
1893 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1894 '') ac_retval=1 ;;
1895 esac
1896   else
1897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1900 static long int longval () { return $2; }
1901 static unsigned long int ulongval () { return $2; }
1902 @%:@include <stdio.h>
1903 @%:@include <stdlib.h>
1905 main ()
1908   FILE *f = fopen ("conftest.val", "w");
1909   if (! f)
1910     return 1;
1911   if (($2) < 0)
1912     {
1913       long int i = longval ();
1914       if (i != ($2))
1915         return 1;
1916       fprintf (f, "%ld", i);
1917     }
1918   else
1919     {
1920       unsigned long int i = ulongval ();
1921       if (i != ($2))
1922         return 1;
1923       fprintf (f, "%lu", i);
1924     }
1925   /* Do not output a trailing newline, as this causes \r\n confusion
1926      on some platforms.  */
1927   return ferror (f) || fclose (f) != 0;
1929   ;
1930   return 0;
1932 _ACEOF
1933 if ac_fn_c_try_run "$LINENO"; then :
1934   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1935 else
1936   ac_retval=1
1938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1939   conftest.$ac_objext conftest.beam conftest.$ac_ext
1940 rm -f conftest.val
1942   fi
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944   as_fn_set_status $ac_retval
1946 } @%:@ ac_fn_c_compute_int
1948 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1949 @%:@ -------------------------------------------------------
1950 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1951 @%:@ the include files in INCLUDES and setting the cache variable VAR
1952 @%:@ accordingly.
1953 ac_fn_c_check_header_mongrel ()
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   if eval \${$3+:} false; then :
1957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960   $as_echo_n "(cached) " >&6
1962 eval ac_res=\$$3
1963                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 else
1966   # Is the header compilable?
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1968 $as_echo_n "checking $2 usability... " >&6; }
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1972 @%:@include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975   ac_header_compiler=yes
1976 else
1977   ac_header_compiler=no
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1981 $as_echo "$ac_header_compiler" >&6; }
1983 # Is the header present?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1985 $as_echo_n "checking $2 presence... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 @%:@include <$2>
1989 _ACEOF
1990 if ac_fn_c_try_cpp "$LINENO"; then :
1991   ac_header_preproc=yes
1992 else
1993   ac_header_preproc=no
1995 rm -f conftest.err conftest.i conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1997 $as_echo "$ac_header_preproc" >&6; }
1999 # So?  What about this header?
2000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2001   yes:no: )
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2003 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006     ;;
2007   no:yes:* )
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2009 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2011 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2013 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2014     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2015 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2016     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2017 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2018     ;;
2019 esac
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023   $as_echo_n "(cached) " >&6
2024 else
2025   eval "$3=\$ac_header_compiler"
2027 eval ac_res=\$$3
2028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } @%:@ ac_fn_c_check_header_mongrel
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2038 It was created by $as_me, which was
2039 generated by GNU Autoconf 2.68.  Invocation command line was
2041   $ $0 $@
2043 _ACEOF
2044 exec 5>>config.log
2046 cat <<_ASUNAME
2047 ## --------- ##
2048 ## Platform. ##
2049 ## --------- ##
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2060 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2061 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2064 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2065 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2066 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2068 _ASUNAME
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075     $as_echo "PATH: $as_dir"
2076   done
2077 IFS=$as_save_IFS
2079 } >&5
2081 cat >&5 <<_ACEOF
2084 ## ----------- ##
2085 ## Core tests. ##
2086 ## ----------- ##
2088 _ACEOF
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2096 ac_configure_args=
2097 ac_configure_args0=
2098 ac_configure_args1=
2099 ac_must_keep_next=false
2100 for ac_pass in 1 2
2102   for ac_arg
2103   do
2104     case $ac_arg in
2105     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107     | -silent | --silent | --silen | --sile | --sil)
2108       continue ;;
2109     *\'*)
2110       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     esac
2112     case $ac_pass in
2113     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114     2)
2115       as_fn_append ac_configure_args1 " '$ac_arg'"
2116       if test $ac_must_keep_next = true; then
2117         ac_must_keep_next=false # Got value, back to normal.
2118       else
2119         case $ac_arg in
2120           *=* | --config-cache | -C | -disable-* | --disable-* \
2121           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123           | -with-* | --with-* | -without-* | --without-* | --x)
2124             case "$ac_configure_args0 " in
2125               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126             esac
2127             ;;
2128           -* ) ac_must_keep_next=true ;;
2129         esac
2130       fi
2131       as_fn_append ac_configure_args " '$ac_arg'"
2132       ;;
2133     esac
2134   done
2135 done
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log.  We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145   # Save into config.log some information that might help in debugging.
2146   {
2147     echo
2149     $as_echo "## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##"
2152     echo
2153     # The following way of writing the cache mishandles newlines in values,
2155   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156     eval ac_val=\$$ac_var
2157     case $ac_val in #(
2158     *${as_nl}*)
2159       case $ac_var in #(
2160       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162       esac
2163       case $ac_var in #(
2164       _ | IFS | as_nl) ;; #(
2165       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2166       *) { eval $ac_var=; unset $ac_var;} ;;
2167       esac ;;
2168     esac
2169   done
2170   (set) 2>&1 |
2171     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172     *${as_nl}ac_space=\ *)
2173       sed -n \
2174         "s/'\''/'\''\\\\'\'''\''/g;
2175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176       ;; #(
2177     *)
2178       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179       ;;
2180     esac |
2181     sort
2183     echo
2185     $as_echo "## ----------------- ##
2186 ## Output variables. ##
2187 ## ----------------- ##"
2188     echo
2189     for ac_var in $ac_subst_vars
2190     do
2191       eval ac_val=\$$ac_var
2192       case $ac_val in
2193       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194       esac
2195       $as_echo "$ac_var='\''$ac_val'\''"
2196     done | sort
2197     echo
2199     if test -n "$ac_subst_files"; then
2200       $as_echo "## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##"
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         $as_echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2215     if test -s confdefs.h; then
2216       $as_echo "## ----------- ##
2217 ## confdefs.h. ##
2218 ## ----------- ##"
2219       echo
2220       cat confdefs.h
2221       echo
2222     fi
2223     test "$ac_signal" != 0 &&
2224       $as_echo "$as_me: caught signal $ac_signal"
2225     $as_echo "$as_me: exit $exit_status"
2226   } >&5
2227   rm -f core *.core core.conftest.* &&
2228     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229     exit $exit_status
2230 ' 0
2231 for ac_signal in 1 2 13 15; do
2232   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2233 done
2234 ac_signal=0
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2239 $as_echo "/* confdefs.h */" > confdefs.h
2241 # Predefined preprocessor variables.
2243 cat >>confdefs.h <<_ACEOF
2244 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 _ACEOF
2251 cat >>confdefs.h <<_ACEOF
2252 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 _ACEOF
2255 cat >>confdefs.h <<_ACEOF
2256 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2257 _ACEOF
2259 cat >>confdefs.h <<_ACEOF
2260 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 _ACEOF
2263 cat >>confdefs.h <<_ACEOF
2264 @%:@define PACKAGE_URL "$PACKAGE_URL"
2265 _ACEOF
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2270 ac_site_file1=NONE
2271 ac_site_file2=NONE
2272 if test -n "$CONFIG_SITE"; then
2273   # We do not want a PATH search for config.site.
2274   case $CONFIG_SITE in @%:@((
2275     -*)  ac_site_file1=./$CONFIG_SITE;;
2276     */*) ac_site_file1=$CONFIG_SITE;;
2277     *)   ac_site_file1=./$CONFIG_SITE;;
2278   esac
2279 elif test "x$prefix" != xNONE; then
2280   ac_site_file1=$prefix/share/config.site
2281   ac_site_file2=$prefix/etc/config.site
2282 else
2283   ac_site_file1=$ac_default_prefix/share/config.site
2284   ac_site_file2=$ac_default_prefix/etc/config.site
2286 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2288   test "x$ac_site_file" = xNONE && continue
2289   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292     sed 's/^/| /' "$ac_site_file" >&5
2293     . "$ac_site_file" \
2294       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "failed to load site script $ac_site_file
2297 See \`config.log' for more details" "$LINENO" 5; }
2298   fi
2299 done
2301 if test -r "$cache_file"; then
2302   # Some versions of bash will fail to source /dev/null (special files
2303   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2304   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2305     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2306 $as_echo "$as_me: loading cache $cache_file" >&6;}
2307     case $cache_file in
2308       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309       *)                      . "./$cache_file";;
2310     esac
2311   fi
2312 else
2313   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2314 $as_echo "$as_me: creating cache $cache_file" >&6;}
2315   >$cache_file
2318 # Check that the precious variables saved in the cache have kept the same
2319 # value.
2320 ac_cache_corrupted=false
2321 for ac_var in $ac_precious_vars; do
2322   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2323   eval ac_new_set=\$ac_env_${ac_var}_set
2324   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2325   eval ac_new_val=\$ac_env_${ac_var}_value
2326   case $ac_old_set,$ac_new_set in
2327     set,)
2328       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2330       ac_cache_corrupted=: ;;
2331     ,set)
2332       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2333 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2334       ac_cache_corrupted=: ;;
2335     ,);;
2336     *)
2337       if test "x$ac_old_val" != "x$ac_new_val"; then
2338         # differences in whitespace do not lead to failure.
2339         ac_old_val_w=`echo x $ac_old_val`
2340         ac_new_val_w=`echo x $ac_new_val`
2341         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2342           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2343 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2344           ac_cache_corrupted=:
2345         else
2346           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2347 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2348           eval $ac_var=\$ac_old_val
2349         fi
2350         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2351 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2352         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2353 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2354       fi;;
2355   esac
2356   # Pass precious variables to config.status.
2357   if test "$ac_new_set" = set; then
2358     case $ac_new_val in
2359     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2360     *) ac_arg=$ac_var=$ac_new_val ;;
2361     esac
2362     case " $ac_configure_args " in
2363       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2364       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2365     esac
2366   fi
2367 done
2368 if $ac_cache_corrupted; then
2369   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2372 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2373   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 ## -------------------- ##
2376 ## Main body of script. ##
2377 ## -------------------- ##
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 # Save this value here, since automake will set cflags later
2388 cflags_set=${CFLAGS+set}
2390 # we rewrite this file
2391 if test "x$cross_compiling" != "xyes"; then
2392         rm -f glibconfig-sysdefs.h
2396 # The following version number definitions apply to GLib, GModule and GThread
2397 # as a whole, so if changes occoured in any of them, they are all
2398 # treated with the same interface and binary age.
2400 # Making releases:
2401 #   GLIB_MICRO_VERSION += 1;
2402 #   GLIB_INTERFACE_AGE += 1;
2403 #   GLIB_BINARY_AGE += 1;
2404 # if any functions have been added, set GLIB_INTERFACE_AGE to 0.
2405 # if backwards compatibility has been broken,
2406 # set GLIB_BINARY_AGE _and_ GLIB_INTERFACE_AGE to 0.
2408 GLIB_MAJOR_VERSION=1
2409 GLIB_MINOR_VERSION=2
2410 GLIB_MICRO_VERSION=10
2411 GLIB_INTERFACE_AGE=10
2412 GLIB_BINARY_AGE=10
2413 GLIB_VERSION=$GLIB_MAJOR_VERSION.$GLIB_MINOR_VERSION.$GLIB_MICRO_VERSION
2422 # libtool versioning
2423 LT_RELEASE=$GLIB_MAJOR_VERSION.$GLIB_MINOR_VERSION
2424 LT_CURRENT=`expr $GLIB_MICRO_VERSION - $GLIB_INTERFACE_AGE`
2425 LT_REVISION=$GLIB_INTERFACE_AGE
2426 LT_AGE=`expr $GLIB_BINARY_AGE - $GLIB_INTERFACE_AGE`
2432 VERSION=$GLIB_VERSION
2433 PACKAGE=glib
2435 am__api_version='1.11'
2437 ac_aux_dir=
2438 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439   if test -f "$ac_dir/install-sh"; then
2440     ac_aux_dir=$ac_dir
2441     ac_install_sh="$ac_aux_dir/install-sh -c"
2442     break
2443   elif test -f "$ac_dir/install.sh"; then
2444     ac_aux_dir=$ac_dir
2445     ac_install_sh="$ac_aux_dir/install.sh -c"
2446     break
2447   elif test -f "$ac_dir/shtool"; then
2448     ac_aux_dir=$ac_dir
2449     ac_install_sh="$ac_aux_dir/shtool install -c"
2450     break
2451   fi
2452 done
2453 if test -z "$ac_aux_dir"; then
2454   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2457 # These three variables are undocumented and unsupported,
2458 # and are intended to be withdrawn in a future Autoconf release.
2459 # They can cause serious problems if a builder's source tree is in a directory
2460 # whose full name contains unusual characters.
2461 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2462 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2463 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2466 # Find a good install program.  We prefer a C program (faster),
2467 # so one script is as good as another.  But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2472 # AIX /bin/install
2473 # AmigaOS /C/install, which installs bootblocks on floppy discs
2474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477 # OS/2's system install, which has a completely different semantic
2478 # ./install, which can be erroneously created by make from ./install.sh.
2479 # Reject install programs that cannot install multiple files.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2482 if test -z "$INSTALL"; then
2483 if ${ac_cv_path_install+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     # Account for people who put trailing slashes in PATH elements.
2492 case $as_dir/ in @%:@((
2493   ./ | .// | /[cC]/* | \
2494   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2496   /usr/ucb/* ) ;;
2497   *)
2498     # OSF1 and SCO ODT 3.0 have their own names for install.
2499     # Don't use installbsd from OSF since it installs stuff as root
2500     # by default.
2501     for ac_prog in ginstall scoinst install; do
2502       for ac_exec_ext in '' $ac_executable_extensions; do
2503         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2504           if test $ac_prog = install &&
2505             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506             # AIX install.  It has an incompatible calling convention.
2507             :
2508           elif test $ac_prog = install &&
2509             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510             # program-specific install script used by HP pwplus--don't use.
2511             :
2512           else
2513             rm -rf conftest.one conftest.two conftest.dir
2514             echo one > conftest.one
2515             echo two > conftest.two
2516             mkdir conftest.dir
2517             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518               test -s conftest.one && test -s conftest.two &&
2519               test -s conftest.dir/conftest.one &&
2520               test -s conftest.dir/conftest.two
2521             then
2522               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2523               break 3
2524             fi
2525           fi
2526         fi
2527       done
2528     done
2529     ;;
2530 esac
2532   done
2533 IFS=$as_save_IFS
2535 rm -rf conftest.one conftest.two conftest.dir
2538   if test "${ac_cv_path_install+set}" = set; then
2539     INSTALL=$ac_cv_path_install
2540   else
2541     # As a last resort, use the slow shell script.  Don't cache a
2542     # value for INSTALL within a source directory, because that will
2543     # break other packages using the cache if that directory is
2544     # removed, or if the value is a relative name.
2545     INSTALL=$ac_install_sh
2546   fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549 $as_echo "$INSTALL" >&6; }
2551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552 # It thinks the first close brace ends the variable substitution.
2553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560 $as_echo_n "checking whether build environment is sane... " >&6; }
2561 # Just in case
2562 sleep 1
2563 echo timestamp > conftest.file
2564 # Reject unsafe characters in $srcdir or the absolute working directory
2565 # name.  Accept space and tab only in the latter.
2566 am_lf='
2568 case `pwd` in
2569   *[\\\"\#\$\&\'\`$am_lf]*)
2570     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2571 esac
2572 case $srcdir in
2573   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2574     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2575 esac
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments.  Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2581 # directory).
2582 if (
2583    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584    if test "$*" = "X"; then
2585       # -L didn't work.
2586       set X `ls -t "$srcdir/configure" conftest.file`
2587    fi
2588    rm -f conftest.file
2589    if test "$*" != "X $srcdir/configure conftest.file" \
2590       && test "$*" != "X conftest.file $srcdir/configure"; then
2592       # If neither matched, then we have a broken ls.  This can happen
2593       # if, for instance, CONFIG_SHELL is bash and it inherits a
2594       # broken ls alias from the environment.  This has actually
2595       # happened.  Such a system could not be considered "sane".
2596       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2597 alias in your environment" "$LINENO" 5
2598    fi
2600    test "$2" = conftest.file
2601    )
2602 then
2603    # Ok.
2604    :
2605 else
2606    as_fn_error $? "newly created file is older than distributed files!
2607 Check your system clock" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2611 test "$program_prefix" != NONE &&
2612   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
2615   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2616 # Double any \ or $.
2617 # By default was `s,x,x', remove it if useless.
2618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621 # expand $ac_aux_dir to an absolute path
2622 am_aux_dir=`cd $ac_aux_dir && pwd`
2624 if test x"${MISSING+set}" != xset; then
2625   case $am_aux_dir in
2626   *\ * | *\     *)
2627     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2628   *)
2629     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2630   esac
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634   am_missing_run="$MISSING --run "
2635 else
2636   am_missing_run=
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2638 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641 if test x"${install_sh}" != xset; then
2642   case $am_aux_dir in
2643   *\ * | *\     *)
2644     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2645   *)
2646     install_sh="\${SHELL} $am_aux_dir/install-sh"
2647   esac
2650 # Installed binaries are usually stripped using `strip' when the user
2651 # run `make install-strip'.  However `strip' might not be the right
2652 # tool to use in cross-compilation environments, therefore Automake
2653 # will honor the `STRIP' environment variable to overrule this program.
2654 if test "$cross_compiling" != no; then
2655   if test -n "$ac_tool_prefix"; then
2656   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_STRIP+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$STRIP"; then
2664   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2683 STRIP=$ac_cv_prog_STRIP
2684 if test -n "$STRIP"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2686 $as_echo "$STRIP" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2694 if test -z "$ac_cv_prog_STRIP"; then
2695   ac_ct_STRIP=$STRIP
2696   # Extract the first word of "strip", so it can be a program name with args.
2697 set dummy strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$ac_ct_STRIP"; then
2704   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_prog_ac_ct_STRIP="strip"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2724 if test -n "$ac_ct_STRIP"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2726 $as_echo "$ac_ct_STRIP" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2732   if test "x$ac_ct_STRIP" = x; then
2733     STRIP=":"
2734   else
2735     case $cross_compiling:$ac_tool_warned in
2736 yes:)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741     STRIP=$ac_ct_STRIP
2742   fi
2743 else
2744   STRIP="$ac_cv_prog_STRIP"
2748 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2751 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2752 if test -z "$MKDIR_P"; then
2753   if ${ac_cv_path_mkdir+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_prog in mkdir gmkdir; do
2762          for ac_exec_ext in '' $ac_executable_extensions; do
2763            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2764            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2765              'mkdir (GNU coreutils) '* | \
2766              'mkdir (coreutils) '* | \
2767              'mkdir (fileutils) '4.1*)
2768                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2769                break 3;;
2770            esac
2771          done
2772        done
2773   done
2774 IFS=$as_save_IFS
2778   test -d ./--version && rmdir ./--version
2779   if test "${ac_cv_path_mkdir+set}" = set; then
2780     MKDIR_P="$ac_cv_path_mkdir -p"
2781   else
2782     # As a last resort, use the slow shell script.  Don't cache a
2783     # value for MKDIR_P within a source directory, because that will
2784     # break other packages using the cache if that directory is
2785     # removed, or if the value is a relative name.
2786     MKDIR_P="$ac_install_sh -d"
2787   fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2790 $as_echo "$MKDIR_P" >&6; }
2792 mkdir_p="$MKDIR_P"
2793 case $mkdir_p in
2794   [\\/$]* | ?:[\\/]*) ;;
2795   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2796 esac
2798 for ac_prog in gawk mawk nawk awk
2800   # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_AWK+:} false; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   if test -n "$AWK"; then
2808   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815     for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_AWK="$ac_prog"
2818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822   done
2823 IFS=$as_save_IFS
2827 AWK=$ac_cv_prog_AWK
2828 if test -n "$AWK"; then
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2830 $as_echo "$AWK" >&6; }
2831 else
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2837   test -n "$AWK" && break
2838 done
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2842 set x ${MAKE-make}
2843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2845   $as_echo_n "(cached) " >&6
2846 else
2847   cat >conftest.make <<\_ACEOF
2848 SHELL = /bin/sh
2849 all:
2850         @echo '@@@%%%=$(MAKE)=@@@%%%'
2851 _ACEOF
2852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2854   *@@@%%%=?*=@@@%%%*)
2855     eval ac_cv_prog_make_${ac_make}_set=yes;;
2856   *)
2857     eval ac_cv_prog_make_${ac_make}_set=no;;
2858 esac
2859 rm -f conftest.make
2861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2864   SET_MAKE=
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868   SET_MAKE="MAKE=${MAKE-make}"
2871 rm -rf .tst 2>/dev/null
2872 mkdir .tst 2>/dev/null
2873 if test -d .tst; then
2874   am__leading_dot=.
2875 else
2876   am__leading_dot=_
2878 rmdir .tst 2>/dev/null
2880 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2881   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2882   # is not polluted with repeated "-I."
2883   am__isrc=' -I$(srcdir)'
2884   # test to see if srcdir already configured
2885   if test -f $srcdir/config.status; then
2886     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2887   fi
2890 # test whether we have cygpath
2891 if test -z "$CYGPATH_W"; then
2892   if (cygpath --version) >/dev/null 2>/dev/null; then
2893     CYGPATH_W='cygpath -w'
2894   else
2895     CYGPATH_W=echo
2896   fi
2900 # Define the identity of the package.
2901  PACKAGE=$PACKAGE
2902  VERSION=$VERSION
2905 # Some tools Automake needs.
2907 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2910 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2913 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2916 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2919 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2921 # We need awk for the "check" target.  The system "awk" is bad on
2922 # some platforms.
2923 # Always define AMTAR for backward compatibility.
2925 AMTAR=${AMTAR-"${am_missing_run}tar"}
2927 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2934 # Specify a configuration file
2935 ac_config_headers="$ac_config_headers config.h"
2938 cat >>confdefs.h <<_ACEOF
2939 @%:@define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
2940 _ACEOF
2942 cat >>confdefs.h <<_ACEOF
2943 @%:@define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
2944 _ACEOF
2946 cat >>confdefs.h <<_ACEOF
2947 @%:@define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
2948 _ACEOF
2950 cat >>confdefs.h <<_ACEOF
2951 @%:@define GLIB_INTERFACE_AGE $GLIB_INTERFACE_AGE
2952 _ACEOF
2954 cat >>confdefs.h <<_ACEOF
2955 @%:@define GLIB_BINARY_AGE $GLIB_BINARY_AGE
2956 _ACEOF
2959 case `pwd` in
2960   *\ * | *\     *)
2961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2963 esac
2967 macro_version='2.4'
2968 macro_revision='1.3293'
2970     
2971     
2972     
2975     
2976     
2977     
2982 ltmain="$ac_aux_dir/ltmain.sh"
2984 # Make sure we can run config.sub.
2985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2986   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2989 $as_echo_n "checking build system type... " >&6; }
2990 if ${ac_cv_build+:} false; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   ac_build_alias=$build_alias
2994 test "x$ac_build_alias" = x &&
2995   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2996 test "x$ac_build_alias" = x &&
2997   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2999   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3003 $as_echo "$ac_cv_build" >&6; }
3004 case $ac_cv_build in
3005 *-*-*) ;;
3006 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3007 esac
3008 build=$ac_cv_build
3009 ac_save_IFS=$IFS; IFS='-'
3010 set x $ac_cv_build
3011 shift
3012 build_cpu=$1
3013 build_vendor=$2
3014 shift; shift
3015 # Remember, the first character of IFS is used to create $*,
3016 # except with old shells:
3017 build_os=$*
3018 IFS=$ac_save_IFS
3019 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3023 $as_echo_n "checking host system type... " >&6; }
3024 if ${ac_cv_host+:} false; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if test "x$host_alias" = x; then
3028   ac_cv_host=$ac_cv_build
3029 else
3030   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3031     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3036 $as_echo "$ac_cv_host" >&6; }
3037 case $ac_cv_host in
3038 *-*-*) ;;
3039 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3040 esac
3041 host=$ac_cv_host
3042 ac_save_IFS=$IFS; IFS='-'
3043 set x $ac_cv_host
3044 shift
3045 host_cpu=$1
3046 host_vendor=$2
3047 shift; shift
3048 # Remember, the first character of IFS is used to create $*,
3049 # except with old shells:
3050 host_os=$*
3051 IFS=$ac_save_IFS
3052 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3055 # Backslashify metacharacters that are still active within
3056 # double-quoted strings.
3057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3059 # Same as above, but do not quote variable references.
3060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3062 # Sed substitution to delay expansion of an escaped shell variable in a
3063 # double_quote_subst'ed string.
3064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3066 # Sed substitution to delay expansion of an escaped single quote.
3067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3069 # Sed substitution to avoid accidental globbing in evaled expressions
3070 no_glob_subst='s/\*/\\\*/g'
3072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3077 $as_echo_n "checking how to print strings... " >&6; }
3078 # Test print first, because it will be a builtin if present.
3079 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3080    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3081   ECHO='print -r --'
3082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3083   ECHO='printf %s\n'
3084 else
3085   # Use this function as a fallback that always works.
3086   func_fallback_echo ()
3087   {
3088     eval 'cat <<_LTECHO_EOF
3090 _LTECHO_EOF'
3091   }
3092   ECHO='func_fallback_echo'
3095 # func_echo_all arg...
3096 # Invoke $ECHO with all args, space-separated.
3097 func_echo_all ()
3099     $ECHO "" 
3102 case "$ECHO" in
3103   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3104 $as_echo "printf" >&6; } ;;
3105   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3106 $as_echo "print -r" >&6; } ;;
3107   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3108 $as_echo "cat" >&6; } ;;
3109 esac
3114     
3115     
3116     
3119     
3120     
3121     
3124 DEPDIR="${am__leading_dot}deps"
3126 ac_config_commands="$ac_config_commands depfiles"
3129 am_make=${MAKE-make}
3130 cat > confinc << 'END'
3131 am__doit:
3132         @echo this is the am__doit target
3133 .PHONY: am__doit
3135 # If we don't find an include directive, just comment out the code.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3137 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3138 am__include="#"
3139 am__quote=
3140 _am_result=none
3141 # First try GNU make style include.
3142 echo "include confinc" > confmf
3143 # Ignore all kinds of additional output from `make'.
3144 case `$am_make -s -f confmf 2> /dev/null` in #(
3145 *the\ am__doit\ target*)
3146   am__include=include
3147   am__quote=
3148   _am_result=GNU
3149   ;;
3150 esac
3151 # Now try BSD make style include.
3152 if test "$am__include" = "#"; then
3153    echo '.include "confinc"' > confmf
3154    case `$am_make -s -f confmf 2> /dev/null` in #(
3155    *the\ am__doit\ target*)
3156      am__include=.include
3157      am__quote="\""
3158      _am_result=BSD
3159      ;;
3160    esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3165 $as_echo "$_am_result" >&6; }
3166 rm -f confinc confmf
3168 @%:@ Check whether --enable-dependency-tracking was given.
3169 if test "${enable_dependency_tracking+set}" = set; then :
3170   enableval=$enable_dependency_tracking; 
3173 if test "x$enable_dependency_tracking" != xno; then
3174   am_depcomp="$ac_aux_dir/depcomp"
3175   AMDEPBACKSLASH='\'
3177  if test "x$enable_dependency_tracking" != xno; then
3178   AMDEP_TRUE=
3179   AMDEP_FALSE='#'
3180 else
3181   AMDEP_TRUE='#'
3182   AMDEP_FALSE=
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 if test -n "$ac_tool_prefix"; then
3192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$CC"; then
3200   ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3230 if test -z "$ac_cv_prog_CC"; then
3231   ac_ct_CC=$CC
3232   # Extract the first word of "gcc", so it can be a program name with args.
3233 set dummy gcc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   if test -n "$ac_ct_CC"; then
3240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247     for ac_exec_ext in '' $ac_executable_extensions; do
3248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249     ac_cv_prog_ac_ct_CC="gcc"
3250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254   done
3255 IFS=$as_save_IFS
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3268   if test "x$ac_ct_CC" = x; then
3269     CC=""
3270   else
3271     case $cross_compiling:$ac_tool_warned in
3272 yes:)
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275 ac_tool_warned=yes ;;
3276 esac
3277     CC=$ac_ct_CC
3278   fi
3279 else
3280   CC="$ac_cv_prog_CC"
3283 if test -z "$CC"; then
3284           if test -n "$ac_tool_prefix"; then
3285     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   if test -n "$CC"; then
3293   ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     ac_cv_prog_CC="${ac_tool_prefix}cc"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3322   fi
3324 if test -z "$CC"; then
3325   # Extract the first word of "cc", so it can be a program name with args.
3326 set dummy cc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$CC"; then
3333   ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335   ac_prog_rejected=no
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341     for ac_exec_ext in '' $ac_executable_extensions; do
3342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3344        ac_prog_rejected=yes
3345        continue
3346      fi
3347     ac_cv_prog_CC="cc"
3348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352   done
3353 IFS=$as_save_IFS
3355 if test $ac_prog_rejected = yes; then
3356   # We found a bogon in the path, so make sure we never use it.
3357   set dummy $ac_cv_prog_CC
3358   shift
3359   if test $@%:@ != 0; then
3360     # We chose a different compiler from the bogus one.
3361     # However, it has the same basename, so the bogon will be chosen
3362     # first if we set CC to just the basename; use the full file name.
3363     shift
3364     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3365   fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3380 if test -z "$CC"; then
3381   if test -n "$ac_tool_prefix"; then
3382   for ac_prog in cl.exe
3383   do
3384     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$CC"; then
3392   ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399     for ac_exec_ext in '' $ac_executable_extensions; do
3400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406   done
3407 IFS=$as_save_IFS
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3415 else
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3421     test -n "$CC" && break
3422   done
3424 if test -z "$CC"; then
3425   ac_ct_CC=$CC
3426   for ac_prog in cl.exe
3428   # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy $ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   if test -n "$ac_ct_CC"; then
3436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443     for ac_exec_ext in '' $ac_executable_extensions; do
3444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445     ac_cv_prog_ac_ct_CC="$ac_prog"
3446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450   done
3451 IFS=$as_save_IFS
3455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458 $as_echo "$ac_ct_CC" >&6; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465   test -n "$ac_ct_CC" && break
3466 done
3468   if test "x$ac_ct_CC" = x; then
3469     CC=""
3470   else
3471     case $cross_compiling:$ac_tool_warned in
3472 yes:)
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475 ac_tool_warned=yes ;;
3476 esac
3477     CC=$ac_ct_CC
3478   fi
3484 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details" "$LINENO" 5; }
3489 # Provide some information about the compiler.
3490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3491 set X $ac_compile
3492 ac_compiler=$2
3493 for ac_option in --version -v -V -qversion; do
3494   { { ac_try="$ac_compiler $ac_option >&5"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3502   ac_status=$?
3503   if test -s conftest.err; then
3504     sed '10a\
3505 ... rest of stderr output deleted ...
3506          10q' conftest.err >conftest.er1
3507     cat conftest.er1 >&5
3508   fi
3509   rm -f conftest.er1 conftest.err
3510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }
3512 done
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3518 main ()
3521   ;
3522   return 0;
3524 _ACEOF
3525 ac_clean_files_save=$ac_clean_files
3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3527 # Try to create an executable without -o first, disregard a.out.
3528 # It will help us diagnose broken compilers, and finding out an intuition
3529 # of exeext.
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3531 $as_echo_n "checking whether the C compiler works... " >&6; }
3532 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3534 # The possible output files:
3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3537 ac_rmfiles=
3538 for ac_file in $ac_files
3540   case $ac_file in
3541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3543   esac
3544 done
3545 rm -f $ac_rmfiles
3547 if { { ac_try="$ac_link_default"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554   (eval "$ac_link_default") 2>&5
3555   ac_status=$?
3556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557   test $ac_status = 0; }; then :
3558   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3559 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3560 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3561 # so that the user can short-circuit this test for compilers unknown to
3562 # Autoconf.
3563 for ac_file in $ac_files ''
3565   test -f "$ac_file" || continue
3566   case $ac_file in
3567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3568         ;;
3569     [ab].out )
3570         # We found the default executable, but exeext='' is most
3571         # certainly right.
3572         break;;
3573     *.* )
3574         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3575         then :; else
3576            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577         fi
3578         # We set ac_cv_exeext here because the later test for it is not
3579         # safe: cross compilers may not add the suffix if given an `-o'
3580         # argument, so we may need to know it at that point already.
3581         # Even if this section looks crufty: it has the advantage of
3582         # actually working.
3583         break;;
3584     * )
3585         break;;
3586   esac
3587 done
3588 test "$ac_cv_exeext" = no && ac_cv_exeext=
3590 else
3591   ac_file=''
3593 if test -z "$ac_file"; then :
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error 77 "C compiler cannot create executables
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 else
3604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3608 $as_echo_n "checking for C compiler default output file name... " >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3610 $as_echo "$ac_file" >&6; }
3611 ac_exeext=$ac_cv_exeext
3613 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3614 ac_clean_files=$ac_clean_files_save
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3616 $as_echo_n "checking for suffix of executables... " >&6; }
3617 if { { ac_try="$ac_link"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624   (eval "$ac_link") 2>&5
3625   ac_status=$?
3626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627   test $ac_status = 0; }; then :
3628   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3629 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3630 # work properly (i.e., refer to `conftest.exe'), while it won't with
3631 # `rm'.
3632 for ac_file in conftest.exe conftest conftest.*; do
3633   test -f "$ac_file" || continue
3634   case $ac_file in
3635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637           break;;
3638     * ) break;;
3639   esac
3640 done
3641 else
3642   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3645 See \`config.log' for more details" "$LINENO" 5; }
3647 rm -f conftest conftest$ac_cv_exeext
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3649 $as_echo "$ac_cv_exeext" >&6; }
3651 rm -f conftest.$ac_ext
3652 EXEEXT=$ac_cv_exeext
3653 ac_exeext=$EXEEXT
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h.  */
3656 @%:@include <stdio.h>
3658 main ()
3660 FILE *f = fopen ("conftest.out", "w");
3661  return ferror (f) || fclose (f) != 0;
3663   ;
3664   return 0;
3666 _ACEOF
3667 ac_clean_files="$ac_clean_files conftest.out"
3668 # Check that the compiler produces executables we can run.  If not, either
3669 # the compiler is broken, or we cross compile.
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3671 $as_echo_n "checking whether we are cross compiling... " >&6; }
3672 if test "$cross_compiling" != yes; then
3673   { { ac_try="$ac_link"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680   (eval "$ac_link") 2>&5
3681   ac_status=$?
3682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683   test $ac_status = 0; }
3684   if { ac_try='./conftest$ac_cv_exeext'
3685   { { case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_try") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; }; then
3695     cross_compiling=no
3696   else
3697     if test "$cross_compiling" = maybe; then
3698         cross_compiling=yes
3699     else
3700         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "cannot run C compiled programs.
3703 If you meant to cross compile, use \`--host'.
3704 See \`config.log' for more details" "$LINENO" 5; }
3705     fi
3706   fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3709 $as_echo "$cross_compiling" >&6; }
3711 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3712 ac_clean_files=$ac_clean_files_save
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3714 $as_echo_n "checking for suffix of object files... " >&6; }
3715 if ${ac_cv_objext+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h.  */
3722 main ()
3725   ;
3726   return 0;
3728 _ACEOF
3729 rm -f conftest.o conftest.obj
3730 if { { ac_try="$ac_compile"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737   (eval "$ac_compile") 2>&5
3738   ac_status=$?
3739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740   test $ac_status = 0; }; then :
3741   for ac_file in conftest.o conftest.obj conftest.*; do
3742   test -f "$ac_file" || continue;
3743   case $ac_file in
3744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3745     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3746        break;;
3747   esac
3748 done
3749 else
3750   $as_echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of object files: cannot compile
3756 See \`config.log' for more details" "$LINENO" 5; }
3758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3761 $as_echo "$ac_cv_objext" >&6; }
3762 OBJEXT=$ac_cv_objext
3763 ac_objext=$OBJEXT
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3765 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3766 if ${ac_cv_c_compiler_gnu+:} false; then :
3767   $as_echo_n "(cached) " >&6
3768 else
3769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3773 main ()
3775 #ifndef __GNUC__
3776        choke me
3777 #endif
3779   ;
3780   return 0;
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784   ac_compiler_gnu=yes
3785 else
3786   ac_compiler_gnu=no
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3793 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3794 if test $ac_compiler_gnu = yes; then
3795   GCC=yes
3796 else
3797   GCC=
3799 ac_test_CFLAGS=${CFLAGS+set}
3800 ac_save_CFLAGS=$CFLAGS
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3802 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3803 if ${ac_cv_prog_cc_g+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   ac_save_c_werror_flag=$ac_c_werror_flag
3807    ac_c_werror_flag=yes
3808    ac_cv_prog_cc_g=no
3809    CFLAGS="-g"
3810    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3814 main ()
3817   ;
3818   return 0;
3820 _ACEOF
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822   ac_cv_prog_cc_g=yes
3823 else
3824   CFLAGS=""
3825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3829 main ()
3832   ;
3833   return 0;
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837   
3838 else
3839   ac_c_werror_flag=$ac_save_c_werror_flag
3840          CFLAGS="-g"
3841          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3845 main ()
3848   ;
3849   return 0;
3851 _ACEOF
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853   ac_cv_prog_cc_g=yes
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860    ac_c_werror_flag=$ac_save_c_werror_flag
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3863 $as_echo "$ac_cv_prog_cc_g" >&6; }
3864 if test "$ac_test_CFLAGS" = set; then
3865   CFLAGS=$ac_save_CFLAGS
3866 elif test $ac_cv_prog_cc_g = yes; then
3867   if test "$GCC" = yes; then
3868     CFLAGS="-g -O2"
3869   else
3870     CFLAGS="-g"
3871   fi
3872 else
3873   if test "$GCC" = yes; then
3874     CFLAGS="-O2"
3875   else
3876     CFLAGS=
3877   fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3880 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3881 if ${ac_cv_prog_cc_c89+:} false; then :
3882   $as_echo_n "(cached) " >&6
3883 else
3884   ac_cv_prog_cc_c89=no
3885 ac_save_CC=$CC
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888 #include <stdarg.h>
3889 #include <stdio.h>
3890 #include <sys/types.h>
3891 #include <sys/stat.h>
3892 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3893 struct buf { int x; };
3894 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3895 static char *e (p, i)
3896      char **p;
3897      int i;
3899   return p[i];
3901 static char *f (char * (*g) (char **, int), char **p, ...)
3903   char *s;
3904   va_list v;
3905   va_start (v,p);
3906   s = g (p, va_arg (v,int));
3907   va_end (v);
3908   return s;
3911 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3912    function prototypes and stuff, but not '\xHH' hex character constants.
3913    These don't provoke an error unfortunately, instead are silently treated
3914    as 'x'.  The following induces an error, until -std is added to get
3915    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3916    array size at least.  It's necessary to write '\x00'==0 to get something
3917    that's true only with -std.  */
3918 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3920 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3921    inside strings and character constants.  */
3922 #define FOO(x) 'x'
3923 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3925 int test (int i, double x);
3926 struct s1 {int (*f) (int a);};
3927 struct s2 {int (*f) (double a);};
3928 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3929 int argc;
3930 char **argv;
3932 main ()
3934 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3935   ;
3936   return 0;
3938 _ACEOF
3939 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3940         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3942   CC="$ac_save_CC $ac_arg"
3943   if ac_fn_c_try_compile "$LINENO"; then :
3944   ac_cv_prog_cc_c89=$ac_arg
3946 rm -f core conftest.err conftest.$ac_objext
3947   test "x$ac_cv_prog_cc_c89" != "xno" && break
3948 done
3949 rm -f conftest.$ac_ext
3950 CC=$ac_save_CC
3953 # AC_CACHE_VAL
3954 case "x$ac_cv_prog_cc_c89" in
3955   x)
3956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3957 $as_echo "none needed" >&6; } ;;
3958   xno)
3959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3960 $as_echo "unsupported" >&6; } ;;
3961   *)
3962     CC="$CC $ac_cv_prog_cc_c89"
3963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3964 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3965 esac
3966 if test "x$ac_cv_prog_cc_c89" != xno; then :
3967   
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 depcc="$CC"   am_compiler_list=
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3979 $as_echo_n "checking dependency style of $depcc... " >&6; }
3980 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3984   # We make a subdir and do the tests there.  Otherwise we can end up
3985   # making bogus files that we don't know about and never remove.  For
3986   # instance it was reported that on HP-UX the gcc test will end up
3987   # making a dummy file named `D' -- because `-MD' means `put the output
3988   # in D'.
3989   mkdir conftest.dir
3990   # Copy depcomp to subdir because otherwise we won't find it if we're
3991   # using a relative directory.
3992   cp "$am_depcomp" conftest.dir
3993   cd conftest.dir
3994   # We will build objects and dependencies in a subdirectory because
3995   # it helps to detect inapplicable dependency modes.  For instance
3996   # both Tru64's cc and ICC support -MD to output dependencies as a
3997   # side effect of compilation, but ICC will put the dependencies in
3998   # the current directory while Tru64 will put them in the object
3999   # directory.
4000   mkdir sub
4002   am_cv_CC_dependencies_compiler_type=none
4003   if test "$am_compiler_list" = ""; then
4004      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4005   fi
4006   am__universal=false
4007   case " $depcc " in #(
4008      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4009      esac
4011   for depmode in $am_compiler_list; do
4012     # Setup a source with many dependencies, because some compilers
4013     # like to wrap large dependency lists on column 80 (with \), and
4014     # we should not choose a depcomp mode which is confused by this.
4015     #
4016     # We need to recreate these files for each test, as the compiler may
4017     # overwrite some of them when testing with obscure command lines.
4018     # This happens at least with the AIX C compiler.
4019     : > sub/conftest.c
4020     for i in 1 2 3 4 5 6; do
4021       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4022       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4023       # Solaris 8's {/usr,}/bin/sh.
4024       touch sub/conftst$i.h
4025     done
4026     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4028     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4029     # mode.  It turns out that the SunPro C++ compiler does not properly
4030     # handle `-M -o', and we need to detect this.  Also, some Intel
4031     # versions had trouble with output in subdirs
4032     am__obj=sub/conftest.${OBJEXT-o}
4033     am__minus_obj="-o $am__obj"
4034     case $depmode in
4035     gcc)
4036       # This depmode causes a compiler race in universal mode.
4037       test "$am__universal" = false || continue
4038       ;;
4039     nosideeffect)
4040       # after this tag, mechanisms are not by side-effect, so they'll
4041       # only be used when explicitly requested
4042       if test "x$enable_dependency_tracking" = xyes; then
4043         continue
4044       else
4045         break
4046       fi
4047       ;;
4048     msvisualcpp | msvcmsys)
4049       # This compiler won't grok `-c -o', but also, the minuso test has
4050       # not run yet.  These depmodes are late enough in the game, and
4051       # so weak that their functioning should not be impacted.
4052       am__obj=conftest.${OBJEXT-o}
4053       am__minus_obj=
4054       ;;
4055     none) break ;;
4056     esac
4057     if depmode=$depmode \
4058        source=sub/conftest.c object=$am__obj \
4059        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4060        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4061          >/dev/null 2>conftest.err &&
4062        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4063        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4064        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4065        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4066       # icc doesn't choke on unknown options, it will just issue warnings
4067       # or remarks (even with -Werror).  So we grep stderr for any message
4068       # that says an option was ignored or not supported.
4069       # When given -MP, icc 7.0 and 7.1 complain thusly:
4070       #   icc: Command line warning: ignoring option '-M'; no argument required
4071       # The diagnosis changed in icc 8.0:
4072       #   icc: Command line remark: option '-MP' not supported
4073       if (grep 'ignoring option' conftest.err ||
4074           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4075         am_cv_CC_dependencies_compiler_type=$depmode
4076         break
4077       fi
4078     fi
4079   done
4081   cd ..
4082   rm -rf conftest.dir
4083 else
4084   am_cv_CC_dependencies_compiler_type=none
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4092  if 
4093   test "x$enable_dependency_tracking" != xno \
4094   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4095   am__fastdepCC_TRUE=
4096   am__fastdepCC_FALSE='#'
4097 else
4098   am__fastdepCC_TRUE='#'
4099   am__fastdepCC_FALSE=
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4104 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4105 if ${ac_cv_path_SED+:} false; then :
4106   $as_echo_n "(cached) " >&6
4107 else
4108             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4109      for ac_i in 1 2 3 4 5 6 7; do
4110        ac_script="$ac_script$as_nl$ac_script"
4111      done
4112      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4113      { ac_script=; unset ac_script;}
4114      if test -z "$SED"; then
4115   ac_path_SED_found=false
4116   # Loop through the user's path and test for each of PROGNAME-LIST
4117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4120   IFS=$as_save_IFS
4121   test -z "$as_dir" && as_dir=.
4122     for ac_prog in sed gsed; do
4123     for ac_exec_ext in '' $ac_executable_extensions; do
4124       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4125       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4126 # Check for GNU ac_path_SED and select it if it is found.
4127   # Check for GNU $ac_path_SED
4128 case `"$ac_path_SED" --version 2>&1` in
4129 *GNU*)
4130   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4132   ac_count=0
4133   $as_echo_n 0123456789 >"conftest.in"
4134   while :
4135   do
4136     cat "conftest.in" "conftest.in" >"conftest.tmp"
4137     mv "conftest.tmp" "conftest.in"
4138     cp "conftest.in" "conftest.nl"
4139     $as_echo '' >> "conftest.nl"
4140     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142     as_fn_arith $ac_count + 1 && ac_count=$as_val
4143     if test $ac_count -gt ${ac_path_SED_max-0}; then
4144       # Best one so far, save it but keep looking for a better one
4145       ac_cv_path_SED="$ac_path_SED"
4146       ac_path_SED_max=$ac_count
4147     fi
4148     # 10*(2^10) chars as input seems more than enough
4149     test $ac_count -gt 10 && break
4150   done
4151   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4154       $ac_path_SED_found && break 3
4155     done
4156   done
4157   done
4158 IFS=$as_save_IFS
4159   if test -z "$ac_cv_path_SED"; then
4160     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4161   fi
4162 else
4163   ac_cv_path_SED=$SED
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4168 $as_echo "$ac_cv_path_SED" >&6; }
4169  SED="$ac_cv_path_SED"
4170   rm -f conftest.sed
4172 test -z "$SED" && SED=sed
4173 Xsed="$SED -e 1s/^X//"
4175     
4176     
4177     
4180     
4181     
4182     
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4186 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4187 if ${ac_cv_path_GREP+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -z "$GREP"; then
4191   ac_path_GREP_found=false
4192   # Loop through the user's path and test for each of PROGNAME-LIST
4193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_prog in grep ggrep; do
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4201       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4202 # Check for GNU ac_path_GREP and select it if it is found.
4203   # Check for GNU $ac_path_GREP
4204 case `"$ac_path_GREP" --version 2>&1` in
4205 *GNU*)
4206   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4208   ac_count=0
4209   $as_echo_n 0123456789 >"conftest.in"
4210   while :
4211   do
4212     cat "conftest.in" "conftest.in" >"conftest.tmp"
4213     mv "conftest.tmp" "conftest.in"
4214     cp "conftest.in" "conftest.nl"
4215     $as_echo 'GREP' >> "conftest.nl"
4216     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218     as_fn_arith $ac_count + 1 && ac_count=$as_val
4219     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4220       # Best one so far, save it but keep looking for a better one
4221       ac_cv_path_GREP="$ac_path_GREP"
4222       ac_path_GREP_max=$ac_count
4223     fi
4224     # 10*(2^10) chars as input seems more than enough
4225     test $ac_count -gt 10 && break
4226   done
4227   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228 esac
4230       $ac_path_GREP_found && break 3
4231     done
4232   done
4233   done
4234 IFS=$as_save_IFS
4235   if test -z "$ac_cv_path_GREP"; then
4236     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237   fi
4238 else
4239   ac_cv_path_GREP=$GREP
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4244 $as_echo "$ac_cv_path_GREP" >&6; }
4245  GREP="$ac_cv_path_GREP"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4249 $as_echo_n "checking for egrep... " >&6; }
4250 if ${ac_cv_path_EGREP+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4254    then ac_cv_path_EGREP="$GREP -E"
4255    else
4256      if test -z "$EGREP"; then
4257   ac_path_EGREP_found=false
4258   # Loop through the user's path and test for each of PROGNAME-LIST
4259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264     for ac_prog in egrep; do
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4267       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4268 # Check for GNU ac_path_EGREP and select it if it is found.
4269   # Check for GNU $ac_path_EGREP
4270 case `"$ac_path_EGREP" --version 2>&1` in
4271 *GNU*)
4272   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4274   ac_count=0
4275   $as_echo_n 0123456789 >"conftest.in"
4276   while :
4277   do
4278     cat "conftest.in" "conftest.in" >"conftest.tmp"
4279     mv "conftest.tmp" "conftest.in"
4280     cp "conftest.in" "conftest.nl"
4281     $as_echo 'EGREP' >> "conftest.nl"
4282     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284     as_fn_arith $ac_count + 1 && ac_count=$as_val
4285     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4286       # Best one so far, save it but keep looking for a better one
4287       ac_cv_path_EGREP="$ac_path_EGREP"
4288       ac_path_EGREP_max=$ac_count
4289     fi
4290     # 10*(2^10) chars as input seems more than enough
4291     test $ac_count -gt 10 && break
4292   done
4293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4296       $ac_path_EGREP_found && break 3
4297     done
4298   done
4299   done
4300 IFS=$as_save_IFS
4301   if test -z "$ac_cv_path_EGREP"; then
4302     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303   fi
4304 else
4305   ac_cv_path_EGREP=$EGREP
4308    fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4311 $as_echo "$ac_cv_path_EGREP" >&6; }
4312  EGREP="$ac_cv_path_EGREP"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4316 $as_echo_n "checking for fgrep... " >&6; }
4317 if ${ac_cv_path_FGREP+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4321    then ac_cv_path_FGREP="$GREP -F"
4322    else
4323      if test -z "$FGREP"; then
4324   ac_path_FGREP_found=false
4325   # Loop through the user's path and test for each of PROGNAME-LIST
4326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_prog in fgrep; do
4332     for ac_exec_ext in '' $ac_executable_extensions; do
4333       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4334       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4335 # Check for GNU ac_path_FGREP and select it if it is found.
4336   # Check for GNU $ac_path_FGREP
4337 case `"$ac_path_FGREP" --version 2>&1` in
4338 *GNU*)
4339   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4341   ac_count=0
4342   $as_echo_n 0123456789 >"conftest.in"
4343   while :
4344   do
4345     cat "conftest.in" "conftest.in" >"conftest.tmp"
4346     mv "conftest.tmp" "conftest.in"
4347     cp "conftest.in" "conftest.nl"
4348     $as_echo 'FGREP' >> "conftest.nl"
4349     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351     as_fn_arith $ac_count + 1 && ac_count=$as_val
4352     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4353       # Best one so far, save it but keep looking for a better one
4354       ac_cv_path_FGREP="$ac_path_FGREP"
4355       ac_path_FGREP_max=$ac_count
4356     fi
4357     # 10*(2^10) chars as input seems more than enough
4358     test $ac_count -gt 10 && break
4359   done
4360   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4363       $ac_path_FGREP_found && break 3
4364     done
4365   done
4366   done
4367 IFS=$as_save_IFS
4368   if test -z "$ac_cv_path_FGREP"; then
4369     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4370   fi
4371 else
4372   ac_cv_path_FGREP=$FGREP
4375    fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4378 $as_echo "$ac_cv_path_FGREP" >&6; }
4379  FGREP="$ac_cv_path_FGREP"
4382 test -z "$GREP" && GREP=grep
4384     
4385     
4386     
4389     
4390     
4391     
4394     
4395     
4396     
4402 @%:@ Check whether --with-gnu-ld was given.
4403 if test "${with_gnu_ld+set}" = set; then :
4404   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4405 else
4406   with_gnu_ld=no
4409 ac_prog=ld
4410 if test "$GCC" = yes; then
4411   # Check if gcc -print-prog-name=ld gives a path.
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4413 $as_echo_n "checking for ld used by $CC... " >&6; }
4414   case $host in
4415   *-*-mingw*)
4416     # gcc leaves a trailing carriage return which upsets mingw
4417     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4418   *)
4419     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4420   esac
4421   case $ac_prog in
4422     # Accept absolute paths.
4423     [\\/]* | ?:[\\/]*)
4424       re_direlt='/[^/][^/]*/\.\./'
4425       # Canonicalize the pathname of ld
4426       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4427       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4428         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4429       done
4430       test -z "$LD" && LD="$ac_prog"
4431       ;;
4432   "")
4433     # If it fails, then pretend we aren't using GCC.
4434     ac_prog=ld
4435     ;;
4436   *)
4437     # If it is relative, then search for the first ld in PATH.
4438     with_gnu_ld=unknown
4439     ;;
4440   esac
4441 elif test "$with_gnu_ld" = yes; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4443 $as_echo_n "checking for GNU ld... " >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4446 $as_echo_n "checking for non-GNU ld... " >&6; }
4448 if ${lt_cv_path_LD+:} false; then :
4449   $as_echo_n "(cached) " >&6
4450 else
4451   if test -z "$LD"; then
4452   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453   for ac_dir in $PATH; do
4454     IFS="$lt_save_ifs"
4455     test -z "$ac_dir" && ac_dir=.
4456     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4457       lt_cv_path_LD="$ac_dir/$ac_prog"
4458       # Check to see if the program is GNU ld.  I'd rather use --version,
4459       # but apparently some variants of GNU ld only accept -v.
4460       # Break only if it was the GNU/non-GNU ld that we prefer.
4461       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4462       *GNU* | *'with BFD'*)
4463         test "$with_gnu_ld" != no && break
4464         ;;
4465       *)
4466         test "$with_gnu_ld" != yes && break
4467         ;;
4468       esac
4469     fi
4470   done
4471   IFS="$lt_save_ifs"
4472 else
4473   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4477 LD="$lt_cv_path_LD"
4478 if test -n "$LD"; then
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4480 $as_echo "$LD" >&6; }
4481 else
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4485 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4487 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4488 if ${lt_cv_prog_gnu_ld+:} false; then :
4489   $as_echo_n "(cached) " >&6
4490 else
4491   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4492 case `$LD -v 2>&1 </dev/null` in
4493 *GNU* | *'with BFD'*)
4494   lt_cv_prog_gnu_ld=yes
4495   ;;
4497   lt_cv_prog_gnu_ld=no
4498   ;;
4499 esac
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4502 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4503 with_gnu_ld=$lt_cv_prog_gnu_ld
4508     
4509     
4510     
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4514 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4515 if ${lt_cv_path_NM+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if test -n "$NM"; then
4519   # Let the user override the test.
4520   lt_cv_path_NM="$NM"
4521 else
4522   lt_nm_to_check="${ac_tool_prefix}nm"
4523   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4524     lt_nm_to_check="$lt_nm_to_check nm"
4525   fi
4526   for lt_tmp_nm in $lt_nm_to_check; do
4527     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4528     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4529       IFS="$lt_save_ifs"
4530       test -z "$ac_dir" && ac_dir=.
4531       tmp_nm="$ac_dir/$lt_tmp_nm"
4532       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4533         # Check to see if the nm accepts a BSD-compat flag.
4534         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4535         #   nm: unknown option "B" ignored
4536         # Tru64's nm complains that /dev/null is an invalid object file
4537         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4538         */dev/null* | *'Invalid file or object type'*)
4539           lt_cv_path_NM="$tmp_nm -B"
4540           break
4541           ;;
4542         *)
4543           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4544           */dev/null*)
4545             lt_cv_path_NM="$tmp_nm -p"
4546             break
4547             ;;
4548           *)
4549             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4550             continue # so that we can try to find one that supports BSD flags
4551             ;;
4552           esac
4553           ;;
4554         esac
4555       fi
4556     done
4557     IFS="$lt_save_ifs"
4558   done
4559   : ${lt_cv_path_NM=no}
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4563 $as_echo "$lt_cv_path_NM" >&6; }
4564 if test "$lt_cv_path_NM" != "no"; then
4565   NM="$lt_cv_path_NM"
4566 else
4567   # Didn't find any BSD compatible name lister, look for dumpbin.
4568   if test -n "$DUMPBIN"; then :
4569     # Let the user override the test.
4570   else
4571     if test -n "$ac_tool_prefix"; then
4572   for ac_prog in dumpbin "link -dump"
4573   do
4574     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_DUMPBIN+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   if test -n "$DUMPBIN"; then
4582   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589     for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596   done
4597 IFS=$as_save_IFS
4601 DUMPBIN=$ac_cv_prog_DUMPBIN
4602 if test -n "$DUMPBIN"; then
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4604 $as_echo "$DUMPBIN" >&6; }
4605 else
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611     test -n "$DUMPBIN" && break
4612   done
4614 if test -z "$DUMPBIN"; then
4615   ac_ct_DUMPBIN=$DUMPBIN
4616   for ac_prog in dumpbin "link -dump"
4618   # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if test -n "$ac_ct_DUMPBIN"; then
4626   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640   done
4641 IFS=$as_save_IFS
4645 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4646 if test -n "$ac_ct_DUMPBIN"; then
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4648 $as_echo "$ac_ct_DUMPBIN" >&6; }
4649 else
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4655   test -n "$ac_ct_DUMPBIN" && break
4656 done
4658   if test "x$ac_ct_DUMPBIN" = x; then
4659     DUMPBIN=":"
4660   else
4661     case $cross_compiling:$ac_tool_warned in
4662 yes:)
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4665 ac_tool_warned=yes ;;
4666 esac
4667     DUMPBIN=$ac_ct_DUMPBIN
4668   fi
4671     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4672     *COFF*)
4673       DUMPBIN="$DUMPBIN -symbols"
4674       ;;
4675     *)
4676       DUMPBIN=:
4677       ;;
4678     esac
4679   fi
4680   
4681   if test "$DUMPBIN" != ":"; then
4682     NM="$DUMPBIN"
4683   fi
4685 test -z "$NM" && NM=nm
4688     
4689     
4690     
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4693 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4694 if ${lt_cv_nm_interface+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   lt_cv_nm_interface="BSD nm"
4698   echo "int some_variable = 0;" > conftest.$ac_ext
4699   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4700   (eval "$ac_compile" 2>conftest.err)
4701   cat conftest.err >&5
4702   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4703   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4704   cat conftest.err >&5
4705   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4706   cat conftest.out >&5
4707   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4708     lt_cv_nm_interface="MS dumpbin"
4709   fi
4710   rm -f conftest*
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4713 $as_echo "$lt_cv_nm_interface" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4716 $as_echo_n "checking whether ln -s works... " >&6; }
4717 LN_S=$as_ln_s
4718 if test "$LN_S" = "ln -s"; then
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4720 $as_echo "yes" >&6; }
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4723 $as_echo "no, using $LN_S" >&6; }
4726 # find the maximum length of command line arguments
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4728 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4729 if ${lt_cv_sys_max_cmd_len+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732     i=0
4733   teststring="ABCD"
4735   case $build_os in
4736   msdosdjgpp*)
4737     # On DJGPP, this test can blow up pretty badly due to problems in libc
4738     # (any single argument exceeding 2000 bytes causes a buffer overrun
4739     # during glob expansion).  Even if it were fixed, the result of this
4740     # check would be larger than it should be.
4741     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4742     ;;
4744   gnu*)
4745     # Under GNU Hurd, this test is not required because there is
4746     # no limit to the length of command line arguments.
4747     # Libtool will interpret -1 as no limit whatsoever
4748     lt_cv_sys_max_cmd_len=-1;
4749     ;;
4751   cygwin* | mingw* | cegcc*)
4752     # On Win9x/ME, this test blows up -- it succeeds, but takes
4753     # about 5 minutes as the teststring grows exponentially.
4754     # Worse, since 9x/ME are not pre-emptively multitasking,
4755     # you end up with a "frozen" computer, even though with patience
4756     # the test eventually succeeds (with a max line length of 256k).
4757     # Instead, let's just punt: use the minimum linelength reported by
4758     # all of the supported platforms: 8192 (on NT/2K/XP).
4759     lt_cv_sys_max_cmd_len=8192;
4760     ;;
4762   mint*)
4763     # On MiNT this can take a long time and run out of memory.
4764     lt_cv_sys_max_cmd_len=8192;
4765     ;;
4767   amigaos*)
4768     # On AmigaOS with pdksh, this test takes hours, literally.
4769     # So we just punt and use a minimum line length of 8192.
4770     lt_cv_sys_max_cmd_len=8192;
4771     ;;
4773   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4774     # This has been around since 386BSD, at least.  Likely further.
4775     if test -x /sbin/sysctl; then
4776       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4777     elif test -x /usr/sbin/sysctl; then
4778       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4779     else
4780       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4781     fi
4782     # And add a safety zone
4783     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4785     ;;
4787   interix*)
4788     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4789     lt_cv_sys_max_cmd_len=196608
4790     ;;
4792   osf*)
4793     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4794     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4795     # nice to cause kernel panics so lets avoid the loop below.
4796     # First set a reasonable default.
4797     lt_cv_sys_max_cmd_len=16384
4798     #
4799     if test -x /sbin/sysconfig; then
4800       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4801         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4802       esac
4803     fi
4804     ;;
4805   sco3.2v5*)
4806     lt_cv_sys_max_cmd_len=102400
4807     ;;
4808   sysv5* | sco5v6* | sysv4.2uw2*)
4809     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4810     if test -n "$kargmax"; then
4811       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4812     else
4813       lt_cv_sys_max_cmd_len=32768
4814     fi
4815     ;;
4816   *)
4817     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4818     if test -n "$lt_cv_sys_max_cmd_len"; then
4819       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4820       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4821     else
4822       # Make teststring a little bigger before we do anything with it.
4823       # a 1K string should be a reasonable start.
4824       for i in 1 2 3 4 5 6 7 8 ; do
4825         teststring=$teststring$teststring
4826       done
4827       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4828       # If test is not a shell built-in, we'll probably end up computing a
4829       # maximum length that is only half of the actual maximum length, but
4830       # we can't tell.
4831       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4832                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4833               test $i != 17 # 1/2 MB should be enough
4834       do
4835         i=`expr $i + 1`
4836         teststring=$teststring$teststring
4837       done
4838       # Only check the string length outside the loop.
4839       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4840       teststring=
4841       # Add a significant safety factor because C++ compilers can tack on
4842       # massive amounts of additional arguments before passing them to the
4843       # linker.  It appears as though 1/2 is a usable value.
4844       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4845     fi
4846     ;;
4847   esac
4851 if test -n $lt_cv_sys_max_cmd_len ; then
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4853 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4854 else
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4856 $as_echo "none" >&6; }
4858 max_cmd_len=$lt_cv_sys_max_cmd_len
4860     
4861     
4862     
4865 : ${CP="cp -f"}
4866 : ${MV="mv -f"}
4867 : ${RM="rm -f"}
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4870 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4871 # Try some XSI features
4872 xsi_shell=no
4873 ( _lt_dummy="a/b/c"
4874   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4875       = c,a/b,b/c, \
4876     && eval 'test $(( 1 + 1 )) -eq 2 \
4877     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4878   && xsi_shell=yes
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4880 $as_echo "$xsi_shell" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4884 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4885 lt_shell_append=no
4886 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4887     >/dev/null 2>&1 \
4888   && lt_shell_append=yes
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4890 $as_echo "$lt_shell_append" >&6; }
4893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4894   lt_unset=unset
4895 else
4896   lt_unset=false
4899     
4900     
4901     
4903 # test EBCDIC or ASCII
4904 case `echo X|tr X '\101'` in
4905  A) # ASCII based system
4906     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4907   lt_SP2NL='tr \040 \012'
4908   lt_NL2SP='tr \015\012 \040\040'
4909   ;;
4910  *) # EBCDIC based system
4911   lt_SP2NL='tr \100 \n'
4912   lt_NL2SP='tr \r\n \100\100'
4913   ;;
4914 esac
4916     
4917     
4918     
4920     
4921     
4922     
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4925 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4926 if ${lt_cv_to_host_file_cmd+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   case $host in
4930   *-*-mingw* )
4931     case $build in
4932       *-*-mingw* ) # actually msys
4933         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4934         ;;
4935       *-*-cygwin* )
4936         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4937         ;;
4938       * ) # otherwise, assume *nix
4939         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4940         ;;
4941     esac
4942     ;;
4943   *-*-cygwin* )
4944     case $build in
4945       *-*-mingw* ) # actually msys
4946         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4947         ;;
4948       *-*-cygwin* )
4949         lt_cv_to_host_file_cmd=func_convert_file_noop
4950         ;;
4951       * ) # otherwise, assume *nix
4952         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4953         ;;
4954     esac
4955     ;;
4956   * ) # unhandled hosts (and "normal" native builds)
4957     lt_cv_to_host_file_cmd=func_convert_file_noop
4958     ;;
4959 esac
4963 to_host_file_cmd=$lt_cv_to_host_file_cmd
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4965 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4967     
4968     
4969     
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4972 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4973 if ${lt_cv_to_tool_file_cmd+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   #assume ordinary cross tools, or native build.
4977 lt_cv_to_tool_file_cmd=func_convert_file_noop
4978 case $host in
4979   *-*-mingw* )
4980     case $build in
4981       *-*-mingw* ) # actually msys
4982         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4983         ;;
4984     esac
4985     ;;
4986 esac
4990 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4992 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4994     
4995     
4996     
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4999 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5000 if ${lt_cv_ld_reload_flag+:} false; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003   lt_cv_ld_reload_flag='-r'
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5006 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5007 reload_flag=$lt_cv_ld_reload_flag
5008 case $reload_flag in
5009 "" | " "*) ;;
5010 *) reload_flag=" $reload_flag" ;;
5011 esac
5012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5013 case $host_os in
5014   cygwin* | mingw* | pw32* | cegcc*)
5015     if test "$GCC" != yes; then
5016       reload_cmds=false
5017     fi
5018     ;;
5019   darwin*)
5020     if test "$GCC" = yes; then
5021       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5022     else
5023       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5024     fi
5025     ;;
5026 esac
5028     
5029     
5030     
5032     
5033     
5034     
5036 if test -n "$ac_tool_prefix"; then
5037   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5038 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_OBJDUMP+:} false; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   if test -n "$OBJDUMP"; then
5045   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052     for ac_exec_ext in '' $ac_executable_extensions; do
5053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059   done
5060 IFS=$as_save_IFS
5064 OBJDUMP=$ac_cv_prog_OBJDUMP
5065 if test -n "$OBJDUMP"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5067 $as_echo "$OBJDUMP" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5075 if test -z "$ac_cv_prog_OBJDUMP"; then
5076   ac_ct_OBJDUMP=$OBJDUMP
5077   # Extract the first word of "objdump", so it can be a program name with args.
5078 set dummy objdump; 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 ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   if test -n "$ac_ct_OBJDUMP"; then
5085   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
5095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096     break 2
5097   fi
5098 done
5099   done
5100 IFS=$as_save_IFS
5104 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5105 if test -n "$ac_ct_OBJDUMP"; then
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5107 $as_echo "$ac_ct_OBJDUMP" >&6; }
5108 else
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5113   if test "x$ac_ct_OBJDUMP" = x; then
5114     OBJDUMP="false"
5115   else
5116     case $cross_compiling:$ac_tool_warned in
5117 yes:)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5120 ac_tool_warned=yes ;;
5121 esac
5122     OBJDUMP=$ac_ct_OBJDUMP
5123   fi
5124 else
5125   OBJDUMP="$ac_cv_prog_OBJDUMP"
5128 test -z "$OBJDUMP" && OBJDUMP=objdump
5130     
5131     
5132     
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5139 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5140 if ${lt_cv_deplibs_check_method+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   lt_cv_file_magic_cmd='$MAGIC_CMD'
5144 lt_cv_file_magic_test_file=
5145 lt_cv_deplibs_check_method='unknown'
5146 # Need to set the preceding variable on all platforms that support
5147 # interlibrary dependencies.
5148 # 'none' -- dependencies not supported.
5149 # `unknown' -- same as none, but documents that we really don't know.
5150 # 'pass_all' -- all dependencies passed with no checks.
5151 # 'test_compile' -- check by making test program.
5152 # 'file_magic [[regex]]' -- check by looking for files in library path
5153 # which responds to the $file_magic_cmd with a given extended regex.
5154 # If you have `file' or equivalent on your system and you're not sure
5155 # whether `pass_all' will *always* work, you probably want this one.
5157 case $host_os in
5158 aix[4-9]*)
5159   lt_cv_deplibs_check_method=pass_all
5160   ;;
5162 beos*)
5163   lt_cv_deplibs_check_method=pass_all
5164   ;;
5166 bsdi[45]*)
5167   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5168   lt_cv_file_magic_cmd='/usr/bin/file -L'
5169   lt_cv_file_magic_test_file=/shlib/libc.so
5170   ;;
5172 cygwin*)
5173   # func_win32_libid is a shell function defined in ltmain.sh
5174   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5175   lt_cv_file_magic_cmd='func_win32_libid'
5176   ;;
5178 mingw* | pw32*)
5179   # Base MSYS/MinGW do not provide the 'file' command needed by
5180   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5181   # unless we find 'file', for example because we are cross-compiling.
5182   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5183   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5184     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5185     lt_cv_file_magic_cmd='func_win32_libid'
5186   else
5187     # Keep this pattern in sync with the one in func_win32_libid.
5188     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5189     lt_cv_file_magic_cmd='$OBJDUMP -f'
5190   fi
5191   ;;
5193 cegcc*)
5194   # use the weaker test based on 'objdump'. See mingw*.
5195   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5196   lt_cv_file_magic_cmd='$OBJDUMP -f'
5197   ;;
5199 darwin* | rhapsody*)
5200   lt_cv_deplibs_check_method=pass_all
5201   ;;
5203 freebsd* | dragonfly*)
5204   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5205     case $host_cpu in
5206     i*86 )
5207       # Not sure whether the presence of OpenBSD here was a mistake.
5208       # Let's accept both of them until this is cleared up.
5209       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5210       lt_cv_file_magic_cmd=/usr/bin/file
5211       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212       ;;
5213     esac
5214   else
5215     lt_cv_deplibs_check_method=pass_all
5216   fi
5217   ;;
5219 gnu*)
5220   lt_cv_deplibs_check_method=pass_all
5221   ;;
5223 haiku*)
5224   lt_cv_deplibs_check_method=pass_all
5225   ;;
5227 hpux10.20* | hpux11*)
5228   lt_cv_file_magic_cmd=/usr/bin/file
5229   case $host_cpu in
5230   ia64*)
5231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5233     ;;
5234   hppa*64*)
5235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5236     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5237     ;;
5238   *)
5239     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5240     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5241     ;;
5242   esac
5243   ;;
5245 interix[3-9]*)
5246   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5248   ;;
5250 irix5* | irix6* | nonstopux*)
5251   case $LD in
5252   *-32|*"-32 ") libmagic=32-bit;;
5253   *-n32|*"-n32 ") libmagic=N32;;
5254   *-64|*"-64 ") libmagic=64-bit;;
5255   *) libmagic=never-match;;
5256   esac
5257   lt_cv_deplibs_check_method=pass_all
5258   ;;
5260 # This must be Linux ELF.
5261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5265 netbsd*)
5266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268   else
5269     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270   fi
5271   ;;
5273 newos6*)
5274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275   lt_cv_file_magic_cmd=/usr/bin/file
5276   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5277   ;;
5279 *nto* | *qnx*)
5280   lt_cv_deplibs_check_method=pass_all
5281   ;;
5283 openbsd*)
5284   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5286   else
5287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288   fi
5289   ;;
5291 osf3* | osf4* | osf5*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5295 rdos*)
5296   lt_cv_deplibs_check_method=pass_all
5297   ;;
5299 solaris*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5307 sysv4 | sysv4.3*)
5308   case $host_vendor in
5309   motorola)
5310     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]'
5311     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5312     ;;
5313   ncr)
5314     lt_cv_deplibs_check_method=pass_all
5315     ;;
5316   sequent)
5317     lt_cv_file_magic_cmd='/bin/file'
5318     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5319     ;;
5320   sni)
5321     lt_cv_file_magic_cmd='/bin/file'
5322     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5323     lt_cv_file_magic_test_file=/lib/libc.so
5324     ;;
5325   siemens)
5326     lt_cv_deplibs_check_method=pass_all
5327     ;;
5328   pc)
5329     lt_cv_deplibs_check_method=pass_all
5330     ;;
5331   esac
5332   ;;
5334 tpf*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337 esac
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5343 file_magic_glob=
5344 want_nocaseglob=no
5345 if test "$build" = "$host"; then
5346   case $host_os in
5347   mingw* | pw32*)
5348     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5349       want_nocaseglob=yes
5350     else
5351       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5352     fi
5353     ;;
5354   esac
5357 file_magic_cmd=$lt_cv_file_magic_cmd
5358 deplibs_check_method=$lt_cv_deplibs_check_method
5359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5362     
5363     
5364     
5367     
5368     
5369     
5372     
5373     
5374     
5377     
5378     
5379     
5382 if test -n "$ac_tool_prefix"; then
5383   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5384 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_DLLTOOL+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   if test -n "$DLLTOOL"; then
5391   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405   done
5406 IFS=$as_save_IFS
5410 DLLTOOL=$ac_cv_prog_DLLTOOL
5411 if test -n "$DLLTOOL"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5413 $as_echo "$DLLTOOL" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5421 if test -z "$ac_cv_prog_DLLTOOL"; then
5422   ac_ct_DLLTOOL=$DLLTOOL
5423   # Extract the first word of "dlltool", so it can be a program name with args.
5424 set dummy dlltool; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   if test -n "$ac_ct_DLLTOOL"; then
5431   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438     for ac_exec_ext in '' $ac_executable_extensions; do
5439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445   done
5446 IFS=$as_save_IFS
5450 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5451 if test -n "$ac_ct_DLLTOOL"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5453 $as_echo "$ac_ct_DLLTOOL" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5459   if test "x$ac_ct_DLLTOOL" = x; then
5460     DLLTOOL="false"
5461   else
5462     case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468     DLLTOOL=$ac_ct_DLLTOOL
5469   fi
5470 else
5471   DLLTOOL="$ac_cv_prog_DLLTOOL"
5474 test -z "$DLLTOOL" && DLLTOOL=dlltool
5476     
5477     
5478     
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5486 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5487 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   lt_cv_sharedlib_from_linklib_cmd='unknown'
5492 case $host_os in
5493 cygwin* | mingw* | pw32* | cegcc*)
5494   # two different shell functions defined in ltmain.sh
5495   # decide which to use based on capabilities of $DLLTOOL
5496   case `$DLLTOOL --help 2>&1` in
5497   *--identify-strict*)
5498     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5499     ;;
5500   *)
5501     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5502     ;;
5503   esac
5504   ;;
5506   # fallback: assume linklib IS sharedlib
5507   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5508   ;;
5509 esac
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5513 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5514 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5515 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5518     
5519     
5520     
5524 if test -n "$ac_tool_prefix"; then
5525   for ac_prog in ar
5526   do
5527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_AR+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   if test -n "$AR"; then
5535   ac_cv_prog_AR="$AR" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5554 AR=$ac_cv_prog_AR
5555 if test -n "$AR"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5557 $as_echo "$AR" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564     test -n "$AR" && break
5565   done
5567 if test -z "$AR"; then
5568   ac_ct_AR=$AR
5569   for ac_prog in ar
5571   # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   if test -n "$ac_ct_AR"; then
5579   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588     ac_cv_prog_ac_ct_AR="$ac_prog"
5589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593   done
5594 IFS=$as_save_IFS
5598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5599 if test -n "$ac_ct_AR"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5601 $as_echo "$ac_ct_AR" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5608   test -n "$ac_ct_AR" && break
5609 done
5611   if test "x$ac_ct_AR" = x; then
5612     AR="false"
5613   else
5614     case $cross_compiling:$ac_tool_warned in
5615 yes:)
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5619 esac
5620     AR=$ac_ct_AR
5621   fi
5624 : ${AR=ar}
5625 : ${AR_FLAGS=cru}
5627     
5628     
5629     
5632     
5633     
5634     
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5638 $as_echo_n "checking for archiver @FILE support... " >&6; }
5639 if ${lt_cv_ar_at_file+:} false; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   lt_cv_ar_at_file=no
5643    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h.  */
5647 main ()
5650   ;
5651   return 0;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655   echo conftest.$ac_objext > conftest.lst
5656       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5657       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5658   (eval $lt_ar_try) 2>&5
5659   ac_status=$?
5660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661   test $ac_status = 0; }
5662       if test "$ac_status" -eq 0; then
5663         # Ensure the archiver fails upon bogus file names.
5664         rm -f conftest.$ac_objext libconftest.a
5665         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5666   (eval $lt_ar_try) 2>&5
5667   ac_status=$?
5668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669   test $ac_status = 0; }
5670         if test "$ac_status" -ne 0; then
5671           lt_cv_ar_at_file=@
5672         fi
5673       fi
5674       rm -f conftest.* libconftest.a
5675      
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678   
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5681 $as_echo "$lt_cv_ar_at_file" >&6; }
5683 if test "x$lt_cv_ar_at_file" = xno; then
5684   archiver_list_spec=
5685 else
5686   archiver_list_spec=$lt_cv_ar_at_file
5689     
5690     
5691     
5695 if test -n "$ac_tool_prefix"; then
5696   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}strip; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_STRIP+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   if test -n "$STRIP"; then
5704   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711     for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718   done
5719 IFS=$as_save_IFS
5723 STRIP=$ac_cv_prog_STRIP
5724 if test -n "$STRIP"; then
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5726 $as_echo "$STRIP" >&6; }
5727 else
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5734 if test -z "$ac_cv_prog_STRIP"; then
5735   ac_ct_STRIP=$STRIP
5736   # Extract the first word of "strip", so it can be a program name with args.
5737 set dummy strip; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   if test -n "$ac_ct_STRIP"; then
5744   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751     for ac_exec_ext in '' $ac_executable_extensions; do
5752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753     ac_cv_prog_ac_ct_STRIP="strip"
5754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758   done
5759 IFS=$as_save_IFS
5763 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5764 if test -n "$ac_ct_STRIP"; then
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5766 $as_echo "$ac_ct_STRIP" >&6; }
5767 else
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5772   if test "x$ac_ct_STRIP" = x; then
5773     STRIP=":"
5774   else
5775     case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781     STRIP=$ac_ct_STRIP
5782   fi
5783 else
5784   STRIP="$ac_cv_prog_STRIP"
5787 test -z "$STRIP" && STRIP=:
5789     
5790     
5791     
5794 if test -n "$ac_tool_prefix"; then
5795   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_RANLIB+:} false; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   if test -n "$RANLIB"; then
5803   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5822 RANLIB=$ac_cv_prog_RANLIB
5823 if test -n "$RANLIB"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5825 $as_echo "$RANLIB" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 if test -z "$ac_cv_prog_RANLIB"; then
5834   ac_ct_RANLIB=$RANLIB
5835   # Extract the first word of "ranlib", so it can be a program name with args.
5836 set dummy ranlib; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   if test -n "$ac_ct_RANLIB"; then
5843   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_prog_ac_ct_RANLIB="ranlib"
5853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857   done
5858 IFS=$as_save_IFS
5862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5863 if test -n "$ac_ct_RANLIB"; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5865 $as_echo "$ac_ct_RANLIB" >&6; }
5866 else
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5871   if test "x$ac_ct_RANLIB" = x; then
5872     RANLIB=":"
5873   else
5874     case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880     RANLIB=$ac_ct_RANLIB
5881   fi
5882 else
5883   RANLIB="$ac_cv_prog_RANLIB"
5886 test -z "$RANLIB" && RANLIB=:
5888     
5889     
5890     
5893 # Determine commands to create old-style static archives.
5894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5895 old_postinstall_cmds='chmod 644 $oldlib'
5896 old_postuninstall_cmds=
5898 if test -n "$RANLIB"; then
5899   case $host_os in
5900   openbsd*)
5901     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5902     ;;
5903   *)
5904     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5905     ;;
5906   esac
5907   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5910 case $host_os in
5911   darwin*)
5912     lock_old_archive_extraction=yes ;;
5913   *)
5914     lock_old_archive_extraction=no ;;
5915 esac
5917     
5918     
5919     
5922     
5923     
5924     
5927     
5928     
5929     
5932     
5933     
5934     
5939     
5940     
5941     
5943     
5944     
5945     
5947     
5948     
5949     
5951     
5952     
5953     
5955 # If no C compiler was specified, use CC.
5956 LTCC=${LTCC-"$CC"}
5958 # If no C compiler flags were specified, use CFLAGS.
5959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961 # Allow CC to be a program name with arguments.
5962 compiler=$CC
5965 # Check for command to grab the raw symbol name followed by C symbol from nm.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5967 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5968 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   
5972 # These are sane defaults that work on at least a few old systems.
5973 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5975 # Character class describing NM global symbol codes.
5976 symcode='[BCDEGRST]'
5978 # Regexp to match symbols that can be accessed directly from C.
5979 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5981 # Define system-specific variables.
5982 case $host_os in
5983 aix*)
5984   symcode='[BCDT]'
5985   ;;
5986 cygwin* | mingw* | pw32* | cegcc*)
5987   symcode='[ABCDGISTW]'
5988   ;;
5989 hpux*)
5990   if test "$host_cpu" = ia64; then
5991     symcode='[ABCDEGRST]'
5992   fi
5993   ;;
5994 irix* | nonstopux*)
5995   symcode='[BCDEGRST]'
5996   ;;
5997 osf*)
5998   symcode='[BCDEGQRST]'
5999   ;;
6000 solaris*)
6001   symcode='[BDRT]'
6002   ;;
6003 sco3.2v5*)
6004   symcode='[DT]'
6005   ;;
6006 sysv4.2uw2*)
6007   symcode='[DT]'
6008   ;;
6009 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6010   symcode='[ABDT]'
6011   ;;
6012 sysv4)
6013   symcode='[DFNSTU]'
6014   ;;
6015 esac
6017 # If we're using GNU nm, then use its standard symbol codes.
6018 case `$NM -V 2>&1` in
6019 *GNU* | *'with BFD'*)
6020   symcode='[ABCDGIRSTW]' ;;
6021 esac
6023 # Transform an extracted symbol line into a proper C declaration.
6024 # Some systems (esp. on ia64) link data and code symbols differently,
6025 # so use this general approach.
6026 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6028 # Transform an extracted symbol line into symbol name and symbol address
6029 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6030 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'"
6032 # Handle CRLF in mingw tool chain
6033 opt_cr=
6034 case $build_os in
6035 mingw*)
6036   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6037   ;;
6038 esac
6040 # Try without a prefix underscore, then with it.
6041 for ac_symprfx in "" "_"; do
6043   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6044   symxfrm="\\1 $ac_symprfx\\2 \\2"
6046   # Write the raw and C identifiers.
6047   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6048     # Fake it for dumpbin and say T for any non-static function
6049     # and D for any global variable.
6050     # Also find C++ and __fastcall symbols from MSVC++,
6051     # which start with @ or ?.
6052     lt_cv_sys_global_symbol_pipe="$AWK '"\
6053 "     {last_section=section; section=\$ 3};"\
6054 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6055 "     \$ 0!~/External *\|/{next};"\
6056 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6057 "     {if(hide[section]) next};"\
6058 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6059 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6060 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6061 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6062 "     ' prfx=^$ac_symprfx"
6063   else
6064     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6065   fi
6066   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6068   # Check to see that the pipe works correctly.
6069   pipe_works=no
6071   rm -f conftest*
6072   cat > conftest.$ac_ext <<_LT_EOF
6073 #ifdef __cplusplus
6074 extern "C" {
6075 #endif
6076 char nm_test_var;
6077 void nm_test_func(void);
6078 void nm_test_func(void){}
6079 #ifdef __cplusplus
6081 #endif
6082 int main(){nm_test_var='a';nm_test_func();return(0);}
6083 _LT_EOF
6085   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086   (eval $ac_compile) 2>&5
6087   ac_status=$?
6088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089   test $ac_status = 0; }; then
6090     # Now try to grab the symbols.
6091     nlist=conftest.nm
6092     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6093   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6094   ac_status=$?
6095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096   test $ac_status = 0; } && test -s "$nlist"; then
6097       # Try sorting and uniquifying the output.
6098       if sort "$nlist" | uniq > "$nlist"T; then
6099         mv -f "$nlist"T "$nlist"
6100       else
6101         rm -f "$nlist"T
6102       fi
6104       # Make sure that we snagged all the symbols we need.
6105       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6106         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6107           cat <<_LT_EOF > conftest.$ac_ext
6108 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6109 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6110 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6111    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6112 # define LT@&t@_DLSYM_CONST
6113 #elif defined(__osf__)
6114 /* This system does not cope well with relocations in const data.  */
6115 # define LT@&t@_DLSYM_CONST
6116 #else
6117 # define LT@&t@_DLSYM_CONST const
6118 #endif
6120 #ifdef __cplusplus
6121 extern "C" {
6122 #endif
6124 _LT_EOF
6125           # Now generate the symbol file.
6126           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6128           cat <<_LT_EOF >> conftest.$ac_ext
6130 /* The mapping between symbol names and symbols.  */
6131 LT@&t@_DLSYM_CONST struct {
6132   const char *name;
6133   void       *address;
6135 lt__PROGRAM__LTX_preloaded_symbols[] =
6137   { "@PROGRAM@", (void *) 0 },
6138 _LT_EOF
6139           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6140           cat <<\_LT_EOF >> conftest.$ac_ext
6141   {0, (void *) 0}
6144 /* This works around a problem in FreeBSD linker */
6145 #ifdef FREEBSD_WORKAROUND
6146 static const void *lt_preloaded_setup() {
6147   return lt__PROGRAM__LTX_preloaded_symbols;
6149 #endif
6151 #ifdef __cplusplus
6153 #endif
6154 _LT_EOF
6155           # Now try linking the two files.
6156           mv conftest.$ac_objext conftstm.$ac_objext
6157           lt_globsym_save_LIBS=$LIBS
6158           lt_globsym_save_CFLAGS=$CFLAGS
6159           LIBS="conftstm.$ac_objext"
6160           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6161           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6166             pipe_works=yes
6167           fi
6168           LIBS=$lt_globsym_save_LIBS
6169           CFLAGS=$lt_globsym_save_CFLAGS
6170         else
6171           echo "cannot find nm_test_func in $nlist" >&5
6172         fi
6173       else
6174         echo "cannot find nm_test_var in $nlist" >&5
6175       fi
6176     else
6177       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6178     fi
6179   else
6180     echo "$progname: failed program was:" >&5
6181     cat conftest.$ac_ext >&5
6182   fi
6183   rm -rf conftest* conftst*
6185   # Do not use the global_symbol_pipe unless it works.
6186   if test "$pipe_works" = yes; then
6187     break
6188   else
6189     lt_cv_sys_global_symbol_pipe=
6190   fi
6191 done
6195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6196   lt_cv_sys_global_symbol_to_cdecl=
6198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6200 $as_echo "failed" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6203 $as_echo "ok" >&6; }
6206 # Response file support.
6207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6208   nm_file_list_spec='@'
6209 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6210   nm_file_list_spec='@'
6214     
6215     
6216     
6219     
6220     
6221     
6224     
6225     
6226     
6229     
6230     
6231     
6234     
6235     
6236     
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6240 $as_echo_n "checking for sysroot... " >&6; }
6242 @%:@ Check whether --with-sysroot was given.
6243 if test "${with_sysroot+set}" = set; then :
6244   withval=$with_sysroot; 
6245 else
6246   with_sysroot=no
6250 lt_sysroot=
6251 case ${with_sysroot} in #(
6252  yes)
6253    if test "$GCC" = yes; then
6254      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6255    fi
6256    ;; #(
6257  /*)
6258    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6259    ;; #(
6260  no|'')
6261    ;; #(
6262  *)
6263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6264 $as_echo "${with_sysroot}" >&6; }
6265    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6266    ;;
6267 esac
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6270 $as_echo "${lt_sysroot:-no}" >&6; }
6272     
6273     
6274     
6276 @%:@ Check whether --enable-libtool-lock was given.
6277 if test "${enable_libtool_lock+set}" = set; then :
6278   enableval=$enable_libtool_lock; 
6281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6283 # Some flags need to be propagated to the compiler or linker for good
6284 # libtool support.
6285 case $host in
6286 ia64-*-hpux*)
6287   # Find out which ABI we are using.
6288   echo 'int i;' > conftest.$ac_ext
6289   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6290   (eval $ac_compile) 2>&5
6291   ac_status=$?
6292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293   test $ac_status = 0; }; then
6294     case `/usr/bin/file conftest.$ac_objext` in
6295       *ELF-32*)
6296         HPUX_IA64_MODE="32"
6297         ;;
6298       *ELF-64*)
6299         HPUX_IA64_MODE="64"
6300         ;;
6301     esac
6302   fi
6303   rm -rf conftest*
6304   ;;
6305 *-*-irix6*)
6306   # Find out which ABI we are using.
6307   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6309   (eval $ac_compile) 2>&5
6310   ac_status=$?
6311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312   test $ac_status = 0; }; then
6313     if test "$lt_cv_prog_gnu_ld" = yes; then
6314       case `/usr/bin/file conftest.$ac_objext` in
6315         *32-bit*)
6316           LD="${LD-ld} -melf32bsmip"
6317           ;;
6318         *N32*)
6319           LD="${LD-ld} -melf32bmipn32"
6320           ;;
6321         *64-bit*)
6322           LD="${LD-ld} -melf64bmip"
6323         ;;
6324       esac
6325     else
6326       case `/usr/bin/file conftest.$ac_objext` in
6327         *32-bit*)
6328           LD="${LD-ld} -32"
6329           ;;
6330         *N32*)
6331           LD="${LD-ld} -n32"
6332           ;;
6333         *64-bit*)
6334           LD="${LD-ld} -64"
6335           ;;
6336       esac
6337     fi
6338   fi
6339   rm -rf conftest*
6340   ;;
6342 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6343 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6344   # Find out which ABI we are using.
6345   echo 'int i;' > conftest.$ac_ext
6346   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347   (eval $ac_compile) 2>&5
6348   ac_status=$?
6349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350   test $ac_status = 0; }; then
6351     case `/usr/bin/file conftest.o` in
6352       *32-bit*)
6353         case $host in
6354           x86_64-*kfreebsd*-gnu)
6355             LD="${LD-ld} -m elf_i386_fbsd"
6356             ;;
6357           x86_64-*linux*)
6358             LD="${LD-ld} -m elf_i386"
6359             ;;
6360           ppc64-*linux*|powerpc64-*linux*)
6361             LD="${LD-ld} -m elf32ppclinux"
6362             ;;
6363           s390x-*linux*)
6364             LD="${LD-ld} -m elf_s390"
6365             ;;
6366           sparc64-*linux*)
6367             LD="${LD-ld} -m elf32_sparc"
6368             ;;
6369         esac
6370         ;;
6371       *64-bit*)
6372         case $host in
6373           x86_64-*kfreebsd*-gnu)
6374             LD="${LD-ld} -m elf_x86_64_fbsd"
6375             ;;
6376           x86_64-*linux*)
6377             LD="${LD-ld} -m elf_x86_64"
6378             ;;
6379           ppc*-*linux*|powerpc*-*linux*)
6380             LD="${LD-ld} -m elf64ppc"
6381             ;;
6382           s390*-*linux*|s390*-*tpf*)
6383             LD="${LD-ld} -m elf64_s390"
6384             ;;
6385           sparc*-*linux*)
6386             LD="${LD-ld} -m elf64_sparc"
6387             ;;
6388         esac
6389         ;;
6390     esac
6391   fi
6392   rm -rf conftest*
6393   ;;
6395 *-*-sco3.2v5*)
6396   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6397   SAVE_CFLAGS="$CFLAGS"
6398   CFLAGS="$CFLAGS -belf"
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6400 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6401 if ${lt_cv_cc_needs_belf+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   ac_ext=c
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h.  */
6414 main ()
6417   ;
6418   return 0;
6420 _ACEOF
6421 if ac_fn_c_try_link "$LINENO"; then :
6422   lt_cv_cc_needs_belf=yes
6423 else
6424   lt_cv_cc_needs_belf=no
6426 rm -f core conftest.err conftest.$ac_objext \
6427     conftest$ac_exeext conftest.$ac_ext
6428      ac_ext=c
6429 ac_cpp='$CPP $CPPFLAGS'
6430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6436 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6437   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6438     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6439     CFLAGS="$SAVE_CFLAGS"
6440   fi
6441   ;;
6442 sparc*-*solaris*)
6443   # Find out which ABI we are using.
6444   echo 'int i;' > conftest.$ac_ext
6445   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446   (eval $ac_compile) 2>&5
6447   ac_status=$?
6448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449   test $ac_status = 0; }; then
6450     case `/usr/bin/file conftest.o` in
6451     *64-bit*)
6452       case $lt_cv_prog_gnu_ld in
6453       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6454       *)
6455         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6456           LD="${LD-ld} -64"
6457         fi
6458         ;;
6459       esac
6460       ;;
6461     esac
6462   fi
6463   rm -rf conftest*
6464   ;;
6465 esac
6467 need_locks="$enable_libtool_lock"
6469 if test -n "$ac_tool_prefix"; then
6470   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}mt; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$MANIFEST_TOOL"; then
6478   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6497 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6498 if test -n "$MANIFEST_TOOL"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6500 $as_echo "$MANIFEST_TOOL" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6509   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6510   # Extract the first word of "mt", so it can be a program name with args.
6511 set dummy mt; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$ac_ct_MANIFEST_TOOL"; then
6518   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6537 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6538 if test -n "$ac_ct_MANIFEST_TOOL"; then
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6540 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6541 else
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6546   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6547     MANIFEST_TOOL=":"
6548   else
6549     case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6556   fi
6557 else
6558   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6561 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6563 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6564 if ${lt_cv_path_mainfest_tool+:} false; then :
6565   $as_echo_n "(cached) " >&6
6566 else
6567   lt_cv_path_mainfest_tool=no
6568   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6569   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6570   cat conftest.err >&5
6571   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6572     lt_cv_path_mainfest_tool=yes
6573   fi
6574   rm -f conftest*
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6577 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6578 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6579   MANIFEST_TOOL=:
6582     
6583     
6584     
6587   case $host_os in
6588     rhapsody* | darwin*)
6589     if test -n "$ac_tool_prefix"; then
6590   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$DSYMUTIL"; then
6598   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605     for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612   done
6613 IFS=$as_save_IFS
6617 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6618 if test -n "$DSYMUTIL"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6620 $as_echo "$DSYMUTIL" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6628 if test -z "$ac_cv_prog_DSYMUTIL"; then
6629   ac_ct_DSYMUTIL=$DSYMUTIL
6630   # Extract the first word of "dsymutil", so it can be a program name with args.
6631 set dummy dsymutil; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   if test -n "$ac_ct_DSYMUTIL"; then
6638   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645     for ac_exec_ext in '' $ac_executable_extensions; do
6646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652   done
6653 IFS=$as_save_IFS
6657 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6658 if test -n "$ac_ct_DSYMUTIL"; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6660 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6666   if test "x$ac_ct_DSYMUTIL" = x; then
6667     DSYMUTIL=":"
6668   else
6669     case $cross_compiling:$ac_tool_warned in
6670 yes:)
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673 ac_tool_warned=yes ;;
6674 esac
6675     DSYMUTIL=$ac_ct_DSYMUTIL
6676   fi
6677 else
6678   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6681     if test -n "$ac_tool_prefix"; then
6682   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_NMEDIT+:} false; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   if test -n "$NMEDIT"; then
6690   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697     for ac_exec_ext in '' $ac_executable_extensions; do
6698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704   done
6705 IFS=$as_save_IFS
6709 NMEDIT=$ac_cv_prog_NMEDIT
6710 if test -n "$NMEDIT"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6712 $as_echo "$NMEDIT" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6720 if test -z "$ac_cv_prog_NMEDIT"; then
6721   ac_ct_NMEDIT=$NMEDIT
6722   # Extract the first word of "nmedit", so it can be a program name with args.
6723 set dummy nmedit; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   if test -n "$ac_ct_NMEDIT"; then
6730   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735   IFS=$as_save_IFS
6736   test -z "$as_dir" && as_dir=.
6737     for ac_exec_ext in '' $ac_executable_extensions; do
6738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741     break 2
6742   fi
6743 done
6744   done
6745 IFS=$as_save_IFS
6749 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6750 if test -n "$ac_ct_NMEDIT"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6752 $as_echo "$ac_ct_NMEDIT" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6758   if test "x$ac_ct_NMEDIT" = x; then
6759     NMEDIT=":"
6760   else
6761     case $cross_compiling:$ac_tool_warned in
6762 yes:)
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767     NMEDIT=$ac_ct_NMEDIT
6768   fi
6769 else
6770   NMEDIT="$ac_cv_prog_NMEDIT"
6773     if test -n "$ac_tool_prefix"; then
6774   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_LIPO+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$LIPO"; then
6782   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6801 LIPO=$ac_cv_prog_LIPO
6802 if test -n "$LIPO"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6804 $as_echo "$LIPO" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6812 if test -z "$ac_cv_prog_LIPO"; then
6813   ac_ct_LIPO=$LIPO
6814   # Extract the first word of "lipo", so it can be a program name with args.
6815 set dummy lipo; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$ac_ct_LIPO"; then
6822   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_ac_ct_LIPO="lipo"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6841 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6842 if test -n "$ac_ct_LIPO"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6844 $as_echo "$ac_ct_LIPO" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6850   if test "x$ac_ct_LIPO" = x; then
6851     LIPO=":"
6852   else
6853     case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859     LIPO=$ac_ct_LIPO
6860   fi
6861 else
6862   LIPO="$ac_cv_prog_LIPO"
6865     if test -n "$ac_tool_prefix"; then
6866   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}otool; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_OTOOL+:} false; then :
6871   $as_echo_n "(cached) " >&6
6872 else
6873   if test -n "$OTOOL"; then
6874   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888   done
6889 IFS=$as_save_IFS
6893 OTOOL=$ac_cv_prog_OTOOL
6894 if test -n "$OTOOL"; then
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6896 $as_echo "$OTOOL" >&6; }
6897 else
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6904 if test -z "$ac_cv_prog_OTOOL"; then
6905   ac_ct_OTOOL=$OTOOL
6906   # Extract the first word of "otool", so it can be a program name with args.
6907 set dummy otool; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   if test -n "$ac_ct_OTOOL"; then
6914   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921     for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_prog_ac_ct_OTOOL="otool"
6924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928   done
6929 IFS=$as_save_IFS
6933 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6934 if test -n "$ac_ct_OTOOL"; then
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6936 $as_echo "$ac_ct_OTOOL" >&6; }
6937 else
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6942   if test "x$ac_ct_OTOOL" = x; then
6943     OTOOL=":"
6944   else
6945     case $cross_compiling:$ac_tool_warned in
6946 yes:)
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951     OTOOL=$ac_ct_OTOOL
6952   fi
6953 else
6954   OTOOL="$ac_cv_prog_OTOOL"
6957     if test -n "$ac_tool_prefix"; then
6958   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_OTOOL64+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   if test -n "$OTOOL64"; then
6966   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973     for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980   done
6981 IFS=$as_save_IFS
6985 OTOOL64=$ac_cv_prog_OTOOL64
6986 if test -n "$OTOOL64"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6988 $as_echo "$OTOOL64" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6996 if test -z "$ac_cv_prog_OTOOL64"; then
6997   ac_ct_OTOOL64=$OTOOL64
6998   # Extract the first word of "otool64", so it can be a program name with args.
6999 set dummy otool64; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   if test -n "$ac_ct_OTOOL64"; then
7006   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_prog_ac_ct_OTOOL64="otool64"
7016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020   done
7021 IFS=$as_save_IFS
7025 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7026 if test -n "$ac_ct_OTOOL64"; then
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7028 $as_echo "$ac_ct_OTOOL64" >&6; }
7029 else
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7034   if test "x$ac_ct_OTOOL64" = x; then
7035     OTOOL64=":"
7036   else
7037     case $cross_compiling:$ac_tool_warned in
7038 yes:)
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7041 ac_tool_warned=yes ;;
7042 esac
7043     OTOOL64=$ac_ct_OTOOL64
7044   fi
7045 else
7046   OTOOL64="$ac_cv_prog_OTOOL64"
7049     
7050     
7051     
7052     
7054     
7055     
7056     
7057     
7059     
7060     
7061     
7062     
7064     
7065     
7066     
7067     
7069     
7070     
7071     
7072     
7075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7076 $as_echo_n "checking for -single_module linker flag... " >&6; }
7077 if ${lt_cv_apple_cc_single_mod+:} false; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   lt_cv_apple_cc_single_mod=no
7081       if test -z "${LT_MULTI_MODULE}"; then
7082         # By default we will add the -single_module flag. You can override
7083         # by either setting the environment variable LT_MULTI_MODULE
7084         # non-empty at configure time, or by adding -multi_module to the
7085         # link flags.
7086         rm -rf libconftest.dylib*
7087         echo "int foo(void){return 1;}" > conftest.c
7088         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7089 -dynamiclib -Wl,-single_module conftest.c" >&5
7090         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7091           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7092         _lt_result=$?
7093         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7094           lt_cv_apple_cc_single_mod=yes
7095         else
7096           cat conftest.err >&5
7097         fi
7098         rm -rf libconftest.dylib*
7099         rm -f conftest.*
7100       fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7103 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7105 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7106 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7107   $as_echo_n "(cached) " >&6
7108 else
7109   lt_cv_ld_exported_symbols_list=no
7110       save_LDFLAGS=$LDFLAGS
7111       echo "_main" > conftest.sym
7112       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h.  */
7117 main ()
7120   ;
7121   return 0;
7123 _ACEOF
7124 if ac_fn_c_try_link "$LINENO"; then :
7125   lt_cv_ld_exported_symbols_list=yes
7126 else
7127   lt_cv_ld_exported_symbols_list=no
7129 rm -f core conftest.err conftest.$ac_objext \
7130     conftest$ac_exeext conftest.$ac_ext
7131         LDFLAGS="$save_LDFLAGS"
7132     
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7135 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7137 $as_echo_n "checking for -force_load linker flag... " >&6; }
7138 if ${lt_cv_ld_force_load+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   lt_cv_ld_force_load=no
7142       cat > conftest.c << _LT_EOF
7143 int forced_loaded() { return 2;}
7144 _LT_EOF
7145       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7146       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7147       echo "$AR cru libconftest.a conftest.o" >&5
7148       $AR cru libconftest.a conftest.o 2>&5
7149       echo "$RANLIB libconftest.a" >&5
7150       $RANLIB libconftest.a 2>&5
7151       cat > conftest.c << _LT_EOF
7152 int main() { return 0;}
7153 _LT_EOF
7154       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7155       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7156       _lt_result=$?
7157       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7158         lt_cv_ld_force_load=yes
7159       else
7160         cat conftest.err >&5
7161       fi
7162         rm -f conftest.err libconftest.a conftest conftest.c
7163         rm -rf conftest.dSYM
7164     
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7167 $as_echo "$lt_cv_ld_force_load" >&6; }
7168     case $host_os in
7169     rhapsody* | darwin1.[012])
7170       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7171     darwin1.*)
7172       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7173     darwin*) # darwin 5.x on
7174       # if running on 10.5 or later, the deployment target defaults
7175       # to the OS version, if on x86, and 10.4, the deployment
7176       # target defaults to 10.4. Don't you love it?
7177       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7178         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7179           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7180         10.[012]*)
7181           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7182         10.*)
7183           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7184       esac
7185     ;;
7186   esac
7187     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7188       _lt_dar_single_mod='$single_module'
7189     fi
7190     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7191       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7192     else
7193       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7194     fi
7195     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7196       _lt_dsymutil='~$DSYMUTIL $lib || :'
7197     else
7198       _lt_dsymutil=
7199     fi
7200     ;;
7201   esac
7203 ac_ext=c
7204 ac_cpp='$CPP $CPPFLAGS'
7205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7209 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7210 # On Suns, sometimes $CPP names a directory.
7211 if test -n "$CPP" && test -d "$CPP"; then
7212   CPP=
7214 if test -z "$CPP"; then
7215   if ${ac_cv_prog_CPP+:} false; then :
7216   $as_echo_n "(cached) " >&6
7217 else
7218       # Double quotes because CPP needs to be expanded
7219     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7220     do
7221       ac_preproc_ok=false
7222 for ac_c_preproc_warn_flag in '' yes
7224   # Use a header file that comes with gcc, so configuring glibc
7225   # with a fresh cross-compiler works.
7226   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227   # <limits.h> exists even on freestanding compilers.
7228   # On the NeXT, cc -E runs the code through the compiler's parser,
7229   # not just through cpp. "Syntax error" is here to catch this case.
7230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h.  */
7232 @%:@ifdef __STDC__
7233 @%:@ include <limits.h>
7234 @%:@else
7235 @%:@ include <assert.h>
7236 @%:@endif
7237                      Syntax error
7238 _ACEOF
7239 if ac_fn_c_try_cpp "$LINENO"; then :
7240   
7241 else
7242   # Broken: fails on valid input.
7243 continue
7245 rm -f conftest.err conftest.i conftest.$ac_ext
7247   # OK, works on sane cases.  Now check whether nonexistent headers
7248   # can be detected and how.
7249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h.  */
7251 @%:@include <ac_nonexistent.h>
7252 _ACEOF
7253 if ac_fn_c_try_cpp "$LINENO"; then :
7254   # Broken: success on invalid input.
7255 continue
7256 else
7257   # Passes both tests.
7258 ac_preproc_ok=:
7259 break
7261 rm -f conftest.err conftest.i conftest.$ac_ext
7263 done
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.i conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then :
7267   break
7270     done
7271     ac_cv_prog_CPP=$CPP
7272   
7274   CPP=$ac_cv_prog_CPP
7275 else
7276   ac_cv_prog_CPP=$CPP
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7279 $as_echo "$CPP" >&6; }
7280 ac_preproc_ok=false
7281 for ac_c_preproc_warn_flag in '' yes
7283   # Use a header file that comes with gcc, so configuring glibc
7284   # with a fresh cross-compiler works.
7285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7286   # <limits.h> exists even on freestanding compilers.
7287   # On the NeXT, cc -E runs the code through the compiler's parser,
7288   # not just through cpp. "Syntax error" is here to catch this case.
7289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h.  */
7291 @%:@ifdef __STDC__
7292 @%:@ include <limits.h>
7293 @%:@else
7294 @%:@ include <assert.h>
7295 @%:@endif
7296                      Syntax error
7297 _ACEOF
7298 if ac_fn_c_try_cpp "$LINENO"; then :
7299   
7300 else
7301   # Broken: fails on valid input.
7302 continue
7304 rm -f conftest.err conftest.i conftest.$ac_ext
7306   # OK, works on sane cases.  Now check whether nonexistent headers
7307   # can be detected and how.
7308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h.  */
7310 @%:@include <ac_nonexistent.h>
7311 _ACEOF
7312 if ac_fn_c_try_cpp "$LINENO"; then :
7313   # Broken: success on invalid input.
7314 continue
7315 else
7316   # Passes both tests.
7317 ac_preproc_ok=:
7318 break
7320 rm -f conftest.err conftest.i conftest.$ac_ext
7322 done
7323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7324 rm -f conftest.i conftest.err conftest.$ac_ext
7325 if $ac_preproc_ok; then :
7326   
7327 else
7328   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7330 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7331 See \`config.log' for more details" "$LINENO" 5; }
7334 ac_ext=c
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7342 $as_echo_n "checking for ANSI C header files... " >&6; }
7343 if ${ac_cv_header_stdc+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h.  */
7348 #include <stdlib.h>
7349 #include <stdarg.h>
7350 #include <string.h>
7351 #include <float.h>
7354 main ()
7357   ;
7358   return 0;
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362   ac_cv_header_stdc=yes
7363 else
7364   ac_cv_header_stdc=no
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 if test $ac_cv_header_stdc = yes; then
7369   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h.  */
7372 #include <string.h>
7374 _ACEOF
7375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7376   $EGREP "memchr" >/dev/null 2>&1; then :
7377   
7378 else
7379   ac_cv_header_stdc=no
7381 rm -f conftest*
7385 if test $ac_cv_header_stdc = yes; then
7386   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h.  */
7389 #include <stdlib.h>
7391 _ACEOF
7392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7393   $EGREP "free" >/dev/null 2>&1; then :
7394   
7395 else
7396   ac_cv_header_stdc=no
7398 rm -f conftest*
7402 if test $ac_cv_header_stdc = yes; then
7403   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7404   if test "$cross_compiling" = yes; then :
7405   :
7406 else
7407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h.  */
7409 #include <ctype.h>
7410 #include <stdlib.h>
7411 #if ((' ' & 0x0FF) == 0x020)
7412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7414 #else
7415 # define ISLOWER(c) \
7416                    (('a' <= (c) && (c) <= 'i') \
7417                      || ('j' <= (c) && (c) <= 'r') \
7418                      || ('s' <= (c) && (c) <= 'z'))
7419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7420 #endif
7422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7424 main ()
7426   int i;
7427   for (i = 0; i < 256; i++)
7428     if (XOR (islower (i), ISLOWER (i))
7429         || toupper (i) != TOUPPER (i))
7430       return 2;
7431   return 0;
7433 _ACEOF
7434 if ac_fn_c_try_run "$LINENO"; then :
7435   
7436 else
7437   ac_cv_header_stdc=no
7439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7440   conftest.$ac_objext conftest.beam conftest.$ac_ext
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7446 $as_echo "$ac_cv_header_stdc" >&6; }
7447 if test $ac_cv_header_stdc = yes; then
7448   
7449 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7455                   inttypes.h stdint.h unistd.h
7456 do :
7457   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7461   cat >>confdefs.h <<_ACEOF
7462 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7463 _ACEOF
7467 done
7470 for ac_header in dlfcn.h
7471 do :
7472   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7474 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7475   cat >>confdefs.h <<_ACEOF
7476 @%:@define HAVE_DLFCN_H 1
7477 _ACEOF
7481 done
7487 # Set options
7491         enable_dlopen=no
7492   
7494   enable_win32_dll=no
7495   
7497             @%:@ Check whether --enable-shared was given.
7498 if test "${enable_shared+set}" = set; then :
7499   enableval=$enable_shared; p=${PACKAGE-default}
7500     case $enableval in
7501     yes) enable_shared=yes ;;
7502     no) enable_shared=no ;;
7503     *)
7504       enable_shared=no
7505       # Look at the argument we got.  We use all the common list separators.
7506       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507       for pkg in $enableval; do
7508         IFS="$lt_save_ifs"
7509         if test "X$pkg" = "X$p"; then
7510           enable_shared=yes
7511         fi
7512       done
7513       IFS="$lt_save_ifs"
7514       ;;
7515     esac
7516 else
7517   enable_shared=yes
7521     
7522     
7523     
7524     
7528   @%:@ Check whether --enable-static was given.
7529 if test "${enable_static+set}" = set; then :
7530   enableval=$enable_static; p=${PACKAGE-default}
7531     case $enableval in
7532     yes) enable_static=yes ;;
7533     no) enable_static=no ;;
7534     *)
7535      enable_static=no
7536       # Look at the argument we got.  We use all the common list separators.
7537       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7538       for pkg in $enableval; do
7539         IFS="$lt_save_ifs"
7540         if test "X$pkg" = "X$p"; then
7541           enable_static=yes
7542         fi
7543       done
7544       IFS="$lt_save_ifs"
7545       ;;
7546     esac
7547 else
7548   enable_static=yes
7552     
7553     
7554     
7555     
7559   
7560 @%:@ Check whether --with-pic was given.
7561 if test "${with_pic+set}" = set; then :
7562   withval=$with_pic; pic_mode="$withval"
7563 else
7564   pic_mode=default
7568 test -z "$pic_mode" && pic_mode=default
7571     
7572     
7573     
7576   @%:@ Check whether --enable-fast-install was given.
7577 if test "${enable_fast_install+set}" = set; then :
7578   enableval=$enable_fast_install; p=${PACKAGE-default}
7579     case $enableval in
7580     yes) enable_fast_install=yes ;;
7581     no) enable_fast_install=no ;;
7582     *)
7583       enable_fast_install=no
7584       # Look at the argument we got.  We use all the common list separators.
7585       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7586       for pkg in $enableval; do
7587         IFS="$lt_save_ifs"
7588         if test "X$pkg" = "X$p"; then
7589           enable_fast_install=yes
7590         fi
7591       done
7592       IFS="$lt_save_ifs"
7593       ;;
7594     esac
7595 else
7596   enable_fast_install=yes
7601     
7602     
7603     
7606   
7609 # This can be used to rebuild libtool when needed
7610 LIBTOOL_DEPS="$ltmain"
7612 # Always use our own libtool.
7613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7617     
7618     
7619     
7621     
7622     
7623     
7625     
7626     
7627     
7629     
7630     
7631     
7633     
7634     
7635     
7637     
7638     
7639     
7640 test -z "$LN_S" && LN_S="ln -s"
7642     
7643     
7644     
7646     
7647     
7648     
7650     
7651     
7652     
7655 if test -n "${ZSH_VERSION+set}" ; then
7656    setopt NO_GLOB_SUBST
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7660 $as_echo_n "checking for objdir... " >&6; }
7661 if ${lt_cv_objdir+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   rm -f .libs 2>/dev/null
7665 mkdir .libs 2>/dev/null
7666 if test -d .libs; then
7667   lt_cv_objdir=.libs
7668 else
7669   # MS-DOS does not allow filenames that begin with a dot.
7670   lt_cv_objdir=_libs
7672 rmdir .libs 2>/dev/null
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7675 $as_echo "$lt_cv_objdir" >&6; }
7676 objdir=$lt_cv_objdir
7678     
7679     
7680     
7682 cat >>confdefs.h <<_ACEOF
7683 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7684 _ACEOF
7689 case $host_os in
7690 aix3*)
7691   # AIX sometimes has problems with the GCC collect2 program.  For some
7692   # reason, if we set the COLLECT_NAMES environment variable, the problems
7693   # vanish in a puff of smoke.
7694   if test "X${COLLECT_NAMES+set}" != Xset; then
7695     COLLECT_NAMES=
7696     export COLLECT_NAMES
7697   fi
7698   ;;
7699 esac
7701 # Global variables:
7702 ofile=libtool
7703 can_build_shared=yes
7705 # All known linkers require a `.a' archive for static linking (except MSVC,
7706 # which needs '.lib').
7707 libext=a
7709 with_gnu_ld="$lt_cv_prog_gnu_ld"
7711 old_CC="$CC"
7712 old_CFLAGS="$CFLAGS"
7714 # Set sane defaults for various variables
7715 test -z "$CC" && CC=cc
7716 test -z "$LTCC" && LTCC=$CC
7717 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7718 test -z "$LD" && LD=ld
7719 test -z "$ac_objext" && ac_objext=o
7721 for cc_temp in $compiler""; do
7722   case $cc_temp in
7723     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7724     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7725     \-*) ;;
7726     *) break;;
7727   esac
7728 done
7729 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7732 # Only perform the check for file, if the check method requires it
7733 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7734 case $deplibs_check_method in
7735 file_magic*)
7736   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7738 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7739 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   case $MAGIC_CMD in
7743 [\\/*] |  ?:[\\/]*)
7744   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7745   ;;
7747   lt_save_MAGIC_CMD="$MAGIC_CMD"
7748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750   for ac_dir in $ac_dummy; do
7751     IFS="$lt_save_ifs"
7752     test -z "$ac_dir" && ac_dir=.
7753     if test -f $ac_dir/${ac_tool_prefix}file; then
7754       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7755       if test -n "$file_magic_test_file"; then
7756         case $deplibs_check_method in
7757         "file_magic "*)
7758           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761             $EGREP "$file_magic_regex" > /dev/null; then
7762             :
7763           else
7764             cat <<_LT_EOF 1>&2
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such.  This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem.  Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7775 _LT_EOF
7776           fi ;;
7777         esac
7778       fi
7779       break
7780     fi
7781   done
7782   IFS="$lt_save_ifs"
7783   MAGIC_CMD="$lt_save_MAGIC_CMD"
7784   ;;
7785 esac
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7791 $as_echo "$MAGIC_CMD" >&6; }
7792 else
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7797     
7798     
7799     
7801 if test -z "$lt_cv_path_MAGIC_CMD"; then
7802   if test -n "$ac_tool_prefix"; then
7803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7804 $as_echo_n "checking for file... " >&6; }
7805 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7806   $as_echo_n "(cached) " >&6
7807 else
7808   case $MAGIC_CMD in
7809 [\\/*] |  ?:[\\/]*)
7810   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7811   ;;
7813   lt_save_MAGIC_CMD="$MAGIC_CMD"
7814   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7815   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7816   for ac_dir in $ac_dummy; do
7817     IFS="$lt_save_ifs"
7818     test -z "$ac_dir" && ac_dir=.
7819     if test -f $ac_dir/file; then
7820       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7821       if test -n "$file_magic_test_file"; then
7822         case $deplibs_check_method in
7823         "file_magic "*)
7824           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7825           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7827             $EGREP "$file_magic_regex" > /dev/null; then
7828             :
7829           else
7830             cat <<_LT_EOF 1>&2
7832 *** Warning: the command libtool uses to detect shared libraries,
7833 *** $file_magic_cmd, produces output that libtool cannot recognize.
7834 *** The result is that libtool may fail to recognize shared libraries
7835 *** as such.  This will affect the creation of libtool libraries that
7836 *** depend on shared libraries, but programs linked with such libtool
7837 *** libraries will work regardless of this problem.  Nevertheless, you
7838 *** may want to report the problem to your system manager and/or to
7839 *** bug-libtool@gnu.org
7841 _LT_EOF
7842           fi ;;
7843         esac
7844       fi
7845       break
7846     fi
7847   done
7848   IFS="$lt_save_ifs"
7849   MAGIC_CMD="$lt_save_MAGIC_CMD"
7850   ;;
7851 esac
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if test -n "$MAGIC_CMD"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7857 $as_echo "$MAGIC_CMD" >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7864   else
7865     MAGIC_CMD=:
7866   fi
7869   fi
7870   ;;
7871 esac
7873 # Use C for the default configuration in the libtool script
7875 lt_save_CC="$CC"
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 # Source file extension for C test sources.
7884 ac_ext=c
7886 # Object file extension for compiled C test sources.
7887 objext=o
7888 objext=$objext
7890 # Code to be used in simple compile tests
7891 lt_simple_compile_test_code="int some_variable = 0;"
7893 # Code to be used in simple link tests
7894 lt_simple_link_test_code='int main(){return(0);}'
7902 # If no C compiler was specified, use CC.
7903 LTCC=${LTCC-"$CC"}
7905 # If no C compiler flags were specified, use CFLAGS.
7906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7908 # Allow CC to be a program name with arguments.
7909 compiler=$CC
7911 # Save the default compiler, since it gets overwritten when the other
7912 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7913 compiler_DEFAULT=$CC
7915 # save warnings/boilerplate of simple test code
7916 ac_outfile=conftest.$ac_objext
7917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7919 _lt_compiler_boilerplate=`cat conftest.err`
7920 $RM conftest*
7922 ac_outfile=conftest.$ac_objext
7923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7925 _lt_linker_boilerplate=`cat conftest.err`
7926 $RM -r conftest*
7929 if test -n "$compiler"; then
7930   
7931 lt_prog_compiler_no_builtin_flag=
7933 if test "$GCC" = yes; then
7934   case $cc_basename in
7935   nvcc*)
7936     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7937   *)
7938     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7939   esac
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7942 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7943 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   lt_cv_prog_compiler_rtti_exceptions=no
7947    ac_outfile=conftest.$ac_objext
7948    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7949    lt_compiler_flag="-fno-rtti -fno-exceptions"
7950    # Insert the option either (1) after the last *FLAGS variable, or
7951    # (2) before a word containing "conftest.", or (3) at the end.
7952    # Note that $ac_compile itself does not contain backslashes and begins
7953    # with a dollar sign (not a hyphen), so the echo should work correctly.
7954    # The option is referenced via a variable to avoid confusing sed.
7955    lt_compile=`echo "$ac_compile" | $SED \
7956    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958    -e 's:$: $lt_compiler_flag:'`
7959    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7960    (eval "$lt_compile" 2>conftest.err)
7961    ac_status=$?
7962    cat conftest.err >&5
7963    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964    if (exit $ac_status) && test -s "$ac_outfile"; then
7965      # The compiler can only warn and ignore the option if not recognized
7966      # So say no if there are warnings other than the usual output.
7967      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7968      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7969      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7970        lt_cv_prog_compiler_rtti_exceptions=yes
7971      fi
7972    fi
7973    $RM conftest*
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7977 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7979 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7980     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7981 else
7982     :
7987     
7988     
7989     
7992   lt_prog_compiler_wl=
7993 lt_prog_compiler_pic=
7994 lt_prog_compiler_static=
7997   if test "$GCC" = yes; then
7998     lt_prog_compiler_wl='-Wl,'
7999     lt_prog_compiler_static='-static'
8001     case $host_os in
8002       aix*)
8003       # All AIX code is PIC.
8004       if test "$host_cpu" = ia64; then
8005         # AIX 5 now supports IA64 processor
8006         lt_prog_compiler_static='-Bstatic'
8007       fi
8008       ;;
8010     amigaos*)
8011       case $host_cpu in
8012       powerpc)
8013             # see comment about AmigaOS4 .so support
8014             lt_prog_compiler_pic='-fPIC'
8015         ;;
8016       m68k)
8017             # FIXME: we need at least 68020 code to build shared libraries, but
8018             # adding the `-m68020' flag to GCC prevents building anything better,
8019             # like `-m68040'.
8020             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8021         ;;
8022       esac
8023       ;;
8025     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8026       # PIC is the default for these OSes.
8027       ;;
8029     mingw* | cygwin* | pw32* | os2* | cegcc*)
8030       # This hack is so that the source file can tell whether it is being
8031       # built for inclusion in a dll (and should export symbols for example).
8032       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8033       # (--disable-auto-import) libraries
8034       lt_prog_compiler_pic='-DDLL_EXPORT'
8035       ;;
8037     darwin* | rhapsody*)
8038       # PIC is the default on this platform
8039       # Common symbols not allowed in MH_DYLIB files
8040       lt_prog_compiler_pic='-fno-common'
8041       ;;
8043     haiku*)
8044       # PIC is the default for Haiku.
8045       # The "-static" flag exists, but is broken.
8046       lt_prog_compiler_static=
8047       ;;
8049     hpux*)
8050       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8051       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8052       # sets the default TLS model and affects inlining.
8053       case $host_cpu in
8054       hppa*64*)
8055         # +Z the default
8056         ;;
8057       *)
8058         lt_prog_compiler_pic='-fPIC'
8059         ;;
8060       esac
8061       ;;
8063     interix[3-9]*)
8064       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8065       # Instead, we relocate shared libraries at runtime.
8066       ;;
8068     msdosdjgpp*)
8069       # Just because we use GCC doesn't mean we suddenly get shared libraries
8070       # on systems that don't support them.
8071       lt_prog_compiler_can_build_shared=no
8072       enable_shared=no
8073       ;;
8075     *nto* | *qnx*)
8076       # QNX uses GNU C++, but need to define -shared option too, otherwise
8077       # it will coredump.
8078       lt_prog_compiler_pic='-fPIC -shared'
8079       ;;
8081     sysv4*MP*)
8082       if test -d /usr/nec; then
8083         lt_prog_compiler_pic=-Kconform_pic
8084       fi
8085       ;;
8087     *)
8088       lt_prog_compiler_pic='-fPIC'
8089       ;;
8090     esac
8092     case $cc_basename in
8093     nvcc*) # Cuda Compiler Driver 2.2
8094       lt_prog_compiler_wl='-Xlinker '
8095       lt_prog_compiler_pic='-Xcompiler -fPIC'
8096       ;;
8097     esac
8098   else
8099     # PORTME Check for flag to pass linker flags through the system compiler.
8100     case $host_os in
8101     aix*)
8102       lt_prog_compiler_wl='-Wl,'
8103       if test "$host_cpu" = ia64; then
8104         # AIX 5 now supports IA64 processor
8105         lt_prog_compiler_static='-Bstatic'
8106       else
8107         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8108       fi
8109       ;;
8111     mingw* | cygwin* | pw32* | os2* | cegcc*)
8112       # This hack is so that the source file can tell whether it is being
8113       # built for inclusion in a dll (and should export symbols for example).
8114       lt_prog_compiler_pic='-DDLL_EXPORT'
8115       ;;
8117     hpux9* | hpux10* | hpux11*)
8118       lt_prog_compiler_wl='-Wl,'
8119       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8120       # not for PA HP-UX.
8121       case $host_cpu in
8122       hppa*64*|ia64*)
8123         # +Z the default
8124         ;;
8125       *)
8126         lt_prog_compiler_pic='+Z'
8127         ;;
8128       esac
8129       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8130       lt_prog_compiler_static='${wl}-a ${wl}archive'
8131       ;;
8133     irix5* | irix6* | nonstopux*)
8134       lt_prog_compiler_wl='-Wl,'
8135       # PIC (with -KPIC) is the default.
8136       lt_prog_compiler_static='-non_shared'
8137       ;;
8139     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8140       case $cc_basename in
8141       # old Intel for x86_64 which still supported -KPIC.
8142       ecc*)
8143         lt_prog_compiler_wl='-Wl,'
8144         lt_prog_compiler_pic='-KPIC'
8145         lt_prog_compiler_static='-static'
8146         ;;
8147       # icc used to be incompatible with GCC.
8148       # ICC 10 doesn't accept -KPIC any more.
8149       icc* | ifort*)
8150         lt_prog_compiler_wl='-Wl,'
8151         lt_prog_compiler_pic='-fPIC'
8152         lt_prog_compiler_static='-static'
8153         ;;
8154       # Lahey Fortran 8.1.
8155       lf95*)
8156         lt_prog_compiler_wl='-Wl,'
8157         lt_prog_compiler_pic='--shared'
8158         lt_prog_compiler_static='--static'
8159         ;;
8160       nagfor*)
8161         # NAG Fortran compiler
8162         lt_prog_compiler_wl='-Wl,-Wl,,'
8163         lt_prog_compiler_pic='-PIC'
8164         lt_prog_compiler_static='-Bstatic'
8165         ;;
8166       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8167         # Portland Group compilers (*not* the Pentium gcc compiler,
8168         # which looks to be a dead project)
8169         lt_prog_compiler_wl='-Wl,'
8170         lt_prog_compiler_pic='-fpic'
8171         lt_prog_compiler_static='-Bstatic'
8172         ;;
8173       ccc*)
8174         lt_prog_compiler_wl='-Wl,'
8175         # All Alpha code is PIC.
8176         lt_prog_compiler_static='-non_shared'
8177         ;;
8178       xl* | bgxl* | bgf* | mpixl*)
8179         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8180         lt_prog_compiler_wl='-Wl,'
8181         lt_prog_compiler_pic='-qpic'
8182         lt_prog_compiler_static='-qstaticlink'
8183         ;;
8184       *)
8185         case `$CC -V 2>&1 | sed 5q` in
8186         *Sun\ F* | *Sun*Fortran*)
8187           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8188           lt_prog_compiler_pic='-KPIC'
8189           lt_prog_compiler_static='-Bstatic'
8190           lt_prog_compiler_wl=''
8191           ;;
8192         *Sun\ C*)
8193           # Sun C 5.9
8194           lt_prog_compiler_pic='-KPIC'
8195           lt_prog_compiler_static='-Bstatic'
8196           lt_prog_compiler_wl='-Wl,'
8197           ;;
8198         esac
8199         ;;
8200       esac
8201       ;;
8203     newsos6)
8204       lt_prog_compiler_pic='-KPIC'
8205       lt_prog_compiler_static='-Bstatic'
8206       ;;
8208     *nto* | *qnx*)
8209       # QNX uses GNU C++, but need to define -shared option too, otherwise
8210       # it will coredump.
8211       lt_prog_compiler_pic='-fPIC -shared'
8212       ;;
8214     osf3* | osf4* | osf5*)
8215       lt_prog_compiler_wl='-Wl,'
8216       # All OSF/1 code is PIC.
8217       lt_prog_compiler_static='-non_shared'
8218       ;;
8220     rdos*)
8221       lt_prog_compiler_static='-non_shared'
8222       ;;
8224     solaris*)
8225       lt_prog_compiler_pic='-KPIC'
8226       lt_prog_compiler_static='-Bstatic'
8227       case $cc_basename in
8228       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8229         lt_prog_compiler_wl='-Qoption ld ';;
8230       *)
8231         lt_prog_compiler_wl='-Wl,';;
8232       esac
8233       ;;
8235     sunos4*)
8236       lt_prog_compiler_wl='-Qoption ld '
8237       lt_prog_compiler_pic='-PIC'
8238       lt_prog_compiler_static='-Bstatic'
8239       ;;
8241     sysv4 | sysv4.2uw2* | sysv4.3*)
8242       lt_prog_compiler_wl='-Wl,'
8243       lt_prog_compiler_pic='-KPIC'
8244       lt_prog_compiler_static='-Bstatic'
8245       ;;
8247     sysv4*MP*)
8248       if test -d /usr/nec ;then
8249         lt_prog_compiler_pic='-Kconform_pic'
8250         lt_prog_compiler_static='-Bstatic'
8251       fi
8252       ;;
8254     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8255       lt_prog_compiler_wl='-Wl,'
8256       lt_prog_compiler_pic='-KPIC'
8257       lt_prog_compiler_static='-Bstatic'
8258       ;;
8260     unicos*)
8261       lt_prog_compiler_wl='-Wl,'
8262       lt_prog_compiler_can_build_shared=no
8263       ;;
8265     uts4*)
8266       lt_prog_compiler_pic='-pic'
8267       lt_prog_compiler_static='-Bstatic'
8268       ;;
8270     *)
8271       lt_prog_compiler_can_build_shared=no
8272       ;;
8273     esac
8274   fi
8276 case $host_os in
8277   # For platforms which do not support PIC, -DPIC is meaningless:
8278   *djgpp*)
8279     lt_prog_compiler_pic=
8280     ;;
8281   *)
8282     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8283     ;;
8284 esac
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8287 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8288 if ${lt_cv_prog_compiler_pic+:} false; then :
8289   $as_echo_n "(cached) " >&6
8290 else
8291   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8294 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8295 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8298 # Check to make sure the PIC flag actually works.
8300 if test -n "$lt_prog_compiler_pic"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8302 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8303 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   lt_cv_prog_compiler_pic_works=no
8307    ac_outfile=conftest.$ac_objext
8308    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8310    # Insert the option either (1) after the last *FLAGS variable, or
8311    # (2) before a word containing "conftest.", or (3) at the end.
8312    # Note that $ac_compile itself does not contain backslashes and begins
8313    # with a dollar sign (not a hyphen), so the echo should work correctly.
8314    # The option is referenced via a variable to avoid confusing sed.
8315    lt_compile=`echo "$ac_compile" | $SED \
8316    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318    -e 's:$: $lt_compiler_flag:'`
8319    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8320    (eval "$lt_compile" 2>conftest.err)
8321    ac_status=$?
8322    cat conftest.err >&5
8323    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324    if (exit $ac_status) && test -s "$ac_outfile"; then
8325      # The compiler can only warn and ignore the option if not recognized
8326      # So say no if there are warnings other than the usual output.
8327      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8328      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8330        lt_cv_prog_compiler_pic_works=yes
8331      fi
8332    fi
8333    $RM conftest*
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8337 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8339 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8340     case $lt_prog_compiler_pic in
8341      "" | " "*) ;;
8342      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8343      esac
8344 else
8345     lt_prog_compiler_pic=
8346      lt_prog_compiler_can_build_shared=no
8351     
8352     
8353     
8357     
8358     
8359     
8362 # Check to make sure the static flag actually works.
8364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8367 if ${lt_cv_prog_compiler_static_works+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   lt_cv_prog_compiler_static_works=no
8371    save_LDFLAGS="$LDFLAGS"
8372    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8374    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375      # The linker can only warn and ignore the option if not recognized
8376      # So say no if there are warnings
8377      if test -s conftest.err; then
8378        # Append any errors to the config.log.
8379        cat conftest.err 1>&5
8380        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8381        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382        if diff conftest.exp conftest.er2 >/dev/null; then
8383          lt_cv_prog_compiler_static_works=yes
8384        fi
8385      else
8386        lt_cv_prog_compiler_static_works=yes
8387      fi
8388    fi
8389    $RM -r conftest*
8390    LDFLAGS="$save_LDFLAGS"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8394 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8396 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8397     :
8398 else
8399     lt_prog_compiler_static=
8403     
8404     
8405     
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410 if ${lt_cv_prog_compiler_c_o+:} false; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   lt_cv_prog_compiler_c_o=no
8414    $RM -r conftest 2>/dev/null
8415    mkdir conftest
8416    cd conftest
8417    mkdir out
8418    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8420    lt_compiler_flag="-o out/conftest2.$ac_objext"
8421    # Insert the option either (1) after the last *FLAGS variable, or
8422    # (2) before a word containing "conftest.", or (3) at the end.
8423    # Note that $ac_compile itself does not contain backslashes and begins
8424    # with a dollar sign (not a hyphen), so the echo should work correctly.
8425    lt_compile=`echo "$ac_compile" | $SED \
8426    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428    -e 's:$: $lt_compiler_flag:'`
8429    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430    (eval "$lt_compile" 2>out/conftest.err)
8431    ac_status=$?
8432    cat out/conftest.err >&5
8433    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8435    then
8436      # The compiler can only warn and ignore the option if not recognized
8437      # So say no if there are warnings
8438      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8439      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441        lt_cv_prog_compiler_c_o=yes
8442      fi
8443    fi
8444    chmod u+w . 2>&5
8445    $RM conftest*
8446    # SGI C++ compiler will create directory out/ii_files/ for
8447    # template instantiation
8448    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449    $RM out/* && rmdir out
8450    cd ..
8451    $RM -r conftest
8452    $RM conftest*
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8458     
8459     
8460     
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8465 if ${lt_cv_prog_compiler_c_o+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   lt_cv_prog_compiler_c_o=no
8469    $RM -r conftest 2>/dev/null
8470    mkdir conftest
8471    cd conftest
8472    mkdir out
8473    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8475    lt_compiler_flag="-o out/conftest2.$ac_objext"
8476    # Insert the option either (1) after the last *FLAGS variable, or
8477    # (2) before a word containing "conftest.", or (3) at the end.
8478    # Note that $ac_compile itself does not contain backslashes and begins
8479    # with a dollar sign (not a hyphen), so the echo should work correctly.
8480    lt_compile=`echo "$ac_compile" | $SED \
8481    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483    -e 's:$: $lt_compiler_flag:'`
8484    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8485    (eval "$lt_compile" 2>out/conftest.err)
8486    ac_status=$?
8487    cat out/conftest.err >&5
8488    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8490    then
8491      # The compiler can only warn and ignore the option if not recognized
8492      # So say no if there are warnings
8493      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8494      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8495      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8496        lt_cv_prog_compiler_c_o=yes
8497      fi
8498    fi
8499    chmod u+w . 2>&5
8500    $RM conftest*
8501    # SGI C++ compiler will create directory out/ii_files/ for
8502    # template instantiation
8503    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8504    $RM out/* && rmdir out
8505    cd ..
8506    $RM -r conftest
8507    $RM conftest*
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8516 hard_links="nottested"
8517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518   # do not overwrite the value of need_locks provided by the user
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8520 $as_echo_n "checking if we can lock with hard links... " >&6; }
8521   hard_links=yes
8522   $RM conftest*
8523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524   touch conftest.a
8525   ln conftest.a conftest.b 2>&5 || hard_links=no
8526   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8528 $as_echo "$hard_links" >&6; }
8529   if test "$hard_links" = no; then
8530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8532     need_locks=warn
8533   fi
8534 else
8535   need_locks=no
8538     
8539     
8540     
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8544 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8546   runpath_var=
8547   allow_undefined_flag=
8548   always_export_symbols=no
8549   archive_cmds=
8550   archive_expsym_cmds=
8551   compiler_needs_object=no
8552   enable_shared_with_static_runtimes=no
8553   export_dynamic_flag_spec=
8554   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8555   hardcode_automatic=no
8556   hardcode_direct=no
8557   hardcode_direct_absolute=no
8558   hardcode_libdir_flag_spec=
8559   hardcode_libdir_flag_spec_ld=
8560   hardcode_libdir_separator=
8561   hardcode_minus_L=no
8562   hardcode_shlibpath_var=unsupported
8563   inherit_rpath=no
8564   link_all_deplibs=unknown
8565   module_cmds=
8566   module_expsym_cmds=
8567   old_archive_from_new_cmds=
8568   old_archive_from_expsyms_cmds=
8569   thread_safe_flag_spec=
8570   whole_archive_flag_spec=
8571   # include_expsyms should be a list of space-separated symbols to be *always*
8572   # included in the symbol list
8573   include_expsyms=
8574   # exclude_expsyms can be an extended regexp of symbols to exclude
8575   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8576   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8577   # as well as any symbol that contains `d'.
8578   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8579   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8580   # platforms (ab)use it in PIC code, but their linkers get confused if
8581   # the symbol is explicitly referenced.  Since portable code cannot
8582   # rely on this symbol name, it's probably fine to never include it in
8583   # preloaded symbol tables.
8584   # Exclude shared library initialization/finalization symbols.
8585   extract_expsyms_cmds=
8587   case $host_os in
8588   cygwin* | mingw* | pw32* | cegcc*)
8589     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8590     # When not using gcc, we currently assume that we are using
8591     # Microsoft Visual C++.
8592     if test "$GCC" != yes; then
8593       with_gnu_ld=no
8594     fi
8595     ;;
8596   interix*)
8597     # we just hope/assume this is gcc and not c89 (= MSVC++)
8598     with_gnu_ld=yes
8599     ;;
8600   openbsd*)
8601     with_gnu_ld=no
8602     ;;
8603   esac
8605   ld_shlibs=yes
8607   # On some targets, GNU ld is compatible enough with the native linker
8608   # that we're better off using the native interface for both.
8609   lt_use_gnu_ld_interface=no
8610   if test "$with_gnu_ld" = yes; then
8611     case $host_os in
8612       aix*)
8613         # The AIX port of GNU ld has always aspired to compatibility
8614         # with the native linker.  However, as the warning in the GNU ld
8615         # block says, versions before 2.19.5* couldn't really create working
8616         # shared libraries, regardless of the interface used.
8617         case `$LD -v 2>&1` in
8618           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8619           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8620           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8621           *)
8622             lt_use_gnu_ld_interface=yes
8623             ;;
8624         esac
8625         ;;
8626       *)
8627         lt_use_gnu_ld_interface=yes
8628         ;;
8629     esac
8630   fi
8632   if test "$lt_use_gnu_ld_interface" = yes; then
8633     # If archive_cmds runs LD, not CC, wlarc should be empty
8634     wlarc='${wl}'
8636     # Set some defaults for GNU ld with shared library support. These
8637     # are reset later if shared libraries are not supported. Putting them
8638     # here allows them to be overridden if necessary.
8639     runpath_var=LD_RUN_PATH
8640     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641     export_dynamic_flag_spec='${wl}--export-dynamic'
8642     # ancient GNU ld didn't support --whole-archive et. al.
8643     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8644       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8645     else
8646       whole_archive_flag_spec=
8647     fi
8648     supports_anon_versioning=no
8649     case `$LD -v 2>&1` in
8650       *GNU\ gold*) supports_anon_versioning=yes ;;
8651       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8652       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8653       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8654       *\ 2.11.*) ;; # other 2.11 versions
8655       *) supports_anon_versioning=yes ;;
8656     esac
8658     # See if GNU ld supports shared libraries.
8659     case $host_os in
8660     aix[3-9]*)
8661       # On AIX/PPC, the GNU linker is very broken
8662       if test "$host_cpu" != ia64; then
8663         ld_shlibs=no
8664         cat <<_LT_EOF 1>&2
8666 *** Warning: the GNU linker, at least up to release 2.19, is reported
8667 *** to be unable to reliably create shared libraries on AIX.
8668 *** Therefore, libtool is disabling shared libraries support.  If you
8669 *** really care for shared libraries, you may want to install binutils
8670 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8671 *** You will then need to restart the configuration process.
8673 _LT_EOF
8674       fi
8675       ;;
8677     amigaos*)
8678       case $host_cpu in
8679       powerpc)
8680             # see comment about AmigaOS4 .so support
8681             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682             archive_expsym_cmds=''
8683         ;;
8684       m68k)
8685             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)'
8686             hardcode_libdir_flag_spec='-L$libdir'
8687             hardcode_minus_L=yes
8688         ;;
8689       esac
8690       ;;
8692     beos*)
8693       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694         allow_undefined_flag=unsupported
8695         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8696         # support --undefined.  This deserves some investigation.  FIXME
8697         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698       else
8699         ld_shlibs=no
8700       fi
8701       ;;
8703     cygwin* | mingw* | pw32* | cegcc*)
8704       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8705       # as there is no search path for DLLs.
8706       hardcode_libdir_flag_spec='-L$libdir'
8707       export_dynamic_flag_spec='${wl}--export-all-symbols'
8708       allow_undefined_flag=unsupported
8709       always_export_symbols=no
8710       enable_shared_with_static_runtimes=yes
8711       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8712       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8714       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8716         # If the export-symbols file already is a .def file (1st line
8717         # is EXPORTS), use it as is; otherwise, prepend...
8718         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8719           cp $export_symbols $output_objdir/$soname.def;
8720         else
8721           echo EXPORTS > $output_objdir/$soname.def;
8722           cat $export_symbols >> $output_objdir/$soname.def;
8723         fi~
8724         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8725       else
8726         ld_shlibs=no
8727       fi
8728       ;;
8730     haiku*)
8731       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732       link_all_deplibs=yes
8733       ;;
8735     interix[3-9]*)
8736       hardcode_direct=no
8737       hardcode_shlibpath_var=no
8738       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8739       export_dynamic_flag_spec='${wl}-E'
8740       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8741       # Instead, shared libraries are loaded at an image base (0x10000000 by
8742       # default) and relocated if they conflict, which is a slow very memory
8743       # consuming and fragmenting process.  To avoid this, we pick a random,
8744       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8745       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8746       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8747       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'
8748       ;;
8750     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8751       tmp_diet=no
8752       if test "$host_os" = linux-dietlibc; then
8753         case $cc_basename in
8754           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8755         esac
8756       fi
8757       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8758          && test "$tmp_diet" = no
8759       then
8760         tmp_addflag=' $pic_flag'
8761         tmp_sharedflag='-shared'
8762         case $cc_basename,$host_cpu in
8763         pgcc*)                          # Portland Group C compiler
8764           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8765           tmp_addflag=' $pic_flag'
8766           ;;
8767         pgf77* | pgf90* | pgf95* | pgfortran*)
8768                                         # Portland Group f77 and f90 compilers
8769           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8770           tmp_addflag=' $pic_flag -Mnomain' ;;
8771         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8772           tmp_addflag=' -i_dynamic' ;;
8773         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8774           tmp_addflag=' -i_dynamic -nofor_main' ;;
8775         ifc* | ifort*)                  # Intel Fortran compiler
8776           tmp_addflag=' -nofor_main' ;;
8777         lf95*)                          # Lahey Fortran 8.1
8778           whole_archive_flag_spec=
8779           tmp_sharedflag='--shared' ;;
8780         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8781           tmp_sharedflag='-qmkshrobj'
8782           tmp_addflag= ;;
8783         nvcc*)  # Cuda Compiler Driver 2.2
8784           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8785           compiler_needs_object=yes
8786           ;;
8787         esac
8788         case `$CC -V 2>&1 | sed 5q` in
8789         *Sun\ C*)                       # Sun C 5.9
8790           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8791           compiler_needs_object=yes
8792           tmp_sharedflag='-G' ;;
8793         *Sun\ F*)                       # Sun Fortran 8.3
8794           tmp_sharedflag='-G' ;;
8795         esac
8796         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798         if test "x$supports_anon_versioning" = xyes; then
8799           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8800             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8801             echo "local: *; };" >> $output_objdir/$libname.ver~
8802             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8803         fi
8805         case $cc_basename in
8806         xlf* | bgf* | bgxlf* | mpixlf*)
8807           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8808           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8809           hardcode_libdir_flag_spec=
8810           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8811           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8812           if test "x$supports_anon_versioning" = xyes; then
8813             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8814               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8815               echo "local: *; };" >> $output_objdir/$libname.ver~
8816               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8817           fi
8818           ;;
8819         esac
8820       else
8821         ld_shlibs=no
8822       fi
8823       ;;
8825     netbsd*)
8826       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8827         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8828         wlarc=
8829       else
8830         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832       fi
8833       ;;
8835     solaris*)
8836       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8837         ld_shlibs=no
8838         cat <<_LT_EOF 1>&2
8840 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8841 *** create shared libraries on Solaris systems.  Therefore, libtool
8842 *** is disabling shared libraries support.  We urge you to upgrade GNU
8843 *** binutils to release 2.9.1 or newer.  Another option is to modify
8844 *** your PATH or compiler configuration so that the native linker is
8845 *** used, and then restart.
8847 _LT_EOF
8848       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851       else
8852         ld_shlibs=no
8853       fi
8854       ;;
8856     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8857       case `$LD -v 2>&1` in
8858         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8859         ld_shlibs=no
8860         cat <<_LT_EOF 1>&2
8862 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8863 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8864 *** is disabling shared libraries support.  We urge you to upgrade GNU
8865 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8866 *** your PATH or compiler configuration so that the native linker is
8867 *** used, and then restart.
8869 _LT_EOF
8870         ;;
8871         *)
8872           # For security reasons, it is highly recommended that you always
8873           # use absolute paths for naming shared libraries, and exclude the
8874           # DT_RUNPATH tag from executables and libraries.  But doing so
8875           # requires that you compile everything twice, which is a pain.
8876           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8877             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8878             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8880           else
8881             ld_shlibs=no
8882           fi
8883         ;;
8884       esac
8885       ;;
8887     sunos4*)
8888       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8889       wlarc=
8890       hardcode_direct=yes
8891       hardcode_shlibpath_var=no
8892       ;;
8894     *)
8895       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8896         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898       else
8899         ld_shlibs=no
8900       fi
8901       ;;
8902     esac
8904     if test "$ld_shlibs" = no; then
8905       runpath_var=
8906       hardcode_libdir_flag_spec=
8907       export_dynamic_flag_spec=
8908       whole_archive_flag_spec=
8909     fi
8910   else
8911     # PORTME fill in a description of your system's linker (not GNU ld)
8912     case $host_os in
8913     aix3*)
8914       allow_undefined_flag=unsupported
8915       always_export_symbols=yes
8916       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'
8917       # Note: this linker hardcodes the directories in LIBPATH if there
8918       # are no directories specified by -L.
8919       hardcode_minus_L=yes
8920       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8921         # Neither direct hardcoding nor static linking is supported with a
8922         # broken collect2.
8923         hardcode_direct=unsupported
8924       fi
8925       ;;
8927     aix[4-9]*)
8928       if test "$host_cpu" = ia64; then
8929         # On IA64, the linker does run time linking by default, so we don't
8930         # have to do anything special.
8931         aix_use_runtimelinking=no
8932         exp_sym_flag='-Bexport'
8933         no_entry_flag=""
8934       else
8935         # If we're using GNU nm, then we don't want the "-C" option.
8936         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8937         # Also, AIX nm treats weak defined symbols like other global
8938         # defined symbols, whereas GNU nm marks them as "W".
8939         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8940           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8941         else
8942           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'
8943         fi
8944         aix_use_runtimelinking=no
8946         # Test if we are trying to use run time linking or normal
8947         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8948         # need to do runtime linking.
8949         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8950           for ld_flag in $LDFLAGS; do
8951           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8952             aix_use_runtimelinking=yes
8953             break
8954           fi
8955           done
8956           ;;
8957         esac
8959         exp_sym_flag='-bexport'
8960         no_entry_flag='-bnoentry'
8961       fi
8963       # When large executables or shared objects are built, AIX ld can
8964       # have problems creating the table of contents.  If linking a library
8965       # or program results in "error TOC overflow" add -mminimal-toc to
8966       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8967       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8969       archive_cmds=''
8970       hardcode_direct=yes
8971       hardcode_direct_absolute=yes
8972       hardcode_libdir_separator=':'
8973       link_all_deplibs=yes
8974       file_list_spec='${wl}-f,'
8976       if test "$GCC" = yes; then
8977         case $host_os in aix4.[012]|aix4.[012].*)
8978         # We only want to do this on AIX 4.2 and lower, the check
8979         # below for broken collect2 doesn't work under 4.3+
8980           collect2name=`${CC} -print-prog-name=collect2`
8981           if test -f "$collect2name" &&
8982            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8983           then
8984           # We have reworked collect2
8985           :
8986           else
8987           # We have old collect2
8988           hardcode_direct=unsupported
8989           # It fails to find uninstalled libraries when the uninstalled
8990           # path is not listed in the libpath.  Setting hardcode_minus_L
8991           # to unsupported forces relinking
8992           hardcode_minus_L=yes
8993           hardcode_libdir_flag_spec='-L$libdir'
8994           hardcode_libdir_separator=
8995           fi
8996           ;;
8997         esac
8998         shared_flag='-shared'
8999         if test "$aix_use_runtimelinking" = yes; then
9000           shared_flag="$shared_flag "'${wl}-G'
9001         fi
9002       else
9003         # not using gcc
9004         if test "$host_cpu" = ia64; then
9005         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9006         # chokes on -Wl,-G. The following line is correct:
9007           shared_flag='-G'
9008         else
9009           if test "$aix_use_runtimelinking" = yes; then
9010             shared_flag='${wl}-G'
9011           else
9012             shared_flag='${wl}-bM:SRE'
9013           fi
9014         fi
9015       fi
9017       export_dynamic_flag_spec='${wl}-bexpall'
9018       # It seems that -bexpall does not export symbols beginning with
9019       # underscore (_), so it is better to generate a list of symbols to export.
9020       always_export_symbols=yes
9021       if test "$aix_use_runtimelinking" = yes; then
9022         # Warning - without using the other runtime loading flags (-brtl),
9023         # -berok will link without error, but may produce a broken library.
9024         allow_undefined_flag='-berok'
9025         # Determine the default libpath from the value encoded in an
9026         # empty executable.
9027         if test "${lt_cv_aix_libpath+set}" = set; then
9028   aix_libpath=$lt_cv_aix_libpath
9029 else
9030   if ${lt_cv_aix_libpath_+:} false; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h.  */
9037 main ()
9040   ;
9041   return 0;
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045   
9046   lt_aix_libpath_sed='
9047       /Import File Strings/,/^$/ {
9048           /^0/ {
9049               s/^0  *\([^ ]*\) *$/\1/
9050               p
9051           }
9052       }'
9053   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054   # Check for a 64-bit object if we didn't find anything.
9055   if test -z "$lt_cv_aix_libpath_"; then
9056     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057   fi
9059 rm -f core conftest.err conftest.$ac_objext \
9060     conftest$ac_exeext conftest.$ac_ext
9061   if test -z "$lt_cv_aix_libpath_"; then
9062     lt_cv_aix_libpath_="/usr/lib:/lib"
9063   fi
9064   
9067   aix_libpath=$lt_cv_aix_libpath_
9070         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9071         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9072       else
9073         if test "$host_cpu" = ia64; then
9074           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9075           allow_undefined_flag="-z nodefs"
9076           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"
9077         else
9078          # Determine the default libpath from the value encoded in an
9079          # empty executable.
9080          if test "${lt_cv_aix_libpath+set}" = set; then
9081   aix_libpath=$lt_cv_aix_libpath
9082 else
9083   if ${lt_cv_aix_libpath_+:} false; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h.  */
9090 main ()
9093   ;
9094   return 0;
9096 _ACEOF
9097 if ac_fn_c_try_link "$LINENO"; then :
9098   
9099   lt_aix_libpath_sed='
9100       /Import File Strings/,/^$/ {
9101           /^0/ {
9102               s/^0  *\([^ ]*\) *$/\1/
9103               p
9104           }
9105       }'
9106   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9107   # Check for a 64-bit object if we didn't find anything.
9108   if test -z "$lt_cv_aix_libpath_"; then
9109     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9110   fi
9112 rm -f core conftest.err conftest.$ac_objext \
9113     conftest$ac_exeext conftest.$ac_ext
9114   if test -z "$lt_cv_aix_libpath_"; then
9115     lt_cv_aix_libpath_="/usr/lib:/lib"
9116   fi
9117   
9120   aix_libpath=$lt_cv_aix_libpath_
9123          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9124           # Warning - without using the other run time loading flags,
9125           # -berok will link without error, but may produce a broken library.
9126           no_undefined_flag=' ${wl}-bernotok'
9127           allow_undefined_flag=' ${wl}-berok'
9128           if test "$with_gnu_ld" = yes; then
9129             # We only use this code for GNU lds that support --whole-archive.
9130             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9131           else
9132             # Exported symbols can be pulled into shared objects from archives
9133             whole_archive_flag_spec='$convenience'
9134           fi
9135           archive_cmds_need_lc=yes
9136           # This is similar to how AIX traditionally builds its shared libraries.
9137           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'
9138         fi
9139       fi
9140       ;;
9142     amigaos*)
9143       case $host_cpu in
9144       powerpc)
9145             # see comment about AmigaOS4 .so support
9146             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147             archive_expsym_cmds=''
9148         ;;
9149       m68k)
9150             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)'
9151             hardcode_libdir_flag_spec='-L$libdir'
9152             hardcode_minus_L=yes
9153         ;;
9154       esac
9155       ;;
9157     bsdi[45]*)
9158       export_dynamic_flag_spec=-rdynamic
9159       ;;
9161     cygwin* | mingw* | pw32* | cegcc*)
9162       # When not using gcc, we currently assume that we are using
9163       # Microsoft Visual C++.
9164       # hardcode_libdir_flag_spec is actually meaningless, as there is
9165       # no search path for DLLs.
9166       case $cc_basename in
9167       cl*)
9168         # Native MSVC
9169         hardcode_libdir_flag_spec=' '
9170         allow_undefined_flag=unsupported
9171         always_export_symbols=yes
9172         file_list_spec='@'
9173         # Tell ltmain to make .lib files, not .a files.
9174         libext=lib
9175         # Tell ltmain to make .dll files, not .so files.
9176         shrext_cmds=".dll"
9177         # FIXME: Setting linknames here is a bad hack.
9178         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9179         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9180             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9181           else
9182             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9183           fi~
9184           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9185           linknames='
9186         # The linker will not automatically build a static lib if we build a DLL.
9187         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9188         enable_shared_with_static_runtimes=yes
9189         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9190         # Don't use ranlib
9191         old_postinstall_cmds='chmod 644 $oldlib'
9192         postlink_cmds='lt_outputfile="@OUTPUT@"~
9193           lt_tool_outputfile="@TOOL_OUTPUT@"~
9194           case $lt_outputfile in
9195             *.exe|*.EXE) ;;
9196             *)
9197               lt_outputfile="$lt_outputfile.exe"
9198               lt_tool_outputfile="$lt_tool_outputfile.exe"
9199               ;;
9200           esac~
9201           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9202             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9203             $RM "$lt_outputfile.manifest";
9204           fi'
9205         ;;
9206       *)
9207         # Assume MSVC wrapper
9208         hardcode_libdir_flag_spec=' '
9209         allow_undefined_flag=unsupported
9210         # Tell ltmain to make .lib files, not .a files.
9211         libext=lib
9212         # Tell ltmain to make .dll files, not .so files.
9213         shrext_cmds=".dll"
9214         # FIXME: Setting linknames here is a bad hack.
9215         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9216         # The linker will automatically build a .lib file if we build a DLL.
9217         old_archive_from_new_cmds='true'
9218         # FIXME: Should let the user specify the lib program.
9219         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9220         enable_shared_with_static_runtimes=yes
9221         ;;
9222       esac
9223       ;;
9225     darwin* | rhapsody*)
9226       
9227   
9228   archive_cmds_need_lc=no
9229   hardcode_direct=no
9230   hardcode_automatic=yes
9231   hardcode_shlibpath_var=unsupported
9232   if test "$lt_cv_ld_force_load" = "yes"; then
9233     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9234   else
9235     whole_archive_flag_spec=''
9236   fi
9237   link_all_deplibs=yes
9238   allow_undefined_flag="$_lt_dar_allow_undefined"
9239   case $cc_basename in
9240      ifort*) _lt_dar_can_shared=yes ;;
9241      *) _lt_dar_can_shared=$GCC ;;
9242   esac
9243   if test "$_lt_dar_can_shared" = "yes"; then
9244     output_verbose_link_cmd=func_echo_all
9245     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9246     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9247     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}"
9248     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}"
9249     
9250   else
9251   ld_shlibs=no
9252   fi
9254       ;;
9256     dgux*)
9257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9258       hardcode_libdir_flag_spec='-L$libdir'
9259       hardcode_shlibpath_var=no
9260       ;;
9262     freebsd1*)
9263       ld_shlibs=no
9264       ;;
9266     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9267     # support.  Future versions do this automatically, but an explicit c++rt0.o
9268     # does not break anything, and helps significantly (at the cost of a little
9269     # extra space).
9270     freebsd2.2*)
9271       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9272       hardcode_libdir_flag_spec='-R$libdir'
9273       hardcode_direct=yes
9274       hardcode_shlibpath_var=no
9275       ;;
9277     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9278     freebsd2*)
9279       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9280       hardcode_direct=yes
9281       hardcode_minus_L=yes
9282       hardcode_shlibpath_var=no
9283       ;;
9285     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9286     freebsd* | dragonfly*)
9287       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9288       hardcode_libdir_flag_spec='-R$libdir'
9289       hardcode_direct=yes
9290       hardcode_shlibpath_var=no
9291       ;;
9293     hpux9*)
9294       if test "$GCC" = yes; then
9295         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9296       else
9297         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'
9298       fi
9299       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9300       hardcode_libdir_separator=:
9301       hardcode_direct=yes
9303       # hardcode_minus_L: Not really in the search PATH,
9304       # but as the default location of the library.
9305       hardcode_minus_L=yes
9306       export_dynamic_flag_spec='${wl}-E'
9307       ;;
9309     hpux10*)
9310       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9311         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9312       else
9313         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9314       fi
9315       if test "$with_gnu_ld" = no; then
9316         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9317         hardcode_libdir_flag_spec_ld='+b $libdir'
9318         hardcode_libdir_separator=:
9319         hardcode_direct=yes
9320         hardcode_direct_absolute=yes
9321         export_dynamic_flag_spec='${wl}-E'
9322         # hardcode_minus_L: Not really in the search PATH,
9323         # but as the default location of the library.
9324         hardcode_minus_L=yes
9325       fi
9326       ;;
9328     hpux11*)
9329       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9330         case $host_cpu in
9331         hppa*64*)
9332           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333           ;;
9334         ia64*)
9335           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9336           ;;
9337         *)
9338           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9339           ;;
9340         esac
9341       else
9342         case $host_cpu in
9343         hppa*64*)
9344           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9345           ;;
9346         ia64*)
9347           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348           ;;
9349         *)
9350         
9351           # Older versions of the 11.00 compiler do not understand -b yet
9352           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9353           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9354 $as_echo_n "checking if $CC understands -b... " >&6; }
9355 if ${lt_cv_prog_compiler__b+:} false; then :
9356   $as_echo_n "(cached) " >&6
9357 else
9358   lt_cv_prog_compiler__b=no
9359    save_LDFLAGS="$LDFLAGS"
9360    LDFLAGS="$LDFLAGS -b"
9361    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363      # The linker can only warn and ignore the option if not recognized
9364      # So say no if there are warnings
9365      if test -s conftest.err; then
9366        # Append any errors to the config.log.
9367        cat conftest.err 1>&5
9368        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9369        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370        if diff conftest.exp conftest.er2 >/dev/null; then
9371          lt_cv_prog_compiler__b=yes
9372        fi
9373      else
9374        lt_cv_prog_compiler__b=yes
9375      fi
9376    fi
9377    $RM -r conftest*
9378    LDFLAGS="$save_LDFLAGS"
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9382 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9384 if test x"$lt_cv_prog_compiler__b" = xyes; then
9385     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 else
9387     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9390           ;;
9391         esac
9392       fi
9393       if test "$with_gnu_ld" = no; then
9394         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9395         hardcode_libdir_separator=:
9397         case $host_cpu in
9398         hppa*64*|ia64*)
9399           hardcode_direct=no
9400           hardcode_shlibpath_var=no
9401           ;;
9402         *)
9403           hardcode_direct=yes
9404           hardcode_direct_absolute=yes
9405           export_dynamic_flag_spec='${wl}-E'
9407           # hardcode_minus_L: Not really in the search PATH,
9408           # but as the default location of the library.
9409           hardcode_minus_L=yes
9410           ;;
9411         esac
9412       fi
9413       ;;
9415     irix5* | irix6* | nonstopux*)
9416       if test "$GCC" = yes; then
9417         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9418         # Try to use the -exported_symbol ld option, if it does not
9419         # work, assume that -exports_file does not work either and
9420         # implicitly export all symbols.
9421         # This should be the same for all languages, so no per-tag cache variable.
9422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9423 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9424 if ${lt_cv_irix_exported_symbol+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   save_LDFLAGS="$LDFLAGS"
9428            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9429            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h.  */
9431 int foo (void) { return 0; }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434   lt_cv_irix_exported_symbol=yes
9435 else
9436   lt_cv_irix_exported_symbol=no
9438 rm -f core conftest.err conftest.$ac_objext \
9439     conftest$ac_exeext conftest.$ac_ext
9440            LDFLAGS="$save_LDFLAGS"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9443 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9444         if test "$lt_cv_irix_exported_symbol" = yes; then
9445           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9446         fi
9447       else
9448         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9449         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9450       fi
9451       archive_cmds_need_lc='no'
9452       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9453       hardcode_libdir_separator=:
9454       inherit_rpath=yes
9455       link_all_deplibs=yes
9456       ;;
9458     netbsd*)
9459       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9460         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9461       else
9462         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9463       fi
9464       hardcode_libdir_flag_spec='-R$libdir'
9465       hardcode_direct=yes
9466       hardcode_shlibpath_var=no
9467       ;;
9469     newsos6)
9470       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471       hardcode_direct=yes
9472       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9473       hardcode_libdir_separator=:
9474       hardcode_shlibpath_var=no
9475       ;;
9477     *nto* | *qnx*)
9478       ;;
9480     openbsd*)
9481       if test -f /usr/libexec/ld.so; then
9482         hardcode_direct=yes
9483         hardcode_shlibpath_var=no
9484         hardcode_direct_absolute=yes
9485         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9486           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9487           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9488           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9489           export_dynamic_flag_spec='${wl}-E'
9490         else
9491           case $host_os in
9492            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9493              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9494              hardcode_libdir_flag_spec='-R$libdir'
9495              ;;
9496            *)
9497              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9498              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9499              ;;
9500           esac
9501         fi
9502       else
9503         ld_shlibs=no
9504       fi
9505       ;;
9507     os2*)
9508       hardcode_libdir_flag_spec='-L$libdir'
9509       hardcode_minus_L=yes
9510       allow_undefined_flag=unsupported
9511       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'
9512       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9513       ;;
9515     osf3*)
9516       if test "$GCC" = yes; then
9517         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9518         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9519       else
9520         allow_undefined_flag=' -expect_unresolved \*'
9521         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9522       fi
9523       archive_cmds_need_lc='no'
9524       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525       hardcode_libdir_separator=:
9526       ;;
9528     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9529       if test "$GCC" = yes; then
9530         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9531         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9532         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9533       else
9534         allow_undefined_flag=' -expect_unresolved \*'
9535         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9536         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~
9537         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9539         # Both c and cxx compiler support -rpath directly
9540         hardcode_libdir_flag_spec='-rpath $libdir'
9541       fi
9542       archive_cmds_need_lc='no'
9543       hardcode_libdir_separator=:
9544       ;;
9546     solaris*)
9547       no_undefined_flag=' -z defs'
9548       if test "$GCC" = yes; then
9549         wlarc='${wl}'
9550         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9551         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9552           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9553       else
9554         case `$CC -V 2>&1` in
9555         *"Compilers 5.0"*)
9556           wlarc=''
9557           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9559           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9560           ;;
9561         *)
9562           wlarc='${wl}'
9563           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9564           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9565           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9566           ;;
9567         esac
9568       fi
9569       hardcode_libdir_flag_spec='-R$libdir'
9570       hardcode_shlibpath_var=no
9571       case $host_os in
9572       solaris2.[0-5] | solaris2.[0-5].*) ;;
9573       *)
9574         # The compiler driver will combine and reorder linker options,
9575         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9576         # but is careful enough not to reorder.
9577         # Supported since Solaris 2.6 (maybe 2.5.1?)
9578         if test "$GCC" = yes; then
9579           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9580         else
9581           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9582         fi
9583         ;;
9584       esac
9585       link_all_deplibs=yes
9586       ;;
9588     sunos4*)
9589       if test "x$host_vendor" = xsequent; then
9590         # Use $CC to link under sequent, because it throws in some extra .o
9591         # files that make .init and .fini sections work.
9592         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9593       else
9594         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9595       fi
9596       hardcode_libdir_flag_spec='-L$libdir'
9597       hardcode_direct=yes
9598       hardcode_minus_L=yes
9599       hardcode_shlibpath_var=no
9600       ;;
9602     sysv4)
9603       case $host_vendor in
9604         sni)
9605           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606           hardcode_direct=yes # is this really true???
9607         ;;
9608         siemens)
9609           ## LD is ld it makes a PLAMLIB
9610           ## CC just makes a GrossModule.
9611           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9612           reload_cmds='$CC -r -o $output$reload_objs'
9613           hardcode_direct=no
9614         ;;
9615         motorola)
9616           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9618         ;;
9619       esac
9620       runpath_var='LD_RUN_PATH'
9621       hardcode_shlibpath_var=no
9622       ;;
9624     sysv4.3*)
9625       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626       hardcode_shlibpath_var=no
9627       export_dynamic_flag_spec='-Bexport'
9628       ;;
9630     sysv4*MP*)
9631       if test -d /usr/nec; then
9632         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633         hardcode_shlibpath_var=no
9634         runpath_var=LD_RUN_PATH
9635         hardcode_runpath_var=yes
9636         ld_shlibs=yes
9637       fi
9638       ;;
9640     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9641       no_undefined_flag='${wl}-z,text'
9642       archive_cmds_need_lc=no
9643       hardcode_shlibpath_var=no
9644       runpath_var='LD_RUN_PATH'
9646       if test "$GCC" = yes; then
9647         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649       else
9650         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652       fi
9653       ;;
9655     sysv5* | sco3.2v5* | sco5v6*)
9656       # Note: We can NOT use -z defs as we might desire, because we do not
9657       # link with -lc, and that would cause any symbols used from libc to
9658       # always be unresolved, which means just about no library would
9659       # ever link correctly.  If we're not using GNU ld we use -z text
9660       # though, which does catch some bad symbols but isn't as heavy-handed
9661       # as -z defs.
9662       no_undefined_flag='${wl}-z,text'
9663       allow_undefined_flag='${wl}-z,nodefs'
9664       archive_cmds_need_lc=no
9665       hardcode_shlibpath_var=no
9666       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9667       hardcode_libdir_separator=':'
9668       link_all_deplibs=yes
9669       export_dynamic_flag_spec='${wl}-Bexport'
9670       runpath_var='LD_RUN_PATH'
9672       if test "$GCC" = yes; then
9673         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675       else
9676         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678       fi
9679       ;;
9681     uts4*)
9682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683       hardcode_libdir_flag_spec='-L$libdir'
9684       hardcode_shlibpath_var=no
9685       ;;
9687     *)
9688       ld_shlibs=no
9689       ;;
9690     esac
9692     if test x$host_vendor = xsni; then
9693       case $host in
9694       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9695         export_dynamic_flag_spec='${wl}-Blargedynsym'
9696         ;;
9697       esac
9698     fi
9699   fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9702 $as_echo "$ld_shlibs" >&6; }
9703 test "$ld_shlibs" = no && can_build_shared=no
9705 with_gnu_ld=$with_gnu_ld
9708     
9709     
9710     
9712     
9713     
9714     
9716     
9717     
9718     
9722 # Do we need to explicitly link libc?
9724 case "x$archive_cmds_need_lc" in
9725 x|xyes)
9726   # Assume -lc should be added
9727   archive_cmds_need_lc=yes
9729   if test "$enable_shared" = yes && test "$GCC" = yes; then
9730     case $archive_cmds in
9731     *'~'*)
9732       # FIXME: we may have to deal with multi-command sequences.
9733       ;;
9734     '$CC '*)
9735       # Test whether the compiler implicitly links with -lc since on some
9736       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9737       # to ld, don't add -lc before -lgcc.
9738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9739 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9740 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   $RM conftest*
9744         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9746         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9747   (eval $ac_compile) 2>&5
9748   ac_status=$?
9749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9750   test $ac_status = 0; } 2>conftest.err; then
9751           soname=conftest
9752           lib=conftest
9753           libobjs=conftest.$ac_objext
9754           deplibs=
9755           wl=$lt_prog_compiler_wl
9756           pic_flag=$lt_prog_compiler_pic
9757           compiler_flags=-v
9758           linker_flags=-v
9759           verstring=
9760           output_objdir=.
9761           libname=conftest
9762           lt_save_allow_undefined_flag=$allow_undefined_flag
9763           allow_undefined_flag=
9764           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9765   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9766   ac_status=$?
9767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9768   test $ac_status = 0; }
9769           then
9770             lt_cv_archive_cmds_need_lc=no
9771           else
9772             lt_cv_archive_cmds_need_lc=yes
9773           fi
9774           allow_undefined_flag=$lt_save_allow_undefined_flag
9775         else
9776           cat conftest.err 1>&5
9777         fi
9778         $RM conftest*
9779         
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9782 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9783       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9784       ;;
9785     esac
9786   fi
9787   ;;
9788 esac
9791     
9792     
9793     
9796     
9797     
9798     
9801     
9802     
9803     
9806     
9807     
9808     
9811     
9812     
9813     
9816     
9817     
9818     
9821     
9822     
9823     
9826     
9827     
9828     
9831     
9832     
9833     
9836     
9837     
9838     
9841     
9842     
9843     
9846     
9847     
9848     
9851     
9852     
9853     
9856     
9857     
9858     
9861     
9862     
9863     
9866     
9867     
9868     
9871     
9872     
9873     
9876     
9877     
9878     
9881     
9882     
9883     
9886     
9887     
9888     
9891     
9892     
9893     
9896     
9897     
9898     
9901     
9902     
9903     
9906     
9907     
9908     
9911     
9912     
9913     
9916     
9917     
9918     
9921     
9922     
9923     
9926     
9927     
9928     
9931     
9932     
9933     
9936     
9937     
9938     
9941     
9942     
9943     
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9947 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9949 if test "$GCC" = yes; then
9950   case $host_os in
9951     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9952     *) lt_awk_arg="/^libraries:/" ;;
9953   esac
9954   case $host_os in
9955     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9956     *) lt_sed_strip_eq="s,=/,/,g" ;;
9957   esac
9958   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9959   case $lt_search_path_spec in
9960   *\;*)
9961     # if the path contains ";" then we assume it to be the separator
9962     # otherwise default to the standard path separator (i.e. ":") - it is
9963     # assumed that no part of a normal pathname contains ";" but that should
9964     # okay in the real world where ";" in dirpaths is itself problematic.
9965     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9966     ;;
9967   *)
9968     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9969     ;;
9970   esac
9971   # Ok, now we have the path, separated by spaces, we can step through it
9972   # and add multilib dir if necessary.
9973   lt_tmp_lt_search_path_spec=
9974   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9975   for lt_sys_path in $lt_search_path_spec; do
9976     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9977       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9978     else
9979       test -d "$lt_sys_path" && \
9980         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9981     fi
9982   done
9983   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9984 BEGIN {RS=" "; FS="/|\n";} {
9985   lt_foo="";
9986   lt_count=0;
9987   for (lt_i = NF; lt_i > 0; lt_i--) {
9988     if ($lt_i != "" && $lt_i != ".") {
9989       if ($lt_i == "..") {
9990         lt_count++;
9991       } else {
9992         if (lt_count == 0) {
9993           lt_foo="/" $lt_i lt_foo;
9994         } else {
9995           lt_count--;
9996         }
9997       }
9998     }
9999   }
10000   if (lt_foo != "") { lt_freq[lt_foo]++; }
10001   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10003   # AWK program above erroneously prepends '/' to C:/dos/paths
10004   # for these hosts.
10005   case $host_os in
10006     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10007       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10008   esac
10009   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10010 else
10011   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10013 library_names_spec=
10014 libname_spec='lib$name'
10015 soname_spec=
10016 shrext_cmds=".so"
10017 postinstall_cmds=
10018 postuninstall_cmds=
10019 finish_cmds=
10020 finish_eval=
10021 shlibpath_var=
10022 shlibpath_overrides_runpath=unknown
10023 version_type=none
10024 dynamic_linker="$host_os ld.so"
10025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10026 need_lib_prefix=unknown
10027 hardcode_into_libs=no
10029 # when you set need_version to no, make sure it does not cause -set_version
10030 # flags to be left without arguments
10031 need_version=unknown
10033 case $host_os in
10034 aix3*)
10035   version_type=linux
10036   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10037   shlibpath_var=LIBPATH
10039   # AIX 3 has no versioning support, so we append a major version to the name.
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   ;;
10043 aix[4-9]*)
10044   version_type=linux
10045   need_lib_prefix=no
10046   need_version=no
10047   hardcode_into_libs=yes
10048   if test "$host_cpu" = ia64; then
10049     # AIX 5 supports IA64
10050     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10051     shlibpath_var=LD_LIBRARY_PATH
10052   else
10053     # With GCC up to 2.95.x, collect2 would create an import file
10054     # for dependence libraries.  The import file would start with
10055     # the line `#! .'.  This would cause the generated library to
10056     # depend on `.', always an invalid library.  This was fixed in
10057     # development snapshots of GCC prior to 3.0.
10058     case $host_os in
10059       aix4 | aix4.[01] | aix4.[01].*)
10060       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10061            echo ' yes '
10062            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10063         :
10064       else
10065         can_build_shared=no
10066       fi
10067       ;;
10068     esac
10069     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10070     # soname into executable. Probably we can add versioning support to
10071     # collect2, so additional links can be useful in future.
10072     if test "$aix_use_runtimelinking" = yes; then
10073       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10074       # instead of lib<name>.a to let people know that these are not
10075       # typical AIX shared libraries.
10076       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077     else
10078       # We preserve .a as extension for shared libraries through AIX4.2
10079       # and later when we are not doing run time linking.
10080       library_names_spec='${libname}${release}.a $libname.a'
10081       soname_spec='${libname}${release}${shared_ext}$major'
10082     fi
10083     shlibpath_var=LIBPATH
10084   fi
10085   ;;
10087 amigaos*)
10088   case $host_cpu in
10089   powerpc)
10090     # Since July 2007 AmigaOS4 officially supports .so libraries.
10091     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093     ;;
10094   m68k)
10095     library_names_spec='$libname.ixlibrary $libname.a'
10096     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10097     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10098     ;;
10099   esac
10100   ;;
10102 beos*)
10103   library_names_spec='${libname}${shared_ext}'
10104   dynamic_linker="$host_os ld.so"
10105   shlibpath_var=LIBRARY_PATH
10106   ;;
10108 bsdi[45]*)
10109   version_type=linux
10110   need_version=no
10111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112   soname_spec='${libname}${release}${shared_ext}$major'
10113   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10114   shlibpath_var=LD_LIBRARY_PATH
10115   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10116   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10117   # the default ld.so.conf also contains /usr/contrib/lib and
10118   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10119   # libtool to hard-code these into programs
10120   ;;
10122 cygwin* | mingw* | pw32* | cegcc*)
10123   version_type=windows
10124   shrext_cmds=".dll"
10125   need_version=no
10126   need_lib_prefix=no
10128   case $GCC,$cc_basename in
10129   yes,*)
10130     # gcc
10131     library_names_spec='$libname.dll.a'
10132     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10133     postinstall_cmds='base_file=`basename \${file}`~
10134       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10135       dldir=$destdir/`dirname \$dlpath`~
10136       test -d \$dldir || mkdir -p \$dldir~
10137       $install_prog $dir/$dlname \$dldir/$dlname~
10138       chmod a+x \$dldir/$dlname~
10139       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10140         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10141       fi'
10142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10143       dlpath=$dir/\$dldll~
10144        $RM \$dlpath'
10145     shlibpath_overrides_runpath=yes
10147     case $host_os in
10148     cygwin*)
10149       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10150       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10152       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10153       ;;
10154     mingw* | cegcc*)
10155       # MinGW DLLs use traditional 'lib' prefix
10156       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10157       ;;
10158     pw32*)
10159       # pw32 DLLs use 'pw' prefix rather than 'lib'
10160       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10161       ;;
10162     esac
10163     dynamic_linker='Win32 ld.exe'
10164     ;;
10166   *,cl*)
10167     # Native MSVC
10168     libname_spec='$name'
10169     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10170     library_names_spec='${libname}.dll.lib'
10172     case $build_os in
10173     mingw*)
10174       sys_lib_search_path_spec=
10175       lt_save_ifs=$IFS
10176       IFS=';'
10177       for lt_path in $LIB
10178       do
10179         IFS=$lt_save_ifs
10180         # Let DOS variable expansion print the short 8.3 style file name.
10181         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10182         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10183       done
10184       IFS=$lt_save_ifs
10185       # Convert to MSYS style.
10186       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10187       ;;
10188     cygwin*)
10189       # Convert to unix form, then to dos form, then back to unix form
10190       # but this time dos style (no spaces!) so that the unix form looks
10191       # like /cygdrive/c/PROGRA~1:/cygdr...
10192       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10193       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10194       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10195       ;;
10196     *)
10197       sys_lib_search_path_spec="$LIB"
10198       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10199         # It is most probably a Windows format PATH.
10200         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10201       else
10202         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10203       fi
10204       # FIXME: find the short name or the path components, as spaces are
10205       # common. (e.g. "Program Files" -> "PROGRA~1")
10206       ;;
10207     esac
10209     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10210     postinstall_cmds='base_file=`basename \${file}`~
10211       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10212       dldir=$destdir/`dirname \$dlpath`~
10213       test -d \$dldir || mkdir -p \$dldir~
10214       $install_prog $dir/$dlname \$dldir/$dlname'
10215     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216       dlpath=$dir/\$dldll~
10217        $RM \$dlpath'
10218     shlibpath_overrides_runpath=yes
10219     dynamic_linker='Win32 link.exe'
10220     ;;
10222   *)
10223     # Assume MSVC wrapper
10224     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10225     dynamic_linker='Win32 ld.exe'
10226     ;;
10227   esac
10228   # FIXME: first we should search . and the directory the executable is in
10229   shlibpath_var=PATH
10230   ;;
10232 darwin* | rhapsody*)
10233   dynamic_linker="$host_os dyld"
10234   version_type=darwin
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10238   soname_spec='${libname}${release}${major}$shared_ext'
10239   shlibpath_overrides_runpath=yes
10240   shlibpath_var=DYLD_LIBRARY_PATH
10241   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10243   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10244   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10245   ;;
10247 dgux*)
10248   version_type=linux
10249   need_lib_prefix=no
10250   need_version=no
10251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10252   soname_spec='${libname}${release}${shared_ext}$major'
10253   shlibpath_var=LD_LIBRARY_PATH
10254   ;;
10256 freebsd1*)
10257   dynamic_linker=no
10258   ;;
10260 freebsd* | dragonfly*)
10261   # DragonFly does not have aout.  When/if they implement a new
10262   # versioning mechanism, adjust this.
10263   if test -x /usr/bin/objformat; then
10264     objformat=`/usr/bin/objformat`
10265   else
10266     case $host_os in
10267     freebsd[123]*) objformat=aout ;;
10268     *) objformat=elf ;;
10269     esac
10270   fi
10271   version_type=freebsd-$objformat
10272   case $version_type in
10273     freebsd-elf*)
10274       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10275       need_version=no
10276       need_lib_prefix=no
10277       ;;
10278     freebsd-*)
10279       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10280       need_version=yes
10281       ;;
10282   esac
10283   shlibpath_var=LD_LIBRARY_PATH
10284   case $host_os in
10285   freebsd2*)
10286     shlibpath_overrides_runpath=yes
10287     ;;
10288   freebsd3.[01]* | freebsdelf3.[01]*)
10289     shlibpath_overrides_runpath=yes
10290     hardcode_into_libs=yes
10291     ;;
10292   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10293   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10294     shlibpath_overrides_runpath=no
10295     hardcode_into_libs=yes
10296     ;;
10297   *) # from 4.6 on, and DragonFly
10298     shlibpath_overrides_runpath=yes
10299     hardcode_into_libs=yes
10300     ;;
10301   esac
10302   ;;
10304 gnu*)
10305   version_type=linux
10306   need_lib_prefix=no
10307   need_version=no
10308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309   soname_spec='${libname}${release}${shared_ext}$major'
10310   shlibpath_var=LD_LIBRARY_PATH
10311   hardcode_into_libs=yes
10312   ;;
10314 haiku*)
10315   version_type=linux
10316   need_lib_prefix=no
10317   need_version=no
10318   dynamic_linker="$host_os runtime_loader"
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10320   soname_spec='${libname}${release}${shared_ext}$major'
10321   shlibpath_var=LIBRARY_PATH
10322   shlibpath_overrides_runpath=yes
10323   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10324   hardcode_into_libs=yes
10325   ;;
10327 hpux9* | hpux10* | hpux11*)
10328   # Give a soname corresponding to the major version so that dld.sl refuses to
10329   # link against other versions.
10330   version_type=sunos
10331   need_lib_prefix=no
10332   need_version=no
10333   case $host_cpu in
10334   ia64*)
10335     shrext_cmds='.so'
10336     hardcode_into_libs=yes
10337     dynamic_linker="$host_os dld.so"
10338     shlibpath_var=LD_LIBRARY_PATH
10339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341     soname_spec='${libname}${release}${shared_ext}$major'
10342     if test "X$HPUX_IA64_MODE" = X32; then
10343       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10344     else
10345       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10346     fi
10347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348     ;;
10349   hppa*64*)
10350     shrext_cmds='.sl'
10351     hardcode_into_libs=yes
10352     dynamic_linker="$host_os dld.sl"
10353     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10354     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356     soname_spec='${libname}${release}${shared_ext}$major'
10357     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359     ;;
10360   *)
10361     shrext_cmds='.sl'
10362     dynamic_linker="$host_os dld.sl"
10363     shlibpath_var=SHLIB_PATH
10364     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366     soname_spec='${libname}${release}${shared_ext}$major'
10367     ;;
10368   esac
10369   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10370   postinstall_cmds='chmod 555 $lib'
10371   # or fails outright, so override atomically:
10372   install_override_mode=555
10373   ;;
10375 interix[3-9]*)
10376   version_type=linux
10377   need_lib_prefix=no
10378   need_version=no
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10380   soname_spec='${libname}${release}${shared_ext}$major'
10381   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   shlibpath_overrides_runpath=no
10384   hardcode_into_libs=yes
10385   ;;
10387 irix5* | irix6* | nonstopux*)
10388   case $host_os in
10389     nonstopux*) version_type=nonstopux ;;
10390     *)
10391         if test "$lt_cv_prog_gnu_ld" = yes; then
10392                 version_type=linux
10393         else
10394                 version_type=irix
10395         fi ;;
10396   esac
10397   need_lib_prefix=no
10398   need_version=no
10399   soname_spec='${libname}${release}${shared_ext}$major'
10400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10401   case $host_os in
10402   irix5* | nonstopux*)
10403     libsuff= shlibsuff=
10404     ;;
10405   *)
10406     case $LD in # libtool.m4 will add one of these switches to LD
10407     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10408       libsuff= shlibsuff= libmagic=32-bit;;
10409     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10410       libsuff=32 shlibsuff=N32 libmagic=N32;;
10411     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10412       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10413     *) libsuff= shlibsuff= libmagic=never-match;;
10414     esac
10415     ;;
10416   esac
10417   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10418   shlibpath_overrides_runpath=no
10419   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10420   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10421   hardcode_into_libs=yes
10422   ;;
10424 # No shared lib support for Linux oldld, aout, or coff.
10425 linux*oldld* | linux*aout* | linux*coff*)
10426   dynamic_linker=no
10427   ;;
10429 # This must be Linux ELF.
10430 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10431   version_type=linux
10432   need_lib_prefix=no
10433   need_version=no
10434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435   soname_spec='${libname}${release}${shared_ext}$major'
10436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10437   shlibpath_var=LD_LIBRARY_PATH
10438   shlibpath_overrides_runpath=no
10440   # Some binutils ld are patched to set DT_RUNPATH
10441   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   lt_cv_shlibpath_overrides_runpath=no
10445     save_LDFLAGS=$LDFLAGS
10446     save_libdir=$libdir
10447     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10448          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h.  */
10453 main ()
10456   ;
10457   return 0;
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"; then :
10461   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10462   lt_cv_shlibpath_overrides_runpath=yes
10465 rm -f core conftest.err conftest.$ac_objext \
10466     conftest$ac_exeext conftest.$ac_ext
10467     LDFLAGS=$save_LDFLAGS
10468     libdir=$save_libdir
10469     
10472   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10474   # This implies no fast_install, which is unacceptable.
10475   # Some rework will be needed to allow for fast_install
10476   # before this can be enabled.
10477   hardcode_into_libs=yes
10479   # Append ld.so.conf contents to the search path
10480   if test -f /etc/ld.so.conf; then
10481     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10482     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10483   fi
10485   # We used to test for /lib/ld.so.1 and disable shared libraries on
10486   # powerpc, because MkLinux only supported shared libraries with the
10487   # GNU dynamic linker.  Since this was broken with cross compilers,
10488   # most powerpc-linux boxes support dynamic linking these days and
10489   # people can always --disable-shared, the test was removed, and we
10490   # assume the GNU/Linux dynamic linker is in use.
10491   dynamic_linker='GNU/Linux ld.so'
10492   ;;
10494 netbsd*)
10495   version_type=sunos
10496   need_lib_prefix=no
10497   need_version=no
10498   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10500     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10501     dynamic_linker='NetBSD (a.out) ld.so'
10502   else
10503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10504     soname_spec='${libname}${release}${shared_ext}$major'
10505     dynamic_linker='NetBSD ld.elf_so'
10506   fi
10507   shlibpath_var=LD_LIBRARY_PATH
10508   shlibpath_overrides_runpath=yes
10509   hardcode_into_libs=yes
10510   ;;
10512 newsos6)
10513   version_type=linux
10514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   shlibpath_overrides_runpath=yes
10517   ;;
10519 *nto* | *qnx*)
10520   version_type=qnx
10521   need_lib_prefix=no
10522   need_version=no
10523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524   soname_spec='${libname}${release}${shared_ext}$major'
10525   shlibpath_var=LD_LIBRARY_PATH
10526   shlibpath_overrides_runpath=no
10527   hardcode_into_libs=yes
10528   dynamic_linker='ldqnx.so'
10529   ;;
10531 openbsd*)
10532   version_type=sunos
10533   sys_lib_dlsearch_path_spec="/usr/lib"
10534   need_lib_prefix=no
10535   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10536   case $host_os in
10537     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10538     *)                          need_version=no  ;;
10539   esac
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10544     case $host_os in
10545       openbsd2.[89] | openbsd2.[89].*)
10546         shlibpath_overrides_runpath=no
10547         ;;
10548       *)
10549         shlibpath_overrides_runpath=yes
10550         ;;
10551       esac
10552   else
10553     shlibpath_overrides_runpath=yes
10554   fi
10555   ;;
10557 os2*)
10558   libname_spec='$name'
10559   shrext_cmds=".dll"
10560   need_lib_prefix=no
10561   library_names_spec='$libname${shared_ext} $libname.a'
10562   dynamic_linker='OS/2 ld.exe'
10563   shlibpath_var=LIBPATH
10564   ;;
10566 osf3* | osf4* | osf5*)
10567   version_type=osf
10568   need_lib_prefix=no
10569   need_version=no
10570   soname_spec='${libname}${release}${shared_ext}$major'
10571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10574   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10575   ;;
10577 rdos*)
10578   dynamic_linker=no
10579   ;;
10581 solaris*)
10582   version_type=linux
10583   need_lib_prefix=no
10584   need_version=no
10585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586   soname_spec='${libname}${release}${shared_ext}$major'
10587   shlibpath_var=LD_LIBRARY_PATH
10588   shlibpath_overrides_runpath=yes
10589   hardcode_into_libs=yes
10590   # ldd complains unless libraries are executable
10591   postinstall_cmds='chmod +x $lib'
10592   ;;
10594 sunos4*)
10595   version_type=sunos
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10598   shlibpath_var=LD_LIBRARY_PATH
10599   shlibpath_overrides_runpath=yes
10600   if test "$with_gnu_ld" = yes; then
10601     need_lib_prefix=no
10602   fi
10603   need_version=yes
10604   ;;
10606 sysv4 | sysv4.3*)
10607   version_type=linux
10608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609   soname_spec='${libname}${release}${shared_ext}$major'
10610   shlibpath_var=LD_LIBRARY_PATH
10611   case $host_vendor in
10612     sni)
10613       shlibpath_overrides_runpath=no
10614       need_lib_prefix=no
10615       runpath_var=LD_RUN_PATH
10616       ;;
10617     siemens)
10618       need_lib_prefix=no
10619       ;;
10620     motorola)
10621       need_lib_prefix=no
10622       need_version=no
10623       shlibpath_overrides_runpath=no
10624       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10625       ;;
10626   esac
10627   ;;
10629 sysv4*MP*)
10630   if test -d /usr/nec ;then
10631     version_type=linux
10632     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10633     soname_spec='$libname${shared_ext}.$major'
10634     shlibpath_var=LD_LIBRARY_PATH
10635   fi
10636   ;;
10638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639   version_type=freebsd-elf
10640   need_lib_prefix=no
10641   need_version=no
10642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10643   soname_spec='${libname}${release}${shared_ext}$major'
10644   shlibpath_var=LD_LIBRARY_PATH
10645   shlibpath_overrides_runpath=yes
10646   hardcode_into_libs=yes
10647   if test "$with_gnu_ld" = yes; then
10648     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10649   else
10650     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10651     case $host_os in
10652       sco3.2v5*)
10653         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10654         ;;
10655     esac
10656   fi
10657   sys_lib_dlsearch_path_spec='/usr/lib'
10658   ;;
10660 tpf*)
10661   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10662   version_type=linux
10663   need_lib_prefix=no
10664   need_version=no
10665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666   shlibpath_var=LD_LIBRARY_PATH
10667   shlibpath_overrides_runpath=no
10668   hardcode_into_libs=yes
10669   ;;
10671 uts4*)
10672   version_type=linux
10673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674   soname_spec='${libname}${release}${shared_ext}$major'
10675   shlibpath_var=LD_LIBRARY_PATH
10676   ;;
10679   dynamic_linker=no
10680   ;;
10681 esac
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10683 $as_echo "$dynamic_linker" >&6; }
10684 test "$dynamic_linker" = no && can_build_shared=no
10686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10687 if test "$GCC" = yes; then
10688   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10691 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10692   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10694 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10695   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10699     
10700     
10701     
10704     
10705     
10706     
10709     
10710     
10711     
10714     
10715     
10716     
10719     
10720     
10721     
10724     
10725     
10726     
10729     
10730     
10731     
10734     
10735     
10736     
10739     
10740     
10741     
10744     
10745     
10746     
10749     
10750     
10751     
10754     
10755     
10756     
10759     
10760     
10761     
10764     
10765     
10766     
10769     
10770     
10771     
10774     
10775     
10776     
10779     
10780     
10781     
10784     
10785     
10786     
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10790 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10791 hardcode_action=
10792 if test -n "$hardcode_libdir_flag_spec" ||
10793    test -n "$runpath_var" ||
10794    test "X$hardcode_automatic" = "Xyes" ; then
10796   # We can hardcode non-existent directories.
10797   if test "$hardcode_direct" != no &&
10798      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10799      # have to relink, otherwise we might link with an installed library
10800      # when we should be linking with a yet-to-be-installed one
10801      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10802      test "$hardcode_minus_L" != no; then
10803     # Linking always hardcodes the temporary library directory.
10804     hardcode_action=relink
10805   else
10806     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10807     hardcode_action=immediate
10808   fi
10809 else
10810   # We cannot hardcode anything, or else we can only hardcode existing
10811   # directories.
10812   hardcode_action=unsupported
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10815 $as_echo "$hardcode_action" >&6; }
10817 if test "$hardcode_action" = relink ||
10818    test "$inherit_rpath" = yes; then
10819   # Fast installation is not supported
10820   enable_fast_install=no
10821 elif test "$shlibpath_overrides_runpath" = yes ||
10822      test "$enable_shared" = no; then
10823   # Fast installation is not necessary
10824   enable_fast_install=needless
10827     
10828     
10829     
10832   if test "x$enable_dlopen" != xyes; then
10833   enable_dlopen=unknown
10834   enable_dlopen_self=unknown
10835   enable_dlopen_self_static=unknown
10836 else
10837   lt_cv_dlopen=no
10838   lt_cv_dlopen_libs=
10840   case $host_os in
10841   beos*)
10842     lt_cv_dlopen="load_add_on"
10843     lt_cv_dlopen_libs=
10844     lt_cv_dlopen_self=yes
10845     ;;
10847   mingw* | pw32* | cegcc*)
10848     lt_cv_dlopen="LoadLibrary"
10849     lt_cv_dlopen_libs=
10850     ;;
10852   cygwin*)
10853     lt_cv_dlopen="dlopen"
10854     lt_cv_dlopen_libs=
10855     ;;
10857   darwin*)
10858   # if libdl is installed we need to link against it
10859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10861 if ${ac_cv_lib_dl_dlopen+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-ldl  $LIBS"
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h.  */
10869 /* Override any GCC internal prototype to avoid an error.
10870    Use char because int might match the return type of a GCC
10871    builtin and then its argument prototype would still apply.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char dlopen ();
10877 main ()
10879 return dlopen ();
10880   ;
10881   return 0;
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885   ac_cv_lib_dl_dlopen=yes
10886 else
10887   ac_cv_lib_dl_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext \
10890     conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10895 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897 else
10898   
10899     lt_cv_dlopen="dyld"
10900     lt_cv_dlopen_libs=
10901     lt_cv_dlopen_self=yes
10902     
10905     ;;
10907   *)
10908     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10909 if test "x$ac_cv_func_shl_load" = xyes; then :
10910   lt_cv_dlopen="shl_load"
10911 else
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10913 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10914 if ${ac_cv_lib_dld_shl_load+:} false; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   ac_check_lib_save_LIBS=$LIBS
10918 LIBS="-ldld  $LIBS"
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h.  */
10922 /* Override any GCC internal prototype to avoid an error.
10923    Use char because int might match the return type of a GCC
10924    builtin and then its argument prototype would still apply.  */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 char shl_load ();
10930 main ()
10932 return shl_load ();
10933   ;
10934   return 0;
10936 _ACEOF
10937 if ac_fn_c_try_link "$LINENO"; then :
10938   ac_cv_lib_dld_shl_load=yes
10939 else
10940   ac_cv_lib_dld_shl_load=no
10942 rm -f core conftest.err conftest.$ac_objext \
10943     conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10947 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10948 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10949   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10950 else
10951   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10952 if test "x$ac_cv_func_dlopen" = xyes; then :
10953   lt_cv_dlopen="dlopen"
10954 else
10955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10957 if ${ac_cv_lib_dl_dlopen+:} false; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-ldl  $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10965 /* Override any GCC internal prototype to avoid an error.
10966    Use char because int might match the return type of a GCC
10967    builtin and then its argument prototype would still apply.  */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 char dlopen ();
10973 main ()
10975 return dlopen ();
10976   ;
10977   return 0;
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981   ac_cv_lib_dl_dlopen=yes
10982 else
10983   ac_cv_lib_dl_dlopen=no
10985 rm -f core conftest.err conftest.$ac_objext \
10986     conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10990 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10991 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10992   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10995 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10996 if ${ac_cv_lib_svld_dlopen+:} false; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999   ac_check_lib_save_LIBS=$LIBS
11000 LIBS="-lsvld  $LIBS"
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h.  */
11004 /* Override any GCC internal prototype to avoid an error.
11005    Use char because int might match the return type of a GCC
11006    builtin and then its argument prototype would still apply.  */
11007 #ifdef __cplusplus
11008 extern "C"
11009 #endif
11010 char dlopen ();
11012 main ()
11014 return dlopen ();
11015   ;
11016   return 0;
11018 _ACEOF
11019 if ac_fn_c_try_link "$LINENO"; then :
11020   ac_cv_lib_svld_dlopen=yes
11021 else
11022   ac_cv_lib_svld_dlopen=no
11024 rm -f core conftest.err conftest.$ac_objext \
11025     conftest$ac_exeext conftest.$ac_ext
11026 LIBS=$ac_check_lib_save_LIBS
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11029 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11030 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11031   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11032 else
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11034 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11035 if ${ac_cv_lib_dld_dld_link+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-ldld  $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h.  */
11043 /* Override any GCC internal prototype to avoid an error.
11044    Use char because int might match the return type of a GCC
11045    builtin and then its argument prototype would still apply.  */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char dld_link ();
11051 main ()
11053 return dld_link ();
11054   ;
11055   return 0;
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059   ac_cv_lib_dld_dld_link=yes
11060 else
11061   ac_cv_lib_dld_dld_link=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064     conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11068 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11069 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11070   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11073               
11076             
11079           
11082         
11085       
11088     ;;
11089   esac
11091   if test "x$lt_cv_dlopen" != xno; then
11092     enable_dlopen=yes
11093   else
11094     enable_dlopen=no
11095   fi
11097   case $lt_cv_dlopen in
11098   dlopen)
11099     save_CPPFLAGS="$CPPFLAGS"
11100     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11102     save_LDFLAGS="$LDFLAGS"
11103     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11105     save_LIBS="$LIBS"
11106     LIBS="$lt_cv_dlopen_libs $LIBS"
11108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11109 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11110 if ${lt_cv_dlopen_self+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113           if test "$cross_compiling" = yes; then :
11114   lt_cv_dlopen_self=cross
11115 else
11116   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11117   lt_status=$lt_dlunknown
11118   cat > conftest.$ac_ext <<_LT_EOF
11119 #line $LINENO "configure"
11120 #include "confdefs.h"
11122 #if HAVE_DLFCN_H
11123 #include <dlfcn.h>
11124 #endif
11126 #include <stdio.h>
11128 #ifdef RTLD_GLOBAL
11129 #  define LT_DLGLOBAL           RTLD_GLOBAL
11130 #else
11131 #  ifdef DL_GLOBAL
11132 #    define LT_DLGLOBAL         DL_GLOBAL
11133 #  else
11134 #    define LT_DLGLOBAL         0
11135 #  endif
11136 #endif
11138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11139    find out it does not work in some platform. */
11140 #ifndef LT_DLLAZY_OR_NOW
11141 #  ifdef RTLD_LAZY
11142 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11143 #  else
11144 #    ifdef DL_LAZY
11145 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11146 #    else
11147 #      ifdef RTLD_NOW
11148 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11149 #      else
11150 #        ifdef DL_NOW
11151 #          define LT_DLLAZY_OR_NOW      DL_NOW
11152 #        else
11153 #          define LT_DLLAZY_OR_NOW      0
11154 #        endif
11155 #      endif
11156 #    endif
11157 #  endif
11158 #endif
11160 /* When -fvisbility=hidden is used, assume the code has been annotated
11161    correspondingly for the symbols needed.  */
11162 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11163 int fnord () __attribute__((visibility("default")));
11164 #endif
11166 int fnord () { return 42; }
11167 int main ()
11169   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11170   int status = $lt_dlunknown;
11172   if (self)
11173     {
11174       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11175       else
11176         {
11177           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11178           else puts (dlerror ());
11179         }
11180       /* dlclose (self); */
11181     }
11182   else
11183     puts (dlerror ());
11185   return status;
11187 _LT_EOF
11188   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11189   (eval $ac_link) 2>&5
11190   ac_status=$?
11191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11193     (./conftest; exit; ) >&5 2>/dev/null
11194     lt_status=$?
11195     case x$lt_status in
11196       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11197       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11198       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11199     esac
11200   else :
11201     # compilation failed
11202     lt_cv_dlopen_self=no
11203   fi
11205 rm -fr conftest*
11207     
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11210 $as_echo "$lt_cv_dlopen_self" >&6; }
11212     if test "x$lt_cv_dlopen_self" = xyes; then
11213       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11214       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11215 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11216 if ${lt_cv_dlopen_self_static+:} false; then :
11217   $as_echo_n "(cached) " >&6
11218 else
11219           if test "$cross_compiling" = yes; then :
11220   lt_cv_dlopen_self_static=cross
11221 else
11222   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11223   lt_status=$lt_dlunknown
11224   cat > conftest.$ac_ext <<_LT_EOF
11225 #line $LINENO "configure"
11226 #include "confdefs.h"
11228 #if HAVE_DLFCN_H
11229 #include <dlfcn.h>
11230 #endif
11232 #include <stdio.h>
11234 #ifdef RTLD_GLOBAL
11235 #  define LT_DLGLOBAL           RTLD_GLOBAL
11236 #else
11237 #  ifdef DL_GLOBAL
11238 #    define LT_DLGLOBAL         DL_GLOBAL
11239 #  else
11240 #    define LT_DLGLOBAL         0
11241 #  endif
11242 #endif
11244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11245    find out it does not work in some platform. */
11246 #ifndef LT_DLLAZY_OR_NOW
11247 #  ifdef RTLD_LAZY
11248 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11249 #  else
11250 #    ifdef DL_LAZY
11251 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11252 #    else
11253 #      ifdef RTLD_NOW
11254 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11255 #      else
11256 #        ifdef DL_NOW
11257 #          define LT_DLLAZY_OR_NOW      DL_NOW
11258 #        else
11259 #          define LT_DLLAZY_OR_NOW      0
11260 #        endif
11261 #      endif
11262 #    endif
11263 #  endif
11264 #endif
11266 /* When -fvisbility=hidden is used, assume the code has been annotated
11267    correspondingly for the symbols needed.  */
11268 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11269 int fnord () __attribute__((visibility("default")));
11270 #endif
11272 int fnord () { return 42; }
11273 int main ()
11275   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276   int status = $lt_dlunknown;
11278   if (self)
11279     {
11280       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11281       else
11282         {
11283           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11284           else puts (dlerror ());
11285         }
11286       /* dlclose (self); */
11287     }
11288   else
11289     puts (dlerror ());
11291   return status;
11293 _LT_EOF
11294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11295   (eval $ac_link) 2>&5
11296   ac_status=$?
11297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11299     (./conftest; exit; ) >&5 2>/dev/null
11300     lt_status=$?
11301     case x$lt_status in
11302       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11303       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11304       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11305     esac
11306   else :
11307     # compilation failed
11308     lt_cv_dlopen_self_static=no
11309   fi
11311 rm -fr conftest*
11313       
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11316 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11317     fi
11319     CPPFLAGS="$save_CPPFLAGS"
11320     LDFLAGS="$save_LDFLAGS"
11321     LIBS="$save_LIBS"
11322     ;;
11323   esac
11325   case $lt_cv_dlopen_self in
11326   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11327   *) enable_dlopen_self=unknown ;;
11328   esac
11330   case $lt_cv_dlopen_self_static in
11331   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11332   *) enable_dlopen_self_static=unknown ;;
11333   esac
11336     
11337     
11338     
11341     
11342     
11343     
11346     
11347     
11348     
11351   
11352 striplib=
11353 old_striplib=
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11355 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11356 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11357   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11358   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 else
11362 # FIXME - insert some real tests, host_os isn't really good enough
11363   case $host_os in
11364   darwin*)
11365     if test -n "$STRIP" ; then
11366       striplib="$STRIP -x"
11367       old_striplib="$STRIP -S"
11368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369 $as_echo "yes" >&6; }
11370     else
11371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373     fi
11374     ;;
11375   *)
11376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378     ;;
11379   esac
11382     
11383     
11384     
11387     
11388     
11389     
11393   # Report which library types will actually be built
11394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11395 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11397 $as_echo "$can_build_shared" >&6; }
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11400 $as_echo_n "checking whether to build shared libraries... " >&6; }
11401   test "$can_build_shared" = "no" && enable_shared=no
11403   # On AIX, shared libraries and static libraries use the same namespace, and
11404   # are all built from PIC.
11405   case $host_os in
11406   aix3*)
11407     test "$enable_shared" = yes && enable_static=no
11408     if test -n "$RANLIB"; then
11409       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11410       postinstall_cmds='$RANLIB $lib'
11411     fi
11412     ;;
11414   aix[4-9]*)
11415     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11416       test "$enable_shared" = yes && enable_static=no
11417     fi
11418     ;;
11419   esac
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11421 $as_echo "$enable_shared" >&6; }
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11424 $as_echo_n "checking whether to build static libraries... " >&6; }
11425   # Make sure either enable_shared or enable_static is yes.
11426   test "$enable_shared" = yes || enable_static=yes
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11428 $as_echo "$enable_static" >&6; }
11430   
11434 ac_ext=c
11435 ac_cpp='$CPP $CPPFLAGS'
11436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11440 CC="$lt_save_CC"
11449        
11450        
11454         ac_config_commands="$ac_config_commands libtool"
11459 # Only expand once:
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11466     @%:@ Check whether --enable-maintainer-mode was given.
11467 if test "${enable_maintainer_mode+set}" = set; then :
11468   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11469 else
11470   USE_MAINTAINER_MODE=no
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11475    if test $USE_MAINTAINER_MODE = yes; then
11476   MAINTAINER_MODE_TRUE=
11477   MAINTAINER_MODE_FALSE='#'
11478 else
11479   MAINTAINER_MODE_TRUE='#'
11480   MAINTAINER_MODE_FALSE=
11483   MAINT=$MAINTAINER_MODE_TRUE
11484   
11487 if test `expr $GLIB_MINOR_VERSION \% 2` = 1 ; then
11488         debug_default=yes
11489 else
11490         debug_default=minimum
11493 @%:@ Check whether --enable-debug was given.
11494 if test "${enable_debug+set}" = set; then :
11495   enableval=$enable_debug; 
11496 else
11497   enable_debug=$debug_default
11500 @%:@ Check whether --enable-mem_check was given.
11501 if test "${enable_mem_check+set}" = set; then :
11502   enableval=$enable_mem_check; 
11503 else
11504   enable_mem_check=no
11507 @%:@ Check whether --enable-mem_profile was given.
11508 if test "${enable_mem_profile+set}" = set; then :
11509   enableval=$enable_mem_profile; 
11510 else
11511   enable_mem_profile=no
11514 @%:@ Check whether --enable-ansi was given.
11515 if test "${enable_ansi+set}" = set; then :
11516   enableval=$enable_ansi; 
11517 else
11518   enable_ansi=no
11521 @%:@ Check whether --enable-threads was given.
11522 if test "${enable_threads+set}" = set; then :
11523   enableval=$enable_threads; 
11524 else
11525   enable_threads=yes
11529 if test "x$enable_threads" != "xyes"; then
11530   enable_threads=no
11533 mem_warn=false
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable memory checking" >&5
11536 $as_echo_n "checking whether to enable memory checking... " >&6; }
11537 if test "x$enable_mem_check" = "xyes"; then
11538   $as_echo "@%:@define ENABLE_MEM_CHECK 1" >>confdefs.h
11540   
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 $as_echo "yes" >&6; }
11543   mem_warn=true
11544 else
11545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable memory profiling" >&5
11550 $as_echo_n "checking whether to enable memory profiling... " >&6; }
11551 if test "x$enable_mem_profile" = "xyes"; then
11552   $as_echo "@%:@define ENABLE_MEM_PROFILE 1" >>confdefs.h
11554   
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11557   mem_warn=true
11558 else
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11565 if $mem_warn ; then
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 
11567 **********************************************************************
11568  You have specified --enable-mem-profile or --enable-mem-check. 
11569  These options are not recommended; they have not been thoroughly 
11570  tested, and may cause unwanted side-effects. If --enable-mem-check is 
11571  specified, NO MEMORY WILL BE FREED, EVER.
11573  References to better memory debugging tools can be found at:
11575   http://people.redhat.com/otaylor/memprof/memtools.html
11577 **********************************************************************" >&5
11578 $as_echo "$as_me: WARNING: 
11579 **********************************************************************
11580  You have specified --enable-mem-profile or --enable-mem-check. 
11581  These options are not recommended; they have not been thoroughly 
11582  tested, and may cause unwanted side-effects. If --enable-mem-check is 
11583  specified, NO MEMORY WILL BE FREED, EVER.
11585  References to better memory debugging tools can be found at:
11587   http://people.redhat.com/otaylor/memprof/memtools.html
11589 **********************************************************************" >&2;}
11592 if test "x$enable_debug" = "xyes"; then
11593   test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
11594   GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
11595 else
11596   if test "x$enable_debug" = "xno"; then
11597     GLIB_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
11598   fi
11601 cat >>confdefs.h <<_ACEOF
11602 @%:@define G_COMPILED_WITH_DEBUGGING "${enable_debug}"
11603 _ACEOF
11606 # Checks for programs.
11607 ac_ext=c
11608 ac_cpp='$CPP $CPPFLAGS'
11609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11612 if test -n "$ac_tool_prefix"; then
11613   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if ${ac_cv_prog_CC+:} false; then :
11618   $as_echo_n "(cached) " >&6
11619 else
11620   if test -n "$CC"; then
11621   ac_cv_prog_CC="$CC" # Let the user override the test.
11622 else
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11626   IFS=$as_save_IFS
11627   test -z "$as_dir" && as_dir=.
11628     for ac_exec_ext in '' $ac_executable_extensions; do
11629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632     break 2
11633   fi
11634 done
11635   done
11636 IFS=$as_save_IFS
11640 CC=$ac_cv_prog_CC
11641 if test -n "$CC"; then
11642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11643 $as_echo "$CC" >&6; }
11644 else
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11651 if test -z "$ac_cv_prog_CC"; then
11652   ac_ct_CC=$CC
11653   # Extract the first word of "gcc", so it can be a program name with args.
11654 set dummy gcc; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11658   $as_echo_n "(cached) " >&6
11659 else
11660   if test -n "$ac_ct_CC"; then
11661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11666   IFS=$as_save_IFS
11667   test -z "$as_dir" && as_dir=.
11668     for ac_exec_ext in '' $ac_executable_extensions; do
11669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670     ac_cv_prog_ac_ct_CC="gcc"
11671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672     break 2
11673   fi
11674 done
11675   done
11676 IFS=$as_save_IFS
11680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11681 if test -n "$ac_ct_CC"; then
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11683 $as_echo "$ac_ct_CC" >&6; }
11684 else
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11689   if test "x$ac_ct_CC" = x; then
11690     CC=""
11691   else
11692     case $cross_compiling:$ac_tool_warned in
11693 yes:)
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11696 ac_tool_warned=yes ;;
11697 esac
11698     CC=$ac_ct_CC
11699   fi
11700 else
11701   CC="$ac_cv_prog_CC"
11704 if test -z "$CC"; then
11705           if test -n "$ac_tool_prefix"; then
11706     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11707 set dummy ${ac_tool_prefix}cc; ac_word=$2
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 $as_echo_n "checking for $ac_word... " >&6; }
11710 if ${ac_cv_prog_CC+:} false; then :
11711   $as_echo_n "(cached) " >&6
11712 else
11713   if test -n "$CC"; then
11714   ac_cv_prog_CC="$CC" # Let the user override the test.
11715 else
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11719   IFS=$as_save_IFS
11720   test -z "$as_dir" && as_dir=.
11721     for ac_exec_ext in '' $ac_executable_extensions; do
11722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723     ac_cv_prog_CC="${ac_tool_prefix}cc"
11724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725     break 2
11726   fi
11727 done
11728   done
11729 IFS=$as_save_IFS
11733 CC=$ac_cv_prog_CC
11734 if test -n "$CC"; then
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11736 $as_echo "$CC" >&6; }
11737 else
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11743   fi
11745 if test -z "$CC"; then
11746   # Extract the first word of "cc", so it can be a program name with args.
11747 set dummy cc; ac_word=$2
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11749 $as_echo_n "checking for $ac_word... " >&6; }
11750 if ${ac_cv_prog_CC+:} false; then :
11751   $as_echo_n "(cached) " >&6
11752 else
11753   if test -n "$CC"; then
11754   ac_cv_prog_CC="$CC" # Let the user override the test.
11755 else
11756   ac_prog_rejected=no
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11760   IFS=$as_save_IFS
11761   test -z "$as_dir" && as_dir=.
11762     for ac_exec_ext in '' $ac_executable_extensions; do
11763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11765        ac_prog_rejected=yes
11766        continue
11767      fi
11768     ac_cv_prog_CC="cc"
11769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770     break 2
11771   fi
11772 done
11773   done
11774 IFS=$as_save_IFS
11776 if test $ac_prog_rejected = yes; then
11777   # We found a bogon in the path, so make sure we never use it.
11778   set dummy $ac_cv_prog_CC
11779   shift
11780   if test $@%:@ != 0; then
11781     # We chose a different compiler from the bogus one.
11782     # However, it has the same basename, so the bogon will be chosen
11783     # first if we set CC to just the basename; use the full file name.
11784     shift
11785     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11786   fi
11790 CC=$ac_cv_prog_CC
11791 if test -n "$CC"; then
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11793 $as_echo "$CC" >&6; }
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11801 if test -z "$CC"; then
11802   if test -n "$ac_tool_prefix"; then
11803   for ac_prog in cl.exe
11804   do
11805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_CC+:} false; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812   if test -n "$CC"; then
11813   ac_cv_prog_CC="$CC" # Let the user override the test.
11814 else
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11818   IFS=$as_save_IFS
11819   test -z "$as_dir" && as_dir=.
11820     for ac_exec_ext in '' $ac_executable_extensions; do
11821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824     break 2
11825   fi
11826 done
11827   done
11828 IFS=$as_save_IFS
11832 CC=$ac_cv_prog_CC
11833 if test -n "$CC"; then
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11835 $as_echo "$CC" >&6; }
11836 else
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11842     test -n "$CC" && break
11843   done
11845 if test -z "$CC"; then
11846   ac_ct_CC=$CC
11847   for ac_prog in cl.exe
11849   # Extract the first word of "$ac_prog", so it can be a program name with args.
11850 set dummy $ac_prog; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   if test -n "$ac_ct_CC"; then
11857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11858 else
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11862   IFS=$as_save_IFS
11863   test -z "$as_dir" && as_dir=.
11864     for ac_exec_ext in '' $ac_executable_extensions; do
11865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866     ac_cv_prog_ac_ct_CC="$ac_prog"
11867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868     break 2
11869   fi
11870 done
11871   done
11872 IFS=$as_save_IFS
11876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877 if test -n "$ac_ct_CC"; then
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11879 $as_echo "$ac_ct_CC" >&6; }
11880 else
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11886   test -n "$ac_ct_CC" && break
11887 done
11889   if test "x$ac_ct_CC" = x; then
11890     CC=""
11891   else
11892     case $cross_compiling:$ac_tool_warned in
11893 yes:)
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11896 ac_tool_warned=yes ;;
11897 esac
11898     CC=$ac_ct_CC
11899   fi
11905 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11907 as_fn_error $? "no acceptable C compiler found in \$PATH
11908 See \`config.log' for more details" "$LINENO" 5; }
11910 # Provide some information about the compiler.
11911 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11912 set X $ac_compile
11913 ac_compiler=$2
11914 for ac_option in --version -v -V -qversion; do
11915   { { ac_try="$ac_compiler $ac_option >&5"
11916 case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11921 $as_echo "$ac_try_echo"; } >&5
11922   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11923   ac_status=$?
11924   if test -s conftest.err; then
11925     sed '10a\
11926 ... rest of stderr output deleted ...
11927          10q' conftest.err >conftest.er1
11928     cat conftest.er1 >&5
11929   fi
11930   rm -f conftest.er1 conftest.err
11931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11932   test $ac_status = 0; }
11933 done
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11936 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11937 if ${ac_cv_c_compiler_gnu+:} false; then :
11938   $as_echo_n "(cached) " >&6
11939 else
11940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h.  */
11944 main ()
11946 #ifndef __GNUC__
11947        choke me
11948 #endif
11950   ;
11951   return 0;
11953 _ACEOF
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955   ac_compiler_gnu=yes
11956 else
11957   ac_compiler_gnu=no
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11964 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11965 if test $ac_compiler_gnu = yes; then
11966   GCC=yes
11967 else
11968   GCC=
11970 ac_test_CFLAGS=${CFLAGS+set}
11971 ac_save_CFLAGS=$CFLAGS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11973 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11974 if ${ac_cv_prog_cc_g+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_save_c_werror_flag=$ac_c_werror_flag
11978    ac_c_werror_flag=yes
11979    ac_cv_prog_cc_g=no
11980    CFLAGS="-g"
11981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h.  */
11985 main ()
11988   ;
11989   return 0;
11991 _ACEOF
11992 if ac_fn_c_try_compile "$LINENO"; then :
11993   ac_cv_prog_cc_g=yes
11994 else
11995   CFLAGS=""
11996       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h.  */
12000 main ()
12003   ;
12004   return 0;
12006 _ACEOF
12007 if ac_fn_c_try_compile "$LINENO"; then :
12008   
12009 else
12010   ac_c_werror_flag=$ac_save_c_werror_flag
12011          CFLAGS="-g"
12012          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h.  */
12016 main ()
12019   ;
12020   return 0;
12022 _ACEOF
12023 if ac_fn_c_try_compile "$LINENO"; then :
12024   ac_cv_prog_cc_g=yes
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031    ac_c_werror_flag=$ac_save_c_werror_flag
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12034 $as_echo "$ac_cv_prog_cc_g" >&6; }
12035 if test "$ac_test_CFLAGS" = set; then
12036   CFLAGS=$ac_save_CFLAGS
12037 elif test $ac_cv_prog_cc_g = yes; then
12038   if test "$GCC" = yes; then
12039     CFLAGS="-g -O2"
12040   else
12041     CFLAGS="-g"
12042   fi
12043 else
12044   if test "$GCC" = yes; then
12045     CFLAGS="-O2"
12046   else
12047     CFLAGS=
12048   fi
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12051 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12052 if ${ac_cv_prog_cc_c89+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   ac_cv_prog_cc_c89=no
12056 ac_save_CC=$CC
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h.  */
12059 #include <stdarg.h>
12060 #include <stdio.h>
12061 #include <sys/types.h>
12062 #include <sys/stat.h>
12063 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12064 struct buf { int x; };
12065 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12066 static char *e (p, i)
12067      char **p;
12068      int i;
12070   return p[i];
12072 static char *f (char * (*g) (char **, int), char **p, ...)
12074   char *s;
12075   va_list v;
12076   va_start (v,p);
12077   s = g (p, va_arg (v,int));
12078   va_end (v);
12079   return s;
12082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12083    function prototypes and stuff, but not '\xHH' hex character constants.
12084    These don't provoke an error unfortunately, instead are silently treated
12085    as 'x'.  The following induces an error, until -std is added to get
12086    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12087    array size at least.  It's necessary to write '\x00'==0 to get something
12088    that's true only with -std.  */
12089 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12092    inside strings and character constants.  */
12093 #define FOO(x) 'x'
12094 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12096 int test (int i, double x);
12097 struct s1 {int (*f) (int a);};
12098 struct s2 {int (*f) (double a);};
12099 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12100 int argc;
12101 char **argv;
12103 main ()
12105 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12106   ;
12107   return 0;
12109 _ACEOF
12110 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12111         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12113   CC="$ac_save_CC $ac_arg"
12114   if ac_fn_c_try_compile "$LINENO"; then :
12115   ac_cv_prog_cc_c89=$ac_arg
12117 rm -f core conftest.err conftest.$ac_objext
12118   test "x$ac_cv_prog_cc_c89" != "xno" && break
12119 done
12120 rm -f conftest.$ac_ext
12121 CC=$ac_save_CC
12124 # AC_CACHE_VAL
12125 case "x$ac_cv_prog_cc_c89" in
12126   x)
12127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12128 $as_echo "none needed" >&6; } ;;
12129   xno)
12130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12131 $as_echo "unsupported" >&6; } ;;
12132   *)
12133     CC="$CC $ac_cv_prog_cc_c89"
12134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12135 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12136 esac
12137 if test "x$ac_cv_prog_cc_c89" != xno; then :
12138   
12141 ac_ext=c
12142 ac_cpp='$CPP $CPPFLAGS'
12143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12147 depcc="$CC"   am_compiler_list=
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12150 $as_echo_n "checking dependency style of $depcc... " >&6; }
12151 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12155   # We make a subdir and do the tests there.  Otherwise we can end up
12156   # making bogus files that we don't know about and never remove.  For
12157   # instance it was reported that on HP-UX the gcc test will end up
12158   # making a dummy file named `D' -- because `-MD' means `put the output
12159   # in D'.
12160   mkdir conftest.dir
12161   # Copy depcomp to subdir because otherwise we won't find it if we're
12162   # using a relative directory.
12163   cp "$am_depcomp" conftest.dir
12164   cd conftest.dir
12165   # We will build objects and dependencies in a subdirectory because
12166   # it helps to detect inapplicable dependency modes.  For instance
12167   # both Tru64's cc and ICC support -MD to output dependencies as a
12168   # side effect of compilation, but ICC will put the dependencies in
12169   # the current directory while Tru64 will put them in the object
12170   # directory.
12171   mkdir sub
12173   am_cv_CC_dependencies_compiler_type=none
12174   if test "$am_compiler_list" = ""; then
12175      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12176   fi
12177   am__universal=false
12178   case " $depcc " in #(
12179      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12180      esac
12182   for depmode in $am_compiler_list; do
12183     # Setup a source with many dependencies, because some compilers
12184     # like to wrap large dependency lists on column 80 (with \), and
12185     # we should not choose a depcomp mode which is confused by this.
12186     #
12187     # We need to recreate these files for each test, as the compiler may
12188     # overwrite some of them when testing with obscure command lines.
12189     # This happens at least with the AIX C compiler.
12190     : > sub/conftest.c
12191     for i in 1 2 3 4 5 6; do
12192       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12193       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12194       # Solaris 8's {/usr,}/bin/sh.
12195       touch sub/conftst$i.h
12196     done
12197     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12199     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12200     # mode.  It turns out that the SunPro C++ compiler does not properly
12201     # handle `-M -o', and we need to detect this.  Also, some Intel
12202     # versions had trouble with output in subdirs
12203     am__obj=sub/conftest.${OBJEXT-o}
12204     am__minus_obj="-o $am__obj"
12205     case $depmode in
12206     gcc)
12207       # This depmode causes a compiler race in universal mode.
12208       test "$am__universal" = false || continue
12209       ;;
12210     nosideeffect)
12211       # after this tag, mechanisms are not by side-effect, so they'll
12212       # only be used when explicitly requested
12213       if test "x$enable_dependency_tracking" = xyes; then
12214         continue
12215       else
12216         break
12217       fi
12218       ;;
12219     msvisualcpp | msvcmsys)
12220       # This compiler won't grok `-c -o', but also, the minuso test has
12221       # not run yet.  These depmodes are late enough in the game, and
12222       # so weak that their functioning should not be impacted.
12223       am__obj=conftest.${OBJEXT-o}
12224       am__minus_obj=
12225       ;;
12226     none) break ;;
12227     esac
12228     if depmode=$depmode \
12229        source=sub/conftest.c object=$am__obj \
12230        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12231        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12232          >/dev/null 2>conftest.err &&
12233        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12234        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12235        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12236        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12237       # icc doesn't choke on unknown options, it will just issue warnings
12238       # or remarks (even with -Werror).  So we grep stderr for any message
12239       # that says an option was ignored or not supported.
12240       # When given -MP, icc 7.0 and 7.1 complain thusly:
12241       #   icc: Command line warning: ignoring option '-M'; no argument required
12242       # The diagnosis changed in icc 8.0:
12243       #   icc: Command line remark: option '-MP' not supported
12244       if (grep 'ignoring option' conftest.err ||
12245           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12246         am_cv_CC_dependencies_compiler_type=$depmode
12247         break
12248       fi
12249     fi
12250   done
12252   cd ..
12253   rm -rf conftest.dir
12254 else
12255   am_cv_CC_dependencies_compiler_type=none
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12260 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12261 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12263  if 
12264   test "x$enable_dependency_tracking" != xno \
12265   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12266   am__fastdepCC_TRUE=
12267   am__fastdepCC_FALSE='#'
12268 else
12269   am__fastdepCC_TRUE='#'
12270   am__fastdepCC_FALSE=
12274 ac_ext=c
12275 ac_cpp='$CPP $CPPFLAGS'
12276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12279 if test -n "$ac_tool_prefix"; then
12280   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_CC+:} false; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   if test -n "$CC"; then
12288   ac_cv_prog_CC="$CC" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12307 CC=$ac_cv_prog_CC
12308 if test -n "$CC"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12310 $as_echo "$CC" >&6; }
12311 else
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12318 if test -z "$ac_cv_prog_CC"; then
12319   ac_ct_CC=$CC
12320   # Extract the first word of "gcc", so it can be a program name with args.
12321 set dummy gcc; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12325   $as_echo_n "(cached) " >&6
12326 else
12327   if test -n "$ac_ct_CC"; then
12328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12329 else
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12333   IFS=$as_save_IFS
12334   test -z "$as_dir" && as_dir=.
12335     for ac_exec_ext in '' $ac_executable_extensions; do
12336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12337     ac_cv_prog_ac_ct_CC="gcc"
12338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339     break 2
12340   fi
12341 done
12342   done
12343 IFS=$as_save_IFS
12347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12348 if test -n "$ac_ct_CC"; then
12349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12350 $as_echo "$ac_ct_CC" >&6; }
12351 else
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12356   if test "x$ac_ct_CC" = x; then
12357     CC=""
12358   else
12359     case $cross_compiling:$ac_tool_warned in
12360 yes:)
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12363 ac_tool_warned=yes ;;
12364 esac
12365     CC=$ac_ct_CC
12366   fi
12367 else
12368   CC="$ac_cv_prog_CC"
12371 if test -z "$CC"; then
12372           if test -n "$ac_tool_prefix"; then
12373     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}cc; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_prog_CC+:} false; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   if test -n "$CC"; then
12381   ac_cv_prog_CC="$CC" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12386   IFS=$as_save_IFS
12387   test -z "$as_dir" && as_dir=.
12388     for ac_exec_ext in '' $ac_executable_extensions; do
12389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12390     ac_cv_prog_CC="${ac_tool_prefix}cc"
12391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392     break 2
12393   fi
12394 done
12395   done
12396 IFS=$as_save_IFS
12400 CC=$ac_cv_prog_CC
12401 if test -n "$CC"; then
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12403 $as_echo "$CC" >&6; }
12404 else
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12410   fi
12412 if test -z "$CC"; then
12413   # Extract the first word of "cc", so it can be a program name with args.
12414 set dummy cc; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_prog_CC+:} false; then :
12418   $as_echo_n "(cached) " >&6
12419 else
12420   if test -n "$CC"; then
12421   ac_cv_prog_CC="$CC" # Let the user override the test.
12422 else
12423   ac_prog_rejected=no
12424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12427   IFS=$as_save_IFS
12428   test -z "$as_dir" && as_dir=.
12429     for ac_exec_ext in '' $ac_executable_extensions; do
12430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12431     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12432        ac_prog_rejected=yes
12433        continue
12434      fi
12435     ac_cv_prog_CC="cc"
12436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437     break 2
12438   fi
12439 done
12440   done
12441 IFS=$as_save_IFS
12443 if test $ac_prog_rejected = yes; then
12444   # We found a bogon in the path, so make sure we never use it.
12445   set dummy $ac_cv_prog_CC
12446   shift
12447   if test $@%:@ != 0; then
12448     # We chose a different compiler from the bogus one.
12449     # However, it has the same basename, so the bogon will be chosen
12450     # first if we set CC to just the basename; use the full file name.
12451     shift
12452     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12453   fi
12457 CC=$ac_cv_prog_CC
12458 if test -n "$CC"; then
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12460 $as_echo "$CC" >&6; }
12461 else
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12468 if test -z "$CC"; then
12469   if test -n "$ac_tool_prefix"; then
12470   for ac_prog in cl.exe
12471   do
12472     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if ${ac_cv_prog_CC+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479   if test -n "$CC"; then
12480   ac_cv_prog_CC="$CC" # Let the user override the test.
12481 else
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485   IFS=$as_save_IFS
12486   test -z "$as_dir" && as_dir=.
12487     for ac_exec_ext in '' $ac_executable_extensions; do
12488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491     break 2
12492   fi
12493 done
12494   done
12495 IFS=$as_save_IFS
12499 CC=$ac_cv_prog_CC
12500 if test -n "$CC"; then
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12502 $as_echo "$CC" >&6; }
12503 else
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12509     test -n "$CC" && break
12510   done
12512 if test -z "$CC"; then
12513   ac_ct_CC=$CC
12514   for ac_prog in cl.exe
12516   # Extract the first word of "$ac_prog", so it can be a program name with args.
12517 set dummy $ac_prog; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   if test -n "$ac_ct_CC"; then
12524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12525 else
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12529   IFS=$as_save_IFS
12530   test -z "$as_dir" && as_dir=.
12531     for ac_exec_ext in '' $ac_executable_extensions; do
12532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12533     ac_cv_prog_ac_ct_CC="$ac_prog"
12534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12535     break 2
12536   fi
12537 done
12538   done
12539 IFS=$as_save_IFS
12543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12544 if test -n "$ac_ct_CC"; then
12545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12546 $as_echo "$ac_ct_CC" >&6; }
12547 else
12548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12553   test -n "$ac_ct_CC" && break
12554 done
12556   if test "x$ac_ct_CC" = x; then
12557     CC=""
12558   else
12559     case $cross_compiling:$ac_tool_warned in
12560 yes:)
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12563 ac_tool_warned=yes ;;
12564 esac
12565     CC=$ac_ct_CC
12566   fi
12572 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12574 as_fn_error $? "no acceptable C compiler found in \$PATH
12575 See \`config.log' for more details" "$LINENO" 5; }
12577 # Provide some information about the compiler.
12578 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12579 set X $ac_compile
12580 ac_compiler=$2
12581 for ac_option in --version -v -V -qversion; do
12582   { { ac_try="$ac_compiler $ac_option >&5"
12583 case "(($ac_try" in
12584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585   *) ac_try_echo=$ac_try;;
12586 esac
12587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12588 $as_echo "$ac_try_echo"; } >&5
12589   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12590   ac_status=$?
12591   if test -s conftest.err; then
12592     sed '10a\
12593 ... rest of stderr output deleted ...
12594          10q' conftest.err >conftest.er1
12595     cat conftest.er1 >&5
12596   fi
12597   rm -f conftest.er1 conftest.err
12598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12599   test $ac_status = 0; }
12600 done
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12603 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12604 if ${ac_cv_c_compiler_gnu+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12611 main ()
12613 #ifndef __GNUC__
12614        choke me
12615 #endif
12617   ;
12618   return 0;
12620 _ACEOF
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622   ac_compiler_gnu=yes
12623 else
12624   ac_compiler_gnu=no
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12631 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12632 if test $ac_compiler_gnu = yes; then
12633   GCC=yes
12634 else
12635   GCC=
12637 ac_test_CFLAGS=${CFLAGS+set}
12638 ac_save_CFLAGS=$CFLAGS
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12640 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12641 if ${ac_cv_prog_cc_g+:} false; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644   ac_save_c_werror_flag=$ac_c_werror_flag
12645    ac_c_werror_flag=yes
12646    ac_cv_prog_cc_g=no
12647    CFLAGS="-g"
12648    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12652 main ()
12655   ;
12656   return 0;
12658 _ACEOF
12659 if ac_fn_c_try_compile "$LINENO"; then :
12660   ac_cv_prog_cc_g=yes
12661 else
12662   CFLAGS=""
12663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h.  */
12667 main ()
12670   ;
12671   return 0;
12673 _ACEOF
12674 if ac_fn_c_try_compile "$LINENO"; then :
12675   
12676 else
12677   ac_c_werror_flag=$ac_save_c_werror_flag
12678          CFLAGS="-g"
12679          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h.  */
12683 main ()
12686   ;
12687   return 0;
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691   ac_cv_prog_cc_g=yes
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698    ac_c_werror_flag=$ac_save_c_werror_flag
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12701 $as_echo "$ac_cv_prog_cc_g" >&6; }
12702 if test "$ac_test_CFLAGS" = set; then
12703   CFLAGS=$ac_save_CFLAGS
12704 elif test $ac_cv_prog_cc_g = yes; then
12705   if test "$GCC" = yes; then
12706     CFLAGS="-g -O2"
12707   else
12708     CFLAGS="-g"
12709   fi
12710 else
12711   if test "$GCC" = yes; then
12712     CFLAGS="-O2"
12713   else
12714     CFLAGS=
12715   fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12718 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12719 if ${ac_cv_prog_cc_c89+:} false; then :
12720   $as_echo_n "(cached) " >&6
12721 else
12722   ac_cv_prog_cc_c89=no
12723 ac_save_CC=$CC
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h.  */
12726 #include <stdarg.h>
12727 #include <stdio.h>
12728 #include <sys/types.h>
12729 #include <sys/stat.h>
12730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12731 struct buf { int x; };
12732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12733 static char *e (p, i)
12734      char **p;
12735      int i;
12737   return p[i];
12739 static char *f (char * (*g) (char **, int), char **p, ...)
12741   char *s;
12742   va_list v;
12743   va_start (v,p);
12744   s = g (p, va_arg (v,int));
12745   va_end (v);
12746   return s;
12749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12750    function prototypes and stuff, but not '\xHH' hex character constants.
12751    These don't provoke an error unfortunately, instead are silently treated
12752    as 'x'.  The following induces an error, until -std is added to get
12753    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12754    array size at least.  It's necessary to write '\x00'==0 to get something
12755    that's true only with -std.  */
12756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12758 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12759    inside strings and character constants.  */
12760 #define FOO(x) 'x'
12761 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12763 int test (int i, double x);
12764 struct s1 {int (*f) (int a);};
12765 struct s2 {int (*f) (double a);};
12766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12767 int argc;
12768 char **argv;
12770 main ()
12772 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12773   ;
12774   return 0;
12776 _ACEOF
12777 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12778         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12780   CC="$ac_save_CC $ac_arg"
12781   if ac_fn_c_try_compile "$LINENO"; then :
12782   ac_cv_prog_cc_c89=$ac_arg
12784 rm -f core conftest.err conftest.$ac_objext
12785   test "x$ac_cv_prog_cc_c89" != "xno" && break
12786 done
12787 rm -f conftest.$ac_ext
12788 CC=$ac_save_CC
12791 # AC_CACHE_VAL
12792 case "x$ac_cv_prog_cc_c89" in
12793   x)
12794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12795 $as_echo "none needed" >&6; } ;;
12796   xno)
12797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12798 $as_echo "unsupported" >&6; } ;;
12799   *)
12800     CC="$CC $ac_cv_prog_cc_c89"
12801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12802 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12803 esac
12804 if test "x$ac_cv_prog_cc_c89" != xno; then :
12805   
12808 ac_ext=c
12809 ac_cpp='$CPP $CPPFLAGS'
12810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12814 depcc="$CC"   am_compiler_list=
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12817 $as_echo_n "checking dependency style of $depcc... " >&6; }
12818 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12822   # We make a subdir and do the tests there.  Otherwise we can end up
12823   # making bogus files that we don't know about and never remove.  For
12824   # instance it was reported that on HP-UX the gcc test will end up
12825   # making a dummy file named `D' -- because `-MD' means `put the output
12826   # in D'.
12827   mkdir conftest.dir
12828   # Copy depcomp to subdir because otherwise we won't find it if we're
12829   # using a relative directory.
12830   cp "$am_depcomp" conftest.dir
12831   cd conftest.dir
12832   # We will build objects and dependencies in a subdirectory because
12833   # it helps to detect inapplicable dependency modes.  For instance
12834   # both Tru64's cc and ICC support -MD to output dependencies as a
12835   # side effect of compilation, but ICC will put the dependencies in
12836   # the current directory while Tru64 will put them in the object
12837   # directory.
12838   mkdir sub
12840   am_cv_CC_dependencies_compiler_type=none
12841   if test "$am_compiler_list" = ""; then
12842      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12843   fi
12844   am__universal=false
12845   case " $depcc " in #(
12846      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12847      esac
12849   for depmode in $am_compiler_list; do
12850     # Setup a source with many dependencies, because some compilers
12851     # like to wrap large dependency lists on column 80 (with \), and
12852     # we should not choose a depcomp mode which is confused by this.
12853     #
12854     # We need to recreate these files for each test, as the compiler may
12855     # overwrite some of them when testing with obscure command lines.
12856     # This happens at least with the AIX C compiler.
12857     : > sub/conftest.c
12858     for i in 1 2 3 4 5 6; do
12859       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12860       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12861       # Solaris 8's {/usr,}/bin/sh.
12862       touch sub/conftst$i.h
12863     done
12864     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12866     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12867     # mode.  It turns out that the SunPro C++ compiler does not properly
12868     # handle `-M -o', and we need to detect this.  Also, some Intel
12869     # versions had trouble with output in subdirs
12870     am__obj=sub/conftest.${OBJEXT-o}
12871     am__minus_obj="-o $am__obj"
12872     case $depmode in
12873     gcc)
12874       # This depmode causes a compiler race in universal mode.
12875       test "$am__universal" = false || continue
12876       ;;
12877     nosideeffect)
12878       # after this tag, mechanisms are not by side-effect, so they'll
12879       # only be used when explicitly requested
12880       if test "x$enable_dependency_tracking" = xyes; then
12881         continue
12882       else
12883         break
12884       fi
12885       ;;
12886     msvisualcpp | msvcmsys)
12887       # This compiler won't grok `-c -o', but also, the minuso test has
12888       # not run yet.  These depmodes are late enough in the game, and
12889       # so weak that their functioning should not be impacted.
12890       am__obj=conftest.${OBJEXT-o}
12891       am__minus_obj=
12892       ;;
12893     none) break ;;
12894     esac
12895     if depmode=$depmode \
12896        source=sub/conftest.c object=$am__obj \
12897        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12898        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12899          >/dev/null 2>conftest.err &&
12900        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12901        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12902        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12903        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12904       # icc doesn't choke on unknown options, it will just issue warnings
12905       # or remarks (even with -Werror).  So we grep stderr for any message
12906       # that says an option was ignored or not supported.
12907       # When given -MP, icc 7.0 and 7.1 complain thusly:
12908       #   icc: Command line warning: ignoring option '-M'; no argument required
12909       # The diagnosis changed in icc 8.0:
12910       #   icc: Command line remark: option '-MP' not supported
12911       if (grep 'ignoring option' conftest.err ||
12912           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12913         am_cv_CC_dependencies_compiler_type=$depmode
12914         break
12915       fi
12916     fi
12917   done
12919   cd ..
12920   rm -rf conftest.dir
12921 else
12922   am_cv_CC_dependencies_compiler_type=none
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12927 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12928 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12930  if 
12931   test "x$enable_dependency_tracking" != xno \
12932   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12933   am__fastdepCC_TRUE=
12934   am__fastdepCC_FALSE='#'
12935 else
12936   am__fastdepCC_TRUE='#'
12937   am__fastdepCC_FALSE=
12942 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
12946 if test "x$GCC" = "xyes"; then
12947   case " $CFLAGS " in
12948   *[\ \ ]-Wall[\ \      ]*) ;;
12949   *) CFLAGS="$CFLAGS -Wall" ;;
12950   esac
12952   if test "x$enable_ansi" = "xyes"; then
12953     case " $CFLAGS " in
12954     *[\ \       ]-ansi[\ \      ]*) ;;
12955     *) CFLAGS="$CFLAGS -ansi" ;;
12956     esac
12958     case " $CFLAGS " in
12959     *[\ \       ]-pedantic[\ \  ]*) ;;
12960     *) CFLAGS="$CFLAGS -pedantic" ;;
12961     esac
12962   fi
12965 # Checks for header files.
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12967 $as_echo_n "checking for ANSI C header files... " >&6; }
12968 if ${ac_cv_header_stdc+:} false; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h.  */
12973 #include <stdlib.h>
12974 #include <stdarg.h>
12975 #include <string.h>
12976 #include <float.h>
12979 main ()
12982   ;
12983   return 0;
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987   ac_cv_header_stdc=yes
12988 else
12989   ac_cv_header_stdc=no
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 if test $ac_cv_header_stdc = yes; then
12994   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997 #include <string.h>
12999 _ACEOF
13000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13001   $EGREP "memchr" >/dev/null 2>&1; then :
13002   
13003 else
13004   ac_cv_header_stdc=no
13006 rm -f conftest*
13010 if test $ac_cv_header_stdc = yes; then
13011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014 #include <stdlib.h>
13016 _ACEOF
13017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018   $EGREP "free" >/dev/null 2>&1; then :
13019   
13020 else
13021   ac_cv_header_stdc=no
13023 rm -f conftest*
13027 if test $ac_cv_header_stdc = yes; then
13028   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13029   if test "$cross_compiling" = yes; then :
13030   :
13031 else
13032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h.  */
13034 #include <ctype.h>
13035 #include <stdlib.h>
13036 #if ((' ' & 0x0FF) == 0x020)
13037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13039 #else
13040 # define ISLOWER(c) \
13041                    (('a' <= (c) && (c) <= 'i') \
13042                      || ('j' <= (c) && (c) <= 'r') \
13043                      || ('s' <= (c) && (c) <= 'z'))
13044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13045 #endif
13047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13049 main ()
13051   int i;
13052   for (i = 0; i < 256; i++)
13053     if (XOR (islower (i), ISLOWER (i))
13054         || toupper (i) != TOUPPER (i))
13055       return 2;
13056   return 0;
13058 _ACEOF
13059 if ac_fn_c_try_run "$LINENO"; then :
13060   
13061 else
13062   ac_cv_header_stdc=no
13064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13065   conftest.$ac_objext conftest.beam conftest.$ac_ext
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13071 $as_echo "$ac_cv_header_stdc" >&6; }
13072 if test $ac_cv_header_stdc = yes; then
13073   
13074 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
13079 # Checks for library functions.
13080 for ac_func in vprintf
13081 do :
13082   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13083 if test "x$ac_cv_func_vprintf" = xyes; then :
13084   cat >>confdefs.h <<_ACEOF
13085 @%:@define HAVE_VPRINTF 1
13086 _ACEOF
13088 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13089 if test "x$ac_cv_func__doprnt" = xyes; then :
13090   
13091 $as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
13096 done
13100 for ac_func in atexit on_exit
13101 do :
13102   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13105   cat >>confdefs.h <<_ACEOF
13106 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13107 _ACEOF
13110 done
13113 # The cast to long int works around a bug in the HP C Compiler
13114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13116 # This bug is HP SR number 8606223364.
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13118 $as_echo_n "checking size of char... " >&6; }
13119 if ${ac_cv_sizeof_char+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13123   
13124 else
13125   if test "$ac_cv_type_char" = yes; then
13126      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13128 as_fn_error 77 "cannot compute sizeof (char)
13129 See \`config.log' for more details" "$LINENO" 5; }
13130    else
13131      ac_cv_sizeof_char=0
13132    fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13137 $as_echo "$ac_cv_sizeof_char" >&6; }
13141 cat >>confdefs.h <<_ACEOF
13142 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
13143 _ACEOF
13146 # The cast to long int works around a bug in the HP C Compiler
13147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13149 # This bug is HP SR number 8606223364.
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13151 $as_echo_n "checking size of short... " >&6; }
13152 if ${ac_cv_sizeof_short+:} false; then :
13153   $as_echo_n "(cached) " >&6
13154 else
13155   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13156   
13157 else
13158   if test "$ac_cv_type_short" = yes; then
13159      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13161 as_fn_error 77 "cannot compute sizeof (short)
13162 See \`config.log' for more details" "$LINENO" 5; }
13163    else
13164      ac_cv_sizeof_short=0
13165    fi
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13170 $as_echo "$ac_cv_sizeof_short" >&6; }
13174 cat >>confdefs.h <<_ACEOF
13175 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
13176 _ACEOF
13179 # The cast to long int works around a bug in the HP C Compiler
13180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13182 # This bug is HP SR number 8606223364.
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13184 $as_echo_n "checking size of long... " >&6; }
13185 if ${ac_cv_sizeof_long+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13189   
13190 else
13191   if test "$ac_cv_type_long" = yes; then
13192      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13194 as_fn_error 77 "cannot compute sizeof (long)
13195 See \`config.log' for more details" "$LINENO" 5; }
13196    else
13197      ac_cv_sizeof_long=0
13198    fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13203 $as_echo "$ac_cv_sizeof_long" >&6; }
13207 cat >>confdefs.h <<_ACEOF
13208 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13209 _ACEOF
13212 # The cast to long int works around a bug in the HP C Compiler
13213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13215 # This bug is HP SR number 8606223364.
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13217 $as_echo_n "checking size of int... " >&6; }
13218 if ${ac_cv_sizeof_int+:} false; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13222   
13223 else
13224   if test "$ac_cv_type_int" = yes; then
13225      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13227 as_fn_error 77 "cannot compute sizeof (int)
13228 See \`config.log' for more details" "$LINENO" 5; }
13229    else
13230      ac_cv_sizeof_int=0
13231    fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13236 $as_echo "$ac_cv_sizeof_int" >&6; }
13240 cat >>confdefs.h <<_ACEOF
13241 @%:@define SIZEOF_INT $ac_cv_sizeof_int
13242 _ACEOF
13245 # The cast to long int works around a bug in the HP C Compiler
13246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13248 # This bug is HP SR number 8606223364.
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13250 $as_echo_n "checking size of void *... " >&6; }
13251 if ${ac_cv_sizeof_void_p+:} false; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13255   
13256 else
13257   if test "$ac_cv_type_void_p" = yes; then
13258      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13260 as_fn_error 77 "cannot compute sizeof (void *)
13261 See \`config.log' for more details" "$LINENO" 5; }
13262    else
13263      ac_cv_sizeof_void_p=0
13264    fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13269 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13273 cat >>confdefs.h <<_ACEOF
13274 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13275 _ACEOF
13278 # The cast to long int works around a bug in the HP C Compiler
13279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13281 # This bug is HP SR number 8606223364.
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13283 $as_echo_n "checking size of long long... " >&6; }
13284 if ${ac_cv_sizeof_long_long+:} false; then :
13285   $as_echo_n "(cached) " >&6
13286 else
13287   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13288   
13289 else
13290   if test "$ac_cv_type_long_long" = yes; then
13291      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13293 as_fn_error 77 "cannot compute sizeof (long long)
13294 See \`config.log' for more details" "$LINENO" 5; }
13295    else
13296      ac_cv_sizeof_long_long=0
13297    fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13302 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13306 cat >>confdefs.h <<_ACEOF
13307 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13308 _ACEOF
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13313 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13314 if ${ac_cv_c_const+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h.  */
13321 main ()
13323 /* FIXME: Include the comments suggested by Paul. */
13324 #ifndef __cplusplus
13325   /* Ultrix mips cc rejects this.  */
13326   typedef int charset[2];
13327   const charset cs;
13328   /* SunOS 4.1.1 cc rejects this.  */
13329   char const *const *pcpcc;
13330   char **ppc;
13331   /* NEC SVR4.0.2 mips cc rejects this.  */
13332   struct point {int x, y;};
13333   static struct point const zero = {0,0};
13334   /* AIX XL C 1.02.0.0 rejects this.
13335      It does not let you subtract one const X* pointer from another in
13336      an arm of an if-expression whose if-part is not a constant
13337      expression */
13338   const char *g = "string";
13339   pcpcc = &g + (g ? g-g : 0);
13340   /* HPUX 7.0 cc rejects these. */
13341   ++pcpcc;
13342   ppc = (char**) pcpcc;
13343   pcpcc = (char const *const *) ppc;
13344   { /* SCO 3.2v4 cc rejects this.  */
13345     char *t;
13346     char const *s = 0 ? (char *) 0 : (char const *) 0;
13348     *t++ = 0;
13349     if (s) return 0;
13350   }
13351   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13352     int x[] = {25, 17};
13353     const int *foo = &x[0];
13354     ++foo;
13355   }
13356   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13357     typedef const int *iptr;
13358     iptr p = 0;
13359     ++p;
13360   }
13361   { /* AIX XL C 1.02.0.0 rejects this saying
13362        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13363     struct s { int j; const int *ap[3]; };
13364     struct s *b; b->j = 5;
13365   }
13366   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13367     const int foo = 10;
13368     if (!foo) return 0;
13369   }
13370   return !cs[0] && !zero.x;
13371 #endif
13373   ;
13374   return 0;
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"; then :
13378   ac_cv_c_const=yes
13379 else
13380   ac_cv_c_const=no
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13385 $as_echo "$ac_cv_c_const" >&6; }
13386 if test $ac_cv_c_const = no; then
13387   
13388 $as_echo "@%:@define const /**/" >>confdefs.h
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
13394 $as_echo_n "checking for __inline... " >&6; }
13395 if ${glib_cv_has__inline+:} false; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   
13399         if test "$cross_compiling" = yes; then :
13400   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13402 as_fn_error $? "cannot run test program while cross compiling
13403 See \`config.log' for more details" "$LINENO" 5; }
13404 else
13405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h.  */
13408         __inline int foo () { return 0; }
13409         int main () { return foo (); }
13410         
13411 _ACEOF
13412 if ac_fn_c_try_run "$LINENO"; then :
13413   glib_cv_has__inline=yes
13414         
13415 else
13416   glib_cv_has__inline=no
13417         
13419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13420   conftest.$ac_objext conftest.beam conftest.$ac_ext
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
13427 $as_echo "$glib_cv_has__inline" >&6; }
13428 case x$glib_cv_has__inline in
13429 xyes) $as_echo "@%:@define G_HAVE___INLINE 1" >>confdefs.h
13431 esac
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
13433 $as_echo_n "checking for __inline__... " >&6; }
13434 if ${glib_cv_has__inline__+:} false; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   
13438         if test "$cross_compiling" = yes; then :
13439   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13441 as_fn_error $? "cannot run test program while cross compiling
13442 See \`config.log' for more details" "$LINENO" 5; }
13443 else
13444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h.  */
13447         __inline__ int foo () { return 0; }
13448         int main () { return foo (); }
13449         
13450 _ACEOF
13451 if ac_fn_c_try_run "$LINENO"; then :
13452   glib_cv_has__inline__=yes
13453         
13454 else
13455   glib_cv_has__inline__=no
13456         
13458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13459   conftest.$ac_objext conftest.beam conftest.$ac_ext
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
13466 $as_echo "$glib_cv_has__inline__" >&6; }
13467 case x$glib_cv_has__inline__ in
13468 xyes) $as_echo "@%:@define G_HAVE___INLINE__ 1" >>confdefs.h
13470 esac
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13472 $as_echo_n "checking for inline... " >&6; }
13473 if ${glib_cv_hasinline+:} false; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   
13477         if test "$cross_compiling" = yes; then :
13478   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13480 as_fn_error $? "cannot run test program while cross compiling
13481 See \`config.log' for more details" "$LINENO" 5; }
13482 else
13483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h.  */
13486         inline int foo () { return 0; }
13487         int main () { return foo (); }
13488         
13489 _ACEOF
13490 if ac_fn_c_try_run "$LINENO"; then :
13491   glib_cv_hasinline=yes
13492         
13493 else
13494   glib_cv_hasinline=no
13495         
13497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13498   conftest.$ac_objext conftest.beam conftest.$ac_ext
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
13505 $as_echo "$glib_cv_hasinline" >&6; }
13506 case x$glib_cv_hasinline in
13507 xyes) $as_echo "@%:@define G_HAVE_INLINE 1" >>confdefs.h
13509 esac
13511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13512 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13513 if ${ac_cv_c_bigendian+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   ac_cv_c_bigendian=unknown
13517     # See if we're dealing with a universal compiler.
13518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h.  */
13520 #ifndef __APPLE_CC__
13521                not a universal capable compiler
13522              #endif
13523              typedef int dummy;
13524             
13525 _ACEOF
13526 if ac_fn_c_try_compile "$LINENO"; then :
13527   
13528         # Check for potential -arch flags.  It is not universal unless
13529         # there are at least two -arch flags with different values.
13530         ac_arch=
13531         ac_prev=
13532         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13533          if test -n "$ac_prev"; then
13534            case $ac_word in
13535              i?86 | x86_64 | ppc | ppc64)
13536                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13537                  ac_arch=$ac_word
13538                else
13539                  ac_cv_c_bigendian=universal
13540                  break
13541                fi
13542                ;;
13543            esac
13544            ac_prev=
13545          elif test "x$ac_word" = "x-arch"; then
13546            ac_prev=arch
13547          fi
13548        done
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551     if test $ac_cv_c_bigendian = unknown; then
13552       # See if sys/param.h defines the BYTE_ORDER macro.
13553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h.  */
13555 #include <sys/types.h>
13556              #include <sys/param.h>
13557            
13559 main ()
13561 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13562                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13563                      && LITTLE_ENDIAN)
13564               bogus endian macros
13565              #endif
13566            
13567   ;
13568   return 0;
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572   # It does; now see whether it defined to BIG_ENDIAN or not.
13573          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h.  */
13575 #include <sys/types.h>
13576                 #include <sys/param.h>
13577               
13579 main ()
13581 #if BYTE_ORDER != BIG_ENDIAN
13582                  not big endian
13583                 #endif
13584               
13585   ;
13586   return 0;
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590   ac_cv_c_bigendian=yes
13591 else
13592   ac_cv_c_bigendian=no
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597     fi
13598     if test $ac_cv_c_bigendian = unknown; then
13599       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13600       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h.  */
13602 #include <limits.h>
13603            
13605 main ()
13607 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13608               bogus endian macros
13609              #endif
13610            
13611   ;
13612   return 0;
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616   # It does; now see whether it defined to _BIG_ENDIAN or not.
13617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h.  */
13619 #include <limits.h>
13620               
13622 main ()
13624 #ifndef _BIG_ENDIAN
13625                  not big endian
13626                 #endif
13627               
13628   ;
13629   return 0;
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633   ac_cv_c_bigendian=yes
13634 else
13635   ac_cv_c_bigendian=no
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640     fi
13641     if test $ac_cv_c_bigendian = unknown; then
13642       # Compile a test program.
13643       if test "$cross_compiling" = yes; then :
13644   # Try to guess by grepping values from an object file.
13645          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h.  */
13647 short int ascii_mm[] =
13648                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13649                 short int ascii_ii[] =
13650                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13651                 int use_ascii (int i) {
13652                   return ascii_mm[i] + ascii_ii[i];
13653                 }
13654                 short int ebcdic_ii[] =
13655                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13656                 short int ebcdic_mm[] =
13657                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13658                 int use_ebcdic (int i) {
13659                   return ebcdic_mm[i] + ebcdic_ii[i];
13660                 }
13661                 extern int foo;
13662               
13664 main ()
13666 return use_ascii (foo) == use_ebcdic (foo);
13667   ;
13668   return 0;
13670 _ACEOF
13671 if ac_fn_c_try_compile "$LINENO"; then :
13672   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13673               ac_cv_c_bigendian=yes
13674             fi
13675             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13676               if test "$ac_cv_c_bigendian" = unknown; then
13677                 ac_cv_c_bigendian=no
13678               else
13679                 # finding both strings is unlikely to happen, but who knows?
13680                 ac_cv_c_bigendian=unknown
13681               fi
13682             fi
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 else
13686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h.  */
13688 $ac_includes_default
13690 main ()
13693              /* Are we little or big endian?  From Harbison&Steele.  */
13694              union
13695              {
13696                long int l;
13697                char c[sizeof (long int)];
13698              } u;
13699              u.l = 1;
13700              return u.c[sizeof (long int) - 1] == 1;
13701            
13702   ;
13703   return 0;
13705 _ACEOF
13706 if ac_fn_c_try_run "$LINENO"; then :
13707   ac_cv_c_bigendian=no
13708 else
13709   ac_cv_c_bigendian=yes
13711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13712   conftest.$ac_objext conftest.beam conftest.$ac_ext
13715     fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13718 $as_echo "$ac_cv_c_bigendian" >&6; }
13719  case $ac_cv_c_bigendian in #(
13720    yes)
13721      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
13722 ;; #(
13723    no)
13724       ;; #(
13725    universal)
13726         
13727 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13729      ;; #(
13730    *)
13731      as_fn_error $? "unknown endianness
13732  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13733  esac
13736 for ac_header in float.h
13737 do :
13738   ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
13739 if test "x$ac_cv_header_float_h" = xyes; then :
13740   cat >>confdefs.h <<_ACEOF
13741 @%:@define HAVE_FLOAT_H 1
13742 _ACEOF
13743  $as_echo "@%:@define HAVE_FLOAT_H 1" >>confdefs.h
13747 done
13749 for ac_header in limits.h
13750 do :
13751   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
13752 if test "x$ac_cv_header_limits_h" = xyes; then :
13753   cat >>confdefs.h <<_ACEOF
13754 @%:@define HAVE_LIMITS_H 1
13755 _ACEOF
13756  $as_echo "@%:@define HAVE_LIMITS_H 1" >>confdefs.h
13760 done
13762 for ac_header in pwd.h
13763 do :
13764   ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
13765 if test "x$ac_cv_header_pwd_h" = xyes; then :
13766   cat >>confdefs.h <<_ACEOF
13767 @%:@define HAVE_PWD_H 1
13768 _ACEOF
13769  $as_echo "@%:@define HAVE_PWD_H 1" >>confdefs.h
13773 done
13775 for ac_header in sys/param.h
13776 do :
13777   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
13778 if test "x$ac_cv_header_sys_param_h" = xyes; then :
13779   cat >>confdefs.h <<_ACEOF
13780 @%:@define HAVE_SYS_PARAM_H 1
13781 _ACEOF
13782  $as_echo "@%:@define HAVE_SYS_PARAM_H 1" >>confdefs.h
13786 done
13788 for ac_header in sys/poll.h
13789 do :
13790   ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
13791 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
13792   cat >>confdefs.h <<_ACEOF
13793 @%:@define HAVE_SYS_POLL_H 1
13794 _ACEOF
13795  $as_echo "@%:@define HAVE_SYS_POLL_H 1" >>confdefs.h
13799 done
13801 for ac_header in sys/select.h
13802 do :
13803   ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13804 if test "x$ac_cv_header_sys_select_h" = xyes; then :
13805   cat >>confdefs.h <<_ACEOF
13806 @%:@define HAVE_SYS_SELECT_H 1
13807 _ACEOF
13808  $as_echo "@%:@define HAVE_SYS_SELECT_H 1" >>confdefs.h
13812 done
13814 for ac_header in sys/time.h
13815 do :
13816   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13817 if test "x$ac_cv_header_sys_time_h" = xyes; then :
13818   cat >>confdefs.h <<_ACEOF
13819 @%:@define HAVE_SYS_TIME_H 1
13820 _ACEOF
13821  $as_echo "@%:@define HAVE_SYS_TIME_H 1" >>confdefs.h
13825 done
13827 for ac_header in sys/times.h
13828 do :
13829   ac_fn_c_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_sys_times_h" = xyes; then :
13831   cat >>confdefs.h <<_ACEOF
13832 @%:@define HAVE_SYS_TIMES_H 1
13833 _ACEOF
13834  $as_echo "@%:@define HAVE_SYS_TIMES_H 1" >>confdefs.h
13838 done
13840 for ac_header in unistd.h
13841 do :
13842   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_unistd_h" = xyes; then :
13844   cat >>confdefs.h <<_ACEOF
13845 @%:@define HAVE_UNISTD_H 1
13846 _ACEOF
13847  $as_echo "@%:@define HAVE_UNISTD_H 1" >>confdefs.h
13851 done
13853 for ac_header in values.h
13854 do :
13855   ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
13856 if test "x$ac_cv_header_values_h" = xyes; then :
13857   cat >>confdefs.h <<_ACEOF
13858 @%:@define HAVE_VALUES_H 1
13859 _ACEOF
13860  $as_echo "@%:@define HAVE_VALUES_H 1" >>confdefs.h
13864 done
13867 # Check for some functions
13868 for ac_func in lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll
13869 do :
13870   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13873   cat >>confdefs.h <<_ACEOF
13874 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13875 _ACEOF
13878 done
13881 # Check for sys_errlist
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
13883 $as_echo_n "checking for sys_errlist... " >&6; }
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h.  */
13888 main ()
13891 extern char *sys_errlist[];
13892 extern int sys_nerr;
13893 sys_errlist[sys_nerr-1][0] = 0;
13895   ;
13896   return 0;
13898 _ACEOF
13899 if ac_fn_c_try_link "$LINENO"; then :
13900   glib_ok=yes
13901 else
13902   glib_ok=no
13904 rm -f core conftest.err conftest.$ac_objext \
13905     conftest$ac_exeext conftest.$ac_ext
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ok" >&5
13907 $as_echo "$glib_ok" >&6; }
13908 if test $glib_ok = no; then
13909     $as_echo "@%:@define NO_SYS_ERRLIST 1" >>confdefs.h
13913 # Check for sys_siglist
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist" >&5
13915 $as_echo_n "checking for sys_siglist... " >&6; }
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h.  */
13920 main ()
13923 extern char *sys_siglist[];
13924 exit (sys_siglist[0]);
13926   ;
13927   return 0;
13929 _ACEOF
13930 if ac_fn_c_try_link "$LINENO"; then :
13931   glib_ok=yes
13932 else
13933   glib_ok=no
13935 rm -f core conftest.err conftest.$ac_objext \
13936     conftest$ac_exeext conftest.$ac_ext
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ok" >&5
13938 $as_echo "$glib_ok" >&6; }
13939 if test $glib_ok = no; then
13940     $as_echo "@%:@define NO_SYS_SIGLIST 1" >>confdefs.h
13944 # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist declaration" >&5
13946 $as_echo_n "checking for sys_siglist declaration... " >&6; }
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949 #include <signal.h>
13951 main ()
13954 strlen (sys_siglist[0]);
13956   ;
13957   return 0;
13959 _ACEOF
13960 if ac_fn_c_try_compile "$LINENO"; then :
13961   glib_ok=yes
13962 else
13963   glib_ok=no
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_ok" >&5
13967 $as_echo "$glib_ok" >&6; }
13968 if test $glib_ok = no; then
13969     $as_echo "@%:@define NO_SYS_SIGLIST_DECL 1" >>confdefs.h
13973 # Check if <sys/select.h> needs to be included for fd_set
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
13975 $as_echo_n "checking for fd_set... " >&6; }
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h.  */
13978 #include <sys/types.h>
13980 main ()
13982 fd_set readMask, writeMask;
13983   ;
13984   return 0;
13986 _ACEOF
13987 if ac_fn_c_try_compile "$LINENO"; then :
13988   gtk_ok=yes
13989 else
13990   gtk_ok=no
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 if test $gtk_ok = yes; then
13994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
13995 $as_echo "yes, found in sys/types.h" >&6; }
13996 else
13997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h.  */
13999 #include <sys/select.h>
14001 _ACEOF
14002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14003   $EGREP "fd_mask" >/dev/null 2>&1; then :
14004   gtk_ok=yes
14006 rm -f conftest*
14008     if test $gtk_ok = yes; then
14009         $as_echo "@%:@define HAVE_SYS_SELECT_H 1" >>confdefs.h
14011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
14012 $as_echo "yes, found in sys/select.h" >&6; }
14013     else
14014         $as_echo "@%:@define NO_FD_SET 1" >>confdefs.h
14016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018     fi
14021 # These are used only in GDK (gdki18n.h)
14022 # This stuff is here only so that we can define these
14023 # things in glibconfig.h. If gtk+ started using an installed
14024 # gdkconfig.h file, then the definitions would belong there.
14026 # Check for wchar.h
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar.h" >&5
14029 $as_echo_n "checking for wchar.h... " >&6; }
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h.  */
14032 #include <wchar.h>
14033 _ACEOF
14034 if ac_fn_c_try_cpp "$LINENO"; then :
14035   glib_wchar_h=yes
14036 else
14037   glib_wchar_h=no
14039 rm -f conftest.err conftest.i conftest.$ac_ext
14040 if test $glib_wchar_h = yes; then
14041    $as_echo "@%:@define HAVE_WCHAR_H 1" >>confdefs.h
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_wchar_h" >&5
14045 $as_echo "$glib_wchar_h" >&6; }
14047 # Check for wctype.h (for iswalnum)
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype.h" >&5
14050 $as_echo_n "checking for wctype.h... " >&6; }
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h.  */
14053 #include <wctype.h>
14054 _ACEOF
14055 if ac_fn_c_try_cpp "$LINENO"; then :
14056   glib_wctype_h=yes
14057 else
14058   glib_wctype_h=no
14060 rm -f conftest.err conftest.i conftest.$ac_ext
14061 if test $glib_wctype_h = yes; then
14062    $as_echo "@%:@define HAVE_WCTYPE_H 1" >>confdefs.h
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_wctype_h" >&5
14066 $as_echo "$glib_wctype_h" >&6; }
14068 oLIBS="$LIBS"
14069 # in Solaris 2.5, `iswalnum' is in -lw
14070 ac_fn_c_check_func "$LINENO" "iswalnum" "ac_cv_func_iswalnum"
14071 if test "x$ac_cv_func_iswalnum" = xyes; then :
14072   
14073 else
14074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iswalnum in -lw" >&5
14075 $as_echo_n "checking for iswalnum in -lw... " >&6; }
14076 if ${ac_cv_lib_w_iswalnum+:} false; then :
14077   $as_echo_n "(cached) " >&6
14078 else
14079   ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lw  $LIBS"
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h.  */
14084 /* Override any GCC internal prototype to avoid an error.
14085    Use char because int might match the return type of a GCC
14086    builtin and then its argument prototype would still apply.  */
14087 #ifdef __cplusplus
14088 extern "C"
14089 #endif
14090 char iswalnum ();
14092 main ()
14094 return iswalnum ();
14095   ;
14096   return 0;
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"; then :
14100   ac_cv_lib_w_iswalnum=yes
14101 else
14102   ac_cv_lib_w_iswalnum=no
14104 rm -f core conftest.err conftest.$ac_objext \
14105     conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_iswalnum" >&5
14109 $as_echo "$ac_cv_lib_w_iswalnum" >&6; }
14110 if test "x$ac_cv_lib_w_iswalnum" = xyes; then :
14111   cat >>confdefs.h <<_ACEOF
14112 @%:@define HAVE_LIBW 1
14113 _ACEOF
14115   LIBS="-lw $LIBS"
14122 # The following is necessary for Linux libc-5.4.38
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iswalnum() and friends are properly defined" >&5
14124 $as_echo_n "checking if iswalnum() and friends are properly defined... " >&6; }
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h.  */
14127 #include <stdlib.h>
14129 main ()
14132 #if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
14133 #  ifdef HAVE_WCTYPE_H
14134 #    include <wctype.h>
14135 #  else
14136 #    ifdef HAVE_WCHAR_H
14137 #      include <wchar.h>
14138 #    endif
14139 #  endif
14140 #else
14141 #  define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
14142 #endif
14143 iswalnum((wchar_t) 0);
14145   ;
14146   return 0;
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150   glib_working_wctype=yes
14151 else
14152   glib_working_wctype=no
14154 rm -f core conftest.err conftest.$ac_objext \
14155     conftest$ac_exeext conftest.$ac_ext
14156 LIBS="$oLIBS"
14158 if test $glib_working_wctype = no; then
14159    $as_echo "@%:@define HAVE_BROKEN_WCTYPE 1" >>confdefs.h
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_working_wctype" >&5
14163 $as_echo "$glib_working_wctype" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
14166 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
14167 if ${glib_cv_sane_realloc+:} false; then :
14168   $as_echo_n "(cached) " >&6
14169 else
14170   
14171         if test "$cross_compiling" = yes; then :
14172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14174 as_fn_error $? "cannot run test program while cross compiling
14175 See \`config.log' for more details" "$LINENO" 5; }
14176 else
14177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h.  */
14180         #include <stdlib.h>
14181         int main() {
14182           return realloc (0, sizeof (int)) == 0;
14183         }
14184 _ACEOF
14185 if ac_fn_c_try_run "$LINENO"; then :
14186   glib_cv_sane_realloc=yes
14187         
14188 else
14189   glib_cv_sane_realloc=no
14190         
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193   conftest.$ac_objext conftest.beam conftest.$ac_ext
14199 if test "x$glib_cv_sane_realloc" = "xyes"; then
14200         $as_echo "@%:@define REALLOC_0_WORKS 1" >>confdefs.h
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
14204 $as_echo "$glib_cv_sane_realloc" >&6; }
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
14208 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
14209 if ${glib_cv_va_copy+:} false; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212   
14213         if test "$cross_compiling" = yes; then :
14214   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14216 as_fn_error $? "cannot run test program while cross compiling
14217 See \`config.log' for more details" "$LINENO" 5; }
14218 else
14219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14222         #include <stdarg.h>
14223         void f (int i, ...) {
14224         va_list args1, args2;
14225         va_start (args1, i);
14226         va_copy (args2, args1);
14227         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14228           exit (1);
14229         va_end (args1); va_end (args2);
14230         }
14231         int main() {
14232           f (0, 42);
14233           return 0;
14234         }
14235 _ACEOF
14236 if ac_fn_c_try_run "$LINENO"; then :
14237   glib_cv_va_copy=yes
14238         
14239 else
14240   glib_cv_va_copy=no
14241         
14243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14244   conftest.$ac_objext conftest.beam conftest.$ac_ext
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
14251 $as_echo "$glib_cv_va_copy" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
14253 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
14254 if ${glib_cv___va_copy+:} false; then :
14255   $as_echo_n "(cached) " >&6
14256 else
14257   
14258         if test "$cross_compiling" = yes; then :
14259   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14261 as_fn_error $? "cannot run test program while cross compiling
14262 See \`config.log' for more details" "$LINENO" 5; }
14263 else
14264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14267         #include <stdarg.h>
14268         void f (int i, ...) {
14269         va_list args1, args2;
14270         va_start (args1, i);
14271         __va_copy (args2, args1);
14272         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14273           exit (1);
14274         va_end (args1); va_end (args2);
14275         }
14276         int main() {
14277           f (0, 42);
14278           return 0;
14279         }
14280 _ACEOF
14281 if ac_fn_c_try_run "$LINENO"; then :
14282   glib_cv___va_copy=yes
14283         
14284 else
14285   glib_cv___va_copy=no
14286         
14288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14289   conftest.$ac_objext conftest.beam conftest.$ac_ext
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
14296 $as_echo "$glib_cv___va_copy" >&6; }
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
14298 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
14299 if ${glib_cv_va_val_copy+:} false; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   
14303         if test "$cross_compiling" = yes; then :
14304   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14306 as_fn_error $? "cannot run test program while cross compiling
14307 See \`config.log' for more details" "$LINENO" 5; }
14308 else
14309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h.  */
14312         #include <stdarg.h>
14313         void f (int i, ...) {
14314         va_list args1, args2;
14315         va_start (args1, i);
14316         args2 = args1;
14317         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
14318           exit (1);
14319         va_end (args1); va_end (args2);
14320         }
14321         int main() {
14322           f (0, 42);
14323           return 0;
14324         }
14325 _ACEOF
14326 if ac_fn_c_try_run "$LINENO"; then :
14327   glib_cv_va_val_copy=yes
14328         
14329 else
14330   glib_cv_va_val_copy=no
14331         
14333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14334   conftest.$ac_objext conftest.beam conftest.$ac_ext
14340 if test "x$glib_cv_va_copy" = "xyes"; then
14341   $as_echo "@%:@define G_VA_COPY va_copy" >>confdefs.h
14343 else
14344 if test "x$glib_cv___va_copy" = "xyes"; then
14345   $as_echo "@%:@define G_VA_COPY __va_copy" >>confdefs.h
14349 if test "x$glib_cv_va_val_copy" = "xno"; then
14350   $as_echo "@%:@define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
14354 $as_echo "$glib_cv_va_val_copy" >&6; }
14357 G_MODULE_LIBS=
14358 G_MODULE_LDFLAGS=
14359 G_MODULE_NEED_USCORE=0
14360 G_MODULE_BROKEN_RTLD_GLOBAL=0
14361 G_MODULE_HAVE_DLERROR=0
14362 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14363 if test "x$ac_cv_func_dlopen" = xyes; then :
14364   ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
14365 if test "x$ac_cv_func_dlsym" = xyes; then :
14366   G_MODULE_IMPL=G_MODULE_IMPL_DL
14371 if test -z "$G_MODULE_IMPL"; then
14372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14373 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14374 if ${ac_cv_lib_dl_dlopen+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377   ac_check_lib_save_LIBS=$LIBS
14378 LIBS="-ldl  $LIBS"
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h.  */
14382 /* Override any GCC internal prototype to avoid an error.
14383    Use char because int might match the return type of a GCC
14384    builtin and then its argument prototype would still apply.  */
14385 #ifdef __cplusplus
14386 extern "C"
14387 #endif
14388 char dlopen ();
14390 main ()
14392 return dlopen ();
14393   ;
14394   return 0;
14396 _ACEOF
14397 if ac_fn_c_try_link "$LINENO"; then :
14398   ac_cv_lib_dl_dlopen=yes
14399 else
14400   ac_cv_lib_dl_dlopen=no
14402 rm -f core conftest.err conftest.$ac_objext \
14403     conftest$ac_exeext conftest.$ac_ext
14404 LIBS=$ac_check_lib_save_LIBS
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14407 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14408 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
14410 $as_echo_n "checking for dlsym in -ldl... " >&6; }
14411 if ${ac_cv_lib_dl_dlsym+:} false; then :
14412   $as_echo_n "(cached) " >&6
14413 else
14414   ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-ldl  $LIBS"
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h.  */
14419 /* Override any GCC internal prototype to avoid an error.
14420    Use char because int might match the return type of a GCC
14421    builtin and then its argument prototype would still apply.  */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 char dlsym ();
14427 main ()
14429 return dlsym ();
14430   ;
14431   return 0;
14433 _ACEOF
14434 if ac_fn_c_try_link "$LINENO"; then :
14435   ac_cv_lib_dl_dlsym=yes
14436 else
14437   ac_cv_lib_dl_dlsym=no
14439 rm -f core conftest.err conftest.$ac_objext \
14440     conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
14444 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14445 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
14446   
14447                 G_MODULE_LIBS=-ldl
14448                 G_MODULE_IMPL=G_MODULE_IMPL_DL
14449         
14455 if test -z "$G_MODULE_IMPL"; then
14456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to export all symbols" >&5
14457 $as_echo_n "checking how to export all symbols... " >&6; }
14458         SAVED_LDFLAGS=$LDFLAGS
14459         LDFLAGS="$LDFLAGS -Wl,-E"
14460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h.  */
14464 main ()
14466  return 0; 
14467   ;
14468   return 0;
14470 _ACEOF
14471 if ac_fn_c_try_link "$LINENO"; then :
14472    G_MODULE_LDFLAGS="-Wl,-E" 
14473 else
14474   
14475                 LDFLAGS="$SAVED_LDFLAGS -bexpall"
14476                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h.  */
14480 main ()
14482  return 0; 
14483   ;
14484   return 0;
14486 _ACEOF
14487 if ac_fn_c_try_link "$LINENO"; then :
14488   G_MODULE_LDFLAGS="-bexpall"
14489 else
14490   G_MODULE_LDFLAGS="none"
14491                 
14493 rm -f core conftest.err conftest.$ac_objext \
14494     conftest$ac_exeext conftest.$ac_ext
14495         
14497 rm -f core conftest.err conftest.$ac_objext \
14498     conftest$ac_exeext conftest.$ac_ext
14499         LDFLAGS=$SAVED_LDFLAGS
14500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_MODULE_LDFLAGS" >&5
14501 $as_echo "$G_MODULE_LDFLAGS" >&6; }
14502         if test "x$G_MODULE_LDFLAGS" = "xnone"; then
14503                 G_MODULE_LDFLAGS=
14504         fi
14505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14506 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14507 if ${ac_cv_lib_dld_shl_load+:} false; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510   ac_check_lib_save_LIBS=$LIBS
14511 LIBS="-ldld  $LIBS"
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h.  */
14515 /* Override any GCC internal prototype to avoid an error.
14516    Use char because int might match the return type of a GCC
14517    builtin and then its argument prototype would still apply.  */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 char shl_load ();
14523 main ()
14525 return shl_load ();
14526   ;
14527   return 0;
14529 _ACEOF
14530 if ac_fn_c_try_link "$LINENO"; then :
14531   ac_cv_lib_dld_shl_load=yes
14532 else
14533   ac_cv_lib_dld_shl_load=no
14535 rm -f core conftest.err conftest.$ac_objext \
14536     conftest$ac_exeext conftest.$ac_ext
14537 LIBS=$ac_check_lib_save_LIBS
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14540 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14541 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14542   G_MODULE_LIBS=-ldld
14543                 G_MODULE_IMPL=G_MODULE_IMPL_DLD
14544         
14548 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
14549         case "$host_os" in
14550           linux*)
14551             G_MODULE_LDFLAGS='-rdynamic'
14552             ;;
14553         esac
14554         LIBS_orig="$LIBS"
14555         LDFLAGS_orig="$LDFLAGS"
14556         LIBS="$LIBS $G_MODULE_LIBS"
14557         LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
14558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
14559 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
14560 if ${glib_cv_rtldglobal_broken+:} false; then :
14561   $as_echo_n "(cached) " >&6
14562 else
14563   
14564                 if test "$cross_compiling" = yes; then :
14565   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14567 as_fn_error $? "cannot run test program while cross compiling
14568 See \`config.log' for more details" "$LINENO" 5; }
14569 else
14570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h.  */
14573                 #include <dlfcn.h>
14574                 #ifndef RTLD_GLOBAL
14575                 #define RTLD_GLOBAL 0
14576                 #endif
14577                 #ifndef RTLD_LAZY
14578                 #define RTLD_LAZY 0
14579                 #endif
14580                 int pthread_create;
14581                 int main () {
14582                 void *handle, *global, *local;
14583                 global = &pthread_create;
14584                 handle = dlopen ("libpthread.so", RTLD_GLOBAL | RTLD_LAZY);
14585                 if (!handle) return 0;
14586                 local = dlsym (handle, "pthread_create");
14587                 return global == local;
14588                 }
14589 _ACEOF
14590 if ac_fn_c_try_run "$LINENO"; then :
14591   glib_cv_rtldglobal_broken=no
14592 else
14593   glib_cv_rtldglobal_broken=yes
14595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14596   conftest.$ac_objext conftest.beam conftest.$ac_ext
14599                 rm -f plugin.c plugin.o plugin.lo
14600         
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
14603 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
14604         if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
14605                 G_MODULE_BROKEN_RTLD_GLOBAL=1
14606         else
14607                 G_MODULE_BROKEN_RTLD_GLOBAL=0
14608         fi
14609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
14610 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
14611         if ${glib_cv_uscore+:} false; then :
14612   $as_echo_n "(cached) " >&6
14613 else
14614   
14615                 if test "$cross_compiling" = yes; then :
14616   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14618 as_fn_error $? "cannot run test program while cross compiling
14619 See \`config.log' for more details" "$LINENO" 5; }
14620 else
14621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h.  */
14624                 #include <dlfcn.h>
14625                 int glib_underscore_test (void) { return 42; }
14626                 int main() {
14627                   void *f1 = (void*)0, *f2 = (void*)0, *handle;
14628                   handle = dlopen ((void*)0, 0);
14629                   if (handle) {
14630                     f1 = dlsym (handle, "glib_underscore_test");
14631                     f2 = dlsym (handle, "_glib_underscore_test");
14632                   } return (!f2 || f1);
14633                 }
14634 _ACEOF
14635 if ac_fn_c_try_run "$LINENO"; then :
14636   glib_cv_uscore=yes
14637 else
14638   glib_cv_uscore=no
14640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14641   conftest.$ac_objext conftest.beam conftest.$ac_ext
14644                 rm -f plugin.c plugin.o plugin.lo
14645         
14648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
14649 $as_echo "$glib_cv_uscore" >&6; }
14650         if test "x$glib_cv_uscore" = "xyes"; then
14651                 G_MODULE_NEED_USCORE=1
14652         else
14653                 G_MODULE_NEED_USCORE=0
14654         fi
14656         LDFLAGS="$LDFLAGS_orig"
14657         ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
14658 if test "x$ac_cv_func_dlerror" = xyes; then :
14659   G_MODULE_HAVE_DLERROR=1
14660 else
14661   G_MODULE_HAVE_DLERROR=0
14664         LIBS="$LIBS_orig"
14666 if test -z "$G_MODULE_IMPL"; then
14667         G_MODULE_IMPL=0
14680 @%:@ Check whether --with-threads was given.
14681 if test "${with_threads+set}" = set; then :
14682   withval=$with_threads; if test "x$with_threads" = x; then
14683                 want_threads=yes
14684         else
14685                 want_threads=$with_threads
14686         fi
14687 else
14688   want_threads=yes
14691 if test "x$enable_threads" = "xno"; then
14692         want_threads=no
14694 if test "x$want_threads" = "xnone"; then
14695         want_threads=no
14699 THREAD_NO_IMPLEMENTATION="You do not have any known thread system on your
14700                 computer. glib will not be thread safe on your computer."
14702 FLAG_DOES_NOT_WORK="I can't find the MACRO, that enables thread safety on your
14703                 platform (normally it's "_REENTRANT"). I'll not use any flag on
14704                 compilation now, but then your programs might not work.
14705                 Please provide information on how it is done on your system."
14707 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
14708                 "
14710 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
14711                 provide information on your thread implementation.
14712                 You can also run 'configure --disable-threads' 
14713                 to compile without thread support."
14715 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
14716                 functions will not be MT-safe during their first call because
14717                 there is no working 'getpwuid_r' on your system."
14719 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
14720                 because there is no 'localtime_r' on your system."
14723 have_threads=none
14724 if test "x$want_threads" = xyes || test "x$want_threads" = xsolaris; then
14725         case $host in
14726                 *-*-solaris*)
14727                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cond_init in -lthread" >&5
14728 $as_echo_n "checking for cond_init in -lthread... " >&6; }
14729 if ${ac_cv_lib_thread_cond_init+:} false; then :
14730   $as_echo_n "(cached) " >&6
14731 else
14732   ac_check_lib_save_LIBS=$LIBS
14733 LIBS="-lthread  $LIBS"
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h.  */
14737 /* Override any GCC internal prototype to avoid an error.
14738    Use char because int might match the return type of a GCC
14739    builtin and then its argument prototype would still apply.  */
14740 #ifdef __cplusplus
14741 extern "C"
14742 #endif
14743 char cond_init ();
14745 main ()
14747 return cond_init ();
14748   ;
14749   return 0;
14751 _ACEOF
14752 if ac_fn_c_try_link "$LINENO"; then :
14753   ac_cv_lib_thread_cond_init=yes
14754 else
14755   ac_cv_lib_thread_cond_init=no
14757 rm -f core conftest.err conftest.$ac_objext \
14758     conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_cond_init" >&5
14762 $as_echo "$ac_cv_lib_thread_cond_init" >&6; }
14763 if test "x$ac_cv_lib_thread_cond_init" = xyes; then :
14764   have_threads=solaris
14767                 ;;
14768         esac
14770 if test "x$want_threads" = xyes || test "x$want_threads" = xposix; then
14771         if test "x$have_threads" = xnone; then
14772                 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14773 if test "x$ac_cv_header_pthread_h" = xyes; then :
14774   have_threads=posix
14778         fi
14780 if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
14781         if test "x$have_threads" = xnone; then
14782                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRP_NewNakedCondVar in -lnspr21" >&5
14783 $as_echo_n "checking for PRP_NewNakedCondVar in -lnspr21... " >&6; }
14784 if ${ac_cv_lib_nspr21_PRP_NewNakedCondVar+:} false; then :
14785   $as_echo_n "(cached) " >&6
14786 else
14787   ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lnspr21  $LIBS"
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h.  */
14792 /* Override any GCC internal prototype to avoid an error.
14793    Use char because int might match the return type of a GCC
14794    builtin and then its argument prototype would still apply.  */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 char PRP_NewNakedCondVar ();
14800 main ()
14802 return PRP_NewNakedCondVar ();
14803   ;
14804   return 0;
14806 _ACEOF
14807 if ac_fn_c_try_link "$LINENO"; then :
14808   ac_cv_lib_nspr21_PRP_NewNakedCondVar=yes
14809 else
14810   ac_cv_lib_nspr21_PRP_NewNakedCondVar=no
14812 rm -f core conftest.err conftest.$ac_objext \
14813     conftest$ac_exeext conftest.$ac_ext
14814 LIBS=$ac_check_lib_save_LIBS
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr21_PRP_NewNakedCondVar" >&5
14817 $as_echo "$ac_cv_lib_nspr21_PRP_NewNakedCondVar" >&6; }
14818 if test "x$ac_cv_lib_nspr21_PRP_NewNakedCondVar" = xyes; then :
14819   have_threads=nspr
14822         fi
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
14826 $as_echo_n "checking for thread implementation... " >&6; }
14828 if test "x$have_threads" = xnone && test "x$want_threads" != xno; then
14829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
14830 $as_echo "none available" >&6; }
14831         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $THREAD_NO_IMPLEMENTATION" >&5
14832 $as_echo "$as_me: WARNING: $THREAD_NO_IMPLEMENTATION" >&2;}
14833 else
14834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
14835 $as_echo "$have_threads" >&6; }
14840 G_THREAD_LIBS=
14841 G_THREAD_CFLAGS=
14843 mutex_has_default=no
14844 case $have_threads in
14845         posix)
14846                 G_THREAD_LIBS=error
14847                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
14848 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
14849 if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then :
14850   $as_echo_n "(cached) " >&6
14851 else
14852   ac_check_lib_save_LIBS=$LIBS
14853 LIBS="-lpthread  $LIBS"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h.  */
14857 /* Override any GCC internal prototype to avoid an error.
14858    Use char because int might match the return type of a GCC
14859    builtin and then its argument prototype would still apply.  */
14860 #ifdef __cplusplus
14861 extern "C"
14862 #endif
14863 char pthread_attr_init ();
14865 main ()
14867 return pthread_attr_init ();
14868   ;
14869   return 0;
14871 _ACEOF
14872 if ac_fn_c_try_link "$LINENO"; then :
14873   ac_cv_lib_pthread_pthread_attr_init=yes
14874 else
14875   ac_cv_lib_pthread_pthread_attr_init=no
14877 rm -f core conftest.err conftest.$ac_objext \
14878     conftest$ac_exeext conftest.$ac_ext
14879 LIBS=$ac_check_lib_save_LIBS
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
14882 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
14883 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then :
14884   G_THREAD_LIBS="-lpthread"
14887                 if test "x$G_THREAD_LIBS" = xerror; then
14888                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthreads" >&5
14889 $as_echo_n "checking for pthread_attr_init in -lpthreads... " >&6; }
14890 if ${ac_cv_lib_pthreads_pthread_attr_init+:} false; then :
14891   $as_echo_n "(cached) " >&6
14892 else
14893   ac_check_lib_save_LIBS=$LIBS
14894 LIBS="-lpthreads  $LIBS"
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h.  */
14898 /* Override any GCC internal prototype to avoid an error.
14899    Use char because int might match the return type of a GCC
14900    builtin and then its argument prototype would still apply.  */
14901 #ifdef __cplusplus
14902 extern "C"
14903 #endif
14904 char pthread_attr_init ();
14906 main ()
14908 return pthread_attr_init ();
14909   ;
14910   return 0;
14912 _ACEOF
14913 if ac_fn_c_try_link "$LINENO"; then :
14914   ac_cv_lib_pthreads_pthread_attr_init=yes
14915 else
14916   ac_cv_lib_pthreads_pthread_attr_init=no
14918 rm -f core conftest.err conftest.$ac_objext \
14919     conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
14923 $as_echo "$ac_cv_lib_pthreads_pthread_attr_init" >&6; }
14924 if test "x$ac_cv_lib_pthreads_pthread_attr_init" = xyes; then :
14925   G_THREAD_LIBS="-lpthreads"
14928                 fi
14929                 if test "x$G_THREAD_LIBS" = xerror; then
14930                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lthread" >&5
14931 $as_echo_n "checking for pthread_attr_init in -lthread... " >&6; }
14932 if ${ac_cv_lib_thread_pthread_attr_init+:} false; then :
14933   $as_echo_n "(cached) " >&6
14934 else
14935   ac_check_lib_save_LIBS=$LIBS
14936 LIBS="-lthread  $LIBS"
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h.  */
14940 /* Override any GCC internal prototype to avoid an error.
14941    Use char because int might match the return type of a GCC
14942    builtin and then its argument prototype would still apply.  */
14943 #ifdef __cplusplus
14944 extern "C"
14945 #endif
14946 char pthread_attr_init ();
14948 main ()
14950 return pthread_attr_init ();
14951   ;
14952   return 0;
14954 _ACEOF
14955 if ac_fn_c_try_link "$LINENO"; then :
14956   ac_cv_lib_thread_pthread_attr_init=yes
14957 else
14958   ac_cv_lib_thread_pthread_attr_init=no
14960 rm -f core conftest.err conftest.$ac_objext \
14961     conftest$ac_exeext conftest.$ac_ext
14962 LIBS=$ac_check_lib_save_LIBS
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_pthread_attr_init" >&5
14965 $as_echo "$ac_cv_lib_thread_pthread_attr_init" >&6; }
14966 if test "x$ac_cv_lib_thread_pthread_attr_init" = xyes; then :
14967   G_THREAD_LIBS="-lthread"
14970                 fi
14971                 if test "x$G_THREAD_LIBS" = xerror; then
14972                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lc_r" >&5
14973 $as_echo_n "checking for pthread_attr_init in -lc_r... " >&6; }
14974 if ${ac_cv_lib_c_r_pthread_attr_init+:} false; then :
14975   $as_echo_n "(cached) " >&6
14976 else
14977   ac_check_lib_save_LIBS=$LIBS
14978 LIBS="-lc_r  $LIBS"
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h.  */
14982 /* Override any GCC internal prototype to avoid an error.
14983    Use char because int might match the return type of a GCC
14984    builtin and then its argument prototype would still apply.  */
14985 #ifdef __cplusplus
14986 extern "C"
14987 #endif
14988 char pthread_attr_init ();
14990 main ()
14992 return pthread_attr_init ();
14993   ;
14994   return 0;
14996 _ACEOF
14997 if ac_fn_c_try_link "$LINENO"; then :
14998   ac_cv_lib_c_r_pthread_attr_init=yes
14999 else
15000   ac_cv_lib_c_r_pthread_attr_init=no
15002 rm -f core conftest.err conftest.$ac_objext \
15003     conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
15007 $as_echo "$ac_cv_lib_c_r_pthread_attr_init" >&6; }
15008 if test "x$ac_cv_lib_c_r_pthread_attr_init" = xyes; then :
15009   G_THREAD_LIBS="-lc_r"
15012                 fi
15013                 if test "x$G_THREAD_LIBS" = xerror; then
15014                         ac_fn_c_check_func "$LINENO" "pthread_attr_init" "ac_cv_func_pthread_attr_init"
15015 if test "x$ac_cv_func_pthread_attr_init" = xyes; then :
15016   G_THREAD_LIBS=""
15019                 fi
15020                                 if test "x$G_THREAD_LIBS" = xerror; then
15021                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __d10_pthread_attr_init in -lthread" >&5
15022 $as_echo_n "checking for __d10_pthread_attr_init in -lthread... " >&6; }
15023 if ${ac_cv_lib_thread___d10_pthread_attr_init+:} false; then :
15024   $as_echo_n "(cached) " >&6
15025 else
15026   ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-lthread  $LIBS"
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h.  */
15031 /* Override any GCC internal prototype to avoid an error.
15032    Use char because int might match the return type of a GCC
15033    builtin and then its argument prototype would still apply.  */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char __d10_pthread_attr_init ();
15039 main ()
15041 return __d10_pthread_attr_init ();
15042   ;
15043   return 0;
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047   ac_cv_lib_thread___d10_pthread_attr_init=yes
15048 else
15049   ac_cv_lib_thread___d10_pthread_attr_init=no
15051 rm -f core conftest.err conftest.$ac_objext \
15052     conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread___d10_pthread_attr_init" >&5
15056 $as_echo "$ac_cv_lib_thread___d10_pthread_attr_init" >&6; }
15057 if test "x$ac_cv_lib_thread___d10_pthread_attr_init" = xyes; then :
15058   G_THREAD_LIBS="-lthread"
15059                                 G_THREAD_CFLAGS="-D_POSIX4A_DRAFT10_SOURCE"
15062                 fi
15063                                 if test "x$G_THREAD_LIBS" = xerror; then
15064                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_attr_init_system in -lpthread" >&5
15065 $as_echo_n "checking for __pthread_attr_init_system in -lpthread... " >&6; }
15066 if ${ac_cv_lib_pthread___pthread_attr_init_system+:} false; then :
15067   $as_echo_n "(cached) " >&6
15068 else
15069   ac_check_lib_save_LIBS=$LIBS
15070 LIBS="-lpthread  $LIBS"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h.  */
15074 /* Override any GCC internal prototype to avoid an error.
15075    Use char because int might match the return type of a GCC
15076    builtin and then its argument prototype would still apply.  */
15077 #ifdef __cplusplus
15078 extern "C"
15079 #endif
15080 char __pthread_attr_init_system ();
15082 main ()
15084 return __pthread_attr_init_system ();
15085   ;
15086   return 0;
15088 _ACEOF
15089 if ac_fn_c_try_link "$LINENO"; then :
15090   ac_cv_lib_pthread___pthread_attr_init_system=yes
15091 else
15092   ac_cv_lib_pthread___pthread_attr_init_system=no
15094 rm -f core conftest.err conftest.$ac_objext \
15095     conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_attr_init_system" >&5
15099 $as_echo "$ac_cv_lib_pthread___pthread_attr_init_system" >&6; }
15100 if test "x$ac_cv_lib_pthread___pthread_attr_init_system" = xyes; then :
15101   G_THREAD_LIBS="-lpthread"
15104                 fi
15105                 mutex_has_default=yes
15106                 mutex_default_type='pthread_mutex_t'
15107                 mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
15108                 mutex_header_file='pthread.h'
15109                 g_threads_impl="POSIX"
15110                 ;;
15111         solaris)
15112                 G_THREAD_LIBS=error
15113                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cond_init in -lthread" >&5
15114 $as_echo_n "checking for cond_init in -lthread... " >&6; }
15115 if ${ac_cv_lib_thread_cond_init+:} false; then :
15116   $as_echo_n "(cached) " >&6
15117 else
15118   ac_check_lib_save_LIBS=$LIBS
15119 LIBS="-lthread  $LIBS"
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h.  */
15123 /* Override any GCC internal prototype to avoid an error.
15124    Use char because int might match the return type of a GCC
15125    builtin and then its argument prototype would still apply.  */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char cond_init ();
15131 main ()
15133 return cond_init ();
15134   ;
15135   return 0;
15137 _ACEOF
15138 if ac_fn_c_try_link "$LINENO"; then :
15139   ac_cv_lib_thread_cond_init=yes
15140 else
15141   ac_cv_lib_thread_cond_init=no
15143 rm -f core conftest.err conftest.$ac_objext \
15144     conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_cond_init" >&5
15148 $as_echo "$ac_cv_lib_thread_cond_init" >&6; }
15149 if test "x$ac_cv_lib_thread_cond_init" = xyes; then :
15150   G_THREAD_LIBS="-lthread"
15153                 mutex_has_default=yes
15154                 mutex_default_type='mutex_t'
15155                 mutex_default_init="DEFAULTMUTEX"
15156                 mutex_header_file='thread.h'
15157                 g_threads_impl="SOLARIS"
15158                 ;;
15159         nspr)
15160                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRP_NewNakedCondVar in -lnspr21" >&5
15161 $as_echo_n "checking for PRP_NewNakedCondVar in -lnspr21... " >&6; }
15162 if ${ac_cv_lib_nspr21_PRP_NewNakedCondVar+:} false; then :
15163   $as_echo_n "(cached) " >&6
15164 else
15165   ac_check_lib_save_LIBS=$LIBS
15166 LIBS="-lnspr21  $LIBS"
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h.  */
15170 /* Override any GCC internal prototype to avoid an error.
15171    Use char because int might match the return type of a GCC
15172    builtin and then its argument prototype would still apply.  */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 char PRP_NewNakedCondVar ();
15178 main ()
15180 return PRP_NewNakedCondVar ();
15181   ;
15182   return 0;
15184 _ACEOF
15185 if ac_fn_c_try_link "$LINENO"; then :
15186   ac_cv_lib_nspr21_PRP_NewNakedCondVar=yes
15187 else
15188   ac_cv_lib_nspr21_PRP_NewNakedCondVar=no
15190 rm -f core conftest.err conftest.$ac_objext \
15191     conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr21_PRP_NewNakedCondVar" >&5
15195 $as_echo "$ac_cv_lib_nspr21_PRP_NewNakedCondVar" >&6; }
15196 if test "x$ac_cv_lib_nspr21_PRP_NewNakedCondVar" = xyes; then :
15197   G_THREAD_LIBS="-lnspr21"
15200                 g_threads_impl="NSPR"
15201                 ;;
15202         none)
15203                 g_threads_impl="NONE"
15204                 ;;
15205         *)
15206                 g_threads_impl="NONE"
15207                 G_THREAD_LIBS=error
15208                 ;;
15209 esac
15211 if test "x$G_THREAD_LIBS" = xerror; then
15212         as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking necessary linker options" >&5
15216 $as_echo_n "checking necessary linker options... " >&6; }
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
15218 $as_echo "$G_THREAD_LIBS" >&6; }
15221 if test x"$have_threads" != xnone; then
15222 G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_REENTRANT" # good default guess
15224     case $host in
15225         *-aix*)
15226                 G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
15227                 if test x"$GCC" = xyes; then
15228                         G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads"
15229                 fi
15230                 ;;
15231         *-freebsd2.2*)
15232                 G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
15234                 # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
15235                 # -mthreads flag.
15236                 ;;
15237     esac
15239     # if we are not finding the ctime_r function, then we probably are
15240     # not using the proper multithread flag
15241     # Note: Digital UNIX 4.0d #defines ctime_r to _Pctime_r for gcc.
15242     old_CPPFLAGS=$CPPFLAGS
15243     CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
15244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h.  */
15246 #include <time.h>
15248 _ACEOF
15249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15250   $EGREP "[^a-zA-Z_](_P)?ctime_r[^a-zA-Z_]" >/dev/null 2>&1; then :
15251   
15252 else
15253   G_THREAD_CFLAGS=
15254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
15255 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
15257 rm -f conftest*
15259     CPPFLAGS=$old_CPPFLAGS
15261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking necessary compiler options" >&5
15262 $as_echo_n "checking necessary compiler options... " >&6; }
15264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
15265 $as_echo "$G_THREAD_CFLAGS" >&6; }
15266 else
15267     G_THREAD_CFLAGS=
15271 if test x"$have_threads" != xnone; then
15272         glib_save_LIBS="$LIBS"
15273         glib_save_CFLAGS="$CFLAGS"
15274         # we are not doing the following for now, as this might require glib 
15275         # to always be linked with the thread libs on some platforms. 
15276         # LIBS="$LIBS $G_THREAD_LIBS"
15277         CFLAGS="$CFLAGS $G_THREAD_CFLAGS"
15278         for ac_func in localtime_r rand_r
15279 do :
15280   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15283   cat >>confdefs.h <<_ACEOF
15284 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15285 _ACEOF
15288 done
15290         if test "$ac_cv_header_pwd_h" = "yes"; then
15291                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r" >&5
15292 $as_echo_n "checking for getpwuid_r... " >&6; }
15293                 if ${ac_cv_func_getpwuid_r+:} false; then :
15294   $as_echo_n "(cached) " >&6
15295 else
15296   if test "$cross_compiling" = yes; then :
15297   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15299 as_fn_error $? "cannot run test program while cross compiling
15300 See \`config.log' for more details" "$LINENO" 5; }
15301 else
15302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h.  */
15304 #include <errno.h>
15305                                 int main () { char buffer[10000], *pointer; 
15306                                 char getpwuid_r (long, void*, void*,
15307                                         int, void*);
15308                                 int error;
15309                                 errno = 0;
15310                                 error = getpwuid_r (0, &buffer, &buffer, 
15311                                         sizeof (buffer), &pointer);
15312                                 return errno == ENOSYS || error == ENOSYS;}
15313 _ACEOF
15314 if ac_fn_c_try_run "$LINENO"; then :
15315   ac_cv_func_getpwuid_r=yes
15316 else
15317   ac_cv_func_getpwuid_r=no
15319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15320   conftest.$ac_objext conftest.beam conftest.$ac_ext
15325                 if test "$ac_cv_func_getpwuid_r" = yes; then
15326                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15327 $as_echo "yes" >&6; }
15328                         $as_echo "@%:@define HAVE_GETPWUID_R 1" >>confdefs.h
15330                 else
15331                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332 $as_echo "no" >&6; }
15333                 fi
15334                 if test "$ac_cv_func_getpwuid_r" = "yes"; then
15335                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwuid_r is posix like" >&5
15336 $as_echo_n "checking whether getpwuid_r is posix like... " >&6; }
15337                         # The signature for the POSIX version is:
15338                         # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
15339                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific is posix like" >&5
15340 $as_echo_n "checking whether pthread_getspecific is posix like... " >&6; }
15341 if ${ac_cv_func_getpwuid_r_posix+:} false; then :
15342   $as_echo_n "(cached) " >&6
15343 else
15344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h.  */
15346 #include <pwd.h>
15347                                  #include <sys/types.h>
15348                                  #include <stdlib.h>
15350 main ()
15352 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
15353   ;
15354   return 0;
15356 _ACEOF
15357 if ac_fn_c_try_compile "$LINENO"; then :
15358   ac_cv_func_getpwuid_r_posix=yes
15359 else
15360   ac_cv_func_getpwuid_r_posix=no
15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363                         
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwuid_r_posix" >&5
15366 $as_echo "$ac_cv_func_getpwuid_r_posix" >&6; }
15367                         if test "x$ac_cv_func_getpwuid_r_posix" = "xyes"; then
15368                                 $as_echo "@%:@define HAVE_GETPWUID_R_POSIX 1" >>confdefs.h
15370                         fi
15371                 fi
15372         fi
15373         if test x"$have_threads" = xposix; then
15374                 LIBS="$LIBS $G_THREAD_LIBS"
15375                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific is posix like" >&5
15376 $as_echo_n "checking whether pthread_getspecific is posix like... " >&6; }
15377                 # PCThreads has pthread_getspecific(pthread_key_t, void **);
15378                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific is posix like" >&5
15379 $as_echo_n "checking whether pthread_getspecific is posix like... " >&6; }
15380 if ${glib_cv_sys_pthread_getspecific_posix+:} false; then :
15381   $as_echo_n "(cached) " >&6
15382 else
15383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h.  */
15385 #include <pthread.h>
15387 main ()
15389 pthread_getspecific(0,NULL);
15390   ;
15391   return 0;
15393 _ACEOF
15394 if ac_fn_c_try_compile "$LINENO"; then :
15395   glib_cv_sys_pthread_getspecific_posix=no
15396 else
15397   glib_cv_sys_pthread_getspecific_posix=yes
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400                 
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sys_pthread_getspecific_posix" >&5
15403 $as_echo "$glib_cv_sys_pthread_getspecific_posix" >&6; }
15404                 if test "x$glib_cv_sys_pthread_getspecific_posix" = "xyes"; then
15405                         $as_echo "@%:@define HAVE_PTHREAD_GETSPECIFIC_POSIX 1" >>confdefs.h
15407                 fi
15408                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_mutex_trylock is posix like" >&5
15409 $as_echo_n "checking whether pthread_mutex_trylock is posix like... " >&6; }
15410                 # DCE Threads return 1 as success, posix 0. what a mess.
15411                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_mutex_trylock is posix like" >&5
15412 $as_echo_n "checking whether pthread_mutex_trylock is posix like... " >&6; }
15413 if ${glib_cv_sys_pthread_mutex_trylock_posix+:} false; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   if test "$cross_compiling" = yes; then :
15417   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15419 as_fn_error $? "cannot run test program while cross compiling
15420 See \`config.log' for more details" "$LINENO" 5; }
15421 else
15422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h.  */
15424 #include <pthread.h>
15425                                 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
15426                                 int main () { 
15427                                 return !pthread_mutex_trylock (&mutex); }
15428 _ACEOF
15429 if ac_fn_c_try_run "$LINENO"; then :
15430   glib_cv_sys_pthread_mutex_trylock_posix=no
15431 else
15432   glib_cv_sys_pthread_mutex_trylock_posix=yes
15434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15435   conftest.$ac_objext conftest.beam conftest.$ac_ext
15438                 
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sys_pthread_mutex_trylock_posix" >&5
15441 $as_echo "$glib_cv_sys_pthread_mutex_trylock_posix" >&6; }
15442                 if test "x$glib_cv_sys_pthread_mutex_trylock_posix=no" = "xyes"; then
15443                         $as_echo "@%:@define HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX 1" >>confdefs.h
15445                 fi
15446                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_cond_timedwait is posix like" >&5
15447 $as_echo_n "checking whether pthread_cond_timedwait is posix like... " >&6; }
15448                 # DCE Threads return -1 as failure, posix ETIMEDOUT.
15449                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_cond_timedwait is posix like" >&5
15450 $as_echo_n "checking whether pthread_cond_timedwait is posix like... " >&6; }
15451 if ${glib_cv_sys_pthread_cond_timedwait_posix+:} false; then :
15452   $as_echo_n "(cached) " >&6
15453 else
15454   if test "$cross_compiling" = yes; then :
15455   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15457 as_fn_error $? "cannot run test program while cross compiling
15458 See \`config.log' for more details" "$LINENO" 5; }
15459 else
15460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h.  */
15462 #include <pthread.h>
15463                                 int main () { 
15464                                 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
15465                                 pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
15466                                 struct timeval tval;
15467                                 struct timespec tspec;
15468                                 gettimeofday (&tval, NULL);
15469                                 tspec.tv_sec = tval.tv_sec;
15470                                 tspec.tv_nsec = 0;
15471                                 return pthread_cond_timedwait (&cond,&mutex,&tspec) != -1;}
15472 _ACEOF
15473 if ac_fn_c_try_run "$LINENO"; then :
15474   glib_cv_sys_pthread_cond_timedwait_posix=no
15475 else
15476   glib_cv_sys_pthread_cond_timedwait_posix=yes
15478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15479   conftest.$ac_objext conftest.beam conftest.$ac_ext
15482                 
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sys_pthread_cond_timedwait_posix" >&5
15485 $as_echo "$glib_cv_sys_pthread_cond_timedwait_posix" >&6; }
15486                 if test "x$glib_cv_sys_pthread_cond_timedwait_posix" = "xyes"; then
15487                         $as_echo "@%:@define HAVE_PTHREAD_COND_TIMEDWAIT_POSIX 1" >>confdefs.h
15489                 fi
15490         fi
15491         LIBS="$glib_save_LIBS"
15492         CFLAGS="$glib_save_CFLAGS"
15495 if test "x$enable_threads" = "xyes"; then
15496         if test "$ac_cv_func_getpwuid_r" != "yes"; then
15497                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
15498 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
15499         fi
15500         if test "$ac_cv_func_localtime_r" != "yes"; then
15501                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
15502 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
15503         fi
15506 cat >>confdefs.h <<_ACEOF
15507 @%:@define G_THREAD_SOURCE "gthread-$have_threads.c"
15508 _ACEOF
15513 CFLAGS="$CFLAGS $G_THREAD_CFLAGS"
15516         case "$mutex_has_default" in
15517         "yes")
15518                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of $mutex_default_type" >&5
15519 $as_echo_n "checking size of $mutex_default_type... " >&6; }
15520 if ${glib_cv_sizeof_gmutex+:} false; then :
15521   $as_echo_n "(cached) " >&6
15522 else
15523   if test "$cross_compiling" = yes; then :
15524   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15526 as_fn_error $? "cannot run test program while cross compiling
15527 See \`config.log' for more details" "$LINENO" 5; }
15528 else
15529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h.  */
15531 #include <stdio.h>
15532 #include <$mutex_header_file>
15533 main()
15535   FILE *f=fopen("conftestval", "w");
15536   if (!f) exit(1);
15537   fprintf(f, "%d\n", sizeof($mutex_default_type));
15538   exit(0);
15540 _ACEOF
15541 if ac_fn_c_try_run "$LINENO"; then :
15542   glib_cv_sizeof_gmutex=`cat conftestval`
15543 else
15544   glib_cv_sizeof_gmutex=0
15546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15547   conftest.$ac_objext conftest.beam conftest.$ac_ext
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sizeof_gmutex" >&5
15552 $as_echo "$glib_cv_sizeof_gmutex" >&6; }
15553 cat >>confdefs.h <<_ACEOF
15554 @%:@define GLIB_SIZEOF_GMUTEX $glib_cv_sizeof_gmutex
15555 _ACEOF
15558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking byte contents of $mutex_default_type" >&5
15559 $as_echo_n "checking byte contents of $mutex_default_type... " >&6; }
15560 if ${glib_cv_byte_contents_gmutex+:} false; then :
15561   $as_echo_n "(cached) " >&6
15562 else
15563   if test "$cross_compiling" = yes; then :
15564   glib_cv_byte_contents_gmutex=0
15565 else
15566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h.  */
15568 #include <stdio.h>
15569 #include <$mutex_header_file>
15570 main()
15572   static $mutex_default_type tv = $mutex_default_init;
15573   char *p = (char*) &tv;
15574   int i;
15575   FILE *f=fopen("conftestval", "w");
15576   if (!f) exit(1);
15577   for (i = 0; i < $glib_cv_sizeof_gmutex; i++)
15578     fprintf(f, "%s%d", i?",":"", *(p++));
15579   fprintf(f, "\n");
15580   exit(0);
15582 _ACEOF
15583 if ac_fn_c_try_run "$LINENO"; then :
15584   glib_cv_byte_contents_gmutex=`cat conftestval`
15585 else
15586   glib_cv_byte_contents_gmutex=0
15588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15589   conftest.$ac_objext conftest.beam conftest.$ac_ext
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_byte_contents_gmutex" >&5
15594 $as_echo "$glib_cv_byte_contents_gmutex" >&6; }
15595 cat >>confdefs.h <<_ACEOF
15596 @%:@define GLIB_BYTE_CONTENTS_GMUTEX $glib_cv_byte_contents_gmutex
15597 _ACEOF
15600         
15601                 ;;
15602         *)
15603                 
15604                 ;;
15605         esac
15609 if test "x$cross_compiling" != "xyes"; then
15610 glib_sysdefso="glibconfig-sysdefs.h"
15611 glib_sysdef_msg=`echo POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 | sed 's/:[^        ]*//g'`
15612 if test "x`(echo '\n') 2>/dev/null`" != 'x\n'; then
15613   glib_nl='\\n'
15614 else
15615   glib_nl='\n'
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system definitions for $glib_sysdef_msg" >&5
15618 $as_echo_n "checking system definitions for $glib_sysdef_msg... " >&6; }
15619 cat >confrun.c <<_______EOF
15620 #include <stdio.h>
15621 #include <sys/types.h>
15622 #include <sys/poll.h>
15623 int main (int c, char **v) {
15624   FILE *f = fopen ("$glib_sysdefso", "a");
15625   if (!f) return 1;
15626 _______EOF
15627 for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
15628         glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([^:]*\):.*$/\1/'`
15629         glib_default=`echo $glib_sysdef_input | sed 's/^[^:]*:\(.*\)$/\1/'`
15630         echo "#ifdef $glib_sysdef" >>confrun.c
15631         echo "  fprintf (f, \"#define GLIB_SYSDEF_%s %s%d${glib_nl}\", \"$glib_sysdef\", \"=\", $glib_sysdef);" >>confrun.c
15632         echo "#else" >>confrun.c
15633         if test $glib_sysdef != $glib_default; then
15634                 echo "  fprintf (f, \"#define GLIB_SYSDEF_%s %s%d${glib_nl}\", \"$glib_sysdef\", \"=\", $glib_default);" >>confrun.c
15635         else
15636                 echo "  fprintf (f, \"#define GLIB_SYSDEF_%s${glib_nl}\", \"$glib_sysdef\");" >>confrun.c
15637         fi
15638         echo "#endif" >>confrun.c
15639 done
15640 echo "return 0; }" >>confrun.c
15641 if test "$cross_compiling" = yes; then :
15642   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15644 as_fn_error $? "cannot run test program while cross compiling
15645 See \`config.log' for more details" "$LINENO" 5; }
15646 else
15647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h.  */
15649 `cat confrun.c`
15650 _ACEOF
15651 if ac_fn_c_try_run "$LINENO"; then :
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15653 $as_echo "done" >&6; }
15654 else
15655         for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
15656                 glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([^:]*\):.*$/\1/'`
15657                 glib_default=`echo $glib_sysdef_input | sed 's/^[^:]*:\(.*\)$/\1/'`
15658                 if test $glib_sysdef != $glib_default; then
15659                         glib_default=" =$glib_default"
15660                 else
15661                         glib_default=
15662                 fi
15663                 echo "#define GLIB_SYSDEF_$glib_sysdef$glib_default" >>$glib_sysdefso
15664         done
15665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15666 $as_echo "failed" >&6; }
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15669   conftest.$ac_objext conftest.beam conftest.$ac_ext
15672 rm -f confrun.c
15678 ac_config_commands="$ac_config_commands default-1"
15681 ac_config_files="$ac_config_files glib.spec Makefile glib-config gmodule/gmoduleconf.h gmodule/Makefile gthread/Makefile docs/Makefile docs/glib-config.1 tests/Makefile glib.pc gmodule.pc gthread.pc"
15683 ac_config_commands="$ac_config_commands default"
15685 cat >confcache <<\_ACEOF
15686 # This file is a shell script that caches the results of configure
15687 # tests run on this system so they can be shared between configure
15688 # scripts and configure runs, see configure's option --config-cache.
15689 # It is not useful on other systems.  If it contains results you don't
15690 # want to keep, you may remove or edit it.
15692 # config.status only pays attention to the cache file if you give it
15693 # the --recheck option to rerun configure.
15695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15697 # following values.
15699 _ACEOF
15701 # The following way of writing the cache mishandles newlines in values,
15702 # but we know of no workaround that is simple, portable, and efficient.
15703 # So, we kill variables containing newlines.
15704 # Ultrix sh set writes to stderr and can't be redirected directly,
15705 # and sets the high bit in the cache file unless we assign to the vars.
15707   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15708     eval ac_val=\$$ac_var
15709     case $ac_val in #(
15710     *${as_nl}*)
15711       case $ac_var in #(
15712       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15713 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15714       esac
15715       case $ac_var in #(
15716       _ | IFS | as_nl) ;; #(
15717       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15718       *) { eval $ac_var=; unset $ac_var;} ;;
15719       esac ;;
15720     esac
15721   done
15723   (set) 2>&1 |
15724     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15725     *${as_nl}ac_space=\ *)
15726       # `set' does not quote correctly, so add quotes: double-quote
15727       # substitution turns \\\\ into \\, and sed turns \\ into \.
15728       sed -n \
15729         "s/'/'\\\\''/g;
15730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15731       ;; #(
15732     *)
15733       # `set' quotes correctly as required by POSIX, so do not add quotes.
15734       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15735       ;;
15736     esac |
15737     sort
15738 ) |
15739   sed '
15740      /^ac_cv_env_/b end
15741      t clear
15742      :clear
15743      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15744      t end
15745      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15746      :end' >>confcache
15747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15748   if test -w "$cache_file"; then
15749     if test "x$cache_file" != "x/dev/null"; then
15750       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15751 $as_echo "$as_me: updating cache $cache_file" >&6;}
15752       if test ! -f "$cache_file" || test -h "$cache_file"; then
15753         cat confcache >"$cache_file"
15754       else
15755         case $cache_file in #(
15756         */* | ?:*)
15757           mv -f confcache "$cache_file"$$ &&
15758           mv -f "$cache_file"$$ "$cache_file" ;; #(
15759         *)
15760           mv -f confcache "$cache_file" ;;
15761         esac
15762       fi
15763     fi
15764   else
15765     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15767   fi
15769 rm -f confcache
15771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15772 # Let make expand exec_prefix.
15773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15775 DEFS=-DHAVE_CONFIG_H
15777 ac_libobjs=
15778 ac_ltlibobjs=
15780 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15781   # 1. Remove the extension, and $U if already installed.
15782   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15783   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15784   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15785   #    will be set to the directory where LIBOBJS objects are built.
15786   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15787   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15788 done
15789 LIB@&t@OBJS=$ac_libobjs
15791 LTLIBOBJS=$ac_ltlibobjs
15794  if test -n "$EXEEXT"; then
15795   am__EXEEXT_TRUE=
15796   am__EXEEXT_FALSE='#'
15797 else
15798   am__EXEEXT_TRUE='#'
15799   am__EXEEXT_FALSE=
15802 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15803   as_fn_error $? "conditional \"AMDEP\" was never defined.
15804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15807   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15811   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15815   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15819   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15824 : "${CONFIG_STATUS=./config.status}"
15825 ac_write_fail=0
15826 ac_clean_files_save=$ac_clean_files
15827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15829 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15830 as_write_fail=0
15831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15832 #! $SHELL
15833 # Generated by $as_me.
15834 # Run this file to recreate the current configuration.
15835 # Compiler output produced by configure, useful for debugging
15836 # configure, is in config.log if it exists.
15838 debug=false
15839 ac_cs_recheck=false
15840 ac_cs_silent=false
15842 SHELL=\${CONFIG_SHELL-$SHELL}
15843 export SHELL
15844 _ASEOF
15845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15846 ## -------------------- ##
15847 ## M4sh Initialization. ##
15848 ## -------------------- ##
15850 # Be more Bourne compatible
15851 DUALCASE=1; export DUALCASE # for MKS sh
15852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15853   emulate sh
15854   NULLCMD=:
15855   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15856   # is contrary to our usage.  Disable this feature.
15857   alias -g '${1+"$@"}'='"$@"'
15858   setopt NO_GLOB_SUBST
15859 else
15860   case `(set -o) 2>/dev/null` in @%:@(
15861   *posix*) :
15862     set -o posix ;; @%:@(
15863   *) :
15864      ;;
15865 esac
15869 as_nl='
15871 export as_nl
15872 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15873 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15876 # Prefer a ksh shell builtin over an external printf program on Solaris,
15877 # but without wasting forks for bash or zsh.
15878 if test -z "$BASH_VERSION$ZSH_VERSION" \
15879     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15880   as_echo='print -r --'
15881   as_echo_n='print -rn --'
15882 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15883   as_echo='printf %s\n'
15884   as_echo_n='printf %s'
15885 else
15886   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15887     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15888     as_echo_n='/usr/ucb/echo -n'
15889   else
15890     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15891     as_echo_n_body='eval
15892       arg=$1;
15893       case $arg in @%:@(
15894       *"$as_nl"*)
15895         expr "X$arg" : "X\\(.*\\)$as_nl";
15896         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15897       esac;
15898       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15899     '
15900     export as_echo_n_body
15901     as_echo_n='sh -c $as_echo_n_body as_echo'
15902   fi
15903   export as_echo_body
15904   as_echo='sh -c $as_echo_body as_echo'
15907 # The user is always right.
15908 if test "${PATH_SEPARATOR+set}" != set; then
15909   PATH_SEPARATOR=:
15910   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15911     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15912       PATH_SEPARATOR=';'
15913   }
15917 # IFS
15918 # We need space, tab and new line, in precisely that order.  Quoting is
15919 # there to prevent editors from complaining about space-tab.
15920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15921 # splitting by setting IFS to empty value.)
15922 IFS=" ""        $as_nl"
15924 # Find who we are.  Look in the path if we contain no directory separator.
15925 as_myself=
15926 case $0 in @%:@((
15927   *[\\/]* ) as_myself=$0 ;;
15928   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15929 for as_dir in $PATH
15931   IFS=$as_save_IFS
15932   test -z "$as_dir" && as_dir=.
15933     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15934   done
15935 IFS=$as_save_IFS
15937      ;;
15938 esac
15939 # We did not find ourselves, most probably we were run as `sh COMMAND'
15940 # in which case we are not to be found in the path.
15941 if test "x$as_myself" = x; then
15942   as_myself=$0
15944 if test ! -f "$as_myself"; then
15945   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15946   exit 1
15949 # Unset variables that we do not need and which cause bugs (e.g. in
15950 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15951 # suppresses any "Segmentation fault" message there.  '((' could
15952 # trigger a bug in pdksh 5.2.14.
15953 for as_var in BASH_ENV ENV MAIL MAILPATH
15954 do eval test x\${$as_var+set} = xset \
15955   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15956 done
15957 PS1='$ '
15958 PS2='> '
15959 PS4='+ '
15961 # NLS nuisances.
15962 LC_ALL=C
15963 export LC_ALL
15964 LANGUAGE=C
15965 export LANGUAGE
15967 # CDPATH.
15968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15971 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15972 @%:@ ----------------------------------------
15973 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15974 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15975 @%:@ script with STATUS, using 1 if that was 0.
15976 as_fn_error ()
15978   as_status=$1; test $as_status -eq 0 && as_status=1
15979   if test "$4"; then
15980     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15981     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15982   fi
15983   $as_echo "$as_me: error: $2" >&2
15984   as_fn_exit $as_status
15985 } @%:@ as_fn_error
15988 @%:@ as_fn_set_status STATUS
15989 @%:@ -----------------------
15990 @%:@ Set @S|@? to STATUS, without forking.
15991 as_fn_set_status ()
15993   return $1
15994 } @%:@ as_fn_set_status
15996 @%:@ as_fn_exit STATUS
15997 @%:@ -----------------
15998 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15999 as_fn_exit ()
16001   set +e
16002   as_fn_set_status $1
16003   exit $1
16004 } @%:@ as_fn_exit
16006 @%:@ as_fn_unset VAR
16007 @%:@ ---------------
16008 @%:@ Portably unset VAR.
16009 as_fn_unset ()
16011   { eval $1=; unset $1;}
16013 as_unset=as_fn_unset
16014 @%:@ as_fn_append VAR VALUE
16015 @%:@ ----------------------
16016 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16017 @%:@ advantage of any shell optimizations that allow amortized linear growth over
16018 @%:@ repeated appends, instead of the typical quadratic growth present in naive
16019 @%:@ implementations.
16020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16021   eval 'as_fn_append ()
16022   {
16023     eval $1+=\$2
16024   }'
16025 else
16026   as_fn_append ()
16027   {
16028     eval $1=\$$1\$2
16029   }
16030 fi # as_fn_append
16032 @%:@ as_fn_arith ARG...
16033 @%:@ ------------------
16034 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16035 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16036 @%:@ must be portable across @S|@(()) and expr.
16037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16038   eval 'as_fn_arith ()
16039   {
16040     as_val=$(( $* ))
16041   }'
16042 else
16043   as_fn_arith ()
16044   {
16045     as_val=`expr "$@" || test $? -eq 1`
16046   }
16047 fi # as_fn_arith
16050 if expr a : '\(a\)' >/dev/null 2>&1 &&
16051    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16052   as_expr=expr
16053 else
16054   as_expr=false
16057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16058   as_basename=basename
16059 else
16060   as_basename=false
16063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16064   as_dirname=dirname
16065 else
16066   as_dirname=false
16069 as_me=`$as_basename -- "$0" ||
16070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16071          X"$0" : 'X\(//\)$' \| \
16072          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16073 $as_echo X/"$0" |
16074     sed '/^.*\/\([^/][^/]*\)\/*$/{
16075             s//\1/
16076             q
16077           }
16078           /^X\/\(\/\/\)$/{
16079             s//\1/
16080             q
16081           }
16082           /^X\/\(\/\).*/{
16083             s//\1/
16084             q
16085           }
16086           s/.*/./; q'`
16088 # Avoid depending upon Character Ranges.
16089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16092 as_cr_digits='0123456789'
16093 as_cr_alnum=$as_cr_Letters$as_cr_digits
16095 ECHO_C= ECHO_N= ECHO_T=
16096 case `echo -n x` in @%:@(((((
16097 -n*)
16098   case `echo 'xy\c'` in
16099   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16100   xy)  ECHO_C='\c';;
16101   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16102        ECHO_T=' ';;
16103   esac;;
16105   ECHO_N='-n';;
16106 esac
16108 rm -f conf$$ conf$$.exe conf$$.file
16109 if test -d conf$$.dir; then
16110   rm -f conf$$.dir/conf$$.file
16111 else
16112   rm -f conf$$.dir
16113   mkdir conf$$.dir 2>/dev/null
16115 if (echo >conf$$.file) 2>/dev/null; then
16116   if ln -s conf$$.file conf$$ 2>/dev/null; then
16117     as_ln_s='ln -s'
16118     # ... but there are two gotchas:
16119     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16120     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16121     # In both cases, we have to default to `cp -p'.
16122     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16123       as_ln_s='cp -p'
16124   elif ln conf$$.file conf$$ 2>/dev/null; then
16125     as_ln_s=ln
16126   else
16127     as_ln_s='cp -p'
16128   fi
16129 else
16130   as_ln_s='cp -p'
16132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16133 rmdir conf$$.dir 2>/dev/null
16136 @%:@ as_fn_mkdir_p
16137 @%:@ -------------
16138 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
16139 as_fn_mkdir_p ()
16142   case $as_dir in #(
16143   -*) as_dir=./$as_dir;;
16144   esac
16145   test -d "$as_dir" || eval $as_mkdir_p || {
16146     as_dirs=
16147     while :; do
16148       case $as_dir in #(
16149       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16150       *) as_qdir=$as_dir;;
16151       esac
16152       as_dirs="'$as_qdir' $as_dirs"
16153       as_dir=`$as_dirname -- "$as_dir" ||
16154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16155          X"$as_dir" : 'X\(//\)[^/]' \| \
16156          X"$as_dir" : 'X\(//\)$' \| \
16157          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16158 $as_echo X"$as_dir" |
16159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16160             s//\1/
16161             q
16162           }
16163           /^X\(\/\/\)[^/].*/{
16164             s//\1/
16165             q
16166           }
16167           /^X\(\/\/\)$/{
16168             s//\1/
16169             q
16170           }
16171           /^X\(\/\).*/{
16172             s//\1/
16173             q
16174           }
16175           s/.*/./; q'`
16176       test -d "$as_dir" && break
16177     done
16178     test -z "$as_dirs" || eval "mkdir $as_dirs"
16179   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16182 } @%:@ as_fn_mkdir_p
16183 if mkdir -p . 2>/dev/null; then
16184   as_mkdir_p='mkdir -p "$as_dir"'
16185 else
16186   test -d ./-p && rmdir ./-p
16187   as_mkdir_p=false
16190 if test -x / >/dev/null 2>&1; then
16191   as_test_x='test -x'
16192 else
16193   if ls -dL / >/dev/null 2>&1; then
16194     as_ls_L_option=L
16195   else
16196     as_ls_L_option=
16197   fi
16198   as_test_x='
16199     eval sh -c '\''
16200       if test -d "$1"; then
16201         test -d "$1/.";
16202       else
16203         case $1 in @%:@(
16204         -*)set "./$1";;
16205         esac;
16206         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
16207         ???[sx]*):;;*)false;;esac;fi
16208     '\'' sh
16209   '
16211 as_executable_p=$as_test_x
16213 # Sed expression to map a string onto a valid CPP name.
16214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16216 # Sed expression to map a string onto a valid variable name.
16217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16220 exec 6>&1
16221 ## ----------------------------------- ##
16222 ## Main body of $CONFIG_STATUS script. ##
16223 ## ----------------------------------- ##
16224 _ASEOF
16225 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16228 # Save the log message, to keep $0 and so on meaningful, and to
16229 # report actual input values of CONFIG_FILES etc. instead of their
16230 # values after options handling.
16231 ac_log="
16232 This file was extended by $as_me, which was
16233 generated by GNU Autoconf 2.68.  Invocation command line was
16235   CONFIG_FILES    = $CONFIG_FILES
16236   CONFIG_HEADERS  = $CONFIG_HEADERS
16237   CONFIG_LINKS    = $CONFIG_LINKS
16238   CONFIG_COMMANDS = $CONFIG_COMMANDS
16239   $ $0 $@
16241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16244 _ACEOF
16246 case $ac_config_files in *"
16247 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16248 esac
16250 case $ac_config_headers in *"
16251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16252 esac
16255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256 # Files that config.status was made for.
16257 config_files="$ac_config_files"
16258 config_headers="$ac_config_headers"
16259 config_commands="$ac_config_commands"
16261 _ACEOF
16263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16264 ac_cs_usage="\
16265 \`$as_me' instantiates files and other configuration actions
16266 from templates according to the current configuration.  Unless the files
16267 and actions are specified as TAGs, all are instantiated by default.
16269 Usage: $0 [OPTION]... [TAG]...
16271   -h, --help       print this help, then exit
16272   -V, --version    print version number and configuration settings, then exit
16273       --config     print configuration, then exit
16274   -q, --quiet, --silent
16275                    do not print progress messages
16276   -d, --debug      don't remove temporary files
16277       --recheck    update $as_me by reconfiguring in the same conditions
16278       --file=FILE[:TEMPLATE] 
16279                    instantiate the configuration file FILE
16280       --header=FILE[:TEMPLATE] 
16281                    instantiate the configuration header FILE
16283 Configuration files:
16284 $config_files
16286 Configuration headers:
16287 $config_headers
16289 Configuration commands:
16290 $config_commands
16292 Report bugs to the package provider."
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16297 ac_cs_version="\\
16298 config.status
16299 configured by $0, generated by GNU Autoconf 2.68,
16300   with options \\"\$ac_cs_config\\"
16302 Copyright (C) 2010 Free Software Foundation, Inc.
16303 This config.status script is free software; the Free Software Foundation
16304 gives unlimited permission to copy, distribute and modify it."
16306 ac_pwd='$ac_pwd'
16307 srcdir='$srcdir'
16308 INSTALL='$INSTALL'
16309 MKDIR_P='$MKDIR_P'
16310 AWK='$AWK'
16311 test -n "\$AWK" || AWK=awk
16312 _ACEOF
16314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16315 # The default lists apply if the user does not specify any file.
16316 ac_need_defaults=:
16317 while test $# != 0
16319   case $1 in
16320   --*=?*)
16321     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16322     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16323     ac_shift=:
16324     ;;
16325   --*=)
16326     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16327     ac_optarg=
16328     ac_shift=:
16329     ;;
16330   *)
16331     ac_option=$1
16332     ac_optarg=$2
16333     ac_shift=shift
16334     ;;
16335   esac
16337   case $ac_option in
16338   # Handling of the options.
16339   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16340     ac_cs_recheck=: ;;
16341   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16342     $as_echo "$ac_cs_version"; exit ;;
16343   --config | --confi | --conf | --con | --co | --c )
16344     $as_echo "$ac_cs_config"; exit ;;
16345   --debug | --debu | --deb | --de | --d | -d )
16346     debug=: ;;
16347   --file | --fil | --fi | --f )
16348     $ac_shift
16349     case $ac_optarg in
16350     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16351     '') as_fn_error $? "missing file argument" ;;
16352     esac
16353     as_fn_append CONFIG_FILES " '$ac_optarg'"
16354     ac_need_defaults=false;;
16355   --header | --heade | --head | --hea )
16356     $ac_shift
16357     case $ac_optarg in
16358     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16359     esac
16360     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16361     ac_need_defaults=false;;
16362   --he | --h)
16363     # Conflict between --help and --header
16364     as_fn_error $? "ambiguous option: \`$1'
16365 Try \`$0 --help' for more information.";;
16366   --help | --hel | -h )
16367     $as_echo "$ac_cs_usage"; exit ;;
16368   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16369   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16370     ac_cs_silent=: ;;
16372   # This is an error.
16373   -*) as_fn_error $? "unrecognized option: \`$1'
16374 Try \`$0 --help' for more information." ;;
16376   *) as_fn_append ac_config_targets " $1"
16377      ac_need_defaults=false ;;
16379   esac
16380   shift
16381 done
16383 ac_configure_extra_args=
16385 if $ac_cs_silent; then
16386   exec 6>/dev/null
16387   ac_configure_extra_args="$ac_configure_extra_args --silent"
16390 _ACEOF
16391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16392 if \$ac_cs_recheck; then
16393   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16394   shift
16395   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16396   CONFIG_SHELL='$SHELL'
16397   export CONFIG_SHELL
16398   exec "\$@"
16401 _ACEOF
16402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16403 exec 5>>config.log
16405   echo
16406   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16407 @%:@@%:@ Running $as_me. @%:@@%:@
16408 _ASBOX
16409   $as_echo "$ac_log"
16410 } >&5
16412 _ACEOF
16413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16415 # INIT-COMMANDS
16417 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16420 # The HP-UX ksh and POSIX shell print the target directory to stdout
16421 # if CDPATH is set.
16422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16424 sed_quote_subst='$sed_quote_subst'
16425 double_quote_subst='$double_quote_subst'
16426 delay_variable_subst='$delay_variable_subst'
16427 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16428 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16429 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16430 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16431 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16432 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16433 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16434 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16435 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16436 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16437 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16438 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16439 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16440 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16441 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16442 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16443 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16444 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16445 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16446 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16447 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16448 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16449 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16450 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16451 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16452 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16453 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16454 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16455 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16456 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16457 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16458 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16459 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16460 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16461 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16462 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16463 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16464 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16465 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16466 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16468 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16482 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16483 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16484 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16488 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16489 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16493 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16494 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16495 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16496 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16497 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16498 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16499 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16500 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16501 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16502 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16503 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16504 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16505 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16506 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16507 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16508 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16509 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16510 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16511 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16512 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16513 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16514 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16515 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16516 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16517 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16518 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16519 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16520 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16521 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16522 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16523 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16524 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16525 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16526 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16527 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16528 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16529 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16530 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16531 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16532 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16533 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16534 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16535 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16536 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16537 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16538 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16539 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16540 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16541 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16542 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16543 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16544 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16545 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16546 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16547 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16548 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16549 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16550 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16551 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16552 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16553 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16554 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16555 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16556 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16558 LTCC='$LTCC'
16559 LTCFLAGS='$LTCFLAGS'
16560 compiler='$compiler_DEFAULT'
16562 # A function that is used when there is no print builtin or printf.
16563 func_fallback_echo ()
16565   eval 'cat <<_LTECHO_EOF
16567 _LTECHO_EOF'
16570 # Quote evaled strings.
16571 for var in SHELL \
16572 ECHO \
16573 SED \
16574 GREP \
16575 EGREP \
16576 FGREP \
16577 LD \
16578 NM \
16579 LN_S \
16580 lt_SP2NL \
16581 lt_NL2SP \
16582 reload_flag \
16583 OBJDUMP \
16584 deplibs_check_method \
16585 file_magic_cmd \
16586 file_magic_glob \
16587 want_nocaseglob \
16588 DLLTOOL \
16589 sharedlib_from_linklib_cmd \
16590 AR \
16591 AR_FLAGS \
16592 archiver_list_spec \
16593 STRIP \
16594 RANLIB \
16595 CC \
16596 CFLAGS \
16597 compiler \
16598 lt_cv_sys_global_symbol_pipe \
16599 lt_cv_sys_global_symbol_to_cdecl \
16600 lt_cv_sys_global_symbol_to_c_name_address \
16601 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16602 nm_file_list_spec \
16603 lt_prog_compiler_no_builtin_flag \
16604 lt_prog_compiler_pic \
16605 lt_prog_compiler_wl \
16606 lt_prog_compiler_static \
16607 lt_cv_prog_compiler_c_o \
16608 need_locks \
16609 MANIFEST_TOOL \
16610 DSYMUTIL \
16611 NMEDIT \
16612 LIPO \
16613 OTOOL \
16614 OTOOL64 \
16615 shrext_cmds \
16616 export_dynamic_flag_spec \
16617 whole_archive_flag_spec \
16618 compiler_needs_object \
16619 with_gnu_ld \
16620 allow_undefined_flag \
16621 no_undefined_flag \
16622 hardcode_libdir_flag_spec \
16623 hardcode_libdir_flag_spec_ld \
16624 hardcode_libdir_separator \
16625 exclude_expsyms \
16626 include_expsyms \
16627 file_list_spec \
16628 variables_saved_for_relink \
16629 libname_spec \
16630 library_names_spec \
16631 soname_spec \
16632 install_override_mode \
16633 finish_eval \
16634 old_striplib \
16635 striplib; do
16636     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16637     *[\\\\\\\`\\"\\\$]*)
16638       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16639       ;;
16640     *)
16641       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16642       ;;
16643     esac
16644 done
16646 # Double-quote double-evaled strings.
16647 for var in reload_cmds \
16648 old_postinstall_cmds \
16649 old_postuninstall_cmds \
16650 old_archive_cmds \
16651 extract_expsyms_cmds \
16652 old_archive_from_new_cmds \
16653 old_archive_from_expsyms_cmds \
16654 archive_cmds \
16655 archive_expsym_cmds \
16656 module_cmds \
16657 module_expsym_cmds \
16658 export_symbols_cmds \
16659 prelink_cmds \
16660 postlink_cmds \
16661 postinstall_cmds \
16662 postuninstall_cmds \
16663 finish_cmds \
16664 sys_lib_search_path_spec \
16665 sys_lib_dlsearch_path_spec; do
16666     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16667     *[\\\\\\\`\\"\\\$]*)
16668       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16669       ;;
16670     *)
16671       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16672       ;;
16673     esac
16674 done
16676 ac_aux_dir='$ac_aux_dir'
16677 xsi_shell='$xsi_shell'
16678 lt_shell_append='$lt_shell_append'
16680 # See if we are running on zsh, and set the options which allow our
16681 # commands through without removal of \ escapes INIT.
16682 if test -n "\${ZSH_VERSION+set}" ; then
16683    setopt NO_GLOB_SUBST
16687     PACKAGE='$PACKAGE'
16688     VERSION='$VERSION'
16689     TIMESTAMP='$TIMESTAMP'
16690     RM='$RM'
16691     ofile='$ofile'
16697 # Note that if two cases are the same, case goes with the first one.
16698 # Note also that this is inside an AC_OUTPUT_COMMAND.  We do not depend
16699 # on variable expansion in case labels.  Look at the generated config.status
16700 # for a hint.
16702 case xyes in
16703 x$ac_cv_header_float_h)
16704   glib_float_h=yes
16705   glib_mf=FLT_MIN glib_Mf=FLT_MAX
16706   glib_md=DBL_MIN glib_Md=DBL_MAX
16707   ;;
16708 x$ac_cv_header_values_h)
16709   glib_values_h=yes
16710   glib_mf=MINFLOAT  glib_Mf=MAXFLOAT
16711   glib_md=MINDOUBLE glib_Md=MAXDOUBLE
16712   ;;
16713 esac
16715 case xyes in
16716 x$ac_cv_header_limits_h)
16717   glib_limits_h=yes
16718   glib_ms=SHRT_MIN glib_Ms=SHRT_MAX
16719   glib_mi=INT_MIN  glib_Mi=INT_MAX
16720   glib_ml=LONG_MIN glib_Ml=LONG_MAX
16721   ;;
16722 x$ac_cv_header_values_h)
16723   glib_values_h=yes
16724   glib_ms=MINSHORT glib_Ms=MAXSHORT
16725   glib_mi=MININT   glib_Mi=MAXINT
16726   glib_ml=MINLONG  glib_Ml=MAXLONG
16727   ;;
16728 esac
16730 if test x$ac_cv_header_sys_poll_h = xyes ; then
16731   glib_sys_poll_h=yes
16734 case 2 in
16735 $ac_cv_sizeof_short)            gint16=short;;
16736 $ac_cv_sizeof_int)              gint16=int;;
16737 esac
16738 case 4 in
16739 $ac_cv_sizeof_short)            gint32=short;;
16740 $ac_cv_sizeof_int)              gint32=int;;
16741 $ac_cv_sizeof_long)             gint32=long;;
16742 esac
16743 case 8 in
16744 $ac_cv_sizeof_int)
16745   gint64=int
16746   glib_extension=
16747   glib_warning_guard=
16748   gint64_constant='(val)'
16749   ;;
16750 $ac_cv_sizeof_long)
16751   gint64=long
16752   glib_extension=
16753   glib_warning_guard=
16754   gint64_constant='(val##L)'
16755   ;;
16756 $ac_cv_sizeof_long_long)
16757   gint64='long long'
16758   glib_extension='G_GNUC_EXTENSION '
16759   glib_warning_guard="
16760 #if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
16761 #  define G_GNUC_EXTENSION __extension__
16762 #else
16763 #  define G_GNUC_EXTENSION
16764 #endif
16767   gint64_constant='(G_GNUC_EXTENSION (val##LL))'
16768   ;;
16769 esac
16771 gintbits=`expr $ac_cv_sizeof_int \* 8`
16772 glongbits=`expr $ac_cv_sizeof_long \* 8`
16775 case $ac_cv_sizeof_void_p in
16776 $ac_cv_sizeof_int)      glib_gpi_cast=''        glib_gpui_cast=''         ;;
16777 $ac_cv_sizeof_long)     glib_gpi_cast='(glong)' glib_gpui_cast='(gulong)' ;;
16778 *)                      glib_unknown_void_p=yes ;;
16779 esac
16782 case xyes in
16783 x$ac_cv_func_atexit)
16784   glib_atexit="
16785 #ifdef NeXT /* @#%@! NeXTStep */
16786 # define g_ATEXIT(proc) (!atexit (proc))
16787 #else
16788 # define g_ATEXIT(proc) (atexit (proc))
16789 #endif"
16790   ;;
16791 x$ac_cv_func_on_exit)
16792   glib_atexit="
16793 #define g_ATEXIT(proc)  (on_exit ((void (*)(int, void*))(proc), NULL))"
16794   ;;
16795 esac
16797 case xyes in
16798 x$ac_cv_func_memmove)
16799   glib_memmove='
16800 #define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END'
16801   ;;
16803   glib_memmove="
16804 /* We make the assumption that if memmove isn't available, then
16805  * bcopy will do the job. This isn't safe everywhere. (bcopy can't
16806  * necessarily handle overlapping copies) */
16807 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
16808   ;;
16809 esac
16811 glib_defines="
16812 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
16813 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
16814 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
16817 case xyes in
16818 x$glib_cv_va_copy)      glib_vacopy='#define G_VA_COPY  va_copy' ;;
16819 x$glib_cv___va_copy)    glib_vacopy='#define G_VA_COPY  __va_copy' ;;
16820 *)                      glib_vacopy=''
16821 esac
16823 if test x$glib_cv_va_val_copy = xno; then
16824   glib_vacopy="\$glib_vacopy
16825 #define G_VA_COPY_AS_ARRAY 1"
16828 if test x$glib_cv_hasinline = xyes; then
16829     glib_inline='#define G_HAVE_INLINE 1'
16831 if test x$glib_cv_has__inline = xyes; then
16832     glib_inline="\$glib_inline
16833 #define G_HAVE___INLINE 1"
16835 if test x$glib_cv_has__inline__ = xyes; then
16836     glib_inline="\$glib_inline
16837 #define G_HAVE___INLINE__ 1"
16840 case xyes in
16841 x$ac_cv_c_bigendian)
16842   g_byte_order=G_BIG_ENDIAN
16843   g_bs_native=BE
16844   g_bs_alien=LE
16845   ;;
16847   g_byte_order=G_LITTLE_ENDIAN
16848   g_bs_native=LE
16849   g_bs_alien=BE
16850   ;;
16851 esac
16853 if test x$glib_wchar_h = xyes; then
16854   glib_wc='
16855 #define G_HAVE_WCHAR_H 1'
16857 if test x$glib_wctype_h = xyes; then
16858   glib_wc="\$glib_wc
16859 #define G_HAVE_WCTYPE_H 1"
16861 if test x$glib_working_wctype = xno; then
16862   glib_wc="\$glib_wc
16863 #define G_HAVE_BROKEN_WCTYPE 1"
16866 case x$enable_threads in
16867 xyes)   g_enable_threads_def="#define";;
16868 *)      g_enable_threads_def="#undef ";;
16869 esac
16871 g_threads_impl_def=$g_threads_impl
16873 g_mutex_has_default="$mutex_has_default"
16874 g_mutex_sizeof="$glib_cv_sizeof_gmutex"
16875 g_mutex_contents="$glib_cv_byte_contents_gmutex"
16878 _ACEOF
16880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16882 # Handling of arguments.
16883 for ac_config_target in $ac_config_targets
16885   case $ac_config_target in
16886     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16887     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16888     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16889     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16890     "glib.spec") CONFIG_FILES="$CONFIG_FILES glib.spec" ;;
16891     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16892     "glib-config") CONFIG_FILES="$CONFIG_FILES glib-config" ;;
16893     "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;;
16894     "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;;
16895     "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;;
16896     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16897     "docs/glib-config.1") CONFIG_FILES="$CONFIG_FILES docs/glib-config.1" ;;
16898     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16899     "glib.pc") CONFIG_FILES="$CONFIG_FILES glib.pc" ;;
16900     "gmodule.pc") CONFIG_FILES="$CONFIG_FILES gmodule.pc" ;;
16901     "gthread.pc") CONFIG_FILES="$CONFIG_FILES gthread.pc" ;;
16902     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16904   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16905   esac
16906 done
16909 # If the user did not use the arguments to specify the items to instantiate,
16910 # then the envvar interface is used.  Set only those that are not.
16911 # We use the long form for the default assignment because of an extremely
16912 # bizarre bug on SunOS 4.1.3.
16913 if $ac_need_defaults; then
16914   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16915   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16916   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16919 # Have a temporary directory for convenience.  Make it in the build tree
16920 # simply because there is no reason against having it here, and in addition,
16921 # creating and moving files from /tmp can sometimes cause problems.
16922 # Hook for its removal unless debugging.
16923 # Note that there is a small window in which the directory will not be cleaned:
16924 # after its creation but before its name has been assigned to `$tmp'.
16925 $debug ||
16927   tmp= ac_tmp=
16928   trap 'exit_status=$?
16929   : "${ac_tmp:=$tmp}"
16930   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16931 ' 0
16932   trap 'as_fn_exit 1' 1 2 13 15
16934 # Create a (secure) tmp directory for tmp files.
16937   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16938   test -d "$tmp"
16939 }  ||
16941   tmp=./conf$$-$RANDOM
16942   (umask 077 && mkdir "$tmp")
16943 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16944 ac_tmp=$tmp
16946 # Set up the scripts for CONFIG_FILES section.
16947 # No need to generate them if there are no CONFIG_FILES.
16948 # This happens for instance with `./config.status config.h'.
16949 if test -n "$CONFIG_FILES"; then
16952 ac_cr=`echo X | tr X '\015'`
16953 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16954 # But we know of no other shell where ac_cr would be empty at this
16955 # point, so we can use a bashism as a fallback.
16956 if test "x$ac_cr" = x; then
16957   eval ac_cr=\$\'\\r\'
16959 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16960 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16961   ac_cs_awk_cr='\\r'
16962 else
16963   ac_cs_awk_cr=$ac_cr
16966 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16967 _ACEOF
16971   echo "cat >conf$$subs.awk <<_ACEOF" &&
16972   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16973   echo "_ACEOF"
16974 } >conf$$subs.sh ||
16975   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16976 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16977 ac_delim='%!_!# '
16978 for ac_last_try in false false false false false :; do
16979   . ./conf$$subs.sh ||
16980     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16982   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16983   if test $ac_delim_n = $ac_delim_num; then
16984     break
16985   elif $ac_last_try; then
16986     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16987   else
16988     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16989   fi
16990 done
16991 rm -f conf$$subs.sh
16993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16994 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16995 _ACEOF
16996 sed -n '
16998 s/^/S["/; s/!.*/"]=/
17001 s/^[^!]*!//
17002 :repl
17003 t repl
17004 s/'"$ac_delim"'$//
17005 t delim
17008 s/\(.\{148\}\)..*/\1/
17009 t more1
17010 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17013 b repl
17014 :more1
17015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17018 s/.\{148\}//
17019 t nl
17020 :delim
17022 s/\(.\{148\}\)..*/\1/
17023 t more2
17024 s/["\\]/\\&/g; s/^/"/; s/$/"/
17027 :more2
17028 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17031 s/.\{148\}//
17032 t delim
17033 ' <conf$$subs.awk | sed '
17034 /^[^""]/{
17035   N
17036   s/\n//
17038 ' >>$CONFIG_STATUS || ac_write_fail=1
17039 rm -f conf$$subs.awk
17040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17041 _ACAWK
17042 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17043   for (key in S) S_is_set[key] = 1
17044   FS = "\a"
17048   line = $ 0
17049   nfields = split(line, field, "@")
17050   substed = 0
17051   len = length(field[1])
17052   for (i = 2; i < nfields; i++) {
17053     key = field[i]
17054     keylen = length(key)
17055     if (S_is_set[key]) {
17056       value = S[key]
17057       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17058       len += length(value) + length(field[++i])
17059       substed = 1
17060     } else
17061       len += 1 + keylen
17062   }
17064   print line
17067 _ACAWK
17068 _ACEOF
17069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17070 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17071   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17072 else
17073   cat
17074 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17075   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17076 _ACEOF
17078 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17079 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17080 # trailing colons and then remove the whole line if VPATH becomes empty
17081 # (actually we leave an empty line to preserve line numbers).
17082 if test "x$srcdir" = x.; then
17083   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17085 s///
17086 s/^/:/
17087 s/[      ]*$/:/
17088 s/:\$(srcdir):/:/g
17089 s/:\${srcdir}:/:/g
17090 s/:@srcdir@:/:/g
17091 s/^:*//
17092 s/:*$//
17094 s/\(=[   ]*\).*/\1/
17096 s/\n//
17097 s/^[^=]*=[       ]*$//
17101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17102 fi # test -n "$CONFIG_FILES"
17104 # Set up the scripts for CONFIG_HEADERS section.
17105 # No need to generate them if there are no CONFIG_HEADERS.
17106 # This happens for instance with `./config.status Makefile'.
17107 if test -n "$CONFIG_HEADERS"; then
17108 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17109 BEGIN {
17110 _ACEOF
17112 # Transform confdefs.h into an awk script `defines.awk', embedded as
17113 # here-document in config.status, that substitutes the proper values into
17114 # config.h.in to produce config.h.
17116 # Create a delimiter string that does not exist in confdefs.h, to ease
17117 # handling of long lines.
17118 ac_delim='%!_!# '
17119 for ac_last_try in false false :; do
17120   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17121   if test -z "$ac_tt"; then
17122     break
17123   elif $ac_last_try; then
17124     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17125   else
17126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17127   fi
17128 done
17130 # For the awk script, D is an array of macro values keyed by name,
17131 # likewise P contains macro parameters if any.  Preserve backslash
17132 # newline sequences.
17134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17135 sed -n '
17136 s/.\{148\}/&'"$ac_delim"'/g
17137 t rset
17138 :rset
17139 s/^[     ]*#[    ]*define[       ][      ]*/ /
17140 t def
17142 :def
17143 s/\\$//
17144 t bsnl
17145 s/["\\]/\\&/g
17146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17147 D["\1"]=" \3"/p
17148 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17150 :bsnl
17151 s/["\\]/\\&/g
17152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17153 D["\1"]=" \3\\\\\\n"\\/p
17154 t cont
17155 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17156 t cont
17158 :cont
17160 s/.\{148\}/&'"$ac_delim"'/g
17161 t clear
17162 :clear
17163 s/\\$//
17164 t bsnlc
17165 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17167 :bsnlc
17168 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17169 b cont
17170 ' <confdefs.h | sed '
17171 s/'"$ac_delim"'/"\\\
17172 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17175   for (key in D) D_is_set[key] = 1
17176   FS = "\a"
17178 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17179   line = \$ 0
17180   split(line, arg, " ")
17181   if (arg[1] == "#") {
17182     defundef = arg[2]
17183     mac1 = arg[3]
17184   } else {
17185     defundef = substr(arg[1], 2)
17186     mac1 = arg[2]
17187   }
17188   split(mac1, mac2, "(") #)
17189   macro = mac2[1]
17190   prefix = substr(line, 1, index(line, defundef) - 1)
17191   if (D_is_set[macro]) {
17192     # Preserve the white space surrounding the "#".
17193     print prefix "define", macro P[macro] D[macro]
17194     next
17195   } else {
17196     # Replace #undef with comments.  This is necessary, for example,
17197     # in the case of _POSIX_SOURCE, which is predefined and required
17198     # on some systems where configure will not decide to define it.
17199     if (defundef == "undef") {
17200       print "/*", prefix defundef, macro, "*/"
17201       next
17202     }
17203   }
17205 { print }
17206 _ACAWK
17207 _ACEOF
17208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17209   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17210 fi # test -n "$CONFIG_HEADERS"
17213 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17214 shift
17215 for ac_tag
17217   case $ac_tag in
17218   :[FHLC]) ac_mode=$ac_tag; continue;;
17219   esac
17220   case $ac_mode$ac_tag in
17221   :[FHL]*:*);;
17222   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17223   :[FH]-) ac_tag=-:-;;
17224   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17225   esac
17226   ac_save_IFS=$IFS
17227   IFS=:
17228   set x $ac_tag
17229   IFS=$ac_save_IFS
17230   shift
17231   ac_file=$1
17232   shift
17234   case $ac_mode in
17235   :L) ac_source=$1;;
17236   :[FH])
17237     ac_file_inputs=
17238     for ac_f
17239     do
17240       case $ac_f in
17241       -) ac_f="$ac_tmp/stdin";;
17242       *) # Look for the file first in the build tree, then in the source tree
17243          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17244          # because $ac_f cannot contain `:'.
17245          test -f "$ac_f" ||
17246            case $ac_f in
17247            [\\/$]*) false;;
17248            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17249            esac ||
17250            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17251       esac
17252       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17253       as_fn_append ac_file_inputs " '$ac_f'"
17254     done
17256     # Let's still pretend it is `configure' which instantiates (i.e., don't
17257     # use $as_me), people would be surprised to read:
17258     #    /* config.h.  Generated by config.status.  */
17259     configure_input='Generated from '`
17260           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17261         `' by configure.'
17262     if test x"$ac_file" != x-; then
17263       configure_input="$ac_file.  $configure_input"
17264       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17265 $as_echo "$as_me: creating $ac_file" >&6;}
17266     fi
17267     # Neutralize special characters interpreted by sed in replacement strings.
17268     case $configure_input in #(
17269     *\&* | *\|* | *\\* )
17270        ac_sed_conf_input=`$as_echo "$configure_input" |
17271        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17272     *) ac_sed_conf_input=$configure_input;;
17273     esac
17275     case $ac_tag in
17276     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17277       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17278     esac
17279     ;;
17280   esac
17282   ac_dir=`$as_dirname -- "$ac_file" ||
17283 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17284          X"$ac_file" : 'X\(//\)[^/]' \| \
17285          X"$ac_file" : 'X\(//\)$' \| \
17286          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17287 $as_echo X"$ac_file" |
17288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17289             s//\1/
17290             q
17291           }
17292           /^X\(\/\/\)[^/].*/{
17293             s//\1/
17294             q
17295           }
17296           /^X\(\/\/\)$/{
17297             s//\1/
17298             q
17299           }
17300           /^X\(\/\).*/{
17301             s//\1/
17302             q
17303           }
17304           s/.*/./; q'`
17305   as_dir="$ac_dir"; as_fn_mkdir_p
17306   ac_builddir=.
17308 case "$ac_dir" in
17309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17311   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17312   # A ".." for each directory in $ac_dir_suffix.
17313   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17314   case $ac_top_builddir_sub in
17315   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17316   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17317   esac ;;
17318 esac
17319 ac_abs_top_builddir=$ac_pwd
17320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17321 # for backward compatibility:
17322 ac_top_builddir=$ac_top_build_prefix
17324 case $srcdir in
17325   .)  # We are building in place.
17326     ac_srcdir=.
17327     ac_top_srcdir=$ac_top_builddir_sub
17328     ac_abs_top_srcdir=$ac_pwd ;;
17329   [\\/]* | ?:[\\/]* )  # Absolute name.
17330     ac_srcdir=$srcdir$ac_dir_suffix;
17331     ac_top_srcdir=$srcdir
17332     ac_abs_top_srcdir=$srcdir ;;
17333   *) # Relative name.
17334     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17335     ac_top_srcdir=$ac_top_build_prefix$srcdir
17336     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17337 esac
17338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17341   case $ac_mode in
17342   :F)
17343   #
17344   # CONFIG_FILE
17345   #
17347   case $INSTALL in
17348   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17349   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17350   esac
17351   ac_MKDIR_P=$MKDIR_P
17352   case $MKDIR_P in
17353   [\\/$]* | ?:[\\/]* ) ;;
17354   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17355   esac
17356 _ACEOF
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17359 # If the template does not know about datarootdir, expand it.
17360 # FIXME: This hack should be removed a few years after 2.60.
17361 ac_datarootdir_hack=; ac_datarootdir_seen=
17362 ac_sed_dataroot='
17363 /datarootdir/ {
17364   p
17365   q
17367 /@datadir@/p
17368 /@docdir@/p
17369 /@infodir@/p
17370 /@localedir@/p
17371 /@mandir@/p'
17372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17373 *datarootdir*) ac_datarootdir_seen=yes;;
17374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17375   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17377 _ACEOF
17378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17379   ac_datarootdir_hack='
17380   s&@datadir@&$datadir&g
17381   s&@docdir@&$docdir&g
17382   s&@infodir@&$infodir&g
17383   s&@localedir@&$localedir&g
17384   s&@mandir@&$mandir&g
17385   s&\\\${datarootdir}&$datarootdir&g' ;;
17386 esac
17387 _ACEOF
17389 # Neutralize VPATH when `$srcdir' = `.'.
17390 # Shell code in configure.ac might set extrasub.
17391 # FIXME: do we really want to maintain this feature?
17392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17393 ac_sed_extra="$ac_vpsub
17394 $extrasub
17395 _ACEOF
17396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17399 s|@configure_input@|$ac_sed_conf_input|;t t
17400 s&@top_builddir@&$ac_top_builddir_sub&;t t
17401 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17402 s&@srcdir@&$ac_srcdir&;t t
17403 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17404 s&@top_srcdir@&$ac_top_srcdir&;t t
17405 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17406 s&@builddir@&$ac_builddir&;t t
17407 s&@abs_builddir@&$ac_abs_builddir&;t t
17408 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17409 s&@INSTALL@&$ac_INSTALL&;t t
17410 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17411 $ac_datarootdir_hack
17413 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17414   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17417   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17418   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17419       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17420   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17421 which seems to be undefined.  Please make sure it is defined" >&5
17422 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17423 which seems to be undefined.  Please make sure it is defined" >&2;}
17425   rm -f "$ac_tmp/stdin"
17426   case $ac_file in
17427   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17428   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17429   esac \
17430   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17431  ;;
17432   :H)
17433   #
17434   # CONFIG_HEADER
17435   #
17436   if test x"$ac_file" != x-; then
17437     {
17438       $as_echo "/* $configure_input  */" \
17439       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17440     } >"$ac_tmp/config.h" \
17441       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17442     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17443       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17444 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17445     else
17446       rm -f "$ac_file"
17447       mv "$ac_tmp/config.h" "$ac_file" \
17448         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17449     fi
17450   else
17451     $as_echo "/* $configure_input  */" \
17452       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17453       || as_fn_error $? "could not create -" "$LINENO" 5
17454   fi
17455 # Compute "$ac_file"'s index in $config_headers.
17456 _am_arg="$ac_file"
17457 _am_stamp_count=1
17458 for _am_header in $config_headers :; do
17459   case $_am_header in
17460     $_am_arg | $_am_arg:* )
17461       break ;;
17462     * )
17463       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17464   esac
17465 done
17466 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17467 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17468          X"$_am_arg" : 'X\(//\)[^/]' \| \
17469          X"$_am_arg" : 'X\(//\)$' \| \
17470          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17471 $as_echo X"$_am_arg" |
17472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17473             s//\1/
17474             q
17475           }
17476           /^X\(\/\/\)[^/].*/{
17477             s//\1/
17478             q
17479           }
17480           /^X\(\/\/\)$/{
17481             s//\1/
17482             q
17483           }
17484           /^X\(\/\).*/{
17485             s//\1/
17486             q
17487           }
17488           s/.*/./; q'`/stamp-h$_am_stamp_count
17489  ;;
17490   
17491   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17492 $as_echo "$as_me: executing $ac_file commands" >&6;}
17493  ;;
17494   esac
17497   case $ac_file$ac_mode in
17498     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17499   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17500   # are listed without --file.  Let's play safe and only enable the eval
17501   # if we detect the quoting.
17502   case $CONFIG_FILES in
17503   *\'*) eval set x "$CONFIG_FILES" ;;
17504   *)   set x $CONFIG_FILES ;;
17505   esac
17506   shift
17507   for mf
17508   do
17509     # Strip MF so we end up with the name of the file.
17510     mf=`echo "$mf" | sed -e 's/:.*$//'`
17511     # Check whether this is an Automake generated Makefile or not.
17512     # We used to match only the files named `Makefile.in', but
17513     # some people rename them; so instead we look at the file content.
17514     # Grep'ing the first line is not enough: some people post-process
17515     # each Makefile.in and add a new line on top of each file to say so.
17516     # Grep'ing the whole file is not good either: AIX grep has a line
17517     # limit of 2048, but all sed's we know have understand at least 4000.
17518     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17519       dirpart=`$as_dirname -- "$mf" ||
17520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17521          X"$mf" : 'X\(//\)[^/]' \| \
17522          X"$mf" : 'X\(//\)$' \| \
17523          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17524 $as_echo X"$mf" |
17525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17526             s//\1/
17527             q
17528           }
17529           /^X\(\/\/\)[^/].*/{
17530             s//\1/
17531             q
17532           }
17533           /^X\(\/\/\)$/{
17534             s//\1/
17535             q
17536           }
17537           /^X\(\/\).*/{
17538             s//\1/
17539             q
17540           }
17541           s/.*/./; q'`
17542     else
17543       continue
17544     fi
17545     # Extract the definition of DEPDIR, am__include, and am__quote
17546     # from the Makefile without running `make'.
17547     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17548     test -z "$DEPDIR" && continue
17549     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17550     test -z "am__include" && continue
17551     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17552     # When using ansi2knr, U may be empty or an underscore; expand it
17553     U=`sed -n 's/^U = //p' < "$mf"`
17554     # Find all dependency output files, they are included files with
17555     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17556     # simplest approach to changing $(DEPDIR) to its actual value in the
17557     # expansion.
17558     for file in `sed -n "
17559       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17560          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17561       # Make sure the directory exists.
17562       test -f "$dirpart/$file" && continue
17563       fdir=`$as_dirname -- "$file" ||
17564 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17565          X"$file" : 'X\(//\)[^/]' \| \
17566          X"$file" : 'X\(//\)$' \| \
17567          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17568 $as_echo X"$file" |
17569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17570             s//\1/
17571             q
17572           }
17573           /^X\(\/\/\)[^/].*/{
17574             s//\1/
17575             q
17576           }
17577           /^X\(\/\/\)$/{
17578             s//\1/
17579             q
17580           }
17581           /^X\(\/\).*/{
17582             s//\1/
17583             q
17584           }
17585           s/.*/./; q'`
17586       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17587       # echo "creating $dirpart/$file"
17588       echo '# dummy' > "$dirpart/$file"
17589     done
17590   done
17592  ;;
17593     "libtool":C) 
17594     
17595     # See if we are running on zsh, and set the options which allow our
17596     # commands through without removal of \ escapes.
17597     if test -n "${ZSH_VERSION+set}" ; then
17598       setopt NO_GLOB_SUBST
17599     fi
17601     cfgfile="${ofile}T"
17602     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17603     $RM "$cfgfile"
17605     cat <<_LT_EOF >> "$cfgfile"
17606 #! $SHELL
17608 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17609 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17611 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17613 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17614 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17615 #                 Inc.
17616 #   Written by Gordon Matzigkeit, 1996
17618 #   This file is part of GNU Libtool.
17620 # GNU Libtool is free software; you can redistribute it and/or
17621 # modify it under the terms of the GNU General Public License as
17622 # published by the Free Software Foundation; either version 2 of
17623 # the License, or (at your option) any later version.
17625 # As a special exception to the GNU General Public License,
17626 # if you distribute this file as part of a program or library that
17627 # is built using GNU Libtool, you may include this file under the
17628 # same distribution terms that you use for the rest of that program.
17630 # GNU Libtool is distributed in the hope that it will be useful,
17631 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17632 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17633 # GNU General Public License for more details.
17635 # You should have received a copy of the GNU General Public License
17636 # along with GNU Libtool; see the file COPYING.  If not, a copy
17637 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17638 # obtained by writing to the Free Software Foundation, Inc.,
17639 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17642 # The names of the tagged configurations supported by this script.
17643 available_tags=""
17645 # ### BEGIN LIBTOOL CONFIG
17647 # Which release of libtool.m4 was used?
17648 macro_version=$macro_version
17649 macro_revision=$macro_revision
17651 # Whether or not to build shared libraries.
17652 build_libtool_libs=$enable_shared
17654 # Whether or not to build static libraries.
17655 build_old_libs=$enable_static
17657 # What type of objects to build.
17658 pic_mode=$pic_mode
17660 # Whether or not to optimize for fast installation.
17661 fast_install=$enable_fast_install
17663 # Shell to use when invoking shell scripts.
17664 SHELL=$lt_SHELL
17666 # An echo program that protects backslashes.
17667 ECHO=$lt_ECHO
17669 # The host system.
17670 host_alias=$host_alias
17671 host=$host
17672 host_os=$host_os
17674 # The build system.
17675 build_alias=$build_alias
17676 build=$build
17677 build_os=$build_os
17679 # A sed program that does not truncate output.
17680 SED=$lt_SED
17682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17683 Xsed="\$SED -e 1s/^X//"
17685 # A grep program that handles long lines.
17686 GREP=$lt_GREP
17688 # An ERE matcher.
17689 EGREP=$lt_EGREP
17691 # A literal string matcher.
17692 FGREP=$lt_FGREP
17694 # A BSD- or MS-compatible name lister.
17695 NM=$lt_NM
17697 # Whether we need soft or hard links.
17698 LN_S=$lt_LN_S
17700 # What is the maximum length of a command?
17701 max_cmd_len=$max_cmd_len
17703 # Object file suffix (normally "o").
17704 objext=$ac_objext
17706 # Executable file suffix (normally "").
17707 exeext=$exeext
17709 # whether the shell understands "unset".
17710 lt_unset=$lt_unset
17712 # turn spaces into newlines.
17713 SP2NL=$lt_lt_SP2NL
17715 # turn newlines into spaces.
17716 NL2SP=$lt_lt_NL2SP
17718 # convert \$build file names to \$host format.
17719 to_host_file_cmd=$lt_cv_to_host_file_cmd
17721 # convert \$build files to toolchain format.
17722 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17724 # An object symbol dumper.
17725 OBJDUMP=$lt_OBJDUMP
17727 # Method to check whether dependent libraries are shared objects.
17728 deplibs_check_method=$lt_deplibs_check_method
17730 # Command to use when deplibs_check_method = "file_magic".
17731 file_magic_cmd=$lt_file_magic_cmd
17733 # How to find potential files when deplibs_check_method = "file_magic".
17734 file_magic_glob=$lt_file_magic_glob
17736 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17737 want_nocaseglob=$lt_want_nocaseglob
17739 # DLL creation program.
17740 DLLTOOL=$lt_DLLTOOL
17742 # Command to associate shared and link libraries.
17743 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17745 # The archiver.
17746 AR=$lt_AR
17748 # Flags to create an archive.
17749 AR_FLAGS=$lt_AR_FLAGS
17751 # How to feed a file listing to the archiver.
17752 archiver_list_spec=$lt_archiver_list_spec
17754 # A symbol stripping program.
17755 STRIP=$lt_STRIP
17757 # Commands used to install an old-style archive.
17758 RANLIB=$lt_RANLIB
17759 old_postinstall_cmds=$lt_old_postinstall_cmds
17760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17762 # Whether to use a lock for old archive extraction.
17763 lock_old_archive_extraction=$lock_old_archive_extraction
17765 # A C compiler.
17766 LTCC=$lt_CC
17768 # LTCC compiler flags.
17769 LTCFLAGS=$lt_CFLAGS
17771 # Take the output of nm and produce a listing of raw symbols and C names.
17772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17774 # Transform the output of nm in a proper C declaration.
17775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17777 # Transform the output of nm in a C name address pair.
17778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17780 # Transform the output of nm in a C name address pair when lib prefix is needed.
17781 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17783 # Specify filename containing input files for \$NM.
17784 nm_file_list_spec=$lt_nm_file_list_spec
17786 # The root where to search for dependent libraries,and in which our libraries should be installed.
17787 lt_sysroot=$lt_sysroot
17789 # The name of the directory that contains temporary libtool files.
17790 objdir=$objdir
17792 # Used to examine libraries when file_magic_cmd begins with "file".
17793 MAGIC_CMD=$MAGIC_CMD
17795 # Must we lock files when doing compilation?
17796 need_locks=$lt_need_locks
17798 # Manifest tool.
17799 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17801 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17802 DSYMUTIL=$lt_DSYMUTIL
17804 # Tool to change global to local symbols on Mac OS X.
17805 NMEDIT=$lt_NMEDIT
17807 # Tool to manipulate fat objects and archives on Mac OS X.
17808 LIPO=$lt_LIPO
17810 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17811 OTOOL=$lt_OTOOL
17813 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17814 OTOOL64=$lt_OTOOL64
17816 # Old archive suffix (normally "a").
17817 libext=$libext
17819 # Shared library suffix (normally ".so").
17820 shrext_cmds=$lt_shrext_cmds
17822 # The commands to extract the exported symbol list from a shared archive.
17823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17825 # Variables whose values should be saved in libtool wrapper scripts and
17826 # restored at link time.
17827 variables_saved_for_relink=$lt_variables_saved_for_relink
17829 # Do we need the "lib" prefix for modules?
17830 need_lib_prefix=$need_lib_prefix
17832 # Do we need a version for libraries?
17833 need_version=$need_version
17835 # Library versioning type.
17836 version_type=$version_type
17838 # Shared library runtime path variable.
17839 runpath_var=$runpath_var
17841 # Shared library path variable.
17842 shlibpath_var=$shlibpath_var
17844 # Is shlibpath searched before the hard-coded library search path?
17845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17847 # Format of library name prefix.
17848 libname_spec=$lt_libname_spec
17850 # List of archive names.  First name is the real one, the rest are links.
17851 # The last name is the one that the linker finds with -lNAME
17852 library_names_spec=$lt_library_names_spec
17854 # The coded name of the library, if different from the real name.
17855 soname_spec=$lt_soname_spec
17857 # Permission mode override for installation of shared libraries.
17858 install_override_mode=$lt_install_override_mode
17860 # Command to use after installation of a shared archive.
17861 postinstall_cmds=$lt_postinstall_cmds
17863 # Command to use after uninstallation of a shared archive.
17864 postuninstall_cmds=$lt_postuninstall_cmds
17866 # Commands used to finish a libtool library installation in a directory.
17867 finish_cmds=$lt_finish_cmds
17869 # As "finish_cmds", except a single script fragment to be evaled but
17870 # not shown.
17871 finish_eval=$lt_finish_eval
17873 # Whether we should hardcode library paths into libraries.
17874 hardcode_into_libs=$hardcode_into_libs
17876 # Compile-time system search path for libraries.
17877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17879 # Run-time system search path for libraries.
17880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17882 # Whether dlopen is supported.
17883 dlopen_support=$enable_dlopen
17885 # Whether dlopen of programs is supported.
17886 dlopen_self=$enable_dlopen_self
17888 # Whether dlopen of statically linked programs is supported.
17889 dlopen_self_static=$enable_dlopen_self_static
17891 # Commands to strip libraries.
17892 old_striplib=$lt_old_striplib
17893 striplib=$lt_striplib
17896 # The linker used to build libraries.
17897 LD=$lt_LD
17899 # How to create reloadable object files.
17900 reload_flag=$lt_reload_flag
17901 reload_cmds=$lt_reload_cmds
17903 # Commands used to build an old-style archive.
17904 old_archive_cmds=$lt_old_archive_cmds
17906 # A language specific compiler.
17907 CC=$lt_compiler
17909 # Is the compiler the GNU compiler?
17910 with_gcc=$GCC
17912 # Compiler flag to turn off builtin functions.
17913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17915 # Additional compiler flags for building library objects.
17916 pic_flag=$lt_lt_prog_compiler_pic
17918 # How to pass a linker flag through the compiler.
17919 wl=$lt_lt_prog_compiler_wl
17921 # Compiler flag to prevent dynamic linking.
17922 link_static_flag=$lt_lt_prog_compiler_static
17924 # Does compiler simultaneously support -c and -o options?
17925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17927 # Whether or not to add -lc for building shared libraries.
17928 build_libtool_need_lc=$archive_cmds_need_lc
17930 # Whether or not to disallow shared libs when runtime libs are static.
17931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17933 # Compiler flag to allow reflexive dlopens.
17934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17936 # Compiler flag to generate shared objects directly from archives.
17937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17939 # Whether the compiler copes with passing no objects directly.
17940 compiler_needs_object=$lt_compiler_needs_object
17942 # Create an old-style archive from a shared archive.
17943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17945 # Create a temporary old-style archive to link instead of a shared archive.
17946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17948 # Commands used to build a shared archive.
17949 archive_cmds=$lt_archive_cmds
17950 archive_expsym_cmds=$lt_archive_expsym_cmds
17952 # Commands used to build a loadable module if different from building
17953 # a shared archive.
17954 module_cmds=$lt_module_cmds
17955 module_expsym_cmds=$lt_module_expsym_cmds
17957 # Whether we are building with GNU ld or not.
17958 with_gnu_ld=$lt_with_gnu_ld
17960 # Flag that allows shared libraries with undefined symbols to be built.
17961 allow_undefined_flag=$lt_allow_undefined_flag
17963 # Flag that enforces no undefined symbols.
17964 no_undefined_flag=$lt_no_undefined_flag
17966 # Flag to hardcode \$libdir into a binary during linking.
17967 # This must work even if \$libdir does not exist
17968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17970 # If ld is used when linking, flag to hardcode \$libdir into a binary
17971 # during linking.  This must work even if \$libdir does not exist.
17972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17974 # Whether we need a single "-rpath" flag with a separated argument.
17975 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17978 # DIR into the resulting binary.
17979 hardcode_direct=$hardcode_direct
17981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17982 # DIR into the resulting binary and the resulting library dependency is
17983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17984 # library is relocated.
17985 hardcode_direct_absolute=$hardcode_direct_absolute
17987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17988 # into the resulting binary.
17989 hardcode_minus_L=$hardcode_minus_L
17991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17992 # into the resulting binary.
17993 hardcode_shlibpath_var=$hardcode_shlibpath_var
17995 # Set to "yes" if building a shared library automatically hardcodes DIR
17996 # into the library and all subsequent libraries and executables linked
17997 # against it.
17998 hardcode_automatic=$hardcode_automatic
18000 # Set to yes if linker adds runtime paths of dependent libraries
18001 # to runtime path list.
18002 inherit_rpath=$inherit_rpath
18004 # Whether libtool must link a program against all its dependency libraries.
18005 link_all_deplibs=$link_all_deplibs
18007 # Set to "yes" if exported symbols are required.
18008 always_export_symbols=$always_export_symbols
18010 # The commands to list exported symbols.
18011 export_symbols_cmds=$lt_export_symbols_cmds
18013 # Symbols that should not be listed in the preloaded symbols.
18014 exclude_expsyms=$lt_exclude_expsyms
18016 # Symbols that must always be exported.
18017 include_expsyms=$lt_include_expsyms
18019 # Commands necessary for linking programs (against libraries) with templates.
18020 prelink_cmds=$lt_prelink_cmds
18022 # Commands necessary for finishing linking programs.
18023 postlink_cmds=$lt_postlink_cmds
18025 # Specify filename containing input files.
18026 file_list_spec=$lt_file_list_spec
18028 # How to hardcode a shared library path into an executable.
18029 hardcode_action=$hardcode_action
18031 # ### END LIBTOOL CONFIG
18033 _LT_EOF
18035   case $host_os in
18036   aix3*)
18037     cat <<\_LT_EOF >> "$cfgfile"
18038 # AIX sometimes has problems with the GCC collect2 program.  For some
18039 # reason, if we set the COLLECT_NAMES environment variable, the problems
18040 # vanish in a puff of smoke.
18041 if test "X${COLLECT_NAMES+set}" != Xset; then
18042   COLLECT_NAMES=
18043   export COLLECT_NAMES
18045 _LT_EOF
18046     ;;
18047   esac
18049   
18050 ltmain="$ac_aux_dir/ltmain.sh"
18053   # We use sed instead of cat because bash on DJGPP gets confused if
18054   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18055   # text mode, it properly converts lines to CR/LF.  This bash problem
18056   # is reportedly fixed, but why not run on old versions too?
18057   sed '$q' "$ltmain" >> "$cfgfile" \
18058      || (rm -f "$cfgfile"; exit 1)
18060   if test x"$xsi_shell" = xyes; then
18061   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18062 func_dirname ()\
18064 \    case ${1} in\
18065 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18066 \      *  ) func_dirname_result="${3}" ;;\
18067 \    esac\
18068 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18069   && mv -f "$cfgfile.tmp" "$cfgfile" \
18070     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18071 test 0 -eq $? || _lt_function_replace_fail=:
18074   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18075 func_basename ()\
18077 \    func_basename_result="${1##*/}"\
18078 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18079   && mv -f "$cfgfile.tmp" "$cfgfile" \
18080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18081 test 0 -eq $? || _lt_function_replace_fail=:
18084   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18085 func_dirname_and_basename ()\
18087 \    case ${1} in\
18088 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18089 \      *  ) func_dirname_result="${3}" ;;\
18090 \    esac\
18091 \    func_basename_result="${1##*/}"\
18092 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18093   && mv -f "$cfgfile.tmp" "$cfgfile" \
18094     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18095 test 0 -eq $? || _lt_function_replace_fail=:
18098   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18099 func_stripname ()\
18101 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18102 \    # positional parameters, so assign one to ordinary parameter first.\
18103 \    func_stripname_result=${3}\
18104 \    func_stripname_result=${func_stripname_result#"${1}"}\
18105 \    func_stripname_result=${func_stripname_result%"${2}"}\
18106 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18107   && mv -f "$cfgfile.tmp" "$cfgfile" \
18108     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18109 test 0 -eq $? || _lt_function_replace_fail=:
18112   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18113 func_split_long_opt ()\
18115 \    func_split_long_opt_name=${1%%=*}\
18116 \    func_split_long_opt_arg=${1#*=}\
18117 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18118   && mv -f "$cfgfile.tmp" "$cfgfile" \
18119     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18120 test 0 -eq $? || _lt_function_replace_fail=:
18123   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18124 func_split_short_opt ()\
18126 \    func_split_short_opt_arg=${1#??}\
18127 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18128 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18129   && mv -f "$cfgfile.tmp" "$cfgfile" \
18130     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18131 test 0 -eq $? || _lt_function_replace_fail=:
18134   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18135 func_lo2o ()\
18137 \    case ${1} in\
18138 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18139 \      *)    func_lo2o_result=${1} ;;\
18140 \    esac\
18141 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18142   && mv -f "$cfgfile.tmp" "$cfgfile" \
18143     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18144 test 0 -eq $? || _lt_function_replace_fail=:
18147   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18148 func_xform ()\
18150     func_xform_result=${1%.*}.lo\
18151 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18152   && mv -f "$cfgfile.tmp" "$cfgfile" \
18153     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18154 test 0 -eq $? || _lt_function_replace_fail=:
18157   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18158 func_arith ()\
18160     func_arith_result=$(( $* ))\
18161 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18162   && mv -f "$cfgfile.tmp" "$cfgfile" \
18163     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18164 test 0 -eq $? || _lt_function_replace_fail=:
18167   sed -e '/^func_len ()$/,/^} # func_len /c\
18168 func_len ()\
18170     func_len_result=${#1}\
18171 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18172   && mv -f "$cfgfile.tmp" "$cfgfile" \
18173     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18174 test 0 -eq $? || _lt_function_replace_fail=:
18178 if test x"$lt_shell_append" = xyes; then
18179   sed -e '/^func_append ()$/,/^} # func_append /c\
18180 func_append ()\
18182     eval "${1}+=\\${2}"\
18183 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18184   && mv -f "$cfgfile.tmp" "$cfgfile" \
18185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18186 test 0 -eq $? || _lt_function_replace_fail=:
18189   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18190 func_append_quoted ()\
18192 \    func_quote_for_eval "${2}"\
18193 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18194 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18195   && mv -f "$cfgfile.tmp" "$cfgfile" \
18196     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18197 test 0 -eq $? || _lt_function_replace_fail=:
18200   # Save a `func_append' function call where possible by direct use of '+='
18201   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18202     && mv -f "$cfgfile.tmp" "$cfgfile" \
18203       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18204   test 0 -eq $? || _lt_function_replace_fail=:
18205 else
18206   # Save a `func_append' function call even when '+=' is not available
18207   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18208     && mv -f "$cfgfile.tmp" "$cfgfile" \
18209       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18210   test 0 -eq $? || _lt_function_replace_fail=:
18213 if test x"$_lt_function_replace_fail" = x":"; then
18214   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18215 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18219    mv -f "$cfgfile" "$ofile" ||
18220     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18221   chmod +x "$ofile"
18223  ;;
18224     "default-1":C) 
18226 ## Generate `glibconfig.h' in two cases
18227 ## 1. `config.status' is run either explicitly, or via configure.
18228 ##     Esp. not when it is run in `Makefile' to generate makefiles and
18229 ##     config.h
18230 ## 2. CONFIG_OTHER is set explicitly
18232 ## Case 1 is difficult.  We know that `automake' sets one of
18233 ## CONFIG_FILES or CONFIG_HEADERS to empty.  This heuristic works
18234 ## only when AM_CONFIG_HEADER is set, however.
18236 if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
18237   # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
18238   CONFIG_OTHER=${CONFIG_OTHER:-glibconfig.h}
18240 case "$CONFIG_OTHER" in
18241 *glibconfig.h*)
18242         echo creating glibconfig.h
18243         outfile=glibconfig.h-tmp
18244         cat > $outfile <<\_______EOF
18245 /* glibconfig.h
18247  * This is a generated file.  Please modify `configure.in'
18248  */
18250 #ifndef GLIBCONFIG_H
18251 #define GLIBCONFIG_H
18253 _______EOF
18255         if test x$glib_limits_h = xyes; then
18256           echo '#include <limits.h>' >> $outfile
18257         fi
18258         if test x$glib_float_h = xyes; then
18259           echo '#include <float.h>' >> $outfile
18260         fi
18261         if test x$glib_values_h = xyes; then
18262           echo '#include <values.h>' >> $outfile
18263         fi
18264         if test x$g_mutex_header_file != x; then
18265           echo '#include <'"$g_mutex_header_file"'>' >> $outfile
18266         fi
18267         if test x$glib_sys_poll_h = xyes; then
18268           echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
18269         fi
18271         cat >> $outfile <<_______EOF
18273 #ifdef __cplusplus
18274 extern "C" {
18275 #endif /* __cplusplus */
18277 #define G_MINFLOAT      $glib_mf
18278 #define G_MAXFLOAT      $glib_Mf
18279 #define G_MINDOUBLE     $glib_md
18280 #define G_MAXDOUBLE     $glib_Md
18281 #define G_MINSHORT      $glib_ms
18282 #define G_MAXSHORT      $glib_Ms
18283 #define G_MININT        $glib_mi
18284 #define G_MAXINT        $glib_Mi
18285 #define G_MINLONG       $glib_ml
18286 #define G_MAXLONG       $glib_Ml
18288 _______EOF
18291         ### this should always be true in a modern C/C++ compiler
18292         cat >>$outfile <<_______EOF
18293 typedef signed char gint8;
18294 typedef unsigned char guint8;
18295 _______EOF
18298         if test -n "$gint16"; then
18299           cat >>$outfile <<_______EOF
18300 typedef signed $gint16 gint16;
18301 typedef unsigned $gint16 guint16;
18302 _______EOF
18303         fi
18306         if test -n "$gint32"; then
18307           cat >>$outfile <<_______EOF
18308 typedef signed $gint32 gint32;
18309 typedef unsigned $gint32 guint32;
18310 _______EOF
18311         fi
18314         if test -n "$gint64"; then
18315           cat >>$outfile <<_______EOF
18316 ${glib_warning_guard}#define G_HAVE_GINT64 1
18318 ${glib_extension}typedef signed $gint64 gint64;
18319 ${glib_extension}typedef unsigned $gint64 guint64;
18321 #define G_GINT64_CONSTANT(val)  $gint64_constant
18322 _______EOF
18323         fi
18326         if test -z "$glib_unknown_void_p"; then
18327           cat >>$outfile <<_______EOF
18329 #define GPOINTER_TO_INT(p)      ((gint)  ${glib_gpi_cast} (p))
18330 #define GPOINTER_TO_UINT(p)     ((guint) ${glib_gpui_cast} (p))
18332 #define GINT_TO_POINTER(i)      ((gpointer) ${glib_gpi_cast} (i))
18333 #define GUINT_TO_POINTER(u)     ((gpointer) ${glib_gpui_cast} (u))
18334 _______EOF
18335         else
18336           echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
18337         fi
18341         cat >>$outfile <<_______EOF
18342 $glib_atexit
18343 $glib_memmove
18344 $glib_defines
18346 $glib_vacopy
18348 #ifdef  __cplusplus
18349 #define G_HAVE_INLINE   1
18350 #else   /* !__cplusplus */
18351 $glib_inline
18352 #endif  /* !__cplusplus */
18353 _______EOF
18355         echo >>$outfile
18356         if test x$g_mutex_has_default = xyes; then
18357                 cat >>$outfile <<_______EOF
18358 $g_enable_threads_def G_THREADS_ENABLED
18359 #define G_THREADS_IMPL_$g_threads_impl_def
18360 typedef struct _GStaticMutex GStaticMutex;
18361 struct _GStaticMutex
18363   struct _GMutex *runtime_mutex;
18364   union {
18365     char   pad[$g_mutex_sizeof];
18366     double dummy_double;
18367     void  *dummy_pointer;
18368     long   dummy_long;
18369   } aligned_pad_u;
18371 #define G_STATIC_MUTEX_INIT     { NULL, { { $g_mutex_contents} } }
18372 #define g_static_mutex_get_mutex(mutex) \
18373   (g_thread_use_default_impl ? ((GMutex*) &((mutex)->aligned_pad_u)) : \
18374    g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
18375 _______EOF
18376         else
18377                 cat >>$outfile <<_______EOF
18378 $g_enable_threads_def G_THREADS_ENABLED
18379 #define G_THREADS_IMPL_$g_threads_impl_def
18380 typedef struct _GMutex* GStaticMutex;
18381 #define G_STATIC_MUTEX_INIT NULL
18382 #define g_static_mutex_get_mutex(mutex) (g_static_mutex_get_mutex_impl (mutex))
18383 _______EOF
18384         fi
18386         echo >>$outfile
18387         g_bit_sizes="16 32"
18388         if test -n "$gint64"; then
18389           g_bit_sizes="$g_bit_sizes 64"
18390         fi
18391         for bits in $g_bit_sizes; do
18392           cat >>$outfile <<_______EOF
18393 #define GINT${bits}_TO_${g_bs_native}(val)      ((gint${bits}) (val))
18394 #define GUINT${bits}_TO_${g_bs_native}(val)     ((guint${bits}) (val))
18395 #define GINT${bits}_TO_${g_bs_alien}(val)       ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
18396 #define GUINT${bits}_TO_${g_bs_alien}(val)      (GUINT${bits}_SWAP_LE_BE (val))
18397 _______EOF
18398         done
18400         cat >>$outfile <<_______EOF
18401 #define GLONG_TO_LE(val)        ((glong) GINT${glongbits}_TO_LE (val))
18402 #define GULONG_TO_LE(val)       ((gulong) GUINT${glongbits}_TO_LE (val))
18403 #define GLONG_TO_BE(val)        ((glong) GINT${glongbits}_TO_BE (val))
18404 #define GULONG_TO_BE(val)       ((gulong) GUINT${glongbits}_TO_BE (val))
18405 #define GINT_TO_LE(val)         ((gint) GINT${gintbits}_TO_LE (val))
18406 #define GUINT_TO_LE(val)        ((guint) GUINT${gintbits}_TO_LE (val))
18407 #define GINT_TO_BE(val)         ((gint) GINT${gintbits}_TO_BE (val))
18408 #define GUINT_TO_BE(val)        ((guint) GUINT${gintbits}_TO_BE (val))
18409 #define G_BYTE_ORDER $g_byte_order
18411 _______EOF
18413         if test -r glibconfig-sysdefs.h; then
18414           cat glibconfig-sysdefs.h >>$outfile
18415         fi
18418         cat >>$outfile <<_______EOF
18420 $glib_wc
18423 #ifdef __cplusplus
18425 #endif /* __cplusplus */
18427 #endif /* GLIBCONFIG_H */
18428 _______EOF
18431         if cmp -s $outfile glibconfig.h; then
18432           echo glibconfig.h is unchanged
18433           rm -f $outfile
18434         else
18435           mv $outfile glibconfig.h
18436         fi ;;
18437 esac
18438  ;;
18439     "default":C) case "$CONFIG_FILES" in
18440 *glib-config*)chmod +x glib-config;;
18441 esac ;;
18443   esac
18444 done # for ac_tag
18447 as_fn_exit 0
18448 _ACEOF
18449 ac_clean_files=$ac_clean_files_save
18451 test $ac_write_fail = 0 ||
18452   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18455 # configure is writing to config.log, and then calls config.status.
18456 # config.status does its own redirection, appending to config.log.
18457 # Unfortunately, on DOS this fails, as config.log is still kept open
18458 # by configure, so config.status won't be able to write to it; its
18459 # output is simply discarded.  So we exec the FD to /dev/null,
18460 # effectively closing config.log, so it can be properly (re)opened and
18461 # appended to by config.status.  When coming back to configure, we
18462 # need to make the FD available again.
18463 if test "$no_create" != yes; then
18464   ac_cs_success=:
18465   ac_config_status_args=
18466   test "$silent" = yes &&
18467     ac_config_status_args="$ac_config_status_args --quiet"
18468   exec 5>/dev/null
18469   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18470   exec 5>>config.log
18471   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18472   # would make configure fail if this is the last instruction.
18473   $ac_cs_success || as_fn_exit 1
18475 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18476   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18477 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}