update stamps
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Moonshot-ui 0.1.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: moonshot-community@jiscmail.ac.uk about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549 as_awk_strverscmp='
550   # Use only awk features that work with 7th edition Unix awk (1978).
551   # My, what an old awk you have, Mr. Solaris!
552   END {
553     while (length(v1) && length(v2)) {
554       # Set d1 to be the next thing to compare from v1, and likewise for d2.
555       # Normally this is a single character, but if v1 and v2 contain digits,
556       # compare them as integers and fractions as strverscmp does.
557       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
558         # Split v1 and v2 into their leading digit string components d1 and d2,
559         # and advance v1 and v2 past the leading digit strings.
560         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
561         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
562         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
563         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
564         if (d1 ~ /^0/) {
565           if (d2 ~ /^0/) {
566             # Compare two fractions.
567             while (d1 ~ /^0/ && d2 ~ /^0/) {
568               d1 = substr(d1, 2); len1--
569               d2 = substr(d2, 2); len2--
570             }
571             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
572               # The two components differ in length, and the common prefix
573               # contains only leading zeros.  Consider the longer to be less.
574               d1 = -len1
575               d2 = -len2
576             } else {
577               # Otherwise, compare as strings.
578               d1 = "x" d1
579               d2 = "x" d2
580             }
581           } else {
582             # A fraction is less than an integer.
583             exit 1
584           }
585         } else {
586           if (d2 ~ /^0/) {
587             # An integer is greater than a fraction.
588             exit 2
589           } else {
590             # Compare two integers.
591             d1 += 0
592             d2 += 0
593           }
594         }
595       } else {
596         # The normal case, without worrying about digits.
597         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
598         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
599       }
600       if (d1 < d2) exit 1
601       if (d1 > d2) exit 2
602     }
603     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
604     # which mishandles some comparisons of empty strings to integers.
605     if (length(v2)) exit 1
606     if (length(v1)) exit 2
607   }
608 '
609
610 test -n "$DJDIR" || exec 7<&0 </dev/null
611 exec 6>&1
612
613 # Name of the host.
614 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
615 # so uname gets run too.
616 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
617
618 #
619 # Initializations.
620 #
621 ac_default_prefix=/usr/local
622 ac_clean_files=
623 ac_config_libobj_dir=.
624 LIBOBJS=
625 cross_compiling=no
626 subdirs=
627 MFLAGS=
628 MAKEFLAGS=
629
630 # Identity of this package.
631 PACKAGE_NAME='Moonshot-ui'
632 PACKAGE_TARNAME='moonshot-ui'
633 PACKAGE_VERSION='0.1'
634 PACKAGE_STRING='Moonshot-ui 0.1'
635 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
636 PACKAGE_URL=''
637
638 ac_unique_file="configure.ac"
639 # Factoring default headers for most tests.
640 ac_includes_default="\
641 #include <stdio.h>
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef STDC_HEADERS
649 # include <stdlib.h>
650 # include <stddef.h>
651 #else
652 # ifdef HAVE_STDLIB_H
653 #  include <stdlib.h>
654 # endif
655 #endif
656 #ifdef HAVE_STRING_H
657 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
658 #  include <memory.h>
659 # endif
660 # include <string.h>
661 #endif
662 #ifdef HAVE_STRINGS_H
663 # include <strings.h>
664 #endif
665 #ifdef HAVE_INTTYPES_H
666 # include <inttypes.h>
667 #endif
668 #ifdef HAVE_STDINT_H
669 # include <stdint.h>
670 #endif
671 #ifdef HAVE_UNISTD_H
672 # include <unistd.h>
673 #endif"
674
675 gt_needs=
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 GETTEXT_PACKAGE
681 POSUB
682 LTLIBINTL
683 LIBINTL
684 INTLLIBS
685 LTLIBICONV
686 LIBICONV
687 INTL_MACOSX_LIBS
688 XGETTEXT_EXTRA_OPTIONS
689 MSGMERGE
690 XGETTEXT_015
691 XGETTEXT
692 GMSGFMT_015
693 MSGFMT_015
694 GMSGFMT
695 MSGFMT
696 GETTEXT_MACRO_VERSION
697 USE_NLS
698 libmoonshot_LIBS
699 libmoonshot_CFLAGS
700 moonshot_LIBS
701 moonshot_CFLAGS
702 MOONSHOT_WEBP
703 MOONSHOT_APP
704 UPDATE_DESKTOP_DATABASE
705 UPDATE_MIME_DATABASE
706 WIX_LIGHT
707 WIX_CANDLE
708 IMAGEMAGICK_CONVERT
709 MSVC_LIB
710 MIDL
711 MIDL_WRAPPER
712 MSRPC_LIBS
713 MSRPC_CFLAGS
714 IPC_GDBUS_FALSE
715 IPC_GDBUS_TRUE
716 IPC_DBUS_GLIB_FALSE
717 IPC_DBUS_GLIB_TRUE
718 IPC_DBUS_FALSE
719 IPC_DBUS_TRUE
720 IPC_MSRPC_FALSE
721 IPC_MSRPC_TRUE
722 OS_MACOS_FALSE
723 OS_MACOS_TRUE
724 OS_WIN32_FALSE
725 OS_WIN32_TRUE
726 OS_LINUX_FALSE
727 OS_LINUX_TRUE
728 GDBUS_LIBS
729 GDBUS_CFLAGS
730 MAC_LIBS
731 MAC_CFLAGS
732 GTK_LIBS
733 GTK_CFLAGS
734 VALAC
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 CPP
739 OTOOL64
740 OTOOL
741 LIPO
742 NMEDIT
743 DSYMUTIL
744 MANIFEST_TOOL
745 RANLIB
746 ac_ct_AR
747 AR
748 LN_S
749 NM
750 ac_ct_DUMPBIN
751 DUMPBIN
752 LD
753 FGREP
754 EGREP
755 GREP
756 SED
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 am__nodep
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 LIBTOOL
783 OBJDUMP
784 DLLTOOL
785 AS
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 AM_BACKSLASH
790 AM_DEFAULT_VERBOSITY
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 AWK
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 enable_silent_rules
856 enable_maintainer_mode
857 enable_shared
858 enable_static
859 with_pic
860 enable_fast_install
861 enable_dependency_tracking
862 with_gnu_ld
863 with_sysroot
864 enable_libtool_lock
865 enable_nls
866 enable_rpath
867 with_libiconv_prefix
868 with_libintl_prefix
869 '
870       ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 CPP
879 PKG_CONFIG
880 PKG_CONFIG_PATH
881 PKG_CONFIG_LIBDIR
882 GTK_CFLAGS
883 GTK_LIBS
884 MAC_CFLAGS
885 MAC_LIBS
886 GDBUS_CFLAGS
887 GDBUS_LIBS
888 moonshot_CFLAGS
889 moonshot_LIBS
890 libmoonshot_CFLAGS
891 libmoonshot_LIBS'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946   # If the previous option needs an argument, assign it.
947   if test -n "$ac_prev"; then
948     eval $ac_prev=\$ac_option
949     ac_prev=
950     continue
951   fi
952
953   case $ac_option in
954   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955   *=)   ac_optarg= ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error $? "invalid feature name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=no ;;
1012
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1017
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1022
1023   -enable-* | --enable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041   | --exec | --exe | --ex)
1042     ac_prev=exec_prefix ;;
1043   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045   | --exec=* | --exe=* | --ex=*)
1046     exec_prefix=$ac_optarg ;;
1047
1048   -gas | --gas | --ga | --g)
1049     # Obsolete; use --with-gas.
1050     with_gas=yes ;;
1051
1052   -help | --help | --hel | --he | -h)
1053     ac_init_help=long ;;
1054   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055     ac_init_help=recursive ;;
1056   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057     ac_init_help=short ;;
1058
1059   -host | --host | --hos | --ho)
1060     ac_prev=host_alias ;;
1061   -host=* | --host=* | --hos=* | --ho=*)
1062     host_alias=$ac_optarg ;;
1063
1064   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065     ac_prev=htmldir ;;
1066   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067   | --ht=*)
1068     htmldir=$ac_optarg ;;
1069
1070   -includedir | --includedir | --includedi | --included | --include \
1071   | --includ | --inclu | --incl | --inc)
1072     ac_prev=includedir ;;
1073   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074   | --includ=* | --inclu=* | --incl=* | --inc=*)
1075     includedir=$ac_optarg ;;
1076
1077   -infodir | --infodir | --infodi | --infod | --info | --inf)
1078     ac_prev=infodir ;;
1079   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080     infodir=$ac_optarg ;;
1081
1082   -libdir | --libdir | --libdi | --libd)
1083     ac_prev=libdir ;;
1084   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085     libdir=$ac_optarg ;;
1086
1087   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088   | --libexe | --libex | --libe)
1089     ac_prev=libexecdir ;;
1090   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091   | --libexe=* | --libex=* | --libe=*)
1092     libexecdir=$ac_optarg ;;
1093
1094   -localedir | --localedir | --localedi | --localed | --locale)
1095     ac_prev=localedir ;;
1096   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097     localedir=$ac_optarg ;;
1098
1099   -localstatedir | --localstatedir | --localstatedi | --localstated \
1100   | --localstate | --localstat | --localsta | --localst | --locals)
1101     ac_prev=localstatedir ;;
1102   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104     localstatedir=$ac_optarg ;;
1105
1106   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107     ac_prev=mandir ;;
1108   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109     mandir=$ac_optarg ;;
1110
1111   -nfp | --nfp | --nf)
1112     # Obsolete; use --without-fp.
1113     with_fp=no ;;
1114
1115   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116   | --no-cr | --no-c | -n)
1117     no_create=yes ;;
1118
1119   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121     no_recursion=yes ;;
1122
1123   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125   | --oldin | --oldi | --old | --ol | --o)
1126     ac_prev=oldincludedir ;;
1127   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130     oldincludedir=$ac_optarg ;;
1131
1132   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133     ac_prev=prefix ;;
1134   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135     prefix=$ac_optarg ;;
1136
1137   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138   | --program-pre | --program-pr | --program-p)
1139     ac_prev=program_prefix ;;
1140   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142     program_prefix=$ac_optarg ;;
1143
1144   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145   | --program-suf | --program-su | --program-s)
1146     ac_prev=program_suffix ;;
1147   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149     program_suffix=$ac_optarg ;;
1150
1151   -program-transform-name | --program-transform-name \
1152   | --program-transform-nam | --program-transform-na \
1153   | --program-transform-n | --program-transform- \
1154   | --program-transform | --program-transfor \
1155   | --program-transfo | --program-transf \
1156   | --program-trans | --program-tran \
1157   | --progr-tra | --program-tr | --program-t)
1158     ac_prev=program_transform_name ;;
1159   -program-transform-name=* | --program-transform-name=* \
1160   | --program-transform-nam=* | --program-transform-na=* \
1161   | --program-transform-n=* | --program-transform-=* \
1162   | --program-transform=* | --program-transfor=* \
1163   | --program-transfo=* | --program-transf=* \
1164   | --program-trans=* | --program-tran=* \
1165   | --progr-tra=* | --program-tr=* | --program-t=*)
1166     program_transform_name=$ac_optarg ;;
1167
1168   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169     ac_prev=pdfdir ;;
1170   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171     pdfdir=$ac_optarg ;;
1172
1173   -psdir | --psdir | --psdi | --psd | --ps)
1174     ac_prev=psdir ;;
1175   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176     psdir=$ac_optarg ;;
1177
1178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179   | -silent | --silent | --silen | --sile | --sil)
1180     silent=yes ;;
1181
1182   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183     ac_prev=sbindir ;;
1184   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185   | --sbi=* | --sb=*)
1186     sbindir=$ac_optarg ;;
1187
1188   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190   | --sharedst | --shareds | --shared | --share | --shar \
1191   | --sha | --sh)
1192     ac_prev=sharedstatedir ;;
1193   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196   | --sha=* | --sh=*)
1197     sharedstatedir=$ac_optarg ;;
1198
1199   -site | --site | --sit)
1200     ac_prev=site ;;
1201   -site=* | --site=* | --sit=*)
1202     site=$ac_optarg ;;
1203
1204   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205     ac_prev=srcdir ;;
1206   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207     srcdir=$ac_optarg ;;
1208
1209   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210   | --syscon | --sysco | --sysc | --sys | --sy)
1211     ac_prev=sysconfdir ;;
1212   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214     sysconfdir=$ac_optarg ;;
1215
1216   -target | --target | --targe | --targ | --tar | --ta | --t)
1217     ac_prev=target_alias ;;
1218   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219     target_alias=$ac_optarg ;;
1220
1221   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222     verbose=yes ;;
1223
1224   -version | --version | --versio | --versi | --vers | -V)
1225     ac_init_version=: ;;
1226
1227   -with-* | --with-*)
1228     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231       as_fn_error $? "invalid package name: $ac_useropt"
1232     ac_useropt_orig=$ac_useropt
1233     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234     case $ac_user_opts in
1235       *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239          ac_unrecognized_sep=', ';;
1240     esac
1241     eval with_$ac_useropt=\$ac_optarg ;;
1242
1243   -without-* | --without-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid package name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=no ;;
1258
1259   --x)
1260     # Obsolete; use --with-x.
1261     with_x=yes ;;
1262
1263   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264   | --x-incl | --x-inc | --x-in | --x-i)
1265     ac_prev=x_includes ;;
1266   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268     x_includes=$ac_optarg ;;
1269
1270   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272     ac_prev=x_libraries ;;
1273   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275     x_libraries=$ac_optarg ;;
1276
1277   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279     ;;
1280
1281   *=*)
1282     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283     # Reject names that are not valid shell variable names.
1284     case $ac_envvar in #(
1285       '' | [0-9]* | *[!_$as_cr_alnum]* )
1286       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287     esac
1288     eval $ac_envvar=\$ac_optarg
1289     export $ac_envvar ;;
1290
1291   *)
1292     # FIXME: should be removed in autoconf 3.0.
1293     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297     ;;
1298
1299   esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304   as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308   case $enable_option_checking in
1309     no) ;;
1310     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312   esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317                 datadir sysconfdir sharedstatedir localstatedir includedir \
1318                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319                 libdir localedir mandir
1320 do
1321   eval ac_val=\$$ac_var
1322   # Remove trailing slashes.
1323   case $ac_val in
1324     */ )
1325       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326       eval $ac_var=\$ac_val;;
1327   esac
1328   # Be sure to have absolute directory names.
1329   case $ac_val in
1330     [\\/$]* | ?:[\\/]* )  continue;;
1331     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332   esac
1333   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345   if test "x$build_alias" = x; then
1346     cross_compiling=maybe
1347     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1348     If a cross compiler is detected then cross compile mode will be used" >&2
1349   elif test "x$build_alias" != "x$host_alias"; then
1350     cross_compiling=yes
1351   fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363   as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365   as_fn_error $? "pwd does not report name of working directory"
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370   ac_srcdir_defaulted=yes
1371   # Try the directory containing this script, then the parent directory.
1372   ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374          X"$as_myself" : 'X\(//\)[^/]' \| \
1375          X"$as_myself" : 'X\(//\)$' \| \
1376          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)[^/].*/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\/\)$/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\).*/{
1391             s//\1/
1392             q
1393           }
1394           s/.*/./; q'`
1395   srcdir=$ac_confdir
1396   if test ! -r "$srcdir/$ac_unique_file"; then
1397     srcdir=..
1398   fi
1399 else
1400   ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405 fi
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409         pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412   srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_env_${ac_var}_value=\$${ac_var}
1423   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431   # Omit some internal or obsolete options to make the list less imposing.
1432   # This message is too long to be a string in the A/UX 3.1 sh.
1433   cat <<_ACEOF
1434 \`configure' configures Moonshot-ui 0.1 to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444   -h, --help              display this help and exit
1445       --help=short        display options specific to this package
1446       --help=recursive    display the short help of all the included packages
1447   -V, --version           display version information and exit
1448   -q, --quiet, --silent   do not print \`checking ...' messages
1449       --cache-file=FILE   cache test results in FILE [disabled]
1450   -C, --config-cache      alias for \`--cache-file=config.cache'
1451   -n, --no-create         do not create output files
1452       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455   --prefix=PREFIX         install architecture-independent files in PREFIX
1456                           [$ac_default_prefix]
1457   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                           [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468   --bindir=DIR            user executables [EPREFIX/bin]
1469   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1470   --libexecdir=DIR        program executables [EPREFIX/libexec]
1471   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1472   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1473   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1474   --libdir=DIR            object code libraries [EPREFIX/lib]
1475   --includedir=DIR        C header files [PREFIX/include]
1476   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1477   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1478   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1479   --infodir=DIR           info documentation [DATAROOTDIR/info]
1480   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1481   --mandir=DIR            man documentation [DATAROOTDIR/man]
1482   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1483   --htmldir=DIR           html documentation [DOCDIR]
1484   --dvidir=DIR            dvi documentation [DOCDIR]
1485   --pdfdir=DIR            pdf documentation [DOCDIR]
1486   --psdir=DIR             ps documentation [DOCDIR]
1487 _ACEOF
1488
1489   cat <<\_ACEOF
1490
1491 Program names:
1492   --program-prefix=PREFIX            prepend PREFIX to installed program names
1493   --program-suffix=SUFFIX            append SUFFIX to installed program names
1494   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1495
1496 System types:
1497   --build=BUILD     configure for building on BUILD [guessed]
1498   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503   case $ac_init_help in
1504      short | recursive ) echo "Configuration of Moonshot-ui 0.1:";;
1505    esac
1506   cat <<\_ACEOF
1507
1508 Optional Features:
1509   --disable-option-checking  ignore unrecognized --enable/--with options
1510   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1511   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1512   --enable-silent-rules          less verbose build output (undo: `make V=1')
1513   --disable-silent-rules         verbose build output (undo: `make V=0')
1514   --disable-maintainer-mode  disable make rules and dependencies not useful
1515                           (and sometimes confusing) to the casual installer
1516   --enable-shared[=PKGS]  build shared libraries [default=yes]
1517   --enable-static[=PKGS]  build static libraries [default=yes]
1518   --enable-fast-install[=PKGS]
1519                           optimize for fast installation [default=yes]
1520   --disable-dependency-tracking  speeds up one-time build
1521   --enable-dependency-tracking   do not reject slow dependency extractors
1522   --disable-libtool-lock  avoid locking (might break parallel builds)
1523   --disable-nls           do not use Native Language Support
1524   --disable-rpath         do not hardcode runtime library paths
1525
1526 Optional Packages:
1527   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1530                           both]
1531   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1532   --with-sysroot=DIR Search for dependent libraries within DIR
1533                         (or the compiler's sysroot if not specified).
1534   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1535   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1536   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1537   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1538   --without-libintl-prefix     don't search for libintl in includedir and libdir
1539
1540 Some influential environment variables:
1541   CC          C compiler command
1542   CFLAGS      C compiler flags
1543   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544               nonstandard directory <lib dir>
1545   LIBS        libraries to pass to the linker, e.g. -l<library>
1546   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547               you have headers in a nonstandard directory <include dir>
1548   CPP         C preprocessor
1549   PKG_CONFIG  path to pkg-config utility
1550   PKG_CONFIG_PATH
1551               directories to add to pkg-config's search path
1552   PKG_CONFIG_LIBDIR
1553               path overriding pkg-config's built-in search path
1554   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1555   GTK_LIBS    linker flags for GTK, overriding pkg-config
1556   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1557   MAC_LIBS    linker flags for MAC, overriding pkg-config
1558   GDBUS_CFLAGS
1559               C compiler flags for GDBUS, overriding pkg-config
1560   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1561   moonshot_CFLAGS
1562               C compiler flags for moonshot, overriding pkg-config
1563   moonshot_LIBS
1564               linker flags for moonshot, overriding pkg-config
1565   libmoonshot_CFLAGS
1566               C compiler flags for libmoonshot, overriding pkg-config
1567   libmoonshot_LIBS
1568               linker flags for libmoonshot, overriding pkg-config
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" ||
1582       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583       continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 Moonshot-ui configure 0.1
1637 generated by GNU Autoconf 2.68
1638
1639 Copyright (C) 2010 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext conftest$ac_exeext
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest$ac_exeext && {
1714          test "$cross_compiling" = yes ||
1715          $as_test_x conftest$ac_exeext
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726   # interfere with the next link command; also delete a directory that is
1727   # left behind by Apple's compiler.  We do this before executing the actions.
1728   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730   as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists and can be compiled using the include files in
1737 # INCLUDES, setting the cache variable VAR accordingly.
1738 ac_fn_c_check_header_compile ()
1739 {
1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744   $as_echo_n "(cached) " >&6
1745 else
1746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h.  */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752   eval "$3=yes"
1753 else
1754   eval "$3=no"
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 fi
1758 eval ac_res=\$$3
1759                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_header_compile
1764
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_cpp ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } > conftest.i && {
1787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788          test ! -s conftest.err
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795     ac_retval=1
1796 fi
1797   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798   as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_cpp
1801
1802 # ac_fn_c_try_run LINENO
1803 # ----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805 # that executables *can* be run.
1806 ac_fn_c_try_run ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_link") 2>&5
1817   ac_status=$?
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820   { { case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_try") 2>&5
1827   ac_status=$?
1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829   test $ac_status = 0; }; }; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: program exited with status $ac_status" >&5
1833        $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836        ac_retval=$ac_status
1837 fi
1838   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_run
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853   $as_echo_n "(cached) " >&6
1854 else
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862     which can conflict with char $2 (); below.
1863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864     <limits.h> exists even on freestanding compilers.  */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875    Use char because int might match the return type of a GCC
1876    builtin and then its argument prototype would still apply.  */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882     to always fail with ENOSYS.  Some functions are actually named
1883     something starting with __ and the normal name is an alias.  */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897   eval "$3=yes"
1898 else
1899   eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902     conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_func
1910 cat >config.log <<_ACEOF
1911 This file contains any messages produced by compilers while
1912 running configure, to aid debugging if configure makes a mistake.
1913
1914 It was created by Moonshot-ui $as_me 0.1, which was
1915 generated by GNU Autoconf 2.68.  Invocation command line was
1916
1917   $ $0 $@
1918
1919 _ACEOF
1920 exec 5>>config.log
1921 {
1922 cat <<_ASUNAME
1923 ## --------- ##
1924 ## Platform. ##
1925 ## --------- ##
1926
1927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1932
1933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1934 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1935
1936 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1937 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1939 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1940 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1941 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1942 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1943
1944 _ASUNAME
1945
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951     $as_echo "PATH: $as_dir"
1952   done
1953 IFS=$as_save_IFS
1954
1955 } >&5
1956
1957 cat >&5 <<_ACEOF
1958
1959
1960 ## ----------- ##
1961 ## Core tests. ##
1962 ## ----------- ##
1963
1964 _ACEOF
1965
1966
1967 # Keep a trace of the command line.
1968 # Strip out --no-create and --no-recursion so they do not pile up.
1969 # Strip out --silent because we don't want to record it for future runs.
1970 # Also quote any args containing shell meta-characters.
1971 # Make two passes to allow for proper duplicate-argument suppression.
1972 ac_configure_args=
1973 ac_configure_args0=
1974 ac_configure_args1=
1975 ac_must_keep_next=false
1976 for ac_pass in 1 2
1977 do
1978   for ac_arg
1979   do
1980     case $ac_arg in
1981     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1982     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1983     | -silent | --silent | --silen | --sile | --sil)
1984       continue ;;
1985     *\'*)
1986       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987     esac
1988     case $ac_pass in
1989     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1990     2)
1991       as_fn_append ac_configure_args1 " '$ac_arg'"
1992       if test $ac_must_keep_next = true; then
1993         ac_must_keep_next=false # Got value, back to normal.
1994       else
1995         case $ac_arg in
1996           *=* | --config-cache | -C | -disable-* | --disable-* \
1997           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1998           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1999           | -with-* | --with-* | -without-* | --without-* | --x)
2000             case "$ac_configure_args0 " in
2001               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002             esac
2003             ;;
2004           -* ) ac_must_keep_next=true ;;
2005         esac
2006       fi
2007       as_fn_append ac_configure_args " '$ac_arg'"
2008       ;;
2009     esac
2010   done
2011 done
2012 { ac_configure_args0=; unset ac_configure_args0;}
2013 { ac_configure_args1=; unset ac_configure_args1;}
2014
2015 # When interrupted or exit'd, cleanup temporary files, and complete
2016 # config.log.  We remove comments because anyway the quotes in there
2017 # would cause problems or look ugly.
2018 # WARNING: Use '\'' to represent an apostrophe within the trap.
2019 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2020 trap 'exit_status=$?
2021   # Save into config.log some information that might help in debugging.
2022   {
2023     echo
2024
2025     $as_echo "## ---------------- ##
2026 ## Cache variables. ##
2027 ## ---------------- ##"
2028     echo
2029     # The following way of writing the cache mishandles newlines in values,
2030 (
2031   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2032     eval ac_val=\$$ac_var
2033     case $ac_val in #(
2034     *${as_nl}*)
2035       case $ac_var in #(
2036       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038       esac
2039       case $ac_var in #(
2040       _ | IFS | as_nl) ;; #(
2041       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2042       *) { eval $ac_var=; unset $ac_var;} ;;
2043       esac ;;
2044     esac
2045   done
2046   (set) 2>&1 |
2047     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2048     *${as_nl}ac_space=\ *)
2049       sed -n \
2050         "s/'\''/'\''\\\\'\'''\''/g;
2051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052       ;; #(
2053     *)
2054       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2055       ;;
2056     esac |
2057     sort
2058 )
2059     echo
2060
2061     $as_echo "## ----------------- ##
2062 ## Output variables. ##
2063 ## ----------------- ##"
2064     echo
2065     for ac_var in $ac_subst_vars
2066     do
2067       eval ac_val=\$$ac_var
2068       case $ac_val in
2069       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070       esac
2071       $as_echo "$ac_var='\''$ac_val'\''"
2072     done | sort
2073     echo
2074
2075     if test -n "$ac_subst_files"; then
2076       $as_echo "## ------------------- ##
2077 ## File substitutions. ##
2078 ## ------------------- ##"
2079       echo
2080       for ac_var in $ac_subst_files
2081       do
2082         eval ac_val=\$$ac_var
2083         case $ac_val in
2084         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085         esac
2086         $as_echo "$ac_var='\''$ac_val'\''"
2087       done | sort
2088       echo
2089     fi
2090
2091     if test -s confdefs.h; then
2092       $as_echo "## ----------- ##
2093 ## confdefs.h. ##
2094 ## ----------- ##"
2095       echo
2096       cat confdefs.h
2097       echo
2098     fi
2099     test "$ac_signal" != 0 &&
2100       $as_echo "$as_me: caught signal $ac_signal"
2101     $as_echo "$as_me: exit $exit_status"
2102   } >&5
2103   rm -f core *.core core.conftest.* &&
2104     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105     exit $exit_status
2106 ' 0
2107 for ac_signal in 1 2 13 15; do
2108   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2109 done
2110 ac_signal=0
2111
2112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2113 rm -f -r conftest* confdefs.h
2114
2115 $as_echo "/* confdefs.h */" > confdefs.h
2116
2117 # Predefined preprocessor variables.
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_NAME "$PACKAGE_NAME"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_STRING "$PACKAGE_STRING"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_URL "$PACKAGE_URL"
2141 _ACEOF
2142
2143
2144 # Let the site file select an alternate cache file if it wants to.
2145 # Prefer an explicitly selected file to automatically selected ones.
2146 ac_site_file1=NONE
2147 ac_site_file2=NONE
2148 if test -n "$CONFIG_SITE"; then
2149   # We do not want a PATH search for config.site.
2150   case $CONFIG_SITE in #((
2151     -*)  ac_site_file1=./$CONFIG_SITE;;
2152     */*) ac_site_file1=$CONFIG_SITE;;
2153     *)   ac_site_file1=./$CONFIG_SITE;;
2154   esac
2155 elif test "x$prefix" != xNONE; then
2156   ac_site_file1=$prefix/share/config.site
2157   ac_site_file2=$prefix/etc/config.site
2158 else
2159   ac_site_file1=$ac_default_prefix/share/config.site
2160   ac_site_file2=$ac_default_prefix/etc/config.site
2161 fi
2162 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163 do
2164   test "x$ac_site_file" = xNONE && continue
2165   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2167 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2168     sed 's/^/| /' "$ac_site_file" >&5
2169     . "$ac_site_file" \
2170       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 as_fn_error $? "failed to load site script $ac_site_file
2173 See \`config.log' for more details" "$LINENO" 5; }
2174   fi
2175 done
2176
2177 if test -r "$cache_file"; then
2178   # Some versions of bash will fail to source /dev/null (special files
2179   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2180   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2182 $as_echo "$as_me: loading cache $cache_file" >&6;}
2183     case $cache_file in
2184       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2185       *)                      . "./$cache_file";;
2186     esac
2187   fi
2188 else
2189   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2190 $as_echo "$as_me: creating cache $cache_file" >&6;}
2191   >$cache_file
2192 fi
2193
2194 gt_needs="$gt_needs "
2195 # Check that the precious variables saved in the cache have kept the same
2196 # value.
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200   eval ac_new_set=\$ac_env_${ac_var}_set
2201   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202   eval ac_new_val=\$ac_env_${ac_var}_value
2203   case $ac_old_set,$ac_new_set in
2204     set,)
2205       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207       ac_cache_corrupted=: ;;
2208     ,set)
2209       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211       ac_cache_corrupted=: ;;
2212     ,);;
2213     *)
2214       if test "x$ac_old_val" != "x$ac_new_val"; then
2215         # differences in whitespace do not lead to failure.
2216         ac_old_val_w=`echo x $ac_old_val`
2217         ac_new_val_w=`echo x $ac_new_val`
2218         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221           ac_cache_corrupted=:
2222         else
2223           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225           eval $ac_var=\$ac_old_val
2226         fi
2227         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2228 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2229         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2231       fi;;
2232   esac
2233   # Pass precious variables to config.status.
2234   if test "$ac_new_set" = set; then
2235     case $ac_new_val in
2236     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237     *) ac_arg=$ac_var=$ac_new_val ;;
2238     esac
2239     case " $ac_configure_args " in
2240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2241       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242     esac
2243   fi
2244 done
2245 if $ac_cache_corrupted; then
2246   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2251 fi
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2255
2256 ac_ext=c
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
2262
2263
2264 ac_config_headers="$ac_config_headers config.h"
2265
2266
2267
2268 ac_aux_dir=
2269 for ac_dir in build-aux "$srcdir"/build-aux; do
2270   if test -f "$ac_dir/install-sh"; then
2271     ac_aux_dir=$ac_dir
2272     ac_install_sh="$ac_aux_dir/install-sh -c"
2273     break
2274   elif test -f "$ac_dir/install.sh"; then
2275     ac_aux_dir=$ac_dir
2276     ac_install_sh="$ac_aux_dir/install.sh -c"
2277     break
2278   elif test -f "$ac_dir/shtool"; then
2279     ac_aux_dir=$ac_dir
2280     ac_install_sh="$ac_aux_dir/shtool install -c"
2281     break
2282   fi
2283 done
2284 if test -z "$ac_aux_dir"; then
2285   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2286 fi
2287
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2295
2296
2297
2298 am__api_version='1.11'
2299
2300 # Find a good install program.  We prefer a C program (faster),
2301 # so one script is as good as another.  But avoid the broken or
2302 # incompatible versions:
2303 # SysV /etc/install, /usr/sbin/install
2304 # SunOS /usr/etc/install
2305 # IRIX /sbin/install
2306 # AIX /bin/install
2307 # AmigaOS /C/install, which installs bootblocks on floppy discs
2308 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2309 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2310 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2311 # OS/2's system install, which has a completely different semantic
2312 # ./install, which can be erroneously created by make from ./install.sh.
2313 # Reject install programs that cannot install multiple files.
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2315 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2316 if test -z "$INSTALL"; then
2317 if ${ac_cv_path_install+:} false; then :
2318   $as_echo_n "(cached) " >&6
2319 else
2320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325     # Account for people who put trailing slashes in PATH elements.
2326 case $as_dir/ in #((
2327   ./ | .// | /[cC]/* | \
2328   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2329   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2330   /usr/ucb/* ) ;;
2331   *)
2332     # OSF1 and SCO ODT 3.0 have their own names for install.
2333     # Don't use installbsd from OSF since it installs stuff as root
2334     # by default.
2335     for ac_prog in ginstall scoinst install; do
2336       for ac_exec_ext in '' $ac_executable_extensions; do
2337         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2338           if test $ac_prog = install &&
2339             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2340             # AIX install.  It has an incompatible calling convention.
2341             :
2342           elif test $ac_prog = install &&
2343             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2344             # program-specific install script used by HP pwplus--don't use.
2345             :
2346           else
2347             rm -rf conftest.one conftest.two conftest.dir
2348             echo one > conftest.one
2349             echo two > conftest.two
2350             mkdir conftest.dir
2351             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2352               test -s conftest.one && test -s conftest.two &&
2353               test -s conftest.dir/conftest.one &&
2354               test -s conftest.dir/conftest.two
2355             then
2356               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2357               break 3
2358             fi
2359           fi
2360         fi
2361       done
2362     done
2363     ;;
2364 esac
2365
2366   done
2367 IFS=$as_save_IFS
2368
2369 rm -rf conftest.one conftest.two conftest.dir
2370
2371 fi
2372   if test "${ac_cv_path_install+set}" = set; then
2373     INSTALL=$ac_cv_path_install
2374   else
2375     # As a last resort, use the slow shell script.  Don't cache a
2376     # value for INSTALL within a source directory, because that will
2377     # break other packages using the cache if that directory is
2378     # removed, or if the value is a relative name.
2379     INSTALL=$ac_install_sh
2380   fi
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2383 $as_echo "$INSTALL" >&6; }
2384
2385 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2386 # It thinks the first close brace ends the variable substitution.
2387 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2388
2389 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2390
2391 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2392
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2394 $as_echo_n "checking whether build environment is sane... " >&6; }
2395 # Just in case
2396 sleep 1
2397 echo timestamp > conftest.file
2398 # Reject unsafe characters in $srcdir or the absolute working directory
2399 # name.  Accept space and tab only in the latter.
2400 am_lf='
2401 '
2402 case `pwd` in
2403   *[\\\"\#\$\&\'\`$am_lf]*)
2404     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2405 esac
2406 case $srcdir in
2407   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2408     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2409 esac
2410
2411 # Do `set' in a subshell so we don't clobber the current shell's
2412 # arguments.  Must try -L first in case configure is actually a
2413 # symlink; some systems play weird games with the mod time of symlinks
2414 # (eg FreeBSD returns the mod time of the symlink's containing
2415 # directory).
2416 if (
2417    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2418    if test "$*" = "X"; then
2419       # -L didn't work.
2420       set X `ls -t "$srcdir/configure" conftest.file`
2421    fi
2422    rm -f conftest.file
2423    if test "$*" != "X $srcdir/configure conftest.file" \
2424       && test "$*" != "X conftest.file $srcdir/configure"; then
2425
2426       # If neither matched, then we have a broken ls.  This can happen
2427       # if, for instance, CONFIG_SHELL is bash and it inherits a
2428       # broken ls alias from the environment.  This has actually
2429       # happened.  Such a system could not be considered "sane".
2430       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2431 alias in your environment" "$LINENO" 5
2432    fi
2433
2434    test "$2" = conftest.file
2435    )
2436 then
2437    # Ok.
2438    :
2439 else
2440    as_fn_error $? "newly created file is older than distributed files!
2441 Check your system clock" "$LINENO" 5
2442 fi
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2444 $as_echo "yes" >&6; }
2445 test "$program_prefix" != NONE &&
2446   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2447 # Use a double $ so make ignores it.
2448 test "$program_suffix" != NONE &&
2449   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2450 # Double any \ or $.
2451 # By default was `s,x,x', remove it if useless.
2452 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2453 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2454
2455 # expand $ac_aux_dir to an absolute path
2456 am_aux_dir=`cd $ac_aux_dir && pwd`
2457
2458 if test x"${MISSING+set}" != xset; then
2459   case $am_aux_dir in
2460   *\ * | *\     *)
2461     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2462   *)
2463     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2464   esac
2465 fi
2466 # Use eval to expand $SHELL
2467 if eval "$MISSING --run true"; then
2468   am_missing_run="$MISSING --run "
2469 else
2470   am_missing_run=
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2472 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2473 fi
2474
2475 if test x"${install_sh}" != xset; then
2476   case $am_aux_dir in
2477   *\ * | *\     *)
2478     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2479   *)
2480     install_sh="\${SHELL} $am_aux_dir/install-sh"
2481   esac
2482 fi
2483
2484 # Installed binaries are usually stripped using `strip' when the user
2485 # run `make install-strip'.  However `strip' might not be the right
2486 # tool to use in cross-compilation environments, therefore Automake
2487 # will honor the `STRIP' environment variable to overrule this program.
2488 if test "$cross_compiling" != no; then
2489   if test -n "$ac_tool_prefix"; then
2490   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}strip; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_STRIP+:} false; then :
2495   $as_echo_n "(cached) " >&6
2496 else
2497   if test -n "$STRIP"; then
2498   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505     for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512   done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 STRIP=$ac_cv_prog_STRIP
2518 if test -n "$STRIP"; then
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2520 $as_echo "$STRIP" >&6; }
2521 else
2522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526
2527 fi
2528 if test -z "$ac_cv_prog_STRIP"; then
2529   ac_ct_STRIP=$STRIP
2530   # Extract the first word of "strip", so it can be a program name with args.
2531 set dummy strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2535   $as_echo_n "(cached) " >&6
2536 else
2537   if test -n "$ac_ct_STRIP"; then
2538   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545     for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     ac_cv_prog_ac_ct_STRIP="strip"
2548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552   done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2558 if test -n "$ac_ct_STRIP"; then
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2560 $as_echo "$ac_ct_STRIP" >&6; }
2561 else
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566   if test "x$ac_ct_STRIP" = x; then
2567     STRIP=":"
2568   else
2569     case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575     STRIP=$ac_ct_STRIP
2576   fi
2577 else
2578   STRIP="$ac_cv_prog_STRIP"
2579 fi
2580
2581 fi
2582 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2583
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2585 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2586 if test -z "$MKDIR_P"; then
2587   if ${ac_cv_path_mkdir+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595     for ac_prog in mkdir gmkdir; do
2596          for ac_exec_ext in '' $ac_executable_extensions; do
2597            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2598            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2599              'mkdir (GNU coreutils) '* | \
2600              'mkdir (coreutils) '* | \
2601              'mkdir (fileutils) '4.1*)
2602                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2603                break 3;;
2604            esac
2605          done
2606        done
2607   done
2608 IFS=$as_save_IFS
2609
2610 fi
2611
2612   test -d ./--version && rmdir ./--version
2613   if test "${ac_cv_path_mkdir+set}" = set; then
2614     MKDIR_P="$ac_cv_path_mkdir -p"
2615   else
2616     # As a last resort, use the slow shell script.  Don't cache a
2617     # value for MKDIR_P within a source directory, because that will
2618     # break other packages using the cache if that directory is
2619     # removed, or if the value is a relative name.
2620     MKDIR_P="$ac_install_sh -d"
2621   fi
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2624 $as_echo "$MKDIR_P" >&6; }
2625
2626 mkdir_p="$MKDIR_P"
2627 case $mkdir_p in
2628   [\\/$]* | ?:[\\/]*) ;;
2629   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2630 esac
2631
2632 for ac_prog in gawk mawk nawk awk
2633 do
2634   # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_AWK+:} false; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$AWK"; then
2642   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649     for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_AWK="$ac_prog"
2652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656   done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 AWK=$ac_cv_prog_AWK
2662 if test -n "$AWK"; then
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2664 $as_echo "$AWK" >&6; }
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671   test -n "$AWK" && break
2672 done
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2676 set x ${MAKE-make}
2677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   cat >conftest.make <<\_ACEOF
2682 SHELL = /bin/sh
2683 all:
2684         @echo '@@@%%%=$(MAKE)=@@@%%%'
2685 _ACEOF
2686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2688   *@@@%%%=?*=@@@%%%*)
2689     eval ac_cv_prog_make_${ac_make}_set=yes;;
2690   *)
2691     eval ac_cv_prog_make_${ac_make}_set=no;;
2692 esac
2693 rm -f conftest.make
2694 fi
2695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697 $as_echo "yes" >&6; }
2698   SET_MAKE=
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702   SET_MAKE="MAKE=${MAKE-make}"
2703 fi
2704
2705 rm -rf .tst 2>/dev/null
2706 mkdir .tst 2>/dev/null
2707 if test -d .tst; then
2708   am__leading_dot=.
2709 else
2710   am__leading_dot=_
2711 fi
2712 rmdir .tst 2>/dev/null
2713
2714 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2715   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2716   # is not polluted with repeated "-I."
2717   am__isrc=' -I$(srcdir)'
2718   # test to see if srcdir already configured
2719   if test -f $srcdir/config.status; then
2720     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2721   fi
2722 fi
2723
2724 # test whether we have cygpath
2725 if test -z "$CYGPATH_W"; then
2726   if (cygpath --version) >/dev/null 2>/dev/null; then
2727     CYGPATH_W='cygpath -w'
2728   else
2729     CYGPATH_W=echo
2730   fi
2731 fi
2732
2733
2734 # Define the identity of the package.
2735  PACKAGE='moonshot-ui'
2736  VERSION='0.1'
2737
2738
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE "$PACKAGE"
2741 _ACEOF
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define VERSION "$VERSION"
2746 _ACEOF
2747
2748 # Some tools Automake needs.
2749
2750 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2751
2752
2753 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2754
2755
2756 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2757
2758
2759 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2760
2761
2762 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2763
2764 # We need awk for the "check" target.  The system "awk" is bad on
2765 # some platforms.
2766 # Always define AMTAR for backward compatibility.
2767
2768 AMTAR=${AMTAR-"${am_missing_run}tar"}
2769
2770
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2772 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2773 # Loop over all known methods to create a tar archive until one works.
2774 _am_tools='gnutar  pax cpio none'
2775 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2776 # Do not fold the above two line into one, because Tru64 sh and
2777 # Solaris sh will not grok spaces in the rhs of `-'.
2778 for _am_tool in $_am_tools
2779 do
2780   case $_am_tool in
2781   gnutar)
2782     for _am_tar in tar gnutar gtar;
2783     do
2784       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2785    ($_am_tar --version) >&5 2>&5
2786    ac_status=$?
2787    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788    (exit $ac_status); } && break
2789     done
2790     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2791     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2792     am__untar="$_am_tar -xf -"
2793     ;;
2794   plaintar)
2795     # Must skip GNU tar: if it does not support --format= it doesn't create
2796     # ustar tarball either.
2797     (tar --version) >/dev/null 2>&1 && continue
2798     am__tar='tar chf - "$$tardir"'
2799     am__tar_='tar chf - "$tardir"'
2800     am__untar='tar xf -'
2801     ;;
2802   pax)
2803     am__tar='pax -L -x pax -w "$$tardir"'
2804     am__tar_='pax -L -x pax -w "$tardir"'
2805     am__untar='pax -r'
2806     ;;
2807   cpio)
2808     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2809     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2810     am__untar='cpio -i -H pax -d'
2811     ;;
2812   none)
2813     am__tar=false
2814     am__tar_=false
2815     am__untar=false
2816     ;;
2817   esac
2818
2819   # If the value was cached, stop now.  We just wanted to have am__tar
2820   # and am__untar set.
2821   test -n "${am_cv_prog_tar_pax}" && break
2822
2823   # tar/untar a dummy directory, and stop if the command works
2824   rm -rf conftest.dir
2825   mkdir conftest.dir
2826   echo GrepMe > conftest.dir/file
2827   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2828    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2829    ac_status=$?
2830    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831    (exit $ac_status); }
2832   rm -rf conftest.dir
2833   if test -s conftest.tar; then
2834     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2835    ($am__untar <conftest.tar) >&5 2>&5
2836    ac_status=$?
2837    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838    (exit $ac_status); }
2839     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2840   fi
2841 done
2842 rm -rf conftest.dir
2843
2844 if ${am_cv_prog_tar_pax+:} false; then :
2845   $as_echo_n "(cached) " >&6
2846 else
2847   am_cv_prog_tar_pax=$_am_tool
2848 fi
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2851 $as_echo "$am_cv_prog_tar_pax" >&6; }
2852
2853
2854
2855
2856
2857 # Check whether --enable-silent-rules was given.
2858 if test "${enable_silent_rules+set}" = set; then :
2859   enableval=$enable_silent_rules;
2860 fi
2861
2862 case $enable_silent_rules in
2863 yes) AM_DEFAULT_VERBOSITY=0;;
2864 no)  AM_DEFAULT_VERBOSITY=1;;
2865 *)   AM_DEFAULT_VERBOSITY=0;;
2866 esac
2867 AM_BACKSLASH='\'
2868
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2871 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2872     # Check whether --enable-maintainer-mode was given.
2873 if test "${enable_maintainer_mode+set}" = set; then :
2874   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2875 else
2876   USE_MAINTAINER_MODE=yes
2877 fi
2878
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2880 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2881    if test $USE_MAINTAINER_MODE = yes; then
2882   MAINTAINER_MODE_TRUE=
2883   MAINTAINER_MODE_FALSE='#'
2884 else
2885   MAINTAINER_MODE_TRUE='#'
2886   MAINTAINER_MODE_FALSE=
2887 fi
2888
2889   MAINT=$MAINTAINER_MODE_TRUE
2890
2891
2892
2893
2894 case `pwd` in
2895   *\ * | *\     *)
2896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2897 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2898 esac
2899
2900
2901
2902 macro_version='2.4.2'
2903 macro_revision='1.3337'
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917 ltmain="$ac_aux_dir/ltmain.sh"
2918
2919 # Make sure we can run config.sub.
2920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2921   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2924 $as_echo_n "checking build system type... " >&6; }
2925 if ${ac_cv_build+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   ac_build_alias=$build_alias
2929 test "x$ac_build_alias" = x &&
2930   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2931 test "x$ac_build_alias" = x &&
2932   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2933 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2934   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2935
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2938 $as_echo "$ac_cv_build" >&6; }
2939 case $ac_cv_build in
2940 *-*-*) ;;
2941 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2942 esac
2943 build=$ac_cv_build
2944 ac_save_IFS=$IFS; IFS='-'
2945 set x $ac_cv_build
2946 shift
2947 build_cpu=$1
2948 build_vendor=$2
2949 shift; shift
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2952 build_os=$*
2953 IFS=$ac_save_IFS
2954 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2955
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2958 $as_echo_n "checking host system type... " >&6; }
2959 if ${ac_cv_host+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test "x$host_alias" = x; then
2963   ac_cv_host=$ac_cv_build
2964 else
2965   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2966     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2967 fi
2968
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2971 $as_echo "$ac_cv_host" >&6; }
2972 case $ac_cv_host in
2973 *-*-*) ;;
2974 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2975 esac
2976 host=$ac_cv_host
2977 ac_save_IFS=$IFS; IFS='-'
2978 set x $ac_cv_host
2979 shift
2980 host_cpu=$1
2981 host_vendor=$2
2982 shift; shift
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2985 host_os=$*
2986 IFS=$ac_save_IFS
2987 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2988
2989
2990 # Backslashify metacharacters that are still active within
2991 # double-quoted strings.
2992 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2993
2994 # Same as above, but do not quote variable references.
2995 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2996
2997 # Sed substitution to delay expansion of an escaped shell variable in a
2998 # double_quote_subst'ed string.
2999 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3000
3001 # Sed substitution to delay expansion of an escaped single quote.
3002 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3003
3004 # Sed substitution to avoid accidental globbing in evaled expressions
3005 no_glob_subst='s/\*/\\\*/g'
3006
3007 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3009 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3010
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3012 $as_echo_n "checking how to print strings... " >&6; }
3013 # Test print first, because it will be a builtin if present.
3014 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3015    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3016   ECHO='print -r --'
3017 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3018   ECHO='printf %s\n'
3019 else
3020   # Use this function as a fallback that always works.
3021   func_fallback_echo ()
3022   {
3023     eval 'cat <<_LTECHO_EOF
3024 $1
3025 _LTECHO_EOF'
3026   }
3027   ECHO='func_fallback_echo'
3028 fi
3029
3030 # func_echo_all arg...
3031 # Invoke $ECHO with all args, space-separated.
3032 func_echo_all ()
3033 {
3034     $ECHO ""
3035 }
3036
3037 case "$ECHO" in
3038   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3039 $as_echo "printf" >&6; } ;;
3040   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3041 $as_echo "print -r" >&6; } ;;
3042   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3043 $as_echo "cat" >&6; } ;;
3044 esac
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059 DEPDIR="${am__leading_dot}deps"
3060
3061 ac_config_commands="$ac_config_commands depfiles"
3062
3063
3064 am_make=${MAKE-make}
3065 cat > confinc << 'END'
3066 am__doit:
3067         @echo this is the am__doit target
3068 .PHONY: am__doit
3069 END
3070 # If we don't find an include directive, just comment out the code.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3072 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3073 am__include="#"
3074 am__quote=
3075 _am_result=none
3076 # First try GNU make style include.
3077 echo "include confinc" > confmf
3078 # Ignore all kinds of additional output from `make'.
3079 case `$am_make -s -f confmf 2> /dev/null` in #(
3080 *the\ am__doit\ target*)
3081   am__include=include
3082   am__quote=
3083   _am_result=GNU
3084   ;;
3085 esac
3086 # Now try BSD make style include.
3087 if test "$am__include" = "#"; then
3088    echo '.include "confinc"' > confmf
3089    case `$am_make -s -f confmf 2> /dev/null` in #(
3090    *the\ am__doit\ target*)
3091      am__include=.include
3092      am__quote="\""
3093      _am_result=BSD
3094      ;;
3095    esac
3096 fi
3097
3098
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3100 $as_echo "$_am_result" >&6; }
3101 rm -f confinc confmf
3102
3103 # Check whether --enable-dependency-tracking was given.
3104 if test "${enable_dependency_tracking+set}" = set; then :
3105   enableval=$enable_dependency_tracking;
3106 fi
3107
3108 if test "x$enable_dependency_tracking" != xno; then
3109   am_depcomp="$ac_aux_dir/depcomp"
3110   AMDEPBACKSLASH='\'
3111   am__nodep='_no'
3112 fi
3113  if test "x$enable_dependency_tracking" != xno; then
3114   AMDEP_TRUE=
3115   AMDEP_FALSE='#'
3116 else
3117   AMDEP_TRUE='#'
3118   AMDEP_FALSE=
3119 fi
3120
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$CC"; then
3136   ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_exec_ext in '' $ac_executable_extensions; do
3144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150   done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 fi
3166 if test -z "$ac_cv_prog_CC"; then
3167   ac_ct_CC=$CC
3168   # Extract the first word of "gcc", so it can be a program name with args.
3169 set dummy gcc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   if test -n "$ac_ct_CC"; then
3176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181   IFS=$as_save_IFS
3182   test -z "$as_dir" && as_dir=.
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185     ac_cv_prog_ac_ct_CC="gcc"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3199 else
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204   if test "x$ac_ct_CC" = x; then
3205     CC=""
3206   else
3207     case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213     CC=$ac_ct_CC
3214   fi
3215 else
3216   CC="$ac_cv_prog_CC"
3217 fi
3218
3219 if test -z "$CC"; then
3220           if test -n "$ac_tool_prefix"; then
3221     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}cc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_CC+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$CC"; then
3229   ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238     ac_cv_prog_CC="${ac_tool_prefix}cc"
3239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243   done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258   fi
3259 fi
3260 if test -z "$CC"; then
3261   # Extract the first word of "cc", so it can be a program name with args.
3262 set dummy cc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_CC+:} false; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   if test -n "$CC"; then
3269   ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271   ac_prog_rejected=no
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277     for ac_exec_ext in '' $ac_executable_extensions; do
3278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3280        ac_prog_rejected=yes
3281        continue
3282      fi
3283     ac_cv_prog_CC="cc"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 if test $ac_prog_rejected = yes; then
3292   # We found a bogon in the path, so make sure we never use it.
3293   set dummy $ac_cv_prog_CC
3294   shift
3295   if test $# != 0; then
3296     # We chose a different compiler from the bogus one.
3297     # However, it has the same basename, so the bogon will be chosen
3298     # first if we set CC to just the basename; use the full file name.
3299     shift
3300     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301   fi
3302 fi
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$CC"; then
3317   if test -n "$ac_tool_prefix"; then
3318   for ac_prog in cl.exe
3319   do
3320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CC"; then
3328   ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357     test -n "$CC" && break
3358   done
3359 fi
3360 if test -z "$CC"; then
3361   ac_ct_CC=$CC
3362   for ac_prog in cl.exe
3363 do
3364   # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   if test -n "$ac_ct_CC"; then
3372   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   test -z "$as_dir" && as_dir=.
3379     for ac_exec_ext in '' $ac_executable_extensions; do
3380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381     ac_cv_prog_ac_ct_CC="$ac_prog"
3382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384   fi
3385 done
3386   done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3394 $as_echo "$ac_ct_CC" >&6; }
3395 else
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401   test -n "$ac_ct_CC" && break
3402 done
3403
3404   if test "x$ac_ct_CC" = x; then
3405     CC=""
3406   else
3407     case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413     CC=$ac_ct_CC
3414   fi
3415 fi
3416
3417 fi
3418
3419
3420 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "no acceptable C compiler found in \$PATH
3423 See \`config.log' for more details" "$LINENO" 5; }
3424
3425 # Provide some information about the compiler.
3426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3427 set X $ac_compile
3428 ac_compiler=$2
3429 for ac_option in --version -v -V -qversion; do
3430   { { ac_try="$ac_compiler $ac_option >&5"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3438   ac_status=$?
3439   if test -s conftest.err; then
3440     sed '10a\
3441 ... rest of stderr output deleted ...
3442          10q' conftest.err >conftest.er1
3443     cat conftest.er1 >&5
3444   fi
3445   rm -f conftest.er1 conftest.err
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }
3448 done
3449
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 ac_clean_files_save=$ac_clean_files
3462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3463 # Try to create an executable without -o first, disregard a.out.
3464 # It will help us diagnose broken compilers, and finding out an intuition
3465 # of exeext.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3467 $as_echo_n "checking whether the C compiler works... " >&6; }
3468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469
3470 # The possible output files:
3471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472
3473 ac_rmfiles=
3474 for ac_file in $ac_files
3475 do
3476   case $ac_file in
3477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479   esac
3480 done
3481 rm -f $ac_rmfiles
3482
3483 if { { ac_try="$ac_link_default"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_link_default") 2>&5
3491   ac_status=$?
3492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493   test $ac_status = 0; }; then :
3494   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3497 # so that the user can short-circuit this test for compilers unknown to
3498 # Autoconf.
3499 for ac_file in $ac_files ''
3500 do
3501   test -f "$ac_file" || continue
3502   case $ac_file in
3503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504         ;;
3505     [ab].out )
3506         # We found the default executable, but exeext='' is most
3507         # certainly right.
3508         break;;
3509     *.* )
3510         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3511         then :; else
3512            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513         fi
3514         # We set ac_cv_exeext here because the later test for it is not
3515         # safe: cross compilers may not add the suffix if given an `-o'
3516         # argument, so we may need to know it at that point already.
3517         # Even if this section looks crufty: it has the advantage of
3518         # actually working.
3519         break;;
3520     * )
3521         break;;
3522   esac
3523 done
3524 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
3526 else
3527   ac_file=''
3528 fi
3529 if test -z "$ac_file"; then :
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error 77 "C compiler cannot create executables
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 else
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3544 $as_echo_n "checking for C compiler default output file name... " >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546 $as_echo "$ac_file" >&6; }
3547 ac_exeext=$ac_cv_exeext
3548
3549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3550 ac_clean_files=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3552 $as_echo_n "checking for suffix of executables... " >&6; }
3553 if { { ac_try="$ac_link"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560   (eval "$ac_link") 2>&5
3561   ac_status=$?
3562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563   test $ac_status = 0; }; then :
3564   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3565 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3566 # work properly (i.e., refer to `conftest.exe'), while it won't with
3567 # `rm'.
3568 for ac_file in conftest.exe conftest conftest.*; do
3569   test -f "$ac_file" || continue
3570   case $ac_file in
3571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3572     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573           break;;
3574     * ) break;;
3575   esac
3576 done
3577 else
3578   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest conftest$ac_cv_exeext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3585 $as_echo "$ac_cv_exeext" >&6; }
3586
3587 rm -f conftest.$ac_ext
3588 EXEEXT=$ac_cv_exeext
3589 ac_exeext=$EXEEXT
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592 #include <stdio.h>
3593 int
3594 main ()
3595 {
3596 FILE *f = fopen ("conftest.out", "w");
3597  return ferror (f) || fclose (f) != 0;
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 ac_clean_files="$ac_clean_files conftest.out"
3604 # Check that the compiler produces executables we can run.  If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 if test "$cross_compiling" != yes; then
3609   { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_link") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }
3620   if { ac_try='./conftest$ac_cv_exeext'
3621   { { case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_try") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }; }; then
3631     cross_compiling=no
3632   else
3633     if test "$cross_compiling" = maybe; then
3634         cross_compiling=yes
3635     else
3636         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot run C compiled programs.
3639 If you meant to cross compile, use \`--host'.
3640 See \`config.log' for more details" "$LINENO" 5; }
3641     fi
3642   fi
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3645 $as_echo "$cross_compiling" >&6; }
3646
3647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if ${ac_cv_objext+:} false; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h.  */
3656
3657 int
3658 main ()
3659 {
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673   (eval "$ac_compile") 2>&5
3674   ac_status=$?
3675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676   test $ac_status = 0; }; then :
3677   for ac_file in conftest.o conftest.obj conftest.*; do
3678   test -f "$ac_file" || continue;
3679   case $ac_file in
3680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682        break;;
3683   esac
3684 done
3685 else
3686   $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if ${ac_cv_c_compiler_gnu+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h.  */
3707
3708 int
3709 main ()
3710 {
3711 #ifndef __GNUC__
3712        choke me
3713 #endif
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720   ac_compiler_gnu=yes
3721 else
3722   ac_compiler_gnu=no
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731   GCC=yes
3732 else
3733   GCC=
3734 fi
3735 ac_test_CFLAGS=${CFLAGS+set}
3736 ac_save_CFLAGS=$CFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3739 if ${ac_cv_prog_cc_g+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   ac_save_c_werror_flag=$ac_c_werror_flag
3743    ac_c_werror_flag=yes
3744    ac_cv_prog_cc_g=no
3745    CFLAGS="-g"
3746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h.  */
3748
3749 int
3750 main ()
3751 {
3752
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758   ac_cv_prog_cc_g=yes
3759 else
3760   CFLAGS=""
3761       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773
3774 else
3775   ac_c_werror_flag=$ac_save_c_werror_flag
3776          CFLAGS="-g"
3777          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789   ac_cv_prog_cc_g=yes
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796    ac_c_werror_flag=$ac_save_c_werror_flag
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3799 $as_echo "$ac_cv_prog_cc_g" >&6; }
3800 if test "$ac_test_CFLAGS" = set; then
3801   CFLAGS=$ac_save_CFLAGS
3802 elif test $ac_cv_prog_cc_g = yes; then
3803   if test "$GCC" = yes; then
3804     CFLAGS="-g -O2"
3805   else
3806     CFLAGS="-g"
3807   fi
3808 else
3809   if test "$GCC" = yes; then
3810     CFLAGS="-O2"
3811   else
3812     CFLAGS=
3813   fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3817 if ${ac_cv_prog_cc_c89+:} false; then :
3818   $as_echo_n "(cached) " >&6
3819 else
3820   ac_cv_prog_cc_c89=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h.  */
3824 #include <stdarg.h>
3825 #include <stdio.h>
3826 #include <sys/types.h>
3827 #include <sys/stat.h>
3828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3829 struct buf { int x; };
3830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831 static char *e (p, i)
3832      char **p;
3833      int i;
3834 {
3835   return p[i];
3836 }
3837 static char *f (char * (*g) (char **, int), char **p, ...)
3838 {
3839   char *s;
3840   va_list v;
3841   va_start (v,p);
3842   s = g (p, va_arg (v,int));
3843   va_end (v);
3844   return s;
3845 }
3846
3847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3848    function prototypes and stuff, but not '\xHH' hex character constants.
3849    These don't provoke an error unfortunately, instead are silently treated
3850    as 'x'.  The following induces an error, until -std is added to get
3851    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3852    array size at least.  It's necessary to write '\x00'==0 to get something
3853    that's true only with -std.  */
3854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3855
3856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3857    inside strings and character constants.  */
3858 #define FOO(x) 'x'
3859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3860
3861 int test (int i, double x);
3862 struct s1 {int (*f) (int a);};
3863 struct s2 {int (*f) (double a);};
3864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 int argc;
3866 char **argv;
3867 int
3868 main ()
3869 {
3870 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3876         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3877 do
3878   CC="$ac_save_CC $ac_arg"
3879   if ac_fn_c_try_compile "$LINENO"; then :
3880   ac_cv_prog_cc_c89=$ac_arg
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext
3883   test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC
3887
3888 fi
3889 # AC_CACHE_VAL
3890 case "x$ac_cv_prog_cc_c89" in
3891   x)
3892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3893 $as_echo "none needed" >&6; } ;;
3894   xno)
3895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3896 $as_echo "unsupported" >&6; } ;;
3897   *)
3898     CC="$CC $ac_cv_prog_cc_c89"
3899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3901 esac
3902 if test "x$ac_cv_prog_cc_c89" != xno; then :
3903
3904 fi
3905
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912 depcc="$CC"   am_compiler_list=
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3915 $as_echo_n "checking dependency style of $depcc... " >&6; }
3916 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3920   # We make a subdir and do the tests there.  Otherwise we can end up
3921   # making bogus files that we don't know about and never remove.  For
3922   # instance it was reported that on HP-UX the gcc test will end up
3923   # making a dummy file named `D' -- because `-MD' means `put the output
3924   # in D'.
3925   rm -rf conftest.dir
3926   mkdir conftest.dir
3927   # Copy depcomp to subdir because otherwise we won't find it if we're
3928   # using a relative directory.
3929   cp "$am_depcomp" conftest.dir
3930   cd conftest.dir
3931   # We will build objects and dependencies in a subdirectory because
3932   # it helps to detect inapplicable dependency modes.  For instance
3933   # both Tru64's cc and ICC support -MD to output dependencies as a
3934   # side effect of compilation, but ICC will put the dependencies in
3935   # the current directory while Tru64 will put them in the object
3936   # directory.
3937   mkdir sub
3938
3939   am_cv_CC_dependencies_compiler_type=none
3940   if test "$am_compiler_list" = ""; then
3941      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942   fi
3943   am__universal=false
3944   case " $depcc " in #(
3945      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3946      esac
3947
3948   for depmode in $am_compiler_list; do
3949     # Setup a source with many dependencies, because some compilers
3950     # like to wrap large dependency lists on column 80 (with \), and
3951     # we should not choose a depcomp mode which is confused by this.
3952     #
3953     # We need to recreate these files for each test, as the compiler may
3954     # overwrite some of them when testing with obscure command lines.
3955     # This happens at least with the AIX C compiler.
3956     : > sub/conftest.c
3957     for i in 1 2 3 4 5 6; do
3958       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3960       # Solaris 8's {/usr,}/bin/sh.
3961       touch sub/conftst$i.h
3962     done
3963     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3966     # mode.  It turns out that the SunPro C++ compiler does not properly
3967     # handle `-M -o', and we need to detect this.  Also, some Intel
3968     # versions had trouble with output in subdirs
3969     am__obj=sub/conftest.${OBJEXT-o}
3970     am__minus_obj="-o $am__obj"
3971     case $depmode in
3972     gcc)
3973       # This depmode causes a compiler race in universal mode.
3974       test "$am__universal" = false || continue
3975       ;;
3976     nosideeffect)
3977       # after this tag, mechanisms are not by side-effect, so they'll
3978       # only be used when explicitly requested
3979       if test "x$enable_dependency_tracking" = xyes; then
3980         continue
3981       else
3982         break
3983       fi
3984       ;;
3985     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3986       # This compiler won't grok `-c -o', but also, the minuso test has
3987       # not run yet.  These depmodes are late enough in the game, and
3988       # so weak that their functioning should not be impacted.
3989       am__obj=conftest.${OBJEXT-o}
3990       am__minus_obj=
3991       ;;
3992     none) break ;;
3993     esac
3994     if depmode=$depmode \
3995        source=sub/conftest.c object=$am__obj \
3996        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998          >/dev/null 2>conftest.err &&
3999        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003       # icc doesn't choke on unknown options, it will just issue warnings
4004       # or remarks (even with -Werror).  So we grep stderr for any message
4005       # that says an option was ignored or not supported.
4006       # When given -MP, icc 7.0 and 7.1 complain thusly:
4007       #   icc: Command line warning: ignoring option '-M'; no argument required
4008       # The diagnosis changed in icc 8.0:
4009       #   icc: Command line remark: option '-MP' not supported
4010       if (grep 'ignoring option' conftest.err ||
4011           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012         am_cv_CC_dependencies_compiler_type=$depmode
4013         break
4014       fi
4015     fi
4016   done
4017
4018   cd ..
4019   rm -rf conftest.dir
4020 else
4021   am_cv_CC_dependencies_compiler_type=none
4022 fi
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4028
4029  if
4030   test "x$enable_dependency_tracking" != xno \
4031   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4032   am__fastdepCC_TRUE=
4033   am__fastdepCC_FALSE='#'
4034 else
4035   am__fastdepCC_TRUE='#'
4036   am__fastdepCC_FALSE=
4037 fi
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4041 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4042 if ${ac_cv_path_SED+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4046      for ac_i in 1 2 3 4 5 6 7; do
4047        ac_script="$ac_script$as_nl$ac_script"
4048      done
4049      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4050      { ac_script=; unset ac_script;}
4051      if test -z "$SED"; then
4052   ac_path_SED_found=false
4053   # Loop through the user's path and test for each of PROGNAME-LIST
4054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059     for ac_prog in sed gsed; do
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4062       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4063 # Check for GNU ac_path_SED and select it if it is found.
4064   # Check for GNU $ac_path_SED
4065 case `"$ac_path_SED" --version 2>&1` in
4066 *GNU*)
4067   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4068 *)
4069   ac_count=0
4070   $as_echo_n 0123456789 >"conftest.in"
4071   while :
4072   do
4073     cat "conftest.in" "conftest.in" >"conftest.tmp"
4074     mv "conftest.tmp" "conftest.in"
4075     cp "conftest.in" "conftest.nl"
4076     $as_echo '' >> "conftest.nl"
4077     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079     as_fn_arith $ac_count + 1 && ac_count=$as_val
4080     if test $ac_count -gt ${ac_path_SED_max-0}; then
4081       # Best one so far, save it but keep looking for a better one
4082       ac_cv_path_SED="$ac_path_SED"
4083       ac_path_SED_max=$ac_count
4084     fi
4085     # 10*(2^10) chars as input seems more than enough
4086     test $ac_count -gt 10 && break
4087   done
4088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091       $ac_path_SED_found && break 3
4092     done
4093   done
4094   done
4095 IFS=$as_save_IFS
4096   if test -z "$ac_cv_path_SED"; then
4097     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4098   fi
4099 else
4100   ac_cv_path_SED=$SED
4101 fi
4102
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4105 $as_echo "$ac_cv_path_SED" >&6; }
4106  SED="$ac_cv_path_SED"
4107   rm -f conftest.sed
4108
4109 test -z "$SED" && SED=sed
4110 Xsed="$SED -e 1s/^X//"
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124 if ${ac_cv_path_GREP+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test -z "$GREP"; then
4128   ac_path_GREP_found=false
4129   # Loop through the user's path and test for each of PROGNAME-LIST
4130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_prog in grep ggrep; do
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4139 # Check for GNU ac_path_GREP and select it if it is found.
4140   # Check for GNU $ac_path_GREP
4141 case `"$ac_path_GREP" --version 2>&1` in
4142 *GNU*)
4143   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144 *)
4145   ac_count=0
4146   $as_echo_n 0123456789 >"conftest.in"
4147   while :
4148   do
4149     cat "conftest.in" "conftest.in" >"conftest.tmp"
4150     mv "conftest.tmp" "conftest.in"
4151     cp "conftest.in" "conftest.nl"
4152     $as_echo 'GREP' >> "conftest.nl"
4153     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155     as_fn_arith $ac_count + 1 && ac_count=$as_val
4156     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157       # Best one so far, save it but keep looking for a better one
4158       ac_cv_path_GREP="$ac_path_GREP"
4159       ac_path_GREP_max=$ac_count
4160     fi
4161     # 10*(2^10) chars as input seems more than enough
4162     test $ac_count -gt 10 && break
4163   done
4164   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167       $ac_path_GREP_found && break 3
4168     done
4169   done
4170   done
4171 IFS=$as_save_IFS
4172   if test -z "$ac_cv_path_GREP"; then
4173     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174   fi
4175 else
4176   ac_cv_path_GREP=$GREP
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181 $as_echo "$ac_cv_path_GREP" >&6; }
4182  GREP="$ac_cv_path_GREP"
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186 $as_echo_n "checking for egrep... " >&6; }
4187 if ${ac_cv_path_EGREP+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191    then ac_cv_path_EGREP="$GREP -E"
4192    else
4193      if test -z "$EGREP"; then
4194   ac_path_EGREP_found=false
4195   # Loop through the user's path and test for each of PROGNAME-LIST
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_prog in egrep; do
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4205 # Check for GNU ac_path_EGREP and select it if it is found.
4206   # Check for GNU $ac_path_EGREP
4207 case `"$ac_path_EGREP" --version 2>&1` in
4208 *GNU*)
4209   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210 *)
4211   ac_count=0
4212   $as_echo_n 0123456789 >"conftest.in"
4213   while :
4214   do
4215     cat "conftest.in" "conftest.in" >"conftest.tmp"
4216     mv "conftest.tmp" "conftest.in"
4217     cp "conftest.in" "conftest.nl"
4218     $as_echo 'EGREP' >> "conftest.nl"
4219     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221     as_fn_arith $ac_count + 1 && ac_count=$as_val
4222     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223       # Best one so far, save it but keep looking for a better one
4224       ac_cv_path_EGREP="$ac_path_EGREP"
4225       ac_path_EGREP_max=$ac_count
4226     fi
4227     # 10*(2^10) chars as input seems more than enough
4228     test $ac_count -gt 10 && break
4229   done
4230   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4232
4233       $ac_path_EGREP_found && break 3
4234     done
4235   done
4236   done
4237 IFS=$as_save_IFS
4238   if test -z "$ac_cv_path_EGREP"; then
4239     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240   fi
4241 else
4242   ac_cv_path_EGREP=$EGREP
4243 fi
4244
4245    fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249  EGREP="$ac_cv_path_EGREP"
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4253 $as_echo_n "checking for fgrep... " >&6; }
4254 if ${ac_cv_path_FGREP+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4258    then ac_cv_path_FGREP="$GREP -F"
4259    else
4260      if test -z "$FGREP"; then
4261   ac_path_FGREP_found=false
4262   # Loop through the user's path and test for each of PROGNAME-LIST
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268     for ac_prog in fgrep; do
4269     for ac_exec_ext in '' $ac_executable_extensions; do
4270       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4271       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4272 # Check for GNU ac_path_FGREP and select it if it is found.
4273   # Check for GNU $ac_path_FGREP
4274 case `"$ac_path_FGREP" --version 2>&1` in
4275 *GNU*)
4276   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4277 *)
4278   ac_count=0
4279   $as_echo_n 0123456789 >"conftest.in"
4280   while :
4281   do
4282     cat "conftest.in" "conftest.in" >"conftest.tmp"
4283     mv "conftest.tmp" "conftest.in"
4284     cp "conftest.in" "conftest.nl"
4285     $as_echo 'FGREP' >> "conftest.nl"
4286     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288     as_fn_arith $ac_count + 1 && ac_count=$as_val
4289     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4290       # Best one so far, save it but keep looking for a better one
4291       ac_cv_path_FGREP="$ac_path_FGREP"
4292       ac_path_FGREP_max=$ac_count
4293     fi
4294     # 10*(2^10) chars as input seems more than enough
4295     test $ac_count -gt 10 && break
4296   done
4297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298 esac
4299
4300       $ac_path_FGREP_found && break 3
4301     done
4302   done
4303   done
4304 IFS=$as_save_IFS
4305   if test -z "$ac_cv_path_FGREP"; then
4306     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307   fi
4308 else
4309   ac_cv_path_FGREP=$FGREP
4310 fi
4311
4312    fi
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4315 $as_echo "$ac_cv_path_FGREP" >&6; }
4316  FGREP="$ac_cv_path_FGREP"
4317
4318
4319 test -z "$GREP" && GREP=grep
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339 # Check whether --with-gnu-ld was given.
4340 if test "${with_gnu_ld+set}" = set; then :
4341   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4342 else
4343   with_gnu_ld=no
4344 fi
4345
4346 ac_prog=ld
4347 if test "$GCC" = yes; then
4348   # Check if gcc -print-prog-name=ld gives a path.
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4350 $as_echo_n "checking for ld used by $CC... " >&6; }
4351   case $host in
4352   *-*-mingw*)
4353     # gcc leaves a trailing carriage return which upsets mingw
4354     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4355   *)
4356     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4357   esac
4358   case $ac_prog in
4359     # Accept absolute paths.
4360     [\\/]* | ?:[\\/]*)
4361       re_direlt='/[^/][^/]*/\.\./'
4362       # Canonicalize the pathname of ld
4363       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4364       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4365         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4366       done
4367       test -z "$LD" && LD="$ac_prog"
4368       ;;
4369   "")
4370     # If it fails, then pretend we aren't using GCC.
4371     ac_prog=ld
4372     ;;
4373   *)
4374     # If it is relative, then search for the first ld in PATH.
4375     with_gnu_ld=unknown
4376     ;;
4377   esac
4378 elif test "$with_gnu_ld" = yes; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4380 $as_echo_n "checking for GNU ld... " >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4383 $as_echo_n "checking for non-GNU ld... " >&6; }
4384 fi
4385 if ${lt_cv_path_LD+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   if test -z "$LD"; then
4389   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4390   for ac_dir in $PATH; do
4391     IFS="$lt_save_ifs"
4392     test -z "$ac_dir" && ac_dir=.
4393     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4394       lt_cv_path_LD="$ac_dir/$ac_prog"
4395       # Check to see if the program is GNU ld.  I'd rather use --version,
4396       # but apparently some variants of GNU ld only accept -v.
4397       # Break only if it was the GNU/non-GNU ld that we prefer.
4398       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4399       *GNU* | *'with BFD'*)
4400         test "$with_gnu_ld" != no && break
4401         ;;
4402       *)
4403         test "$with_gnu_ld" != yes && break
4404         ;;
4405       esac
4406     fi
4407   done
4408   IFS="$lt_save_ifs"
4409 else
4410   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4411 fi
4412 fi
4413
4414 LD="$lt_cv_path_LD"
4415 if test -n "$LD"; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4417 $as_echo "$LD" >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4425 if ${lt_cv_prog_gnu_ld+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4429 case `$LD -v 2>&1 </dev/null` in
4430 *GNU* | *'with BFD'*)
4431   lt_cv_prog_gnu_ld=yes
4432   ;;
4433 *)
4434   lt_cv_prog_gnu_ld=no
4435   ;;
4436 esac
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4439 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4440 with_gnu_ld=$lt_cv_prog_gnu_ld
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4451 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4452 if ${lt_cv_path_NM+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -n "$NM"; then
4456   # Let the user override the test.
4457   lt_cv_path_NM="$NM"
4458 else
4459   lt_nm_to_check="${ac_tool_prefix}nm"
4460   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4461     lt_nm_to_check="$lt_nm_to_check nm"
4462   fi
4463   for lt_tmp_nm in $lt_nm_to_check; do
4464     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4465     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4466       IFS="$lt_save_ifs"
4467       test -z "$ac_dir" && ac_dir=.
4468       tmp_nm="$ac_dir/$lt_tmp_nm"
4469       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4470         # Check to see if the nm accepts a BSD-compat flag.
4471         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4472         #   nm: unknown option "B" ignored
4473         # Tru64's nm complains that /dev/null is an invalid object file
4474         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4475         */dev/null* | *'Invalid file or object type'*)
4476           lt_cv_path_NM="$tmp_nm -B"
4477           break
4478           ;;
4479         *)
4480           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4481           */dev/null*)
4482             lt_cv_path_NM="$tmp_nm -p"
4483             break
4484             ;;
4485           *)
4486             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4487             continue # so that we can try to find one that supports BSD flags
4488             ;;
4489           esac
4490           ;;
4491         esac
4492       fi
4493     done
4494     IFS="$lt_save_ifs"
4495   done
4496   : ${lt_cv_path_NM=no}
4497 fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4500 $as_echo "$lt_cv_path_NM" >&6; }
4501 if test "$lt_cv_path_NM" != "no"; then
4502   NM="$lt_cv_path_NM"
4503 else
4504   # Didn't find any BSD compatible name lister, look for dumpbin.
4505   if test -n "$DUMPBIN"; then :
4506     # Let the user override the test.
4507   else
4508     if test -n "$ac_tool_prefix"; then
4509   for ac_prog in dumpbin "link -dump"
4510   do
4511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_DUMPBIN+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if test -n "$DUMPBIN"; then
4519   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526     for ac_exec_ext in '' $ac_executable_extensions; do
4527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533   done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 DUMPBIN=$ac_cv_prog_DUMPBIN
4539 if test -n "$DUMPBIN"; then
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4541 $as_echo "$DUMPBIN" >&6; }
4542 else
4543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548     test -n "$DUMPBIN" && break
4549   done
4550 fi
4551 if test -z "$DUMPBIN"; then
4552   ac_ct_DUMPBIN=$DUMPBIN
4553   for ac_prog in dumpbin "link -dump"
4554 do
4555   # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   if test -n "$ac_ct_DUMPBIN"; then
4563   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568   IFS=$as_save_IFS
4569   test -z "$as_dir" && as_dir=.
4570     for ac_exec_ext in '' $ac_executable_extensions; do
4571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574     break 2
4575   fi
4576 done
4577   done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4583 if test -n "$ac_ct_DUMPBIN"; then
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4585 $as_echo "$ac_ct_DUMPBIN" >&6; }
4586 else
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592   test -n "$ac_ct_DUMPBIN" && break
4593 done
4594
4595   if test "x$ac_ct_DUMPBIN" = x; then
4596     DUMPBIN=":"
4597   else
4598     case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604     DUMPBIN=$ac_ct_DUMPBIN
4605   fi
4606 fi
4607
4608     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4609     *COFF*)
4610       DUMPBIN="$DUMPBIN -symbols"
4611       ;;
4612     *)
4613       DUMPBIN=:
4614       ;;
4615     esac
4616   fi
4617
4618   if test "$DUMPBIN" != ":"; then
4619     NM="$DUMPBIN"
4620   fi
4621 fi
4622 test -z "$NM" && NM=nm
4623
4624
4625
4626
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4630 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4631 if ${lt_cv_nm_interface+:} false; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   lt_cv_nm_interface="BSD nm"
4635   echo "int some_variable = 0;" > conftest.$ac_ext
4636   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4637   (eval "$ac_compile" 2>conftest.err)
4638   cat conftest.err >&5
4639   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4640   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4641   cat conftest.err >&5
4642   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4643   cat conftest.out >&5
4644   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4645     lt_cv_nm_interface="MS dumpbin"
4646   fi
4647   rm -f conftest*
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4650 $as_echo "$lt_cv_nm_interface" >&6; }
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4653 $as_echo_n "checking whether ln -s works... " >&6; }
4654 LN_S=$as_ln_s
4655 if test "$LN_S" = "ln -s"; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 $as_echo "yes" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4660 $as_echo "no, using $LN_S" >&6; }
4661 fi
4662
4663 # find the maximum length of command line arguments
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4665 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4666 if ${lt_cv_sys_max_cmd_len+:} false; then :
4667   $as_echo_n "(cached) " >&6
4668 else
4669     i=0
4670   teststring="ABCD"
4671
4672   case $build_os in
4673   msdosdjgpp*)
4674     # On DJGPP, this test can blow up pretty badly due to problems in libc
4675     # (any single argument exceeding 2000 bytes causes a buffer overrun
4676     # during glob expansion).  Even if it were fixed, the result of this
4677     # check would be larger than it should be.
4678     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4679     ;;
4680
4681   gnu*)
4682     # Under GNU Hurd, this test is not required because there is
4683     # no limit to the length of command line arguments.
4684     # Libtool will interpret -1 as no limit whatsoever
4685     lt_cv_sys_max_cmd_len=-1;
4686     ;;
4687
4688   cygwin* | mingw* | cegcc*)
4689     # On Win9x/ME, this test blows up -- it succeeds, but takes
4690     # about 5 minutes as the teststring grows exponentially.
4691     # Worse, since 9x/ME are not pre-emptively multitasking,
4692     # you end up with a "frozen" computer, even though with patience
4693     # the test eventually succeeds (with a max line length of 256k).
4694     # Instead, let's just punt: use the minimum linelength reported by
4695     # all of the supported platforms: 8192 (on NT/2K/XP).
4696     lt_cv_sys_max_cmd_len=8192;
4697     ;;
4698
4699   mint*)
4700     # On MiNT this can take a long time and run out of memory.
4701     lt_cv_sys_max_cmd_len=8192;
4702     ;;
4703
4704   amigaos*)
4705     # On AmigaOS with pdksh, this test takes hours, literally.
4706     # So we just punt and use a minimum line length of 8192.
4707     lt_cv_sys_max_cmd_len=8192;
4708     ;;
4709
4710   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4711     # This has been around since 386BSD, at least.  Likely further.
4712     if test -x /sbin/sysctl; then
4713       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4714     elif test -x /usr/sbin/sysctl; then
4715       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4716     else
4717       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4718     fi
4719     # And add a safety zone
4720     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4721     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4722     ;;
4723
4724   interix*)
4725     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4726     lt_cv_sys_max_cmd_len=196608
4727     ;;
4728
4729   os2*)
4730     # The test takes a long time on OS/2.
4731     lt_cv_sys_max_cmd_len=8192
4732     ;;
4733
4734   osf*)
4735     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4736     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4737     # nice to cause kernel panics so lets avoid the loop below.
4738     # First set a reasonable default.
4739     lt_cv_sys_max_cmd_len=16384
4740     #
4741     if test -x /sbin/sysconfig; then
4742       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4743         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4744       esac
4745     fi
4746     ;;
4747   sco3.2v5*)
4748     lt_cv_sys_max_cmd_len=102400
4749     ;;
4750   sysv5* | sco5v6* | sysv4.2uw2*)
4751     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4752     if test -n "$kargmax"; then
4753       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4754     else
4755       lt_cv_sys_max_cmd_len=32768
4756     fi
4757     ;;
4758   *)
4759     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4760     if test -n "$lt_cv_sys_max_cmd_len"; then
4761       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4762       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4763     else
4764       # Make teststring a little bigger before we do anything with it.
4765       # a 1K string should be a reasonable start.
4766       for i in 1 2 3 4 5 6 7 8 ; do
4767         teststring=$teststring$teststring
4768       done
4769       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4770       # If test is not a shell built-in, we'll probably end up computing a
4771       # maximum length that is only half of the actual maximum length, but
4772       # we can't tell.
4773       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4774                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4775               test $i != 17 # 1/2 MB should be enough
4776       do
4777         i=`expr $i + 1`
4778         teststring=$teststring$teststring
4779       done
4780       # Only check the string length outside the loop.
4781       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4782       teststring=
4783       # Add a significant safety factor because C++ compilers can tack on
4784       # massive amounts of additional arguments before passing them to the
4785       # linker.  It appears as though 1/2 is a usable value.
4786       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4787     fi
4788     ;;
4789   esac
4790
4791 fi
4792
4793 if test -n $lt_cv_sys_max_cmd_len ; then
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4795 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4796 else
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4798 $as_echo "none" >&6; }
4799 fi
4800 max_cmd_len=$lt_cv_sys_max_cmd_len
4801
4802
4803
4804
4805
4806
4807 : ${CP="cp -f"}
4808 : ${MV="mv -f"}
4809 : ${RM="rm -f"}
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4812 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4813 # Try some XSI features
4814 xsi_shell=no
4815 ( _lt_dummy="a/b/c"
4816   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4817       = c,a/b,b/c, \
4818     && eval 'test $(( 1 + 1 )) -eq 2 \
4819     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4820   && xsi_shell=yes
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4822 $as_echo "$xsi_shell" >&6; }
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4826 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4827 lt_shell_append=no
4828 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4829     >/dev/null 2>&1 \
4830   && lt_shell_append=yes
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4832 $as_echo "$lt_shell_append" >&6; }
4833
4834
4835 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4836   lt_unset=unset
4837 else
4838   lt_unset=false
4839 fi
4840
4841
4842
4843
4844
4845 # test EBCDIC or ASCII
4846 case `echo X|tr X '\101'` in
4847  A) # ASCII based system
4848     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4849   lt_SP2NL='tr \040 \012'
4850   lt_NL2SP='tr \015\012 \040\040'
4851   ;;
4852  *) # EBCDIC based system
4853   lt_SP2NL='tr \100 \n'
4854   lt_NL2SP='tr \r\n \100\100'
4855   ;;
4856 esac
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4867 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4868 if ${lt_cv_to_host_file_cmd+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   case $host in
4872   *-*-mingw* )
4873     case $build in
4874       *-*-mingw* ) # actually msys
4875         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4876         ;;
4877       *-*-cygwin* )
4878         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4879         ;;
4880       * ) # otherwise, assume *nix
4881         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4882         ;;
4883     esac
4884     ;;
4885   *-*-cygwin* )
4886     case $build in
4887       *-*-mingw* ) # actually msys
4888         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4889         ;;
4890       *-*-cygwin* )
4891         lt_cv_to_host_file_cmd=func_convert_file_noop
4892         ;;
4893       * ) # otherwise, assume *nix
4894         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4895         ;;
4896     esac
4897     ;;
4898   * ) # unhandled hosts (and "normal" native builds)
4899     lt_cv_to_host_file_cmd=func_convert_file_noop
4900     ;;
4901 esac
4902
4903 fi
4904
4905 to_host_file_cmd=$lt_cv_to_host_file_cmd
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4907 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4908
4909
4910
4911
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4914 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4915 if ${lt_cv_to_tool_file_cmd+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   #assume ordinary cross tools, or native build.
4919 lt_cv_to_tool_file_cmd=func_convert_file_noop
4920 case $host in
4921   *-*-mingw* )
4922     case $build in
4923       *-*-mingw* ) # actually msys
4924         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4925         ;;
4926     esac
4927     ;;
4928 esac
4929
4930 fi
4931
4932 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4934 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4935
4936
4937
4938
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4941 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4942 if ${lt_cv_ld_reload_flag+:} false; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   lt_cv_ld_reload_flag='-r'
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4948 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4949 reload_flag=$lt_cv_ld_reload_flag
4950 case $reload_flag in
4951 "" | " "*) ;;
4952 *) reload_flag=" $reload_flag" ;;
4953 esac
4954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4955 case $host_os in
4956   cygwin* | mingw* | pw32* | cegcc*)
4957     if test "$GCC" != yes; then
4958       reload_cmds=false
4959     fi
4960     ;;
4961   darwin*)
4962     if test "$GCC" = yes; then
4963       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4964     else
4965       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4966     fi
4967     ;;
4968 esac
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 if test -n "$ac_tool_prefix"; then
4979   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_OBJDUMP+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   if test -n "$OBJDUMP"; then
4987   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994     for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001   done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 OBJDUMP=$ac_cv_prog_OBJDUMP
5007 if test -n "$OBJDUMP"; then
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5009 $as_echo "$OBJDUMP" >&6; }
5010 else
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015
5016 fi
5017 if test -z "$ac_cv_prog_OBJDUMP"; then
5018   ac_ct_OBJDUMP=$OBJDUMP
5019   # Extract the first word of "objdump", so it can be a program name with args.
5020 set dummy objdump; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -n "$ac_ct_OBJDUMP"; then
5027   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041   done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5047 if test -n "$ac_ct_OBJDUMP"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5049 $as_echo "$ac_ct_OBJDUMP" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055   if test "x$ac_ct_OBJDUMP" = x; then
5056     OBJDUMP="false"
5057   else
5058     case $cross_compiling:$ac_tool_warned in
5059 yes:)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5063 esac
5064     OBJDUMP=$ac_ct_OBJDUMP
5065   fi
5066 else
5067   OBJDUMP="$ac_cv_prog_OBJDUMP"
5068 fi
5069
5070 test -z "$OBJDUMP" && OBJDUMP=objdump
5071
5072
5073
5074
5075
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5078 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5079 if ${lt_cv_deplibs_check_method+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   lt_cv_file_magic_cmd='$MAGIC_CMD'
5083 lt_cv_file_magic_test_file=
5084 lt_cv_deplibs_check_method='unknown'
5085 # Need to set the preceding variable on all platforms that support
5086 # interlibrary dependencies.
5087 # 'none' -- dependencies not supported.
5088 # `unknown' -- same as none, but documents that we really don't know.
5089 # 'pass_all' -- all dependencies passed with no checks.
5090 # 'test_compile' -- check by making test program.
5091 # 'file_magic [[regex]]' -- check by looking for files in library path
5092 # which responds to the $file_magic_cmd with a given extended regex.
5093 # If you have `file' or equivalent on your system and you're not sure
5094 # whether `pass_all' will *always* work, you probably want this one.
5095
5096 case $host_os in
5097 aix[4-9]*)
5098   lt_cv_deplibs_check_method=pass_all
5099   ;;
5100
5101 beos*)
5102   lt_cv_deplibs_check_method=pass_all
5103   ;;
5104
5105 bsdi[45]*)
5106   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5107   lt_cv_file_magic_cmd='/usr/bin/file -L'
5108   lt_cv_file_magic_test_file=/shlib/libc.so
5109   ;;
5110
5111 cygwin*)
5112   # func_win32_libid is a shell function defined in ltmain.sh
5113   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5114   lt_cv_file_magic_cmd='func_win32_libid'
5115   ;;
5116
5117 mingw* | pw32*)
5118   # Base MSYS/MinGW do not provide the 'file' command needed by
5119   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5120   # unless we find 'file', for example because we are cross-compiling.
5121   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5122   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5123     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5124     lt_cv_file_magic_cmd='func_win32_libid'
5125   else
5126     # Keep this pattern in sync with the one in func_win32_libid.
5127     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5128     lt_cv_file_magic_cmd='$OBJDUMP -f'
5129   fi
5130   ;;
5131
5132 cegcc*)
5133   # use the weaker test based on 'objdump'. See mingw*.
5134   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5135   lt_cv_file_magic_cmd='$OBJDUMP -f'
5136   ;;
5137
5138 darwin* | rhapsody*)
5139   lt_cv_deplibs_check_method=pass_all
5140   ;;
5141
5142 freebsd* | dragonfly*)
5143   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5144     case $host_cpu in
5145     i*86 )
5146       # Not sure whether the presence of OpenBSD here was a mistake.
5147       # Let's accept both of them until this is cleared up.
5148       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5149       lt_cv_file_magic_cmd=/usr/bin/file
5150       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5151       ;;
5152     esac
5153   else
5154     lt_cv_deplibs_check_method=pass_all
5155   fi
5156   ;;
5157
5158 gnu*)
5159   lt_cv_deplibs_check_method=pass_all
5160   ;;
5161
5162 haiku*)
5163   lt_cv_deplibs_check_method=pass_all
5164   ;;
5165
5166 hpux10.20* | hpux11*)
5167   lt_cv_file_magic_cmd=/usr/bin/file
5168   case $host_cpu in
5169   ia64*)
5170     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5171     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5172     ;;
5173   hppa*64*)
5174     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]'
5175     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5176     ;;
5177   *)
5178     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5179     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5180     ;;
5181   esac
5182   ;;
5183
5184 interix[3-9]*)
5185   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5186   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5187   ;;
5188
5189 irix5* | irix6* | nonstopux*)
5190   case $LD in
5191   *-32|*"-32 ") libmagic=32-bit;;
5192   *-n32|*"-n32 ") libmagic=N32;;
5193   *-64|*"-64 ") libmagic=64-bit;;
5194   *) libmagic=never-match;;
5195   esac
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 # This must be glibc/ELF.
5200 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203
5204 netbsd* | netbsdelf*-gnu)
5205   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5206     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5207   else
5208     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5209   fi
5210   ;;
5211
5212 newos6*)
5213   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5214   lt_cv_file_magic_cmd=/usr/bin/file
5215   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5216   ;;
5217
5218 *nto* | *qnx*)
5219   lt_cv_deplibs_check_method=pass_all
5220   ;;
5221
5222 openbsd*)
5223   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5224     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5225   else
5226     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5227   fi
5228   ;;
5229
5230 osf3* | osf4* | osf5*)
5231   lt_cv_deplibs_check_method=pass_all
5232   ;;
5233
5234 rdos*)
5235   lt_cv_deplibs_check_method=pass_all
5236   ;;
5237
5238 solaris*)
5239   lt_cv_deplibs_check_method=pass_all
5240   ;;
5241
5242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5243   lt_cv_deplibs_check_method=pass_all
5244   ;;
5245
5246 sysv4 | sysv4.3*)
5247   case $host_vendor in
5248   motorola)
5249     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]'
5250     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5251     ;;
5252   ncr)
5253     lt_cv_deplibs_check_method=pass_all
5254     ;;
5255   sequent)
5256     lt_cv_file_magic_cmd='/bin/file'
5257     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5258     ;;
5259   sni)
5260     lt_cv_file_magic_cmd='/bin/file'
5261     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5262     lt_cv_file_magic_test_file=/lib/libc.so
5263     ;;
5264   siemens)
5265     lt_cv_deplibs_check_method=pass_all
5266     ;;
5267   pc)
5268     lt_cv_deplibs_check_method=pass_all
5269     ;;
5270   esac
5271   ;;
5272
5273 tpf*)
5274   lt_cv_deplibs_check_method=pass_all
5275   ;;
5276 esac
5277
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5280 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5281
5282 file_magic_glob=
5283 want_nocaseglob=no
5284 if test "$build" = "$host"; then
5285   case $host_os in
5286   mingw* | pw32*)
5287     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5288       want_nocaseglob=yes
5289     else
5290       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5291     fi
5292     ;;
5293   esac
5294 fi
5295
5296 file_magic_cmd=$lt_cv_file_magic_cmd
5297 deplibs_check_method=$lt_cv_deplibs_check_method
5298 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321 if test -n "$ac_tool_prefix"; then
5322   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5323 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if ${ac_cv_prog_DLLTOOL+:} false; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   if test -n "$DLLTOOL"; then
5330   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335   IFS=$as_save_IFS
5336   test -z "$as_dir" && as_dir=.
5337     for ac_exec_ext in '' $ac_executable_extensions; do
5338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341     break 2
5342   fi
5343 done
5344   done
5345 IFS=$as_save_IFS
5346
5347 fi
5348 fi
5349 DLLTOOL=$ac_cv_prog_DLLTOOL
5350 if test -n "$DLLTOOL"; then
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5352 $as_echo "$DLLTOOL" >&6; }
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 fi
5357
5358
5359 fi
5360 if test -z "$ac_cv_prog_DLLTOOL"; then
5361   ac_ct_DLLTOOL=$DLLTOOL
5362   # Extract the first word of "dlltool", so it can be a program name with args.
5363 set dummy dlltool; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   if test -n "$ac_ct_DLLTOOL"; then
5370   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377     for ac_exec_ext in '' $ac_executable_extensions; do
5378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384   done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5390 if test -n "$ac_ct_DLLTOOL"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5392 $as_echo "$ac_ct_DLLTOOL" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398   if test "x$ac_ct_DLLTOOL" = x; then
5399     DLLTOOL="false"
5400   else
5401     case $cross_compiling:$ac_tool_warned in
5402 yes:)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405 ac_tool_warned=yes ;;
5406 esac
5407     DLLTOOL=$ac_ct_DLLTOOL
5408   fi
5409 else
5410   DLLTOOL="$ac_cv_prog_DLLTOOL"
5411 fi
5412
5413 test -z "$DLLTOOL" && DLLTOOL=dlltool
5414
5415
5416
5417
5418
5419
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5422 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5423 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   lt_cv_sharedlib_from_linklib_cmd='unknown'
5427
5428 case $host_os in
5429 cygwin* | mingw* | pw32* | cegcc*)
5430   # two different shell functions defined in ltmain.sh
5431   # decide which to use based on capabilities of $DLLTOOL
5432   case `$DLLTOOL --help 2>&1` in
5433   *--identify-strict*)
5434     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5435     ;;
5436   *)
5437     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5438     ;;
5439   esac
5440   ;;
5441 *)
5442   # fallback: assume linklib IS sharedlib
5443   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5444   ;;
5445 esac
5446
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5449 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5450 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5451 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5452
5453
5454
5455
5456
5457
5458
5459
5460 if test -n "$ac_tool_prefix"; then
5461   for ac_prog in ar
5462   do
5463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_AR+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   if test -n "$AR"; then
5471   ac_cv_prog_AR="$AR" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485   done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 AR=$ac_cv_prog_AR
5491 if test -n "$AR"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5493 $as_echo "$AR" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499
5500     test -n "$AR" && break
5501   done
5502 fi
5503 if test -z "$AR"; then
5504   ac_ct_AR=$AR
5505   for ac_prog in ar
5506 do
5507   # Extract the first word of "$ac_prog", so it can be a program name with args.
5508 set dummy $ac_prog; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   if test -n "$ac_ct_AR"; then
5515   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524     ac_cv_prog_ac_ct_AR="$ac_prog"
5525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529   done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5535 if test -n "$ac_ct_AR"; then
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5537 $as_echo "$ac_ct_AR" >&6; }
5538 else
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544   test -n "$ac_ct_AR" && break
5545 done
5546
5547   if test "x$ac_ct_AR" = x; then
5548     AR="false"
5549   else
5550     case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5555 esac
5556     AR=$ac_ct_AR
5557   fi
5558 fi
5559
5560 : ${AR=ar}
5561 : ${AR_FLAGS=cru}
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5574 $as_echo_n "checking for archiver @FILE support... " >&6; }
5575 if ${lt_cv_ar_at_file+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   lt_cv_ar_at_file=no
5579    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h.  */
5581
5582 int
5583 main ()
5584 {
5585
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591   echo conftest.$ac_objext > conftest.lst
5592       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5593       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5594   (eval $lt_ar_try) 2>&5
5595   ac_status=$?
5596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5597   test $ac_status = 0; }
5598       if test "$ac_status" -eq 0; then
5599         # Ensure the archiver fails upon bogus file names.
5600         rm -f conftest.$ac_objext libconftest.a
5601         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5602   (eval $lt_ar_try) 2>&5
5603   ac_status=$?
5604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605   test $ac_status = 0; }
5606         if test "$ac_status" -ne 0; then
5607           lt_cv_ar_at_file=@
5608         fi
5609       fi
5610       rm -f conftest.* libconftest.a
5611
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5617 $as_echo "$lt_cv_ar_at_file" >&6; }
5618
5619 if test "x$lt_cv_ar_at_file" = xno; then
5620   archiver_list_spec=
5621 else
5622   archiver_list_spec=$lt_cv_ar_at_file
5623 fi
5624
5625
5626
5627
5628
5629
5630
5631 if test -n "$ac_tool_prefix"; then
5632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5633 set dummy ${ac_tool_prefix}strip; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_STRIP+:} false; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   if test -n "$STRIP"; then
5640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654   done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 STRIP=$ac_cv_prog_STRIP
5660 if test -n "$STRIP"; then
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5662 $as_echo "$STRIP" >&6; }
5663 else
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669 fi
5670 if test -z "$ac_cv_prog_STRIP"; then
5671   ac_ct_STRIP=$STRIP
5672   # Extract the first word of "strip", so it can be a program name with args.
5673 set dummy strip; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5677   $as_echo_n "(cached) " >&6
5678 else
5679   if test -n "$ac_ct_STRIP"; then
5680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687     for ac_exec_ext in '' $ac_executable_extensions; do
5688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689     ac_cv_prog_ac_ct_STRIP="strip"
5690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694   done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5700 if test -n "$ac_ct_STRIP"; then
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5702 $as_echo "$ac_ct_STRIP" >&6; }
5703 else
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5706 fi
5707
5708   if test "x$ac_ct_STRIP" = x; then
5709     STRIP=":"
5710   else
5711     case $cross_compiling:$ac_tool_warned in
5712 yes:)
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715 ac_tool_warned=yes ;;
5716 esac
5717     STRIP=$ac_ct_STRIP
5718   fi
5719 else
5720   STRIP="$ac_cv_prog_STRIP"
5721 fi
5722
5723 test -z "$STRIP" && STRIP=:
5724
5725
5726
5727
5728
5729
5730 if test -n "$ac_tool_prefix"; then
5731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_RANLIB+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   if test -n "$RANLIB"; then
5739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753   done
5754 IFS=$as_save_IFS
5755
5756 fi
5757 fi
5758 RANLIB=$ac_cv_prog_RANLIB
5759 if test -n "$RANLIB"; then
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5761 $as_echo "$RANLIB" >&6; }
5762 else
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5765 fi
5766
5767
5768 fi
5769 if test -z "$ac_cv_prog_RANLIB"; then
5770   ac_ct_RANLIB=$RANLIB
5771   # Extract the first word of "ranlib", so it can be a program name with args.
5772 set dummy ranlib; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   if test -n "$ac_ct_RANLIB"; then
5779   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786     for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     ac_cv_prog_ac_ct_RANLIB="ranlib"
5789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793   done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5799 if test -n "$ac_ct_RANLIB"; then
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5801 $as_echo "$ac_ct_RANLIB" >&6; }
5802 else
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 fi
5806
5807   if test "x$ac_ct_RANLIB" = x; then
5808     RANLIB=":"
5809   else
5810     case $cross_compiling:$ac_tool_warned in
5811 yes:)
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814 ac_tool_warned=yes ;;
5815 esac
5816     RANLIB=$ac_ct_RANLIB
5817   fi
5818 else
5819   RANLIB="$ac_cv_prog_RANLIB"
5820 fi
5821
5822 test -z "$RANLIB" && RANLIB=:
5823
5824
5825
5826
5827
5828
5829 # Determine commands to create old-style static archives.
5830 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5831 old_postinstall_cmds='chmod 644 $oldlib'
5832 old_postuninstall_cmds=
5833
5834 if test -n "$RANLIB"; then
5835   case $host_os in
5836   openbsd*)
5837     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5838     ;;
5839   *)
5840     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5841     ;;
5842   esac
5843   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5844 fi
5845
5846 case $host_os in
5847   darwin*)
5848     lock_old_archive_extraction=yes ;;
5849   *)
5850     lock_old_archive_extraction=no ;;
5851 esac
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 # If no C compiler was specified, use CC.
5892 LTCC=${LTCC-"$CC"}
5893
5894 # If no C compiler flags were specified, use CFLAGS.
5895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5896
5897 # Allow CC to be a program name with arguments.
5898 compiler=$CC
5899
5900
5901 # Check for command to grab the raw symbol name followed by C symbol from nm.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5903 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5904 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907
5908 # These are sane defaults that work on at least a few old systems.
5909 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5910
5911 # Character class describing NM global symbol codes.
5912 symcode='[BCDEGRST]'
5913
5914 # Regexp to match symbols that can be accessed directly from C.
5915 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5916
5917 # Define system-specific variables.
5918 case $host_os in
5919 aix*)
5920   symcode='[BCDT]'
5921   ;;
5922 cygwin* | mingw* | pw32* | cegcc*)
5923   symcode='[ABCDGISTW]'
5924   ;;
5925 hpux*)
5926   if test "$host_cpu" = ia64; then
5927     symcode='[ABCDEGRST]'
5928   fi
5929   ;;
5930 irix* | nonstopux*)
5931   symcode='[BCDEGRST]'
5932   ;;
5933 osf*)
5934   symcode='[BCDEGQRST]'
5935   ;;
5936 solaris*)
5937   symcode='[BDRT]'
5938   ;;
5939 sco3.2v5*)
5940   symcode='[DT]'
5941   ;;
5942 sysv4.2uw2*)
5943   symcode='[DT]'
5944   ;;
5945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5946   symcode='[ABDT]'
5947   ;;
5948 sysv4)
5949   symcode='[DFNSTU]'
5950   ;;
5951 esac
5952
5953 # If we're using GNU nm, then use its standard symbol codes.
5954 case `$NM -V 2>&1` in
5955 *GNU* | *'with BFD'*)
5956   symcode='[ABCDGIRSTW]' ;;
5957 esac
5958
5959 # Transform an extracted symbol line into a proper C declaration.
5960 # Some systems (esp. on ia64) link data and code symbols differently,
5961 # so use this general approach.
5962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5963
5964 # Transform an extracted symbol line into symbol name and symbol address
5965 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5966 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'"
5967
5968 # Handle CRLF in mingw tool chain
5969 opt_cr=
5970 case $build_os in
5971 mingw*)
5972   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5973   ;;
5974 esac
5975
5976 # Try without a prefix underscore, then with it.
5977 for ac_symprfx in "" "_"; do
5978
5979   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5980   symxfrm="\\1 $ac_symprfx\\2 \\2"
5981
5982   # Write the raw and C identifiers.
5983   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5984     # Fake it for dumpbin and say T for any non-static function
5985     # and D for any global variable.
5986     # Also find C++ and __fastcall symbols from MSVC++,
5987     # which start with @ or ?.
5988     lt_cv_sys_global_symbol_pipe="$AWK '"\
5989 "     {last_section=section; section=\$ 3};"\
5990 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5991 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5992 "     \$ 0!~/External *\|/{next};"\
5993 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5994 "     {if(hide[section]) next};"\
5995 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5996 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5997 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5998 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5999 "     ' prfx=^$ac_symprfx"
6000   else
6001     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6002   fi
6003   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6004
6005   # Check to see that the pipe works correctly.
6006   pipe_works=no
6007
6008   rm -f conftest*
6009   cat > conftest.$ac_ext <<_LT_EOF
6010 #ifdef __cplusplus
6011 extern "C" {
6012 #endif
6013 char nm_test_var;
6014 void nm_test_func(void);
6015 void nm_test_func(void){}
6016 #ifdef __cplusplus
6017 }
6018 #endif
6019 int main(){nm_test_var='a';nm_test_func();return(0);}
6020 _LT_EOF
6021
6022   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6023   (eval $ac_compile) 2>&5
6024   ac_status=$?
6025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026   test $ac_status = 0; }; then
6027     # Now try to grab the symbols.
6028     nlist=conftest.nm
6029     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6030   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6031   ac_status=$?
6032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6033   test $ac_status = 0; } && test -s "$nlist"; then
6034       # Try sorting and uniquifying the output.
6035       if sort "$nlist" | uniq > "$nlist"T; then
6036         mv -f "$nlist"T "$nlist"
6037       else
6038         rm -f "$nlist"T
6039       fi
6040
6041       # Make sure that we snagged all the symbols we need.
6042       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6043         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6044           cat <<_LT_EOF > conftest.$ac_ext
6045 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6046 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6047 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6048    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6049 # define LT_DLSYM_CONST
6050 #elif defined(__osf__)
6051 /* This system does not cope well with relocations in const data.  */
6052 # define LT_DLSYM_CONST
6053 #else
6054 # define LT_DLSYM_CONST const
6055 #endif
6056
6057 #ifdef __cplusplus
6058 extern "C" {
6059 #endif
6060
6061 _LT_EOF
6062           # Now generate the symbol file.
6063           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6064
6065           cat <<_LT_EOF >> conftest.$ac_ext
6066
6067 /* The mapping between symbol names and symbols.  */
6068 LT_DLSYM_CONST struct {
6069   const char *name;
6070   void       *address;
6071 }
6072 lt__PROGRAM__LTX_preloaded_symbols[] =
6073 {
6074   { "@PROGRAM@", (void *) 0 },
6075 _LT_EOF
6076           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6077           cat <<\_LT_EOF >> conftest.$ac_ext
6078   {0, (void *) 0}
6079 };
6080
6081 /* This works around a problem in FreeBSD linker */
6082 #ifdef FREEBSD_WORKAROUND
6083 static const void *lt_preloaded_setup() {
6084   return lt__PROGRAM__LTX_preloaded_symbols;
6085 }
6086 #endif
6087
6088 #ifdef __cplusplus
6089 }
6090 #endif
6091 _LT_EOF
6092           # Now try linking the two files.
6093           mv conftest.$ac_objext conftstm.$ac_objext
6094           lt_globsym_save_LIBS=$LIBS
6095           lt_globsym_save_CFLAGS=$CFLAGS
6096           LIBS="conftstm.$ac_objext"
6097           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6098           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6099   (eval $ac_link) 2>&5
6100   ac_status=$?
6101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6103             pipe_works=yes
6104           fi
6105           LIBS=$lt_globsym_save_LIBS
6106           CFLAGS=$lt_globsym_save_CFLAGS
6107         else
6108           echo "cannot find nm_test_func in $nlist" >&5
6109         fi
6110       else
6111         echo "cannot find nm_test_var in $nlist" >&5
6112       fi
6113     else
6114       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6115     fi
6116   else
6117     echo "$progname: failed program was:" >&5
6118     cat conftest.$ac_ext >&5
6119   fi
6120   rm -rf conftest* conftst*
6121
6122   # Do not use the global_symbol_pipe unless it works.
6123   if test "$pipe_works" = yes; then
6124     break
6125   else
6126     lt_cv_sys_global_symbol_pipe=
6127   fi
6128 done
6129
6130 fi
6131
6132 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6133   lt_cv_sys_global_symbol_to_cdecl=
6134 fi
6135 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6137 $as_echo "failed" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6140 $as_echo "ok" >&6; }
6141 fi
6142
6143 # Response file support.
6144 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6145   nm_file_list_spec='@'
6146 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6147   nm_file_list_spec='@'
6148 fi
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6177 $as_echo_n "checking for sysroot... " >&6; }
6178
6179 # Check whether --with-sysroot was given.
6180 if test "${with_sysroot+set}" = set; then :
6181   withval=$with_sysroot;
6182 else
6183   with_sysroot=no
6184 fi
6185
6186
6187 lt_sysroot=
6188 case ${with_sysroot} in #(
6189  yes)
6190    if test "$GCC" = yes; then
6191      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6192    fi
6193    ;; #(
6194  /*)
6195    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6196    ;; #(
6197  no|'')
6198    ;; #(
6199  *)
6200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6201 $as_echo "${with_sysroot}" >&6; }
6202    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6203    ;;
6204 esac
6205
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6207 $as_echo "${lt_sysroot:-no}" >&6; }
6208
6209
6210
6211
6212
6213 # Check whether --enable-libtool-lock was given.
6214 if test "${enable_libtool_lock+set}" = set; then :
6215   enableval=$enable_libtool_lock;
6216 fi
6217
6218 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6219
6220 # Some flags need to be propagated to the compiler or linker for good
6221 # libtool support.
6222 case $host in
6223 ia64-*-hpux*)
6224   # Find out which ABI we are using.
6225   echo 'int i;' > conftest.$ac_ext
6226   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6227   (eval $ac_compile) 2>&5
6228   ac_status=$?
6229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230   test $ac_status = 0; }; then
6231     case `/usr/bin/file conftest.$ac_objext` in
6232       *ELF-32*)
6233         HPUX_IA64_MODE="32"
6234         ;;
6235       *ELF-64*)
6236         HPUX_IA64_MODE="64"
6237         ;;
6238     esac
6239   fi
6240   rm -rf conftest*
6241   ;;
6242 *-*-irix6*)
6243   # Find out which ABI we are using.
6244   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6245   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6246   (eval $ac_compile) 2>&5
6247   ac_status=$?
6248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249   test $ac_status = 0; }; then
6250     if test "$lt_cv_prog_gnu_ld" = yes; then
6251       case `/usr/bin/file conftest.$ac_objext` in
6252         *32-bit*)
6253           LD="${LD-ld} -melf32bsmip"
6254           ;;
6255         *N32*)
6256           LD="${LD-ld} -melf32bmipn32"
6257           ;;
6258         *64-bit*)
6259           LD="${LD-ld} -melf64bmip"
6260         ;;
6261       esac
6262     else
6263       case `/usr/bin/file conftest.$ac_objext` in
6264         *32-bit*)
6265           LD="${LD-ld} -32"
6266           ;;
6267         *N32*)
6268           LD="${LD-ld} -n32"
6269           ;;
6270         *64-bit*)
6271           LD="${LD-ld} -64"
6272           ;;
6273       esac
6274     fi
6275   fi
6276   rm -rf conftest*
6277   ;;
6278
6279 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6280 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6281   # Find out which ABI we are using.
6282   echo 'int i;' > conftest.$ac_ext
6283   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6284   (eval $ac_compile) 2>&5
6285   ac_status=$?
6286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6287   test $ac_status = 0; }; then
6288     case `/usr/bin/file conftest.o` in
6289       *32-bit*)
6290         case $host in
6291           x86_64-*kfreebsd*-gnu)
6292             LD="${LD-ld} -m elf_i386_fbsd"
6293             ;;
6294           x86_64-*linux*)
6295             LD="${LD-ld} -m elf_i386"
6296             ;;
6297           ppc64-*linux*|powerpc64-*linux*)
6298             LD="${LD-ld} -m elf32ppclinux"
6299             ;;
6300           s390x-*linux*)
6301             LD="${LD-ld} -m elf_s390"
6302             ;;
6303           sparc64-*linux*)
6304             LD="${LD-ld} -m elf32_sparc"
6305             ;;
6306         esac
6307         ;;
6308       *64-bit*)
6309         case $host in
6310           x86_64-*kfreebsd*-gnu)
6311             LD="${LD-ld} -m elf_x86_64_fbsd"
6312             ;;
6313           x86_64-*linux*)
6314             LD="${LD-ld} -m elf_x86_64"
6315             ;;
6316           ppc*-*linux*|powerpc*-*linux*)
6317             LD="${LD-ld} -m elf64ppc"
6318             ;;
6319           s390*-*linux*|s390*-*tpf*)
6320             LD="${LD-ld} -m elf64_s390"
6321             ;;
6322           sparc*-*linux*)
6323             LD="${LD-ld} -m elf64_sparc"
6324             ;;
6325         esac
6326         ;;
6327     esac
6328   fi
6329   rm -rf conftest*
6330   ;;
6331
6332 *-*-sco3.2v5*)
6333   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6334   SAVE_CFLAGS="$CFLAGS"
6335   CFLAGS="$CFLAGS -belf"
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6337 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6338 if ${lt_cv_cc_needs_belf+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   ac_ext=c
6342 ac_cpp='$CPP $CPPFLAGS'
6343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346
6347      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h.  */
6349
6350 int
6351 main ()
6352 {
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 if ac_fn_c_try_link "$LINENO"; then :
6359   lt_cv_cc_needs_belf=yes
6360 else
6361   lt_cv_cc_needs_belf=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext \
6364     conftest$ac_exeext conftest.$ac_ext
6365      ac_ext=c
6366 ac_cpp='$CPP $CPPFLAGS'
6367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6370
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6373 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6374   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6375     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6376     CFLAGS="$SAVE_CFLAGS"
6377   fi
6378   ;;
6379 *-*solaris*)
6380   # Find out which ABI we are using.
6381   echo 'int i;' > conftest.$ac_ext
6382   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6383   (eval $ac_compile) 2>&5
6384   ac_status=$?
6385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386   test $ac_status = 0; }; then
6387     case `/usr/bin/file conftest.o` in
6388     *64-bit*)
6389       case $lt_cv_prog_gnu_ld in
6390       yes*)
6391         case $host in
6392         i?86-*-solaris*)
6393           LD="${LD-ld} -m elf_x86_64"
6394           ;;
6395         sparc*-*-solaris*)
6396           LD="${LD-ld} -m elf64_sparc"
6397           ;;
6398         esac
6399         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6400         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6401           LD="${LD-ld}_sol2"
6402         fi
6403         ;;
6404       *)
6405         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6406           LD="${LD-ld} -64"
6407         fi
6408         ;;
6409       esac
6410       ;;
6411     esac
6412   fi
6413   rm -rf conftest*
6414   ;;
6415 esac
6416
6417 need_locks="$enable_libtool_lock"
6418
6419 if test -n "$ac_tool_prefix"; then
6420   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}mt; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$MANIFEST_TOOL"; then
6428   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6448 if test -n "$MANIFEST_TOOL"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6450 $as_echo "$MANIFEST_TOOL" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456
6457 fi
6458 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6459   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6460   # Extract the first word of "mt", so it can be a program name with args.
6461 set dummy mt; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6465   $as_echo_n "(cached) " >&6
6466 else
6467   if test -n "$ac_ct_MANIFEST_TOOL"; then
6468   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475     for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482   done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6488 if test -n "$ac_ct_MANIFEST_TOOL"; then
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6490 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6491 else
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6497     MANIFEST_TOOL=":"
6498   else
6499     case $cross_compiling:$ac_tool_warned in
6500 yes:)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6506   fi
6507 else
6508   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6509 fi
6510
6511 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6513 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6514 if ${lt_cv_path_mainfest_tool+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   lt_cv_path_mainfest_tool=no
6518   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6519   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6520   cat conftest.err >&5
6521   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6522     lt_cv_path_mainfest_tool=yes
6523   fi
6524   rm -f conftest*
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6527 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6528 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6529   MANIFEST_TOOL=:
6530 fi
6531
6532
6533
6534
6535
6536
6537   case $host_os in
6538     rhapsody* | darwin*)
6539     if test -n "$ac_tool_prefix"; then
6540   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   if test -n "$DSYMUTIL"; then
6548   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6568 if test -n "$DSYMUTIL"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6570 $as_echo "$DSYMUTIL" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_DSYMUTIL"; then
6579   ac_ct_DSYMUTIL=$DSYMUTIL
6580   # Extract the first word of "dsymutil", so it can be a program name with args.
6581 set dummy dsymutil; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6585   $as_echo_n "(cached) " >&6
6586 else
6587   if test -n "$ac_ct_DSYMUTIL"; then
6588   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6608 if test -n "$ac_ct_DSYMUTIL"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6610 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616   if test "x$ac_ct_DSYMUTIL" = x; then
6617     DSYMUTIL=":"
6618   else
6619     case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625     DSYMUTIL=$ac_ct_DSYMUTIL
6626   fi
6627 else
6628   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6629 fi
6630
6631     if test -n "$ac_tool_prefix"; then
6632   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_NMEDIT+:} false; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   if test -n "$NMEDIT"; then
6640   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 NMEDIT=$ac_cv_prog_NMEDIT
6660 if test -n "$NMEDIT"; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6662 $as_echo "$NMEDIT" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_NMEDIT"; then
6671   ac_ct_NMEDIT=$NMEDIT
6672   # Extract the first word of "nmedit", so it can be a program name with args.
6673 set dummy nmedit; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test -n "$ac_ct_NMEDIT"; then
6680   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6700 if test -n "$ac_ct_NMEDIT"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6702 $as_echo "$ac_ct_NMEDIT" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708   if test "x$ac_ct_NMEDIT" = x; then
6709     NMEDIT=":"
6710   else
6711     case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717     NMEDIT=$ac_ct_NMEDIT
6718   fi
6719 else
6720   NMEDIT="$ac_cv_prog_NMEDIT"
6721 fi
6722
6723     if test -n "$ac_tool_prefix"; then
6724   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_LIPO+:} false; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731   if test -n "$LIPO"; then
6732   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739     for ac_exec_ext in '' $ac_executable_extensions; do
6740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746   done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 LIPO=$ac_cv_prog_LIPO
6752 if test -n "$LIPO"; then
6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6754 $as_echo "$LIPO" >&6; }
6755 else
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760
6761 fi
6762 if test -z "$ac_cv_prog_LIPO"; then
6763   ac_ct_LIPO=$LIPO
6764   # Extract the first word of "lipo", so it can be a program name with args.
6765 set dummy lipo; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6769   $as_echo_n "(cached) " >&6
6770 else
6771   if test -n "$ac_ct_LIPO"; then
6772   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779     for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_prog_ac_ct_LIPO="lipo"
6782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786   done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6792 if test -n "$ac_ct_LIPO"; then
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6794 $as_echo "$ac_ct_LIPO" >&6; }
6795 else
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798 fi
6799
6800   if test "x$ac_ct_LIPO" = x; then
6801     LIPO=":"
6802   else
6803     case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809     LIPO=$ac_ct_LIPO
6810   fi
6811 else
6812   LIPO="$ac_cv_prog_LIPO"
6813 fi
6814
6815     if test -n "$ac_tool_prefix"; then
6816   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}otool; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_OTOOL+:} false; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   if test -n "$OTOOL"; then
6824   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831     for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838   done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 OTOOL=$ac_cv_prog_OTOOL
6844 if test -n "$OTOOL"; then
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6846 $as_echo "$OTOOL" >&6; }
6847 else
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_OTOOL"; then
6855   ac_ct_OTOOL=$OTOOL
6856   # Extract the first word of "otool", so it can be a program name with args.
6857 set dummy otool; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   if test -n "$ac_ct_OTOOL"; then
6864   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871     for ac_exec_ext in '' $ac_executable_extensions; do
6872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873     ac_cv_prog_ac_ct_OTOOL="otool"
6874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878   done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6884 if test -n "$ac_ct_OTOOL"; then
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6886 $as_echo "$ac_ct_OTOOL" >&6; }
6887 else
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892   if test "x$ac_ct_OTOOL" = x; then
6893     OTOOL=":"
6894   else
6895     case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901     OTOOL=$ac_ct_OTOOL
6902   fi
6903 else
6904   OTOOL="$ac_cv_prog_OTOOL"
6905 fi
6906
6907     if test -n "$ac_tool_prefix"; then
6908   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_OTOOL64+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   if test -n "$OTOOL64"; then
6916   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923     for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930   done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 OTOOL64=$ac_cv_prog_OTOOL64
6936 if test -n "$OTOOL64"; then
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6938 $as_echo "$OTOOL64" >&6; }
6939 else
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_OTOOL64"; then
6947   ac_ct_OTOOL64=$OTOOL64
6948   # Extract the first word of "otool64", so it can be a program name with args.
6949 set dummy otool64; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   if test -n "$ac_ct_OTOOL64"; then
6956   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963     for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_prog_ac_ct_OTOOL64="otool64"
6966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970   done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6976 if test -n "$ac_ct_OTOOL64"; then
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6978 $as_echo "$ac_ct_OTOOL64" >&6; }
6979 else
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983
6984   if test "x$ac_ct_OTOOL64" = x; then
6985     OTOOL64=":"
6986   else
6987     case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993     OTOOL64=$ac_ct_OTOOL64
6994   fi
6995 else
6996   OTOOL64="$ac_cv_prog_OTOOL64"
6997 fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7026 $as_echo_n "checking for -single_module linker flag... " >&6; }
7027 if ${lt_cv_apple_cc_single_mod+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   lt_cv_apple_cc_single_mod=no
7031       if test -z "${LT_MULTI_MODULE}"; then
7032         # By default we will add the -single_module flag. You can override
7033         # by either setting the environment variable LT_MULTI_MODULE
7034         # non-empty at configure time, or by adding -multi_module to the
7035         # link flags.
7036         rm -rf libconftest.dylib*
7037         echo "int foo(void){return 1;}" > conftest.c
7038         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7039 -dynamiclib -Wl,-single_module conftest.c" >&5
7040         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7041           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7042         _lt_result=$?
7043         # If there is a non-empty error log, and "single_module"
7044         # appears in it, assume the flag caused a linker warning
7045         if test -s conftest.err && $GREP single_module conftest.err; then
7046           cat conftest.err >&5
7047         # Otherwise, if the output was created with a 0 exit code from
7048         # the compiler, it worked.
7049         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7050           lt_cv_apple_cc_single_mod=yes
7051         else
7052           cat conftest.err >&5
7053         fi
7054         rm -rf libconftest.dylib*
7055         rm -f conftest.*
7056       fi
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7059 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7060
7061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7062 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7063 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   lt_cv_ld_exported_symbols_list=no
7067       save_LDFLAGS=$LDFLAGS
7068       echo "_main" > conftest.sym
7069       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7070       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h.  */
7072
7073 int
7074 main ()
7075 {
7076
7077   ;
7078   return 0;
7079 }
7080 _ACEOF
7081 if ac_fn_c_try_link "$LINENO"; then :
7082   lt_cv_ld_exported_symbols_list=yes
7083 else
7084   lt_cv_ld_exported_symbols_list=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext \
7087     conftest$ac_exeext conftest.$ac_ext
7088         LDFLAGS="$save_LDFLAGS"
7089
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7092 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7093
7094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7095 $as_echo_n "checking for -force_load linker flag... " >&6; }
7096 if ${lt_cv_ld_force_load+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   lt_cv_ld_force_load=no
7100       cat > conftest.c << _LT_EOF
7101 int forced_loaded() { return 2;}
7102 _LT_EOF
7103       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7104       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7105       echo "$AR cru libconftest.a conftest.o" >&5
7106       $AR cru libconftest.a conftest.o 2>&5
7107       echo "$RANLIB libconftest.a" >&5
7108       $RANLIB libconftest.a 2>&5
7109       cat > conftest.c << _LT_EOF
7110 int main() { return 0;}
7111 _LT_EOF
7112       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7113       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7114       _lt_result=$?
7115       if test -s conftest.err && $GREP force_load conftest.err; then
7116         cat conftest.err >&5
7117       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7118         lt_cv_ld_force_load=yes
7119       else
7120         cat conftest.err >&5
7121       fi
7122         rm -f conftest.err libconftest.a conftest conftest.c
7123         rm -rf conftest.dSYM
7124
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7127 $as_echo "$lt_cv_ld_force_load" >&6; }
7128     case $host_os in
7129     rhapsody* | darwin1.[012])
7130       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7131     darwin1.*)
7132       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7133     darwin*) # darwin 5.x on
7134       # if running on 10.5 or later, the deployment target defaults
7135       # to the OS version, if on x86, and 10.4, the deployment
7136       # target defaults to 10.4. Don't you love it?
7137       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7138         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7139           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7140         10.[012]*)
7141           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7142         10.*)
7143           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7144       esac
7145     ;;
7146   esac
7147     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7148       _lt_dar_single_mod='$single_module'
7149     fi
7150     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7151       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7152     else
7153       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7154     fi
7155     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7156       _lt_dsymutil='~$DSYMUTIL $lib || :'
7157     else
7158       _lt_dsymutil=
7159     fi
7160     ;;
7161   esac
7162
7163 ac_ext=c
7164 ac_cpp='$CPP $CPPFLAGS'
7165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7169 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7170 # On Suns, sometimes $CPP names a directory.
7171 if test -n "$CPP" && test -d "$CPP"; then
7172   CPP=
7173 fi
7174 if test -z "$CPP"; then
7175   if ${ac_cv_prog_CPP+:} false; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178       # Double quotes because CPP needs to be expanded
7179     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7180     do
7181       ac_preproc_ok=false
7182 for ac_c_preproc_warn_flag in '' yes
7183 do
7184   # Use a header file that comes with gcc, so configuring glibc
7185   # with a fresh cross-compiler works.
7186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187   # <limits.h> exists even on freestanding compilers.
7188   # On the NeXT, cc -E runs the code through the compiler's parser,
7189   # not just through cpp. "Syntax error" is here to catch this case.
7190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h.  */
7192 #ifdef __STDC__
7193 # include <limits.h>
7194 #else
7195 # include <assert.h>
7196 #endif
7197                      Syntax error
7198 _ACEOF
7199 if ac_fn_c_try_cpp "$LINENO"; then :
7200
7201 else
7202   # Broken: fails on valid input.
7203 continue
7204 fi
7205 rm -f conftest.err conftest.i conftest.$ac_ext
7206
7207   # OK, works on sane cases.  Now check whether nonexistent headers
7208   # can be detected and how.
7209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h.  */
7211 #include <ac_nonexistent.h>
7212 _ACEOF
7213 if ac_fn_c_try_cpp "$LINENO"; then :
7214   # Broken: success on invalid input.
7215 continue
7216 else
7217   # Passes both tests.
7218 ac_preproc_ok=:
7219 break
7220 fi
7221 rm -f conftest.err conftest.i conftest.$ac_ext
7222
7223 done
7224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7225 rm -f conftest.i conftest.err conftest.$ac_ext
7226 if $ac_preproc_ok; then :
7227   break
7228 fi
7229
7230     done
7231     ac_cv_prog_CPP=$CPP
7232
7233 fi
7234   CPP=$ac_cv_prog_CPP
7235 else
7236   ac_cv_prog_CPP=$CPP
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7239 $as_echo "$CPP" >&6; }
7240 ac_preproc_ok=false
7241 for ac_c_preproc_warn_flag in '' yes
7242 do
7243   # Use a header file that comes with gcc, so configuring glibc
7244   # with a fresh cross-compiler works.
7245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246   # <limits.h> exists even on freestanding compilers.
7247   # On the NeXT, cc -E runs the code through the compiler's parser,
7248   # not just through cpp. "Syntax error" is here to catch this case.
7249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h.  */
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7256                      Syntax error
7257 _ACEOF
7258 if ac_fn_c_try_cpp "$LINENO"; then :
7259
7260 else
7261   # Broken: fails on valid input.
7262 continue
7263 fi
7264 rm -f conftest.err conftest.i conftest.$ac_ext
7265
7266   # OK, works on sane cases.  Now check whether nonexistent headers
7267   # can be detected and how.
7268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h.  */
7270 #include <ac_nonexistent.h>
7271 _ACEOF
7272 if ac_fn_c_try_cpp "$LINENO"; then :
7273   # Broken: success on invalid input.
7274 continue
7275 else
7276   # Passes both tests.
7277 ac_preproc_ok=:
7278 break
7279 fi
7280 rm -f conftest.err conftest.i conftest.$ac_ext
7281
7282 done
7283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7284 rm -f conftest.i conftest.err conftest.$ac_ext
7285 if $ac_preproc_ok; then :
7286
7287 else
7288   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7290 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7291 See \`config.log' for more details" "$LINENO" 5; }
7292 fi
7293
7294 ac_ext=c
7295 ac_cpp='$CPP $CPPFLAGS'
7296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7299
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7302 $as_echo_n "checking for ANSI C header files... " >&6; }
7303 if ${ac_cv_header_stdc+:} false; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h.  */
7308 #include <stdlib.h>
7309 #include <stdarg.h>
7310 #include <string.h>
7311 #include <float.h>
7312
7313 int
7314 main ()
7315 {
7316
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_c_try_compile "$LINENO"; then :
7322   ac_cv_header_stdc=yes
7323 else
7324   ac_cv_header_stdc=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327
7328 if test $ac_cv_header_stdc = yes; then
7329   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h.  */
7332 #include <string.h>
7333
7334 _ACEOF
7335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7336   $EGREP "memchr" >/dev/null 2>&1; then :
7337
7338 else
7339   ac_cv_header_stdc=no
7340 fi
7341 rm -f conftest*
7342
7343 fi
7344
7345 if test $ac_cv_header_stdc = yes; then
7346   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h.  */
7349 #include <stdlib.h>
7350
7351 _ACEOF
7352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7353   $EGREP "free" >/dev/null 2>&1; then :
7354
7355 else
7356   ac_cv_header_stdc=no
7357 fi
7358 rm -f conftest*
7359
7360 fi
7361
7362 if test $ac_cv_header_stdc = yes; then
7363   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7364   if test "$cross_compiling" = yes; then :
7365   :
7366 else
7367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h.  */
7369 #include <ctype.h>
7370 #include <stdlib.h>
7371 #if ((' ' & 0x0FF) == 0x020)
7372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7374 #else
7375 # define ISLOWER(c) \
7376                    (('a' <= (c) && (c) <= 'i') \
7377                      || ('j' <= (c) && (c) <= 'r') \
7378                      || ('s' <= (c) && (c) <= 'z'))
7379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7380 #endif
7381
7382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7383 int
7384 main ()
7385 {
7386   int i;
7387   for (i = 0; i < 256; i++)
7388     if (XOR (islower (i), ISLOWER (i))
7389         || toupper (i) != TOUPPER (i))
7390       return 2;
7391   return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_run "$LINENO"; then :
7395
7396 else
7397   ac_cv_header_stdc=no
7398 fi
7399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7400   conftest.$ac_objext conftest.beam conftest.$ac_ext
7401 fi
7402
7403 fi
7404 fi
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7406 $as_echo "$ac_cv_header_stdc" >&6; }
7407 if test $ac_cv_header_stdc = yes; then
7408
7409 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7410
7411 fi
7412
7413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7414 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7415                   inttypes.h stdint.h unistd.h
7416 do :
7417   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7418 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7419 "
7420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7421   cat >>confdefs.h <<_ACEOF
7422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423 _ACEOF
7424
7425 fi
7426
7427 done
7428
7429
7430 for ac_header in dlfcn.h
7431 do :
7432   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7433 "
7434 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7435   cat >>confdefs.h <<_ACEOF
7436 #define HAVE_DLFCN_H 1
7437 _ACEOF
7438
7439 fi
7440
7441 done
7442
7443
7444
7445
7446
7447 # Set options
7448 enable_win32_dll=yes
7449
7450 case $host in
7451 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7452   if test -n "$ac_tool_prefix"; then
7453   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}as; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_AS+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$AS"; then
7461   ac_cv_prog_AS="$AS" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_AS="${ac_tool_prefix}as"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 AS=$ac_cv_prog_AS
7481 if test -n "$AS"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7483 $as_echo "$AS" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_AS"; then
7492   ac_ct_AS=$AS
7493   # Extract the first word of "as", so it can be a program name with args.
7494 set dummy as; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$ac_ct_AS"; then
7501   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_prog_ac_ct_AS="as"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7521 if test -n "$ac_ct_AS"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7523 $as_echo "$ac_ct_AS" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529   if test "x$ac_ct_AS" = x; then
7530     AS="false"
7531   else
7532     case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7537 esac
7538     AS=$ac_ct_AS
7539   fi
7540 else
7541   AS="$ac_cv_prog_AS"
7542 fi
7543
7544   if test -n "$ac_tool_prefix"; then
7545   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_DLLTOOL+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$DLLTOOL"; then
7553   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 DLLTOOL=$ac_cv_prog_DLLTOOL
7573 if test -n "$DLLTOOL"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7575 $as_echo "$DLLTOOL" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_DLLTOOL"; then
7584   ac_ct_DLLTOOL=$DLLTOOL
7585   # Extract the first word of "dlltool", so it can be a program name with args.
7586 set dummy dlltool; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$ac_ct_DLLTOOL"; then
7593   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7613 if test -n "$ac_ct_DLLTOOL"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7615 $as_echo "$ac_ct_DLLTOOL" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621   if test "x$ac_ct_DLLTOOL" = x; then
7622     DLLTOOL="false"
7623   else
7624     case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630     DLLTOOL=$ac_ct_DLLTOOL
7631   fi
7632 else
7633   DLLTOOL="$ac_cv_prog_DLLTOOL"
7634 fi
7635
7636   if test -n "$ac_tool_prefix"; then
7637   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_OBJDUMP+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$OBJDUMP"; then
7645   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 OBJDUMP=$ac_cv_prog_OBJDUMP
7665 if test -n "$OBJDUMP"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7667 $as_echo "$OBJDUMP" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673
7674 fi
7675 if test -z "$ac_cv_prog_OBJDUMP"; then
7676   ac_ct_OBJDUMP=$OBJDUMP
7677   # Extract the first word of "objdump", so it can be a program name with args.
7678 set dummy objdump; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$ac_ct_OBJDUMP"; then
7685   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7705 if test -n "$ac_ct_OBJDUMP"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7707 $as_echo "$ac_ct_OBJDUMP" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713   if test "x$ac_ct_OBJDUMP" = x; then
7714     OBJDUMP="false"
7715   else
7716     case $cross_compiling:$ac_tool_warned in
7717 yes:)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722     OBJDUMP=$ac_ct_OBJDUMP
7723   fi
7724 else
7725   OBJDUMP="$ac_cv_prog_OBJDUMP"
7726 fi
7727
7728   ;;
7729 esac
7730
7731 test -z "$AS" && AS=as
7732
7733
7734
7735
7736
7737 test -z "$DLLTOOL" && DLLTOOL=dlltool
7738
7739
7740
7741
7742
7743 test -z "$OBJDUMP" && OBJDUMP=objdump
7744
7745
7746
7747
7748
7749
7750
7751         enable_dlopen=no
7752
7753
7754
7755             # Check whether --enable-shared was given.
7756 if test "${enable_shared+set}" = set; then :
7757   enableval=$enable_shared; p=${PACKAGE-default}
7758     case $enableval in
7759     yes) enable_shared=yes ;;
7760     no) enable_shared=no ;;
7761     *)
7762       enable_shared=no
7763       # Look at the argument we got.  We use all the common list separators.
7764       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7765       for pkg in $enableval; do
7766         IFS="$lt_save_ifs"
7767         if test "X$pkg" = "X$p"; then
7768           enable_shared=yes
7769         fi
7770       done
7771       IFS="$lt_save_ifs"
7772       ;;
7773     esac
7774 else
7775   enable_shared=yes
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786   # Check whether --enable-static was given.
7787 if test "${enable_static+set}" = set; then :
7788   enableval=$enable_static; p=${PACKAGE-default}
7789     case $enableval in
7790     yes) enable_static=yes ;;
7791     no) enable_static=no ;;
7792     *)
7793      enable_static=no
7794       # Look at the argument we got.  We use all the common list separators.
7795       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7796       for pkg in $enableval; do
7797         IFS="$lt_save_ifs"
7798         if test "X$pkg" = "X$p"; then
7799           enable_static=yes
7800         fi
7801       done
7802       IFS="$lt_save_ifs"
7803       ;;
7804     esac
7805 else
7806   enable_static=yes
7807 fi
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 # Check whether --with-pic was given.
7819 if test "${with_pic+set}" = set; then :
7820   withval=$with_pic; lt_p=${PACKAGE-default}
7821     case $withval in
7822     yes|no) pic_mode=$withval ;;
7823     *)
7824       pic_mode=default
7825       # Look at the argument we got.  We use all the common list separators.
7826       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7827       for lt_pkg in $withval; do
7828         IFS="$lt_save_ifs"
7829         if test "X$lt_pkg" = "X$lt_p"; then
7830           pic_mode=yes
7831         fi
7832       done
7833       IFS="$lt_save_ifs"
7834       ;;
7835     esac
7836 else
7837   pic_mode=default
7838 fi
7839
7840
7841 test -z "$pic_mode" && pic_mode=default
7842
7843
7844
7845
7846
7847
7848
7849   # Check whether --enable-fast-install was given.
7850 if test "${enable_fast_install+set}" = set; then :
7851   enableval=$enable_fast_install; p=${PACKAGE-default}
7852     case $enableval in
7853     yes) enable_fast_install=yes ;;
7854     no) enable_fast_install=no ;;
7855     *)
7856       enable_fast_install=no
7857       # Look at the argument we got.  We use all the common list separators.
7858       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7859       for pkg in $enableval; do
7860         IFS="$lt_save_ifs"
7861         if test "X$pkg" = "X$p"; then
7862           enable_fast_install=yes
7863         fi
7864       done
7865       IFS="$lt_save_ifs"
7866       ;;
7867     esac
7868 else
7869   enable_fast_install=yes
7870 fi
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882 # This can be used to rebuild libtool when needed
7883 LIBTOOL_DEPS="$ltmain"
7884
7885 # Always use our own libtool.
7886 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917 test -z "$LN_S" && LN_S="ln -s"
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932 if test -n "${ZSH_VERSION+set}" ; then
7933    setopt NO_GLOB_SUBST
7934 fi
7935
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7937 $as_echo_n "checking for objdir... " >&6; }
7938 if ${lt_cv_objdir+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   rm -f .libs 2>/dev/null
7942 mkdir .libs 2>/dev/null
7943 if test -d .libs; then
7944   lt_cv_objdir=.libs
7945 else
7946   # MS-DOS does not allow filenames that begin with a dot.
7947   lt_cv_objdir=_libs
7948 fi
7949 rmdir .libs 2>/dev/null
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7952 $as_echo "$lt_cv_objdir" >&6; }
7953 objdir=$lt_cv_objdir
7954
7955
7956
7957
7958
7959 cat >>confdefs.h <<_ACEOF
7960 #define LT_OBJDIR "$lt_cv_objdir/"
7961 _ACEOF
7962
7963
7964
7965
7966 case $host_os in
7967 aix3*)
7968   # AIX sometimes has problems with the GCC collect2 program.  For some
7969   # reason, if we set the COLLECT_NAMES environment variable, the problems
7970   # vanish in a puff of smoke.
7971   if test "X${COLLECT_NAMES+set}" != Xset; then
7972     COLLECT_NAMES=
7973     export COLLECT_NAMES
7974   fi
7975   ;;
7976 esac
7977
7978 # Global variables:
7979 ofile=libtool
7980 can_build_shared=yes
7981
7982 # All known linkers require a `.a' archive for static linking (except MSVC,
7983 # which needs '.lib').
7984 libext=a
7985
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7987
7988 old_CC="$CC"
7989 old_CFLAGS="$CFLAGS"
7990
7991 # Set sane defaults for various variables
7992 test -z "$CC" && CC=cc
7993 test -z "$LTCC" && LTCC=$CC
7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7995 test -z "$LD" && LD=ld
7996 test -z "$ac_objext" && ac_objext=o
7997
7998 for cc_temp in $compiler""; do
7999   case $cc_temp in
8000     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8001     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8002     \-*) ;;
8003     *) break;;
8004   esac
8005 done
8006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8007
8008
8009 # Only perform the check for file, if the check method requires it
8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8011 case $deplibs_check_method in
8012 file_magic*)
8013   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8015 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8016 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8017   $as_echo_n "(cached) " >&6
8018 else
8019   case $MAGIC_CMD in
8020 [\\/*] |  ?:[\\/]*)
8021   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8022   ;;
8023 *)
8024   lt_save_MAGIC_CMD="$MAGIC_CMD"
8025   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027   for ac_dir in $ac_dummy; do
8028     IFS="$lt_save_ifs"
8029     test -z "$ac_dir" && ac_dir=.
8030     if test -f $ac_dir/${ac_tool_prefix}file; then
8031       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8032       if test -n "$file_magic_test_file"; then
8033         case $deplibs_check_method in
8034         "file_magic "*)
8035           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038             $EGREP "$file_magic_regex" > /dev/null; then
8039             :
8040           else
8041             cat <<_LT_EOF 1>&2
8042
8043 *** Warning: the command libtool uses to detect shared libraries,
8044 *** $file_magic_cmd, produces output that libtool cannot recognize.
8045 *** The result is that libtool may fail to recognize shared libraries
8046 *** as such.  This will affect the creation of libtool libraries that
8047 *** depend on shared libraries, but programs linked with such libtool
8048 *** libraries will work regardless of this problem.  Nevertheless, you
8049 *** may want to report the problem to your system manager and/or to
8050 *** bug-libtool@gnu.org
8051
8052 _LT_EOF
8053           fi ;;
8054         esac
8055       fi
8056       break
8057     fi
8058   done
8059   IFS="$lt_save_ifs"
8060   MAGIC_CMD="$lt_save_MAGIC_CMD"
8061   ;;
8062 esac
8063 fi
8064
8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066 if test -n "$MAGIC_CMD"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8068 $as_echo "$MAGIC_CMD" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074
8075
8076
8077
8078 if test -z "$lt_cv_path_MAGIC_CMD"; then
8079   if test -n "$ac_tool_prefix"; then
8080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8081 $as_echo_n "checking for file... " >&6; }
8082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   case $MAGIC_CMD in
8086 [\\/*] |  ?:[\\/]*)
8087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8088   ;;
8089 *)
8090   lt_save_MAGIC_CMD="$MAGIC_CMD"
8091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8092   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8093   for ac_dir in $ac_dummy; do
8094     IFS="$lt_save_ifs"
8095     test -z "$ac_dir" && ac_dir=.
8096     if test -f $ac_dir/file; then
8097       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8098       if test -n "$file_magic_test_file"; then
8099         case $deplibs_check_method in
8100         "file_magic "*)
8101           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8104             $EGREP "$file_magic_regex" > /dev/null; then
8105             :
8106           else
8107             cat <<_LT_EOF 1>&2
8108
8109 *** Warning: the command libtool uses to detect shared libraries,
8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
8111 *** The result is that libtool may fail to recognize shared libraries
8112 *** as such.  This will affect the creation of libtool libraries that
8113 *** depend on shared libraries, but programs linked with such libtool
8114 *** libraries will work regardless of this problem.  Nevertheless, you
8115 *** may want to report the problem to your system manager and/or to
8116 *** bug-libtool@gnu.org
8117
8118 _LT_EOF
8119           fi ;;
8120         esac
8121       fi
8122       break
8123     fi
8124   done
8125   IFS="$lt_save_ifs"
8126   MAGIC_CMD="$lt_save_MAGIC_CMD"
8127   ;;
8128 esac
8129 fi
8130
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132 if test -n "$MAGIC_CMD"; then
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8134 $as_echo "$MAGIC_CMD" >&6; }
8135 else
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139
8140
8141   else
8142     MAGIC_CMD=:
8143   fi
8144 fi
8145
8146   fi
8147   ;;
8148 esac
8149
8150 # Use C for the default configuration in the libtool script
8151
8152 lt_save_CC="$CC"
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
8159
8160 # Source file extension for C test sources.
8161 ac_ext=c
8162
8163 # Object file extension for compiled C test sources.
8164 objext=o
8165 objext=$objext
8166
8167 # Code to be used in simple compile tests
8168 lt_simple_compile_test_code="int some_variable = 0;"
8169
8170 # Code to be used in simple link tests
8171 lt_simple_link_test_code='int main(){return(0);}'
8172
8173
8174
8175
8176
8177
8178
8179 # If no C compiler was specified, use CC.
8180 LTCC=${LTCC-"$CC"}
8181
8182 # If no C compiler flags were specified, use CFLAGS.
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8184
8185 # Allow CC to be a program name with arguments.
8186 compiler=$CC
8187
8188 # Save the default compiler, since it gets overwritten when the other
8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8190 compiler_DEFAULT=$CC
8191
8192 # save warnings/boilerplate of simple test code
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8196 _lt_compiler_boilerplate=`cat conftest.err`
8197 $RM conftest*
8198
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8202 _lt_linker_boilerplate=`cat conftest.err`
8203 $RM -r conftest*
8204
8205
8206 ## CAVEAT EMPTOR:
8207 ## There is no encapsulation within the following macros, do not change
8208 ## the running order or otherwise move them around unless you know exactly
8209 ## what you are doing...
8210 if test -n "$compiler"; then
8211
8212 lt_prog_compiler_no_builtin_flag=
8213
8214 if test "$GCC" = yes; then
8215   case $cc_basename in
8216   nvcc*)
8217     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8218   *)
8219     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8220   esac
8221
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8223 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8224 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   lt_cv_prog_compiler_rtti_exceptions=no
8228    ac_outfile=conftest.$ac_objext
8229    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8230    lt_compiler_flag="-fno-rtti -fno-exceptions"
8231    # Insert the option either (1) after the last *FLAGS variable, or
8232    # (2) before a word containing "conftest.", or (3) at the end.
8233    # Note that $ac_compile itself does not contain backslashes and begins
8234    # with a dollar sign (not a hyphen), so the echo should work correctly.
8235    # The option is referenced via a variable to avoid confusing sed.
8236    lt_compile=`echo "$ac_compile" | $SED \
8237    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8239    -e 's:$: $lt_compiler_flag:'`
8240    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8241    (eval "$lt_compile" 2>conftest.err)
8242    ac_status=$?
8243    cat conftest.err >&5
8244    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245    if (exit $ac_status) && test -s "$ac_outfile"; then
8246      # The compiler can only warn and ignore the option if not recognized
8247      # So say no if there are warnings other than the usual output.
8248      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8249      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8251        lt_cv_prog_compiler_rtti_exceptions=yes
8252      fi
8253    fi
8254    $RM conftest*
8255
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8258 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8259
8260 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8261     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8262 else
8263     :
8264 fi
8265
8266 fi
8267
8268
8269
8270
8271
8272
8273   lt_prog_compiler_wl=
8274 lt_prog_compiler_pic=
8275 lt_prog_compiler_static=
8276
8277
8278   if test "$GCC" = yes; then
8279     lt_prog_compiler_wl='-Wl,'
8280     lt_prog_compiler_static='-static'
8281
8282     case $host_os in
8283       aix*)
8284       # All AIX code is PIC.
8285       if test "$host_cpu" = ia64; then
8286         # AIX 5 now supports IA64 processor
8287         lt_prog_compiler_static='-Bstatic'
8288       fi
8289       ;;
8290
8291     amigaos*)
8292       case $host_cpu in
8293       powerpc)
8294             # see comment about AmigaOS4 .so support
8295             lt_prog_compiler_pic='-fPIC'
8296         ;;
8297       m68k)
8298             # FIXME: we need at least 68020 code to build shared libraries, but
8299             # adding the `-m68020' flag to GCC prevents building anything better,
8300             # like `-m68040'.
8301             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8302         ;;
8303       esac
8304       ;;
8305
8306     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8307       # PIC is the default for these OSes.
8308       ;;
8309
8310     mingw* | cygwin* | pw32* | os2* | cegcc*)
8311       # This hack is so that the source file can tell whether it is being
8312       # built for inclusion in a dll (and should export symbols for example).
8313       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8314       # (--disable-auto-import) libraries
8315       lt_prog_compiler_pic='-DDLL_EXPORT'
8316       ;;
8317
8318     darwin* | rhapsody*)
8319       # PIC is the default on this platform
8320       # Common symbols not allowed in MH_DYLIB files
8321       lt_prog_compiler_pic='-fno-common'
8322       ;;
8323
8324     haiku*)
8325       # PIC is the default for Haiku.
8326       # The "-static" flag exists, but is broken.
8327       lt_prog_compiler_static=
8328       ;;
8329
8330     hpux*)
8331       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8332       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8333       # sets the default TLS model and affects inlining.
8334       case $host_cpu in
8335       hppa*64*)
8336         # +Z the default
8337         ;;
8338       *)
8339         lt_prog_compiler_pic='-fPIC'
8340         ;;
8341       esac
8342       ;;
8343
8344     interix[3-9]*)
8345       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8346       # Instead, we relocate shared libraries at runtime.
8347       ;;
8348
8349     msdosdjgpp*)
8350       # Just because we use GCC doesn't mean we suddenly get shared libraries
8351       # on systems that don't support them.
8352       lt_prog_compiler_can_build_shared=no
8353       enable_shared=no
8354       ;;
8355
8356     *nto* | *qnx*)
8357       # QNX uses GNU C++, but need to define -shared option too, otherwise
8358       # it will coredump.
8359       lt_prog_compiler_pic='-fPIC -shared'
8360       ;;
8361
8362     sysv4*MP*)
8363       if test -d /usr/nec; then
8364         lt_prog_compiler_pic=-Kconform_pic
8365       fi
8366       ;;
8367
8368     *)
8369       lt_prog_compiler_pic='-fPIC'
8370       ;;
8371     esac
8372
8373     case $cc_basename in
8374     nvcc*) # Cuda Compiler Driver 2.2
8375       lt_prog_compiler_wl='-Xlinker '
8376       if test -n "$lt_prog_compiler_pic"; then
8377         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8378       fi
8379       ;;
8380     esac
8381   else
8382     # PORTME Check for flag to pass linker flags through the system compiler.
8383     case $host_os in
8384     aix*)
8385       lt_prog_compiler_wl='-Wl,'
8386       if test "$host_cpu" = ia64; then
8387         # AIX 5 now supports IA64 processor
8388         lt_prog_compiler_static='-Bstatic'
8389       else
8390         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8391       fi
8392       ;;
8393
8394     mingw* | cygwin* | pw32* | os2* | cegcc*)
8395       # This hack is so that the source file can tell whether it is being
8396       # built for inclusion in a dll (and should export symbols for example).
8397       lt_prog_compiler_pic='-DDLL_EXPORT'
8398       ;;
8399
8400     hpux9* | hpux10* | hpux11*)
8401       lt_prog_compiler_wl='-Wl,'
8402       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8403       # not for PA HP-UX.
8404       case $host_cpu in
8405       hppa*64*|ia64*)
8406         # +Z the default
8407         ;;
8408       *)
8409         lt_prog_compiler_pic='+Z'
8410         ;;
8411       esac
8412       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8413       lt_prog_compiler_static='${wl}-a ${wl}archive'
8414       ;;
8415
8416     irix5* | irix6* | nonstopux*)
8417       lt_prog_compiler_wl='-Wl,'
8418       # PIC (with -KPIC) is the default.
8419       lt_prog_compiler_static='-non_shared'
8420       ;;
8421
8422     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8423       case $cc_basename in
8424       # old Intel for x86_64 which still supported -KPIC.
8425       ecc*)
8426         lt_prog_compiler_wl='-Wl,'
8427         lt_prog_compiler_pic='-KPIC'
8428         lt_prog_compiler_static='-static'
8429         ;;
8430       # icc used to be incompatible with GCC.
8431       # ICC 10 doesn't accept -KPIC any more.
8432       icc* | ifort*)
8433         lt_prog_compiler_wl='-Wl,'
8434         lt_prog_compiler_pic='-fPIC'
8435         lt_prog_compiler_static='-static'
8436         ;;
8437       # Lahey Fortran 8.1.
8438       lf95*)
8439         lt_prog_compiler_wl='-Wl,'
8440         lt_prog_compiler_pic='--shared'
8441         lt_prog_compiler_static='--static'
8442         ;;
8443       nagfor*)
8444         # NAG Fortran compiler
8445         lt_prog_compiler_wl='-Wl,-Wl,,'
8446         lt_prog_compiler_pic='-PIC'
8447         lt_prog_compiler_static='-Bstatic'
8448         ;;
8449       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8450         # Portland Group compilers (*not* the Pentium gcc compiler,
8451         # which looks to be a dead project)
8452         lt_prog_compiler_wl='-Wl,'
8453         lt_prog_compiler_pic='-fpic'
8454         lt_prog_compiler_static='-Bstatic'
8455         ;;
8456       ccc*)
8457         lt_prog_compiler_wl='-Wl,'
8458         # All Alpha code is PIC.
8459         lt_prog_compiler_static='-non_shared'
8460         ;;
8461       xl* | bgxl* | bgf* | mpixl*)
8462         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8463         lt_prog_compiler_wl='-Wl,'
8464         lt_prog_compiler_pic='-qpic'
8465         lt_prog_compiler_static='-qstaticlink'
8466         ;;
8467       *)
8468         case `$CC -V 2>&1 | sed 5q` in
8469         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8470           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8471           lt_prog_compiler_pic='-KPIC'
8472           lt_prog_compiler_static='-Bstatic'
8473           lt_prog_compiler_wl=''
8474           ;;
8475         *Sun\ F* | *Sun*Fortran*)
8476           lt_prog_compiler_pic='-KPIC'
8477           lt_prog_compiler_static='-Bstatic'
8478           lt_prog_compiler_wl='-Qoption ld '
8479           ;;
8480         *Sun\ C*)
8481           # Sun C 5.9
8482           lt_prog_compiler_pic='-KPIC'
8483           lt_prog_compiler_static='-Bstatic'
8484           lt_prog_compiler_wl='-Wl,'
8485           ;;
8486         *Intel*\ [CF]*Compiler*)
8487           lt_prog_compiler_wl='-Wl,'
8488           lt_prog_compiler_pic='-fPIC'
8489           lt_prog_compiler_static='-static'
8490           ;;
8491         *Portland\ Group*)
8492           lt_prog_compiler_wl='-Wl,'
8493           lt_prog_compiler_pic='-fpic'
8494           lt_prog_compiler_static='-Bstatic'
8495           ;;
8496         esac
8497         ;;
8498       esac
8499       ;;
8500
8501     newsos6)
8502       lt_prog_compiler_pic='-KPIC'
8503       lt_prog_compiler_static='-Bstatic'
8504       ;;
8505
8506     *nto* | *qnx*)
8507       # QNX uses GNU C++, but need to define -shared option too, otherwise
8508       # it will coredump.
8509       lt_prog_compiler_pic='-fPIC -shared'
8510       ;;
8511
8512     osf3* | osf4* | osf5*)
8513       lt_prog_compiler_wl='-Wl,'
8514       # All OSF/1 code is PIC.
8515       lt_prog_compiler_static='-non_shared'
8516       ;;
8517
8518     rdos*)
8519       lt_prog_compiler_static='-non_shared'
8520       ;;
8521
8522     solaris*)
8523       lt_prog_compiler_pic='-KPIC'
8524       lt_prog_compiler_static='-Bstatic'
8525       case $cc_basename in
8526       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8527         lt_prog_compiler_wl='-Qoption ld ';;
8528       *)
8529         lt_prog_compiler_wl='-Wl,';;
8530       esac
8531       ;;
8532
8533     sunos4*)
8534       lt_prog_compiler_wl='-Qoption ld '
8535       lt_prog_compiler_pic='-PIC'
8536       lt_prog_compiler_static='-Bstatic'
8537       ;;
8538
8539     sysv4 | sysv4.2uw2* | sysv4.3*)
8540       lt_prog_compiler_wl='-Wl,'
8541       lt_prog_compiler_pic='-KPIC'
8542       lt_prog_compiler_static='-Bstatic'
8543       ;;
8544
8545     sysv4*MP*)
8546       if test -d /usr/nec ;then
8547         lt_prog_compiler_pic='-Kconform_pic'
8548         lt_prog_compiler_static='-Bstatic'
8549       fi
8550       ;;
8551
8552     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8553       lt_prog_compiler_wl='-Wl,'
8554       lt_prog_compiler_pic='-KPIC'
8555       lt_prog_compiler_static='-Bstatic'
8556       ;;
8557
8558     unicos*)
8559       lt_prog_compiler_wl='-Wl,'
8560       lt_prog_compiler_can_build_shared=no
8561       ;;
8562
8563     uts4*)
8564       lt_prog_compiler_pic='-pic'
8565       lt_prog_compiler_static='-Bstatic'
8566       ;;
8567
8568     *)
8569       lt_prog_compiler_can_build_shared=no
8570       ;;
8571     esac
8572   fi
8573
8574 case $host_os in
8575   # For platforms which do not support PIC, -DPIC is meaningless:
8576   *djgpp*)
8577     lt_prog_compiler_pic=
8578     ;;
8579   *)
8580     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8581     ;;
8582 esac
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8585 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8586 if ${lt_cv_prog_compiler_pic+:} false; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8592 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8593 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8594
8595 #
8596 # Check to make sure the PIC flag actually works.
8597 #
8598 if test -n "$lt_prog_compiler_pic"; then
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8600 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8601 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   lt_cv_prog_compiler_pic_works=no
8605    ac_outfile=conftest.$ac_objext
8606    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8608    # Insert the option either (1) after the last *FLAGS variable, or
8609    # (2) before a word containing "conftest.", or (3) at the end.
8610    # Note that $ac_compile itself does not contain backslashes and begins
8611    # with a dollar sign (not a hyphen), so the echo should work correctly.
8612    # The option is referenced via a variable to avoid confusing sed.
8613    lt_compile=`echo "$ac_compile" | $SED \
8614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616    -e 's:$: $lt_compiler_flag:'`
8617    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618    (eval "$lt_compile" 2>conftest.err)
8619    ac_status=$?
8620    cat conftest.err >&5
8621    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622    if (exit $ac_status) && test -s "$ac_outfile"; then
8623      # The compiler can only warn and ignore the option if not recognized
8624      # So say no if there are warnings other than the usual output.
8625      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8626      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8627      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8628        lt_cv_prog_compiler_pic_works=yes
8629      fi
8630    fi
8631    $RM conftest*
8632
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8635 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8636
8637 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8638     case $lt_prog_compiler_pic in
8639      "" | " "*) ;;
8640      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8641      esac
8642 else
8643     lt_prog_compiler_pic=
8644      lt_prog_compiler_can_build_shared=no
8645 fi
8646
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659 #
8660 # Check to make sure the static flag actually works.
8661 #
8662 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8664 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8665 if ${lt_cv_prog_compiler_static_works+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   lt_cv_prog_compiler_static_works=no
8669    save_LDFLAGS="$LDFLAGS"
8670    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8671    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8672    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8673      # The linker can only warn and ignore the option if not recognized
8674      # So say no if there are warnings
8675      if test -s conftest.err; then
8676        # Append any errors to the config.log.
8677        cat conftest.err 1>&5
8678        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8679        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8680        if diff conftest.exp conftest.er2 >/dev/null; then
8681          lt_cv_prog_compiler_static_works=yes
8682        fi
8683      else
8684        lt_cv_prog_compiler_static_works=yes
8685      fi
8686    fi
8687    $RM -r conftest*
8688    LDFLAGS="$save_LDFLAGS"
8689
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8692 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8693
8694 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8695     :
8696 else
8697     lt_prog_compiler_static=
8698 fi
8699
8700
8701
8702
8703
8704
8705
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8707 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8708 if ${lt_cv_prog_compiler_c_o+:} false; then :
8709   $as_echo_n "(cached) " >&6
8710 else
8711   lt_cv_prog_compiler_c_o=no
8712    $RM -r conftest 2>/dev/null
8713    mkdir conftest
8714    cd conftest
8715    mkdir out
8716    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717
8718    lt_compiler_flag="-o out/conftest2.$ac_objext"
8719    # Insert the option either (1) after the last *FLAGS variable, or
8720    # (2) before a word containing "conftest.", or (3) at the end.
8721    # Note that $ac_compile itself does not contain backslashes and begins
8722    # with a dollar sign (not a hyphen), so the echo should work correctly.
8723    lt_compile=`echo "$ac_compile" | $SED \
8724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726    -e 's:$: $lt_compiler_flag:'`
8727    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728    (eval "$lt_compile" 2>out/conftest.err)
8729    ac_status=$?
8730    cat out/conftest.err >&5
8731    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8733    then
8734      # The compiler can only warn and ignore the option if not recognized
8735      # So say no if there are warnings
8736      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8737      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8738      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8739        lt_cv_prog_compiler_c_o=yes
8740      fi
8741    fi
8742    chmod u+w . 2>&5
8743    $RM conftest*
8744    # SGI C++ compiler will create directory out/ii_files/ for
8745    # template instantiation
8746    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8747    $RM out/* && rmdir out
8748    cd ..
8749    $RM -r conftest
8750    $RM conftest*
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8754 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8755
8756
8757
8758
8759
8760
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8763 if ${lt_cv_prog_compiler_c_o+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   lt_cv_prog_compiler_c_o=no
8767    $RM -r conftest 2>/dev/null
8768    mkdir conftest
8769    cd conftest
8770    mkdir out
8771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772
8773    lt_compiler_flag="-o out/conftest2.$ac_objext"
8774    # Insert the option either (1) after the last *FLAGS variable, or
8775    # (2) before a word containing "conftest.", or (3) at the end.
8776    # Note that $ac_compile itself does not contain backslashes and begins
8777    # with a dollar sign (not a hyphen), so the echo should work correctly.
8778    lt_compile=`echo "$ac_compile" | $SED \
8779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781    -e 's:$: $lt_compiler_flag:'`
8782    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783    (eval "$lt_compile" 2>out/conftest.err)
8784    ac_status=$?
8785    cat out/conftest.err >&5
8786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8788    then
8789      # The compiler can only warn and ignore the option if not recognized
8790      # So say no if there are warnings
8791      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8792      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8793      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8794        lt_cv_prog_compiler_c_o=yes
8795      fi
8796    fi
8797    chmod u+w . 2>&5
8798    $RM conftest*
8799    # SGI C++ compiler will create directory out/ii_files/ for
8800    # template instantiation
8801    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8802    $RM out/* && rmdir out
8803    cd ..
8804    $RM -r conftest
8805    $RM conftest*
8806
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8810
8811
8812
8813
8814 hard_links="nottested"
8815 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8816   # do not overwrite the value of need_locks provided by the user
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8818 $as_echo_n "checking if we can lock with hard links... " >&6; }
8819   hard_links=yes
8820   $RM conftest*
8821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8822   touch conftest.a
8823   ln conftest.a conftest.b 2>&5 || hard_links=no
8824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8826 $as_echo "$hard_links" >&6; }
8827   if test "$hard_links" = no; then
8828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8830     need_locks=warn
8831   fi
8832 else
8833   need_locks=no
8834 fi
8835
8836
8837
8838
8839
8840
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8843
8844   runpath_var=
8845   allow_undefined_flag=
8846   always_export_symbols=no
8847   archive_cmds=
8848   archive_expsym_cmds=
8849   compiler_needs_object=no
8850   enable_shared_with_static_runtimes=no
8851   export_dynamic_flag_spec=
8852   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8853   hardcode_automatic=no
8854   hardcode_direct=no
8855   hardcode_direct_absolute=no
8856   hardcode_libdir_flag_spec=
8857   hardcode_libdir_separator=
8858   hardcode_minus_L=no
8859   hardcode_shlibpath_var=unsupported
8860   inherit_rpath=no
8861   link_all_deplibs=unknown
8862   module_cmds=
8863   module_expsym_cmds=
8864   old_archive_from_new_cmds=
8865   old_archive_from_expsyms_cmds=
8866   thread_safe_flag_spec=
8867   whole_archive_flag_spec=
8868   # include_expsyms should be a list of space-separated symbols to be *always*
8869   # included in the symbol list
8870   include_expsyms=
8871   # exclude_expsyms can be an extended regexp of symbols to exclude
8872   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8873   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8874   # as well as any symbol that contains `d'.
8875   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8876   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8877   # platforms (ab)use it in PIC code, but their linkers get confused if
8878   # the symbol is explicitly referenced.  Since portable code cannot
8879   # rely on this symbol name, it's probably fine to never include it in
8880   # preloaded symbol tables.
8881   # Exclude shared library initialization/finalization symbols.
8882   extract_expsyms_cmds=
8883
8884   case $host_os in
8885   cygwin* | mingw* | pw32* | cegcc*)
8886     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8887     # When not using gcc, we currently assume that we are using
8888     # Microsoft Visual C++.
8889     if test "$GCC" != yes; then
8890       with_gnu_ld=no
8891     fi
8892     ;;
8893   interix*)
8894     # we just hope/assume this is gcc and not c89 (= MSVC++)
8895     with_gnu_ld=yes
8896     ;;
8897   openbsd*)
8898     with_gnu_ld=no
8899     ;;
8900   linux* | k*bsd*-gnu | gnu*)
8901     link_all_deplibs=no
8902     ;;
8903   esac
8904
8905   ld_shlibs=yes
8906
8907   # On some targets, GNU ld is compatible enough with the native linker
8908   # that we're better off using the native interface for both.
8909   lt_use_gnu_ld_interface=no
8910   if test "$with_gnu_ld" = yes; then
8911     case $host_os in
8912       aix*)
8913         # The AIX port of GNU ld has always aspired to compatibility
8914         # with the native linker.  However, as the warning in the GNU ld
8915         # block says, versions before 2.19.5* couldn't really create working
8916         # shared libraries, regardless of the interface used.
8917         case `$LD -v 2>&1` in
8918           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8919           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8920           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8921           *)
8922             lt_use_gnu_ld_interface=yes
8923             ;;
8924         esac
8925         ;;
8926       *)
8927         lt_use_gnu_ld_interface=yes
8928         ;;
8929     esac
8930   fi
8931
8932   if test "$lt_use_gnu_ld_interface" = yes; then
8933     # If archive_cmds runs LD, not CC, wlarc should be empty
8934     wlarc='${wl}'
8935
8936     # Set some defaults for GNU ld with shared library support. These
8937     # are reset later if shared libraries are not supported. Putting them
8938     # here allows them to be overridden if necessary.
8939     runpath_var=LD_RUN_PATH
8940     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941     export_dynamic_flag_spec='${wl}--export-dynamic'
8942     # ancient GNU ld didn't support --whole-archive et. al.
8943     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8944       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8945     else
8946       whole_archive_flag_spec=
8947     fi
8948     supports_anon_versioning=no
8949     case `$LD -v 2>&1` in
8950       *GNU\ gold*) supports_anon_versioning=yes ;;
8951       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8952       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8953       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8954       *\ 2.11.*) ;; # other 2.11 versions
8955       *) supports_anon_versioning=yes ;;
8956     esac
8957
8958     # See if GNU ld supports shared libraries.
8959     case $host_os in
8960     aix[3-9]*)
8961       # On AIX/PPC, the GNU linker is very broken
8962       if test "$host_cpu" != ia64; then
8963         ld_shlibs=no
8964         cat <<_LT_EOF 1>&2
8965
8966 *** Warning: the GNU linker, at least up to release 2.19, is reported
8967 *** to be unable to reliably create shared libraries on AIX.
8968 *** Therefore, libtool is disabling shared libraries support.  If you
8969 *** really care for shared libraries, you may want to install binutils
8970 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8971 *** You will then need to restart the configuration process.
8972
8973 _LT_EOF
8974       fi
8975       ;;
8976
8977     amigaos*)
8978       case $host_cpu in
8979       powerpc)
8980             # see comment about AmigaOS4 .so support
8981             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982             archive_expsym_cmds=''
8983         ;;
8984       m68k)
8985             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)'
8986             hardcode_libdir_flag_spec='-L$libdir'
8987             hardcode_minus_L=yes
8988         ;;
8989       esac
8990       ;;
8991
8992     beos*)
8993       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8994         allow_undefined_flag=unsupported
8995         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8996         # support --undefined.  This deserves some investigation.  FIXME
8997         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998       else
8999         ld_shlibs=no
9000       fi
9001       ;;
9002
9003     cygwin* | mingw* | pw32* | cegcc*)
9004       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9005       # as there is no search path for DLLs.
9006       hardcode_libdir_flag_spec='-L$libdir'
9007       export_dynamic_flag_spec='${wl}--export-all-symbols'
9008       allow_undefined_flag=unsupported
9009       always_export_symbols=no
9010       enable_shared_with_static_runtimes=yes
9011       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'
9012       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9013
9014       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9016         # If the export-symbols file already is a .def file (1st line
9017         # is EXPORTS), use it as is; otherwise, prepend...
9018         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9019           cp $export_symbols $output_objdir/$soname.def;
9020         else
9021           echo EXPORTS > $output_objdir/$soname.def;
9022           cat $export_symbols >> $output_objdir/$soname.def;
9023         fi~
9024         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9025       else
9026         ld_shlibs=no
9027       fi
9028       ;;
9029
9030     haiku*)
9031       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032       link_all_deplibs=yes
9033       ;;
9034
9035     interix[3-9]*)
9036       hardcode_direct=no
9037       hardcode_shlibpath_var=no
9038       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039       export_dynamic_flag_spec='${wl}-E'
9040       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9041       # Instead, shared libraries are loaded at an image base (0x10000000 by
9042       # default) and relocated if they conflict, which is a slow very memory
9043       # consuming and fragmenting process.  To avoid this, we pick a random,
9044       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9045       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9046       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9047       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'
9048       ;;
9049
9050     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9051       tmp_diet=no
9052       if test "$host_os" = linux-dietlibc; then
9053         case $cc_basename in
9054           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9055         esac
9056       fi
9057       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9058          && test "$tmp_diet" = no
9059       then
9060         tmp_addflag=' $pic_flag'
9061         tmp_sharedflag='-shared'
9062         case $cc_basename,$host_cpu in
9063         pgcc*)                          # Portland Group C compiler
9064           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'
9065           tmp_addflag=' $pic_flag'
9066           ;;
9067         pgf77* | pgf90* | pgf95* | pgfortran*)
9068                                         # Portland Group f77 and f90 compilers
9069           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'
9070           tmp_addflag=' $pic_flag -Mnomain' ;;
9071         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9072           tmp_addflag=' -i_dynamic' ;;
9073         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9074           tmp_addflag=' -i_dynamic -nofor_main' ;;
9075         ifc* | ifort*)                  # Intel Fortran compiler
9076           tmp_addflag=' -nofor_main' ;;
9077         lf95*)                          # Lahey Fortran 8.1
9078           whole_archive_flag_spec=
9079           tmp_sharedflag='--shared' ;;
9080         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9081           tmp_sharedflag='-qmkshrobj'
9082           tmp_addflag= ;;
9083         nvcc*)  # Cuda Compiler Driver 2.2
9084           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'
9085           compiler_needs_object=yes
9086           ;;
9087         esac
9088         case `$CC -V 2>&1 | sed 5q` in
9089         *Sun\ C*)                       # Sun C 5.9
9090           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'
9091           compiler_needs_object=yes
9092           tmp_sharedflag='-G' ;;
9093         *Sun\ F*)                       # Sun Fortran 8.3
9094           tmp_sharedflag='-G' ;;
9095         esac
9096         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097
9098         if test "x$supports_anon_versioning" = xyes; then
9099           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9100             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9101             echo "local: *; };" >> $output_objdir/$libname.ver~
9102             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9103         fi
9104
9105         case $cc_basename in
9106         xlf* | bgf* | bgxlf* | mpixlf*)
9107           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9108           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9109           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9110           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9111           if test "x$supports_anon_versioning" = xyes; then
9112             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9113               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9114               echo "local: *; };" >> $output_objdir/$libname.ver~
9115               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9116           fi
9117           ;;
9118         esac
9119       else
9120         ld_shlibs=no
9121       fi
9122       ;;
9123
9124     netbsd* | netbsdelf*-gnu)
9125       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9126         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9127         wlarc=
9128       else
9129         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9131       fi
9132       ;;
9133
9134     solaris*)
9135       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9136         ld_shlibs=no
9137         cat <<_LT_EOF 1>&2
9138
9139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9140 *** create shared libraries on Solaris systems.  Therefore, libtool
9141 *** is disabling shared libraries support.  We urge you to upgrade GNU
9142 *** binutils to release 2.9.1 or newer.  Another option is to modify
9143 *** your PATH or compiler configuration so that the native linker is
9144 *** used, and then restart.
9145
9146 _LT_EOF
9147       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150       else
9151         ld_shlibs=no
9152       fi
9153       ;;
9154
9155     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9156       case `$LD -v 2>&1` in
9157         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9158         ld_shlibs=no
9159         cat <<_LT_EOF 1>&2
9160
9161 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9162 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9163 *** is disabling shared libraries support.  We urge you to upgrade GNU
9164 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9165 *** your PATH or compiler configuration so that the native linker is
9166 *** used, and then restart.
9167
9168 _LT_EOF
9169         ;;
9170         *)
9171           # For security reasons, it is highly recommended that you always
9172           # use absolute paths for naming shared libraries, and exclude the
9173           # DT_RUNPATH tag from executables and libraries.  But doing so
9174           # requires that you compile everything twice, which is a pain.
9175           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9176             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9179           else
9180             ld_shlibs=no
9181           fi
9182         ;;
9183       esac
9184       ;;
9185
9186     sunos4*)
9187       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9188       wlarc=
9189       hardcode_direct=yes
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     *)
9194       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9195         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9197       else
9198         ld_shlibs=no
9199       fi
9200       ;;
9201     esac
9202
9203     if test "$ld_shlibs" = no; then
9204       runpath_var=
9205       hardcode_libdir_flag_spec=
9206       export_dynamic_flag_spec=
9207       whole_archive_flag_spec=
9208     fi
9209   else
9210     # PORTME fill in a description of your system's linker (not GNU ld)
9211     case $host_os in
9212     aix3*)
9213       allow_undefined_flag=unsupported
9214       always_export_symbols=yes
9215       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'
9216       # Note: this linker hardcodes the directories in LIBPATH if there
9217       # are no directories specified by -L.
9218       hardcode_minus_L=yes
9219       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9220         # Neither direct hardcoding nor static linking is supported with a
9221         # broken collect2.
9222         hardcode_direct=unsupported
9223       fi
9224       ;;
9225
9226     aix[4-9]*)
9227       if test "$host_cpu" = ia64; then
9228         # On IA64, the linker does run time linking by default, so we don't
9229         # have to do anything special.
9230         aix_use_runtimelinking=no
9231         exp_sym_flag='-Bexport'
9232         no_entry_flag=""
9233       else
9234         # If we're using GNU nm, then we don't want the "-C" option.
9235         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9236         # Also, AIX nm treats weak defined symbols like other global
9237         # defined symbols, whereas GNU nm marks them as "W".
9238         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9239           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'
9240         else
9241           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'
9242         fi
9243         aix_use_runtimelinking=no
9244
9245         # Test if we are trying to use run time linking or normal
9246         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9247         # need to do runtime linking.
9248         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9249           for ld_flag in $LDFLAGS; do
9250           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9251             aix_use_runtimelinking=yes
9252             break
9253           fi
9254           done
9255           ;;
9256         esac
9257
9258         exp_sym_flag='-bexport'
9259         no_entry_flag='-bnoentry'
9260       fi
9261
9262       # When large executables or shared objects are built, AIX ld can
9263       # have problems creating the table of contents.  If linking a library
9264       # or program results in "error TOC overflow" add -mminimal-toc to
9265       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9266       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9267
9268       archive_cmds=''
9269       hardcode_direct=yes
9270       hardcode_direct_absolute=yes
9271       hardcode_libdir_separator=':'
9272       link_all_deplibs=yes
9273       file_list_spec='${wl}-f,'
9274
9275       if test "$GCC" = yes; then
9276         case $host_os in aix4.[012]|aix4.[012].*)
9277         # We only want to do this on AIX 4.2 and lower, the check
9278         # below for broken collect2 doesn't work under 4.3+
9279           collect2name=`${CC} -print-prog-name=collect2`
9280           if test -f "$collect2name" &&
9281            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9282           then
9283           # We have reworked collect2
9284           :
9285           else
9286           # We have old collect2
9287           hardcode_direct=unsupported
9288           # It fails to find uninstalled libraries when the uninstalled
9289           # path is not listed in the libpath.  Setting hardcode_minus_L
9290           # to unsupported forces relinking
9291           hardcode_minus_L=yes
9292           hardcode_libdir_flag_spec='-L$libdir'
9293           hardcode_libdir_separator=
9294           fi
9295           ;;
9296         esac
9297         shared_flag='-shared'
9298         if test "$aix_use_runtimelinking" = yes; then
9299           shared_flag="$shared_flag "'${wl}-G'
9300         fi
9301         link_all_deplibs=no
9302       else
9303         # not using gcc
9304         if test "$host_cpu" = ia64; then
9305         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9306         # chokes on -Wl,-G. The following line is correct:
9307           shared_flag='-G'
9308         else
9309           if test "$aix_use_runtimelinking" = yes; then
9310             shared_flag='${wl}-G'
9311           else
9312             shared_flag='${wl}-bM:SRE'
9313           fi
9314         fi
9315       fi
9316
9317       export_dynamic_flag_spec='${wl}-bexpall'
9318       # It seems that -bexpall does not export symbols beginning with
9319       # underscore (_), so it is better to generate a list of symbols to export.
9320       always_export_symbols=yes
9321       if test "$aix_use_runtimelinking" = yes; then
9322         # Warning - without using the other runtime loading flags (-brtl),
9323         # -berok will link without error, but may produce a broken library.
9324         allow_undefined_flag='-berok'
9325         # Determine the default libpath from the value encoded in an
9326         # empty executable.
9327         if test "${lt_cv_aix_libpath+set}" = set; then
9328   aix_libpath=$lt_cv_aix_libpath
9329 else
9330   if ${lt_cv_aix_libpath_+:} false; then :
9331   $as_echo_n "(cached) " >&6
9332 else
9333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h.  */
9335
9336 int
9337 main ()
9338 {
9339
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345
9346   lt_aix_libpath_sed='
9347       /Import File Strings/,/^$/ {
9348           /^0/ {
9349               s/^0  *\([^ ]*\) *$/\1/
9350               p
9351           }
9352       }'
9353   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9354   # Check for a 64-bit object if we didn't find anything.
9355   if test -z "$lt_cv_aix_libpath_"; then
9356     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9357   fi
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext \
9360     conftest$ac_exeext conftest.$ac_ext
9361   if test -z "$lt_cv_aix_libpath_"; then
9362     lt_cv_aix_libpath_="/usr/lib:/lib"
9363   fi
9364
9365 fi
9366
9367   aix_libpath=$lt_cv_aix_libpath_
9368 fi
9369
9370         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9371         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"
9372       else
9373         if test "$host_cpu" = ia64; then
9374           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9375           allow_undefined_flag="-z nodefs"
9376           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"
9377         else
9378          # Determine the default libpath from the value encoded in an
9379          # empty executable.
9380          if test "${lt_cv_aix_libpath+set}" = set; then
9381   aix_libpath=$lt_cv_aix_libpath
9382 else
9383   if ${lt_cv_aix_libpath_+:} false; then :
9384   $as_echo_n "(cached) " >&6
9385 else
9386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h.  */
9388
9389 int
9390 main ()
9391 {
9392
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398
9399   lt_aix_libpath_sed='
9400       /Import File Strings/,/^$/ {
9401           /^0/ {
9402               s/^0  *\([^ ]*\) *$/\1/
9403               p
9404           }
9405       }'
9406   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407   # Check for a 64-bit object if we didn't find anything.
9408   if test -z "$lt_cv_aix_libpath_"; then
9409     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410   fi
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext \
9413     conftest$ac_exeext conftest.$ac_ext
9414   if test -z "$lt_cv_aix_libpath_"; then
9415     lt_cv_aix_libpath_="/usr/lib:/lib"
9416   fi
9417
9418 fi
9419
9420   aix_libpath=$lt_cv_aix_libpath_
9421 fi
9422
9423          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9424           # Warning - without using the other run time loading flags,
9425           # -berok will link without error, but may produce a broken library.
9426           no_undefined_flag=' ${wl}-bernotok'
9427           allow_undefined_flag=' ${wl}-berok'
9428           if test "$with_gnu_ld" = yes; then
9429             # We only use this code for GNU lds that support --whole-archive.
9430             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9431           else
9432             # Exported symbols can be pulled into shared objects from archives
9433             whole_archive_flag_spec='$convenience'
9434           fi
9435           archive_cmds_need_lc=yes
9436           # This is similar to how AIX traditionally builds its shared libraries.
9437           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'
9438         fi
9439       fi
9440       ;;
9441
9442     amigaos*)
9443       case $host_cpu in
9444       powerpc)
9445             # see comment about AmigaOS4 .so support
9446             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447             archive_expsym_cmds=''
9448         ;;
9449       m68k)
9450             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)'
9451             hardcode_libdir_flag_spec='-L$libdir'
9452             hardcode_minus_L=yes
9453         ;;
9454       esac
9455       ;;
9456
9457     bsdi[45]*)
9458       export_dynamic_flag_spec=-rdynamic
9459       ;;
9460
9461     cygwin* | mingw* | pw32* | cegcc*)
9462       # When not using gcc, we currently assume that we are using
9463       # Microsoft Visual C++.
9464       # hardcode_libdir_flag_spec is actually meaningless, as there is
9465       # no search path for DLLs.
9466       case $cc_basename in
9467       cl*)
9468         # Native MSVC
9469         hardcode_libdir_flag_spec=' '
9470         allow_undefined_flag=unsupported
9471         always_export_symbols=yes
9472         file_list_spec='@'
9473         # Tell ltmain to make .lib files, not .a files.
9474         libext=lib
9475         # Tell ltmain to make .dll files, not .so files.
9476         shrext_cmds=".dll"
9477         # FIXME: Setting linknames here is a bad hack.
9478         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9479         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9480             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9481           else
9482             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9483           fi~
9484           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9485           linknames='
9486         # The linker will not automatically build a static lib if we build a DLL.
9487         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9488         enable_shared_with_static_runtimes=yes
9489         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9490         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9491         # Don't use ranlib
9492         old_postinstall_cmds='chmod 644 $oldlib'
9493         postlink_cmds='lt_outputfile="@OUTPUT@"~
9494           lt_tool_outputfile="@TOOL_OUTPUT@"~
9495           case $lt_outputfile in
9496             *.exe|*.EXE) ;;
9497             *)
9498               lt_outputfile="$lt_outputfile.exe"
9499               lt_tool_outputfile="$lt_tool_outputfile.exe"
9500               ;;
9501           esac~
9502           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9503             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9504             $RM "$lt_outputfile.manifest";
9505           fi'
9506         ;;
9507       *)
9508         # Assume MSVC wrapper
9509         hardcode_libdir_flag_spec=' '
9510         allow_undefined_flag=unsupported
9511         # Tell ltmain to make .lib files, not .a files.
9512         libext=lib
9513         # Tell ltmain to make .dll files, not .so files.
9514         shrext_cmds=".dll"
9515         # FIXME: Setting linknames here is a bad hack.
9516         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9517         # The linker will automatically build a .lib file if we build a DLL.
9518         old_archive_from_new_cmds='true'
9519         # FIXME: Should let the user specify the lib program.
9520         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9521         enable_shared_with_static_runtimes=yes
9522         ;;
9523       esac
9524       ;;
9525
9526     darwin* | rhapsody*)
9527
9528
9529   archive_cmds_need_lc=no
9530   hardcode_direct=no
9531   hardcode_automatic=yes
9532   hardcode_shlibpath_var=unsupported
9533   if test "$lt_cv_ld_force_load" = "yes"; then
9534     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\"`'
9535
9536   else
9537     whole_archive_flag_spec=''
9538   fi
9539   link_all_deplibs=yes
9540   allow_undefined_flag="$_lt_dar_allow_undefined"
9541   case $cc_basename in
9542      ifort*) _lt_dar_can_shared=yes ;;
9543      *) _lt_dar_can_shared=$GCC ;;
9544   esac
9545   if test "$_lt_dar_can_shared" = "yes"; then
9546     output_verbose_link_cmd=func_echo_all
9547     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9548     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9549     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}"
9550     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}"
9551
9552   else
9553   ld_shlibs=no
9554   fi
9555
9556       ;;
9557
9558     dgux*)
9559       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560       hardcode_libdir_flag_spec='-L$libdir'
9561       hardcode_shlibpath_var=no
9562       ;;
9563
9564     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9565     # support.  Future versions do this automatically, but an explicit c++rt0.o
9566     # does not break anything, and helps significantly (at the cost of a little
9567     # extra space).
9568     freebsd2.2*)
9569       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9570       hardcode_libdir_flag_spec='-R$libdir'
9571       hardcode_direct=yes
9572       hardcode_shlibpath_var=no
9573       ;;
9574
9575     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9576     freebsd2.*)
9577       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9578       hardcode_direct=yes
9579       hardcode_minus_L=yes
9580       hardcode_shlibpath_var=no
9581       ;;
9582
9583     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9584     freebsd* | dragonfly*)
9585       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9586       hardcode_libdir_flag_spec='-R$libdir'
9587       hardcode_direct=yes
9588       hardcode_shlibpath_var=no
9589       ;;
9590
9591     hpux9*)
9592       if test "$GCC" = yes; then
9593         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'
9594       else
9595         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'
9596       fi
9597       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9598       hardcode_libdir_separator=:
9599       hardcode_direct=yes
9600
9601       # hardcode_minus_L: Not really in the search PATH,
9602       # but as the default location of the library.
9603       hardcode_minus_L=yes
9604       export_dynamic_flag_spec='${wl}-E'
9605       ;;
9606
9607     hpux10*)
9608       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9609         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610       else
9611         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9612       fi
9613       if test "$with_gnu_ld" = no; then
9614         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615         hardcode_libdir_separator=:
9616         hardcode_direct=yes
9617         hardcode_direct_absolute=yes
9618         export_dynamic_flag_spec='${wl}-E'
9619         # hardcode_minus_L: Not really in the search PATH,
9620         # but as the default location of the library.
9621         hardcode_minus_L=yes
9622       fi
9623       ;;
9624
9625     hpux11*)
9626       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9627         case $host_cpu in
9628         hppa*64*)
9629           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630           ;;
9631         ia64*)
9632           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9633           ;;
9634         *)
9635           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9636           ;;
9637         esac
9638       else
9639         case $host_cpu in
9640         hppa*64*)
9641           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642           ;;
9643         ia64*)
9644           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9645           ;;
9646         *)
9647
9648           # Older versions of the 11.00 compiler do not understand -b yet
9649           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9650           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9651 $as_echo_n "checking if $CC understands -b... " >&6; }
9652 if ${lt_cv_prog_compiler__b+:} false; then :
9653   $as_echo_n "(cached) " >&6
9654 else
9655   lt_cv_prog_compiler__b=no
9656    save_LDFLAGS="$LDFLAGS"
9657    LDFLAGS="$LDFLAGS -b"
9658    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9659    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9660      # The linker can only warn and ignore the option if not recognized
9661      # So say no if there are warnings
9662      if test -s conftest.err; then
9663        # Append any errors to the config.log.
9664        cat conftest.err 1>&5
9665        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9666        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9667        if diff conftest.exp conftest.er2 >/dev/null; then
9668          lt_cv_prog_compiler__b=yes
9669        fi
9670      else
9671        lt_cv_prog_compiler__b=yes
9672      fi
9673    fi
9674    $RM -r conftest*
9675    LDFLAGS="$save_LDFLAGS"
9676
9677 fi
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9679 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9680
9681 if test x"$lt_cv_prog_compiler__b" = xyes; then
9682     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683 else
9684     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9685 fi
9686
9687           ;;
9688         esac
9689       fi
9690       if test "$with_gnu_ld" = no; then
9691         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9692         hardcode_libdir_separator=:
9693
9694         case $host_cpu in
9695         hppa*64*|ia64*)
9696           hardcode_direct=no
9697           hardcode_shlibpath_var=no
9698           ;;
9699         *)
9700           hardcode_direct=yes
9701           hardcode_direct_absolute=yes
9702           export_dynamic_flag_spec='${wl}-E'
9703
9704           # hardcode_minus_L: Not really in the search PATH,
9705           # but as the default location of the library.
9706           hardcode_minus_L=yes
9707           ;;
9708         esac
9709       fi
9710       ;;
9711
9712     irix5* | irix6* | nonstopux*)
9713       if test "$GCC" = yes; then
9714         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'
9715         # Try to use the -exported_symbol ld option, if it does not
9716         # work, assume that -exports_file does not work either and
9717         # implicitly export all symbols.
9718         # This should be the same for all languages, so no per-tag cache variable.
9719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9720 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9721 if ${lt_cv_irix_exported_symbol+:} false; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   save_LDFLAGS="$LDFLAGS"
9725            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9726            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h.  */
9728 int foo (void) { return 0; }
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731   lt_cv_irix_exported_symbol=yes
9732 else
9733   lt_cv_irix_exported_symbol=no
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext \
9736     conftest$ac_exeext conftest.$ac_ext
9737            LDFLAGS="$save_LDFLAGS"
9738 fi
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9740 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9741         if test "$lt_cv_irix_exported_symbol" = yes; then
9742           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'
9743         fi
9744       else
9745         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'
9746         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'
9747       fi
9748       archive_cmds_need_lc='no'
9749       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750       hardcode_libdir_separator=:
9751       inherit_rpath=yes
9752       link_all_deplibs=yes
9753       ;;
9754
9755     netbsd* | netbsdelf*-gnu)
9756       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9757         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9758       else
9759         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9760       fi
9761       hardcode_libdir_flag_spec='-R$libdir'
9762       hardcode_direct=yes
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     newsos6)
9767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768       hardcode_direct=yes
9769       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770       hardcode_libdir_separator=:
9771       hardcode_shlibpath_var=no
9772       ;;
9773
9774     *nto* | *qnx*)
9775       ;;
9776
9777     openbsd*)
9778       if test -f /usr/libexec/ld.so; then
9779         hardcode_direct=yes
9780         hardcode_shlibpath_var=no
9781         hardcode_direct_absolute=yes
9782         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9783           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9784           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9785           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9786           export_dynamic_flag_spec='${wl}-E'
9787         else
9788           case $host_os in
9789            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9790              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9791              hardcode_libdir_flag_spec='-R$libdir'
9792              ;;
9793            *)
9794              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9795              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9796              ;;
9797           esac
9798         fi
9799       else
9800         ld_shlibs=no
9801       fi
9802       ;;
9803
9804     os2*)
9805       hardcode_libdir_flag_spec='-L$libdir'
9806       hardcode_minus_L=yes
9807       allow_undefined_flag=unsupported
9808       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'
9809       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9810       ;;
9811
9812     osf3*)
9813       if test "$GCC" = yes; then
9814         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9815         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'
9816       else
9817         allow_undefined_flag=' -expect_unresolved \*'
9818         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'
9819       fi
9820       archive_cmds_need_lc='no'
9821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9822       hardcode_libdir_separator=:
9823       ;;
9824
9825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9826       if test "$GCC" = yes; then
9827         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9828         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'
9829         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830       else
9831         allow_undefined_flag=' -expect_unresolved \*'
9832         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'
9833         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~
9834         $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'
9835
9836         # Both c and cxx compiler support -rpath directly
9837         hardcode_libdir_flag_spec='-rpath $libdir'
9838       fi
9839       archive_cmds_need_lc='no'
9840       hardcode_libdir_separator=:
9841       ;;
9842
9843     solaris*)
9844       no_undefined_flag=' -z defs'
9845       if test "$GCC" = yes; then
9846         wlarc='${wl}'
9847         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9848         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9849           $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'
9850       else
9851         case `$CC -V 2>&1` in
9852         *"Compilers 5.0"*)
9853           wlarc=''
9854           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9856           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9857           ;;
9858         *)
9859           wlarc='${wl}'
9860           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9861           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9862           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9863           ;;
9864         esac
9865       fi
9866       hardcode_libdir_flag_spec='-R$libdir'
9867       hardcode_shlibpath_var=no
9868       case $host_os in
9869       solaris2.[0-5] | solaris2.[0-5].*) ;;
9870       *)
9871         # The compiler driver will combine and reorder linker options,
9872         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9873         # but is careful enough not to reorder.
9874         # Supported since Solaris 2.6 (maybe 2.5.1?)
9875         if test "$GCC" = yes; then
9876           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9877         else
9878           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9879         fi
9880         ;;
9881       esac
9882       link_all_deplibs=yes
9883       ;;
9884
9885     sunos4*)
9886       if test "x$host_vendor" = xsequent; then
9887         # Use $CC to link under sequent, because it throws in some extra .o
9888         # files that make .init and .fini sections work.
9889         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9890       else
9891         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9892       fi
9893       hardcode_libdir_flag_spec='-L$libdir'
9894       hardcode_direct=yes
9895       hardcode_minus_L=yes
9896       hardcode_shlibpath_var=no
9897       ;;
9898
9899     sysv4)
9900       case $host_vendor in
9901         sni)
9902           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903           hardcode_direct=yes # is this really true???
9904         ;;
9905         siemens)
9906           ## LD is ld it makes a PLAMLIB
9907           ## CC just makes a GrossModule.
9908           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9909           reload_cmds='$CC -r -o $output$reload_objs'
9910           hardcode_direct=no
9911         ;;
9912         motorola)
9913           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9915         ;;
9916       esac
9917       runpath_var='LD_RUN_PATH'
9918       hardcode_shlibpath_var=no
9919       ;;
9920
9921     sysv4.3*)
9922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923       hardcode_shlibpath_var=no
9924       export_dynamic_flag_spec='-Bexport'
9925       ;;
9926
9927     sysv4*MP*)
9928       if test -d /usr/nec; then
9929         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930         hardcode_shlibpath_var=no
9931         runpath_var=LD_RUN_PATH
9932         hardcode_runpath_var=yes
9933         ld_shlibs=yes
9934       fi
9935       ;;
9936
9937     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9938       no_undefined_flag='${wl}-z,text'
9939       archive_cmds_need_lc=no
9940       hardcode_shlibpath_var=no
9941       runpath_var='LD_RUN_PATH'
9942
9943       if test "$GCC" = yes; then
9944         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946       else
9947         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949       fi
9950       ;;
9951
9952     sysv5* | sco3.2v5* | sco5v6*)
9953       # Note: We can NOT use -z defs as we might desire, because we do not
9954       # link with -lc, and that would cause any symbols used from libc to
9955       # always be unresolved, which means just about no library would
9956       # ever link correctly.  If we're not using GNU ld we use -z text
9957       # though, which does catch some bad symbols but isn't as heavy-handed
9958       # as -z defs.
9959       no_undefined_flag='${wl}-z,text'
9960       allow_undefined_flag='${wl}-z,nodefs'
9961       archive_cmds_need_lc=no
9962       hardcode_shlibpath_var=no
9963       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9964       hardcode_libdir_separator=':'
9965       link_all_deplibs=yes
9966       export_dynamic_flag_spec='${wl}-Bexport'
9967       runpath_var='LD_RUN_PATH'
9968
9969       if test "$GCC" = yes; then
9970         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972       else
9973         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975       fi
9976       ;;
9977
9978     uts4*)
9979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980       hardcode_libdir_flag_spec='-L$libdir'
9981       hardcode_shlibpath_var=no
9982       ;;
9983
9984     *)
9985       ld_shlibs=no
9986       ;;
9987     esac
9988
9989     if test x$host_vendor = xsni; then
9990       case $host in
9991       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9992         export_dynamic_flag_spec='${wl}-Blargedynsym'
9993         ;;
9994       esac
9995     fi
9996   fi
9997
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9999 $as_echo "$ld_shlibs" >&6; }
10000 test "$ld_shlibs" = no && can_build_shared=no
10001
10002 with_gnu_ld=$with_gnu_ld
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018 #
10019 # Do we need to explicitly link libc?
10020 #
10021 case "x$archive_cmds_need_lc" in
10022 x|xyes)
10023   # Assume -lc should be added
10024   archive_cmds_need_lc=yes
10025
10026   if test "$enable_shared" = yes && test "$GCC" = yes; then
10027     case $archive_cmds in
10028     *'~'*)
10029       # FIXME: we may have to deal with multi-command sequences.
10030       ;;
10031     '$CC '*)
10032       # Test whether the compiler implicitly links with -lc since on some
10033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10034       # to ld, don't add -lc before -lgcc.
10035       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10036 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10037 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040   $RM conftest*
10041         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10042
10043         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10044   (eval $ac_compile) 2>&5
10045   ac_status=$?
10046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10047   test $ac_status = 0; } 2>conftest.err; then
10048           soname=conftest
10049           lib=conftest
10050           libobjs=conftest.$ac_objext
10051           deplibs=
10052           wl=$lt_prog_compiler_wl
10053           pic_flag=$lt_prog_compiler_pic
10054           compiler_flags=-v
10055           linker_flags=-v
10056           verstring=
10057           output_objdir=.
10058           libname=conftest
10059           lt_save_allow_undefined_flag=$allow_undefined_flag
10060           allow_undefined_flag=
10061           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10062   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10063   ac_status=$?
10064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10065   test $ac_status = 0; }
10066           then
10067             lt_cv_archive_cmds_need_lc=no
10068           else
10069             lt_cv_archive_cmds_need_lc=yes
10070           fi
10071           allow_undefined_flag=$lt_save_allow_undefined_flag
10072         else
10073           cat conftest.err 1>&5
10074         fi
10075         $RM conftest*
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10079 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10080       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10081       ;;
10082     esac
10083   fi
10084   ;;
10085 esac
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10240
10241 if test "$GCC" = yes; then
10242   case $host_os in
10243     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10244     *) lt_awk_arg="/^libraries:/" ;;
10245   esac
10246   case $host_os in
10247     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10248     *) lt_sed_strip_eq="s,=/,/,g" ;;
10249   esac
10250   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10251   case $lt_search_path_spec in
10252   *\;*)
10253     # if the path contains ";" then we assume it to be the separator
10254     # otherwise default to the standard path separator (i.e. ":") - it is
10255     # assumed that no part of a normal pathname contains ";" but that should
10256     # okay in the real world where ";" in dirpaths is itself problematic.
10257     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10258     ;;
10259   *)
10260     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10261     ;;
10262   esac
10263   # Ok, now we have the path, separated by spaces, we can step through it
10264   # and add multilib dir if necessary.
10265   lt_tmp_lt_search_path_spec=
10266   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10267   for lt_sys_path in $lt_search_path_spec; do
10268     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10269       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10270     else
10271       test -d "$lt_sys_path" && \
10272         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10273     fi
10274   done
10275   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10276 BEGIN {RS=" "; FS="/|\n";} {
10277   lt_foo="";
10278   lt_count=0;
10279   for (lt_i = NF; lt_i > 0; lt_i--) {
10280     if ($lt_i != "" && $lt_i != ".") {
10281       if ($lt_i == "..") {
10282         lt_count++;
10283       } else {
10284         if (lt_count == 0) {
10285           lt_foo="/" $lt_i lt_foo;
10286         } else {
10287           lt_count--;
10288         }
10289       }
10290     }
10291   }
10292   if (lt_foo != "") { lt_freq[lt_foo]++; }
10293   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10294 }'`
10295   # AWK program above erroneously prepends '/' to C:/dos/paths
10296   # for these hosts.
10297   case $host_os in
10298     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10299       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10300   esac
10301   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10302 else
10303   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10304 fi
10305 library_names_spec=
10306 libname_spec='lib$name'
10307 soname_spec=
10308 shrext_cmds=".so"
10309 postinstall_cmds=
10310 postuninstall_cmds=
10311 finish_cmds=
10312 finish_eval=
10313 shlibpath_var=
10314 shlibpath_overrides_runpath=unknown
10315 version_type=none
10316 dynamic_linker="$host_os ld.so"
10317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10318 need_lib_prefix=unknown
10319 hardcode_into_libs=no
10320
10321 # when you set need_version to no, make sure it does not cause -set_version
10322 # flags to be left without arguments
10323 need_version=unknown
10324
10325 case $host_os in
10326 aix3*)
10327   version_type=linux # correct to gnu/linux during the next big refactor
10328   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10329   shlibpath_var=LIBPATH
10330
10331   # AIX 3 has no versioning support, so we append a major version to the name.
10332   soname_spec='${libname}${release}${shared_ext}$major'
10333   ;;
10334
10335 aix[4-9]*)
10336   version_type=linux # correct to gnu/linux during the next big refactor
10337   need_lib_prefix=no
10338   need_version=no
10339   hardcode_into_libs=yes
10340   if test "$host_cpu" = ia64; then
10341     # AIX 5 supports IA64
10342     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10343     shlibpath_var=LD_LIBRARY_PATH
10344   else
10345     # With GCC up to 2.95.x, collect2 would create an import file
10346     # for dependence libraries.  The import file would start with
10347     # the line `#! .'.  This would cause the generated library to
10348     # depend on `.', always an invalid library.  This was fixed in
10349     # development snapshots of GCC prior to 3.0.
10350     case $host_os in
10351       aix4 | aix4.[01] | aix4.[01].*)
10352       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10353            echo ' yes '
10354            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10355         :
10356       else
10357         can_build_shared=no
10358       fi
10359       ;;
10360     esac
10361     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10362     # soname into executable. Probably we can add versioning support to
10363     # collect2, so additional links can be useful in future.
10364     if test "$aix_use_runtimelinking" = yes; then
10365       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10366       # instead of lib<name>.a to let people know that these are not
10367       # typical AIX shared libraries.
10368       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369     else
10370       # We preserve .a as extension for shared libraries through AIX4.2
10371       # and later when we are not doing run time linking.
10372       library_names_spec='${libname}${release}.a $libname.a'
10373       soname_spec='${libname}${release}${shared_ext}$major'
10374     fi
10375     shlibpath_var=LIBPATH
10376   fi
10377   ;;
10378
10379 amigaos*)
10380   case $host_cpu in
10381   powerpc)
10382     # Since July 2007 AmigaOS4 officially supports .so libraries.
10383     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385     ;;
10386   m68k)
10387     library_names_spec='$libname.ixlibrary $libname.a'
10388     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10389     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'
10390     ;;
10391   esac
10392   ;;
10393
10394 beos*)
10395   library_names_spec='${libname}${shared_ext}'
10396   dynamic_linker="$host_os ld.so"
10397   shlibpath_var=LIBRARY_PATH
10398   ;;
10399
10400 bsdi[45]*)
10401   version_type=linux # correct to gnu/linux during the next big refactor
10402   need_version=no
10403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404   soname_spec='${libname}${release}${shared_ext}$major'
10405   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10408   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10409   # the default ld.so.conf also contains /usr/contrib/lib and
10410   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10411   # libtool to hard-code these into programs
10412   ;;
10413
10414 cygwin* | mingw* | pw32* | cegcc*)
10415   version_type=windows
10416   shrext_cmds=".dll"
10417   need_version=no
10418   need_lib_prefix=no
10419
10420   case $GCC,$cc_basename in
10421   yes,*)
10422     # gcc
10423     library_names_spec='$libname.dll.a'
10424     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10425     postinstall_cmds='base_file=`basename \${file}`~
10426       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10427       dldir=$destdir/`dirname \$dlpath`~
10428       test -d \$dldir || mkdir -p \$dldir~
10429       $install_prog $dir/$dlname \$dldir/$dlname~
10430       chmod a+x \$dldir/$dlname~
10431       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10432         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10433       fi'
10434     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10435       dlpath=$dir/\$dldll~
10436        $RM \$dlpath'
10437     shlibpath_overrides_runpath=yes
10438
10439     case $host_os in
10440     cygwin*)
10441       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10442       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10443
10444       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10445       ;;
10446     mingw* | cegcc*)
10447       # MinGW DLLs use traditional 'lib' prefix
10448       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10449       ;;
10450     pw32*)
10451       # pw32 DLLs use 'pw' prefix rather than 'lib'
10452       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10453       ;;
10454     esac
10455     dynamic_linker='Win32 ld.exe'
10456     ;;
10457
10458   *,cl*)
10459     # Native MSVC
10460     libname_spec='$name'
10461     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10462     library_names_spec='${libname}.dll.lib'
10463
10464     case $build_os in
10465     mingw*)
10466       sys_lib_search_path_spec=
10467       lt_save_ifs=$IFS
10468       IFS=';'
10469       for lt_path in $LIB
10470       do
10471         IFS=$lt_save_ifs
10472         # Let DOS variable expansion print the short 8.3 style file name.
10473         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10474         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10475       done
10476       IFS=$lt_save_ifs
10477       # Convert to MSYS style.
10478       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10479       ;;
10480     cygwin*)
10481       # Convert to unix form, then to dos form, then back to unix form
10482       # but this time dos style (no spaces!) so that the unix form looks
10483       # like /cygdrive/c/PROGRA~1:/cygdr...
10484       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10485       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10486       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10487       ;;
10488     *)
10489       sys_lib_search_path_spec="$LIB"
10490       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10491         # It is most probably a Windows format PATH.
10492         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10493       else
10494         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10495       fi
10496       # FIXME: find the short name or the path components, as spaces are
10497       # common. (e.g. "Program Files" -> "PROGRA~1")
10498       ;;
10499     esac
10500
10501     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10502     postinstall_cmds='base_file=`basename \${file}`~
10503       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10504       dldir=$destdir/`dirname \$dlpath`~
10505       test -d \$dldir || mkdir -p \$dldir~
10506       $install_prog $dir/$dlname \$dldir/$dlname'
10507     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10508       dlpath=$dir/\$dldll~
10509        $RM \$dlpath'
10510     shlibpath_overrides_runpath=yes
10511     dynamic_linker='Win32 link.exe'
10512     ;;
10513
10514   *)
10515     # Assume MSVC wrapper
10516     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10517     dynamic_linker='Win32 ld.exe'
10518     ;;
10519   esac
10520   # FIXME: first we should search . and the directory the executable is in
10521   shlibpath_var=PATH
10522   ;;
10523
10524 darwin* | rhapsody*)
10525   dynamic_linker="$host_os dyld"
10526   version_type=darwin
10527   need_lib_prefix=no
10528   need_version=no
10529   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10530   soname_spec='${libname}${release}${major}$shared_ext'
10531   shlibpath_overrides_runpath=yes
10532   shlibpath_var=DYLD_LIBRARY_PATH
10533   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10534
10535   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10537   ;;
10538
10539 dgux*)
10540   version_type=linux # correct to gnu/linux during the next big refactor
10541   need_lib_prefix=no
10542   need_version=no
10543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10544   soname_spec='${libname}${release}${shared_ext}$major'
10545   shlibpath_var=LD_LIBRARY_PATH
10546   ;;
10547
10548 freebsd* | dragonfly*)
10549   # DragonFly does not have aout.  When/if they implement a new
10550   # versioning mechanism, adjust this.
10551   if test -x /usr/bin/objformat; then
10552     objformat=`/usr/bin/objformat`
10553   else
10554     case $host_os in
10555     freebsd[23].*) objformat=aout ;;
10556     *) objformat=elf ;;
10557     esac
10558   fi
10559   version_type=freebsd-$objformat
10560   case $version_type in
10561     freebsd-elf*)
10562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10563       need_version=no
10564       need_lib_prefix=no
10565       ;;
10566     freebsd-*)
10567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10568       need_version=yes
10569       ;;
10570   esac
10571   shlibpath_var=LD_LIBRARY_PATH
10572   case $host_os in
10573   freebsd2.*)
10574     shlibpath_overrides_runpath=yes
10575     ;;
10576   freebsd3.[01]* | freebsdelf3.[01]*)
10577     shlibpath_overrides_runpath=yes
10578     hardcode_into_libs=yes
10579     ;;
10580   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10581   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10582     shlibpath_overrides_runpath=no
10583     hardcode_into_libs=yes
10584     ;;
10585   *) # from 4.6 on, and DragonFly
10586     shlibpath_overrides_runpath=yes
10587     hardcode_into_libs=yes
10588     ;;
10589   esac
10590   ;;
10591
10592 gnu*)
10593   version_type=linux # correct to gnu/linux during the next big refactor
10594   need_lib_prefix=no
10595   need_version=no
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   shlibpath_var=LD_LIBRARY_PATH
10599   shlibpath_overrides_runpath=no
10600   hardcode_into_libs=yes
10601   ;;
10602
10603 haiku*)
10604   version_type=linux # correct to gnu/linux during the next big refactor
10605   need_lib_prefix=no
10606   need_version=no
10607   dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10611   shlibpath_overrides_runpath=yes
10612   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10613   hardcode_into_libs=yes
10614   ;;
10615
10616 hpux9* | hpux10* | hpux11*)
10617   # Give a soname corresponding to the major version so that dld.sl refuses to
10618   # link against other versions.
10619   version_type=sunos
10620   need_lib_prefix=no
10621   need_version=no
10622   case $host_cpu in
10623   ia64*)
10624     shrext_cmds='.so'
10625     hardcode_into_libs=yes
10626     dynamic_linker="$host_os dld.so"
10627     shlibpath_var=LD_LIBRARY_PATH
10628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630     soname_spec='${libname}${release}${shared_ext}$major'
10631     if test "X$HPUX_IA64_MODE" = X32; then
10632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10633     else
10634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10635     fi
10636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10637     ;;
10638   hppa*64*)
10639     shrext_cmds='.sl'
10640     hardcode_into_libs=yes
10641     dynamic_linker="$host_os dld.sl"
10642     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10643     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645     soname_spec='${libname}${release}${shared_ext}$major'
10646     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10648     ;;
10649   *)
10650     shrext_cmds='.sl'
10651     dynamic_linker="$host_os dld.sl"
10652     shlibpath_var=SHLIB_PATH
10653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655     soname_spec='${libname}${release}${shared_ext}$major'
10656     ;;
10657   esac
10658   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10659   postinstall_cmds='chmod 555 $lib'
10660   # or fails outright, so override atomically:
10661   install_override_mode=555
10662   ;;
10663
10664 interix[3-9]*)
10665   version_type=linux # correct to gnu/linux during the next big refactor
10666   need_lib_prefix=no
10667   need_version=no
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   shlibpath_overrides_runpath=no
10673   hardcode_into_libs=yes
10674   ;;
10675
10676 irix5* | irix6* | nonstopux*)
10677   case $host_os in
10678     nonstopux*) version_type=nonstopux ;;
10679     *)
10680         if test "$lt_cv_prog_gnu_ld" = yes; then
10681                 version_type=linux # correct to gnu/linux during the next big refactor
10682         else
10683                 version_type=irix
10684         fi ;;
10685   esac
10686   need_lib_prefix=no
10687   need_version=no
10688   soname_spec='${libname}${release}${shared_ext}$major'
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10690   case $host_os in
10691   irix5* | nonstopux*)
10692     libsuff= shlibsuff=
10693     ;;
10694   *)
10695     case $LD in # libtool.m4 will add one of these switches to LD
10696     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10697       libsuff= shlibsuff= libmagic=32-bit;;
10698     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10699       libsuff=32 shlibsuff=N32 libmagic=N32;;
10700     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10701       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10702     *) libsuff= shlibsuff= libmagic=never-match;;
10703     esac
10704     ;;
10705   esac
10706   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10707   shlibpath_overrides_runpath=no
10708   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10709   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10710   hardcode_into_libs=yes
10711   ;;
10712
10713 # No shared lib support for Linux oldld, aout, or coff.
10714 linux*oldld* | linux*aout* | linux*coff*)
10715   dynamic_linker=no
10716   ;;
10717
10718 # This must be glibc/ELF.
10719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10720   version_type=linux # correct to gnu/linux during the next big refactor
10721   need_lib_prefix=no
10722   need_version=no
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10726   shlibpath_var=LD_LIBRARY_PATH
10727   shlibpath_overrides_runpath=no
10728
10729   # Some binutils ld are patched to set DT_RUNPATH
10730   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   lt_cv_shlibpath_overrides_runpath=no
10734     save_LDFLAGS=$LDFLAGS
10735     save_libdir=$libdir
10736     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10737          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h.  */
10740
10741 int
10742 main ()
10743 {
10744
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10751   lt_cv_shlibpath_overrides_runpath=yes
10752 fi
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756     LDFLAGS=$save_LDFLAGS
10757     libdir=$save_libdir
10758
10759 fi
10760
10761   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10762
10763   # This implies no fast_install, which is unacceptable.
10764   # Some rework will be needed to allow for fast_install
10765   # before this can be enabled.
10766   hardcode_into_libs=yes
10767
10768   # Append ld.so.conf contents to the search path
10769   if test -f /etc/ld.so.conf; then
10770     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' ' '`
10771     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10772   fi
10773
10774   # We used to test for /lib/ld.so.1 and disable shared libraries on
10775   # powerpc, because MkLinux only supported shared libraries with the
10776   # GNU dynamic linker.  Since this was broken with cross compilers,
10777   # most powerpc-linux boxes support dynamic linking these days and
10778   # people can always --disable-shared, the test was removed, and we
10779   # assume the GNU/Linux dynamic linker is in use.
10780   dynamic_linker='GNU/Linux ld.so'
10781   ;;
10782
10783 netbsdelf*-gnu)
10784   version_type=linux
10785   need_lib_prefix=no
10786   need_version=no
10787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10788   soname_spec='${libname}${release}${shared_ext}$major'
10789   shlibpath_var=LD_LIBRARY_PATH
10790   shlibpath_overrides_runpath=no
10791   hardcode_into_libs=yes
10792   dynamic_linker='NetBSD ld.elf_so'
10793   ;;
10794
10795 netbsd*)
10796   version_type=sunos
10797   need_lib_prefix=no
10798   need_version=no
10799   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10801     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10802     dynamic_linker='NetBSD (a.out) ld.so'
10803   else
10804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10805     soname_spec='${libname}${release}${shared_ext}$major'
10806     dynamic_linker='NetBSD ld.elf_so'
10807   fi
10808   shlibpath_var=LD_LIBRARY_PATH
10809   shlibpath_overrides_runpath=yes
10810   hardcode_into_libs=yes
10811   ;;
10812
10813 newsos6)
10814   version_type=linux # correct to gnu/linux during the next big refactor
10815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816   shlibpath_var=LD_LIBRARY_PATH
10817   shlibpath_overrides_runpath=yes
10818   ;;
10819
10820 *nto* | *qnx*)
10821   version_type=qnx
10822   need_lib_prefix=no
10823   need_version=no
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825   soname_spec='${libname}${release}${shared_ext}$major'
10826   shlibpath_var=LD_LIBRARY_PATH
10827   shlibpath_overrides_runpath=no
10828   hardcode_into_libs=yes
10829   dynamic_linker='ldqnx.so'
10830   ;;
10831
10832 openbsd*)
10833   version_type=sunos
10834   sys_lib_dlsearch_path_spec="/usr/lib"
10835   need_lib_prefix=no
10836   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10837   case $host_os in
10838     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10839     *)                          need_version=no  ;;
10840   esac
10841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10843   shlibpath_var=LD_LIBRARY_PATH
10844   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10845     case $host_os in
10846       openbsd2.[89] | openbsd2.[89].*)
10847         shlibpath_overrides_runpath=no
10848         ;;
10849       *)
10850         shlibpath_overrides_runpath=yes
10851         ;;
10852       esac
10853   else
10854     shlibpath_overrides_runpath=yes
10855   fi
10856   ;;
10857
10858 os2*)
10859   libname_spec='$name'
10860   shrext_cmds=".dll"
10861   need_lib_prefix=no
10862   library_names_spec='$libname${shared_ext} $libname.a'
10863   dynamic_linker='OS/2 ld.exe'
10864   shlibpath_var=LIBPATH
10865   ;;
10866
10867 osf3* | osf4* | osf5*)
10868   version_type=osf
10869   need_lib_prefix=no
10870   need_version=no
10871   soname_spec='${libname}${release}${shared_ext}$major'
10872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873   shlibpath_var=LD_LIBRARY_PATH
10874   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10875   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10876   ;;
10877
10878 rdos*)
10879   dynamic_linker=no
10880   ;;
10881
10882 solaris*)
10883   version_type=linux # correct to gnu/linux during the next big refactor
10884   need_lib_prefix=no
10885   need_version=no
10886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887   soname_spec='${libname}${release}${shared_ext}$major'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   shlibpath_overrides_runpath=yes
10890   hardcode_into_libs=yes
10891   # ldd complains unless libraries are executable
10892   postinstall_cmds='chmod +x $lib'
10893   ;;
10894
10895 sunos4*)
10896   version_type=sunos
10897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10898   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10899   shlibpath_var=LD_LIBRARY_PATH
10900   shlibpath_overrides_runpath=yes
10901   if test "$with_gnu_ld" = yes; then
10902     need_lib_prefix=no
10903   fi
10904   need_version=yes
10905   ;;
10906
10907 sysv4 | sysv4.3*)
10908   version_type=linux # correct to gnu/linux during the next big refactor
10909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910   soname_spec='${libname}${release}${shared_ext}$major'
10911   shlibpath_var=LD_LIBRARY_PATH
10912   case $host_vendor in
10913     sni)
10914       shlibpath_overrides_runpath=no
10915       need_lib_prefix=no
10916       runpath_var=LD_RUN_PATH
10917       ;;
10918     siemens)
10919       need_lib_prefix=no
10920       ;;
10921     motorola)
10922       need_lib_prefix=no
10923       need_version=no
10924       shlibpath_overrides_runpath=no
10925       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10926       ;;
10927   esac
10928   ;;
10929
10930 sysv4*MP*)
10931   if test -d /usr/nec ;then
10932     version_type=linux # correct to gnu/linux during the next big refactor
10933     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10934     soname_spec='$libname${shared_ext}.$major'
10935     shlibpath_var=LD_LIBRARY_PATH
10936   fi
10937   ;;
10938
10939 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10940   version_type=freebsd-elf
10941   need_lib_prefix=no
10942   need_version=no
10943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10944   soname_spec='${libname}${release}${shared_ext}$major'
10945   shlibpath_var=LD_LIBRARY_PATH
10946   shlibpath_overrides_runpath=yes
10947   hardcode_into_libs=yes
10948   if test "$with_gnu_ld" = yes; then
10949     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10950   else
10951     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10952     case $host_os in
10953       sco3.2v5*)
10954         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10955         ;;
10956     esac
10957   fi
10958   sys_lib_dlsearch_path_spec='/usr/lib'
10959   ;;
10960
10961 tpf*)
10962   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10963   version_type=linux # correct to gnu/linux during the next big refactor
10964   need_lib_prefix=no
10965   need_version=no
10966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967   shlibpath_var=LD_LIBRARY_PATH
10968   shlibpath_overrides_runpath=no
10969   hardcode_into_libs=yes
10970   ;;
10971
10972 uts4*)
10973   version_type=linux # correct to gnu/linux during the next big refactor
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   ;;
10978
10979 *)
10980   dynamic_linker=no
10981   ;;
10982 esac
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10984 $as_echo "$dynamic_linker" >&6; }
10985 test "$dynamic_linker" = no && can_build_shared=no
10986
10987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10988 if test "$GCC" = yes; then
10989   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10990 fi
10991
10992 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10993   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10994 fi
10995 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10996   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10997 fi
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11091 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11092 hardcode_action=
11093 if test -n "$hardcode_libdir_flag_spec" ||
11094    test -n "$runpath_var" ||
11095    test "X$hardcode_automatic" = "Xyes" ; then
11096
11097   # We can hardcode non-existent directories.
11098   if test "$hardcode_direct" != no &&
11099      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11100      # have to relink, otherwise we might link with an installed library
11101      # when we should be linking with a yet-to-be-installed one
11102      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11103      test "$hardcode_minus_L" != no; then
11104     # Linking always hardcodes the temporary library directory.
11105     hardcode_action=relink
11106   else
11107     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11108     hardcode_action=immediate
11109   fi
11110 else
11111   # We cannot hardcode anything, or else we can only hardcode existing
11112   # directories.
11113   hardcode_action=unsupported
11114 fi
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11116 $as_echo "$hardcode_action" >&6; }
11117
11118 if test "$hardcode_action" = relink ||
11119    test "$inherit_rpath" = yes; then
11120   # Fast installation is not supported
11121   enable_fast_install=no
11122 elif test "$shlibpath_overrides_runpath" = yes ||
11123      test "$enable_shared" = no; then
11124   # Fast installation is not necessary
11125   enable_fast_install=needless
11126 fi
11127
11128
11129
11130
11131
11132
11133   if test "x$enable_dlopen" != xyes; then
11134   enable_dlopen=unknown
11135   enable_dlopen_self=unknown
11136   enable_dlopen_self_static=unknown
11137 else
11138   lt_cv_dlopen=no
11139   lt_cv_dlopen_libs=
11140
11141   case $host_os in
11142   beos*)
11143     lt_cv_dlopen="load_add_on"
11144     lt_cv_dlopen_libs=
11145     lt_cv_dlopen_self=yes
11146     ;;
11147
11148   mingw* | pw32* | cegcc*)
11149     lt_cv_dlopen="LoadLibrary"
11150     lt_cv_dlopen_libs=
11151     ;;
11152
11153   cygwin*)
11154     lt_cv_dlopen="dlopen"
11155     lt_cv_dlopen_libs=
11156     ;;
11157
11158   darwin*)
11159   # if libdl is installed we need to link against it
11160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11161 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11162 if ${ac_cv_lib_dl_dlopen+:} false; then :
11163   $as_echo_n "(cached) " >&6
11164 else
11165   ac_check_lib_save_LIBS=$LIBS
11166 LIBS="-ldl  $LIBS"
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h.  */
11169
11170 /* Override any GCC internal prototype to avoid an error.
11171    Use char because int might match the return type of a GCC
11172    builtin and then its argument prototype would still apply.  */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char dlopen ();
11177 int
11178 main ()
11179 {
11180 return dlopen ();
11181   ;
11182   return 0;
11183 }
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"; then :
11186   ac_cv_lib_dl_dlopen=yes
11187 else
11188   ac_cv_lib_dl_dlopen=no
11189 fi
11190 rm -f core conftest.err conftest.$ac_objext \
11191     conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_lib_save_LIBS
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11195 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11196 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11198 else
11199
11200     lt_cv_dlopen="dyld"
11201     lt_cv_dlopen_libs=
11202     lt_cv_dlopen_self=yes
11203
11204 fi
11205
11206     ;;
11207
11208   *)
11209     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11210 if test "x$ac_cv_func_shl_load" = xyes; then :
11211   lt_cv_dlopen="shl_load"
11212 else
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11214 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11215 if ${ac_cv_lib_dld_shl_load+:} false; then :
11216   $as_echo_n "(cached) " >&6
11217 else
11218   ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-ldld  $LIBS"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h.  */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224    Use char because int might match the return type of a GCC
11225    builtin and then its argument prototype would still apply.  */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char shl_load ();
11230 int
11231 main ()
11232 {
11233 return shl_load ();
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239   ac_cv_lib_dld_shl_load=yes
11240 else
11241   ac_cv_lib_dld_shl_load=no
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext \
11244     conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11248 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11249 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11250   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11251 else
11252   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11253 if test "x$ac_cv_func_dlopen" = xyes; then :
11254   lt_cv_dlopen="dlopen"
11255 else
11256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11257 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11258 if ${ac_cv_lib_dl_dlopen+:} false; then :
11259   $as_echo_n "(cached) " >&6
11260 else
11261   ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-ldl  $LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h.  */
11265
11266 /* Override any GCC internal prototype to avoid an error.
11267    Use char because int might match the return type of a GCC
11268    builtin and then its argument prototype would still apply.  */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char dlopen ();
11273 int
11274 main ()
11275 {
11276 return dlopen ();
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282   ac_cv_lib_dl_dlopen=yes
11283 else
11284   ac_cv_lib_dl_dlopen=no
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287     conftest$ac_exeext conftest.$ac_ext
11288 LIBS=$ac_check_lib_save_LIBS
11289 fi
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11291 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11292 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11293   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11294 else
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11296 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11297 if ${ac_cv_lib_svld_dlopen+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-lsvld  $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h.  */
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306    Use char because int might match the return type of a GCC
11307    builtin and then its argument prototype would still apply.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dlopen ();
11312 int
11313 main ()
11314 {
11315 return dlopen ();
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321   ac_cv_lib_svld_dlopen=yes
11322 else
11323   ac_cv_lib_svld_dlopen=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11330 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11331 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11335 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11336 if ${ac_cv_lib_dld_dld_link+:} false; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-ldld  $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h.  */
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345    Use char because int might match the return type of a GCC
11346    builtin and then its argument prototype would still apply.  */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char dld_link ();
11351 int
11352 main ()
11353 {
11354 return dld_link ();
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360   ac_cv_lib_dld_dld_link=yes
11361 else
11362   ac_cv_lib_dld_dld_link=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365     conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11369 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11370 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11371   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11372 fi
11373
11374
11375 fi
11376
11377
11378 fi
11379
11380
11381 fi
11382
11383
11384 fi
11385
11386
11387 fi
11388
11389     ;;
11390   esac
11391
11392   if test "x$lt_cv_dlopen" != xno; then
11393     enable_dlopen=yes
11394   else
11395     enable_dlopen=no
11396   fi
11397
11398   case $lt_cv_dlopen in
11399   dlopen)
11400     save_CPPFLAGS="$CPPFLAGS"
11401     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11402
11403     save_LDFLAGS="$LDFLAGS"
11404     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11405
11406     save_LIBS="$LIBS"
11407     LIBS="$lt_cv_dlopen_libs $LIBS"
11408
11409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11410 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11411 if ${lt_cv_dlopen_self+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414           if test "$cross_compiling" = yes; then :
11415   lt_cv_dlopen_self=cross
11416 else
11417   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11418   lt_status=$lt_dlunknown
11419   cat > conftest.$ac_ext <<_LT_EOF
11420 #line $LINENO "configure"
11421 #include "confdefs.h"
11422
11423 #if HAVE_DLFCN_H
11424 #include <dlfcn.h>
11425 #endif
11426
11427 #include <stdio.h>
11428
11429 #ifdef RTLD_GLOBAL
11430 #  define LT_DLGLOBAL           RTLD_GLOBAL
11431 #else
11432 #  ifdef DL_GLOBAL
11433 #    define LT_DLGLOBAL         DL_GLOBAL
11434 #  else
11435 #    define LT_DLGLOBAL         0
11436 #  endif
11437 #endif
11438
11439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11440    find out it does not work in some platform. */
11441 #ifndef LT_DLLAZY_OR_NOW
11442 #  ifdef RTLD_LAZY
11443 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11444 #  else
11445 #    ifdef DL_LAZY
11446 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11447 #    else
11448 #      ifdef RTLD_NOW
11449 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11450 #      else
11451 #        ifdef DL_NOW
11452 #          define LT_DLLAZY_OR_NOW      DL_NOW
11453 #        else
11454 #          define LT_DLLAZY_OR_NOW      0
11455 #        endif
11456 #      endif
11457 #    endif
11458 #  endif
11459 #endif
11460
11461 /* When -fvisbility=hidden is used, assume the code has been annotated
11462    correspondingly for the symbols needed.  */
11463 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11464 int fnord () __attribute__((visibility("default")));
11465 #endif
11466
11467 int fnord () { return 42; }
11468 int main ()
11469 {
11470   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11471   int status = $lt_dlunknown;
11472
11473   if (self)
11474     {
11475       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11476       else
11477         {
11478           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11479           else puts (dlerror ());
11480         }
11481       /* dlclose (self); */
11482     }
11483   else
11484     puts (dlerror ());
11485
11486   return status;
11487 }
11488 _LT_EOF
11489   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11490   (eval $ac_link) 2>&5
11491   ac_status=$?
11492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11494     (./conftest; exit; ) >&5 2>/dev/null
11495     lt_status=$?
11496     case x$lt_status in
11497       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11498       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11499       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11500     esac
11501   else :
11502     # compilation failed
11503     lt_cv_dlopen_self=no
11504   fi
11505 fi
11506 rm -fr conftest*
11507
11508
11509 fi
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11511 $as_echo "$lt_cv_dlopen_self" >&6; }
11512
11513     if test "x$lt_cv_dlopen_self" = xyes; then
11514       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11516 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11517 if ${lt_cv_dlopen_self_static+:} false; then :
11518   $as_echo_n "(cached) " >&6
11519 else
11520           if test "$cross_compiling" = yes; then :
11521   lt_cv_dlopen_self_static=cross
11522 else
11523   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11524   lt_status=$lt_dlunknown
11525   cat > conftest.$ac_ext <<_LT_EOF
11526 #line $LINENO "configure"
11527 #include "confdefs.h"
11528
11529 #if HAVE_DLFCN_H
11530 #include <dlfcn.h>
11531 #endif
11532
11533 #include <stdio.h>
11534
11535 #ifdef RTLD_GLOBAL
11536 #  define LT_DLGLOBAL           RTLD_GLOBAL
11537 #else
11538 #  ifdef DL_GLOBAL
11539 #    define LT_DLGLOBAL         DL_GLOBAL
11540 #  else
11541 #    define LT_DLGLOBAL         0
11542 #  endif
11543 #endif
11544
11545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11546    find out it does not work in some platform. */
11547 #ifndef LT_DLLAZY_OR_NOW
11548 #  ifdef RTLD_LAZY
11549 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11550 #  else
11551 #    ifdef DL_LAZY
11552 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11553 #    else
11554 #      ifdef RTLD_NOW
11555 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11556 #      else
11557 #        ifdef DL_NOW
11558 #          define LT_DLLAZY_OR_NOW      DL_NOW
11559 #        else
11560 #          define LT_DLLAZY_OR_NOW      0
11561 #        endif
11562 #      endif
11563 #    endif
11564 #  endif
11565 #endif
11566
11567 /* When -fvisbility=hidden is used, assume the code has been annotated
11568    correspondingly for the symbols needed.  */
11569 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11570 int fnord () __attribute__((visibility("default")));
11571 #endif
11572
11573 int fnord () { return 42; }
11574 int main ()
11575 {
11576   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11577   int status = $lt_dlunknown;
11578
11579   if (self)
11580     {
11581       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11582       else
11583         {
11584           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11585           else puts (dlerror ());
11586         }
11587       /* dlclose (self); */
11588     }
11589   else
11590     puts (dlerror ());
11591
11592   return status;
11593 }
11594 _LT_EOF
11595   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11596   (eval $ac_link) 2>&5
11597   ac_status=$?
11598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11600     (./conftest; exit; ) >&5 2>/dev/null
11601     lt_status=$?
11602     case x$lt_status in
11603       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11604       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11605       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11606     esac
11607   else :
11608     # compilation failed
11609     lt_cv_dlopen_self_static=no
11610   fi
11611 fi
11612 rm -fr conftest*
11613
11614
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11617 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11618     fi
11619
11620     CPPFLAGS="$save_CPPFLAGS"
11621     LDFLAGS="$save_LDFLAGS"
11622     LIBS="$save_LIBS"
11623     ;;
11624   esac
11625
11626   case $lt_cv_dlopen_self in
11627   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11628   *) enable_dlopen_self=unknown ;;
11629   esac
11630
11631   case $lt_cv_dlopen_self_static in
11632   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11633   *) enable_dlopen_self_static=unknown ;;
11634   esac
11635 fi
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653 striplib=
11654 old_striplib=
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11656 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11657 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11658   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11659   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11661 $as_echo "yes" >&6; }
11662 else
11663 # FIXME - insert some real tests, host_os isn't really good enough
11664   case $host_os in
11665   darwin*)
11666     if test -n "$STRIP" ; then
11667       striplib="$STRIP -x"
11668       old_striplib="$STRIP -S"
11669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11670 $as_echo "yes" >&6; }
11671     else
11672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674     fi
11675     ;;
11676   *)
11677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679     ;;
11680   esac
11681 fi
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694   # Report which library types will actually be built
11695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11696 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11698 $as_echo "$can_build_shared" >&6; }
11699
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11701 $as_echo_n "checking whether to build shared libraries... " >&6; }
11702   test "$can_build_shared" = "no" && enable_shared=no
11703
11704   # On AIX, shared libraries and static libraries use the same namespace, and
11705   # are all built from PIC.
11706   case $host_os in
11707   aix3*)
11708     test "$enable_shared" = yes && enable_static=no
11709     if test -n "$RANLIB"; then
11710       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11711       postinstall_cmds='$RANLIB $lib'
11712     fi
11713     ;;
11714
11715   aix[4-9]*)
11716     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11717       test "$enable_shared" = yes && enable_static=no
11718     fi
11719     ;;
11720   esac
11721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11722 $as_echo "$enable_shared" >&6; }
11723
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11725 $as_echo_n "checking whether to build static libraries... " >&6; }
11726   # Make sure either enable_shared or enable_static is yes.
11727   test "$enable_shared" = yes || enable_static=yes
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11729 $as_echo "$enable_static" >&6; }
11730
11731
11732
11733
11734 fi
11735 ac_ext=c
11736 ac_cpp='$CPP $CPPFLAGS'
11737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11740
11741 CC="$lt_save_CC"
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757         ac_config_commands="$ac_config_commands libtool"
11758
11759
11760
11761
11762 # Only expand once:
11763
11764
11765
11766 # Checks for programs.
11767
11768
11769
11770
11771
11772
11773
11774 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11775         if test -n "$ac_tool_prefix"; then
11776   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   case $PKG_CONFIG in
11784   [\\/]* | ?:[\\/]*)
11785   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11786   ;;
11787   *)
11788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793     for ac_exec_ext in '' $ac_executable_extensions; do
11794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800   done
11801 IFS=$as_save_IFS
11802
11803   ;;
11804 esac
11805 fi
11806 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11807 if test -n "$PKG_CONFIG"; then
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11809 $as_echo "$PKG_CONFIG" >&6; }
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815
11816 fi
11817 if test -z "$ac_cv_path_PKG_CONFIG"; then
11818   ac_pt_PKG_CONFIG=$PKG_CONFIG
11819   # Extract the first word of "pkg-config", so it can be a program name with args.
11820 set dummy pkg-config; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   case $ac_pt_PKG_CONFIG in
11827   [\\/]* | ?:[\\/]*)
11828   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11829   ;;
11830   *)
11831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834   IFS=$as_save_IFS
11835   test -z "$as_dir" && as_dir=.
11836     for ac_exec_ext in '' $ac_executable_extensions; do
11837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11838     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840     break 2
11841   fi
11842 done
11843   done
11844 IFS=$as_save_IFS
11845
11846   ;;
11847 esac
11848 fi
11849 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11850 if test -n "$ac_pt_PKG_CONFIG"; then
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11852 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11853 else
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857
11858   if test "x$ac_pt_PKG_CONFIG" = x; then
11859     PKG_CONFIG=""
11860   else
11861     case $cross_compiling:$ac_tool_warned in
11862 yes:)
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11865 ac_tool_warned=yes ;;
11866 esac
11867     PKG_CONFIG=$ac_pt_PKG_CONFIG
11868   fi
11869 else
11870   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11871 fi
11872
11873 fi
11874 if test -n "$PKG_CONFIG"; then
11875         _pkg_min_version=0.23
11876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11877 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11878         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11879                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11880 $as_echo "yes" >&6; }
11881         else
11882                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884                 PKG_CONFIG=""
11885         fi
11886 fi
11887 ac_ext=c
11888 ac_cpp='$CPP $CPPFLAGS'
11889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11892 if test -n "$ac_tool_prefix"; then
11893   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_prog_CC+:} false; then :
11898   $as_echo_n "(cached) " >&6
11899 else
11900   if test -n "$CC"; then
11901   ac_cv_prog_CC="$CC" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11905 do
11906   IFS=$as_save_IFS
11907   test -z "$as_dir" && as_dir=.
11908     for ac_exec_ext in '' $ac_executable_extensions; do
11909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11910     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912     break 2
11913   fi
11914 done
11915   done
11916 IFS=$as_save_IFS
11917
11918 fi
11919 fi
11920 CC=$ac_cv_prog_CC
11921 if test -n "$CC"; then
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11923 $as_echo "$CC" >&6; }
11924 else
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11927 fi
11928
11929
11930 fi
11931 if test -z "$ac_cv_prog_CC"; then
11932   ac_ct_CC=$CC
11933   # Extract the first word of "gcc", so it can be a program name with args.
11934 set dummy gcc; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11938   $as_echo_n "(cached) " >&6
11939 else
11940   if test -n "$ac_ct_CC"; then
11941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11942 else
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11945 do
11946   IFS=$as_save_IFS
11947   test -z "$as_dir" && as_dir=.
11948     for ac_exec_ext in '' $ac_executable_extensions; do
11949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11950     ac_cv_prog_ac_ct_CC="gcc"
11951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952     break 2
11953   fi
11954 done
11955   done
11956 IFS=$as_save_IFS
11957
11958 fi
11959 fi
11960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11961 if test -n "$ac_ct_CC"; then
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11963 $as_echo "$ac_ct_CC" >&6; }
11964 else
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11967 fi
11968
11969   if test "x$ac_ct_CC" = x; then
11970     CC=""
11971   else
11972     case $cross_compiling:$ac_tool_warned in
11973 yes:)
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11976 ac_tool_warned=yes ;;
11977 esac
11978     CC=$ac_ct_CC
11979   fi
11980 else
11981   CC="$ac_cv_prog_CC"
11982 fi
11983
11984 if test -z "$CC"; then
11985           if test -n "$ac_tool_prefix"; then
11986     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11987 set dummy ${ac_tool_prefix}cc; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if ${ac_cv_prog_CC+:} false; then :
11991   $as_echo_n "(cached) " >&6
11992 else
11993   if test -n "$CC"; then
11994   ac_cv_prog_CC="$CC" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999   IFS=$as_save_IFS
12000   test -z "$as_dir" && as_dir=.
12001     for ac_exec_ext in '' $ac_executable_extensions; do
12002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003     ac_cv_prog_CC="${ac_tool_prefix}cc"
12004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005     break 2
12006   fi
12007 done
12008   done
12009 IFS=$as_save_IFS
12010
12011 fi
12012 fi
12013 CC=$ac_cv_prog_CC
12014 if test -n "$CC"; then
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12016 $as_echo "$CC" >&6; }
12017 else
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 fi
12021
12022
12023   fi
12024 fi
12025 if test -z "$CC"; then
12026   # Extract the first word of "cc", so it can be a program name with args.
12027 set dummy cc; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if ${ac_cv_prog_CC+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   if test -n "$CC"; then
12034   ac_cv_prog_CC="$CC" # Let the user override the test.
12035 else
12036   ac_prog_rejected=no
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12039 do
12040   IFS=$as_save_IFS
12041   test -z "$as_dir" && as_dir=.
12042     for ac_exec_ext in '' $ac_executable_extensions; do
12043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12044     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12045        ac_prog_rejected=yes
12046        continue
12047      fi
12048     ac_cv_prog_CC="cc"
12049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053   done
12054 IFS=$as_save_IFS
12055
12056 if test $ac_prog_rejected = yes; then
12057   # We found a bogon in the path, so make sure we never use it.
12058   set dummy $ac_cv_prog_CC
12059   shift
12060   if test $# != 0; then
12061     # We chose a different compiler from the bogus one.
12062     # However, it has the same basename, so the bogon will be chosen
12063     # first if we set CC to just the basename; use the full file name.
12064     shift
12065     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12066   fi
12067 fi
12068 fi
12069 fi
12070 CC=$ac_cv_prog_CC
12071 if test -n "$CC"; then
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12073 $as_echo "$CC" >&6; }
12074 else
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078
12079
12080 fi
12081 if test -z "$CC"; then
12082   if test -n "$ac_tool_prefix"; then
12083   for ac_prog in cl.exe
12084   do
12085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_CC+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092   if test -n "$CC"; then
12093   ac_cv_prog_CC="$CC" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098   IFS=$as_save_IFS
12099   test -z "$as_dir" && as_dir=.
12100     for ac_exec_ext in '' $ac_executable_extensions; do
12101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104     break 2
12105   fi
12106 done
12107   done
12108 IFS=$as_save_IFS
12109
12110 fi
12111 fi
12112 CC=$ac_cv_prog_CC
12113 if test -n "$CC"; then
12114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12115 $as_echo "$CC" >&6; }
12116 else
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 fi
12120
12121
12122     test -n "$CC" && break
12123   done
12124 fi
12125 if test -z "$CC"; then
12126   ac_ct_CC=$CC
12127   for ac_prog in cl.exe
12128 do
12129   # Extract the first word of "$ac_prog", so it can be a program name with args.
12130 set dummy $ac_prog; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   if test -n "$ac_ct_CC"; then
12137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12138 else
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12141 do
12142   IFS=$as_save_IFS
12143   test -z "$as_dir" && as_dir=.
12144     for ac_exec_ext in '' $ac_executable_extensions; do
12145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146     ac_cv_prog_ac_ct_CC="$ac_prog"
12147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148     break 2
12149   fi
12150 done
12151   done
12152 IFS=$as_save_IFS
12153
12154 fi
12155 fi
12156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12157 if test -n "$ac_ct_CC"; then
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12159 $as_echo "$ac_ct_CC" >&6; }
12160 else
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 fi
12164
12165
12166   test -n "$ac_ct_CC" && break
12167 done
12168
12169   if test "x$ac_ct_CC" = x; then
12170     CC=""
12171   else
12172     case $cross_compiling:$ac_tool_warned in
12173 yes:)
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12176 ac_tool_warned=yes ;;
12177 esac
12178     CC=$ac_ct_CC
12179   fi
12180 fi
12181
12182 fi
12183
12184
12185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12187 as_fn_error $? "no acceptable C compiler found in \$PATH
12188 See \`config.log' for more details" "$LINENO" 5; }
12189
12190 # Provide some information about the compiler.
12191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12192 set X $ac_compile
12193 ac_compiler=$2
12194 for ac_option in --version -v -V -qversion; do
12195   { { ac_try="$ac_compiler $ac_option >&5"
12196 case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12201 $as_echo "$ac_try_echo"; } >&5
12202   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12203   ac_status=$?
12204   if test -s conftest.err; then
12205     sed '10a\
12206 ... rest of stderr output deleted ...
12207          10q' conftest.err >conftest.er1
12208     cat conftest.er1 >&5
12209   fi
12210   rm -f conftest.er1 conftest.err
12211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212   test $ac_status = 0; }
12213 done
12214
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12217 if ${ac_cv_c_compiler_gnu+:} false; then :
12218   $as_echo_n "(cached) " >&6
12219 else
12220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h.  */
12222
12223 int
12224 main ()
12225 {
12226 #ifndef __GNUC__
12227        choke me
12228 #endif
12229
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_compile "$LINENO"; then :
12235   ac_compiler_gnu=yes
12236 else
12237   ac_compiler_gnu=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12241
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12244 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12245 if test $ac_compiler_gnu = yes; then
12246   GCC=yes
12247 else
12248   GCC=
12249 fi
12250 ac_test_CFLAGS=${CFLAGS+set}
12251 ac_save_CFLAGS=$CFLAGS
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12253 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12254 if ${ac_cv_prog_cc_g+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   ac_save_c_werror_flag=$ac_c_werror_flag
12258    ac_c_werror_flag=yes
12259    ac_cv_prog_cc_g=no
12260    CFLAGS="-g"
12261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h.  */
12263
12264 int
12265 main ()
12266 {
12267
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_compile "$LINENO"; then :
12273   ac_cv_prog_cc_g=yes
12274 else
12275   CFLAGS=""
12276       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278
12279 int
12280 main ()
12281 {
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_compile "$LINENO"; then :
12288
12289 else
12290   ac_c_werror_flag=$ac_save_c_werror_flag
12291          CFLAGS="-g"
12292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294
12295 int
12296 main ()
12297 {
12298
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_compile "$LINENO"; then :
12304   ac_cv_prog_cc_g=yes
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12311    ac_c_werror_flag=$ac_save_c_werror_flag
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12314 $as_echo "$ac_cv_prog_cc_g" >&6; }
12315 if test "$ac_test_CFLAGS" = set; then
12316   CFLAGS=$ac_save_CFLAGS
12317 elif test $ac_cv_prog_cc_g = yes; then
12318   if test "$GCC" = yes; then
12319     CFLAGS="-g -O2"
12320   else
12321     CFLAGS="-g"
12322   fi
12323 else
12324   if test "$GCC" = yes; then
12325     CFLAGS="-O2"
12326   else
12327     CFLAGS=
12328   fi
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12331 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12332 if ${ac_cv_prog_cc_c89+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   ac_cv_prog_cc_c89=no
12336 ac_save_CC=$CC
12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h.  */
12339 #include <stdarg.h>
12340 #include <stdio.h>
12341 #include <sys/types.h>
12342 #include <sys/stat.h>
12343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12344 struct buf { int x; };
12345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12346 static char *e (p, i)
12347      char **p;
12348      int i;
12349 {
12350   return p[i];
12351 }
12352 static char *f (char * (*g) (char **, int), char **p, ...)
12353 {
12354   char *s;
12355   va_list v;
12356   va_start (v,p);
12357   s = g (p, va_arg (v,int));
12358   va_end (v);
12359   return s;
12360 }
12361
12362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12363    function prototypes and stuff, but not '\xHH' hex character constants.
12364    These don't provoke an error unfortunately, instead are silently treated
12365    as 'x'.  The following induces an error, until -std is added to get
12366    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12367    array size at least.  It's necessary to write '\x00'==0 to get something
12368    that's true only with -std.  */
12369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12370
12371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12372    inside strings and character constants.  */
12373 #define FOO(x) 'x'
12374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12375
12376 int test (int i, double x);
12377 struct s1 {int (*f) (int a);};
12378 struct s2 {int (*f) (double a);};
12379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12380 int argc;
12381 char **argv;
12382 int
12383 main ()
12384 {
12385 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12391         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12392 do
12393   CC="$ac_save_CC $ac_arg"
12394   if ac_fn_c_try_compile "$LINENO"; then :
12395   ac_cv_prog_cc_c89=$ac_arg
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext
12398   test "x$ac_cv_prog_cc_c89" != "xno" && break
12399 done
12400 rm -f conftest.$ac_ext
12401 CC=$ac_save_CC
12402
12403 fi
12404 # AC_CACHE_VAL
12405 case "x$ac_cv_prog_cc_c89" in
12406   x)
12407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12408 $as_echo "none needed" >&6; } ;;
12409   xno)
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12411 $as_echo "unsupported" >&6; } ;;
12412   *)
12413     CC="$CC $ac_cv_prog_cc_c89"
12414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12416 esac
12417 if test "x$ac_cv_prog_cc_c89" != xno; then :
12418
12419 fi
12420
12421 ac_ext=c
12422 ac_cpp='$CPP $CPPFLAGS'
12423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12426
12427 depcc="$CC"   am_compiler_list=
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12430 $as_echo_n "checking dependency style of $depcc... " >&6; }
12431 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12435   # We make a subdir and do the tests there.  Otherwise we can end up
12436   # making bogus files that we don't know about and never remove.  For
12437   # instance it was reported that on HP-UX the gcc test will end up
12438   # making a dummy file named `D' -- because `-MD' means `put the output
12439   # in D'.
12440   rm -rf conftest.dir
12441   mkdir conftest.dir
12442   # Copy depcomp to subdir because otherwise we won't find it if we're
12443   # using a relative directory.
12444   cp "$am_depcomp" conftest.dir
12445   cd conftest.dir
12446   # We will build objects and dependencies in a subdirectory because
12447   # it helps to detect inapplicable dependency modes.  For instance
12448   # both Tru64's cc and ICC support -MD to output dependencies as a
12449   # side effect of compilation, but ICC will put the dependencies in
12450   # the current directory while Tru64 will put them in the object
12451   # directory.
12452   mkdir sub
12453
12454   am_cv_CC_dependencies_compiler_type=none
12455   if test "$am_compiler_list" = ""; then
12456      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12457   fi
12458   am__universal=false
12459   case " $depcc " in #(
12460      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12461      esac
12462
12463   for depmode in $am_compiler_list; do
12464     # Setup a source with many dependencies, because some compilers
12465     # like to wrap large dependency lists on column 80 (with \), and
12466     # we should not choose a depcomp mode which is confused by this.
12467     #
12468     # We need to recreate these files for each test, as the compiler may
12469     # overwrite some of them when testing with obscure command lines.
12470     # This happens at least with the AIX C compiler.
12471     : > sub/conftest.c
12472     for i in 1 2 3 4 5 6; do
12473       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12474       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12475       # Solaris 8's {/usr,}/bin/sh.
12476       touch sub/conftst$i.h
12477     done
12478     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12479
12480     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12481     # mode.  It turns out that the SunPro C++ compiler does not properly
12482     # handle `-M -o', and we need to detect this.  Also, some Intel
12483     # versions had trouble with output in subdirs
12484     am__obj=sub/conftest.${OBJEXT-o}
12485     am__minus_obj="-o $am__obj"
12486     case $depmode in
12487     gcc)
12488       # This depmode causes a compiler race in universal mode.
12489       test "$am__universal" = false || continue
12490       ;;
12491     nosideeffect)
12492       # after this tag, mechanisms are not by side-effect, so they'll
12493       # only be used when explicitly requested
12494       if test "x$enable_dependency_tracking" = xyes; then
12495         continue
12496       else
12497         break
12498       fi
12499       ;;
12500     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12501       # This compiler won't grok `-c -o', but also, the minuso test has
12502       # not run yet.  These depmodes are late enough in the game, and
12503       # so weak that their functioning should not be impacted.
12504       am__obj=conftest.${OBJEXT-o}
12505       am__minus_obj=
12506       ;;
12507     none) break ;;
12508     esac
12509     if depmode=$depmode \
12510        source=sub/conftest.c object=$am__obj \
12511        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12512        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12513          >/dev/null 2>conftest.err &&
12514        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12515        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12516        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12517        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12518       # icc doesn't choke on unknown options, it will just issue warnings
12519       # or remarks (even with -Werror).  So we grep stderr for any message
12520       # that says an option was ignored or not supported.
12521       # When given -MP, icc 7.0 and 7.1 complain thusly:
12522       #   icc: Command line warning: ignoring option '-M'; no argument required
12523       # The diagnosis changed in icc 8.0:
12524       #   icc: Command line remark: option '-MP' not supported
12525       if (grep 'ignoring option' conftest.err ||
12526           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12527         am_cv_CC_dependencies_compiler_type=$depmode
12528         break
12529       fi
12530     fi
12531   done
12532
12533   cd ..
12534   rm -rf conftest.dir
12535 else
12536   am_cv_CC_dependencies_compiler_type=none
12537 fi
12538
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12541 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12542 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12543
12544  if
12545   test "x$enable_dependency_tracking" != xno \
12546   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12547   am__fastdepCC_TRUE=
12548   am__fastdepCC_FALSE='#'
12549 else
12550   am__fastdepCC_TRUE='#'
12551   am__fastdepCC_FALSE=
12552 fi
12553
12554
12555 if test "x$CC" != xcc; then
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12557 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12558 else
12559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12560 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12561 fi
12562 set dummy $CC; ac_cc=`$as_echo "$2" |
12563                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12564 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12565   $as_echo_n "(cached) " >&6
12566 else
12567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h.  */
12569
12570 int
12571 main ()
12572 {
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 # Make sure it works both with $CC and with simple cc.
12579 # We do the test twice because some compilers refuse to overwrite an
12580 # existing .o file with -o, though they will create one.
12581 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12582 rm -f conftest2.*
12583 if { { 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_try") 2>&5
12590   ac_status=$?
12591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12592   test $ac_status = 0; } &&
12593    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595   *) ac_try_echo=$ac_try;;
12596 esac
12597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12598 $as_echo "$ac_try_echo"; } >&5
12599   (eval "$ac_try") 2>&5
12600   ac_status=$?
12601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12602   test $ac_status = 0; };
12603 then
12604   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12605   if test "x$CC" != xcc; then
12606     # Test first that cc exists at all.
12607     if { ac_try='cc -c conftest.$ac_ext >&5'
12608   { { case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12613 $as_echo "$ac_try_echo"; } >&5
12614   (eval "$ac_try") 2>&5
12615   ac_status=$?
12616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617   test $ac_status = 0; }; }; then
12618       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12619       rm -f conftest2.*
12620       if { { case "(($ac_try" in
12621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622   *) ac_try_echo=$ac_try;;
12623 esac
12624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12625 $as_echo "$ac_try_echo"; } >&5
12626   (eval "$ac_try") 2>&5
12627   ac_status=$?
12628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629   test $ac_status = 0; } &&
12630          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12635 $as_echo "$ac_try_echo"; } >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639   test $ac_status = 0; };
12640       then
12641         # cc works too.
12642         :
12643       else
12644         # cc exists but doesn't like -o.
12645         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12646       fi
12647     fi
12648   fi
12649 else
12650   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12651 fi
12652 rm -f core conftest*
12653
12654 fi
12655 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12657 $as_echo "yes" >&6; }
12658 else
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12661
12662 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12663
12664 fi
12665
12666 # FIXME: we rely on the cache variable name because
12667 # there is no other way.
12668 set dummy $CC
12669 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12670 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12671 if test "$am_t" != yes; then
12672    # Losing compiler, so override with the script.
12673    # FIXME: It is wrong to rewrite CC.
12674    # But if we don't then we get into trouble of one sort or another.
12675    # A longer-term fix would be to have automake use am__CC in this case,
12676    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12677    CC="$am_aux_dir/compile $CC"
12678 fi
12679
12680
12681 # Extract the first word of "valac", so it can be a program name with args.
12682 set dummy valac; ac_word=$2
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 $as_echo_n "checking for $ac_word... " >&6; }
12685 if ${ac_cv_path_VALAC+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   case $VALAC in
12689   [\\/]* | ?:[\\/]*)
12690   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12691   ;;
12692   *)
12693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12695 do
12696   IFS=$as_save_IFS
12697   test -z "$as_dir" && as_dir=.
12698     for ac_exec_ext in '' $ac_executable_extensions; do
12699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702     break 2
12703   fi
12704 done
12705   done
12706 IFS=$as_save_IFS
12707
12708   ;;
12709 esac
12710 fi
12711 VALAC=$ac_cv_path_VALAC
12712 if test -n "$VALAC"; then
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12714 $as_echo "$VALAC" >&6; }
12715 else
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721  if test -z "$VALAC"; then :
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
12723 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
12724 else
12725   if test -n "0.9"; then :
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
12727 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
12728        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12729        as_arg_v1=0.9
12730 as_arg_v2="$am__vala_version"
12731 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12732 case $? in #(
12733   1) :
12734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12735 $as_echo "yes" >&6; } ;; #(
12736   0) :
12737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738 $as_echo "yes" >&6; } ;; #(
12739   2) :
12740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5 ;; #(
12743   *) :
12744      ;;
12745 esac
12746 fi
12747 fi
12748
12749
12750 # Platform checks
12751
12752
12753 case "$host" in
12754   *-*-mingw*)
12755     win32=yes
12756     macos=no
12757     linux=no
12758     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12759     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12760
12761 pkg_failed=no
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12763 $as_echo_n "checking for GTK... " >&6; }
12764
12765 if test -n "$GTK_CFLAGS"; then
12766     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12767  elif test -n "$PKG_CONFIG"; then
12768     if test -n "$PKG_CONFIG" && \
12769     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12770   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12771   ac_status=$?
12772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773   test $ac_status = 0; }; then
12774   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12775                       test "x$?" != "x0" && pkg_failed=yes
12776 else
12777   pkg_failed=yes
12778 fi
12779  else
12780     pkg_failed=untried
12781 fi
12782 if test -n "$GTK_LIBS"; then
12783     pkg_cv_GTK_LIBS="$GTK_LIBS"
12784  elif test -n "$PKG_CONFIG"; then
12785     if test -n "$PKG_CONFIG" && \
12786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12787   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12788   ac_status=$?
12789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790   test $ac_status = 0; }; then
12791   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12792                       test "x$?" != "x0" && pkg_failed=yes
12793 else
12794   pkg_failed=yes
12795 fi
12796  else
12797     pkg_failed=untried
12798 fi
12799
12800
12801
12802 if test $pkg_failed = yes; then
12803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12805
12806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12807         _pkg_short_errors_supported=yes
12808 else
12809         _pkg_short_errors_supported=no
12810 fi
12811         if test $_pkg_short_errors_supported = yes; then
12812                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12813         else
12814                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12815         fi
12816         # Put the nasty error message in config.log where it belongs
12817         echo "$GTK_PKG_ERRORS" >&5
12818
12819         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12820
12821 $GTK_PKG_ERRORS
12822
12823 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12824 installed software in a non-standard prefix.
12825
12826 Alternatively, you may set the environment variables GTK_CFLAGS
12827 and GTK_LIBS to avoid the need to call pkg-config.
12828 See the pkg-config man page for more details." "$LINENO" 5
12829 elif test $pkg_failed = untried; then
12830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12834 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12835 is in your PATH or set the PKG_CONFIG environment variable to the full
12836 path to pkg-config.
12837
12838 Alternatively, you may set the environment variables GTK_CFLAGS
12839 and GTK_LIBS to avoid the need to call pkg-config.
12840 See the pkg-config man page for more details.
12841
12842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12843 See \`config.log' for more details" "$LINENO" 5; }
12844 else
12845         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12846         GTK_LIBS=$pkg_cv_GTK_LIBS
12847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848 $as_echo "yes" >&6; }
12849         GTK_VERSION="gtk+-2.0"
12850
12851 fi
12852     ;;
12853
12854   *darwin*)
12855     win32=no
12856     macos=yes
12857     linux=no
12858
12859     # We require dbus-glib for the client library even if we are using GDBus
12860     # in the server. The reason we can't always use dbus-glib in the server is
12861     # because Vala drops support for it, but as it ships with DBus there is very
12862     # little danger of it being dropped by distros any time soon.
12863     CLIENT_IPC_MODULE="dbus-glib-1"
12864         SERVER_IPC_MODULE="dbus-glib-1"
12865
12866
12867 pkg_failed=no
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
12869 $as_echo_n "checking for MAC... " >&6; }
12870
12871 if test -n "$MAC_CFLAGS"; then
12872     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
12873  elif test -n "$PKG_CONFIG"; then
12874     if test -n "$PKG_CONFIG" && \
12875     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12876         \""; } >&5
12877   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12878         ") 2>&5
12879   ac_status=$?
12880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881   test $ac_status = 0; }; then
12882   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
12883         " 2>/dev/null`
12884                       test "x$?" != "x0" && pkg_failed=yes
12885 else
12886   pkg_failed=yes
12887 fi
12888  else
12889     pkg_failed=untried
12890 fi
12891 if test -n "$MAC_LIBS"; then
12892     pkg_cv_MAC_LIBS="$MAC_LIBS"
12893  elif test -n "$PKG_CONFIG"; then
12894     if test -n "$PKG_CONFIG" && \
12895     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12896         \""; } >&5
12897   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12898         ") 2>&5
12899   ac_status=$?
12900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901   test $ac_status = 0; }; then
12902   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
12903         " 2>/dev/null`
12904                       test "x$?" != "x0" && pkg_failed=yes
12905 else
12906   pkg_failed=yes
12907 fi
12908  else
12909     pkg_failed=untried
12910 fi
12911
12912
12913
12914 if test $pkg_failed = yes; then
12915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917
12918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12919         _pkg_short_errors_supported=yes
12920 else
12921         _pkg_short_errors_supported=no
12922 fi
12923         if test $_pkg_short_errors_supported = yes; then
12924                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12925         " 2>&1`
12926         else
12927                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12928         " 2>&1`
12929         fi
12930         # Put the nasty error message in config.log where it belongs
12931         echo "$MAC_PKG_ERRORS" >&5
12932
12933         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
12934         ) were not met:
12935
12936 $MAC_PKG_ERRORS
12937
12938 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12939 installed software in a non-standard prefix.
12940
12941 Alternatively, you may set the environment variables MAC_CFLAGS
12942 and MAC_LIBS to avoid the need to call pkg-config.
12943 See the pkg-config man page for more details." "$LINENO" 5
12944 elif test $pkg_failed = untried; then
12945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12947         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12949 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12950 is in your PATH or set the PKG_CONFIG environment variable to the full
12951 path to pkg-config.
12952
12953 Alternatively, you may set the environment variables MAC_CFLAGS
12954 and MAC_LIBS to avoid the need to call pkg-config.
12955 See the pkg-config man page for more details.
12956
12957 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12958 See \`config.log' for more details" "$LINENO" 5; }
12959 else
12960         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
12961         MAC_LIBS=$pkg_cv_MAC_LIBS
12962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12963 $as_echo "yes" >&6; }
12964
12965 fi
12966
12967 # TODO: Move to GTK+-3
12968 #            [gtk+-3.0 >= 2.0],
12969 #            [GTK_VERSION="gtk+-3.0"]
12970
12971 pkg_failed=no
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12973 $as_echo_n "checking for GTK... " >&6; }
12974
12975 if test -n "$GTK_CFLAGS"; then
12976     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12977  elif test -n "$PKG_CONFIG"; then
12978     if test -n "$PKG_CONFIG" && \
12979     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12980   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12981   ac_status=$?
12982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12983   test $ac_status = 0; }; then
12984   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12985                       test "x$?" != "x0" && pkg_failed=yes
12986 else
12987   pkg_failed=yes
12988 fi
12989  else
12990     pkg_failed=untried
12991 fi
12992 if test -n "$GTK_LIBS"; then
12993     pkg_cv_GTK_LIBS="$GTK_LIBS"
12994  elif test -n "$PKG_CONFIG"; then
12995     if test -n "$PKG_CONFIG" && \
12996     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12997   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12998   ac_status=$?
12999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000   test $ac_status = 0; }; then
13001   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13002                       test "x$?" != "x0" && pkg_failed=yes
13003 else
13004   pkg_failed=yes
13005 fi
13006  else
13007     pkg_failed=untried
13008 fi
13009
13010
13011
13012 if test $pkg_failed = yes; then
13013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015
13016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13017         _pkg_short_errors_supported=yes
13018 else
13019         _pkg_short_errors_supported=no
13020 fi
13021         if test $_pkg_short_errors_supported = yes; then
13022                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13023         else
13024                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13025         fi
13026         # Put the nasty error message in config.log where it belongs
13027         echo "$GTK_PKG_ERRORS" >&5
13028
13029         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13030
13031 $GTK_PKG_ERRORS
13032
13033 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13034 installed software in a non-standard prefix.
13035
13036 Alternatively, you may set the environment variables GTK_CFLAGS
13037 and GTK_LIBS to avoid the need to call pkg-config.
13038 See the pkg-config man page for more details." "$LINENO" 5
13039 elif test $pkg_failed = untried; then
13040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13044 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13045 is in your PATH or set the PKG_CONFIG environment variable to the full
13046 path to pkg-config.
13047
13048 Alternatively, you may set the environment variables GTK_CFLAGS
13049 and GTK_LIBS to avoid the need to call pkg-config.
13050 See the pkg-config man page for more details.
13051
13052 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13053 See \`config.log' for more details" "$LINENO" 5; }
13054 else
13055         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13056         GTK_LIBS=$pkg_cv_GTK_LIBS
13057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13058 $as_echo "yes" >&6; }
13059         GTK_VERSION="gtk+-2.0"
13060
13061 fi
13062
13063     ;;
13064   *)
13065     macos=no
13066     win32=no
13067     linux=yes
13068
13069     # We require dbus-glib for the client library even if we are using GDBus
13070     # in the server. The reason we can't always use dbus-glib in the server is
13071     # because Vala drops support for it, but as it ships with DBus there is very
13072     # little danger of it being dropped by distros any time soon.
13073     CLIENT_IPC_MODULE="dbus-glib-1"
13074
13075 pkg_failed=no
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13077 $as_echo_n "checking for GDBUS... " >&6; }
13078
13079 if test -n "$GDBUS_CFLAGS"; then
13080     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13081  elif test -n "$PKG_CONFIG"; then
13082     if test -n "$PKG_CONFIG" && \
13083     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13084   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13085   ac_status=$?
13086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13087   test $ac_status = 0; }; then
13088   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13089                       test "x$?" != "x0" && pkg_failed=yes
13090 else
13091   pkg_failed=yes
13092 fi
13093  else
13094     pkg_failed=untried
13095 fi
13096 if test -n "$GDBUS_LIBS"; then
13097     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13098  elif test -n "$PKG_CONFIG"; then
13099     if test -n "$PKG_CONFIG" && \
13100     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13101   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13102   ac_status=$?
13103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13104   test $ac_status = 0; }; then
13105   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13106                       test "x$?" != "x0" && pkg_failed=yes
13107 else
13108   pkg_failed=yes
13109 fi
13110  else
13111     pkg_failed=untried
13112 fi
13113
13114
13115
13116 if test $pkg_failed = yes; then
13117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119
13120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13121         _pkg_short_errors_supported=yes
13122 else
13123         _pkg_short_errors_supported=no
13124 fi
13125         if test $_pkg_short_errors_supported = yes; then
13126                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13127         else
13128                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13129         fi
13130         # Put the nasty error message in config.log where it belongs
13131         echo "$GDBUS_PKG_ERRORS" >&5
13132
13133         SERVER_IPC_MODULE="dbus-glib-1"
13134
13135 elif test $pkg_failed = untried; then
13136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138         SERVER_IPC_MODULE="dbus-glib-1"
13139
13140 else
13141         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13142         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145         SERVER_IPC_MODULE="gio-2.0"
13146 fi
13147 # TODO: Move to GTK+-3
13148 #            [gtk+-3.0 >= 2.0],
13149 #            [GTK_VERSION="gtk+-3.0"]
13150
13151 pkg_failed=no
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13153 $as_echo_n "checking for GTK... " >&6; }
13154
13155 if test -n "$GTK_CFLAGS"; then
13156     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13157  elif test -n "$PKG_CONFIG"; then
13158     if test -n "$PKG_CONFIG" && \
13159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13160   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13161   ac_status=$?
13162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13163   test $ac_status = 0; }; then
13164   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13165                       test "x$?" != "x0" && pkg_failed=yes
13166 else
13167   pkg_failed=yes
13168 fi
13169  else
13170     pkg_failed=untried
13171 fi
13172 if test -n "$GTK_LIBS"; then
13173     pkg_cv_GTK_LIBS="$GTK_LIBS"
13174  elif test -n "$PKG_CONFIG"; then
13175     if test -n "$PKG_CONFIG" && \
13176     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13177   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13178   ac_status=$?
13179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180   test $ac_status = 0; }; then
13181   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13182                       test "x$?" != "x0" && pkg_failed=yes
13183 else
13184   pkg_failed=yes
13185 fi
13186  else
13187     pkg_failed=untried
13188 fi
13189
13190
13191
13192 if test $pkg_failed = yes; then
13193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195
13196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13197         _pkg_short_errors_supported=yes
13198 else
13199         _pkg_short_errors_supported=no
13200 fi
13201         if test $_pkg_short_errors_supported = yes; then
13202                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13203         else
13204                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13205         fi
13206         # Put the nasty error message in config.log where it belongs
13207         echo "$GTK_PKG_ERRORS" >&5
13208
13209         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13210
13211 $GTK_PKG_ERRORS
13212
13213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13214 installed software in a non-standard prefix.
13215
13216 Alternatively, you may set the environment variables GTK_CFLAGS
13217 and GTK_LIBS to avoid the need to call pkg-config.
13218 See the pkg-config man page for more details." "$LINENO" 5
13219 elif test $pkg_failed = untried; then
13220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13224 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13225 is in your PATH or set the PKG_CONFIG environment variable to the full
13226 path to pkg-config.
13227
13228 Alternatively, you may set the environment variables GTK_CFLAGS
13229 and GTK_LIBS to avoid the need to call pkg-config.
13230 See the pkg-config man page for more details.
13231
13232 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13233 See \`config.log' for more details" "$LINENO" 5; }
13234 else
13235         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13236         GTK_LIBS=$pkg_cv_GTK_LIBS
13237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238 $as_echo "yes" >&6; }
13239         GTK_VERSION="gtk+-2.0"
13240
13241 fi
13242
13243     ;;
13244 esac
13245
13246  if test "$linux" = "yes"; then
13247   OS_LINUX_TRUE=
13248   OS_LINUX_FALSE='#'
13249 else
13250   OS_LINUX_TRUE='#'
13251   OS_LINUX_FALSE=
13252 fi
13253
13254  if test "$win32" = "yes"; then
13255   OS_WIN32_TRUE=
13256   OS_WIN32_FALSE='#'
13257 else
13258   OS_WIN32_TRUE='#'
13259   OS_WIN32_FALSE=
13260 fi
13261
13262  if test "$macos" = "yes"; then
13263   OS_MACOS_TRUE=
13264   OS_MACOS_FALSE='#'
13265 else
13266   OS_MACOS_TRUE='#'
13267   OS_MACOS_FALSE=
13268 fi
13269
13270
13271  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13272   IPC_MSRPC_TRUE=
13273   IPC_MSRPC_FALSE='#'
13274 else
13275   IPC_MSRPC_TRUE='#'
13276   IPC_MSRPC_FALSE=
13277 fi
13278
13279  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13280   IPC_DBUS_TRUE=
13281   IPC_DBUS_FALSE='#'
13282 else
13283   IPC_DBUS_TRUE='#'
13284   IPC_DBUS_FALSE=
13285 fi
13286
13287  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13288   IPC_DBUS_GLIB_TRUE=
13289   IPC_DBUS_GLIB_FALSE='#'
13290 else
13291   IPC_DBUS_GLIB_TRUE='#'
13292   IPC_DBUS_GLIB_FALSE=
13293 fi
13294
13295  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13296   IPC_GDBUS_TRUE=
13297   IPC_GDBUS_FALSE='#'
13298 else
13299   IPC_GDBUS_TRUE='#'
13300   IPC_GDBUS_FALSE=
13301 fi
13302
13303
13304 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13306 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13307   vala_version=`$VALAC --version | sed 's/Vala  *//'`
13308   as_arg_v1=0.12.2
13309 as_arg_v2="$vala_version"
13310 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13311 case $? in #(
13312   1) :
13313     vala_supports_dbus_glib="no" ;; #(
13314   0) :
13315     vala_supports_dbus_glib="no" ;; #(
13316   2) :
13317     vala_supports_dbus_glib="yes" ;; #(
13318   *) :
13319      ;;
13320 esac
13321
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13323 $as_echo "$vala_supports_dbus_glib" >&6; }
13324   if test "$vala_supports_dbus_glib" = "no"; then
13325     as_fn_error $? "
13326 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13327 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13328   fi
13329 fi
13330
13331 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13332   # MS RPC utilities
13333
13334   pkg_config_args="msrpc-mingw-1.0"
13335
13336
13337
13338
13339
13340
13341
13342
13343 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13344         if test -n "$ac_tool_prefix"; then
13345   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13346 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   case $PKG_CONFIG in
13353   [\\/]* | ?:[\\/]*)
13354   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13355   ;;
13356   *)
13357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13359 do
13360   IFS=$as_save_IFS
13361   test -z "$as_dir" && as_dir=.
13362     for ac_exec_ext in '' $ac_executable_extensions; do
13363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366     break 2
13367   fi
13368 done
13369   done
13370 IFS=$as_save_IFS
13371
13372   ;;
13373 esac
13374 fi
13375 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13376 if test -n "$PKG_CONFIG"; then
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13378 $as_echo "$PKG_CONFIG" >&6; }
13379 else
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 fi
13383
13384
13385 fi
13386 if test -z "$ac_cv_path_PKG_CONFIG"; then
13387   ac_pt_PKG_CONFIG=$PKG_CONFIG
13388   # Extract the first word of "pkg-config", so it can be a program name with args.
13389 set dummy pkg-config; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   case $ac_pt_PKG_CONFIG in
13396   [\\/]* | ?:[\\/]*)
13397   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13398   ;;
13399   *)
13400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13407     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409     break 2
13410   fi
13411 done
13412   done
13413 IFS=$as_save_IFS
13414
13415   ;;
13416 esac
13417 fi
13418 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13419 if test -n "$ac_pt_PKG_CONFIG"; then
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13421 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13422 else
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425 fi
13426
13427   if test "x$ac_pt_PKG_CONFIG" = x; then
13428     PKG_CONFIG=""
13429   else
13430     case $cross_compiling:$ac_tool_warned in
13431 yes:)
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13434 ac_tool_warned=yes ;;
13435 esac
13436     PKG_CONFIG=$ac_pt_PKG_CONFIG
13437   fi
13438 else
13439   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13440 fi
13441
13442 fi
13443 if test -n "$PKG_CONFIG"; then
13444         _pkg_min_version=0.16
13445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13446 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13447         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13448                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13450         else
13451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13453                 PKG_CONFIG=""
13454         fi
13455 fi
13456
13457   no_msrpc=""
13458
13459   if test "x$PKG_CONFIG" = x ; then
13460     no_msrpc=yes
13461     PKG_CONFIG=no
13462   fi
13463
13464   min_msrpc_mingw_version=0.1.0
13465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13466 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13467
13468   if test x$PKG_CONFIG != xno ; then
13469     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13470       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13471     fi
13472
13473     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13474       :
13475     else
13476       no_msrpc=yes
13477     fi
13478   fi
13479
13480   if test x"$no_msrpc" = x ; then
13481     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13482     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13483     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13484   fi
13485
13486   if test "x$no_msrpc" = x ; then
13487      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 $as_echo "yes" >&6; }
13489      :
13490   else
13491      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493      if test "$PKG_CONFIG" = "no" ; then
13494        echo "*** A new enough version of pkg-config was not found."
13495        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13496      else
13497        echo "not found"
13498      fi
13499      MSRPC_CFLAGS=""
13500      MSRPC_LIBS=""
13501      MIDL_WRAPPER=""
13502      as_fn_error $? "
13503 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13504   fi
13505
13506
13507
13508
13509
13510   # Extract the first word of "midl", so it can be a program name with args.
13511 set dummy midl; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if ${ac_cv_path_MIDL+:} false; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   case $MIDL in
13518   [\\/]* | ?:[\\/]*)
13519   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13520   ;;
13521   *)
13522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13524 do
13525   IFS=$as_save_IFS
13526   test -z "$as_dir" && as_dir=.
13527     for ac_exec_ext in '' $ac_executable_extensions; do
13528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13529     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531     break 2
13532   fi
13533 done
13534   done
13535 IFS=$as_save_IFS
13536
13537   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
13538   ;;
13539 esac
13540 fi
13541 MIDL=$ac_cv_path_MIDL
13542 if test -n "$MIDL"; then
13543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
13544 $as_echo "$MIDL" >&6; }
13545 else
13546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13548 fi
13549
13550
13551   if test "$MIDL" = "no"; then
13552      as_fn_error $? "
13553 *** Could not find the Microsoft interface compiler MIDL.EXE.
13554 *** This program is available as part of the MS Windows SDK, in
13555 *** the Win32 Development Tools package. If it is not in the PATH
13556 *** or its default location you may set the 'MIDL' environment
13557 *** variable to point to its location and rerun configure." "$LINENO" 5
13558   fi
13559 fi
13560
13561 if test "$win32" = "yes"; then
13562   # Other Windows-specific tools
13563
13564   # LIB.EXE from MSVC to build an MSVC-compatible import library.
13565   # Extract the first word of "lib", so it can be a program name with args.
13566 set dummy lib; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_path_MSVC_LIB+:} false; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   case $MSVC_LIB in
13573   [\\/]* | ?:[\\/]*)
13574   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
13575   ;;
13576   *)
13577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in /c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR$PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582     for ac_exec_ext in '' $ac_executable_extensions; do
13583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13584     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
13585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589   done
13590 IFS=$as_save_IFS
13591
13592   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
13593   ;;
13594 esac
13595 fi
13596 MSVC_LIB=$ac_cv_path_MSVC_LIB
13597 if test -n "$MSVC_LIB"; then
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
13599 $as_echo "$MSVC_LIB" >&6; }
13600 else
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605
13606
13607   if test "$MSVC_LIB" = "no"; then
13608      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13609 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13610 *** to build the Visual C import library for libmoonshot. Use the
13611 *** MSVC_LIB environment variable to pass its location if this is
13612 *** outside the PATH." >&5
13613 $as_echo "$as_me: WARNING:
13614 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13615 *** to build the Visual C import library for libmoonshot. Use the
13616 *** MSVC_LIB environment variable to pass its location if this is
13617 *** outside the PATH." >&2;}
13618   fi
13619
13620
13621   # ImageMagick for the 'make icons' target. Note that
13622   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
13623   # Extract the first word of "convert", so it can be a program name with args.
13624 set dummy convert; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
13628   $as_echo_n "(cached) " >&6
13629 else
13630   case $IMAGEMAGICK_CONVERT in
13631   [\\/]* | ?:[\\/]*)
13632   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
13633   ;;
13634   *)
13635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
13637 do
13638   IFS=$as_save_IFS
13639   test -z "$as_dir" && as_dir=.
13640     for ac_exec_ext in '' $ac_executable_extensions; do
13641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13642     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644     break 2
13645   fi
13646 done
13647   done
13648 IFS=$as_save_IFS
13649
13650   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
13651   ;;
13652 esac
13653 fi
13654 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
13655 if test -n "$IMAGEMAGICK_CONVERT"; then
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
13657 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
13658 else
13659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13661 fi
13662
13663
13664
13665   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
13666      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13667 *** Could not find ImageMagick convert.exe. This is required for the
13668 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13669 *** variable to pass its location if this is outside the PATH." >&5
13670 $as_echo "$as_me: WARNING:
13671 *** Could not find ImageMagick convert.exe. This is required for the
13672 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13673 *** variable to pass its location if this is outside the PATH." >&2;}
13674   fi
13675
13676
13677   # Windows Installer XML tools
13678   # Extract the first word of "candle", so it can be a program name with args.
13679 set dummy candle; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681 $as_echo_n "checking for $ac_word... " >&6; }
13682 if ${ac_cv_path_WIX_CANDLE+:} false; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685   case $WIX_CANDLE in
13686   [\\/]* | ?:[\\/]*)
13687   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
13688   ;;
13689   *)
13690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13692 do
13693   IFS=$as_save_IFS
13694   test -z "$as_dir" && as_dir=.
13695     for ac_exec_ext in '' $ac_executable_extensions; do
13696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13697     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
13698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13699     break 2
13700   fi
13701 done
13702   done
13703 IFS=$as_save_IFS
13704
13705   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
13706   ;;
13707 esac
13708 fi
13709 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
13710 if test -n "$WIX_CANDLE"; then
13711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
13712 $as_echo "$WIX_CANDLE" >&6; }
13713 else
13714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13716 fi
13717
13718
13719   # Extract the first word of "light", so it can be a program name with args.
13720 set dummy light; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if ${ac_cv_path_WIX_LIGHT+:} false; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726   case $WIX_LIGHT in
13727   [\\/]* | ?:[\\/]*)
13728   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
13729   ;;
13730   *)
13731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13733 do
13734   IFS=$as_save_IFS
13735   test -z "$as_dir" && as_dir=.
13736     for ac_exec_ext in '' $ac_executable_extensions; do
13737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13738     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
13739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740     break 2
13741   fi
13742 done
13743   done
13744 IFS=$as_save_IFS
13745
13746   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
13747   ;;
13748 esac
13749 fi
13750 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
13751 if test -n "$WIX_LIGHT"; then
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
13753 $as_echo "$WIX_LIGHT" >&6; }
13754 else
13755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758
13759
13760
13761   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
13762      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13763 *** Could not find the Windows Installer XML tools. These are required
13764 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13765 *** environment variables to pass their locations if they are outside
13766 *** the PATH." >&5
13767 $as_echo "$as_me: WARNING:
13768 *** Could not find the Windows Installer XML tools. These are required
13769 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13770 *** environment variables to pass their locations if they are outside
13771 *** the PATH." >&2;}
13772   fi
13773 fi
13774
13775 if test "$linux" = "yes"; then
13776   # Extract the first word of "update-mime-database", so it can be a program name with args.
13777 set dummy update-mime-database; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
13781   $as_echo_n "(cached) " >&6
13782 else
13783   case $UPDATE_MIME_DATABASE in
13784   [\\/]* | ?:[\\/]*)
13785   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13786   ;;
13787   *)
13788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13790 do
13791   IFS=$as_save_IFS
13792   test -z "$as_dir" && as_dir=.
13793     for ac_exec_ext in '' $ac_executable_extensions; do
13794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13795     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797     break 2
13798   fi
13799 done
13800   done
13801 IFS=$as_save_IFS
13802
13803   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
13804   ;;
13805 esac
13806 fi
13807 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
13808 if test -n "$UPDATE_MIME_DATABASE"; then
13809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
13810 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
13811 else
13812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13814 fi
13815
13816
13817   if test "$UPDATE_MIME_DATABASE" = "no"; then
13818     as_fn_error $? "
13819 *** Could not find the Freedesktop.org  mime database update tool.
13820 *** Web provisioning files could not be automatically installed." "$LINENO" 5
13821   fi
13822   # Extract the first word of "update-desktop-database", so it can be a program name with args.
13823 set dummy update-desktop-database; ac_word=$2
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13825 $as_echo_n "checking for $ac_word... " >&6; }
13826 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   case $UPDATE_DESKTOP_DATABASE in
13830   [\\/]* | ?:[\\/]*)
13831   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
13832   ;;
13833   *)
13834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13836 do
13837   IFS=$as_save_IFS
13838   test -z "$as_dir" && as_dir=.
13839     for ac_exec_ext in '' $ac_executable_extensions; do
13840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13841     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13843     break 2
13844   fi
13845 done
13846   done
13847 IFS=$as_save_IFS
13848
13849   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
13850   ;;
13851 esac
13852 fi
13853 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
13854 if test -n "$UPDATE_DESKTOP_DATABASE"; then
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
13856 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
13857 else
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13860 fi
13861
13862
13863   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
13864     as_fn_error $? "
13865 *** Could not find the Freedesktop.org desktop entry database update
13866 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
13867   fi
13868 fi
13869
13870 MOONSHOT_APP="$bindir/moonshot"
13871 MOONSHOT_WEBP="$bindir/moonshot-webp"
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883 # Dependencies
13884
13885 pkg_failed=no
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
13887 $as_echo_n "checking for moonshot... " >&6; }
13888
13889 if test -n "$moonshot_CFLAGS"; then
13890     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
13891  elif test -n "$PKG_CONFIG"; then
13892     if test -n "$PKG_CONFIG" && \
13893     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13894         atk >= 1.20
13895         glib-2.0 >= 2.22
13896         gobject-2.0 >= 2.22
13897         \$GTK_VERSION
13898         gee-1.0 >= 0.5
13899         \$SERVER_IPC_MODULE
13900                 \$MAC
13901 \""; } >&5
13902   ($PKG_CONFIG --exists --print-errors "
13903         atk >= 1.20
13904         glib-2.0 >= 2.22
13905         gobject-2.0 >= 2.22
13906         $GTK_VERSION
13907         gee-1.0 >= 0.5
13908         $SERVER_IPC_MODULE
13909                 $MAC
13910 ") 2>&5
13911   ac_status=$?
13912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913   test $ac_status = 0; }; then
13914   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
13915         atk >= 1.20
13916         glib-2.0 >= 2.22
13917         gobject-2.0 >= 2.22
13918         $GTK_VERSION
13919         gee-1.0 >= 0.5
13920         $SERVER_IPC_MODULE
13921                 $MAC
13922 " 2>/dev/null`
13923                       test "x$?" != "x0" && pkg_failed=yes
13924 else
13925   pkg_failed=yes
13926 fi
13927  else
13928     pkg_failed=untried
13929 fi
13930 if test -n "$moonshot_LIBS"; then
13931     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
13932  elif test -n "$PKG_CONFIG"; then
13933     if test -n "$PKG_CONFIG" && \
13934     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13935         atk >= 1.20
13936         glib-2.0 >= 2.22
13937         gobject-2.0 >= 2.22
13938         \$GTK_VERSION
13939         gee-1.0 >= 0.5
13940         \$SERVER_IPC_MODULE
13941                 \$MAC
13942 \""; } >&5
13943   ($PKG_CONFIG --exists --print-errors "
13944         atk >= 1.20
13945         glib-2.0 >= 2.22
13946         gobject-2.0 >= 2.22
13947         $GTK_VERSION
13948         gee-1.0 >= 0.5
13949         $SERVER_IPC_MODULE
13950                 $MAC
13951 ") 2>&5
13952   ac_status=$?
13953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954   test $ac_status = 0; }; then
13955   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
13956         atk >= 1.20
13957         glib-2.0 >= 2.22
13958         gobject-2.0 >= 2.22
13959         $GTK_VERSION
13960         gee-1.0 >= 0.5
13961         $SERVER_IPC_MODULE
13962                 $MAC
13963 " 2>/dev/null`
13964                       test "x$?" != "x0" && pkg_failed=yes
13965 else
13966   pkg_failed=yes
13967 fi
13968  else
13969     pkg_failed=untried
13970 fi
13971
13972
13973
13974 if test $pkg_failed = yes; then
13975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977
13978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13979         _pkg_short_errors_supported=yes
13980 else
13981         _pkg_short_errors_supported=no
13982 fi
13983         if test $_pkg_short_errors_supported = yes; then
13984                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13985         atk >= 1.20
13986         glib-2.0 >= 2.22
13987         gobject-2.0 >= 2.22
13988         $GTK_VERSION
13989         gee-1.0 >= 0.5
13990         $SERVER_IPC_MODULE
13991                 $MAC
13992 " 2>&1`
13993         else
13994                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13995         atk >= 1.20
13996         glib-2.0 >= 2.22
13997         gobject-2.0 >= 2.22
13998         $GTK_VERSION
13999         gee-1.0 >= 0.5
14000         $SERVER_IPC_MODULE
14001                 $MAC
14002 " 2>&1`
14003         fi
14004         # Put the nasty error message in config.log where it belongs
14005         echo "$moonshot_PKG_ERRORS" >&5
14006
14007         as_fn_error $? "Package requirements (
14008         atk >= 1.20
14009         glib-2.0 >= 2.22
14010         gobject-2.0 >= 2.22
14011         $GTK_VERSION
14012         gee-1.0 >= 0.5
14013         $SERVER_IPC_MODULE
14014                 $MAC
14015 ) were not met:
14016
14017 $moonshot_PKG_ERRORS
14018
14019 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14020 installed software in a non-standard prefix.
14021
14022 Alternatively, you may set the environment variables moonshot_CFLAGS
14023 and moonshot_LIBS to avoid the need to call pkg-config.
14024 See the pkg-config man page for more details." "$LINENO" 5
14025 elif test $pkg_failed = untried; then
14026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14028         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14030 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14031 is in your PATH or set the PKG_CONFIG environment variable to the full
14032 path to pkg-config.
14033
14034 Alternatively, you may set the environment variables moonshot_CFLAGS
14035 and moonshot_LIBS to avoid the need to call pkg-config.
14036 See the pkg-config man page for more details.
14037
14038 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14039 See \`config.log' for more details" "$LINENO" 5; }
14040 else
14041         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14042         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14044 $as_echo "yes" >&6; }
14045
14046 fi
14047
14048
14049 pkg_failed=no
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14051 $as_echo_n "checking for libmoonshot... " >&6; }
14052
14053 if test -n "$libmoonshot_CFLAGS"; then
14054     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14055  elif test -n "$PKG_CONFIG"; then
14056     if test -n "$PKG_CONFIG" && \
14057     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14058         \$CLIENT_IPC_MODULE
14059 \""; } >&5
14060   ($PKG_CONFIG --exists --print-errors "
14061         $CLIENT_IPC_MODULE
14062 ") 2>&5
14063   ac_status=$?
14064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14065   test $ac_status = 0; }; then
14066   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14067         $CLIENT_IPC_MODULE
14068 " 2>/dev/null`
14069                       test "x$?" != "x0" && pkg_failed=yes
14070 else
14071   pkg_failed=yes
14072 fi
14073  else
14074     pkg_failed=untried
14075 fi
14076 if test -n "$libmoonshot_LIBS"; then
14077     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
14078  elif test -n "$PKG_CONFIG"; then
14079     if test -n "$PKG_CONFIG" && \
14080     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14081         \$CLIENT_IPC_MODULE
14082 \""; } >&5
14083   ($PKG_CONFIG --exists --print-errors "
14084         $CLIENT_IPC_MODULE
14085 ") 2>&5
14086   ac_status=$?
14087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088   test $ac_status = 0; }; then
14089   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
14090         $CLIENT_IPC_MODULE
14091 " 2>/dev/null`
14092                       test "x$?" != "x0" && pkg_failed=yes
14093 else
14094   pkg_failed=yes
14095 fi
14096  else
14097     pkg_failed=untried
14098 fi
14099
14100
14101
14102 if test $pkg_failed = yes; then
14103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104 $as_echo "no" >&6; }
14105
14106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14107         _pkg_short_errors_supported=yes
14108 else
14109         _pkg_short_errors_supported=no
14110 fi
14111         if test $_pkg_short_errors_supported = yes; then
14112                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14113         $CLIENT_IPC_MODULE
14114 " 2>&1`
14115         else
14116                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14117         $CLIENT_IPC_MODULE
14118 " 2>&1`
14119         fi
14120         # Put the nasty error message in config.log where it belongs
14121         echo "$libmoonshot_PKG_ERRORS" >&5
14122
14123         as_fn_error $? "Package requirements (
14124         $CLIENT_IPC_MODULE
14125 ) were not met:
14126
14127 $libmoonshot_PKG_ERRORS
14128
14129 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14130 installed software in a non-standard prefix.
14131
14132 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14133 and libmoonshot_LIBS to avoid the need to call pkg-config.
14134 See the pkg-config man page for more details." "$LINENO" 5
14135 elif test $pkg_failed = untried; then
14136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14138         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14140 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14141 is in your PATH or set the PKG_CONFIG environment variable to the full
14142 path to pkg-config.
14143
14144 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14145 and libmoonshot_LIBS to avoid the need to call pkg-config.
14146 See the pkg-config man page for more details.
14147
14148 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14149 See \`config.log' for more details" "$LINENO" 5; }
14150 else
14151         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14152         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 $as_echo "yes" >&6; }
14155
14156 fi
14157
14158 # i18n stuff
14159
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14161 $as_echo_n "checking whether NLS is requested... " >&6; }
14162     # Check whether --enable-nls was given.
14163 if test "${enable_nls+set}" = set; then :
14164   enableval=$enable_nls; USE_NLS=$enableval
14165 else
14166   USE_NLS=yes
14167 fi
14168
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14170 $as_echo "$USE_NLS" >&6; }
14171
14172
14173
14174
14175       GETTEXT_MACRO_VERSION=0.18
14176
14177
14178
14179
14180 # Prepare PATH_SEPARATOR.
14181 # The user is always right.
14182 if test "${PATH_SEPARATOR+set}" != set; then
14183   echo "#! /bin/sh" >conf$$.sh
14184   echo  "exit 0"   >>conf$$.sh
14185   chmod +x conf$$.sh
14186   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14187     PATH_SEPARATOR=';'
14188   else
14189     PATH_SEPARATOR=:
14190   fi
14191   rm -f conf$$.sh
14192 fi
14193
14194 # Find out how to test for executable files. Don't use a zero-byte file,
14195 # as systems may use methods other than mode bits to determine executability.
14196 cat >conf$$.file <<_ASEOF
14197 #! /bin/sh
14198 exit 0
14199 _ASEOF
14200 chmod +x conf$$.file
14201 if test -x conf$$.file >/dev/null 2>&1; then
14202   ac_executable_p="test -x"
14203 else
14204   ac_executable_p="test -f"
14205 fi
14206 rm -f conf$$.file
14207
14208 # Extract the first word of "msgfmt", so it can be a program name with args.
14209 set dummy msgfmt; ac_word=$2
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14211 $as_echo_n "checking for $ac_word... " >&6; }
14212 if ${ac_cv_path_MSGFMT+:} false; then :
14213   $as_echo_n "(cached) " >&6
14214 else
14215   case "$MSGFMT" in
14216   [\\/]* | ?:[\\/]*)
14217     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14218     ;;
14219   *)
14220     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14221     for ac_dir in $PATH; do
14222       IFS="$ac_save_IFS"
14223       test -z "$ac_dir" && ac_dir=.
14224       for ac_exec_ext in '' $ac_executable_extensions; do
14225         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14226           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14227           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14228      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14229             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14230             break 2
14231           fi
14232         fi
14233       done
14234     done
14235     IFS="$ac_save_IFS"
14236   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14237     ;;
14238 esac
14239 fi
14240 MSGFMT="$ac_cv_path_MSGFMT"
14241 if test "$MSGFMT" != ":"; then
14242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14243 $as_echo "$MSGFMT" >&6; }
14244 else
14245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246 $as_echo "no" >&6; }
14247 fi
14248
14249   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14250 set dummy gmsgfmt; ac_word=$2
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14252 $as_echo_n "checking for $ac_word... " >&6; }
14253 if ${ac_cv_path_GMSGFMT+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   case $GMSGFMT in
14257   [\\/]* | ?:[\\/]*)
14258   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14259   ;;
14260   *)
14261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14263 do
14264   IFS=$as_save_IFS
14265   test -z "$as_dir" && as_dir=.
14266     for ac_exec_ext in '' $ac_executable_extensions; do
14267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14268     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14270     break 2
14271   fi
14272 done
14273   done
14274 IFS=$as_save_IFS
14275
14276   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14277   ;;
14278 esac
14279 fi
14280 GMSGFMT=$ac_cv_path_GMSGFMT
14281 if test -n "$GMSGFMT"; then
14282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14283 $as_echo "$GMSGFMT" >&6; }
14284 else
14285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 $as_echo "no" >&6; }
14287 fi
14288
14289
14290
14291     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14292     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14293     *) MSGFMT_015=$MSGFMT ;;
14294   esac
14295
14296   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14297     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14298     *) GMSGFMT_015=$GMSGFMT ;;
14299   esac
14300
14301
14302
14303 # Prepare PATH_SEPARATOR.
14304 # The user is always right.
14305 if test "${PATH_SEPARATOR+set}" != set; then
14306   echo "#! /bin/sh" >conf$$.sh
14307   echo  "exit 0"   >>conf$$.sh
14308   chmod +x conf$$.sh
14309   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14310     PATH_SEPARATOR=';'
14311   else
14312     PATH_SEPARATOR=:
14313   fi
14314   rm -f conf$$.sh
14315 fi
14316
14317 # Find out how to test for executable files. Don't use a zero-byte file,
14318 # as systems may use methods other than mode bits to determine executability.
14319 cat >conf$$.file <<_ASEOF
14320 #! /bin/sh
14321 exit 0
14322 _ASEOF
14323 chmod +x conf$$.file
14324 if test -x conf$$.file >/dev/null 2>&1; then
14325   ac_executable_p="test -x"
14326 else
14327   ac_executable_p="test -f"
14328 fi
14329 rm -f conf$$.file
14330
14331 # Extract the first word of "xgettext", so it can be a program name with args.
14332 set dummy xgettext; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14334 $as_echo_n "checking for $ac_word... " >&6; }
14335 if ${ac_cv_path_XGETTEXT+:} false; then :
14336   $as_echo_n "(cached) " >&6
14337 else
14338   case "$XGETTEXT" in
14339   [\\/]* | ?:[\\/]*)
14340     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14341     ;;
14342   *)
14343     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14344     for ac_dir in $PATH; do
14345       IFS="$ac_save_IFS"
14346       test -z "$ac_dir" && ac_dir=.
14347       for ac_exec_ext in '' $ac_executable_extensions; do
14348         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14349           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14350           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14351      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14352             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14353             break 2
14354           fi
14355         fi
14356       done
14357     done
14358     IFS="$ac_save_IFS"
14359   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14360     ;;
14361 esac
14362 fi
14363 XGETTEXT="$ac_cv_path_XGETTEXT"
14364 if test "$XGETTEXT" != ":"; then
14365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14366 $as_echo "$XGETTEXT" >&6; }
14367 else
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369 $as_echo "no" >&6; }
14370 fi
14371
14372     rm -f messages.po
14373
14374     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14375     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14376     *) XGETTEXT_015=$XGETTEXT ;;
14377   esac
14378
14379
14380
14381 # Prepare PATH_SEPARATOR.
14382 # The user is always right.
14383 if test "${PATH_SEPARATOR+set}" != set; then
14384   echo "#! /bin/sh" >conf$$.sh
14385   echo  "exit 0"   >>conf$$.sh
14386   chmod +x conf$$.sh
14387   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14388     PATH_SEPARATOR=';'
14389   else
14390     PATH_SEPARATOR=:
14391   fi
14392   rm -f conf$$.sh
14393 fi
14394
14395 # Find out how to test for executable files. Don't use a zero-byte file,
14396 # as systems may use methods other than mode bits to determine executability.
14397 cat >conf$$.file <<_ASEOF
14398 #! /bin/sh
14399 exit 0
14400 _ASEOF
14401 chmod +x conf$$.file
14402 if test -x conf$$.file >/dev/null 2>&1; then
14403   ac_executable_p="test -x"
14404 else
14405   ac_executable_p="test -f"
14406 fi
14407 rm -f conf$$.file
14408
14409 # Extract the first word of "msgmerge", so it can be a program name with args.
14410 set dummy msgmerge; ac_word=$2
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14412 $as_echo_n "checking for $ac_word... " >&6; }
14413 if ${ac_cv_path_MSGMERGE+:} false; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416   case "$MSGMERGE" in
14417   [\\/]* | ?:[\\/]*)
14418     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14419     ;;
14420   *)
14421     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14422     for ac_dir in $PATH; do
14423       IFS="$ac_save_IFS"
14424       test -z "$ac_dir" && ac_dir=.
14425       for ac_exec_ext in '' $ac_executable_extensions; do
14426         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14427           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14428           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14429             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14430             break 2
14431           fi
14432         fi
14433       done
14434     done
14435     IFS="$ac_save_IFS"
14436   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14437     ;;
14438 esac
14439 fi
14440 MSGMERGE="$ac_cv_path_MSGMERGE"
14441 if test "$MSGMERGE" != ":"; then
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14443 $as_echo "$MSGMERGE" >&6; }
14444 else
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14447 fi
14448
14449
14450         test -n "$localedir" || localedir='${datadir}/locale'
14451
14452
14453     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14454
14455
14456   ac_config_commands="$ac_config_commands po-directories"
14457
14458
14459
14460       if test "X$prefix" = "XNONE"; then
14461     acl_final_prefix="$ac_default_prefix"
14462   else
14463     acl_final_prefix="$prefix"
14464   fi
14465   if test "X$exec_prefix" = "XNONE"; then
14466     acl_final_exec_prefix='${prefix}'
14467   else
14468     acl_final_exec_prefix="$exec_prefix"
14469   fi
14470   acl_save_prefix="$prefix"
14471   prefix="$acl_final_prefix"
14472   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14473   prefix="$acl_save_prefix"
14474
14475
14476 # Check whether --with-gnu-ld was given.
14477 if test "${with_gnu_ld+set}" = set; then :
14478   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14479 else
14480   with_gnu_ld=no
14481 fi
14482
14483 # Prepare PATH_SEPARATOR.
14484 # The user is always right.
14485 if test "${PATH_SEPARATOR+set}" != set; then
14486   echo "#! /bin/sh" >conf$$.sh
14487   echo  "exit 0"   >>conf$$.sh
14488   chmod +x conf$$.sh
14489   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14490     PATH_SEPARATOR=';'
14491   else
14492     PATH_SEPARATOR=:
14493   fi
14494   rm -f conf$$.sh
14495 fi
14496 ac_prog=ld
14497 if test "$GCC" = yes; then
14498   # Check if gcc -print-prog-name=ld gives a path.
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14500 $as_echo_n "checking for ld used by GCC... " >&6; }
14501   case $host in
14502   *-*-mingw*)
14503     # gcc leaves a trailing carriage return which upsets mingw
14504     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14505   *)
14506     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14507   esac
14508   case $ac_prog in
14509     # Accept absolute paths.
14510     [\\/]* | [A-Za-z]:[\\/]*)
14511       re_direlt='/[^/][^/]*/\.\./'
14512       # Canonicalize the path of ld
14513       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14514       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14515         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14516       done
14517       test -z "$LD" && LD="$ac_prog"
14518       ;;
14519   "")
14520     # If it fails, then pretend we aren't using GCC.
14521     ac_prog=ld
14522     ;;
14523   *)
14524     # If it is relative, then search for the first ld in PATH.
14525     with_gnu_ld=unknown
14526     ;;
14527   esac
14528 elif test "$with_gnu_ld" = yes; then
14529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14530 $as_echo_n "checking for GNU ld... " >&6; }
14531 else
14532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14533 $as_echo_n "checking for non-GNU ld... " >&6; }
14534 fi
14535 if ${acl_cv_path_LD+:} false; then :
14536   $as_echo_n "(cached) " >&6
14537 else
14538   if test -z "$LD"; then
14539   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14540   for ac_dir in $PATH; do
14541     test -z "$ac_dir" && ac_dir=.
14542     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14543       acl_cv_path_LD="$ac_dir/$ac_prog"
14544       # Check to see if the program is GNU ld.  I'd rather use --version,
14545       # but apparently some GNU ld's only accept -v.
14546       # Break only if it was the GNU/non-GNU ld that we prefer.
14547       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14548       *GNU* | *'with BFD'*)
14549         test "$with_gnu_ld" != no && break ;;
14550       *)
14551         test "$with_gnu_ld" != yes && break ;;
14552       esac
14553     fi
14554   done
14555   IFS="$ac_save_ifs"
14556 else
14557   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14558 fi
14559 fi
14560
14561 LD="$acl_cv_path_LD"
14562 if test -n "$LD"; then
14563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14564 $as_echo "$LD" >&6; }
14565 else
14566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 $as_echo "no" >&6; }
14568 fi
14569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14572 if ${acl_cv_prog_gnu_ld+:} false; then :
14573   $as_echo_n "(cached) " >&6
14574 else
14575   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14576 case `$LD -v 2>&1 </dev/null` in
14577 *GNU* | *'with BFD'*)
14578   acl_cv_prog_gnu_ld=yes ;;
14579 *)
14580   acl_cv_prog_gnu_ld=no ;;
14581 esac
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14584 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14585 with_gnu_ld=$acl_cv_prog_gnu_ld
14586
14587
14588
14589
14590                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14591 $as_echo_n "checking for shared library run path origin... " >&6; }
14592 if ${acl_cv_rpath+:} false; then :
14593   $as_echo_n "(cached) " >&6
14594 else
14595
14596     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14597     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14598     . ./conftest.sh
14599     rm -f ./conftest.sh
14600     acl_cv_rpath=done
14601
14602 fi
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14604 $as_echo "$acl_cv_rpath" >&6; }
14605   wl="$acl_cv_wl"
14606   acl_libext="$acl_cv_libext"
14607   acl_shlibext="$acl_cv_shlibext"
14608   acl_libname_spec="$acl_cv_libname_spec"
14609   acl_library_names_spec="$acl_cv_library_names_spec"
14610   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14611   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14612   acl_hardcode_direct="$acl_cv_hardcode_direct"
14613   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14614     # Check whether --enable-rpath was given.
14615 if test "${enable_rpath+set}" = set; then :
14616   enableval=$enable_rpath; :
14617 else
14618   enable_rpath=yes
14619 fi
14620
14621
14622
14623
14624   acl_libdirstem=lib
14625   acl_libdirstem2=
14626   case "$host_os" in
14627     solaris*)
14628                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14629 $as_echo_n "checking for 64-bit host... " >&6; }
14630 if ${gl_cv_solaris_64bit+:} false; then :
14631   $as_echo_n "(cached) " >&6
14632 else
14633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h.  */
14635
14636 #ifdef _LP64
14637 sixtyfour bits
14638 #endif
14639
14640 _ACEOF
14641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14642   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14643   gl_cv_solaris_64bit=yes
14644 else
14645   gl_cv_solaris_64bit=no
14646 fi
14647 rm -f conftest*
14648
14649
14650 fi
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14652 $as_echo "$gl_cv_solaris_64bit" >&6; }
14653       if test $gl_cv_solaris_64bit = yes; then
14654         acl_libdirstem=lib/64
14655         case "$host_cpu" in
14656           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14657           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14658         esac
14659       fi
14660       ;;
14661     *)
14662       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14663       if test -n "$searchpath"; then
14664         acl_save_IFS="${IFS=    }"; IFS=":"
14665         for searchdir in $searchpath; do
14666           if test -d "$searchdir"; then
14667             case "$searchdir" in
14668               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14669               */../ | */.. )
14670                 # Better ignore directories of this form. They are misleading.
14671                 ;;
14672               *) searchdir=`cd "$searchdir" && pwd`
14673                  case "$searchdir" in
14674                    */lib64 ) acl_libdirstem=lib64 ;;
14675                  esac ;;
14676             esac
14677           fi
14678         done
14679         IFS="$acl_save_IFS"
14680       fi
14681       ;;
14682   esac
14683   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696     use_additional=yes
14697
14698   acl_save_prefix="$prefix"
14699   prefix="$acl_final_prefix"
14700   acl_save_exec_prefix="$exec_prefix"
14701   exec_prefix="$acl_final_exec_prefix"
14702
14703     eval additional_includedir=\"$includedir\"
14704     eval additional_libdir=\"$libdir\"
14705
14706   exec_prefix="$acl_save_exec_prefix"
14707   prefix="$acl_save_prefix"
14708
14709
14710 # Check whether --with-libiconv-prefix was given.
14711 if test "${with_libiconv_prefix+set}" = set; then :
14712   withval=$with_libiconv_prefix;
14713     if test "X$withval" = "Xno"; then
14714       use_additional=no
14715     else
14716       if test "X$withval" = "X"; then
14717
14718   acl_save_prefix="$prefix"
14719   prefix="$acl_final_prefix"
14720   acl_save_exec_prefix="$exec_prefix"
14721   exec_prefix="$acl_final_exec_prefix"
14722
14723           eval additional_includedir=\"$includedir\"
14724           eval additional_libdir=\"$libdir\"
14725
14726   exec_prefix="$acl_save_exec_prefix"
14727   prefix="$acl_save_prefix"
14728
14729       else
14730         additional_includedir="$withval/include"
14731         additional_libdir="$withval/$acl_libdirstem"
14732         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14733            && ! test -d "$withval/$acl_libdirstem"; then
14734           additional_libdir="$withval/$acl_libdirstem2"
14735         fi
14736       fi
14737     fi
14738
14739 fi
14740
14741       LIBICONV=
14742   LTLIBICONV=
14743   INCICONV=
14744   LIBICONV_PREFIX=
14745       HAVE_LIBICONV=
14746   rpathdirs=
14747   ltrpathdirs=
14748   names_already_handled=
14749   names_next_round='iconv '
14750   while test -n "$names_next_round"; do
14751     names_this_round="$names_next_round"
14752     names_next_round=
14753     for name in $names_this_round; do
14754       already_handled=
14755       for n in $names_already_handled; do
14756         if test "$n" = "$name"; then
14757           already_handled=yes
14758           break
14759         fi
14760       done
14761       if test -z "$already_handled"; then
14762         names_already_handled="$names_already_handled $name"
14763                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14764         eval value=\"\$HAVE_LIB$uppername\"
14765         if test -n "$value"; then
14766           if test "$value" = yes; then
14767             eval value=\"\$LIB$uppername\"
14768             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14769             eval value=\"\$LTLIB$uppername\"
14770             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14771           else
14772                                     :
14773           fi
14774         else
14775                               found_dir=
14776           found_la=
14777           found_so=
14778           found_a=
14779           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14780           if test -n "$acl_shlibext"; then
14781             shrext=".$acl_shlibext"             # typically: shrext=.so
14782           else
14783             shrext=
14784           fi
14785           if test $use_additional = yes; then
14786             dir="$additional_libdir"
14787                                     if test -n "$acl_shlibext"; then
14788               if test -f "$dir/$libname$shrext"; then
14789                 found_dir="$dir"
14790                 found_so="$dir/$libname$shrext"
14791               else
14792                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14793                   ver=`(cd "$dir" && \
14794                         for f in "$libname$shrext".*; do echo "$f"; done \
14795                         | sed -e "s,^$libname$shrext\\\\.,," \
14796                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14797                         | sed 1q ) 2>/dev/null`
14798                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14799                     found_dir="$dir"
14800                     found_so="$dir/$libname$shrext.$ver"
14801                   fi
14802                 else
14803                   eval library_names=\"$acl_library_names_spec\"
14804                   for f in $library_names; do
14805                     if test -f "$dir/$f"; then
14806                       found_dir="$dir"
14807                       found_so="$dir/$f"
14808                       break
14809                     fi
14810                   done
14811                 fi
14812               fi
14813             fi
14814                         if test "X$found_dir" = "X"; then
14815               if test -f "$dir/$libname.$acl_libext"; then
14816                 found_dir="$dir"
14817                 found_a="$dir/$libname.$acl_libext"
14818               fi
14819             fi
14820             if test "X$found_dir" != "X"; then
14821               if test -f "$dir/$libname.la"; then
14822                 found_la="$dir/$libname.la"
14823               fi
14824             fi
14825           fi
14826           if test "X$found_dir" = "X"; then
14827             for x in $LDFLAGS $LTLIBICONV; do
14828
14829   acl_save_prefix="$prefix"
14830   prefix="$acl_final_prefix"
14831   acl_save_exec_prefix="$exec_prefix"
14832   exec_prefix="$acl_final_exec_prefix"
14833   eval x=\"$x\"
14834   exec_prefix="$acl_save_exec_prefix"
14835   prefix="$acl_save_prefix"
14836
14837               case "$x" in
14838                 -L*)
14839                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14840                                     if test -n "$acl_shlibext"; then
14841                     if test -f "$dir/$libname$shrext"; then
14842                       found_dir="$dir"
14843                       found_so="$dir/$libname$shrext"
14844                     else
14845                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14846                         ver=`(cd "$dir" && \
14847                               for f in "$libname$shrext".*; do echo "$f"; done \
14848                               | sed -e "s,^$libname$shrext\\\\.,," \
14849                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14850                               | sed 1q ) 2>/dev/null`
14851                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14852                           found_dir="$dir"
14853                           found_so="$dir/$libname$shrext.$ver"
14854                         fi
14855                       else
14856                         eval library_names=\"$acl_library_names_spec\"
14857                         for f in $library_names; do
14858                           if test -f "$dir/$f"; then
14859                             found_dir="$dir"
14860                             found_so="$dir/$f"
14861                             break
14862                           fi
14863                         done
14864                       fi
14865                     fi
14866                   fi
14867                                     if test "X$found_dir" = "X"; then
14868                     if test -f "$dir/$libname.$acl_libext"; then
14869                       found_dir="$dir"
14870                       found_a="$dir/$libname.$acl_libext"
14871                     fi
14872                   fi
14873                   if test "X$found_dir" != "X"; then
14874                     if test -f "$dir/$libname.la"; then
14875                       found_la="$dir/$libname.la"
14876                     fi
14877                   fi
14878                   ;;
14879               esac
14880               if test "X$found_dir" != "X"; then
14881                 break
14882               fi
14883             done
14884           fi
14885           if test "X$found_dir" != "X"; then
14886                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14887             if test "X$found_so" != "X"; then
14888                                                         if test "$enable_rpath" = no \
14889                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14890                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14891                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14892               else
14893                                                                                 haveit=
14894                 for x in $ltrpathdirs; do
14895                   if test "X$x" = "X$found_dir"; then
14896                     haveit=yes
14897                     break
14898                   fi
14899                 done
14900                 if test -z "$haveit"; then
14901                   ltrpathdirs="$ltrpathdirs $found_dir"
14902                 fi
14903                                 if test "$acl_hardcode_direct" = yes; then
14904                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14905                 else
14906                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14907                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14908                                                             haveit=
14909                     for x in $rpathdirs; do
14910                       if test "X$x" = "X$found_dir"; then
14911                         haveit=yes
14912                         break
14913                       fi
14914                     done
14915                     if test -z "$haveit"; then
14916                       rpathdirs="$rpathdirs $found_dir"
14917                     fi
14918                   else
14919                                                                                 haveit=
14920                     for x in $LDFLAGS $LIBICONV; do
14921
14922   acl_save_prefix="$prefix"
14923   prefix="$acl_final_prefix"
14924   acl_save_exec_prefix="$exec_prefix"
14925   exec_prefix="$acl_final_exec_prefix"
14926   eval x=\"$x\"
14927   exec_prefix="$acl_save_exec_prefix"
14928   prefix="$acl_save_prefix"
14929
14930                       if test "X$x" = "X-L$found_dir"; then
14931                         haveit=yes
14932                         break
14933                       fi
14934                     done
14935                     if test -z "$haveit"; then
14936                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14937                     fi
14938                     if test "$acl_hardcode_minus_L" != no; then
14939                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14940                     else
14941                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14942                     fi
14943                   fi
14944                 fi
14945               fi
14946             else
14947               if test "X$found_a" != "X"; then
14948                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14949               else
14950                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14951               fi
14952             fi
14953                         additional_includedir=
14954             case "$found_dir" in
14955               */$acl_libdirstem | */$acl_libdirstem/)
14956                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14957                 if test "$name" = 'iconv'; then
14958                   LIBICONV_PREFIX="$basedir"
14959                 fi
14960                 additional_includedir="$basedir/include"
14961                 ;;
14962               */$acl_libdirstem2 | */$acl_libdirstem2/)
14963                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14964                 if test "$name" = 'iconv'; then
14965                   LIBICONV_PREFIX="$basedir"
14966                 fi
14967                 additional_includedir="$basedir/include"
14968                 ;;
14969             esac
14970             if test "X$additional_includedir" != "X"; then
14971                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14972                 haveit=
14973                 if test "X$additional_includedir" = "X/usr/local/include"; then
14974                   if test -n "$GCC"; then
14975                     case $host_os in
14976                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14977                     esac
14978                   fi
14979                 fi
14980                 if test -z "$haveit"; then
14981                   for x in $CPPFLAGS $INCICONV; do
14982
14983   acl_save_prefix="$prefix"
14984   prefix="$acl_final_prefix"
14985   acl_save_exec_prefix="$exec_prefix"
14986   exec_prefix="$acl_final_exec_prefix"
14987   eval x=\"$x\"
14988   exec_prefix="$acl_save_exec_prefix"
14989   prefix="$acl_save_prefix"
14990
14991                     if test "X$x" = "X-I$additional_includedir"; then
14992                       haveit=yes
14993                       break
14994                     fi
14995                   done
14996                   if test -z "$haveit"; then
14997                     if test -d "$additional_includedir"; then
14998                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14999                     fi
15000                   fi
15001                 fi
15002               fi
15003             fi
15004                         if test -n "$found_la"; then
15005                                                         save_libdir="$libdir"
15006               case "$found_la" in
15007                 */* | *\\*) . "$found_la" ;;
15008                 *) . "./$found_la" ;;
15009               esac
15010               libdir="$save_libdir"
15011                             for dep in $dependency_libs; do
15012                 case "$dep" in
15013                   -L*)
15014                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15015                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15016                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15017                       haveit=
15018                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15019                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15020                         if test -n "$GCC"; then
15021                           case $host_os in
15022                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15023                           esac
15024                         fi
15025                       fi
15026                       if test -z "$haveit"; then
15027                         haveit=
15028                         for x in $LDFLAGS $LIBICONV; do
15029
15030   acl_save_prefix="$prefix"
15031   prefix="$acl_final_prefix"
15032   acl_save_exec_prefix="$exec_prefix"
15033   exec_prefix="$acl_final_exec_prefix"
15034   eval x=\"$x\"
15035   exec_prefix="$acl_save_exec_prefix"
15036   prefix="$acl_save_prefix"
15037
15038                           if test "X$x" = "X-L$additional_libdir"; then
15039                             haveit=yes
15040                             break
15041                           fi
15042                         done
15043                         if test -z "$haveit"; then
15044                           if test -d "$additional_libdir"; then
15045                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15046                           fi
15047                         fi
15048                         haveit=
15049                         for x in $LDFLAGS $LTLIBICONV; do
15050
15051   acl_save_prefix="$prefix"
15052   prefix="$acl_final_prefix"
15053   acl_save_exec_prefix="$exec_prefix"
15054   exec_prefix="$acl_final_exec_prefix"
15055   eval x=\"$x\"
15056   exec_prefix="$acl_save_exec_prefix"
15057   prefix="$acl_save_prefix"
15058
15059                           if test "X$x" = "X-L$additional_libdir"; then
15060                             haveit=yes
15061                             break
15062                           fi
15063                         done
15064                         if test -z "$haveit"; then
15065                           if test -d "$additional_libdir"; then
15066                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15067                           fi
15068                         fi
15069                       fi
15070                     fi
15071                     ;;
15072                   -R*)
15073                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15074                     if test "$enable_rpath" != no; then
15075                                                                   haveit=
15076                       for x in $rpathdirs; do
15077                         if test "X$x" = "X$dir"; then
15078                           haveit=yes
15079                           break
15080                         fi
15081                       done
15082                       if test -z "$haveit"; then
15083                         rpathdirs="$rpathdirs $dir"
15084                       fi
15085                                                                   haveit=
15086                       for x in $ltrpathdirs; do
15087                         if test "X$x" = "X$dir"; then
15088                           haveit=yes
15089                           break
15090                         fi
15091                       done
15092                       if test -z "$haveit"; then
15093                         ltrpathdirs="$ltrpathdirs $dir"
15094                       fi
15095                     fi
15096                     ;;
15097                   -l*)
15098                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15099                     ;;
15100                   *.la)
15101                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15102                     ;;
15103                   *)
15104                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15105                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15106                     ;;
15107                 esac
15108               done
15109             fi
15110           else
15111                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15112             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15113           fi
15114         fi
15115       fi
15116     done
15117   done
15118   if test "X$rpathdirs" != "X"; then
15119     if test -n "$acl_hardcode_libdir_separator"; then
15120                         alldirs=
15121       for found_dir in $rpathdirs; do
15122         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15123       done
15124             acl_save_libdir="$libdir"
15125       libdir="$alldirs"
15126       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15127       libdir="$acl_save_libdir"
15128       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15129     else
15130             for found_dir in $rpathdirs; do
15131         acl_save_libdir="$libdir"
15132         libdir="$found_dir"
15133         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15134         libdir="$acl_save_libdir"
15135         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15136       done
15137     fi
15138   fi
15139   if test "X$ltrpathdirs" != "X"; then
15140             for found_dir in $ltrpathdirs; do
15141       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15142     done
15143   fi
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15176 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15177 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15178   $as_echo_n "(cached) " >&6
15179 else
15180   gt_save_LIBS="$LIBS"
15181      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15182      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h.  */
15184 #include <CoreFoundation/CFPreferences.h>
15185 int
15186 main ()
15187 {
15188 CFPreferencesCopyAppValue(NULL, NULL)
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15194   gt_cv_func_CFPreferencesCopyAppValue=yes
15195 else
15196   gt_cv_func_CFPreferencesCopyAppValue=no
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext \
15199     conftest$ac_exeext conftest.$ac_ext
15200      LIBS="$gt_save_LIBS"
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15203 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15204   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15205
15206 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15207
15208   fi
15209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15210 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15211 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15212   $as_echo_n "(cached) " >&6
15213 else
15214   gt_save_LIBS="$LIBS"
15215      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15216      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h.  */
15218 #include <CoreFoundation/CFLocale.h>
15219 int
15220 main ()
15221 {
15222 CFLocaleCopyCurrent();
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 if ac_fn_c_try_link "$LINENO"; then :
15228   gt_cv_func_CFLocaleCopyCurrent=yes
15229 else
15230   gt_cv_func_CFLocaleCopyCurrent=no
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext \
15233     conftest$ac_exeext conftest.$ac_ext
15234      LIBS="$gt_save_LIBS"
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15237 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15238   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15239
15240 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15241
15242   fi
15243   INTL_MACOSX_LIBS=
15244   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15245     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15246   fi
15247
15248
15249
15250
15251
15252
15253   LIBINTL=
15254   LTLIBINTL=
15255   POSUB=
15256
15257     case " $gt_needs " in
15258     *" need-formatstring-macros "*) gt_api_version=3 ;;
15259     *" need-ngettext "*) gt_api_version=2 ;;
15260     *) gt_api_version=1 ;;
15261   esac
15262   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15263   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15264
15265     if test "$USE_NLS" = "yes"; then
15266     gt_use_preinstalled_gnugettext=no
15267
15268
15269         if test $gt_api_version -ge 3; then
15270           gt_revision_test_code='
15271 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15272 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15273 #endif
15274 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15275 '
15276         else
15277           gt_revision_test_code=
15278         fi
15279         if test $gt_api_version -ge 2; then
15280           gt_expression_test_code=' + * ngettext ("", "", 0)'
15281         else
15282           gt_expression_test_code=
15283         fi
15284
15285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15286 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15287 if eval \${$gt_func_gnugettext_libc+:} false; then :
15288   $as_echo_n "(cached) " >&6
15289 else
15290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h.  */
15292 #include <libintl.h>
15293 $gt_revision_test_code
15294 extern int _nl_msg_cat_cntr;
15295 extern int *_nl_domain_bindings;
15296 int
15297 main ()
15298 {
15299 bindtextdomain ("", "");
15300 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 if ac_fn_c_try_link "$LINENO"; then :
15306   eval "$gt_func_gnugettext_libc=yes"
15307 else
15308   eval "$gt_func_gnugettext_libc=no"
15309 fi
15310 rm -f core conftest.err conftest.$ac_objext \
15311     conftest$ac_exeext conftest.$ac_ext
15312 fi
15313 eval ac_res=\$$gt_func_gnugettext_libc
15314                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15315 $as_echo "$ac_res" >&6; }
15316
15317         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15318
15319
15320
15321
15322
15323           am_save_CPPFLAGS="$CPPFLAGS"
15324
15325   for element in $INCICONV; do
15326     haveit=
15327     for x in $CPPFLAGS; do
15328
15329   acl_save_prefix="$prefix"
15330   prefix="$acl_final_prefix"
15331   acl_save_exec_prefix="$exec_prefix"
15332   exec_prefix="$acl_final_exec_prefix"
15333   eval x=\"$x\"
15334   exec_prefix="$acl_save_exec_prefix"
15335   prefix="$acl_save_prefix"
15336
15337       if test "X$x" = "X$element"; then
15338         haveit=yes
15339         break
15340       fi
15341     done
15342     if test -z "$haveit"; then
15343       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15344     fi
15345   done
15346
15347
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15349 $as_echo_n "checking for iconv... " >&6; }
15350 if ${am_cv_func_iconv+:} false; then :
15351   $as_echo_n "(cached) " >&6
15352 else
15353
15354     am_cv_func_iconv="no, consider installing GNU libiconv"
15355     am_cv_lib_iconv=no
15356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h.  */
15358 #include <stdlib.h>
15359 #include <iconv.h>
15360 int
15361 main ()
15362 {
15363 iconv_t cd = iconv_open("","");
15364        iconv(cd,NULL,NULL,NULL,NULL);
15365        iconv_close(cd);
15366   ;
15367   return 0;
15368 }
15369 _ACEOF
15370 if ac_fn_c_try_link "$LINENO"; then :
15371   am_cv_func_iconv=yes
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext \
15374     conftest$ac_exeext conftest.$ac_ext
15375     if test "$am_cv_func_iconv" != yes; then
15376       am_save_LIBS="$LIBS"
15377       LIBS="$LIBS $LIBICONV"
15378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380 #include <stdlib.h>
15381 #include <iconv.h>
15382 int
15383 main ()
15384 {
15385 iconv_t cd = iconv_open("","");
15386          iconv(cd,NULL,NULL,NULL,NULL);
15387          iconv_close(cd);
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_c_try_link "$LINENO"; then :
15393   am_cv_lib_iconv=yes
15394         am_cv_func_iconv=yes
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext \
15397     conftest$ac_exeext conftest.$ac_ext
15398       LIBS="$am_save_LIBS"
15399     fi
15400
15401 fi
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15403 $as_echo "$am_cv_func_iconv" >&6; }
15404   if test "$am_cv_func_iconv" = yes; then
15405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15406 $as_echo_n "checking for working iconv... " >&6; }
15407 if ${am_cv_func_iconv_works+:} false; then :
15408   $as_echo_n "(cached) " >&6
15409 else
15410
15411             am_save_LIBS="$LIBS"
15412       if test $am_cv_lib_iconv = yes; then
15413         LIBS="$LIBS $LIBICONV"
15414       fi
15415       if test "$cross_compiling" = yes; then :
15416   case "$host_os" in
15417            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15418            *)            am_cv_func_iconv_works="guessing yes" ;;
15419          esac
15420 else
15421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h.  */
15423
15424 #include <iconv.h>
15425 #include <string.h>
15426 int main ()
15427 {
15428   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15429      returns.  */
15430   {
15431     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15432     if (cd_utf8_to_88591 != (iconv_t)(-1))
15433       {
15434         static const char input[] = "\342\202\254"; /* EURO SIGN */
15435         char buf[10];
15436         const char *inptr = input;
15437         size_t inbytesleft = strlen (input);
15438         char *outptr = buf;
15439         size_t outbytesleft = sizeof (buf);
15440         size_t res = iconv (cd_utf8_to_88591,
15441                             (char **) &inptr, &inbytesleft,
15442                             &outptr, &outbytesleft);
15443         if (res == 0)
15444           return 1;
15445       }
15446   }
15447   /* Test against Solaris 10 bug: Failures are not distinguishable from
15448      successful returns.  */
15449   {
15450     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15451     if (cd_ascii_to_88591 != (iconv_t)(-1))
15452       {
15453         static const char input[] = "\263";
15454         char buf[10];
15455         const char *inptr = input;
15456         size_t inbytesleft = strlen (input);
15457         char *outptr = buf;
15458         size_t outbytesleft = sizeof (buf);
15459         size_t res = iconv (cd_ascii_to_88591,
15460                             (char **) &inptr, &inbytesleft,
15461                             &outptr, &outbytesleft);
15462         if (res == 0)
15463           return 1;
15464       }
15465   }
15466 #if 0 /* This bug could be worked around by the caller.  */
15467   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15468   {
15469     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15470     if (cd_88591_to_utf8 != (iconv_t)(-1))
15471       {
15472         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15473         char buf[50];
15474         const char *inptr = input;
15475         size_t inbytesleft = strlen (input);
15476         char *outptr = buf;
15477         size_t outbytesleft = sizeof (buf);
15478         size_t res = iconv (cd_88591_to_utf8,
15479                             (char **) &inptr, &inbytesleft,
15480                             &outptr, &outbytesleft);
15481         if ((int)res > 0)
15482           return 1;
15483       }
15484   }
15485 #endif
15486   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15487      provided.  */
15488   if (/* Try standardized names.  */
15489       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15490       /* Try IRIX, OSF/1 names.  */
15491       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15492       /* Try AIX names.  */
15493       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15494       /* Try HP-UX names.  */
15495       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15496     return 1;
15497   return 0;
15498 }
15499 _ACEOF
15500 if ac_fn_c_try_run "$LINENO"; then :
15501   am_cv_func_iconv_works=yes
15502 else
15503   am_cv_func_iconv_works=no
15504 fi
15505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15506   conftest.$ac_objext conftest.beam conftest.$ac_ext
15507 fi
15508
15509       LIBS="$am_save_LIBS"
15510
15511 fi
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15513 $as_echo "$am_cv_func_iconv_works" >&6; }
15514     case "$am_cv_func_iconv_works" in
15515       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15516       *)   am_func_iconv=yes ;;
15517     esac
15518   else
15519     am_func_iconv=no am_cv_lib_iconv=no
15520   fi
15521   if test "$am_func_iconv" = yes; then
15522
15523 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15524
15525   fi
15526   if test "$am_cv_lib_iconv" = yes; then
15527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15528 $as_echo_n "checking how to link with libiconv... " >&6; }
15529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15530 $as_echo "$LIBICONV" >&6; }
15531   else
15532             CPPFLAGS="$am_save_CPPFLAGS"
15533     LIBICONV=
15534     LTLIBICONV=
15535   fi
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547     use_additional=yes
15548
15549   acl_save_prefix="$prefix"
15550   prefix="$acl_final_prefix"
15551   acl_save_exec_prefix="$exec_prefix"
15552   exec_prefix="$acl_final_exec_prefix"
15553
15554     eval additional_includedir=\"$includedir\"
15555     eval additional_libdir=\"$libdir\"
15556
15557   exec_prefix="$acl_save_exec_prefix"
15558   prefix="$acl_save_prefix"
15559
15560
15561 # Check whether --with-libintl-prefix was given.
15562 if test "${with_libintl_prefix+set}" = set; then :
15563   withval=$with_libintl_prefix;
15564     if test "X$withval" = "Xno"; then
15565       use_additional=no
15566     else
15567       if test "X$withval" = "X"; then
15568
15569   acl_save_prefix="$prefix"
15570   prefix="$acl_final_prefix"
15571   acl_save_exec_prefix="$exec_prefix"
15572   exec_prefix="$acl_final_exec_prefix"
15573
15574           eval additional_includedir=\"$includedir\"
15575           eval additional_libdir=\"$libdir\"
15576
15577   exec_prefix="$acl_save_exec_prefix"
15578   prefix="$acl_save_prefix"
15579
15580       else
15581         additional_includedir="$withval/include"
15582         additional_libdir="$withval/$acl_libdirstem"
15583         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15584            && ! test -d "$withval/$acl_libdirstem"; then
15585           additional_libdir="$withval/$acl_libdirstem2"
15586         fi
15587       fi
15588     fi
15589
15590 fi
15591
15592       LIBINTL=
15593   LTLIBINTL=
15594   INCINTL=
15595   LIBINTL_PREFIX=
15596       HAVE_LIBINTL=
15597   rpathdirs=
15598   ltrpathdirs=
15599   names_already_handled=
15600   names_next_round='intl '
15601   while test -n "$names_next_round"; do
15602     names_this_round="$names_next_round"
15603     names_next_round=
15604     for name in $names_this_round; do
15605       already_handled=
15606       for n in $names_already_handled; do
15607         if test "$n" = "$name"; then
15608           already_handled=yes
15609           break
15610         fi
15611       done
15612       if test -z "$already_handled"; then
15613         names_already_handled="$names_already_handled $name"
15614                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15615         eval value=\"\$HAVE_LIB$uppername\"
15616         if test -n "$value"; then
15617           if test "$value" = yes; then
15618             eval value=\"\$LIB$uppername\"
15619             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15620             eval value=\"\$LTLIB$uppername\"
15621             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15622           else
15623                                     :
15624           fi
15625         else
15626                               found_dir=
15627           found_la=
15628           found_so=
15629           found_a=
15630           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15631           if test -n "$acl_shlibext"; then
15632             shrext=".$acl_shlibext"             # typically: shrext=.so
15633           else
15634             shrext=
15635           fi
15636           if test $use_additional = yes; then
15637             dir="$additional_libdir"
15638                                     if test -n "$acl_shlibext"; then
15639               if test -f "$dir/$libname$shrext"; then
15640                 found_dir="$dir"
15641                 found_so="$dir/$libname$shrext"
15642               else
15643                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15644                   ver=`(cd "$dir" && \
15645                         for f in "$libname$shrext".*; do echo "$f"; done \
15646                         | sed -e "s,^$libname$shrext\\\\.,," \
15647                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15648                         | sed 1q ) 2>/dev/null`
15649                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15650                     found_dir="$dir"
15651                     found_so="$dir/$libname$shrext.$ver"
15652                   fi
15653                 else
15654                   eval library_names=\"$acl_library_names_spec\"
15655                   for f in $library_names; do
15656                     if test -f "$dir/$f"; then
15657                       found_dir="$dir"
15658                       found_so="$dir/$f"
15659                       break
15660                     fi
15661                   done
15662                 fi
15663               fi
15664             fi
15665                         if test "X$found_dir" = "X"; then
15666               if test -f "$dir/$libname.$acl_libext"; then
15667                 found_dir="$dir"
15668                 found_a="$dir/$libname.$acl_libext"
15669               fi
15670             fi
15671             if test "X$found_dir" != "X"; then
15672               if test -f "$dir/$libname.la"; then
15673                 found_la="$dir/$libname.la"
15674               fi
15675             fi
15676           fi
15677           if test "X$found_dir" = "X"; then
15678             for x in $LDFLAGS $LTLIBINTL; do
15679
15680   acl_save_prefix="$prefix"
15681   prefix="$acl_final_prefix"
15682   acl_save_exec_prefix="$exec_prefix"
15683   exec_prefix="$acl_final_exec_prefix"
15684   eval x=\"$x\"
15685   exec_prefix="$acl_save_exec_prefix"
15686   prefix="$acl_save_prefix"
15687
15688               case "$x" in
15689                 -L*)
15690                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15691                                     if test -n "$acl_shlibext"; then
15692                     if test -f "$dir/$libname$shrext"; then
15693                       found_dir="$dir"
15694                       found_so="$dir/$libname$shrext"
15695                     else
15696                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15697                         ver=`(cd "$dir" && \
15698                               for f in "$libname$shrext".*; do echo "$f"; done \
15699                               | sed -e "s,^$libname$shrext\\\\.,," \
15700                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15701                               | sed 1q ) 2>/dev/null`
15702                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15703                           found_dir="$dir"
15704                           found_so="$dir/$libname$shrext.$ver"
15705                         fi
15706                       else
15707                         eval library_names=\"$acl_library_names_spec\"
15708                         for f in $library_names; do
15709                           if test -f "$dir/$f"; then
15710                             found_dir="$dir"
15711                             found_so="$dir/$f"
15712                             break
15713                           fi
15714                         done
15715                       fi
15716                     fi
15717                   fi
15718                                     if test "X$found_dir" = "X"; then
15719                     if test -f "$dir/$libname.$acl_libext"; then
15720                       found_dir="$dir"
15721                       found_a="$dir/$libname.$acl_libext"
15722                     fi
15723                   fi
15724                   if test "X$found_dir" != "X"; then
15725                     if test -f "$dir/$libname.la"; then
15726                       found_la="$dir/$libname.la"
15727                     fi
15728                   fi
15729                   ;;
15730               esac
15731               if test "X$found_dir" != "X"; then
15732                 break
15733               fi
15734             done
15735           fi
15736           if test "X$found_dir" != "X"; then
15737                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15738             if test "X$found_so" != "X"; then
15739                                                         if test "$enable_rpath" = no \
15740                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15741                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15742                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15743               else
15744                                                                                 haveit=
15745                 for x in $ltrpathdirs; do
15746                   if test "X$x" = "X$found_dir"; then
15747                     haveit=yes
15748                     break
15749                   fi
15750                 done
15751                 if test -z "$haveit"; then
15752                   ltrpathdirs="$ltrpathdirs $found_dir"
15753                 fi
15754                                 if test "$acl_hardcode_direct" = yes; then
15755                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15756                 else
15757                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15758                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15759                                                             haveit=
15760                     for x in $rpathdirs; do
15761                       if test "X$x" = "X$found_dir"; then
15762                         haveit=yes
15763                         break
15764                       fi
15765                     done
15766                     if test -z "$haveit"; then
15767                       rpathdirs="$rpathdirs $found_dir"
15768                     fi
15769                   else
15770                                                                                 haveit=
15771                     for x in $LDFLAGS $LIBINTL; do
15772
15773   acl_save_prefix="$prefix"
15774   prefix="$acl_final_prefix"
15775   acl_save_exec_prefix="$exec_prefix"
15776   exec_prefix="$acl_final_exec_prefix"
15777   eval x=\"$x\"
15778   exec_prefix="$acl_save_exec_prefix"
15779   prefix="$acl_save_prefix"
15780
15781                       if test "X$x" = "X-L$found_dir"; then
15782                         haveit=yes
15783                         break
15784                       fi
15785                     done
15786                     if test -z "$haveit"; then
15787                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15788                     fi
15789                     if test "$acl_hardcode_minus_L" != no; then
15790                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15791                     else
15792                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15793                     fi
15794                   fi
15795                 fi
15796               fi
15797             else
15798               if test "X$found_a" != "X"; then
15799                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15800               else
15801                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15802               fi
15803             fi
15804                         additional_includedir=
15805             case "$found_dir" in
15806               */$acl_libdirstem | */$acl_libdirstem/)
15807                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15808                 if test "$name" = 'intl'; then
15809                   LIBINTL_PREFIX="$basedir"
15810                 fi
15811                 additional_includedir="$basedir/include"
15812                 ;;
15813               */$acl_libdirstem2 | */$acl_libdirstem2/)
15814                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15815                 if test "$name" = 'intl'; then
15816                   LIBINTL_PREFIX="$basedir"
15817                 fi
15818                 additional_includedir="$basedir/include"
15819                 ;;
15820             esac
15821             if test "X$additional_includedir" != "X"; then
15822                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15823                 haveit=
15824                 if test "X$additional_includedir" = "X/usr/local/include"; then
15825                   if test -n "$GCC"; then
15826                     case $host_os in
15827                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15828                     esac
15829                   fi
15830                 fi
15831                 if test -z "$haveit"; then
15832                   for x in $CPPFLAGS $INCINTL; do
15833
15834   acl_save_prefix="$prefix"
15835   prefix="$acl_final_prefix"
15836   acl_save_exec_prefix="$exec_prefix"
15837   exec_prefix="$acl_final_exec_prefix"
15838   eval x=\"$x\"
15839   exec_prefix="$acl_save_exec_prefix"
15840   prefix="$acl_save_prefix"
15841
15842                     if test "X$x" = "X-I$additional_includedir"; then
15843                       haveit=yes
15844                       break
15845                     fi
15846                   done
15847                   if test -z "$haveit"; then
15848                     if test -d "$additional_includedir"; then
15849                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15850                     fi
15851                   fi
15852                 fi
15853               fi
15854             fi
15855                         if test -n "$found_la"; then
15856                                                         save_libdir="$libdir"
15857               case "$found_la" in
15858                 */* | *\\*) . "$found_la" ;;
15859                 *) . "./$found_la" ;;
15860               esac
15861               libdir="$save_libdir"
15862                             for dep in $dependency_libs; do
15863                 case "$dep" in
15864                   -L*)
15865                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15866                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15867                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15868                       haveit=
15869                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15870                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15871                         if test -n "$GCC"; then
15872                           case $host_os in
15873                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15874                           esac
15875                         fi
15876                       fi
15877                       if test -z "$haveit"; then
15878                         haveit=
15879                         for x in $LDFLAGS $LIBINTL; do
15880
15881   acl_save_prefix="$prefix"
15882   prefix="$acl_final_prefix"
15883   acl_save_exec_prefix="$exec_prefix"
15884   exec_prefix="$acl_final_exec_prefix"
15885   eval x=\"$x\"
15886   exec_prefix="$acl_save_exec_prefix"
15887   prefix="$acl_save_prefix"
15888
15889                           if test "X$x" = "X-L$additional_libdir"; then
15890                             haveit=yes
15891                             break
15892                           fi
15893                         done
15894                         if test -z "$haveit"; then
15895                           if test -d "$additional_libdir"; then
15896                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15897                           fi
15898                         fi
15899                         haveit=
15900                         for x in $LDFLAGS $LTLIBINTL; do
15901
15902   acl_save_prefix="$prefix"
15903   prefix="$acl_final_prefix"
15904   acl_save_exec_prefix="$exec_prefix"
15905   exec_prefix="$acl_final_exec_prefix"
15906   eval x=\"$x\"
15907   exec_prefix="$acl_save_exec_prefix"
15908   prefix="$acl_save_prefix"
15909
15910                           if test "X$x" = "X-L$additional_libdir"; then
15911                             haveit=yes
15912                             break
15913                           fi
15914                         done
15915                         if test -z "$haveit"; then
15916                           if test -d "$additional_libdir"; then
15917                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15918                           fi
15919                         fi
15920                       fi
15921                     fi
15922                     ;;
15923                   -R*)
15924                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15925                     if test "$enable_rpath" != no; then
15926                                                                   haveit=
15927                       for x in $rpathdirs; do
15928                         if test "X$x" = "X$dir"; then
15929                           haveit=yes
15930                           break
15931                         fi
15932                       done
15933                       if test -z "$haveit"; then
15934                         rpathdirs="$rpathdirs $dir"
15935                       fi
15936                                                                   haveit=
15937                       for x in $ltrpathdirs; do
15938                         if test "X$x" = "X$dir"; then
15939                           haveit=yes
15940                           break
15941                         fi
15942                       done
15943                       if test -z "$haveit"; then
15944                         ltrpathdirs="$ltrpathdirs $dir"
15945                       fi
15946                     fi
15947                     ;;
15948                   -l*)
15949                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15950                     ;;
15951                   *.la)
15952                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15953                     ;;
15954                   *)
15955                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15956                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15957                     ;;
15958                 esac
15959               done
15960             fi
15961           else
15962                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15963             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15964           fi
15965         fi
15966       fi
15967     done
15968   done
15969   if test "X$rpathdirs" != "X"; then
15970     if test -n "$acl_hardcode_libdir_separator"; then
15971                         alldirs=
15972       for found_dir in $rpathdirs; do
15973         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15974       done
15975             acl_save_libdir="$libdir"
15976       libdir="$alldirs"
15977       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15978       libdir="$acl_save_libdir"
15979       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15980     else
15981             for found_dir in $rpathdirs; do
15982         acl_save_libdir="$libdir"
15983         libdir="$found_dir"
15984         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15985         libdir="$acl_save_libdir"
15986         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15987       done
15988     fi
15989   fi
15990   if test "X$ltrpathdirs" != "X"; then
15991             for found_dir in $ltrpathdirs; do
15992       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15993     done
15994   fi
15995
15996
15997
15998
15999
16000
16001           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16002 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16003 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   gt_save_CPPFLAGS="$CPPFLAGS"
16007             CPPFLAGS="$CPPFLAGS $INCINTL"
16008             gt_save_LIBS="$LIBS"
16009             LIBS="$LIBS $LIBINTL"
16010                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h.  */
16012 #include <libintl.h>
16013 $gt_revision_test_code
16014 extern int _nl_msg_cat_cntr;
16015 extern
16016 #ifdef __cplusplus
16017 "C"
16018 #endif
16019 const char *_nl_expand_alias (const char *);
16020 int
16021 main ()
16022 {
16023 bindtextdomain ("", "");
16024 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 if ac_fn_c_try_link "$LINENO"; then :
16030   eval "$gt_func_gnugettext_libintl=yes"
16031 else
16032   eval "$gt_func_gnugettext_libintl=no"
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext \
16035     conftest$ac_exeext conftest.$ac_ext
16036                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16037               LIBS="$LIBS $LIBICONV"
16038               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h.  */
16040 #include <libintl.h>
16041 $gt_revision_test_code
16042 extern int _nl_msg_cat_cntr;
16043 extern
16044 #ifdef __cplusplus
16045 "C"
16046 #endif
16047 const char *_nl_expand_alias (const char *);
16048 int
16049 main ()
16050 {
16051 bindtextdomain ("", "");
16052 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 if ac_fn_c_try_link "$LINENO"; then :
16058   LIBINTL="$LIBINTL $LIBICONV"
16059                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16060                 eval "$gt_func_gnugettext_libintl=yes"
16061
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext \
16064     conftest$ac_exeext conftest.$ac_ext
16065             fi
16066             CPPFLAGS="$gt_save_CPPFLAGS"
16067             LIBS="$gt_save_LIBS"
16068 fi
16069 eval ac_res=\$$gt_func_gnugettext_libintl
16070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16071 $as_echo "$ac_res" >&6; }
16072         fi
16073
16074                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16075            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16076                 && test "$PACKAGE" != gettext-runtime \
16077                 && test "$PACKAGE" != gettext-tools; }; then
16078           gt_use_preinstalled_gnugettext=yes
16079         else
16080                     LIBINTL=
16081           LTLIBINTL=
16082           INCINTL=
16083         fi
16084
16085
16086
16087     if test -n "$INTL_MACOSX_LIBS"; then
16088       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16089          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16090                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16091         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16092       fi
16093     fi
16094
16095     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16096        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16097
16098 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16099
16100     else
16101       USE_NLS=no
16102     fi
16103   fi
16104
16105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16106 $as_echo_n "checking whether to use NLS... " >&6; }
16107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16108 $as_echo "$USE_NLS" >&6; }
16109   if test "$USE_NLS" = "yes"; then
16110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16111 $as_echo_n "checking where the gettext function comes from... " >&6; }
16112     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16113       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16114         gt_source="external libintl"
16115       else
16116         gt_source="libc"
16117       fi
16118     else
16119       gt_source="included intl directory"
16120     fi
16121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16122 $as_echo "$gt_source" >&6; }
16123   fi
16124
16125   if test "$USE_NLS" = "yes"; then
16126
16127     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16128       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16130 $as_echo_n "checking how to link with libintl... " >&6; }
16131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16132 $as_echo "$LIBINTL" >&6; }
16133
16134   for element in $INCINTL; do
16135     haveit=
16136     for x in $CPPFLAGS; do
16137
16138   acl_save_prefix="$prefix"
16139   prefix="$acl_final_prefix"
16140   acl_save_exec_prefix="$exec_prefix"
16141   exec_prefix="$acl_final_exec_prefix"
16142   eval x=\"$x\"
16143   exec_prefix="$acl_save_exec_prefix"
16144   prefix="$acl_save_prefix"
16145
16146       if test "X$x" = "X$element"; then
16147         haveit=yes
16148         break
16149       fi
16150     done
16151     if test -z "$haveit"; then
16152       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16153     fi
16154   done
16155
16156       fi
16157
16158
16159 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16160
16161
16162 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16163
16164     fi
16165
16166         POSUB=po
16167   fi
16168
16169
16170
16171     INTLLIBS="$LIBINTL"
16172
16173
16174
16175
16176
16177
16178
16179
16180 GETTEXT_PACKAGE=PACKAGE_TARNAME
16181
16182
16183 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16184
16185
16186 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16187
16188
16189 cat >confcache <<\_ACEOF
16190 # This file is a shell script that caches the results of configure
16191 # tests run on this system so they can be shared between configure
16192 # scripts and configure runs, see configure's option --config-cache.
16193 # It is not useful on other systems.  If it contains results you don't
16194 # want to keep, you may remove or edit it.
16195 #
16196 # config.status only pays attention to the cache file if you give it
16197 # the --recheck option to rerun configure.
16198 #
16199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16201 # following values.
16202
16203 _ACEOF
16204
16205 # The following way of writing the cache mishandles newlines in values,
16206 # but we know of no workaround that is simple, portable, and efficient.
16207 # So, we kill variables containing newlines.
16208 # Ultrix sh set writes to stderr and can't be redirected directly,
16209 # and sets the high bit in the cache file unless we assign to the vars.
16210 (
16211   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16212     eval ac_val=\$$ac_var
16213     case $ac_val in #(
16214     *${as_nl}*)
16215       case $ac_var in #(
16216       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16218       esac
16219       case $ac_var in #(
16220       _ | IFS | as_nl) ;; #(
16221       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16222       *) { eval $ac_var=; unset $ac_var;} ;;
16223       esac ;;
16224     esac
16225   done
16226
16227   (set) 2>&1 |
16228     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16229     *${as_nl}ac_space=\ *)
16230       # `set' does not quote correctly, so add quotes: double-quote
16231       # substitution turns \\\\ into \\, and sed turns \\ into \.
16232       sed -n \
16233         "s/'/'\\\\''/g;
16234           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16235       ;; #(
16236     *)
16237       # `set' quotes correctly as required by POSIX, so do not add quotes.
16238       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16239       ;;
16240     esac |
16241     sort
16242 ) |
16243   sed '
16244      /^ac_cv_env_/b end
16245      t clear
16246      :clear
16247      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16248      t end
16249      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16250      :end' >>confcache
16251 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16252   if test -w "$cache_file"; then
16253     if test "x$cache_file" != "x/dev/null"; then
16254       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16255 $as_echo "$as_me: updating cache $cache_file" >&6;}
16256       if test ! -f "$cache_file" || test -h "$cache_file"; then
16257         cat confcache >"$cache_file"
16258       else
16259         case $cache_file in #(
16260         */* | ?:*)
16261           mv -f confcache "$cache_file"$$ &&
16262           mv -f "$cache_file"$$ "$cache_file" ;; #(
16263         *)
16264           mv -f confcache "$cache_file" ;;
16265         esac
16266       fi
16267     fi
16268   else
16269     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16270 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16271   fi
16272 fi
16273 rm -f confcache
16274
16275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16276 # Let make expand exec_prefix.
16277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16278
16279 DEFS=-DHAVE_CONFIG_H
16280
16281 ac_libobjs=
16282 ac_ltlibobjs=
16283 U=
16284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16285   # 1. Remove the extension, and $U if already installed.
16286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16287   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16289   #    will be set to the directory where LIBOBJS objects are built.
16290   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16291   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16292 done
16293 LIBOBJS=$ac_libobjs
16294
16295 LTLIBOBJS=$ac_ltlibobjs
16296
16297
16298  if test -n "$EXEEXT"; then
16299   am__EXEEXT_TRUE=
16300   am__EXEEXT_FALSE='#'
16301 else
16302   am__EXEEXT_TRUE='#'
16303   am__EXEEXT_FALSE=
16304 fi
16305
16306 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16307   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 fi
16310 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16311   as_fn_error $? "conditional \"AMDEP\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 fi
16314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16315   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 fi
16318 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16319   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16321 fi
16322 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16323   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16325 fi
16326 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16327   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 fi
16330 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16331   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 fi
16334 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16335   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16337 fi
16338 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16339   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16341 fi
16342 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16343   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16345 fi
16346 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16347   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16349 fi
16350
16351 : "${CONFIG_STATUS=./config.status}"
16352 ac_write_fail=0
16353 ac_clean_files_save=$ac_clean_files
16354 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16356 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16357 as_write_fail=0
16358 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16359 #! $SHELL
16360 # Generated by $as_me.
16361 # Run this file to recreate the current configuration.
16362 # Compiler output produced by configure, useful for debugging
16363 # configure, is in config.log if it exists.
16364
16365 debug=false
16366 ac_cs_recheck=false
16367 ac_cs_silent=false
16368
16369 SHELL=\${CONFIG_SHELL-$SHELL}
16370 export SHELL
16371 _ASEOF
16372 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16373 ## -------------------- ##
16374 ## M4sh Initialization. ##
16375 ## -------------------- ##
16376
16377 # Be more Bourne compatible
16378 DUALCASE=1; export DUALCASE # for MKS sh
16379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16380   emulate sh
16381   NULLCMD=:
16382   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16383   # is contrary to our usage.  Disable this feature.
16384   alias -g '${1+"$@"}'='"$@"'
16385   setopt NO_GLOB_SUBST
16386 else
16387   case `(set -o) 2>/dev/null` in #(
16388   *posix*) :
16389     set -o posix ;; #(
16390   *) :
16391      ;;
16392 esac
16393 fi
16394
16395
16396 as_nl='
16397 '
16398 export as_nl
16399 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16400 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16403 # Prefer a ksh shell builtin over an external printf program on Solaris,
16404 # but without wasting forks for bash or zsh.
16405 if test -z "$BASH_VERSION$ZSH_VERSION" \
16406     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16407   as_echo='print -r --'
16408   as_echo_n='print -rn --'
16409 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16410   as_echo='printf %s\n'
16411   as_echo_n='printf %s'
16412 else
16413   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16414     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16415     as_echo_n='/usr/ucb/echo -n'
16416   else
16417     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16418     as_echo_n_body='eval
16419       arg=$1;
16420       case $arg in #(
16421       *"$as_nl"*)
16422         expr "X$arg" : "X\\(.*\\)$as_nl";
16423         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16424       esac;
16425       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16426     '
16427     export as_echo_n_body
16428     as_echo_n='sh -c $as_echo_n_body as_echo'
16429   fi
16430   export as_echo_body
16431   as_echo='sh -c $as_echo_body as_echo'
16432 fi
16433
16434 # The user is always right.
16435 if test "${PATH_SEPARATOR+set}" != set; then
16436   PATH_SEPARATOR=:
16437   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16438     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16439       PATH_SEPARATOR=';'
16440   }
16441 fi
16442
16443
16444 # IFS
16445 # We need space, tab and new line, in precisely that order.  Quoting is
16446 # there to prevent editors from complaining about space-tab.
16447 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16448 # splitting by setting IFS to empty value.)
16449 IFS=" ""        $as_nl"
16450
16451 # Find who we are.  Look in the path if we contain no directory separator.
16452 as_myself=
16453 case $0 in #((
16454   *[\\/]* ) as_myself=$0 ;;
16455   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16457 do
16458   IFS=$as_save_IFS
16459   test -z "$as_dir" && as_dir=.
16460     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16461   done
16462 IFS=$as_save_IFS
16463
16464      ;;
16465 esac
16466 # We did not find ourselves, most probably we were run as `sh COMMAND'
16467 # in which case we are not to be found in the path.
16468 if test "x$as_myself" = x; then
16469   as_myself=$0
16470 fi
16471 if test ! -f "$as_myself"; then
16472   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16473   exit 1
16474 fi
16475
16476 # Unset variables that we do not need and which cause bugs (e.g. in
16477 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16478 # suppresses any "Segmentation fault" message there.  '((' could
16479 # trigger a bug in pdksh 5.2.14.
16480 for as_var in BASH_ENV ENV MAIL MAILPATH
16481 do eval test x\${$as_var+set} = xset \
16482   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16483 done
16484 PS1='$ '
16485 PS2='> '
16486 PS4='+ '
16487
16488 # NLS nuisances.
16489 LC_ALL=C
16490 export LC_ALL
16491 LANGUAGE=C
16492 export LANGUAGE
16493
16494 # CDPATH.
16495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16496
16497
16498 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16499 # ----------------------------------------
16500 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16501 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16502 # script with STATUS, using 1 if that was 0.
16503 as_fn_error ()
16504 {
16505   as_status=$1; test $as_status -eq 0 && as_status=1
16506   if test "$4"; then
16507     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16508     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16509   fi
16510   $as_echo "$as_me: error: $2" >&2
16511   as_fn_exit $as_status
16512 } # as_fn_error
16513
16514
16515 # as_fn_set_status STATUS
16516 # -----------------------
16517 # Set $? to STATUS, without forking.
16518 as_fn_set_status ()
16519 {
16520   return $1
16521 } # as_fn_set_status
16522
16523 # as_fn_exit STATUS
16524 # -----------------
16525 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16526 as_fn_exit ()
16527 {
16528   set +e
16529   as_fn_set_status $1
16530   exit $1
16531 } # as_fn_exit
16532
16533 # as_fn_unset VAR
16534 # ---------------
16535 # Portably unset VAR.
16536 as_fn_unset ()
16537 {
16538   { eval $1=; unset $1;}
16539 }
16540 as_unset=as_fn_unset
16541 # as_fn_append VAR VALUE
16542 # ----------------------
16543 # Append the text in VALUE to the end of the definition contained in VAR. Take
16544 # advantage of any shell optimizations that allow amortized linear growth over
16545 # repeated appends, instead of the typical quadratic growth present in naive
16546 # implementations.
16547 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16548   eval 'as_fn_append ()
16549   {
16550     eval $1+=\$2
16551   }'
16552 else
16553   as_fn_append ()
16554   {
16555     eval $1=\$$1\$2
16556   }
16557 fi # as_fn_append
16558
16559 # as_fn_arith ARG...
16560 # ------------------
16561 # Perform arithmetic evaluation on the ARGs, and store the result in the
16562 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16563 # must be portable across $(()) and expr.
16564 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16565   eval 'as_fn_arith ()
16566   {
16567     as_val=$(( $* ))
16568   }'
16569 else
16570   as_fn_arith ()
16571   {
16572     as_val=`expr "$@" || test $? -eq 1`
16573   }
16574 fi # as_fn_arith
16575
16576
16577 if expr a : '\(a\)' >/dev/null 2>&1 &&
16578    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16579   as_expr=expr
16580 else
16581   as_expr=false
16582 fi
16583
16584 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16585   as_basename=basename
16586 else
16587   as_basename=false
16588 fi
16589
16590 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16591   as_dirname=dirname
16592 else
16593   as_dirname=false
16594 fi
16595
16596 as_me=`$as_basename -- "$0" ||
16597 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16598          X"$0" : 'X\(//\)$' \| \
16599          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16600 $as_echo X/"$0" |
16601     sed '/^.*\/\([^/][^/]*\)\/*$/{
16602             s//\1/
16603             q
16604           }
16605           /^X\/\(\/\/\)$/{
16606             s//\1/
16607             q
16608           }
16609           /^X\/\(\/\).*/{
16610             s//\1/
16611             q
16612           }
16613           s/.*/./; q'`
16614
16615 # Avoid depending upon Character Ranges.
16616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16619 as_cr_digits='0123456789'
16620 as_cr_alnum=$as_cr_Letters$as_cr_digits
16621
16622 ECHO_C= ECHO_N= ECHO_T=
16623 case `echo -n x` in #(((((
16624 -n*)
16625   case `echo 'xy\c'` in
16626   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16627   xy)  ECHO_C='\c';;
16628   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16629        ECHO_T=' ';;
16630   esac;;
16631 *)
16632   ECHO_N='-n';;
16633 esac
16634
16635 rm -f conf$$ conf$$.exe conf$$.file
16636 if test -d conf$$.dir; then
16637   rm -f conf$$.dir/conf$$.file
16638 else
16639   rm -f conf$$.dir
16640   mkdir conf$$.dir 2>/dev/null
16641 fi
16642 if (echo >conf$$.file) 2>/dev/null; then
16643   if ln -s conf$$.file conf$$ 2>/dev/null; then
16644     as_ln_s='ln -s'
16645     # ... but there are two gotchas:
16646     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16647     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16648     # In both cases, we have to default to `cp -p'.
16649     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16650       as_ln_s='cp -p'
16651   elif ln conf$$.file conf$$ 2>/dev/null; then
16652     as_ln_s=ln
16653   else
16654     as_ln_s='cp -p'
16655   fi
16656 else
16657   as_ln_s='cp -p'
16658 fi
16659 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16660 rmdir conf$$.dir 2>/dev/null
16661
16662
16663 # as_fn_mkdir_p
16664 # -------------
16665 # Create "$as_dir" as a directory, including parents if necessary.
16666 as_fn_mkdir_p ()
16667 {
16668
16669   case $as_dir in #(
16670   -*) as_dir=./$as_dir;;
16671   esac
16672   test -d "$as_dir" || eval $as_mkdir_p || {
16673     as_dirs=
16674     while :; do
16675       case $as_dir in #(
16676       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16677       *) as_qdir=$as_dir;;
16678       esac
16679       as_dirs="'$as_qdir' $as_dirs"
16680       as_dir=`$as_dirname -- "$as_dir" ||
16681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682          X"$as_dir" : 'X\(//\)[^/]' \| \
16683          X"$as_dir" : 'X\(//\)$' \| \
16684          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16685 $as_echo X"$as_dir" |
16686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16687             s//\1/
16688             q
16689           }
16690           /^X\(\/\/\)[^/].*/{
16691             s//\1/
16692             q
16693           }
16694           /^X\(\/\/\)$/{
16695             s//\1/
16696             q
16697           }
16698           /^X\(\/\).*/{
16699             s//\1/
16700             q
16701           }
16702           s/.*/./; q'`
16703       test -d "$as_dir" && break
16704     done
16705     test -z "$as_dirs" || eval "mkdir $as_dirs"
16706   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16707
16708
16709 } # as_fn_mkdir_p
16710 if mkdir -p . 2>/dev/null; then
16711   as_mkdir_p='mkdir -p "$as_dir"'
16712 else
16713   test -d ./-p && rmdir ./-p
16714   as_mkdir_p=false
16715 fi
16716
16717 if test -x / >/dev/null 2>&1; then
16718   as_test_x='test -x'
16719 else
16720   if ls -dL / >/dev/null 2>&1; then
16721     as_ls_L_option=L
16722   else
16723     as_ls_L_option=
16724   fi
16725   as_test_x='
16726     eval sh -c '\''
16727       if test -d "$1"; then
16728         test -d "$1/.";
16729       else
16730         case $1 in #(
16731         -*)set "./$1";;
16732         esac;
16733         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16734         ???[sx]*):;;*)false;;esac;fi
16735     '\'' sh
16736   '
16737 fi
16738 as_executable_p=$as_test_x
16739
16740 # Sed expression to map a string onto a valid CPP name.
16741 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16742
16743 # Sed expression to map a string onto a valid variable name.
16744 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16745
16746
16747 exec 6>&1
16748 ## ----------------------------------- ##
16749 ## Main body of $CONFIG_STATUS script. ##
16750 ## ----------------------------------- ##
16751 _ASEOF
16752 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16753
16754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16755 # Save the log message, to keep $0 and so on meaningful, and to
16756 # report actual input values of CONFIG_FILES etc. instead of their
16757 # values after options handling.
16758 ac_log="
16759 This file was extended by Moonshot-ui $as_me 0.1, which was
16760 generated by GNU Autoconf 2.68.  Invocation command line was
16761
16762   CONFIG_FILES    = $CONFIG_FILES
16763   CONFIG_HEADERS  = $CONFIG_HEADERS
16764   CONFIG_LINKS    = $CONFIG_LINKS
16765   CONFIG_COMMANDS = $CONFIG_COMMANDS
16766   $ $0 $@
16767
16768 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16769 "
16770
16771 _ACEOF
16772
16773 case $ac_config_files in *"
16774 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16775 esac
16776
16777 case $ac_config_headers in *"
16778 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16779 esac
16780
16781
16782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783 # Files that config.status was made for.
16784 config_files="$ac_config_files"
16785 config_headers="$ac_config_headers"
16786 config_commands="$ac_config_commands"
16787
16788 _ACEOF
16789
16790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 ac_cs_usage="\
16792 \`$as_me' instantiates files and other configuration actions
16793 from templates according to the current configuration.  Unless the files
16794 and actions are specified as TAGs, all are instantiated by default.
16795
16796 Usage: $0 [OPTION]... [TAG]...
16797
16798   -h, --help       print this help, then exit
16799   -V, --version    print version number and configuration settings, then exit
16800       --config     print configuration, then exit
16801   -q, --quiet, --silent
16802                    do not print progress messages
16803   -d, --debug      don't remove temporary files
16804       --recheck    update $as_me by reconfiguring in the same conditions
16805       --file=FILE[:TEMPLATE]
16806                    instantiate the configuration file FILE
16807       --header=FILE[:TEMPLATE]
16808                    instantiate the configuration header FILE
16809
16810 Configuration files:
16811 $config_files
16812
16813 Configuration headers:
16814 $config_headers
16815
16816 Configuration commands:
16817 $config_commands
16818
16819 Report bugs to <moonshot-community@jiscmail.ac.uk>."
16820
16821 _ACEOF
16822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16824 ac_cs_version="\\
16825 Moonshot-ui config.status 0.1
16826 configured by $0, generated by GNU Autoconf 2.68,
16827   with options \\"\$ac_cs_config\\"
16828
16829 Copyright (C) 2010 Free Software Foundation, Inc.
16830 This config.status script is free software; the Free Software Foundation
16831 gives unlimited permission to copy, distribute and modify it."
16832
16833 ac_pwd='$ac_pwd'
16834 srcdir='$srcdir'
16835 INSTALL='$INSTALL'
16836 MKDIR_P='$MKDIR_P'
16837 AWK='$AWK'
16838 test -n "\$AWK" || AWK=awk
16839 _ACEOF
16840
16841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842 # The default lists apply if the user does not specify any file.
16843 ac_need_defaults=:
16844 while test $# != 0
16845 do
16846   case $1 in
16847   --*=?*)
16848     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16849     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16850     ac_shift=:
16851     ;;
16852   --*=)
16853     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16854     ac_optarg=
16855     ac_shift=:
16856     ;;
16857   *)
16858     ac_option=$1
16859     ac_optarg=$2
16860     ac_shift=shift
16861     ;;
16862   esac
16863
16864   case $ac_option in
16865   # Handling of the options.
16866   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16867     ac_cs_recheck=: ;;
16868   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16869     $as_echo "$ac_cs_version"; exit ;;
16870   --config | --confi | --conf | --con | --co | --c )
16871     $as_echo "$ac_cs_config"; exit ;;
16872   --debug | --debu | --deb | --de | --d | -d )
16873     debug=: ;;
16874   --file | --fil | --fi | --f )
16875     $ac_shift
16876     case $ac_optarg in
16877     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16878     '') as_fn_error $? "missing file argument" ;;
16879     esac
16880     as_fn_append CONFIG_FILES " '$ac_optarg'"
16881     ac_need_defaults=false;;
16882   --header | --heade | --head | --hea )
16883     $ac_shift
16884     case $ac_optarg in
16885     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16886     esac
16887     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16888     ac_need_defaults=false;;
16889   --he | --h)
16890     # Conflict between --help and --header
16891     as_fn_error $? "ambiguous option: \`$1'
16892 Try \`$0 --help' for more information.";;
16893   --help | --hel | -h )
16894     $as_echo "$ac_cs_usage"; exit ;;
16895   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16896   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16897     ac_cs_silent=: ;;
16898
16899   # This is an error.
16900   -*) as_fn_error $? "unrecognized option: \`$1'
16901 Try \`$0 --help' for more information." ;;
16902
16903   *) as_fn_append ac_config_targets " $1"
16904      ac_need_defaults=false ;;
16905
16906   esac
16907   shift
16908 done
16909
16910 ac_configure_extra_args=
16911
16912 if $ac_cs_silent; then
16913   exec 6>/dev/null
16914   ac_configure_extra_args="$ac_configure_extra_args --silent"
16915 fi
16916
16917 _ACEOF
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16919 if \$ac_cs_recheck; then
16920   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16921   shift
16922   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16923   CONFIG_SHELL='$SHELL'
16924   export CONFIG_SHELL
16925   exec "\$@"
16926 fi
16927
16928 _ACEOF
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930 exec 5>>config.log
16931 {
16932   echo
16933   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16934 ## Running $as_me. ##
16935 _ASBOX
16936   $as_echo "$ac_log"
16937 } >&5
16938
16939 _ACEOF
16940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941 #
16942 # INIT-COMMANDS
16943 #
16944 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16945
16946
16947 # The HP-UX ksh and POSIX shell print the target directory to stdout
16948 # if CDPATH is set.
16949 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16950
16951 sed_quote_subst='$sed_quote_subst'
16952 double_quote_subst='$double_quote_subst'
16953 delay_variable_subst='$delay_variable_subst'
16954 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16955 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16956 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16957 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16958 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16959 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16960 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16961 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16962 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16963 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16964 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16965 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16966 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16967 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16968 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16969 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16970 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16971 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16972 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16973 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16974 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16975 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16976 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16977 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16978 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16979 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16980 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16981 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16982 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16983 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16984 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16985 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16986 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16987 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16988 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16989 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16990 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16991 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16992 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16993 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16994 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16995 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16996 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16997 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16998 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16999 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17000 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17001 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17002 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17003 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17004 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17005 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17006 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17007 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17008 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17009 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17010 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17011 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"`'
17012 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17013 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17014 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17015 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17016 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17017 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17018 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17019 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17020 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17021 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17022 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17023 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17024 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17025 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17026 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17027 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17028 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17029 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17030 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17031 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17032 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17033 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17034 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17035 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17036 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17037 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17038 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17039 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17040 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17041 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17042 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17043 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17044 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17045 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17046 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17047 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17048 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17049 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17050 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17051 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17052 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17053 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17054 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17055 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17056 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17057 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17058 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17059 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17060 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17061 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17062 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17063 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17064 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17065 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17066 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17067 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17068 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17069 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17070 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17071 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17072 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17073 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17074 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17075 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17076 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17077 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17078 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17079 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17080 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17081 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17082 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17083 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17084 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17085
17086 LTCC='$LTCC'
17087 LTCFLAGS='$LTCFLAGS'
17088 compiler='$compiler_DEFAULT'
17089
17090 # A function that is used when there is no print builtin or printf.
17091 func_fallback_echo ()
17092 {
17093   eval 'cat <<_LTECHO_EOF
17094 \$1
17095 _LTECHO_EOF'
17096 }
17097
17098 # Quote evaled strings.
17099 for var in AS \
17100 DLLTOOL \
17101 OBJDUMP \
17102 SHELL \
17103 ECHO \
17104 PATH_SEPARATOR \
17105 SED \
17106 GREP \
17107 EGREP \
17108 FGREP \
17109 LD \
17110 NM \
17111 LN_S \
17112 lt_SP2NL \
17113 lt_NL2SP \
17114 reload_flag \
17115 deplibs_check_method \
17116 file_magic_cmd \
17117 file_magic_glob \
17118 want_nocaseglob \
17119 sharedlib_from_linklib_cmd \
17120 AR \
17121 AR_FLAGS \
17122 archiver_list_spec \
17123 STRIP \
17124 RANLIB \
17125 CC \
17126 CFLAGS \
17127 compiler \
17128 lt_cv_sys_global_symbol_pipe \
17129 lt_cv_sys_global_symbol_to_cdecl \
17130 lt_cv_sys_global_symbol_to_c_name_address \
17131 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17132 nm_file_list_spec \
17133 lt_prog_compiler_no_builtin_flag \
17134 lt_prog_compiler_pic \
17135 lt_prog_compiler_wl \
17136 lt_prog_compiler_static \
17137 lt_cv_prog_compiler_c_o \
17138 need_locks \
17139 MANIFEST_TOOL \
17140 DSYMUTIL \
17141 NMEDIT \
17142 LIPO \
17143 OTOOL \
17144 OTOOL64 \
17145 shrext_cmds \
17146 export_dynamic_flag_spec \
17147 whole_archive_flag_spec \
17148 compiler_needs_object \
17149 with_gnu_ld \
17150 allow_undefined_flag \
17151 no_undefined_flag \
17152 hardcode_libdir_flag_spec \
17153 hardcode_libdir_separator \
17154 exclude_expsyms \
17155 include_expsyms \
17156 file_list_spec \
17157 variables_saved_for_relink \
17158 libname_spec \
17159 library_names_spec \
17160 soname_spec \
17161 install_override_mode \
17162 finish_eval \
17163 old_striplib \
17164 striplib; do
17165     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17166     *[\\\\\\\`\\"\\\$]*)
17167       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17168       ;;
17169     *)
17170       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17171       ;;
17172     esac
17173 done
17174
17175 # Double-quote double-evaled strings.
17176 for var in reload_cmds \
17177 old_postinstall_cmds \
17178 old_postuninstall_cmds \
17179 old_archive_cmds \
17180 extract_expsyms_cmds \
17181 old_archive_from_new_cmds \
17182 old_archive_from_expsyms_cmds \
17183 archive_cmds \
17184 archive_expsym_cmds \
17185 module_cmds \
17186 module_expsym_cmds \
17187 export_symbols_cmds \
17188 prelink_cmds \
17189 postlink_cmds \
17190 postinstall_cmds \
17191 postuninstall_cmds \
17192 finish_cmds \
17193 sys_lib_search_path_spec \
17194 sys_lib_dlsearch_path_spec; do
17195     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17196     *[\\\\\\\`\\"\\\$]*)
17197       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17198       ;;
17199     *)
17200       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17201       ;;
17202     esac
17203 done
17204
17205 ac_aux_dir='$ac_aux_dir'
17206 xsi_shell='$xsi_shell'
17207 lt_shell_append='$lt_shell_append'
17208
17209 # See if we are running on zsh, and set the options which allow our
17210 # commands through without removal of \ escapes INIT.
17211 if test -n "\${ZSH_VERSION+set}" ; then
17212    setopt NO_GLOB_SUBST
17213 fi
17214
17215
17216     PACKAGE='$PACKAGE'
17217     VERSION='$VERSION'
17218     TIMESTAMP='$TIMESTAMP'
17219     RM='$RM'
17220     ofile='$ofile'
17221
17222
17223
17224 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17225     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17226     # from automake < 1.5.
17227     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17228     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17229     LINGUAS="${LINGUAS-%UNSET%}"
17230
17231
17232 _ACEOF
17233
17234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235
17236 # Handling of arguments.
17237 for ac_config_target in $ac_config_targets
17238 do
17239   case $ac_config_target in
17240     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17241     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17242     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17243     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17244     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17245     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17246     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17247     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17248     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17249
17250   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17251   esac
17252 done
17253
17254
17255 # If the user did not use the arguments to specify the items to instantiate,
17256 # then the envvar interface is used.  Set only those that are not.
17257 # We use the long form for the default assignment because of an extremely
17258 # bizarre bug on SunOS 4.1.3.
17259 if $ac_need_defaults; then
17260   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17261   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17262   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17263 fi
17264
17265 # Have a temporary directory for convenience.  Make it in the build tree
17266 # simply because there is no reason against having it here, and in addition,
17267 # creating and moving files from /tmp can sometimes cause problems.
17268 # Hook for its removal unless debugging.
17269 # Note that there is a small window in which the directory will not be cleaned:
17270 # after its creation but before its name has been assigned to `$tmp'.
17271 $debug ||
17272 {
17273   tmp= ac_tmp=
17274   trap 'exit_status=$?
17275   : "${ac_tmp:=$tmp}"
17276   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17277 ' 0
17278   trap 'as_fn_exit 1' 1 2 13 15
17279 }
17280 # Create a (secure) tmp directory for tmp files.
17281
17282 {
17283   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17284   test -d "$tmp"
17285 }  ||
17286 {
17287   tmp=./conf$$-$RANDOM
17288   (umask 077 && mkdir "$tmp")
17289 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17290 ac_tmp=$tmp
17291
17292 # Set up the scripts for CONFIG_FILES section.
17293 # No need to generate them if there are no CONFIG_FILES.
17294 # This happens for instance with `./config.status config.h'.
17295 if test -n "$CONFIG_FILES"; then
17296
17297
17298 ac_cr=`echo X | tr X '\015'`
17299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17300 # But we know of no other shell where ac_cr would be empty at this
17301 # point, so we can use a bashism as a fallback.
17302 if test "x$ac_cr" = x; then
17303   eval ac_cr=\$\'\\r\'
17304 fi
17305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17307   ac_cs_awk_cr='\\r'
17308 else
17309   ac_cs_awk_cr=$ac_cr
17310 fi
17311
17312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17313 _ACEOF
17314
17315
17316 {
17317   echo "cat >conf$$subs.awk <<_ACEOF" &&
17318   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17319   echo "_ACEOF"
17320 } >conf$$subs.sh ||
17321   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17323 ac_delim='%!_!# '
17324 for ac_last_try in false false false false false :; do
17325   . ./conf$$subs.sh ||
17326     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17327
17328   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17329   if test $ac_delim_n = $ac_delim_num; then
17330     break
17331   elif $ac_last_try; then
17332     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17333   else
17334     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17335   fi
17336 done
17337 rm -f conf$$subs.sh
17338
17339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17340 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17341 _ACEOF
17342 sed -n '
17343 h
17344 s/^/S["/; s/!.*/"]=/
17345 p
17346 g
17347 s/^[^!]*!//
17348 :repl
17349 t repl
17350 s/'"$ac_delim"'$//
17351 t delim
17352 :nl
17353 h
17354 s/\(.\{148\}\)..*/\1/
17355 t more1
17356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17357 p
17358 n
17359 b repl
17360 :more1
17361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17362 p
17363 g
17364 s/.\{148\}//
17365 t nl
17366 :delim
17367 h
17368 s/\(.\{148\}\)..*/\1/
17369 t more2
17370 s/["\\]/\\&/g; s/^/"/; s/$/"/
17371 p
17372 b
17373 :more2
17374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17375 p
17376 g
17377 s/.\{148\}//
17378 t delim
17379 ' <conf$$subs.awk | sed '
17380 /^[^""]/{
17381   N
17382   s/\n//
17383 }
17384 ' >>$CONFIG_STATUS || ac_write_fail=1
17385 rm -f conf$$subs.awk
17386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17387 _ACAWK
17388 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17389   for (key in S) S_is_set[key] = 1
17390   FS = "\a"
17391
17392 }
17393 {
17394   line = $ 0
17395   nfields = split(line, field, "@")
17396   substed = 0
17397   len = length(field[1])
17398   for (i = 2; i < nfields; i++) {
17399     key = field[i]
17400     keylen = length(key)
17401     if (S_is_set[key]) {
17402       value = S[key]
17403       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17404       len += length(value) + length(field[++i])
17405       substed = 1
17406     } else
17407       len += 1 + keylen
17408   }
17409
17410   print line
17411 }
17412
17413 _ACAWK
17414 _ACEOF
17415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17417   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17418 else
17419   cat
17420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17421   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17422 _ACEOF
17423
17424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17426 # trailing colons and then remove the whole line if VPATH becomes empty
17427 # (actually we leave an empty line to preserve line numbers).
17428 if test "x$srcdir" = x.; then
17429   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17430 h
17431 s///
17432 s/^/:/
17433 s/[      ]*$/:/
17434 s/:\$(srcdir):/:/g
17435 s/:\${srcdir}:/:/g
17436 s/:@srcdir@:/:/g
17437 s/^:*//
17438 s/:*$//
17439 x
17440 s/\(=[   ]*\).*/\1/
17441 G
17442 s/\n//
17443 s/^[^=]*=[       ]*$//
17444 }'
17445 fi
17446
17447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448 fi # test -n "$CONFIG_FILES"
17449
17450 # Set up the scripts for CONFIG_HEADERS section.
17451 # No need to generate them if there are no CONFIG_HEADERS.
17452 # This happens for instance with `./config.status Makefile'.
17453 if test -n "$CONFIG_HEADERS"; then
17454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17455 BEGIN {
17456 _ACEOF
17457
17458 # Transform confdefs.h into an awk script `defines.awk', embedded as
17459 # here-document in config.status, that substitutes the proper values into
17460 # config.h.in to produce config.h.
17461
17462 # Create a delimiter string that does not exist in confdefs.h, to ease
17463 # handling of long lines.
17464 ac_delim='%!_!# '
17465 for ac_last_try in false false :; do
17466   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17467   if test -z "$ac_tt"; then
17468     break
17469   elif $ac_last_try; then
17470     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17471   else
17472     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17473   fi
17474 done
17475
17476 # For the awk script, D is an array of macro values keyed by name,
17477 # likewise P contains macro parameters if any.  Preserve backslash
17478 # newline sequences.
17479
17480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17481 sed -n '
17482 s/.\{148\}/&'"$ac_delim"'/g
17483 t rset
17484 :rset
17485 s/^[     ]*#[    ]*define[       ][      ]*/ /
17486 t def
17487 d
17488 :def
17489 s/\\$//
17490 t bsnl
17491 s/["\\]/\\&/g
17492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17493 D["\1"]=" \3"/p
17494 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17495 d
17496 :bsnl
17497 s/["\\]/\\&/g
17498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17499 D["\1"]=" \3\\\\\\n"\\/p
17500 t cont
17501 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17502 t cont
17503 d
17504 :cont
17505 n
17506 s/.\{148\}/&'"$ac_delim"'/g
17507 t clear
17508 :clear
17509 s/\\$//
17510 t bsnlc
17511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17512 d
17513 :bsnlc
17514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17515 b cont
17516 ' <confdefs.h | sed '
17517 s/'"$ac_delim"'/"\\\
17518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17519
17520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17521   for (key in D) D_is_set[key] = 1
17522   FS = "\a"
17523 }
17524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17525   line = \$ 0
17526   split(line, arg, " ")
17527   if (arg[1] == "#") {
17528     defundef = arg[2]
17529     mac1 = arg[3]
17530   } else {
17531     defundef = substr(arg[1], 2)
17532     mac1 = arg[2]
17533   }
17534   split(mac1, mac2, "(") #)
17535   macro = mac2[1]
17536   prefix = substr(line, 1, index(line, defundef) - 1)
17537   if (D_is_set[macro]) {
17538     # Preserve the white space surrounding the "#".
17539     print prefix "define", macro P[macro] D[macro]
17540     next
17541   } else {
17542     # Replace #undef with comments.  This is necessary, for example,
17543     # in the case of _POSIX_SOURCE, which is predefined and required
17544     # on some systems where configure will not decide to define it.
17545     if (defundef == "undef") {
17546       print "/*", prefix defundef, macro, "*/"
17547       next
17548     }
17549   }
17550 }
17551 { print }
17552 _ACAWK
17553 _ACEOF
17554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17555   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17556 fi # test -n "$CONFIG_HEADERS"
17557
17558
17559 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17560 shift
17561 for ac_tag
17562 do
17563   case $ac_tag in
17564   :[FHLC]) ac_mode=$ac_tag; continue;;
17565   esac
17566   case $ac_mode$ac_tag in
17567   :[FHL]*:*);;
17568   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17569   :[FH]-) ac_tag=-:-;;
17570   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17571   esac
17572   ac_save_IFS=$IFS
17573   IFS=:
17574   set x $ac_tag
17575   IFS=$ac_save_IFS
17576   shift
17577   ac_file=$1
17578   shift
17579
17580   case $ac_mode in
17581   :L) ac_source=$1;;
17582   :[FH])
17583     ac_file_inputs=
17584     for ac_f
17585     do
17586       case $ac_f in
17587       -) ac_f="$ac_tmp/stdin";;
17588       *) # Look for the file first in the build tree, then in the source tree
17589          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17590          # because $ac_f cannot contain `:'.
17591          test -f "$ac_f" ||
17592            case $ac_f in
17593            [\\/$]*) false;;
17594            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17595            esac ||
17596            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17597       esac
17598       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17599       as_fn_append ac_file_inputs " '$ac_f'"
17600     done
17601
17602     # Let's still pretend it is `configure' which instantiates (i.e., don't
17603     # use $as_me), people would be surprised to read:
17604     #    /* config.h.  Generated by config.status.  */
17605     configure_input='Generated from '`
17606           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17607         `' by configure.'
17608     if test x"$ac_file" != x-; then
17609       configure_input="$ac_file.  $configure_input"
17610       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17611 $as_echo "$as_me: creating $ac_file" >&6;}
17612     fi
17613     # Neutralize special characters interpreted by sed in replacement strings.
17614     case $configure_input in #(
17615     *\&* | *\|* | *\\* )
17616        ac_sed_conf_input=`$as_echo "$configure_input" |
17617        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17618     *) ac_sed_conf_input=$configure_input;;
17619     esac
17620
17621     case $ac_tag in
17622     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17623       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17624     esac
17625     ;;
17626   esac
17627
17628   ac_dir=`$as_dirname -- "$ac_file" ||
17629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17630          X"$ac_file" : 'X\(//\)[^/]' \| \
17631          X"$ac_file" : 'X\(//\)$' \| \
17632          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17633 $as_echo X"$ac_file" |
17634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17635             s//\1/
17636             q
17637           }
17638           /^X\(\/\/\)[^/].*/{
17639             s//\1/
17640             q
17641           }
17642           /^X\(\/\/\)$/{
17643             s//\1/
17644             q
17645           }
17646           /^X\(\/\).*/{
17647             s//\1/
17648             q
17649           }
17650           s/.*/./; q'`
17651   as_dir="$ac_dir"; as_fn_mkdir_p
17652   ac_builddir=.
17653
17654 case "$ac_dir" in
17655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17656 *)
17657   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17658   # A ".." for each directory in $ac_dir_suffix.
17659   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17660   case $ac_top_builddir_sub in
17661   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17662   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17663   esac ;;
17664 esac
17665 ac_abs_top_builddir=$ac_pwd
17666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17667 # for backward compatibility:
17668 ac_top_builddir=$ac_top_build_prefix
17669
17670 case $srcdir in
17671   .)  # We are building in place.
17672     ac_srcdir=.
17673     ac_top_srcdir=$ac_top_builddir_sub
17674     ac_abs_top_srcdir=$ac_pwd ;;
17675   [\\/]* | ?:[\\/]* )  # Absolute name.
17676     ac_srcdir=$srcdir$ac_dir_suffix;
17677     ac_top_srcdir=$srcdir
17678     ac_abs_top_srcdir=$srcdir ;;
17679   *) # Relative name.
17680     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17681     ac_top_srcdir=$ac_top_build_prefix$srcdir
17682     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17683 esac
17684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17685
17686
17687   case $ac_mode in
17688   :F)
17689   #
17690   # CONFIG_FILE
17691   #
17692
17693   case $INSTALL in
17694   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17695   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17696   esac
17697   ac_MKDIR_P=$MKDIR_P
17698   case $MKDIR_P in
17699   [\\/$]* | ?:[\\/]* ) ;;
17700   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17701   esac
17702 _ACEOF
17703
17704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17705 # If the template does not know about datarootdir, expand it.
17706 # FIXME: This hack should be removed a few years after 2.60.
17707 ac_datarootdir_hack=; ac_datarootdir_seen=
17708 ac_sed_dataroot='
17709 /datarootdir/ {
17710   p
17711   q
17712 }
17713 /@datadir@/p
17714 /@docdir@/p
17715 /@infodir@/p
17716 /@localedir@/p
17717 /@mandir@/p'
17718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17719 *datarootdir*) ac_datarootdir_seen=yes;;
17720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17725   ac_datarootdir_hack='
17726   s&@datadir@&$datadir&g
17727   s&@docdir@&$docdir&g
17728   s&@infodir@&$infodir&g
17729   s&@localedir@&$localedir&g
17730   s&@mandir@&$mandir&g
17731   s&\\\${datarootdir}&$datarootdir&g' ;;
17732 esac
17733 _ACEOF
17734
17735 # Neutralize VPATH when `$srcdir' = `.'.
17736 # Shell code in configure.ac might set extrasub.
17737 # FIXME: do we really want to maintain this feature?
17738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17739 ac_sed_extra="$ac_vpsub
17740 $extrasub
17741 _ACEOF
17742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743 :t
17744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17745 s|@configure_input@|$ac_sed_conf_input|;t t
17746 s&@top_builddir@&$ac_top_builddir_sub&;t t
17747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17748 s&@srcdir@&$ac_srcdir&;t t
17749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17750 s&@top_srcdir@&$ac_top_srcdir&;t t
17751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17752 s&@builddir@&$ac_builddir&;t t
17753 s&@abs_builddir@&$ac_abs_builddir&;t t
17754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17755 s&@INSTALL@&$ac_INSTALL&;t t
17756 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17757 $ac_datarootdir_hack
17758 "
17759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17760   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17761
17762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17763   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17764   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17765       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17766   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17767 which seems to be undefined.  Please make sure it is defined" >&5
17768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17769 which seems to be undefined.  Please make sure it is defined" >&2;}
17770
17771   rm -f "$ac_tmp/stdin"
17772   case $ac_file in
17773   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17774   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17775   esac \
17776   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17777  ;;
17778   :H)
17779   #
17780   # CONFIG_HEADER
17781   #
17782   if test x"$ac_file" != x-; then
17783     {
17784       $as_echo "/* $configure_input  */" \
17785       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17786     } >"$ac_tmp/config.h" \
17787       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17788     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17789       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17791     else
17792       rm -f "$ac_file"
17793       mv "$ac_tmp/config.h" "$ac_file" \
17794         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17795     fi
17796   else
17797     $as_echo "/* $configure_input  */" \
17798       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17799       || as_fn_error $? "could not create -" "$LINENO" 5
17800   fi
17801 # Compute "$ac_file"'s index in $config_headers.
17802 _am_arg="$ac_file"
17803 _am_stamp_count=1
17804 for _am_header in $config_headers :; do
17805   case $_am_header in
17806     $_am_arg | $_am_arg:* )
17807       break ;;
17808     * )
17809       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17810   esac
17811 done
17812 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17813 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17814          X"$_am_arg" : 'X\(//\)[^/]' \| \
17815          X"$_am_arg" : 'X\(//\)$' \| \
17816          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17817 $as_echo X"$_am_arg" |
17818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17819             s//\1/
17820             q
17821           }
17822           /^X\(\/\/\)[^/].*/{
17823             s//\1/
17824             q
17825           }
17826           /^X\(\/\/\)$/{
17827             s//\1/
17828             q
17829           }
17830           /^X\(\/\).*/{
17831             s//\1/
17832             q
17833           }
17834           s/.*/./; q'`/stamp-h$_am_stamp_count
17835  ;;
17836
17837   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17838 $as_echo "$as_me: executing $ac_file commands" >&6;}
17839  ;;
17840   esac
17841
17842
17843   case $ac_file$ac_mode in
17844     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17845   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17846   # are listed without --file.  Let's play safe and only enable the eval
17847   # if we detect the quoting.
17848   case $CONFIG_FILES in
17849   *\'*) eval set x "$CONFIG_FILES" ;;
17850   *)   set x $CONFIG_FILES ;;
17851   esac
17852   shift
17853   for mf
17854   do
17855     # Strip MF so we end up with the name of the file.
17856     mf=`echo "$mf" | sed -e 's/:.*$//'`
17857     # Check whether this is an Automake generated Makefile or not.
17858     # We used to match only the files named `Makefile.in', but
17859     # some people rename them; so instead we look at the file content.
17860     # Grep'ing the first line is not enough: some people post-process
17861     # each Makefile.in and add a new line on top of each file to say so.
17862     # Grep'ing the whole file is not good either: AIX grep has a line
17863     # limit of 2048, but all sed's we know have understand at least 4000.
17864     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17865       dirpart=`$as_dirname -- "$mf" ||
17866 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17867          X"$mf" : 'X\(//\)[^/]' \| \
17868          X"$mf" : 'X\(//\)$' \| \
17869          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17870 $as_echo X"$mf" |
17871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17872             s//\1/
17873             q
17874           }
17875           /^X\(\/\/\)[^/].*/{
17876             s//\1/
17877             q
17878           }
17879           /^X\(\/\/\)$/{
17880             s//\1/
17881             q
17882           }
17883           /^X\(\/\).*/{
17884             s//\1/
17885             q
17886           }
17887           s/.*/./; q'`
17888     else
17889       continue
17890     fi
17891     # Extract the definition of DEPDIR, am__include, and am__quote
17892     # from the Makefile without running `make'.
17893     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17894     test -z "$DEPDIR" && continue
17895     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17896     test -z "am__include" && continue
17897     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17898     # When using ansi2knr, U may be empty or an underscore; expand it
17899     U=`sed -n 's/^U = //p' < "$mf"`
17900     # Find all dependency output files, they are included files with
17901     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17902     # simplest approach to changing $(DEPDIR) to its actual value in the
17903     # expansion.
17904     for file in `sed -n "
17905       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17906          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17907       # Make sure the directory exists.
17908       test -f "$dirpart/$file" && continue
17909       fdir=`$as_dirname -- "$file" ||
17910 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17911          X"$file" : 'X\(//\)[^/]' \| \
17912          X"$file" : 'X\(//\)$' \| \
17913          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17914 $as_echo X"$file" |
17915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17916             s//\1/
17917             q
17918           }
17919           /^X\(\/\/\)[^/].*/{
17920             s//\1/
17921             q
17922           }
17923           /^X\(\/\/\)$/{
17924             s//\1/
17925             q
17926           }
17927           /^X\(\/\).*/{
17928             s//\1/
17929             q
17930           }
17931           s/.*/./; q'`
17932       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17933       # echo "creating $dirpart/$file"
17934       echo '# dummy' > "$dirpart/$file"
17935     done
17936   done
17937 }
17938  ;;
17939     "libtool":C)
17940
17941     # See if we are running on zsh, and set the options which allow our
17942     # commands through without removal of \ escapes.
17943     if test -n "${ZSH_VERSION+set}" ; then
17944       setopt NO_GLOB_SUBST
17945     fi
17946
17947     cfgfile="${ofile}T"
17948     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17949     $RM "$cfgfile"
17950
17951     cat <<_LT_EOF >> "$cfgfile"
17952 #! $SHELL
17953
17954 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17955 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17957 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17958 #
17959 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17960 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17961 #                 Foundation, Inc.
17962 #   Written by Gordon Matzigkeit, 1996
17963 #
17964 #   This file is part of GNU Libtool.
17965 #
17966 # GNU Libtool is free software; you can redistribute it and/or
17967 # modify it under the terms of the GNU General Public License as
17968 # published by the Free Software Foundation; either version 2 of
17969 # the License, or (at your option) any later version.
17970 #
17971 # As a special exception to the GNU General Public License,
17972 # if you distribute this file as part of a program or library that
17973 # is built using GNU Libtool, you may include this file under the
17974 # same distribution terms that you use for the rest of that program.
17975 #
17976 # GNU Libtool is distributed in the hope that it will be useful,
17977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17979 # GNU General Public License for more details.
17980 #
17981 # You should have received a copy of the GNU General Public License
17982 # along with GNU Libtool; see the file COPYING.  If not, a copy
17983 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17984 # obtained by writing to the Free Software Foundation, Inc.,
17985 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17986
17987
17988 # The names of the tagged configurations supported by this script.
17989 available_tags=""
17990
17991 # ### BEGIN LIBTOOL CONFIG
17992
17993 # Which release of libtool.m4 was used?
17994 macro_version=$macro_version
17995 macro_revision=$macro_revision
17996
17997 # Assembler program.
17998 AS=$lt_AS
17999
18000 # DLL creation program.
18001 DLLTOOL=$lt_DLLTOOL
18002
18003 # Object dumper program.
18004 OBJDUMP=$lt_OBJDUMP
18005
18006 # Whether or not to build shared libraries.
18007 build_libtool_libs=$enable_shared
18008
18009 # Whether or not to build static libraries.
18010 build_old_libs=$enable_static
18011
18012 # What type of objects to build.
18013 pic_mode=$pic_mode
18014
18015 # Whether or not to optimize for fast installation.
18016 fast_install=$enable_fast_install
18017
18018 # Shell to use when invoking shell scripts.
18019 SHELL=$lt_SHELL
18020
18021 # An echo program that protects backslashes.
18022 ECHO=$lt_ECHO
18023
18024 # The PATH separator for the build system.
18025 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18026
18027 # The host system.
18028 host_alias=$host_alias
18029 host=$host
18030 host_os=$host_os
18031
18032 # The build system.
18033 build_alias=$build_alias
18034 build=$build
18035 build_os=$build_os
18036
18037 # A sed program that does not truncate output.
18038 SED=$lt_SED
18039
18040 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18041 Xsed="\$SED -e 1s/^X//"
18042
18043 # A grep program that handles long lines.
18044 GREP=$lt_GREP
18045
18046 # An ERE matcher.
18047 EGREP=$lt_EGREP
18048
18049 # A literal string matcher.
18050 FGREP=$lt_FGREP
18051
18052 # A BSD- or MS-compatible name lister.
18053 NM=$lt_NM
18054
18055 # Whether we need soft or hard links.
18056 LN_S=$lt_LN_S
18057
18058 # What is the maximum length of a command?
18059 max_cmd_len=$max_cmd_len
18060
18061 # Object file suffix (normally "o").
18062 objext=$ac_objext
18063
18064 # Executable file suffix (normally "").
18065 exeext=$exeext
18066
18067 # whether the shell understands "unset".
18068 lt_unset=$lt_unset
18069
18070 # turn spaces into newlines.
18071 SP2NL=$lt_lt_SP2NL
18072
18073 # turn newlines into spaces.
18074 NL2SP=$lt_lt_NL2SP
18075
18076 # convert \$build file names to \$host format.
18077 to_host_file_cmd=$lt_cv_to_host_file_cmd
18078
18079 # convert \$build files to toolchain format.
18080 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18081
18082 # Method to check whether dependent libraries are shared objects.
18083 deplibs_check_method=$lt_deplibs_check_method
18084
18085 # Command to use when deplibs_check_method = "file_magic".
18086 file_magic_cmd=$lt_file_magic_cmd
18087
18088 # How to find potential files when deplibs_check_method = "file_magic".
18089 file_magic_glob=$lt_file_magic_glob
18090
18091 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18092 want_nocaseglob=$lt_want_nocaseglob
18093
18094 # Command to associate shared and link libraries.
18095 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18096
18097 # The archiver.
18098 AR=$lt_AR
18099
18100 # Flags to create an archive.
18101 AR_FLAGS=$lt_AR_FLAGS
18102
18103 # How to feed a file listing to the archiver.
18104 archiver_list_spec=$lt_archiver_list_spec
18105
18106 # A symbol stripping program.
18107 STRIP=$lt_STRIP
18108
18109 # Commands used to install an old-style archive.
18110 RANLIB=$lt_RANLIB
18111 old_postinstall_cmds=$lt_old_postinstall_cmds
18112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18113
18114 # Whether to use a lock for old archive extraction.
18115 lock_old_archive_extraction=$lock_old_archive_extraction
18116
18117 # A C compiler.
18118 LTCC=$lt_CC
18119
18120 # LTCC compiler flags.
18121 LTCFLAGS=$lt_CFLAGS
18122
18123 # Take the output of nm and produce a listing of raw symbols and C names.
18124 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18125
18126 # Transform the output of nm in a proper C declaration.
18127 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18128
18129 # Transform the output of nm in a C name address pair.
18130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18131
18132 # Transform the output of nm in a C name address pair when lib prefix is needed.
18133 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18134
18135 # Specify filename containing input files for \$NM.
18136 nm_file_list_spec=$lt_nm_file_list_spec
18137
18138 # The root where to search for dependent libraries,and in which our libraries should be installed.
18139 lt_sysroot=$lt_sysroot
18140
18141 # The name of the directory that contains temporary libtool files.
18142 objdir=$objdir
18143
18144 # Used to examine libraries when file_magic_cmd begins with "file".
18145 MAGIC_CMD=$MAGIC_CMD
18146
18147 # Must we lock files when doing compilation?
18148 need_locks=$lt_need_locks
18149
18150 # Manifest tool.
18151 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18152
18153 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18154 DSYMUTIL=$lt_DSYMUTIL
18155
18156 # Tool to change global to local symbols on Mac OS X.
18157 NMEDIT=$lt_NMEDIT
18158
18159 # Tool to manipulate fat objects and archives on Mac OS X.
18160 LIPO=$lt_LIPO
18161
18162 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18163 OTOOL=$lt_OTOOL
18164
18165 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18166 OTOOL64=$lt_OTOOL64
18167
18168 # Old archive suffix (normally "a").
18169 libext=$libext
18170
18171 # Shared library suffix (normally ".so").
18172 shrext_cmds=$lt_shrext_cmds
18173
18174 # The commands to extract the exported symbol list from a shared archive.
18175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18176
18177 # Variables whose values should be saved in libtool wrapper scripts and
18178 # restored at link time.
18179 variables_saved_for_relink=$lt_variables_saved_for_relink
18180
18181 # Do we need the "lib" prefix for modules?
18182 need_lib_prefix=$need_lib_prefix
18183
18184 # Do we need a version for libraries?
18185 need_version=$need_version
18186
18187 # Library versioning type.
18188 version_type=$version_type
18189
18190 # Shared library runtime path variable.
18191 runpath_var=$runpath_var
18192
18193 # Shared library path variable.
18194 shlibpath_var=$shlibpath_var
18195
18196 # Is shlibpath searched before the hard-coded library search path?
18197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18198
18199 # Format of library name prefix.
18200 libname_spec=$lt_libname_spec
18201
18202 # List of archive names.  First name is the real one, the rest are links.
18203 # The last name is the one that the linker finds with -lNAME
18204 library_names_spec=$lt_library_names_spec
18205
18206 # The coded name of the library, if different from the real name.
18207 soname_spec=$lt_soname_spec
18208
18209 # Permission mode override for installation of shared libraries.
18210 install_override_mode=$lt_install_override_mode
18211
18212 # Command to use after installation of a shared archive.
18213 postinstall_cmds=$lt_postinstall_cmds
18214
18215 # Command to use after uninstallation of a shared archive.
18216 postuninstall_cmds=$lt_postuninstall_cmds
18217
18218 # Commands used to finish a libtool library installation in a directory.
18219 finish_cmds=$lt_finish_cmds
18220
18221 # As "finish_cmds", except a single script fragment to be evaled but
18222 # not shown.
18223 finish_eval=$lt_finish_eval
18224
18225 # Whether we should hardcode library paths into libraries.
18226 hardcode_into_libs=$hardcode_into_libs
18227
18228 # Compile-time system search path for libraries.
18229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18230
18231 # Run-time system search path for libraries.
18232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18233
18234 # Whether dlopen is supported.
18235 dlopen_support=$enable_dlopen
18236
18237 # Whether dlopen of programs is supported.
18238 dlopen_self=$enable_dlopen_self
18239
18240 # Whether dlopen of statically linked programs is supported.
18241 dlopen_self_static=$enable_dlopen_self_static
18242
18243 # Commands to strip libraries.
18244 old_striplib=$lt_old_striplib
18245 striplib=$lt_striplib
18246
18247
18248 # The linker used to build libraries.
18249 LD=$lt_LD
18250
18251 # How to create reloadable object files.
18252 reload_flag=$lt_reload_flag
18253 reload_cmds=$lt_reload_cmds
18254
18255 # Commands used to build an old-style archive.
18256 old_archive_cmds=$lt_old_archive_cmds
18257
18258 # A language specific compiler.
18259 CC=$lt_compiler
18260
18261 # Is the compiler the GNU compiler?
18262 with_gcc=$GCC
18263
18264 # Compiler flag to turn off builtin functions.
18265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18266
18267 # Additional compiler flags for building library objects.
18268 pic_flag=$lt_lt_prog_compiler_pic
18269
18270 # How to pass a linker flag through the compiler.
18271 wl=$lt_lt_prog_compiler_wl
18272
18273 # Compiler flag to prevent dynamic linking.
18274 link_static_flag=$lt_lt_prog_compiler_static
18275
18276 # Does compiler simultaneously support -c and -o options?
18277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18278
18279 # Whether or not to add -lc for building shared libraries.
18280 build_libtool_need_lc=$archive_cmds_need_lc
18281
18282 # Whether or not to disallow shared libs when runtime libs are static.
18283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18284
18285 # Compiler flag to allow reflexive dlopens.
18286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18287
18288 # Compiler flag to generate shared objects directly from archives.
18289 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18290
18291 # Whether the compiler copes with passing no objects directly.
18292 compiler_needs_object=$lt_compiler_needs_object
18293
18294 # Create an old-style archive from a shared archive.
18295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18296
18297 # Create a temporary old-style archive to link instead of a shared archive.
18298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18299
18300 # Commands used to build a shared archive.
18301 archive_cmds=$lt_archive_cmds
18302 archive_expsym_cmds=$lt_archive_expsym_cmds
18303
18304 # Commands used to build a loadable module if different from building
18305 # a shared archive.
18306 module_cmds=$lt_module_cmds
18307 module_expsym_cmds=$lt_module_expsym_cmds
18308
18309 # Whether we are building with GNU ld or not.
18310 with_gnu_ld=$lt_with_gnu_ld
18311
18312 # Flag that allows shared libraries with undefined symbols to be built.
18313 allow_undefined_flag=$lt_allow_undefined_flag
18314
18315 # Flag that enforces no undefined symbols.
18316 no_undefined_flag=$lt_no_undefined_flag
18317
18318 # Flag to hardcode \$libdir into a binary during linking.
18319 # This must work even if \$libdir does not exist
18320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18321
18322 # Whether we need a single "-rpath" flag with a separated argument.
18323 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18324
18325 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18326 # DIR into the resulting binary.
18327 hardcode_direct=$hardcode_direct
18328
18329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18330 # DIR into the resulting binary and the resulting library dependency is
18331 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18332 # library is relocated.
18333 hardcode_direct_absolute=$hardcode_direct_absolute
18334
18335 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18336 # into the resulting binary.
18337 hardcode_minus_L=$hardcode_minus_L
18338
18339 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18340 # into the resulting binary.
18341 hardcode_shlibpath_var=$hardcode_shlibpath_var
18342
18343 # Set to "yes" if building a shared library automatically hardcodes DIR
18344 # into the library and all subsequent libraries and executables linked
18345 # against it.
18346 hardcode_automatic=$hardcode_automatic
18347
18348 # Set to yes if linker adds runtime paths of dependent libraries
18349 # to runtime path list.
18350 inherit_rpath=$inherit_rpath
18351
18352 # Whether libtool must link a program against all its dependency libraries.
18353 link_all_deplibs=$link_all_deplibs
18354
18355 # Set to "yes" if exported symbols are required.
18356 always_export_symbols=$always_export_symbols
18357
18358 # The commands to list exported symbols.
18359 export_symbols_cmds=$lt_export_symbols_cmds
18360
18361 # Symbols that should not be listed in the preloaded symbols.
18362 exclude_expsyms=$lt_exclude_expsyms
18363
18364 # Symbols that must always be exported.
18365 include_expsyms=$lt_include_expsyms
18366
18367 # Commands necessary for linking programs (against libraries) with templates.
18368 prelink_cmds=$lt_prelink_cmds
18369
18370 # Commands necessary for finishing linking programs.
18371 postlink_cmds=$lt_postlink_cmds
18372
18373 # Specify filename containing input files.
18374 file_list_spec=$lt_file_list_spec
18375
18376 # How to hardcode a shared library path into an executable.
18377 hardcode_action=$hardcode_action
18378
18379 # ### END LIBTOOL CONFIG
18380
18381 _LT_EOF
18382
18383   case $host_os in
18384   aix3*)
18385     cat <<\_LT_EOF >> "$cfgfile"
18386 # AIX sometimes has problems with the GCC collect2 program.  For some
18387 # reason, if we set the COLLECT_NAMES environment variable, the problems
18388 # vanish in a puff of smoke.
18389 if test "X${COLLECT_NAMES+set}" != Xset; then
18390   COLLECT_NAMES=
18391   export COLLECT_NAMES
18392 fi
18393 _LT_EOF
18394     ;;
18395   esac
18396
18397
18398 ltmain="$ac_aux_dir/ltmain.sh"
18399
18400
18401   # We use sed instead of cat because bash on DJGPP gets confused if
18402   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18403   # text mode, it properly converts lines to CR/LF.  This bash problem
18404   # is reportedly fixed, but why not run on old versions too?
18405   sed '$q' "$ltmain" >> "$cfgfile" \
18406      || (rm -f "$cfgfile"; exit 1)
18407
18408   if test x"$xsi_shell" = xyes; then
18409   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18410 func_dirname ()\
18411 {\
18412 \    case ${1} in\
18413 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18414 \      *  ) func_dirname_result="${3}" ;;\
18415 \    esac\
18416 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18417   && mv -f "$cfgfile.tmp" "$cfgfile" \
18418     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18419 test 0 -eq $? || _lt_function_replace_fail=:
18420
18421
18422   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18423 func_basename ()\
18424 {\
18425 \    func_basename_result="${1##*/}"\
18426 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18427   && mv -f "$cfgfile.tmp" "$cfgfile" \
18428     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18429 test 0 -eq $? || _lt_function_replace_fail=:
18430
18431
18432   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18433 func_dirname_and_basename ()\
18434 {\
18435 \    case ${1} in\
18436 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18437 \      *  ) func_dirname_result="${3}" ;;\
18438 \    esac\
18439 \    func_basename_result="${1##*/}"\
18440 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18441   && mv -f "$cfgfile.tmp" "$cfgfile" \
18442     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18443 test 0 -eq $? || _lt_function_replace_fail=:
18444
18445
18446   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18447 func_stripname ()\
18448 {\
18449 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18450 \    # positional parameters, so assign one to ordinary parameter first.\
18451 \    func_stripname_result=${3}\
18452 \    func_stripname_result=${func_stripname_result#"${1}"}\
18453 \    func_stripname_result=${func_stripname_result%"${2}"}\
18454 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18455   && mv -f "$cfgfile.tmp" "$cfgfile" \
18456     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18457 test 0 -eq $? || _lt_function_replace_fail=:
18458
18459
18460   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18461 func_split_long_opt ()\
18462 {\
18463 \    func_split_long_opt_name=${1%%=*}\
18464 \    func_split_long_opt_arg=${1#*=}\
18465 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18466   && mv -f "$cfgfile.tmp" "$cfgfile" \
18467     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18468 test 0 -eq $? || _lt_function_replace_fail=:
18469
18470
18471   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18472 func_split_short_opt ()\
18473 {\
18474 \    func_split_short_opt_arg=${1#??}\
18475 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18476 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18477   && mv -f "$cfgfile.tmp" "$cfgfile" \
18478     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18479 test 0 -eq $? || _lt_function_replace_fail=:
18480
18481
18482   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18483 func_lo2o ()\
18484 {\
18485 \    case ${1} in\
18486 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18487 \      *)    func_lo2o_result=${1} ;;\
18488 \    esac\
18489 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18490   && mv -f "$cfgfile.tmp" "$cfgfile" \
18491     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18492 test 0 -eq $? || _lt_function_replace_fail=:
18493
18494
18495   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18496 func_xform ()\
18497 {\
18498     func_xform_result=${1%.*}.lo\
18499 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18500   && mv -f "$cfgfile.tmp" "$cfgfile" \
18501     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18502 test 0 -eq $? || _lt_function_replace_fail=:
18503
18504
18505   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18506 func_arith ()\
18507 {\
18508     func_arith_result=$(( $* ))\
18509 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18510   && mv -f "$cfgfile.tmp" "$cfgfile" \
18511     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18512 test 0 -eq $? || _lt_function_replace_fail=:
18513
18514
18515   sed -e '/^func_len ()$/,/^} # func_len /c\
18516 func_len ()\
18517 {\
18518     func_len_result=${#1}\
18519 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18520   && mv -f "$cfgfile.tmp" "$cfgfile" \
18521     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18522 test 0 -eq $? || _lt_function_replace_fail=:
18523
18524 fi
18525
18526 if test x"$lt_shell_append" = xyes; then
18527   sed -e '/^func_append ()$/,/^} # func_append /c\
18528 func_append ()\
18529 {\
18530     eval "${1}+=\\${2}"\
18531 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18532   && mv -f "$cfgfile.tmp" "$cfgfile" \
18533     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18534 test 0 -eq $? || _lt_function_replace_fail=:
18535
18536
18537   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18538 func_append_quoted ()\
18539 {\
18540 \    func_quote_for_eval "${2}"\
18541 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18542 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18543   && mv -f "$cfgfile.tmp" "$cfgfile" \
18544     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18545 test 0 -eq $? || _lt_function_replace_fail=:
18546
18547
18548   # Save a `func_append' function call where possible by direct use of '+='
18549   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18550     && mv -f "$cfgfile.tmp" "$cfgfile" \
18551       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18552   test 0 -eq $? || _lt_function_replace_fail=:
18553 else
18554   # Save a `func_append' function call even when '+=' is not available
18555   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18556     && mv -f "$cfgfile.tmp" "$cfgfile" \
18557       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18558   test 0 -eq $? || _lt_function_replace_fail=:
18559 fi
18560
18561 if test x"$_lt_function_replace_fail" = x":"; then
18562   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18563 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18564 fi
18565
18566
18567    mv -f "$cfgfile" "$ofile" ||
18568     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18569   chmod +x "$ofile"
18570
18571  ;;
18572     "po-directories":C)
18573     for ac_file in $CONFIG_FILES; do
18574       # Support "outfile[:infile[:infile...]]"
18575       case "$ac_file" in
18576         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18577       esac
18578       # PO directories have a Makefile.in generated from Makefile.in.in.
18579       case "$ac_file" in */Makefile.in)
18580         # Adjust a relative srcdir.
18581         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18582         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18583         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18584         # In autoconf-2.13 it is called $ac_given_srcdir.
18585         # In autoconf-2.50 it is called $srcdir.
18586         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18587         case "$ac_given_srcdir" in
18588           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18589           /*) top_srcdir="$ac_given_srcdir" ;;
18590           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18591         esac
18592         # Treat a directory as a PO directory if and only if it has a
18593         # POTFILES.in file. This allows packages to have multiple PO
18594         # directories under different names or in different locations.
18595         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18596           rm -f "$ac_dir/POTFILES"
18597           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18598           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18599           POMAKEFILEDEPS="POTFILES.in"
18600           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18601           # on $ac_dir but don't depend on user-specified configuration
18602           # parameters.
18603           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18604             # The LINGUAS file contains the set of available languages.
18605             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18606               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18607             fi
18608             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18609             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18610             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18611             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18612           else
18613             # The set of available languages was given in configure.in.
18614             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18615             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18616           fi
18617           # Compute POFILES
18618           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18619           # Compute UPDATEPOFILES
18620           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18621           # Compute DUMMYPOFILES
18622           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18623           # Compute GMOFILES
18624           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18625           case "$ac_given_srcdir" in
18626             .) srcdirpre= ;;
18627             *) srcdirpre='$(srcdir)/' ;;
18628           esac
18629           POFILES=
18630           UPDATEPOFILES=
18631           DUMMYPOFILES=
18632           GMOFILES=
18633           for lang in $ALL_LINGUAS; do
18634             POFILES="$POFILES $srcdirpre$lang.po"
18635             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18636             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18637             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18638           done
18639           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18640           # environment variable.
18641           INST_LINGUAS=
18642           if test -n "$ALL_LINGUAS"; then
18643             for presentlang in $ALL_LINGUAS; do
18644               useit=no
18645               if test "%UNSET%" != "$LINGUAS"; then
18646                 desiredlanguages="$LINGUAS"
18647               else
18648                 desiredlanguages="$ALL_LINGUAS"
18649               fi
18650               for desiredlang in $desiredlanguages; do
18651                 # Use the presentlang catalog if desiredlang is
18652                 #   a. equal to presentlang, or
18653                 #   b. a variant of presentlang (because in this case,
18654                 #      presentlang can be used as a fallback for messages
18655                 #      which are not translated in the desiredlang catalog).
18656                 case "$desiredlang" in
18657                   "$presentlang"*) useit=yes;;
18658                 esac
18659               done
18660               if test $useit = yes; then
18661                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18662               fi
18663             done
18664           fi
18665           CATALOGS=
18666           if test -n "$INST_LINGUAS"; then
18667             for lang in $INST_LINGUAS; do
18668               CATALOGS="$CATALOGS $lang.gmo"
18669             done
18670           fi
18671           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18672           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18673           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18674             if test -f "$f"; then
18675               case "$f" in
18676                 *.orig | *.bak | *~) ;;
18677                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18678               esac
18679             fi
18680           done
18681         fi
18682         ;;
18683       esac
18684     done ;;
18685
18686   esac
18687 done # for ac_tag
18688
18689
18690 as_fn_exit 0
18691 _ACEOF
18692 ac_clean_files=$ac_clean_files_save
18693
18694 test $ac_write_fail = 0 ||
18695   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18696
18697
18698 # configure is writing to config.log, and then calls config.status.
18699 # config.status does its own redirection, appending to config.log.
18700 # Unfortunately, on DOS this fails, as config.log is still kept open
18701 # by configure, so config.status won't be able to write to it; its
18702 # output is simply discarded.  So we exec the FD to /dev/null,
18703 # effectively closing config.log, so it can be properly (re)opened and
18704 # appended to by config.status.  When coming back to configure, we
18705 # need to make the FD available again.
18706 if test "$no_create" != yes; then
18707   ac_cs_success=:
18708   ac_config_status_args=
18709   test "$silent" = yes &&
18710     ac_config_status_args="$ac_config_status_args --quiet"
18711   exec 5>/dev/null
18712   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18713   exec 5>>config.log
18714   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18715   # would make configure fail if this is the last instruction.
18716   $ac_cs_success || as_fn_exit 1
18717 fi
18718 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18719   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18720 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18721 fi
18722