Updated changelog
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Moonshot-ui 0.7.2.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: moonshot-community@jiscmail.ac.uk about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569 as_awk_strverscmp='
570   # Use only awk features that work with 7th edition Unix awk (1978).
571   # My, what an old awk you have, Mr. Solaris!
572   END {
573     while (length(v1) && length(v2)) {
574       # Set d1 to be the next thing to compare from v1, and likewise for d2.
575       # Normally this is a single character, but if v1 and v2 contain digits,
576       # compare them as integers and fractions as strverscmp does.
577       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
578         # Split v1 and v2 into their leading digit string components d1 and d2,
579         # and advance v1 and v2 past the leading digit strings.
580         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
581         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
582         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
583         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
584         if (d1 ~ /^0/) {
585           if (d2 ~ /^0/) {
586             # Compare two fractions.
587             while (d1 ~ /^0/ && d2 ~ /^0/) {
588               d1 = substr(d1, 2); len1--
589               d2 = substr(d2, 2); len2--
590             }
591             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
592               # The two components differ in length, and the common prefix
593               # contains only leading zeros.  Consider the longer to be less.
594               d1 = -len1
595               d2 = -len2
596             } else {
597               # Otherwise, compare as strings.
598               d1 = "x" d1
599               d2 = "x" d2
600             }
601           } else {
602             # A fraction is less than an integer.
603             exit 1
604           }
605         } else {
606           if (d2 ~ /^0/) {
607             # An integer is greater than a fraction.
608             exit 2
609           } else {
610             # Compare two integers.
611             d1 += 0
612             d2 += 0
613           }
614         }
615       } else {
616         # The normal case, without worrying about digits.
617         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
618         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
619       }
620       if (d1 < d2) exit 1
621       if (d1 > d2) exit 2
622     }
623     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
624     # which mishandles some comparisons of empty strings to integers.
625     if (length(v2)) exit 1
626     if (length(v1)) exit 2
627   }
628 '
629
630 test -n "$DJDIR" || exec 7<&0 </dev/null
631 exec 6>&1
632
633 # Name of the host.
634 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635 # so uname gets run too.
636 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638 #
639 # Initializations.
640 #
641 ac_default_prefix=/usr/local
642 ac_clean_files=
643 ac_config_libobj_dir=.
644 LIBOBJS=
645 cross_compiling=no
646 subdirs=
647 MFLAGS=
648 MAKEFLAGS=
649
650 # Identity of this package.
651 PACKAGE_NAME='Moonshot-ui'
652 PACKAGE_TARNAME='moonshot-ui'
653 PACKAGE_VERSION='0.7.2'
654 PACKAGE_STRING='Moonshot-ui 0.7.2'
655 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
656 PACKAGE_URL='http://www.project-moonshot.org/'
657
658 ac_unique_file="configure.ac"
659 # Factoring default headers for most tests.
660 ac_includes_default="\
661 #include <stdio.h>
662 #ifdef HAVE_SYS_TYPES_H
663 # include <sys/types.h>
664 #endif
665 #ifdef HAVE_SYS_STAT_H
666 # include <sys/stat.h>
667 #endif
668 #ifdef STDC_HEADERS
669 # include <stdlib.h>
670 # include <stddef.h>
671 #else
672 # ifdef HAVE_STDLIB_H
673 #  include <stdlib.h>
674 # endif
675 #endif
676 #ifdef HAVE_STRING_H
677 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
678 #  include <memory.h>
679 # endif
680 # include <string.h>
681 #endif
682 #ifdef HAVE_STRINGS_H
683 # include <strings.h>
684 #endif
685 #ifdef HAVE_INTTYPES_H
686 # include <inttypes.h>
687 #endif
688 #ifdef HAVE_STDINT_H
689 # include <stdint.h>
690 #endif
691 #ifdef HAVE_UNISTD_H
692 # include <unistd.h>
693 #endif"
694
695 ac_func_list=
696 gt_needs=
697 ac_subst_vars='am__EXEEXT_FALSE
698 am__EXEEXT_TRUE
699 LTLIBOBJS
700 LIBOBJS
701 GETTEXT_PACKAGE
702 POSUB
703 LTLIBINTL
704 LIBINTL
705 INTLLIBS
706 LTLIBICONV
707 LIBICONV
708 INTL_MACOSX_LIBS
709 XGETTEXT_EXTRA_OPTIONS
710 MSGMERGE
711 XGETTEXT_015
712 XGETTEXT
713 GMSGFMT_015
714 MSGFMT_015
715 GMSGFMT
716 MSGFMT
717 GETTEXT_MACRO_VERSION
718 USE_NLS
719 libmoonshot_LIBS
720 libmoonshot_CFLAGS
721 moonshot_LIBS
722 moonshot_CFLAGS
723 MOONSHOT_WEBP
724 MOONSHOT_APP
725 UPDATE_DESKTOP_DATABASE
726 UPDATE_MIME_DATABASE
727 WIX_LIGHT
728 WIX_CANDLE
729 IMAGEMAGICK_CONVERT
730 MSVC_LIB
731 MIDL
732 MIDL_WRAPPER
733 MSRPC_LIBS
734 MSRPC_CFLAGS
735 GIO_VAPI_USES_ARRAYS_FALSE
736 GIO_VAPI_USES_ARRAYS_TRUE
737 IPC_GDBUS_FALSE
738 IPC_GDBUS_TRUE
739 IPC_DBUS_GLIB_FALSE
740 IPC_DBUS_GLIB_TRUE
741 IPC_DBUS_FALSE
742 IPC_DBUS_TRUE
743 IPC_MSRPC_FALSE
744 IPC_MSRPC_TRUE
745 OS_MACOS_FALSE
746 OS_MACOS_TRUE
747 OS_WIN32_FALSE
748 OS_WIN32_TRUE
749 OS_LINUX_FALSE
750 OS_LINUX_TRUE
751 GEE_0_8_FALSE
752 GEE_0_8_TRUE
753 GEE_LIBS
754 GEE_CFLAGS
755 GDBUS_LIBS
756 GDBUS_CFLAGS
757 MAC_LIBS
758 MAC_CFLAGS
759 GTK_LIBS
760 GTK_CFLAGS
761 VALAC
762 PKG_CONFIG_LIBDIR
763 PKG_CONFIG_PATH
764 PKG_CONFIG
765 CPP
766 OTOOL64
767 OTOOL
768 LIPO
769 NMEDIT
770 DSYMUTIL
771 MANIFEST_TOOL
772 RANLIB
773 ac_ct_AR
774 AR
775 LN_S
776 NM
777 ac_ct_DUMPBIN
778 DUMPBIN
779 LD
780 FGREP
781 EGREP
782 GREP
783 SED
784 am__fastdepCC_FALSE
785 am__fastdepCC_TRUE
786 CCDEPMODE
787 am__nodep
788 AMDEPBACKSLASH
789 AMDEP_FALSE
790 AMDEP_TRUE
791 am__quote
792 am__include
793 DEPDIR
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 LIBTOOL
810 OBJDUMP
811 DLLTOOL
812 AS
813 MAINT
814 MAINTAINER_MODE_FALSE
815 MAINTAINER_MODE_TRUE
816 AM_BACKSLASH
817 AM_DEFAULT_VERBOSITY
818 AM_DEFAULT_V
819 AM_V
820 am__untar
821 am__tar
822 AMTAR
823 am__leading_dot
824 SET_MAKE
825 AWK
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 STRIP
830 install_sh
831 MAKEINFO
832 AUTOHEADER
833 AUTOMAKE
834 AUTOCONF
835 ACLOCAL
836 VERSION
837 PACKAGE
838 CYGPATH_W
839 am__isrc
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 target_alias
844 host_alias
845 build_alias
846 LIBS
847 ECHO_T
848 ECHO_N
849 ECHO_C
850 DEFS
851 mandir
852 localedir
853 libdir
854 psdir
855 pdfdir
856 dvidir
857 htmldir
858 infodir
859 docdir
860 oldincludedir
861 includedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_silent_rules
885 enable_maintainer_mode
886 enable_shared
887 enable_static
888 with_pic
889 enable_fast_install
890 enable_dependency_tracking
891 with_gnu_ld
892 with_sysroot
893 enable_libtool_lock
894 enable_nls
895 enable_rpath
896 with_libiconv_prefix
897 with_libintl_prefix
898 '
899       ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 PKG_CONFIG
909 PKG_CONFIG_PATH
910 PKG_CONFIG_LIBDIR
911 GTK_CFLAGS
912 GTK_LIBS
913 MAC_CFLAGS
914 MAC_LIBS
915 GDBUS_CFLAGS
916 GDBUS_LIBS
917 GEE_CFLAGS
918 GEE_LIBS
919 moonshot_CFLAGS
920 moonshot_LIBS
921 libmoonshot_CFLAGS
922 libmoonshot_LIBS'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977   # If the previous option needs an argument, assign it.
978   if test -n "$ac_prev"; then
979     eval $ac_prev=\$ac_option
980     ac_prev=
981     continue
982   fi
983
984   case $ac_option in
985   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986   *=)   ac_optarg= ;;
987   *)    ac_optarg=yes ;;
988   esac
989
990   # Accept the important Cygnus configure options, so we can diagnose typos.
991
992   case $ac_dashdash$ac_option in
993   --)
994     ac_dashdash=yes ;;
995
996   -bindir | --bindir | --bindi | --bind | --bin | --bi)
997     ac_prev=bindir ;;
998   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999     bindir=$ac_optarg ;;
1000
1001   -build | --build | --buil | --bui | --bu)
1002     ac_prev=build_alias ;;
1003   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004     build_alias=$ac_optarg ;;
1005
1006   -cache-file | --cache-file | --cache-fil | --cache-fi \
1007   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008     ac_prev=cache_file ;;
1009   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011     cache_file=$ac_optarg ;;
1012
1013   --config-cache | -C)
1014     cache_file=config.cache ;;
1015
1016   -datadir | --datadir | --datadi | --datad)
1017     ac_prev=datadir ;;
1018   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019     datadir=$ac_optarg ;;
1020
1021   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022   | --dataroo | --dataro | --datar)
1023     ac_prev=datarootdir ;;
1024   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026     datarootdir=$ac_optarg ;;
1027
1028   -disable-* | --disable-*)
1029     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032       as_fn_error $? "invalid feature name: $ac_useropt"
1033     ac_useropt_orig=$ac_useropt
1034     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035     case $ac_user_opts in
1036       *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040          ac_unrecognized_sep=', ';;
1041     esac
1042     eval enable_$ac_useropt=no ;;
1043
1044   -docdir | --docdir | --docdi | --doc | --do)
1045     ac_prev=docdir ;;
1046   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047     docdir=$ac_optarg ;;
1048
1049   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050     ac_prev=dvidir ;;
1051   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052     dvidir=$ac_optarg ;;
1053
1054   -enable-* | --enable-*)
1055     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058       as_fn_error $? "invalid feature name: $ac_useropt"
1059     ac_useropt_orig=$ac_useropt
1060     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061     case $ac_user_opts in
1062       *"
1063 "enable_$ac_useropt"
1064 "*) ;;
1065       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066          ac_unrecognized_sep=', ';;
1067     esac
1068     eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072   | --exec | --exe | --ex)
1073     ac_prev=exec_prefix ;;
1074   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076   | --exec=* | --exe=* | --ex=*)
1077     exec_prefix=$ac_optarg ;;
1078
1079   -gas | --gas | --ga | --g)
1080     # Obsolete; use --with-gas.
1081     with_gas=yes ;;
1082
1083   -help | --help | --hel | --he | -h)
1084     ac_init_help=long ;;
1085   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086     ac_init_help=recursive ;;
1087   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088     ac_init_help=short ;;
1089
1090   -host | --host | --hos | --ho)
1091     ac_prev=host_alias ;;
1092   -host=* | --host=* | --hos=* | --ho=*)
1093     host_alias=$ac_optarg ;;
1094
1095   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096     ac_prev=htmldir ;;
1097   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098   | --ht=*)
1099     htmldir=$ac_optarg ;;
1100
1101   -includedir | --includedir | --includedi | --included | --include \
1102   | --includ | --inclu | --incl | --inc)
1103     ac_prev=includedir ;;
1104   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105   | --includ=* | --inclu=* | --incl=* | --inc=*)
1106     includedir=$ac_optarg ;;
1107
1108   -infodir | --infodir | --infodi | --infod | --info | --inf)
1109     ac_prev=infodir ;;
1110   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111     infodir=$ac_optarg ;;
1112
1113   -libdir | --libdir | --libdi | --libd)
1114     ac_prev=libdir ;;
1115   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116     libdir=$ac_optarg ;;
1117
1118   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119   | --libexe | --libex | --libe)
1120     ac_prev=libexecdir ;;
1121   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122   | --libexe=* | --libex=* | --libe=*)
1123     libexecdir=$ac_optarg ;;
1124
1125   -localedir | --localedir | --localedi | --localed | --locale)
1126     ac_prev=localedir ;;
1127   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128     localedir=$ac_optarg ;;
1129
1130   -localstatedir | --localstatedir | --localstatedi | --localstated \
1131   | --localstate | --localstat | --localsta | --localst | --locals)
1132     ac_prev=localstatedir ;;
1133   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135     localstatedir=$ac_optarg ;;
1136
1137   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138     ac_prev=mandir ;;
1139   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140     mandir=$ac_optarg ;;
1141
1142   -nfp | --nfp | --nf)
1143     # Obsolete; use --without-fp.
1144     with_fp=no ;;
1145
1146   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147   | --no-cr | --no-c | -n)
1148     no_create=yes ;;
1149
1150   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152     no_recursion=yes ;;
1153
1154   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156   | --oldin | --oldi | --old | --ol | --o)
1157     ac_prev=oldincludedir ;;
1158   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161     oldincludedir=$ac_optarg ;;
1162
1163   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164     ac_prev=prefix ;;
1165   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166     prefix=$ac_optarg ;;
1167
1168   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169   | --program-pre | --program-pr | --program-p)
1170     ac_prev=program_prefix ;;
1171   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173     program_prefix=$ac_optarg ;;
1174
1175   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176   | --program-suf | --program-su | --program-s)
1177     ac_prev=program_suffix ;;
1178   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180     program_suffix=$ac_optarg ;;
1181
1182   -program-transform-name | --program-transform-name \
1183   | --program-transform-nam | --program-transform-na \
1184   | --program-transform-n | --program-transform- \
1185   | --program-transform | --program-transfor \
1186   | --program-transfo | --program-transf \
1187   | --program-trans | --program-tran \
1188   | --progr-tra | --program-tr | --program-t)
1189     ac_prev=program_transform_name ;;
1190   -program-transform-name=* | --program-transform-name=* \
1191   | --program-transform-nam=* | --program-transform-na=* \
1192   | --program-transform-n=* | --program-transform-=* \
1193   | --program-transform=* | --program-transfor=* \
1194   | --program-transfo=* | --program-transf=* \
1195   | --program-trans=* | --program-tran=* \
1196   | --progr-tra=* | --program-tr=* | --program-t=*)
1197     program_transform_name=$ac_optarg ;;
1198
1199   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200     ac_prev=pdfdir ;;
1201   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202     pdfdir=$ac_optarg ;;
1203
1204   -psdir | --psdir | --psdi | --psd | --ps)
1205     ac_prev=psdir ;;
1206   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207     psdir=$ac_optarg ;;
1208
1209   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210   | -silent | --silent | --silen | --sile | --sil)
1211     silent=yes ;;
1212
1213   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214     ac_prev=sbindir ;;
1215   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216   | --sbi=* | --sb=*)
1217     sbindir=$ac_optarg ;;
1218
1219   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221   | --sharedst | --shareds | --shared | --share | --shar \
1222   | --sha | --sh)
1223     ac_prev=sharedstatedir ;;
1224   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227   | --sha=* | --sh=*)
1228     sharedstatedir=$ac_optarg ;;
1229
1230   -site | --site | --sit)
1231     ac_prev=site ;;
1232   -site=* | --site=* | --sit=*)
1233     site=$ac_optarg ;;
1234
1235   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236     ac_prev=srcdir ;;
1237   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238     srcdir=$ac_optarg ;;
1239
1240   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241   | --syscon | --sysco | --sysc | --sys | --sy)
1242     ac_prev=sysconfdir ;;
1243   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245     sysconfdir=$ac_optarg ;;
1246
1247   -target | --target | --targe | --targ | --tar | --ta | --t)
1248     ac_prev=target_alias ;;
1249   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250     target_alias=$ac_optarg ;;
1251
1252   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253     verbose=yes ;;
1254
1255   -version | --version | --versio | --versi | --vers | -V)
1256     ac_init_version=: ;;
1257
1258   -with-* | --with-*)
1259     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262       as_fn_error $? "invalid package name: $ac_useropt"
1263     ac_useropt_orig=$ac_useropt
1264     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265     case $ac_user_opts in
1266       *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270          ac_unrecognized_sep=', ';;
1271     esac
1272     eval with_$ac_useropt=\$ac_optarg ;;
1273
1274   -without-* | --without-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error $? "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=no ;;
1289
1290   --x)
1291     # Obsolete; use --with-x.
1292     with_x=yes ;;
1293
1294   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295   | --x-incl | --x-inc | --x-in | --x-i)
1296     ac_prev=x_includes ;;
1297   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299     x_includes=$ac_optarg ;;
1300
1301   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303     ac_prev=x_libraries ;;
1304   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306     x_libraries=$ac_optarg ;;
1307
1308   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1310     ;;
1311
1312   *=*)
1313     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314     # Reject names that are not valid shell variable names.
1315     case $ac_envvar in #(
1316       '' | [0-9]* | *[!_$as_cr_alnum]* )
1317       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318     esac
1319     eval $ac_envvar=\$ac_optarg
1320     export $ac_envvar ;;
1321
1322   *)
1323     # FIXME: should be removed in autoconf 3.0.
1324     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328     ;;
1329
1330   esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335   as_fn_error $? "missing argument to $ac_option"
1336 fi
1337
1338 if test -n "$ac_unrecognized_opts"; then
1339   case $enable_option_checking in
1340     no) ;;
1341     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343   esac
1344 fi
1345
1346 # Check all directory arguments for consistency.
1347 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348                 datadir sysconfdir sharedstatedir localstatedir includedir \
1349                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350                 libdir localedir mandir
1351 do
1352   eval ac_val=\$$ac_var
1353   # Remove trailing slashes.
1354   case $ac_val in
1355     */ )
1356       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357       eval $ac_var=\$ac_val;;
1358   esac
1359   # Be sure to have absolute directory names.
1360   case $ac_val in
1361     [\\/$]* | ?:[\\/]* )  continue;;
1362     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363   esac
1364   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365 done
1366
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1370 build=$build_alias
1371 host=$host_alias
1372 target=$target_alias
1373
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x; then
1376   if test "x$build_alias" = x; then
1377     cross_compiling=maybe
1378   elif test "x$build_alias" != "x$host_alias"; then
1379     cross_compiling=yes
1380   fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392   as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394   as_fn_error $? "pwd does not report name of working directory"
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$as_myself" : 'X\(//\)[^/]' \| \
1404          X"$as_myself" : 'X\(//\)$' \| \
1405          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 fi
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438         pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441   srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_env_${ac_var}_value=\$${ac_var}
1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460   # Omit some internal or obsolete options to make the list less imposing.
1461   # This message is too long to be a string in the A/UX 3.1 sh.
1462   cat <<_ACEOF
1463 \`configure' configures Moonshot-ui 0.7.2 to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473   -h, --help              display this help and exit
1474       --help=short        display options specific to this package
1475       --help=recursive    display the short help of all the included packages
1476   -V, --version           display version information and exit
1477   -q, --quiet, --silent   do not print \`checking ...' messages
1478       --cache-file=FILE   cache test results in FILE [disabled]
1479   -C, --config-cache      alias for \`--cache-file=config.cache'
1480   -n, --no-create         do not create output files
1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484   --prefix=PREFIX         install architecture-independent files in PREFIX
1485                           [$ac_default_prefix]
1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                           [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497   --bindir=DIR            user executables [EPREFIX/bin]
1498   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1499   --libexecdir=DIR        program executables [EPREFIX/libexec]
1500   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1501   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1502   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1503   --libdir=DIR            object code libraries [EPREFIX/lib]
1504   --includedir=DIR        C header files [PREFIX/include]
1505   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1506   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1507   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1508   --infodir=DIR           info documentation [DATAROOTDIR/info]
1509   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1510   --mandir=DIR            man documentation [DATAROOTDIR/man]
1511   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1512   --htmldir=DIR           html documentation [DOCDIR]
1513   --dvidir=DIR            dvi documentation [DOCDIR]
1514   --pdfdir=DIR            pdf documentation [DOCDIR]
1515   --psdir=DIR             ps documentation [DOCDIR]
1516 _ACEOF
1517
1518   cat <<\_ACEOF
1519
1520 Program names:
1521   --program-prefix=PREFIX            prepend PREFIX to installed program names
1522   --program-suffix=SUFFIX            append SUFFIX to installed program names
1523   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1524
1525 System types:
1526   --build=BUILD     configure for building on BUILD [guessed]
1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532   case $ac_init_help in
1533      short | recursive ) echo "Configuration of Moonshot-ui 0.7.2:";;
1534    esac
1535   cat <<\_ACEOF
1536
1537 Optional Features:
1538   --disable-option-checking  ignore unrecognized --enable/--with options
1539   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541   --enable-silent-rules   less verbose build output (undo: "make V=1")
1542   --disable-silent-rules  verbose build output (undo: "make V=0")
1543   --disable-maintainer-mode
1544                           disable make rules and dependencies not useful (and
1545                           sometimes confusing) to the casual installer
1546   --enable-shared[=PKGS]  build shared libraries [default=yes]
1547   --enable-static[=PKGS]  build static libraries [default=yes]
1548   --enable-fast-install[=PKGS]
1549                           optimize for fast installation [default=yes]
1550   --enable-dependency-tracking
1551                           do not reject slow dependency extractors
1552   --disable-dependency-tracking
1553                           speeds up one-time build
1554   --disable-libtool-lock  avoid locking (might break parallel builds)
1555   --disable-nls           do not use Native Language Support
1556   --disable-rpath         do not hardcode runtime library paths
1557
1558 Optional Packages:
1559   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1560   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1561   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1562                           both]
1563   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564   --with-sysroot=DIR Search for dependent libraries within DIR
1565                         (or the compiler's sysroot if not specified).
1566   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1567   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1568   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1569   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1570   --without-libintl-prefix     don't search for libintl in includedir and libdir
1571
1572 Some influential environment variables:
1573   CC          C compiler command
1574   CFLAGS      C compiler flags
1575   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576               nonstandard directory <lib dir>
1577   LIBS        libraries to pass to the linker, e.g. -l<library>
1578   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579               you have headers in a nonstandard directory <include dir>
1580   CPP         C preprocessor
1581   PKG_CONFIG  path to pkg-config utility
1582   PKG_CONFIG_PATH
1583               directories to add to pkg-config's search path
1584   PKG_CONFIG_LIBDIR
1585               path overriding pkg-config's built-in search path
1586   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1587   GTK_LIBS    linker flags for GTK, overriding pkg-config
1588   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1589   MAC_LIBS    linker flags for MAC, overriding pkg-config
1590   GDBUS_CFLAGS
1591               C compiler flags for GDBUS, overriding pkg-config
1592   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1593   GEE_CFLAGS  C compiler flags for GEE, overriding pkg-config
1594   GEE_LIBS    linker flags for GEE, overriding pkg-config
1595   moonshot_CFLAGS
1596               C compiler flags for moonshot, overriding pkg-config
1597   moonshot_LIBS
1598               linker flags for moonshot, overriding pkg-config
1599   libmoonshot_CFLAGS
1600               C compiler flags for libmoonshot, overriding pkg-config
1601   libmoonshot_LIBS
1602               linker flags for libmoonshot, overriding pkg-config
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1608 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614   # If there are subdirs, report their specific --help.
1615   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616     test -d "$ac_dir" ||
1617       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618       continue
1619     ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625   # A ".." for each directory in $ac_dir_suffix.
1626   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627   case $ac_top_builddir_sub in
1628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630   esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638   .)  # We are building in place.
1639     ac_srcdir=.
1640     ac_top_srcdir=$ac_top_builddir_sub
1641     ac_abs_top_srcdir=$ac_pwd ;;
1642   [\\/]* | ?:[\\/]* )  # Absolute name.
1643     ac_srcdir=$srcdir$ac_dir_suffix;
1644     ac_top_srcdir=$srcdir
1645     ac_abs_top_srcdir=$srcdir ;;
1646   *) # Relative name.
1647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648     ac_top_srcdir=$ac_top_build_prefix$srcdir
1649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653     cd "$ac_dir" || { ac_status=$?; continue; }
1654     # Check for guested configure.
1655     if test -f "$ac_srcdir/configure.gnu"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658     elif test -f "$ac_srcdir/configure"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure" --help=recursive
1661     else
1662       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663     fi || ac_status=$?
1664     cd "$ac_pwd" || { ac_status=$?; break; }
1665   done
1666 fi
1667
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670   cat <<\_ACEOF
1671 Moonshot-ui configure 0.7.2
1672 generated by GNU Autoconf 2.69
1673
1674 Copyright (C) 2012 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678   exit
1679 fi
1680
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1684
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   rm -f conftest.$ac_objext
1692   if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_compile") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && {
1708          test -z "$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        } && test -s conftest.$ac_objext; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_link ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   rm -f conftest.$ac_objext conftest$ac_exeext
1730   if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_link") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && {
1746          test -z "$ac_c_werror_flag" ||
1747          test ! -s conftest.err
1748        } && test -s conftest$ac_exeext && {
1749          test "$cross_compiling" = yes ||
1750          test -x conftest$ac_exeext
1751        }; then :
1752   ac_retval=0
1753 else
1754   $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757         ac_retval=1
1758 fi
1759   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761   # interfere with the next link command; also delete a directory that is
1762   # left behind by Apple's compiler.  We do this before executing the actions.
1763   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_link
1768
1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists and can be compiled using the include files in
1772 # INCLUDES, setting the cache variable VAR accordingly.
1773 ac_fn_c_check_header_compile ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779   $as_echo_n "(cached) " >&6
1780 else
1781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 $4
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787   eval "$3=yes"
1788 else
1789   eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 fi
1793 eval ac_res=\$$3
1794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_header_compile
1799
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_cpp ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809   *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814   ac_status=$?
1815   if test -s conftest.err; then
1816     grep -v '^ *+' conftest.err >conftest.er1
1817     cat conftest.er1 >&5
1818     mv -f conftest.er1 conftest.err
1819   fi
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; } > conftest.i && {
1822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823          test ! -s conftest.err
1824        }; then :
1825   ac_retval=0
1826 else
1827   $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830     ac_retval=1
1831 fi
1832   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833   as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_cpp
1836
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1841 ac_fn_c_try_run ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_link") 2>&5
1852   ac_status=$?
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855   { { case "(($ac_try" in
1856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857   *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861   (eval "$ac_try") 2>&5
1862   ac_status=$?
1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864   test $ac_status = 0; }; }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: program exited with status $ac_status" >&5
1868        $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871        ac_retval=$ac_status
1872 fi
1873   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_run
1878
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1894 #define $2 innocuous_$2
1895
1896 /* System header to define __stub macros and hopefully few prototypes,
1897     which can conflict with char $2 (); below.
1898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899     <limits.h> exists even on freestanding compilers.  */
1900
1901 #ifdef __STDC__
1902 # include <limits.h>
1903 #else
1904 # include <assert.h>
1905 #endif
1906
1907 #undef $2
1908
1909 /* Override any GCC internal prototype to avoid an error.
1910    Use char because int might match the return type of a GCC
1911    builtin and then its argument prototype would still apply.  */
1912 #ifdef __cplusplus
1913 extern "C"
1914 #endif
1915 char $2 ();
1916 /* The GNU C library defines this for functions which it implements
1917     to always fail with ENOSYS.  Some functions are actually named
1918     something starting with __ and the normal name is an alias.  */
1919 #if defined __stub_$2 || defined __stub___$2
1920 choke me
1921 #endif
1922
1923 int
1924 main ()
1925 {
1926 return $2 ();
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_link "$LINENO"; then :
1932   eval "$3=yes"
1933 else
1934   eval "$3=no"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext \
1937     conftest$ac_exeext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_func
1945 cat >config.log <<_ACEOF
1946 This file contains any messages produced by compilers while
1947 running configure, to aid debugging if configure makes a mistake.
1948
1949 It was created by Moonshot-ui $as_me 0.7.2, which was
1950 generated by GNU Autoconf 2.69.  Invocation command line was
1951
1952   $ $0 $@
1953
1954 _ACEOF
1955 exec 5>>config.log
1956 {
1957 cat <<_ASUNAME
1958 ## --------- ##
1959 ## Platform. ##
1960 ## --------- ##
1961
1962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967
1968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1969 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1970
1971 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1972 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1974 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1975 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1976 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1977 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1978
1979 _ASUNAME
1980
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986     $as_echo "PATH: $as_dir"
1987   done
1988 IFS=$as_save_IFS
1989
1990 } >&5
1991
1992 cat >&5 <<_ACEOF
1993
1994
1995 ## ----------- ##
1996 ## Core tests. ##
1997 ## ----------- ##
1998
1999 _ACEOF
2000
2001
2002 # Keep a trace of the command line.
2003 # Strip out --no-create and --no-recursion so they do not pile up.
2004 # Strip out --silent because we don't want to record it for future runs.
2005 # Also quote any args containing shell meta-characters.
2006 # Make two passes to allow for proper duplicate-argument suppression.
2007 ac_configure_args=
2008 ac_configure_args0=
2009 ac_configure_args1=
2010 ac_must_keep_next=false
2011 for ac_pass in 1 2
2012 do
2013   for ac_arg
2014   do
2015     case $ac_arg in
2016     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2017     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2018     | -silent | --silent | --silen | --sile | --sil)
2019       continue ;;
2020     *\'*)
2021       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022     esac
2023     case $ac_pass in
2024     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025     2)
2026       as_fn_append ac_configure_args1 " '$ac_arg'"
2027       if test $ac_must_keep_next = true; then
2028         ac_must_keep_next=false # Got value, back to normal.
2029       else
2030         case $ac_arg in
2031           *=* | --config-cache | -C | -disable-* | --disable-* \
2032           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2033           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2034           | -with-* | --with-* | -without-* | --without-* | --x)
2035             case "$ac_configure_args0 " in
2036               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037             esac
2038             ;;
2039           -* ) ac_must_keep_next=true ;;
2040         esac
2041       fi
2042       as_fn_append ac_configure_args " '$ac_arg'"
2043       ;;
2044     esac
2045   done
2046 done
2047 { ac_configure_args0=; unset ac_configure_args0;}
2048 { ac_configure_args1=; unset ac_configure_args1;}
2049
2050 # When interrupted or exit'd, cleanup temporary files, and complete
2051 # config.log.  We remove comments because anyway the quotes in there
2052 # would cause problems or look ugly.
2053 # WARNING: Use '\'' to represent an apostrophe within the trap.
2054 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2055 trap 'exit_status=$?
2056   # Save into config.log some information that might help in debugging.
2057   {
2058     echo
2059
2060     $as_echo "## ---------------- ##
2061 ## Cache variables. ##
2062 ## ---------------- ##"
2063     echo
2064     # The following way of writing the cache mishandles newlines in values,
2065 (
2066   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067     eval ac_val=\$$ac_var
2068     case $ac_val in #(
2069     *${as_nl}*)
2070       case $ac_var in #(
2071       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073       esac
2074       case $ac_var in #(
2075       _ | IFS | as_nl) ;; #(
2076       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077       *) { eval $ac_var=; unset $ac_var;} ;;
2078       esac ;;
2079     esac
2080   done
2081   (set) 2>&1 |
2082     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083     *${as_nl}ac_space=\ *)
2084       sed -n \
2085         "s/'\''/'\''\\\\'\'''\''/g;
2086           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087       ;; #(
2088     *)
2089       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090       ;;
2091     esac |
2092     sort
2093 )
2094     echo
2095
2096     $as_echo "## ----------------- ##
2097 ## Output variables. ##
2098 ## ----------------- ##"
2099     echo
2100     for ac_var in $ac_subst_vars
2101     do
2102       eval ac_val=\$$ac_var
2103       case $ac_val in
2104       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105       esac
2106       $as_echo "$ac_var='\''$ac_val'\''"
2107     done | sort
2108     echo
2109
2110     if test -n "$ac_subst_files"; then
2111       $as_echo "## ------------------- ##
2112 ## File substitutions. ##
2113 ## ------------------- ##"
2114       echo
2115       for ac_var in $ac_subst_files
2116       do
2117         eval ac_val=\$$ac_var
2118         case $ac_val in
2119         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120         esac
2121         $as_echo "$ac_var='\''$ac_val'\''"
2122       done | sort
2123       echo
2124     fi
2125
2126     if test -s confdefs.h; then
2127       $as_echo "## ----------- ##
2128 ## confdefs.h. ##
2129 ## ----------- ##"
2130       echo
2131       cat confdefs.h
2132       echo
2133     fi
2134     test "$ac_signal" != 0 &&
2135       $as_echo "$as_me: caught signal $ac_signal"
2136     $as_echo "$as_me: exit $exit_status"
2137   } >&5
2138   rm -f core *.core core.conftest.* &&
2139     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140     exit $exit_status
2141 ' 0
2142 for ac_signal in 1 2 13 15; do
2143   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144 done
2145 ac_signal=0
2146
2147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2148 rm -f -r conftest* confdefs.h
2149
2150 $as_echo "/* confdefs.h */" > confdefs.h
2151
2152 # Predefined preprocessor variables.
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_NAME "$PACKAGE_NAME"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_STRING "$PACKAGE_STRING"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_URL "$PACKAGE_URL"
2176 _ACEOF
2177
2178
2179 # Let the site file select an alternate cache file if it wants to.
2180 # Prefer an explicitly selected file to automatically selected ones.
2181 ac_site_file1=NONE
2182 ac_site_file2=NONE
2183 if test -n "$CONFIG_SITE"; then
2184   # We do not want a PATH search for config.site.
2185   case $CONFIG_SITE in #((
2186     -*)  ac_site_file1=./$CONFIG_SITE;;
2187     */*) ac_site_file1=$CONFIG_SITE;;
2188     *)   ac_site_file1=./$CONFIG_SITE;;
2189   esac
2190 elif test "x$prefix" != xNONE; then
2191   ac_site_file1=$prefix/share/config.site
2192   ac_site_file2=$prefix/etc/config.site
2193 else
2194   ac_site_file1=$ac_default_prefix/share/config.site
2195   ac_site_file2=$ac_default_prefix/etc/config.site
2196 fi
2197 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198 do
2199   test "x$ac_site_file" = xNONE && continue
2200   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2202 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2203     sed 's/^/| /' "$ac_site_file" >&5
2204     . "$ac_site_file" \
2205       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 as_fn_error $? "failed to load site script $ac_site_file
2208 See \`config.log' for more details" "$LINENO" 5; }
2209   fi
2210 done
2211
2212 if test -r "$cache_file"; then
2213   # Some versions of bash will fail to source /dev/null (special files
2214   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2215   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2217 $as_echo "$as_me: loading cache $cache_file" >&6;}
2218     case $cache_file in
2219       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2220       *)                      . "./$cache_file";;
2221     esac
2222   fi
2223 else
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2225 $as_echo "$as_me: creating cache $cache_file" >&6;}
2226   >$cache_file
2227 fi
2228
2229 as_fn_append ac_func_list " geteuid"
2230 as_fn_append ac_func_list " getpwuid"
2231 gt_needs="$gt_needs "
2232 # Check that the precious variables saved in the cache have kept the same
2233 # value.
2234 ac_cache_corrupted=false
2235 for ac_var in $ac_precious_vars; do
2236   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237   eval ac_new_set=\$ac_env_${ac_var}_set
2238   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239   eval ac_new_val=\$ac_env_${ac_var}_value
2240   case $ac_old_set,$ac_new_set in
2241     set,)
2242       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244       ac_cache_corrupted=: ;;
2245     ,set)
2246       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248       ac_cache_corrupted=: ;;
2249     ,);;
2250     *)
2251       if test "x$ac_old_val" != "x$ac_new_val"; then
2252         # differences in whitespace do not lead to failure.
2253         ac_old_val_w=`echo x $ac_old_val`
2254         ac_new_val_w=`echo x $ac_new_val`
2255         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258           ac_cache_corrupted=:
2259         else
2260           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262           eval $ac_var=\$ac_old_val
2263         fi
2264         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2265 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2266         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2267 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2268       fi;;
2269   esac
2270   # Pass precious variables to config.status.
2271   if test "$ac_new_set" = set; then
2272     case $ac_new_val in
2273     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274     *) ac_arg=$ac_var=$ac_new_val ;;
2275     esac
2276     case " $ac_configure_args " in
2277       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2278       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279     esac
2280   fi
2281 done
2282 if $ac_cache_corrupted; then
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288 fi
2289 ## -------------------- ##
2290 ## Main body of script. ##
2291 ## -------------------- ##
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301 # Remove this when we can depend on autoconf >= 2.64
2302 PACKAGE_URL=http://www.project-moonshot.org/
2303
2304
2305 $as_echo "#define PACKAGE_URL \"http://www.project-moonshot.org\"" >>confdefs.h
2306
2307 ac_config_headers="$ac_config_headers config.h"
2308
2309
2310
2311 ac_aux_dir=
2312 for ac_dir in build-aux "$srcdir"/build-aux; do
2313   if test -f "$ac_dir/install-sh"; then
2314     ac_aux_dir=$ac_dir
2315     ac_install_sh="$ac_aux_dir/install-sh -c"
2316     break
2317   elif test -f "$ac_dir/install.sh"; then
2318     ac_aux_dir=$ac_dir
2319     ac_install_sh="$ac_aux_dir/install.sh -c"
2320     break
2321   elif test -f "$ac_dir/shtool"; then
2322     ac_aux_dir=$ac_dir
2323     ac_install_sh="$ac_aux_dir/shtool install -c"
2324     break
2325   fi
2326 done
2327 if test -z "$ac_aux_dir"; then
2328   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2329 fi
2330
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2338
2339
2340
2341 am__api_version='1.14'
2342
2343 # Find a good install program.  We prefer a C program (faster),
2344 # so one script is as good as another.  But avoid the broken or
2345 # incompatible versions:
2346 # SysV /etc/install, /usr/sbin/install
2347 # SunOS /usr/etc/install
2348 # IRIX /sbin/install
2349 # AIX /bin/install
2350 # AmigaOS /C/install, which installs bootblocks on floppy discs
2351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2354 # OS/2's system install, which has a completely different semantic
2355 # ./install, which can be erroneously created by make from ./install.sh.
2356 # Reject install programs that cannot install multiple files.
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2358 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2359 if test -z "$INSTALL"; then
2360 if ${ac_cv_path_install+:} false; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368     # Account for people who put trailing slashes in PATH elements.
2369 case $as_dir/ in #((
2370   ./ | .// | /[cC]/* | \
2371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2372   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2373   /usr/ucb/* ) ;;
2374   *)
2375     # OSF1 and SCO ODT 3.0 have their own names for install.
2376     # Don't use installbsd from OSF since it installs stuff as root
2377     # by default.
2378     for ac_prog in ginstall scoinst install; do
2379       for ac_exec_ext in '' $ac_executable_extensions; do
2380         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2381           if test $ac_prog = install &&
2382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383             # AIX install.  It has an incompatible calling convention.
2384             :
2385           elif test $ac_prog = install &&
2386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387             # program-specific install script used by HP pwplus--don't use.
2388             :
2389           else
2390             rm -rf conftest.one conftest.two conftest.dir
2391             echo one > conftest.one
2392             echo two > conftest.two
2393             mkdir conftest.dir
2394             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2395               test -s conftest.one && test -s conftest.two &&
2396               test -s conftest.dir/conftest.one &&
2397               test -s conftest.dir/conftest.two
2398             then
2399               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2400               break 3
2401             fi
2402           fi
2403         fi
2404       done
2405     done
2406     ;;
2407 esac
2408
2409   done
2410 IFS=$as_save_IFS
2411
2412 rm -rf conftest.one conftest.two conftest.dir
2413
2414 fi
2415   if test "${ac_cv_path_install+set}" = set; then
2416     INSTALL=$ac_cv_path_install
2417   else
2418     # As a last resort, use the slow shell script.  Don't cache a
2419     # value for INSTALL within a source directory, because that will
2420     # break other packages using the cache if that directory is
2421     # removed, or if the value is a relative name.
2422     INSTALL=$ac_install_sh
2423   fi
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2426 $as_echo "$INSTALL" >&6; }
2427
2428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2429 # It thinks the first close brace ends the variable substitution.
2430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2431
2432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2433
2434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2435
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2437 $as_echo_n "checking whether build environment is sane... " >&6; }
2438 # Reject unsafe characters in $srcdir or the absolute working directory
2439 # name.  Accept space and tab only in the latter.
2440 am_lf='
2441 '
2442 case `pwd` in
2443   *[\\\"\#\$\&\'\`$am_lf]*)
2444     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2445 esac
2446 case $srcdir in
2447   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2448     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2449 esac
2450
2451 # Do 'set' in a subshell so we don't clobber the current shell's
2452 # arguments.  Must try -L first in case configure is actually a
2453 # symlink; some systems play weird games with the mod time of symlinks
2454 # (eg FreeBSD returns the mod time of the symlink's containing
2455 # directory).
2456 if (
2457    am_has_slept=no
2458    for am_try in 1 2; do
2459      echo "timestamp, slept: $am_has_slept" > conftest.file
2460      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2461      if test "$*" = "X"; then
2462         # -L didn't work.
2463         set X `ls -t "$srcdir/configure" conftest.file`
2464      fi
2465      if test "$*" != "X $srcdir/configure conftest.file" \
2466         && test "$*" != "X conftest.file $srcdir/configure"; then
2467
2468         # If neither matched, then we have a broken ls.  This can happen
2469         # if, for instance, CONFIG_SHELL is bash and it inherits a
2470         # broken ls alias from the environment.  This has actually
2471         # happened.  Such a system could not be considered "sane".
2472         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2473   alias in your environment" "$LINENO" 5
2474      fi
2475      if test "$2" = conftest.file || test $am_try -eq 2; then
2476        break
2477      fi
2478      # Just in case.
2479      sleep 1
2480      am_has_slept=yes
2481    done
2482    test "$2" = conftest.file
2483    )
2484 then
2485    # Ok.
2486    :
2487 else
2488    as_fn_error $? "newly created file is older than distributed files!
2489 Check your system clock" "$LINENO" 5
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492 $as_echo "yes" >&6; }
2493 # If we didn't sleep, we still need to ensure time stamps of config.status and
2494 # generated files are strictly newer.
2495 am_sleep_pid=
2496 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2497   ( sleep 1 ) &
2498   am_sleep_pid=$!
2499 fi
2500
2501 rm -f conftest.file
2502
2503 test "$program_prefix" != NONE &&
2504   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2505 # Use a double $ so make ignores it.
2506 test "$program_suffix" != NONE &&
2507   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2508 # Double any \ or $.
2509 # By default was `s,x,x', remove it if useless.
2510 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2511 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512
2513 # expand $ac_aux_dir to an absolute path
2514 am_aux_dir=`cd $ac_aux_dir && pwd`
2515
2516 if test x"${MISSING+set}" != xset; then
2517   case $am_aux_dir in
2518   *\ * | *\     *)
2519     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2520   *)
2521     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522   esac
2523 fi
2524 # Use eval to expand $SHELL
2525 if eval "$MISSING --is-lightweight"; then
2526   am_missing_run="$MISSING "
2527 else
2528   am_missing_run=
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2530 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2531 fi
2532
2533 if test x"${install_sh}" != xset; then
2534   case $am_aux_dir in
2535   *\ * | *\     *)
2536     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2537   *)
2538     install_sh="\${SHELL} $am_aux_dir/install-sh"
2539   esac
2540 fi
2541
2542 # Installed binaries are usually stripped using 'strip' when the user
2543 # run "make install-strip".  However 'strip' might not be the right
2544 # tool to use in cross-compilation environments, therefore Automake
2545 # will honor the 'STRIP' environment variable to overrule this program.
2546 if test "$cross_compiling" != no; then
2547   if test -n "$ac_tool_prefix"; then
2548   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2549 set dummy ${ac_tool_prefix}strip; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_STRIP+:} false; then :
2553   $as_echo_n "(cached) " >&6
2554 else
2555   if test -n "$STRIP"; then
2556   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563     for ac_exec_ext in '' $ac_executable_extensions; do
2564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567     break 2
2568   fi
2569 done
2570   done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 STRIP=$ac_cv_prog_STRIP
2576 if test -n "$STRIP"; then
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2578 $as_echo "$STRIP" >&6; }
2579 else
2580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 fi
2583
2584
2585 fi
2586 if test -z "$ac_cv_prog_STRIP"; then
2587   ac_ct_STRIP=$STRIP
2588   # Extract the first word of "strip", so it can be a program name with args.
2589 set dummy strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2593   $as_echo_n "(cached) " >&6
2594 else
2595   if test -n "$ac_ct_STRIP"; then
2596   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603     for ac_exec_ext in '' $ac_executable_extensions; do
2604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605     ac_cv_prog_ac_ct_STRIP="strip"
2606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610   done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2616 if test -n "$ac_ct_STRIP"; then
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2618 $as_echo "$ac_ct_STRIP" >&6; }
2619 else
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624   if test "x$ac_ct_STRIP" = x; then
2625     STRIP=":"
2626   else
2627     case $cross_compiling:$ac_tool_warned in
2628 yes:)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633     STRIP=$ac_ct_STRIP
2634   fi
2635 else
2636   STRIP="$ac_cv_prog_STRIP"
2637 fi
2638
2639 fi
2640 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2643 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2644 if test -z "$MKDIR_P"; then
2645   if ${ac_cv_path_mkdir+:} false; then :
2646   $as_echo_n "(cached) " >&6
2647 else
2648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653     for ac_prog in mkdir gmkdir; do
2654          for ac_exec_ext in '' $ac_executable_extensions; do
2655            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2656            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2657              'mkdir (GNU coreutils) '* | \
2658              'mkdir (coreutils) '* | \
2659              'mkdir (fileutils) '4.1*)
2660                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2661                break 3;;
2662            esac
2663          done
2664        done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669
2670   test -d ./--version && rmdir ./--version
2671   if test "${ac_cv_path_mkdir+set}" = set; then
2672     MKDIR_P="$ac_cv_path_mkdir -p"
2673   else
2674     # As a last resort, use the slow shell script.  Don't cache a
2675     # value for MKDIR_P within a source directory, because that will
2676     # break other packages using the cache if that directory is
2677     # removed, or if the value is a relative name.
2678     MKDIR_P="$ac_install_sh -d"
2679   fi
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2682 $as_echo "$MKDIR_P" >&6; }
2683
2684 for ac_prog in gawk mawk nawk awk
2685 do
2686   # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy $ac_prog; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_AWK+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$AWK"; then
2694   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701     for ac_exec_ext in '' $ac_executable_extensions; do
2702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703     ac_cv_prog_AWK="$ac_prog"
2704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708   done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 AWK=$ac_cv_prog_AWK
2714 if test -n "$AWK"; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2716 $as_echo "$AWK" >&6; }
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722
2723   test -n "$AWK" && break
2724 done
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2728 set x ${MAKE-make}
2729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2730 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   cat >conftest.make <<\_ACEOF
2734 SHELL = /bin/sh
2735 all:
2736         @echo '@@@%%%=$(MAKE)=@@@%%%'
2737 _ACEOF
2738 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2740   *@@@%%%=?*=@@@%%%*)
2741     eval ac_cv_prog_make_${ac_make}_set=yes;;
2742   *)
2743     eval ac_cv_prog_make_${ac_make}_set=no;;
2744 esac
2745 rm -f conftest.make
2746 fi
2747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750   SET_MAKE=
2751 else
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754   SET_MAKE="MAKE=${MAKE-make}"
2755 fi
2756
2757 rm -rf .tst 2>/dev/null
2758 mkdir .tst 2>/dev/null
2759 if test -d .tst; then
2760   am__leading_dot=.
2761 else
2762   am__leading_dot=_
2763 fi
2764 rmdir .tst 2>/dev/null
2765
2766 # Check whether --enable-silent-rules was given.
2767 if test "${enable_silent_rules+set}" = set; then :
2768   enableval=$enable_silent_rules;
2769 fi
2770
2771 case $enable_silent_rules in # (((
2772   yes) AM_DEFAULT_VERBOSITY=0;;
2773    no) AM_DEFAULT_VERBOSITY=1;;
2774     *) AM_DEFAULT_VERBOSITY=1;;
2775 esac
2776 am_make=${MAKE-make}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2778 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2779 if ${am_cv_make_support_nested_variables+:} false; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if $as_echo 'TRUE=$(BAR$(V))
2783 BAR0=false
2784 BAR1=true
2785 V=1
2786 am__doit:
2787         @$(TRUE)
2788 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2789   am_cv_make_support_nested_variables=yes
2790 else
2791   am_cv_make_support_nested_variables=no
2792 fi
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2795 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2796 if test $am_cv_make_support_nested_variables = yes; then
2797     AM_V='$(V)'
2798   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2799 else
2800   AM_V=$AM_DEFAULT_VERBOSITY
2801   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2802 fi
2803 AM_BACKSLASH='\'
2804
2805 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2806   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2807   # is not polluted with repeated "-I."
2808   am__isrc=' -I$(srcdir)'
2809   # test to see if srcdir already configured
2810   if test -f $srcdir/config.status; then
2811     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2812   fi
2813 fi
2814
2815 # test whether we have cygpath
2816 if test -z "$CYGPATH_W"; then
2817   if (cygpath --version) >/dev/null 2>/dev/null; then
2818     CYGPATH_W='cygpath -w'
2819   else
2820     CYGPATH_W=echo
2821   fi
2822 fi
2823
2824
2825 # Define the identity of the package.
2826  PACKAGE='moonshot-ui'
2827  VERSION='0.7.2'
2828
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE "$PACKAGE"
2832 _ACEOF
2833
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define VERSION "$VERSION"
2837 _ACEOF
2838
2839 # Some tools Automake needs.
2840
2841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2842
2843
2844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2845
2846
2847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2848
2849
2850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2851
2852
2853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2854
2855 # For better backward compatibility.  To be removed once Automake 1.9.x
2856 # dies out for good.  For more background, see:
2857 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2858 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2859 mkdir_p='$(MKDIR_P)'
2860
2861 # We need awk for the "check" target.  The system "awk" is bad on
2862 # some platforms.
2863 # Always define AMTAR for backward compatibility.  Yes, it's still used
2864 # in the wild :-(  We should find a proper way to deprecate it ...
2865 AMTAR='$${TAR-tar}'
2866
2867
2868 # We'll loop over all known methods to create a tar archive until one works.
2869 _am_tools='gnutar  pax cpio none'
2870
2871
2872
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2874 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2875
2876   # Go ahead even if we have the value already cached.  We do so because we
2877   # need to set the values for the 'am__tar' and 'am__untar' variables.
2878   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2879
2880   for _am_tool in $_am_tools; do
2881     case $_am_tool in
2882     gnutar)
2883       for _am_tar in tar gnutar gtar; do
2884         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2885    ($_am_tar --version) >&5 2>&5
2886    ac_status=$?
2887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888    (exit $ac_status); } && break
2889       done
2890       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2891       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2892       am__untar="$_am_tar -xf -"
2893       ;;
2894     plaintar)
2895       # Must skip GNU tar: if it does not support --format= it doesn't create
2896       # ustar tarball either.
2897       (tar --version) >/dev/null 2>&1 && continue
2898       am__tar='tar chf - "$$tardir"'
2899       am__tar_='tar chf - "$tardir"'
2900       am__untar='tar xf -'
2901       ;;
2902     pax)
2903       am__tar='pax -L -x pax -w "$$tardir"'
2904       am__tar_='pax -L -x pax -w "$tardir"'
2905       am__untar='pax -r'
2906       ;;
2907     cpio)
2908       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2909       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2910       am__untar='cpio -i -H pax -d'
2911       ;;
2912     none)
2913       am__tar=false
2914       am__tar_=false
2915       am__untar=false
2916       ;;
2917     esac
2918
2919     # If the value was cached, stop now.  We just wanted to have am__tar
2920     # and am__untar set.
2921     test -n "${am_cv_prog_tar_pax}" && break
2922
2923     # tar/untar a dummy directory, and stop if the command works.
2924     rm -rf conftest.dir
2925     mkdir conftest.dir
2926     echo GrepMe > conftest.dir/file
2927     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2928    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2929    ac_status=$?
2930    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931    (exit $ac_status); }
2932     rm -rf conftest.dir
2933     if test -s conftest.tar; then
2934       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2935    ($am__untar <conftest.tar) >&5 2>&5
2936    ac_status=$?
2937    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938    (exit $ac_status); }
2939       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2940    (cat conftest.dir/file) >&5 2>&5
2941    ac_status=$?
2942    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943    (exit $ac_status); }
2944       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2945     fi
2946   done
2947   rm -rf conftest.dir
2948
2949   if ${am_cv_prog_tar_pax+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   am_cv_prog_tar_pax=$_am_tool
2953 fi
2954
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2956 $as_echo "$am_cv_prog_tar_pax" >&6; }
2957
2958
2959
2960
2961
2962
2963 # POSIX will say in a future version that running "rm -f" with no argument
2964 # is OK; and we want to be able to make that assumption in our Makefile
2965 # recipes.  So use an aggressive probe to check that the usage we want is
2966 # actually supported "in the wild" to an acceptable degree.
2967 # See automake bug#10828.
2968 # To make any issue more visible, cause the running configure to be aborted
2969 # by default if the 'rm' program in use doesn't match our expectations; the
2970 # user can still override this though.
2971 if rm -f && rm -fr && rm -rf; then : OK; else
2972   cat >&2 <<'END'
2973 Oops!
2974
2975 Your 'rm' program seems unable to run without file operands specified
2976 on the command line, even when the '-f' option is present.  This is contrary
2977 to the behaviour of most rm programs out there, and not conforming with
2978 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2979
2980 Please tell bug-automake@gnu.org about your system, including the value
2981 of your $PATH and any error possibly output before this message.  This
2982 can help us improve future automake versions.
2983
2984 END
2985   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2986     echo 'Configuration will proceed anyway, since you have set the' >&2
2987     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988     echo >&2
2989   else
2990     cat >&2 <<'END'
2991 Aborting the configuration process, to ensure you take notice of the issue.
2992
2993 You can download and install GNU coreutils to get an 'rm' implementation
2994 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2995
2996 If you want to complete the configuration process using your problematic
2997 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2998 to "yes", and re-run configure.
2999
3000 END
3001     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3002   fi
3003 fi
3004
3005 # Check whether --enable-silent-rules was given.
3006 if test "${enable_silent_rules+set}" = set; then :
3007   enableval=$enable_silent_rules;
3008 fi
3009
3010 case $enable_silent_rules in # (((
3011   yes) AM_DEFAULT_VERBOSITY=0;;
3012    no) AM_DEFAULT_VERBOSITY=1;;
3013     *) AM_DEFAULT_VERBOSITY=0;;
3014 esac
3015 am_make=${MAKE-make}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3017 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3018 if ${am_cv_make_support_nested_variables+:} false; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   if $as_echo 'TRUE=$(BAR$(V))
3022 BAR0=false
3023 BAR1=true
3024 V=1
3025 am__doit:
3026         @$(TRUE)
3027 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3028   am_cv_make_support_nested_variables=yes
3029 else
3030   am_cv_make_support_nested_variables=no
3031 fi
3032 fi
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3034 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3035 if test $am_cv_make_support_nested_variables = yes; then
3036     AM_V='$(V)'
3037   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3038 else
3039   AM_V=$AM_DEFAULT_VERBOSITY
3040   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3041 fi
3042 AM_BACKSLASH='\'
3043
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3046 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3047     # Check whether --enable-maintainer-mode was given.
3048 if test "${enable_maintainer_mode+set}" = set; then :
3049   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3050 else
3051   USE_MAINTAINER_MODE=yes
3052 fi
3053
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3055 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3056    if test $USE_MAINTAINER_MODE = yes; then
3057   MAINTAINER_MODE_TRUE=
3058   MAINTAINER_MODE_FALSE='#'
3059 else
3060   MAINTAINER_MODE_TRUE='#'
3061   MAINTAINER_MODE_FALSE=
3062 fi
3063
3064   MAINT=$MAINTAINER_MODE_TRUE
3065
3066
3067
3068
3069 case `pwd` in
3070   *\ * | *\     *)
3071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3072 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3073 esac
3074
3075
3076
3077 macro_version='2.4.2'
3078 macro_revision='1.3337'
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092 ltmain="$ac_aux_dir/ltmain.sh"
3093
3094 # Make sure we can run config.sub.
3095 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3096   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3097
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3099 $as_echo_n "checking build system type... " >&6; }
3100 if ${ac_cv_build+:} false; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   ac_build_alias=$build_alias
3104 test "x$ac_build_alias" = x &&
3105   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3106 test "x$ac_build_alias" = x &&
3107   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3108 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3109   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3110
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3113 $as_echo "$ac_cv_build" >&6; }
3114 case $ac_cv_build in
3115 *-*-*) ;;
3116 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3117 esac
3118 build=$ac_cv_build
3119 ac_save_IFS=$IFS; IFS='-'
3120 set x $ac_cv_build
3121 shift
3122 build_cpu=$1
3123 build_vendor=$2
3124 shift; shift
3125 # Remember, the first character of IFS is used to create $*,
3126 # except with old shells:
3127 build_os=$*
3128 IFS=$ac_save_IFS
3129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3130
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3133 $as_echo_n "checking host system type... " >&6; }
3134 if ${ac_cv_host+:} false; then :
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test "x$host_alias" = x; then
3138   ac_cv_host=$ac_cv_build
3139 else
3140   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3141     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3142 fi
3143
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3146 $as_echo "$ac_cv_host" >&6; }
3147 case $ac_cv_host in
3148 *-*-*) ;;
3149 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3150 esac
3151 host=$ac_cv_host
3152 ac_save_IFS=$IFS; IFS='-'
3153 set x $ac_cv_host
3154 shift
3155 host_cpu=$1
3156 host_vendor=$2
3157 shift; shift
3158 # Remember, the first character of IFS is used to create $*,
3159 # except with old shells:
3160 host_os=$*
3161 IFS=$ac_save_IFS
3162 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3163
3164
3165 # Backslashify metacharacters that are still active within
3166 # double-quoted strings.
3167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3168
3169 # Same as above, but do not quote variable references.
3170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3171
3172 # Sed substitution to delay expansion of an escaped shell variable in a
3173 # double_quote_subst'ed string.
3174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3175
3176 # Sed substitution to delay expansion of an escaped single quote.
3177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3178
3179 # Sed substitution to avoid accidental globbing in evaled expressions
3180 no_glob_subst='s/\*/\\\*/g'
3181
3182 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3187 $as_echo_n "checking how to print strings... " >&6; }
3188 # Test print first, because it will be a builtin if present.
3189 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3190    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3191   ECHO='print -r --'
3192 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3193   ECHO='printf %s\n'
3194 else
3195   # Use this function as a fallback that always works.
3196   func_fallback_echo ()
3197   {
3198     eval 'cat <<_LTECHO_EOF
3199 $1
3200 _LTECHO_EOF'
3201   }
3202   ECHO='func_fallback_echo'
3203 fi
3204
3205 # func_echo_all arg...
3206 # Invoke $ECHO with all args, space-separated.
3207 func_echo_all ()
3208 {
3209     $ECHO ""
3210 }
3211
3212 case "$ECHO" in
3213   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3214 $as_echo "printf" >&6; } ;;
3215   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3216 $as_echo "print -r" >&6; } ;;
3217   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3218 $as_echo "cat" >&6; } ;;
3219 esac
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234 DEPDIR="${am__leading_dot}deps"
3235
3236 ac_config_commands="$ac_config_commands depfiles"
3237
3238
3239 am_make=${MAKE-make}
3240 cat > confinc << 'END'
3241 am__doit:
3242         @echo this is the am__doit target
3243 .PHONY: am__doit
3244 END
3245 # If we don't find an include directive, just comment out the code.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3247 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3248 am__include="#"
3249 am__quote=
3250 _am_result=none
3251 # First try GNU make style include.
3252 echo "include confinc" > confmf
3253 # Ignore all kinds of additional output from 'make'.
3254 case `$am_make -s -f confmf 2> /dev/null` in #(
3255 *the\ am__doit\ target*)
3256   am__include=include
3257   am__quote=
3258   _am_result=GNU
3259   ;;
3260 esac
3261 # Now try BSD make style include.
3262 if test "$am__include" = "#"; then
3263    echo '.include "confinc"' > confmf
3264    case `$am_make -s -f confmf 2> /dev/null` in #(
3265    *the\ am__doit\ target*)
3266      am__include=.include
3267      am__quote="\""
3268      _am_result=BSD
3269      ;;
3270    esac
3271 fi
3272
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3275 $as_echo "$_am_result" >&6; }
3276 rm -f confinc confmf
3277
3278 # Check whether --enable-dependency-tracking was given.
3279 if test "${enable_dependency_tracking+set}" = set; then :
3280   enableval=$enable_dependency_tracking;
3281 fi
3282
3283 if test "x$enable_dependency_tracking" != xno; then
3284   am_depcomp="$ac_aux_dir/depcomp"
3285   AMDEPBACKSLASH='\'
3286   am__nodep='_no'
3287 fi
3288  if test "x$enable_dependency_tracking" != xno; then
3289   AMDEP_TRUE=
3290   AMDEP_FALSE='#'
3291 else
3292   AMDEP_TRUE='#'
3293   AMDEP_FALSE=
3294 fi
3295
3296
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$CC"; then
3311   ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     for ac_exec_ext in '' $ac_executable_extensions; do
3319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325   done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340 fi
3341 if test -z "$ac_cv_prog_CC"; then
3342   ac_ct_CC=$CC
3343   # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$ac_ct_CC"; then
3351   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_ac_ct_CC="gcc"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379   if test "x$ac_ct_CC" = x; then
3380     CC=""
3381   else
3382     case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388     CC=$ac_ct_CC
3389   fi
3390 else
3391   CC="$ac_cv_prog_CC"
3392 fi
3393
3394 if test -z "$CC"; then
3395           if test -n "$ac_tool_prefix"; then
3396     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$CC"; then
3404   ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_prog_CC="${ac_tool_prefix}cc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433   fi
3434 fi
3435 if test -z "$CC"; then
3436   # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446   ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455        ac_prog_rejected=yes
3456        continue
3457      fi
3458     ac_cv_prog_CC="cc"
3459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463   done
3464 IFS=$as_save_IFS
3465
3466 if test $ac_prog_rejected = yes; then
3467   # We found a bogon in the path, so make sure we never use it.
3468   set dummy $ac_cv_prog_CC
3469   shift
3470   if test $# != 0; then
3471     # We chose a different compiler from the bogus one.
3472     # However, it has the same basename, so the bogon will be chosen
3473     # first if we set CC to just the basename; use the full file name.
3474     shift
3475     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476   fi
3477 fi
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$CC"; then
3492   if test -n "$ac_tool_prefix"; then
3493   for ac_prog in cl.exe
3494   do
3495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532     test -n "$CC" && break
3533   done
3534 fi
3535 if test -z "$CC"; then
3536   ac_ct_CC=$CC
3537   for ac_prog in cl.exe
3538 do
3539   # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   if test -n "$ac_ct_CC"; then
3547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554     for ac_exec_ext in '' $ac_executable_extensions; do
3555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_ac_ct_CC="$ac_prog"
3557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561   done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576   test -n "$ac_ct_CC" && break
3577 done
3578
3579   if test "x$ac_ct_CC" = x; then
3580     CC=""
3581   else
3582     case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588     CC=$ac_ct_CC
3589   fi
3590 fi
3591
3592 fi
3593
3594
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5; }
3599
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 set X $ac_compile
3603 ac_compiler=$2
3604 for ac_option in --version -v -V -qversion; do
3605   { { ac_try="$ac_compiler $ac_option >&5"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613   ac_status=$?
3614   if test -s conftest.err; then
3615     sed '10a\
3616 ... rest of stderr output deleted ...
3617          10q' conftest.err >conftest.er1
3618     cat conftest.er1 >&5
3619   fi
3620   rm -f conftest.er1 conftest.err
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }
3623 done
3624
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 ac_clean_files_save=$ac_clean_files
3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638 # Try to create an executable without -o first, disregard a.out.
3639 # It will help us diagnose broken compilers, and finding out an intuition
3640 # of exeext.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642 $as_echo_n "checking whether the C compiler works... " >&6; }
3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644
3645 # The possible output files:
3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647
3648 ac_rmfiles=
3649 for ac_file in $ac_files
3650 do
3651   case $ac_file in
3652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654   esac
3655 done
3656 rm -f $ac_rmfiles
3657
3658 if { { ac_try="$ac_link_default"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665   (eval "$ac_link_default") 2>&5
3666   ac_status=$?
3667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668   test $ac_status = 0; }; then :
3669   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3672 # so that the user can short-circuit this test for compilers unknown to
3673 # Autoconf.
3674 for ac_file in $ac_files ''
3675 do
3676   test -f "$ac_file" || continue
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3679         ;;
3680     [ab].out )
3681         # We found the default executable, but exeext='' is most
3682         # certainly right.
3683         break;;
3684     *.* )
3685         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3686         then :; else
3687            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688         fi
3689         # We set ac_cv_exeext here because the later test for it is not
3690         # safe: cross compilers may not add the suffix if given an `-o'
3691         # argument, so we may need to know it at that point already.
3692         # Even if this section looks crufty: it has the advantage of
3693         # actually working.
3694         break;;
3695     * )
3696         break;;
3697   esac
3698 done
3699 test "$ac_cv_exeext" = no && ac_cv_exeext=
3700
3701 else
3702   ac_file=''
3703 fi
3704 if test -z "$ac_file"; then :
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error 77 "C compiler cannot create executables
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 else
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 ac_exeext=$ac_cv_exeext
3723
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725 ac_clean_files=$ac_clean_files_save
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727 $as_echo_n "checking for suffix of executables... " >&6; }
3728 if { { ac_try="$ac_link"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735   (eval "$ac_link") 2>&5
3736   ac_status=$?
3737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738   test $ac_status = 0; }; then :
3739   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3741 # work properly (i.e., refer to `conftest.exe'), while it won't with
3742 # `rm'.
3743 for ac_file in conftest.exe conftest conftest.*; do
3744   test -f "$ac_file" || continue
3745   case $ac_file in
3746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748           break;;
3749     * ) break;;
3750   esac
3751 done
3752 else
3753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details" "$LINENO" 5; }
3757 fi
3758 rm -f conftest conftest$ac_cv_exeext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760 $as_echo "$ac_cv_exeext" >&6; }
3761
3762 rm -f conftest.$ac_ext
3763 EXEEXT=$ac_cv_exeext
3764 ac_exeext=$EXEEXT
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767 #include <stdio.h>
3768 int
3769 main ()
3770 {
3771 FILE *f = fopen ("conftest.out", "w");
3772  return ferror (f) || fclose (f) != 0;
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 ac_clean_files="$ac_clean_files conftest.out"
3779 # Check that the compiler produces executables we can run.  If not, either
3780 # the compiler is broken, or we cross compile.
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782 $as_echo_n "checking whether we are cross compiling... " >&6; }
3783 if test "$cross_compiling" != yes; then
3784   { { ac_try="$ac_link"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791   (eval "$ac_link") 2>&5
3792   ac_status=$?
3793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794   test $ac_status = 0; }
3795   if { ac_try='./conftest$ac_cv_exeext'
3796   { { case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_try") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; }; then
3806     cross_compiling=no
3807   else
3808     if test "$cross_compiling" = maybe; then
3809         cross_compiling=yes
3810     else
3811         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details" "$LINENO" 5; }
3816     fi
3817   fi
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820 $as_echo "$cross_compiling" >&6; }
3821
3822 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if ${ac_cv_objext+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3842 case "(($ac_try" in
3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844   *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848   (eval "$ac_compile") 2>&5
3849   ac_status=$?
3850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851   test $ac_status = 0; }; then :
3852   for ac_file in conftest.o conftest.obj conftest.*; do
3853   test -f "$ac_file" || continue;
3854   case $ac_file in
3855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857        break;;
3858   esac
3859 done
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details" "$LINENO" 5; }
3868 fi
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$OBJEXT
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if ${ac_cv_c_compiler_gnu+:} false; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886 #ifndef __GNUC__
3887        choke me
3888 #endif
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_compiler_gnu=yes
3896 else
3897   ac_compiler_gnu=no
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3906   GCC=yes
3907 else
3908   GCC=
3909 fi
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if ${ac_cv_prog_cc_g+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   ac_save_c_werror_flag=$ac_c_werror_flag
3918    ac_c_werror_flag=yes
3919    ac_cv_prog_cc_g=no
3920    CFLAGS="-g"
3921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933   ac_cv_prog_cc_g=yes
3934 else
3935   CFLAGS=""
3936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948
3949 else
3950   ac_c_werror_flag=$ac_save_c_werror_flag
3951          CFLAGS="-g"
3952          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_g=yes
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971    ac_c_werror_flag=$ac_save_c_werror_flag
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976   CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978   if test "$GCC" = yes; then
3979     CFLAGS="-g -O2"
3980   else
3981     CFLAGS="-g"
3982   fi
3983 else
3984   if test "$GCC" = yes; then
3985     CFLAGS="-O2"
3986   else
3987     CFLAGS=
3988   fi
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if ${ac_cv_prog_cc_c89+:} false; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   ac_cv_prog_cc_c89=no
3996 ac_save_CC=$CC
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999 #include <stdarg.h>
4000 #include <stdio.h>
4001 struct stat;
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006      char **p;
4007      int i;
4008 {
4009   return p[i];
4010 }
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4012 {
4013   char *s;
4014   va_list v;
4015   va_start (v,p);
4016   s = g (p, va_arg (v,int));
4017   va_end (v);
4018   return s;
4019 }
4020
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4022    function prototypes and stuff, but not '\xHH' hex character constants.
4023    These don't provoke an error unfortunately, instead are silently treated
4024    as 'x'.  The following induces an error, until -std is added to get
4025    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4026    array size at least.  It's necessary to write '\x00'==0 to get something
4027    that's true only with -std.  */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031    inside strings and character constants.  */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4041 int
4042 main ()
4043 {
4044 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 do
4052   CC="$ac_save_CC $ac_arg"
4053   if ac_fn_c_try_compile "$LINENO"; then :
4054   ac_cv_prog_cc_c89=$ac_arg
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext
4057   test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4061
4062 fi
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4065   x)
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068   xno)
4069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4071   *)
4072     CC="$CC $ac_cv_prog_cc_c89"
4073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4077
4078 fi
4079
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4092 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4093 if ${am_cv_prog_cc_c_o+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107   # Make sure it works both with $CC and with simple cc.
4108   # Following AC_PROG_CC_C_O, we do the test twice because some
4109   # compilers refuse to overwrite an existing .o file with -o,
4110   # though they will create one.
4111   am_cv_prog_cc_c_o=yes
4112   for am_i in 1 2; do
4113     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4114    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4115    ac_status=$?
4116    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117    (exit $ac_status); } \
4118          && test -f conftest2.$ac_objext; then
4119       : OK
4120     else
4121       am_cv_prog_cc_c_o=no
4122       break
4123     fi
4124   done
4125   rm -f core conftest*
4126   unset am_i
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4129 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4130 if test "$am_cv_prog_cc_c_o" != yes; then
4131    # Losing compiler, so override with the script.
4132    # FIXME: It is wrong to rewrite CC.
4133    # But if we don't then we get into trouble of one sort or another.
4134    # A longer-term fix would be to have automake use am__CC in this case,
4135    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4136    CC="$am_aux_dir/compile $CC"
4137 fi
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145 depcc="$CC"   am_compiler_list=
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4148 $as_echo_n "checking dependency style of $depcc... " >&6; }
4149 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4153   # We make a subdir and do the tests there.  Otherwise we can end up
4154   # making bogus files that we don't know about and never remove.  For
4155   # instance it was reported that on HP-UX the gcc test will end up
4156   # making a dummy file named 'D' -- because '-MD' means "put the output
4157   # in D".
4158   rm -rf conftest.dir
4159   mkdir conftest.dir
4160   # Copy depcomp to subdir because otherwise we won't find it if we're
4161   # using a relative directory.
4162   cp "$am_depcomp" conftest.dir
4163   cd conftest.dir
4164   # We will build objects and dependencies in a subdirectory because
4165   # it helps to detect inapplicable dependency modes.  For instance
4166   # both Tru64's cc and ICC support -MD to output dependencies as a
4167   # side effect of compilation, but ICC will put the dependencies in
4168   # the current directory while Tru64 will put them in the object
4169   # directory.
4170   mkdir sub
4171
4172   am_cv_CC_dependencies_compiler_type=none
4173   if test "$am_compiler_list" = ""; then
4174      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4175   fi
4176   am__universal=false
4177   case " $depcc " in #(
4178      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4179      esac
4180
4181   for depmode in $am_compiler_list; do
4182     # Setup a source with many dependencies, because some compilers
4183     # like to wrap large dependency lists on column 80 (with \), and
4184     # we should not choose a depcomp mode which is confused by this.
4185     #
4186     # We need to recreate these files for each test, as the compiler may
4187     # overwrite some of them when testing with obscure command lines.
4188     # This happens at least with the AIX C compiler.
4189     : > sub/conftest.c
4190     for i in 1 2 3 4 5 6; do
4191       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4192       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4193       # Solaris 10 /bin/sh.
4194       echo '/* dummy */' > sub/conftst$i.h
4195     done
4196     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197
4198     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4199     # mode.  It turns out that the SunPro C++ compiler does not properly
4200     # handle '-M -o', and we need to detect this.  Also, some Intel
4201     # versions had trouble with output in subdirs.
4202     am__obj=sub/conftest.${OBJEXT-o}
4203     am__minus_obj="-o $am__obj"
4204     case $depmode in
4205     gcc)
4206       # This depmode causes a compiler race in universal mode.
4207       test "$am__universal" = false || continue
4208       ;;
4209     nosideeffect)
4210       # After this tag, mechanisms are not by side-effect, so they'll
4211       # only be used when explicitly requested.
4212       if test "x$enable_dependency_tracking" = xyes; then
4213         continue
4214       else
4215         break
4216       fi
4217       ;;
4218     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4219       # This compiler won't grok '-c -o', but also, the minuso test has
4220       # not run yet.  These depmodes are late enough in the game, and
4221       # so weak that their functioning should not be impacted.
4222       am__obj=conftest.${OBJEXT-o}
4223       am__minus_obj=
4224       ;;
4225     none) break ;;
4226     esac
4227     if depmode=$depmode \
4228        source=sub/conftest.c object=$am__obj \
4229        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4230        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4231          >/dev/null 2>conftest.err &&
4232        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4233        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4234        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4235        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4236       # icc doesn't choke on unknown options, it will just issue warnings
4237       # or remarks (even with -Werror).  So we grep stderr for any message
4238       # that says an option was ignored or not supported.
4239       # When given -MP, icc 7.0 and 7.1 complain thusly:
4240       #   icc: Command line warning: ignoring option '-M'; no argument required
4241       # The diagnosis changed in icc 8.0:
4242       #   icc: Command line remark: option '-MP' not supported
4243       if (grep 'ignoring option' conftest.err ||
4244           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4245         am_cv_CC_dependencies_compiler_type=$depmode
4246         break
4247       fi
4248     fi
4249   done
4250
4251   cd ..
4252   rm -rf conftest.dir
4253 else
4254   am_cv_CC_dependencies_compiler_type=none
4255 fi
4256
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4259 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4260 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4261
4262  if
4263   test "x$enable_dependency_tracking" != xno \
4264   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4265   am__fastdepCC_TRUE=
4266   am__fastdepCC_FALSE='#'
4267 else
4268   am__fastdepCC_TRUE='#'
4269   am__fastdepCC_FALSE=
4270 fi
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4274 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4275 if ${ac_cv_path_SED+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4279      for ac_i in 1 2 3 4 5 6 7; do
4280        ac_script="$ac_script$as_nl$ac_script"
4281      done
4282      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4283      { ac_script=; unset ac_script;}
4284      if test -z "$SED"; then
4285   ac_path_SED_found=false
4286   # Loop through the user's path and test for each of PROGNAME-LIST
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_prog in sed gsed; do
4293     for ac_exec_ext in '' $ac_executable_extensions; do
4294       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4295       as_fn_executable_p "$ac_path_SED" || continue
4296 # Check for GNU ac_path_SED and select it if it is found.
4297   # Check for GNU $ac_path_SED
4298 case `"$ac_path_SED" --version 2>&1` in
4299 *GNU*)
4300   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4301 *)
4302   ac_count=0
4303   $as_echo_n 0123456789 >"conftest.in"
4304   while :
4305   do
4306     cat "conftest.in" "conftest.in" >"conftest.tmp"
4307     mv "conftest.tmp" "conftest.in"
4308     cp "conftest.in" "conftest.nl"
4309     $as_echo '' >> "conftest.nl"
4310     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312     as_fn_arith $ac_count + 1 && ac_count=$as_val
4313     if test $ac_count -gt ${ac_path_SED_max-0}; then
4314       # Best one so far, save it but keep looking for a better one
4315       ac_cv_path_SED="$ac_path_SED"
4316       ac_path_SED_max=$ac_count
4317     fi
4318     # 10*(2^10) chars as input seems more than enough
4319     test $ac_count -gt 10 && break
4320   done
4321   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4323
4324       $ac_path_SED_found && break 3
4325     done
4326   done
4327   done
4328 IFS=$as_save_IFS
4329   if test -z "$ac_cv_path_SED"; then
4330     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4331   fi
4332 else
4333   ac_cv_path_SED=$SED
4334 fi
4335
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4338 $as_echo "$ac_cv_path_SED" >&6; }
4339  SED="$ac_cv_path_SED"
4340   rm -f conftest.sed
4341
4342 test -z "$SED" && SED=sed
4343 Xsed="$SED -e 1s/^X//"
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4356 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4357 if ${ac_cv_path_GREP+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -z "$GREP"; then
4361   ac_path_GREP_found=false
4362   # Loop through the user's path and test for each of PROGNAME-LIST
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_prog in grep ggrep; do
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4371       as_fn_executable_p "$ac_path_GREP" || continue
4372 # Check for GNU ac_path_GREP and select it if it is found.
4373   # Check for GNU $ac_path_GREP
4374 case `"$ac_path_GREP" --version 2>&1` in
4375 *GNU*)
4376   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4377 *)
4378   ac_count=0
4379   $as_echo_n 0123456789 >"conftest.in"
4380   while :
4381   do
4382     cat "conftest.in" "conftest.in" >"conftest.tmp"
4383     mv "conftest.tmp" "conftest.in"
4384     cp "conftest.in" "conftest.nl"
4385     $as_echo 'GREP' >> "conftest.nl"
4386     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388     as_fn_arith $ac_count + 1 && ac_count=$as_val
4389     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4390       # Best one so far, save it but keep looking for a better one
4391       ac_cv_path_GREP="$ac_path_GREP"
4392       ac_path_GREP_max=$ac_count
4393     fi
4394     # 10*(2^10) chars as input seems more than enough
4395     test $ac_count -gt 10 && break
4396   done
4397   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398 esac
4399
4400       $ac_path_GREP_found && break 3
4401     done
4402   done
4403   done
4404 IFS=$as_save_IFS
4405   if test -z "$ac_cv_path_GREP"; then
4406     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4407   fi
4408 else
4409   ac_cv_path_GREP=$GREP
4410 fi
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4414 $as_echo "$ac_cv_path_GREP" >&6; }
4415  GREP="$ac_cv_path_GREP"
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4419 $as_echo_n "checking for egrep... " >&6; }
4420 if ${ac_cv_path_EGREP+:} false; then :
4421   $as_echo_n "(cached) " >&6
4422 else
4423   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4424    then ac_cv_path_EGREP="$GREP -E"
4425    else
4426      if test -z "$EGREP"; then
4427   ac_path_EGREP_found=false
4428   # Loop through the user's path and test for each of PROGNAME-LIST
4429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434     for ac_prog in egrep; do
4435     for ac_exec_ext in '' $ac_executable_extensions; do
4436       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4437       as_fn_executable_p "$ac_path_EGREP" || continue
4438 # Check for GNU ac_path_EGREP and select it if it is found.
4439   # Check for GNU $ac_path_EGREP
4440 case `"$ac_path_EGREP" --version 2>&1` in
4441 *GNU*)
4442   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4443 *)
4444   ac_count=0
4445   $as_echo_n 0123456789 >"conftest.in"
4446   while :
4447   do
4448     cat "conftest.in" "conftest.in" >"conftest.tmp"
4449     mv "conftest.tmp" "conftest.in"
4450     cp "conftest.in" "conftest.nl"
4451     $as_echo 'EGREP' >> "conftest.nl"
4452     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4453     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4454     as_fn_arith $ac_count + 1 && ac_count=$as_val
4455     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4456       # Best one so far, save it but keep looking for a better one
4457       ac_cv_path_EGREP="$ac_path_EGREP"
4458       ac_path_EGREP_max=$ac_count
4459     fi
4460     # 10*(2^10) chars as input seems more than enough
4461     test $ac_count -gt 10 && break
4462   done
4463   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4464 esac
4465
4466       $ac_path_EGREP_found && break 3
4467     done
4468   done
4469   done
4470 IFS=$as_save_IFS
4471   if test -z "$ac_cv_path_EGREP"; then
4472     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4473   fi
4474 else
4475   ac_cv_path_EGREP=$EGREP
4476 fi
4477
4478    fi
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4481 $as_echo "$ac_cv_path_EGREP" >&6; }
4482  EGREP="$ac_cv_path_EGREP"
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4486 $as_echo_n "checking for fgrep... " >&6; }
4487 if ${ac_cv_path_FGREP+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4491    then ac_cv_path_FGREP="$GREP -F"
4492    else
4493      if test -z "$FGREP"; then
4494   ac_path_FGREP_found=false
4495   # Loop through the user's path and test for each of PROGNAME-LIST
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501     for ac_prog in fgrep; do
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4504       as_fn_executable_p "$ac_path_FGREP" || continue
4505 # Check for GNU ac_path_FGREP and select it if it is found.
4506   # Check for GNU $ac_path_FGREP
4507 case `"$ac_path_FGREP" --version 2>&1` in
4508 *GNU*)
4509   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4510 *)
4511   ac_count=0
4512   $as_echo_n 0123456789 >"conftest.in"
4513   while :
4514   do
4515     cat "conftest.in" "conftest.in" >"conftest.tmp"
4516     mv "conftest.tmp" "conftest.in"
4517     cp "conftest.in" "conftest.nl"
4518     $as_echo 'FGREP' >> "conftest.nl"
4519     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521     as_fn_arith $ac_count + 1 && ac_count=$as_val
4522     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4523       # Best one so far, save it but keep looking for a better one
4524       ac_cv_path_FGREP="$ac_path_FGREP"
4525       ac_path_FGREP_max=$ac_count
4526     fi
4527     # 10*(2^10) chars as input seems more than enough
4528     test $ac_count -gt 10 && break
4529   done
4530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533       $ac_path_FGREP_found && break 3
4534     done
4535   done
4536   done
4537 IFS=$as_save_IFS
4538   if test -z "$ac_cv_path_FGREP"; then
4539     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540   fi
4541 else
4542   ac_cv_path_FGREP=$FGREP
4543 fi
4544
4545    fi
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4548 $as_echo "$ac_cv_path_FGREP" >&6; }
4549  FGREP="$ac_cv_path_FGREP"
4550
4551
4552 test -z "$GREP" && GREP=grep
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572 # Check whether --with-gnu-ld was given.
4573 if test "${with_gnu_ld+set}" = set; then :
4574   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4575 else
4576   with_gnu_ld=no
4577 fi
4578
4579 ac_prog=ld
4580 if test "$GCC" = yes; then
4581   # Check if gcc -print-prog-name=ld gives a path.
4582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4583 $as_echo_n "checking for ld used by $CC... " >&6; }
4584   case $host in
4585   *-*-mingw*)
4586     # gcc leaves a trailing carriage return which upsets mingw
4587     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4588   *)
4589     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4590   esac
4591   case $ac_prog in
4592     # Accept absolute paths.
4593     [\\/]* | ?:[\\/]*)
4594       re_direlt='/[^/][^/]*/\.\./'
4595       # Canonicalize the pathname of ld
4596       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4597       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4598         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4599       done
4600       test -z "$LD" && LD="$ac_prog"
4601       ;;
4602   "")
4603     # If it fails, then pretend we aren't using GCC.
4604     ac_prog=ld
4605     ;;
4606   *)
4607     # If it is relative, then search for the first ld in PATH.
4608     with_gnu_ld=unknown
4609     ;;
4610   esac
4611 elif test "$with_gnu_ld" = yes; then
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4613 $as_echo_n "checking for GNU ld... " >&6; }
4614 else
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4616 $as_echo_n "checking for non-GNU ld... " >&6; }
4617 fi
4618 if ${lt_cv_path_LD+:} false; then :
4619   $as_echo_n "(cached) " >&6
4620 else
4621   if test -z "$LD"; then
4622   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4623   for ac_dir in $PATH; do
4624     IFS="$lt_save_ifs"
4625     test -z "$ac_dir" && ac_dir=.
4626     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4627       lt_cv_path_LD="$ac_dir/$ac_prog"
4628       # Check to see if the program is GNU ld.  I'd rather use --version,
4629       # but apparently some variants of GNU ld only accept -v.
4630       # Break only if it was the GNU/non-GNU ld that we prefer.
4631       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4632       *GNU* | *'with BFD'*)
4633         test "$with_gnu_ld" != no && break
4634         ;;
4635       *)
4636         test "$with_gnu_ld" != yes && break
4637         ;;
4638       esac
4639     fi
4640   done
4641   IFS="$lt_save_ifs"
4642 else
4643   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4644 fi
4645 fi
4646
4647 LD="$lt_cv_path_LD"
4648 if test -n "$LD"; then
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4650 $as_echo "$LD" >&6; }
4651 else
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4654 fi
4655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4658 if ${lt_cv_prog_gnu_ld+:} false; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4662 case `$LD -v 2>&1 </dev/null` in
4663 *GNU* | *'with BFD'*)
4664   lt_cv_prog_gnu_ld=yes
4665   ;;
4666 *)
4667   lt_cv_prog_gnu_ld=no
4668   ;;
4669 esac
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4673 with_gnu_ld=$lt_cv_prog_gnu_ld
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4684 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4685 if ${lt_cv_path_NM+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if test -n "$NM"; then
4689   # Let the user override the test.
4690   lt_cv_path_NM="$NM"
4691 else
4692   lt_nm_to_check="${ac_tool_prefix}nm"
4693   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4694     lt_nm_to_check="$lt_nm_to_check nm"
4695   fi
4696   for lt_tmp_nm in $lt_nm_to_check; do
4697     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4698     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4699       IFS="$lt_save_ifs"
4700       test -z "$ac_dir" && ac_dir=.
4701       tmp_nm="$ac_dir/$lt_tmp_nm"
4702       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4703         # Check to see if the nm accepts a BSD-compat flag.
4704         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4705         #   nm: unknown option "B" ignored
4706         # Tru64's nm complains that /dev/null is an invalid object file
4707         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4708         */dev/null* | *'Invalid file or object type'*)
4709           lt_cv_path_NM="$tmp_nm -B"
4710           break
4711           ;;
4712         *)
4713           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4714           */dev/null*)
4715             lt_cv_path_NM="$tmp_nm -p"
4716             break
4717             ;;
4718           *)
4719             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4720             continue # so that we can try to find one that supports BSD flags
4721             ;;
4722           esac
4723           ;;
4724         esac
4725       fi
4726     done
4727     IFS="$lt_save_ifs"
4728   done
4729   : ${lt_cv_path_NM=no}
4730 fi
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4733 $as_echo "$lt_cv_path_NM" >&6; }
4734 if test "$lt_cv_path_NM" != "no"; then
4735   NM="$lt_cv_path_NM"
4736 else
4737   # Didn't find any BSD compatible name lister, look for dumpbin.
4738   if test -n "$DUMPBIN"; then :
4739     # Let the user override the test.
4740   else
4741     if test -n "$ac_tool_prefix"; then
4742   for ac_prog in dumpbin "link -dump"
4743   do
4744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if ${ac_cv_prog_DUMPBIN+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   if test -n "$DUMPBIN"; then
4752   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_exec_ext in '' $ac_executable_extensions; do
4760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766   done
4767 IFS=$as_save_IFS
4768
4769 fi
4770 fi
4771 DUMPBIN=$ac_cv_prog_DUMPBIN
4772 if test -n "$DUMPBIN"; then
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4774 $as_echo "$DUMPBIN" >&6; }
4775 else
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780
4781     test -n "$DUMPBIN" && break
4782   done
4783 fi
4784 if test -z "$DUMPBIN"; then
4785   ac_ct_DUMPBIN=$DUMPBIN
4786   for ac_prog in dumpbin "link -dump"
4787 do
4788   # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 $as_echo_n "checking for $ac_word... " >&6; }
4792 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   if test -n "$ac_ct_DUMPBIN"; then
4796   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810   done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4816 if test -n "$ac_ct_DUMPBIN"; then
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4818 $as_echo "$ac_ct_DUMPBIN" >&6; }
4819 else
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823
4824
4825   test -n "$ac_ct_DUMPBIN" && break
4826 done
4827
4828   if test "x$ac_ct_DUMPBIN" = x; then
4829     DUMPBIN=":"
4830   else
4831     case $cross_compiling:$ac_tool_warned in
4832 yes:)
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835 ac_tool_warned=yes ;;
4836 esac
4837     DUMPBIN=$ac_ct_DUMPBIN
4838   fi
4839 fi
4840
4841     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4842     *COFF*)
4843       DUMPBIN="$DUMPBIN -symbols"
4844       ;;
4845     *)
4846       DUMPBIN=:
4847       ;;
4848     esac
4849   fi
4850
4851   if test "$DUMPBIN" != ":"; then
4852     NM="$DUMPBIN"
4853   fi
4854 fi
4855 test -z "$NM" && NM=nm
4856
4857
4858
4859
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4863 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4864 if ${lt_cv_nm_interface+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   lt_cv_nm_interface="BSD nm"
4868   echo "int some_variable = 0;" > conftest.$ac_ext
4869   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4870   (eval "$ac_compile" 2>conftest.err)
4871   cat conftest.err >&5
4872   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4873   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4874   cat conftest.err >&5
4875   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4876   cat conftest.out >&5
4877   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4878     lt_cv_nm_interface="MS dumpbin"
4879   fi
4880   rm -f conftest*
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4883 $as_echo "$lt_cv_nm_interface" >&6; }
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4886 $as_echo_n "checking whether ln -s works... " >&6; }
4887 LN_S=$as_ln_s
4888 if test "$LN_S" = "ln -s"; then
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4890 $as_echo "yes" >&6; }
4891 else
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4893 $as_echo "no, using $LN_S" >&6; }
4894 fi
4895
4896 # find the maximum length of command line arguments
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4898 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4899 if ${lt_cv_sys_max_cmd_len+:} false; then :
4900   $as_echo_n "(cached) " >&6
4901 else
4902     i=0
4903   teststring="ABCD"
4904
4905   case $build_os in
4906   msdosdjgpp*)
4907     # On DJGPP, this test can blow up pretty badly due to problems in libc
4908     # (any single argument exceeding 2000 bytes causes a buffer overrun
4909     # during glob expansion).  Even if it were fixed, the result of this
4910     # check would be larger than it should be.
4911     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4912     ;;
4913
4914   gnu*)
4915     # Under GNU Hurd, this test is not required because there is
4916     # no limit to the length of command line arguments.
4917     # Libtool will interpret -1 as no limit whatsoever
4918     lt_cv_sys_max_cmd_len=-1;
4919     ;;
4920
4921   cygwin* | mingw* | cegcc*)
4922     # On Win9x/ME, this test blows up -- it succeeds, but takes
4923     # about 5 minutes as the teststring grows exponentially.
4924     # Worse, since 9x/ME are not pre-emptively multitasking,
4925     # you end up with a "frozen" computer, even though with patience
4926     # the test eventually succeeds (with a max line length of 256k).
4927     # Instead, let's just punt: use the minimum linelength reported by
4928     # all of the supported platforms: 8192 (on NT/2K/XP).
4929     lt_cv_sys_max_cmd_len=8192;
4930     ;;
4931
4932   mint*)
4933     # On MiNT this can take a long time and run out of memory.
4934     lt_cv_sys_max_cmd_len=8192;
4935     ;;
4936
4937   amigaos*)
4938     # On AmigaOS with pdksh, this test takes hours, literally.
4939     # So we just punt and use a minimum line length of 8192.
4940     lt_cv_sys_max_cmd_len=8192;
4941     ;;
4942
4943   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4944     # This has been around since 386BSD, at least.  Likely further.
4945     if test -x /sbin/sysctl; then
4946       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4947     elif test -x /usr/sbin/sysctl; then
4948       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4949     else
4950       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4951     fi
4952     # And add a safety zone
4953     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955     ;;
4956
4957   interix*)
4958     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4959     lt_cv_sys_max_cmd_len=196608
4960     ;;
4961
4962   os2*)
4963     # The test takes a long time on OS/2.
4964     lt_cv_sys_max_cmd_len=8192
4965     ;;
4966
4967   osf*)
4968     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4969     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4970     # nice to cause kernel panics so lets avoid the loop below.
4971     # First set a reasonable default.
4972     lt_cv_sys_max_cmd_len=16384
4973     #
4974     if test -x /sbin/sysconfig; then
4975       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4976         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4977       esac
4978     fi
4979     ;;
4980   sco3.2v5*)
4981     lt_cv_sys_max_cmd_len=102400
4982     ;;
4983   sysv5* | sco5v6* | sysv4.2uw2*)
4984     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4985     if test -n "$kargmax"; then
4986       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4987     else
4988       lt_cv_sys_max_cmd_len=32768
4989     fi
4990     ;;
4991   *)
4992     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4993     if test -n "$lt_cv_sys_max_cmd_len" && \
4994         test undefined != "$lt_cv_sys_max_cmd_len"; then
4995       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4996       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4997     else
4998       # Make teststring a little bigger before we do anything with it.
4999       # a 1K string should be a reasonable start.
5000       for i in 1 2 3 4 5 6 7 8 ; do
5001         teststring=$teststring$teststring
5002       done
5003       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5004       # If test is not a shell built-in, we'll probably end up computing a
5005       # maximum length that is only half of the actual maximum length, but
5006       # we can't tell.
5007       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5008                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5009               test $i != 17 # 1/2 MB should be enough
5010       do
5011         i=`expr $i + 1`
5012         teststring=$teststring$teststring
5013       done
5014       # Only check the string length outside the loop.
5015       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5016       teststring=
5017       # Add a significant safety factor because C++ compilers can tack on
5018       # massive amounts of additional arguments before passing them to the
5019       # linker.  It appears as though 1/2 is a usable value.
5020       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5021     fi
5022     ;;
5023   esac
5024
5025 fi
5026
5027 if test -n $lt_cv_sys_max_cmd_len ; then
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5030 else
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5032 $as_echo "none" >&6; }
5033 fi
5034 max_cmd_len=$lt_cv_sys_max_cmd_len
5035
5036
5037
5038
5039
5040
5041 : ${CP="cp -f"}
5042 : ${MV="mv -f"}
5043 : ${RM="rm -f"}
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5046 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5047 # Try some XSI features
5048 xsi_shell=no
5049 ( _lt_dummy="a/b/c"
5050   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5051       = c,a/b,b/c, \
5052     && eval 'test $(( 1 + 1 )) -eq 2 \
5053     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5054   && xsi_shell=yes
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5056 $as_echo "$xsi_shell" >&6; }
5057
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5060 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5061 lt_shell_append=no
5062 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5063     >/dev/null 2>&1 \
5064   && lt_shell_append=yes
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5066 $as_echo "$lt_shell_append" >&6; }
5067
5068
5069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5070   lt_unset=unset
5071 else
5072   lt_unset=false
5073 fi
5074
5075
5076
5077
5078
5079 # test EBCDIC or ASCII
5080 case `echo X|tr X '\101'` in
5081  A) # ASCII based system
5082     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5083   lt_SP2NL='tr \040 \012'
5084   lt_NL2SP='tr \015\012 \040\040'
5085   ;;
5086  *) # EBCDIC based system
5087   lt_SP2NL='tr \100 \n'
5088   lt_NL2SP='tr \r\n \100\100'
5089   ;;
5090 esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5101 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5102 if ${lt_cv_to_host_file_cmd+:} false; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   case $host in
5106   *-*-mingw* )
5107     case $build in
5108       *-*-mingw* ) # actually msys
5109         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5110         ;;
5111       *-*-cygwin* )
5112         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5113         ;;
5114       * ) # otherwise, assume *nix
5115         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5116         ;;
5117     esac
5118     ;;
5119   *-*-cygwin* )
5120     case $build in
5121       *-*-mingw* ) # actually msys
5122         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5123         ;;
5124       *-*-cygwin* )
5125         lt_cv_to_host_file_cmd=func_convert_file_noop
5126         ;;
5127       * ) # otherwise, assume *nix
5128         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5129         ;;
5130     esac
5131     ;;
5132   * ) # unhandled hosts (and "normal" native builds)
5133     lt_cv_to_host_file_cmd=func_convert_file_noop
5134     ;;
5135 esac
5136
5137 fi
5138
5139 to_host_file_cmd=$lt_cv_to_host_file_cmd
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5141 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5142
5143
5144
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5148 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5149 if ${lt_cv_to_tool_file_cmd+:} false; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   #assume ordinary cross tools, or native build.
5153 lt_cv_to_tool_file_cmd=func_convert_file_noop
5154 case $host in
5155   *-*-mingw* )
5156     case $build in
5157       *-*-mingw* ) # actually msys
5158         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5159         ;;
5160     esac
5161     ;;
5162 esac
5163
5164 fi
5165
5166 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5168 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5169
5170
5171
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5175 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5176 if ${lt_cv_ld_reload_flag+:} false; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   lt_cv_ld_reload_flag='-r'
5180 fi
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5182 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5183 reload_flag=$lt_cv_ld_reload_flag
5184 case $reload_flag in
5185 "" | " "*) ;;
5186 *) reload_flag=" $reload_flag" ;;
5187 esac
5188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5189 case $host_os in
5190   cygwin* | mingw* | pw32* | cegcc*)
5191     if test "$GCC" != yes; then
5192       reload_cmds=false
5193     fi
5194     ;;
5195   darwin*)
5196     if test "$GCC" = yes; then
5197       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5198     else
5199       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5200     fi
5201     ;;
5202 esac
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 if test -n "$ac_tool_prefix"; then
5213   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if ${ac_cv_prog_OBJDUMP+:} false; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if test -n "$OBJDUMP"; then
5221   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228     for ac_exec_ext in '' $ac_executable_extensions; do
5229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235   done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 OBJDUMP=$ac_cv_prog_OBJDUMP
5241 if test -n "$OBJDUMP"; then
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5243 $as_echo "$OBJDUMP" >&6; }
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250 fi
5251 if test -z "$ac_cv_prog_OBJDUMP"; then
5252   ac_ct_OBJDUMP=$OBJDUMP
5253   # Extract the first word of "objdump", so it can be a program name with args.
5254 set dummy objdump; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if test -n "$ac_ct_OBJDUMP"; then
5261   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5281 if test -n "$ac_ct_OBJDUMP"; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5283 $as_echo "$ac_ct_OBJDUMP" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289   if test "x$ac_ct_OBJDUMP" = x; then
5290     OBJDUMP="false"
5291   else
5292     case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298     OBJDUMP=$ac_ct_OBJDUMP
5299   fi
5300 else
5301   OBJDUMP="$ac_cv_prog_OBJDUMP"
5302 fi
5303
5304 test -z "$OBJDUMP" && OBJDUMP=objdump
5305
5306
5307
5308
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5312 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5313 if ${lt_cv_deplibs_check_method+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   lt_cv_file_magic_cmd='$MAGIC_CMD'
5317 lt_cv_file_magic_test_file=
5318 lt_cv_deplibs_check_method='unknown'
5319 # Need to set the preceding variable on all platforms that support
5320 # interlibrary dependencies.
5321 # 'none' -- dependencies not supported.
5322 # `unknown' -- same as none, but documents that we really don't know.
5323 # 'pass_all' -- all dependencies passed with no checks.
5324 # 'test_compile' -- check by making test program.
5325 # 'file_magic [[regex]]' -- check by looking for files in library path
5326 # which responds to the $file_magic_cmd with a given extended regex.
5327 # If you have `file' or equivalent on your system and you're not sure
5328 # whether `pass_all' will *always* work, you probably want this one.
5329
5330 case $host_os in
5331 aix[4-9]*)
5332   lt_cv_deplibs_check_method=pass_all
5333   ;;
5334
5335 beos*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 bsdi[45]*)
5340   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5341   lt_cv_file_magic_cmd='/usr/bin/file -L'
5342   lt_cv_file_magic_test_file=/shlib/libc.so
5343   ;;
5344
5345 cygwin*)
5346   # func_win32_libid is a shell function defined in ltmain.sh
5347   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5348   lt_cv_file_magic_cmd='func_win32_libid'
5349   ;;
5350
5351 mingw* | pw32*)
5352   # Base MSYS/MinGW do not provide the 'file' command needed by
5353   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5354   # unless we find 'file', for example because we are cross-compiling.
5355   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5356   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5357     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5358     lt_cv_file_magic_cmd='func_win32_libid'
5359   else
5360     # Keep this pattern in sync with the one in func_win32_libid.
5361     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5362     lt_cv_file_magic_cmd='$OBJDUMP -f'
5363   fi
5364   ;;
5365
5366 cegcc*)
5367   # use the weaker test based on 'objdump'. See mingw*.
5368   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5369   lt_cv_file_magic_cmd='$OBJDUMP -f'
5370   ;;
5371
5372 darwin* | rhapsody*)
5373   lt_cv_deplibs_check_method=pass_all
5374   ;;
5375
5376 freebsd* | dragonfly*)
5377   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5378     case $host_cpu in
5379     i*86 )
5380       # Not sure whether the presence of OpenBSD here was a mistake.
5381       # Let's accept both of them until this is cleared up.
5382       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5383       lt_cv_file_magic_cmd=/usr/bin/file
5384       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5385       ;;
5386     esac
5387   else
5388     lt_cv_deplibs_check_method=pass_all
5389   fi
5390   ;;
5391
5392 haiku*)
5393   lt_cv_deplibs_check_method=pass_all
5394   ;;
5395
5396 hpux10.20* | hpux11*)
5397   lt_cv_file_magic_cmd=/usr/bin/file
5398   case $host_cpu in
5399   ia64*)
5400     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5401     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5402     ;;
5403   hppa*64*)
5404     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]'
5405     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5406     ;;
5407   *)
5408     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5409     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5410     ;;
5411   esac
5412   ;;
5413
5414 interix[3-9]*)
5415   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5416   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5417   ;;
5418
5419 irix5* | irix6* | nonstopux*)
5420   case $LD in
5421   *-32|*"-32 ") libmagic=32-bit;;
5422   *-n32|*"-n32 ") libmagic=N32;;
5423   *-64|*"-64 ") libmagic=64-bit;;
5424   *) libmagic=never-match;;
5425   esac
5426   lt_cv_deplibs_check_method=pass_all
5427   ;;
5428
5429 # This must be glibc/ELF.
5430 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5431   lt_cv_deplibs_check_method=pass_all
5432   ;;
5433
5434 netbsd* | netbsdelf*-gnu)
5435   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5437   else
5438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5439   fi
5440   ;;
5441
5442 newos6*)
5443   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5444   lt_cv_file_magic_cmd=/usr/bin/file
5445   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5446   ;;
5447
5448 *nto* | *qnx*)
5449   lt_cv_deplibs_check_method=pass_all
5450   ;;
5451
5452 openbsd*)
5453   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5455   else
5456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5457   fi
5458   ;;
5459
5460 osf3* | osf4* | osf5*)
5461   lt_cv_deplibs_check_method=pass_all
5462   ;;
5463
5464 rdos*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 solaris*)
5469   lt_cv_deplibs_check_method=pass_all
5470   ;;
5471
5472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5473   lt_cv_deplibs_check_method=pass_all
5474   ;;
5475
5476 sysv4 | sysv4.3*)
5477   case $host_vendor in
5478   motorola)
5479     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]'
5480     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5481     ;;
5482   ncr)
5483     lt_cv_deplibs_check_method=pass_all
5484     ;;
5485   sequent)
5486     lt_cv_file_magic_cmd='/bin/file'
5487     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5488     ;;
5489   sni)
5490     lt_cv_file_magic_cmd='/bin/file'
5491     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5492     lt_cv_file_magic_test_file=/lib/libc.so
5493     ;;
5494   siemens)
5495     lt_cv_deplibs_check_method=pass_all
5496     ;;
5497   pc)
5498     lt_cv_deplibs_check_method=pass_all
5499     ;;
5500   esac
5501   ;;
5502
5503 tpf*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506 esac
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5510 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5511
5512 file_magic_glob=
5513 want_nocaseglob=no
5514 if test "$build" = "$host"; then
5515   case $host_os in
5516   mingw* | pw32*)
5517     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5518       want_nocaseglob=yes
5519     else
5520       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5521     fi
5522     ;;
5523   esac
5524 fi
5525
5526 file_magic_cmd=$lt_cv_file_magic_cmd
5527 deplibs_check_method=$lt_cv_deplibs_check_method
5528 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 if test -n "$ac_tool_prefix"; then
5552   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_DLLTOOL+:} false; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   if test -n "$DLLTOOL"; then
5560   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567     for ac_exec_ext in '' $ac_executable_extensions; do
5568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574   done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 DLLTOOL=$ac_cv_prog_DLLTOOL
5580 if test -n "$DLLTOOL"; then
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5582 $as_echo "$DLLTOOL" >&6; }
5583 else
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 fi
5590 if test -z "$ac_cv_prog_DLLTOOL"; then
5591   ac_ct_DLLTOOL=$DLLTOOL
5592   # Extract the first word of "dlltool", so it can be a program name with args.
5593 set dummy dlltool; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5597   $as_echo_n "(cached) " >&6
5598 else
5599   if test -n "$ac_ct_DLLTOOL"; then
5600   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607     for ac_exec_ext in '' $ac_executable_extensions; do
5608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614   done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5620 if test -n "$ac_ct_DLLTOOL"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5622 $as_echo "$ac_ct_DLLTOOL" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628   if test "x$ac_ct_DLLTOOL" = x; then
5629     DLLTOOL="false"
5630   else
5631     case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637     DLLTOOL=$ac_ct_DLLTOOL
5638   fi
5639 else
5640   DLLTOOL="$ac_cv_prog_DLLTOOL"
5641 fi
5642
5643 test -z "$DLLTOOL" && DLLTOOL=dlltool
5644
5645
5646
5647
5648
5649
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5652 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5653 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5654   $as_echo_n "(cached) " >&6
5655 else
5656   lt_cv_sharedlib_from_linklib_cmd='unknown'
5657
5658 case $host_os in
5659 cygwin* | mingw* | pw32* | cegcc*)
5660   # two different shell functions defined in ltmain.sh
5661   # decide which to use based on capabilities of $DLLTOOL
5662   case `$DLLTOOL --help 2>&1` in
5663   *--identify-strict*)
5664     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5665     ;;
5666   *)
5667     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5668     ;;
5669   esac
5670   ;;
5671 *)
5672   # fallback: assume linklib IS sharedlib
5673   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5674   ;;
5675 esac
5676
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5679 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5680 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5681 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5682
5683
5684
5685
5686
5687
5688
5689
5690 if test -n "$ac_tool_prefix"; then
5691   for ac_prog in ar
5692   do
5693     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_AR+:} false; then :
5698   $as_echo_n "(cached) " >&6
5699 else
5700   if test -n "$AR"; then
5701   ac_cv_prog_AR="$AR" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708     for ac_exec_ext in '' $ac_executable_extensions; do
5709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715   done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 AR=$ac_cv_prog_AR
5721 if test -n "$AR"; then
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5723 $as_echo "$AR" >&6; }
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730     test -n "$AR" && break
5731   done
5732 fi
5733 if test -z "$AR"; then
5734   ac_ct_AR=$AR
5735   for ac_prog in ar
5736 do
5737   # Extract the first word of "$ac_prog", so it can be a program name with args.
5738 set dummy $ac_prog; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -n "$ac_ct_AR"; then
5745   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754     ac_cv_prog_ac_ct_AR="$ac_prog"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759   done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5765 if test -n "$ac_ct_AR"; then
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5767 $as_echo "$ac_ct_AR" >&6; }
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773
5774   test -n "$ac_ct_AR" && break
5775 done
5776
5777   if test "x$ac_ct_AR" = x; then
5778     AR="false"
5779   else
5780     case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786     AR=$ac_ct_AR
5787   fi
5788 fi
5789
5790 : ${AR=ar}
5791 : ${AR_FLAGS=cru}
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5804 $as_echo_n "checking for archiver @FILE support... " >&6; }
5805 if ${lt_cv_ar_at_file+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   lt_cv_ar_at_file=no
5809    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h.  */
5811
5812 int
5813 main ()
5814 {
5815
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"; then :
5821   echo conftest.$ac_objext > conftest.lst
5822       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5823       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5824   (eval $lt_ar_try) 2>&5
5825   ac_status=$?
5826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827   test $ac_status = 0; }
5828       if test "$ac_status" -eq 0; then
5829         # Ensure the archiver fails upon bogus file names.
5830         rm -f conftest.$ac_objext libconftest.a
5831         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5832   (eval $lt_ar_try) 2>&5
5833   ac_status=$?
5834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835   test $ac_status = 0; }
5836         if test "$ac_status" -ne 0; then
5837           lt_cv_ar_at_file=@
5838         fi
5839       fi
5840       rm -f conftest.* libconftest.a
5841
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5847 $as_echo "$lt_cv_ar_at_file" >&6; }
5848
5849 if test "x$lt_cv_ar_at_file" = xno; then
5850   archiver_list_spec=
5851 else
5852   archiver_list_spec=$lt_cv_ar_at_file
5853 fi
5854
5855
5856
5857
5858
5859
5860
5861 if test -n "$ac_tool_prefix"; then
5862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}strip; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_STRIP+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$STRIP"; then
5870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 STRIP=$ac_cv_prog_STRIP
5890 if test -n "$STRIP"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5892 $as_echo "$STRIP" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 fi
5900 if test -z "$ac_cv_prog_STRIP"; then
5901   ac_ct_STRIP=$STRIP
5902   # Extract the first word of "strip", so it can be a program name with args.
5903 set dummy strip; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   if test -n "$ac_ct_STRIP"; then
5910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917     for ac_exec_ext in '' $ac_executable_extensions; do
5918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_ac_ct_STRIP="strip"
5920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924   done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5930 if test -n "$ac_ct_STRIP"; then
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5932 $as_echo "$ac_ct_STRIP" >&6; }
5933 else
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938   if test "x$ac_ct_STRIP" = x; then
5939     STRIP=":"
5940   else
5941     case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947     STRIP=$ac_ct_STRIP
5948   fi
5949 else
5950   STRIP="$ac_cv_prog_STRIP"
5951 fi
5952
5953 test -z "$STRIP" && STRIP=:
5954
5955
5956
5957
5958
5959
5960 if test -n "$ac_tool_prefix"; then
5961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if ${ac_cv_prog_RANLIB+:} false; then :
5966   $as_echo_n "(cached) " >&6
5967 else
5968   if test -n "$RANLIB"; then
5969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976     for ac_exec_ext in '' $ac_executable_extensions; do
5977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983   done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 RANLIB=$ac_cv_prog_RANLIB
5989 if test -n "$RANLIB"; then
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5991 $as_echo "$RANLIB" >&6; }
5992 else
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996
5997
5998 fi
5999 if test -z "$ac_cv_prog_RANLIB"; then
6000   ac_ct_RANLIB=$RANLIB
6001   # Extract the first word of "ranlib", so it can be a program name with args.
6002 set dummy ranlib; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6006   $as_echo_n "(cached) " >&6
6007 else
6008   if test -n "$ac_ct_RANLIB"; then
6009   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_prog_ac_ct_RANLIB="ranlib"
6019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023   done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6029 if test -n "$ac_ct_RANLIB"; then
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6031 $as_echo "$ac_ct_RANLIB" >&6; }
6032 else
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036
6037   if test "x$ac_ct_RANLIB" = x; then
6038     RANLIB=":"
6039   else
6040     case $cross_compiling:$ac_tool_warned in
6041 yes:)
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6044 ac_tool_warned=yes ;;
6045 esac
6046     RANLIB=$ac_ct_RANLIB
6047   fi
6048 else
6049   RANLIB="$ac_cv_prog_RANLIB"
6050 fi
6051
6052 test -z "$RANLIB" && RANLIB=:
6053
6054
6055
6056
6057
6058
6059 # Determine commands to create old-style static archives.
6060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6061 old_postinstall_cmds='chmod 644 $oldlib'
6062 old_postuninstall_cmds=
6063
6064 if test -n "$RANLIB"; then
6065   case $host_os in
6066   openbsd*)
6067     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6068     ;;
6069   *)
6070     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6071     ;;
6072   esac
6073   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6074 fi
6075
6076 case $host_os in
6077   darwin*)
6078     lock_old_archive_extraction=yes ;;
6079   *)
6080     lock_old_archive_extraction=no ;;
6081 esac
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 # If no C compiler was specified, use CC.
6122 LTCC=${LTCC-"$CC"}
6123
6124 # If no C compiler flags were specified, use CFLAGS.
6125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6126
6127 # Allow CC to be a program name with arguments.
6128 compiler=$CC
6129
6130
6131 # Check for command to grab the raw symbol name followed by C symbol from nm.
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6133 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6134 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137
6138 # These are sane defaults that work on at least a few old systems.
6139 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6140
6141 # Character class describing NM global symbol codes.
6142 symcode='[BCDEGRST]'
6143
6144 # Regexp to match symbols that can be accessed directly from C.
6145 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6146
6147 # Define system-specific variables.
6148 case $host_os in
6149 aix*)
6150   symcode='[BCDT]'
6151   ;;
6152 cygwin* | mingw* | pw32* | cegcc*)
6153   symcode='[ABCDGISTW]'
6154   ;;
6155 hpux*)
6156   if test "$host_cpu" = ia64; then
6157     symcode='[ABCDEGRST]'
6158   fi
6159   ;;
6160 irix* | nonstopux*)
6161   symcode='[BCDEGRST]'
6162   ;;
6163 osf*)
6164   symcode='[BCDEGQRST]'
6165   ;;
6166 solaris*)
6167   symcode='[BDRT]'
6168   ;;
6169 sco3.2v5*)
6170   symcode='[DT]'
6171   ;;
6172 sysv4.2uw2*)
6173   symcode='[DT]'
6174   ;;
6175 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6176   symcode='[ABDT]'
6177   ;;
6178 sysv4)
6179   symcode='[DFNSTU]'
6180   ;;
6181 esac
6182
6183 # If we're using GNU nm, then use its standard symbol codes.
6184 case `$NM -V 2>&1` in
6185 *GNU* | *'with BFD'*)
6186   symcode='[ABCDGIRSTW]' ;;
6187 esac
6188
6189 # Transform an extracted symbol line into a proper C declaration.
6190 # Some systems (esp. on ia64) link data and code symbols differently,
6191 # so use this general approach.
6192 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6193
6194 # Transform an extracted symbol line into symbol name and symbol address
6195 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6196 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'"
6197
6198 # Handle CRLF in mingw tool chain
6199 opt_cr=
6200 case $build_os in
6201 mingw*)
6202   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6203   ;;
6204 esac
6205
6206 # Try without a prefix underscore, then with it.
6207 for ac_symprfx in "" "_"; do
6208
6209   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6210   symxfrm="\\1 $ac_symprfx\\2 \\2"
6211
6212   # Write the raw and C identifiers.
6213   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6214     # Fake it for dumpbin and say T for any non-static function
6215     # and D for any global variable.
6216     # Also find C++ and __fastcall symbols from MSVC++,
6217     # which start with @ or ?.
6218     lt_cv_sys_global_symbol_pipe="$AWK '"\
6219 "     {last_section=section; section=\$ 3};"\
6220 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6221 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6222 "     \$ 0!~/External *\|/{next};"\
6223 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6224 "     {if(hide[section]) next};"\
6225 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6226 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6227 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6228 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6229 "     ' prfx=^$ac_symprfx"
6230   else
6231     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6232   fi
6233   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6234
6235   # Check to see that the pipe works correctly.
6236   pipe_works=no
6237
6238   rm -f conftest*
6239   cat > conftest.$ac_ext <<_LT_EOF
6240 #ifdef __cplusplus
6241 extern "C" {
6242 #endif
6243 char nm_test_var;
6244 void nm_test_func(void);
6245 void nm_test_func(void){}
6246 #ifdef __cplusplus
6247 }
6248 #endif
6249 int main(){nm_test_var='a';nm_test_func();return(0);}
6250 _LT_EOF
6251
6252   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6253   (eval $ac_compile) 2>&5
6254   ac_status=$?
6255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256   test $ac_status = 0; }; then
6257     # Now try to grab the symbols.
6258     nlist=conftest.nm
6259     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6260   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6261   ac_status=$?
6262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263   test $ac_status = 0; } && test -s "$nlist"; then
6264       # Try sorting and uniquifying the output.
6265       if sort "$nlist" | uniq > "$nlist"T; then
6266         mv -f "$nlist"T "$nlist"
6267       else
6268         rm -f "$nlist"T
6269       fi
6270
6271       # Make sure that we snagged all the symbols we need.
6272       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6273         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6274           cat <<_LT_EOF > conftest.$ac_ext
6275 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6276 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6277 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6278    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6279 # define LT_DLSYM_CONST
6280 #elif defined(__osf__)
6281 /* This system does not cope well with relocations in const data.  */
6282 # define LT_DLSYM_CONST
6283 #else
6284 # define LT_DLSYM_CONST const
6285 #endif
6286
6287 #ifdef __cplusplus
6288 extern "C" {
6289 #endif
6290
6291 _LT_EOF
6292           # Now generate the symbol file.
6293           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6294
6295           cat <<_LT_EOF >> conftest.$ac_ext
6296
6297 /* The mapping between symbol names and symbols.  */
6298 LT_DLSYM_CONST struct {
6299   const char *name;
6300   void       *address;
6301 }
6302 lt__PROGRAM__LTX_preloaded_symbols[] =
6303 {
6304   { "@PROGRAM@", (void *) 0 },
6305 _LT_EOF
6306           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6307           cat <<\_LT_EOF >> conftest.$ac_ext
6308   {0, (void *) 0}
6309 };
6310
6311 /* This works around a problem in FreeBSD linker */
6312 #ifdef FREEBSD_WORKAROUND
6313 static const void *lt_preloaded_setup() {
6314   return lt__PROGRAM__LTX_preloaded_symbols;
6315 }
6316 #endif
6317
6318 #ifdef __cplusplus
6319 }
6320 #endif
6321 _LT_EOF
6322           # Now try linking the two files.
6323           mv conftest.$ac_objext conftstm.$ac_objext
6324           lt_globsym_save_LIBS=$LIBS
6325           lt_globsym_save_CFLAGS=$CFLAGS
6326           LIBS="conftstm.$ac_objext"
6327           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6328           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6329   (eval $ac_link) 2>&5
6330   ac_status=$?
6331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6333             pipe_works=yes
6334           fi
6335           LIBS=$lt_globsym_save_LIBS
6336           CFLAGS=$lt_globsym_save_CFLAGS
6337         else
6338           echo "cannot find nm_test_func in $nlist" >&5
6339         fi
6340       else
6341         echo "cannot find nm_test_var in $nlist" >&5
6342       fi
6343     else
6344       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6345     fi
6346   else
6347     echo "$progname: failed program was:" >&5
6348     cat conftest.$ac_ext >&5
6349   fi
6350   rm -rf conftest* conftst*
6351
6352   # Do not use the global_symbol_pipe unless it works.
6353   if test "$pipe_works" = yes; then
6354     break
6355   else
6356     lt_cv_sys_global_symbol_pipe=
6357   fi
6358 done
6359
6360 fi
6361
6362 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6363   lt_cv_sys_global_symbol_to_cdecl=
6364 fi
6365 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6367 $as_echo "failed" >&6; }
6368 else
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6370 $as_echo "ok" >&6; }
6371 fi
6372
6373 # Response file support.
6374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6375   nm_file_list_spec='@'
6376 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6377   nm_file_list_spec='@'
6378 fi
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6407 $as_echo_n "checking for sysroot... " >&6; }
6408
6409 # Check whether --with-sysroot was given.
6410 if test "${with_sysroot+set}" = set; then :
6411   withval=$with_sysroot;
6412 else
6413   with_sysroot=no
6414 fi
6415
6416
6417 lt_sysroot=
6418 case ${with_sysroot} in #(
6419  yes)
6420    if test "$GCC" = yes; then
6421      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6422    fi
6423    ;; #(
6424  /*)
6425    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6426    ;; #(
6427  no|'')
6428    ;; #(
6429  *)
6430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6431 $as_echo "${with_sysroot}" >&6; }
6432    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6433    ;;
6434 esac
6435
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6437 $as_echo "${lt_sysroot:-no}" >&6; }
6438
6439
6440
6441
6442
6443 # Check whether --enable-libtool-lock was given.
6444 if test "${enable_libtool_lock+set}" = set; then :
6445   enableval=$enable_libtool_lock;
6446 fi
6447
6448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6449
6450 # Some flags need to be propagated to the compiler or linker for good
6451 # libtool support.
6452 case $host in
6453 ia64-*-hpux*)
6454   # Find out which ABI we are using.
6455   echo 'int i;' > conftest.$ac_ext
6456   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6457   (eval $ac_compile) 2>&5
6458   ac_status=$?
6459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460   test $ac_status = 0; }; then
6461     case `/usr/bin/file conftest.$ac_objext` in
6462       *ELF-32*)
6463         HPUX_IA64_MODE="32"
6464         ;;
6465       *ELF-64*)
6466         HPUX_IA64_MODE="64"
6467         ;;
6468     esac
6469   fi
6470   rm -rf conftest*
6471   ;;
6472 *-*-irix6*)
6473   # Find out which ABI we are using.
6474   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6475   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476   (eval $ac_compile) 2>&5
6477   ac_status=$?
6478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479   test $ac_status = 0; }; then
6480     if test "$lt_cv_prog_gnu_ld" = yes; then
6481       case `/usr/bin/file conftest.$ac_objext` in
6482         *32-bit*)
6483           LD="${LD-ld} -melf32bsmip"
6484           ;;
6485         *N32*)
6486           LD="${LD-ld} -melf32bmipn32"
6487           ;;
6488         *64-bit*)
6489           LD="${LD-ld} -melf64bmip"
6490         ;;
6491       esac
6492     else
6493       case `/usr/bin/file conftest.$ac_objext` in
6494         *32-bit*)
6495           LD="${LD-ld} -32"
6496           ;;
6497         *N32*)
6498           LD="${LD-ld} -n32"
6499           ;;
6500         *64-bit*)
6501           LD="${LD-ld} -64"
6502           ;;
6503       esac
6504     fi
6505   fi
6506   rm -rf conftest*
6507   ;;
6508
6509 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6510 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6511   # Find out which ABI we are using.
6512   echo 'int i;' > conftest.$ac_ext
6513   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6514   (eval $ac_compile) 2>&5
6515   ac_status=$?
6516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517   test $ac_status = 0; }; then
6518     case `/usr/bin/file conftest.o` in
6519       *32-bit*)
6520         case $host in
6521           x86_64-*kfreebsd*-gnu)
6522             LD="${LD-ld} -m elf_i386_fbsd"
6523             ;;
6524           x86_64-*linux*)
6525             case `/usr/bin/file conftest.o` in
6526               *x86-64*)
6527                 LD="${LD-ld} -m elf32_x86_64"
6528                 ;;
6529               *)
6530                 LD="${LD-ld} -m elf_i386"
6531                 ;;
6532             esac
6533             ;;
6534           powerpc64le-*)
6535             LD="${LD-ld} -m elf32lppclinux"
6536             ;;
6537           powerpc64-*)
6538             LD="${LD-ld} -m elf32ppclinux"
6539             ;;
6540           s390x-*linux*)
6541             LD="${LD-ld} -m elf_s390"
6542             ;;
6543           sparc64-*linux*)
6544             LD="${LD-ld} -m elf32_sparc"
6545             ;;
6546         esac
6547         ;;
6548       *64-bit*)
6549         case $host in
6550           x86_64-*kfreebsd*-gnu)
6551             LD="${LD-ld} -m elf_x86_64_fbsd"
6552             ;;
6553           x86_64-*linux*)
6554             LD="${LD-ld} -m elf_x86_64"
6555             ;;
6556           powerpcle-*)
6557             LD="${LD-ld} -m elf64lppc"
6558             ;;
6559           powerpc-*)
6560             LD="${LD-ld} -m elf64ppc"
6561             ;;
6562           s390*-*linux*|s390*-*tpf*)
6563             LD="${LD-ld} -m elf64_s390"
6564             ;;
6565           sparc*-*linux*)
6566             LD="${LD-ld} -m elf64_sparc"
6567             ;;
6568         esac
6569         ;;
6570     esac
6571   fi
6572   rm -rf conftest*
6573   ;;
6574
6575 *-*-sco3.2v5*)
6576   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6577   SAVE_CFLAGS="$CFLAGS"
6578   CFLAGS="$CFLAGS -belf"
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6580 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6581 if ${lt_cv_cc_needs_belf+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   ac_ext=c
6585 ac_cpp='$CPP $CPPFLAGS'
6586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589
6590      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h.  */
6592
6593 int
6594 main ()
6595 {
6596
6597   ;
6598   return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_link "$LINENO"; then :
6602   lt_cv_cc_needs_belf=yes
6603 else
6604   lt_cv_cc_needs_belf=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext \
6607     conftest$ac_exeext conftest.$ac_ext
6608      ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6616 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6617   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6618     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6619     CFLAGS="$SAVE_CFLAGS"
6620   fi
6621   ;;
6622 *-*solaris*)
6623   # Find out which ABI we are using.
6624   echo 'int i;' > conftest.$ac_ext
6625   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6626   (eval $ac_compile) 2>&5
6627   ac_status=$?
6628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629   test $ac_status = 0; }; then
6630     case `/usr/bin/file conftest.o` in
6631     *64-bit*)
6632       case $lt_cv_prog_gnu_ld in
6633       yes*)
6634         case $host in
6635         i?86-*-solaris*)
6636           LD="${LD-ld} -m elf_x86_64"
6637           ;;
6638         sparc*-*-solaris*)
6639           LD="${LD-ld} -m elf64_sparc"
6640           ;;
6641         esac
6642         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6643         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6644           LD="${LD-ld}_sol2"
6645         fi
6646         ;;
6647       *)
6648         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6649           LD="${LD-ld} -64"
6650         fi
6651         ;;
6652       esac
6653       ;;
6654     esac
6655   fi
6656   rm -rf conftest*
6657   ;;
6658 esac
6659
6660 need_locks="$enable_libtool_lock"
6661
6662 if test -n "$ac_tool_prefix"; then
6663   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}mt; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test -n "$MANIFEST_TOOL"; then
6671   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678     for ac_exec_ext in '' $ac_executable_extensions; do
6679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685   done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6691 if test -n "$MANIFEST_TOOL"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6693 $as_echo "$MANIFEST_TOOL" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699
6700 fi
6701 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6702   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6703   # Extract the first word of "mt", so it can be a program name with args.
6704 set dummy mt; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6708   $as_echo_n "(cached) " >&6
6709 else
6710   if test -n "$ac_ct_MANIFEST_TOOL"; then
6711   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718     for ac_exec_ext in '' $ac_executable_extensions; do
6719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725   done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6731 if test -n "$ac_ct_MANIFEST_TOOL"; then
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6733 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6734 else
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6740     MANIFEST_TOOL=":"
6741   else
6742     case $cross_compiling:$ac_tool_warned in
6743 yes:)
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6747 esac
6748     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6749   fi
6750 else
6751   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6752 fi
6753
6754 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6756 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6757 if ${lt_cv_path_mainfest_tool+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   lt_cv_path_mainfest_tool=no
6761   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6762   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6763   cat conftest.err >&5
6764   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6765     lt_cv_path_mainfest_tool=yes
6766   fi
6767   rm -f conftest*
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6770 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6771 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6772   MANIFEST_TOOL=:
6773 fi
6774
6775
6776
6777
6778
6779
6780   case $host_os in
6781     rhapsody* | darwin*)
6782     if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   if test -n "$DSYMUTIL"; then
6791   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798     for ac_exec_ext in '' $ac_executable_extensions; do
6799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805   done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6811 if test -n "$DSYMUTIL"; then
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6813 $as_echo "$DSYMUTIL" >&6; }
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_DSYMUTIL"; then
6822   ac_ct_DSYMUTIL=$DSYMUTIL
6823   # Extract the first word of "dsymutil", so it can be a program name with args.
6824 set dummy dsymutil; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$ac_ct_DSYMUTIL"; then
6831   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6851 if test -n "$ac_ct_DSYMUTIL"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6853 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_DSYMUTIL" = x; then
6860     DSYMUTIL=":"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     DSYMUTIL=$ac_ct_DSYMUTIL
6869   fi
6870 else
6871   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6872 fi
6873
6874     if test -n "$ac_tool_prefix"; then
6875   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_NMEDIT+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   if test -n "$NMEDIT"; then
6883   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890     for ac_exec_ext in '' $ac_executable_extensions; do
6891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897   done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 NMEDIT=$ac_cv_prog_NMEDIT
6903 if test -n "$NMEDIT"; then
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6905 $as_echo "$NMEDIT" >&6; }
6906 else
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911
6912 fi
6913 if test -z "$ac_cv_prog_NMEDIT"; then
6914   ac_ct_NMEDIT=$NMEDIT
6915   # Extract the first word of "nmedit", so it can be a program name with args.
6916 set dummy nmedit; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$ac_ct_NMEDIT"; then
6923   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6943 if test -n "$ac_ct_NMEDIT"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6945 $as_echo "$ac_ct_NMEDIT" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951   if test "x$ac_ct_NMEDIT" = x; then
6952     NMEDIT=":"
6953   else
6954     case $cross_compiling:$ac_tool_warned in
6955 yes:)
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960     NMEDIT=$ac_ct_NMEDIT
6961   fi
6962 else
6963   NMEDIT="$ac_cv_prog_NMEDIT"
6964 fi
6965
6966     if test -n "$ac_tool_prefix"; then
6967   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_LIPO+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   if test -n "$LIPO"; then
6975   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982     for ac_exec_ext in '' $ac_executable_extensions; do
6983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989   done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 LIPO=$ac_cv_prog_LIPO
6995 if test -n "$LIPO"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6997 $as_echo "$LIPO" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_LIPO"; then
7006   ac_ct_LIPO=$LIPO
7007   # Extract the first word of "lipo", so it can be a program name with args.
7008 set dummy lipo; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$ac_ct_LIPO"; then
7015   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024     ac_cv_prog_ac_ct_LIPO="lipo"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7035 if test -n "$ac_ct_LIPO"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7037 $as_echo "$ac_ct_LIPO" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043   if test "x$ac_ct_LIPO" = x; then
7044     LIPO=":"
7045   else
7046     case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052     LIPO=$ac_ct_LIPO
7053   fi
7054 else
7055   LIPO="$ac_cv_prog_LIPO"
7056 fi
7057
7058     if test -n "$ac_tool_prefix"; then
7059   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}otool; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_OTOOL+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   if test -n "$OTOOL"; then
7067   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074     for ac_exec_ext in '' $ac_executable_extensions; do
7075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081   done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 OTOOL=$ac_cv_prog_OTOOL
7087 if test -n "$OTOOL"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7089 $as_echo "$OTOOL" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095
7096 fi
7097 if test -z "$ac_cv_prog_OTOOL"; then
7098   ac_ct_OTOOL=$OTOOL
7099   # Extract the first word of "otool", so it can be a program name with args.
7100 set dummy otool; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   if test -n "$ac_ct_OTOOL"; then
7107   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114     for ac_exec_ext in '' $ac_executable_extensions; do
7115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116     ac_cv_prog_ac_ct_OTOOL="otool"
7117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121   done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7127 if test -n "$ac_ct_OTOOL"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7129 $as_echo "$ac_ct_OTOOL" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135   if test "x$ac_ct_OTOOL" = x; then
7136     OTOOL=":"
7137   else
7138     case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144     OTOOL=$ac_ct_OTOOL
7145   fi
7146 else
7147   OTOOL="$ac_cv_prog_OTOOL"
7148 fi
7149
7150     if test -n "$ac_tool_prefix"; then
7151   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_OTOOL64+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   if test -n "$OTOOL64"; then
7159   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 OTOOL64=$ac_cv_prog_OTOOL64
7179 if test -n "$OTOOL64"; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7181 $as_echo "$OTOOL64" >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_OTOOL64"; then
7190   ac_ct_OTOOL64=$OTOOL64
7191   # Extract the first word of "otool64", so it can be a program name with args.
7192 set dummy otool64; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$ac_ct_OTOOL64"; then
7199   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_prog_ac_ct_OTOOL64="otool64"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7219 if test -n "$ac_ct_OTOOL64"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7221 $as_echo "$ac_ct_OTOOL64" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227   if test "x$ac_ct_OTOOL64" = x; then
7228     OTOOL64=":"
7229   else
7230     case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236     OTOOL64=$ac_ct_OTOOL64
7237   fi
7238 else
7239   OTOOL64="$ac_cv_prog_OTOOL64"
7240 fi
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7269 $as_echo_n "checking for -single_module linker flag... " >&6; }
7270 if ${lt_cv_apple_cc_single_mod+:} false; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   lt_cv_apple_cc_single_mod=no
7274       if test -z "${LT_MULTI_MODULE}"; then
7275         # By default we will add the -single_module flag. You can override
7276         # by either setting the environment variable LT_MULTI_MODULE
7277         # non-empty at configure time, or by adding -multi_module to the
7278         # link flags.
7279         rm -rf libconftest.dylib*
7280         echo "int foo(void){return 1;}" > conftest.c
7281         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282 -dynamiclib -Wl,-single_module conftest.c" >&5
7283         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7284           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7285         _lt_result=$?
7286         # If there is a non-empty error log, and "single_module"
7287         # appears in it, assume the flag caused a linker warning
7288         if test -s conftest.err && $GREP single_module conftest.err; then
7289           cat conftest.err >&5
7290         # Otherwise, if the output was created with a 0 exit code from
7291         # the compiler, it worked.
7292         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7293           lt_cv_apple_cc_single_mod=yes
7294         else
7295           cat conftest.err >&5
7296         fi
7297         rm -rf libconftest.dylib*
7298         rm -f conftest.*
7299       fi
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7302 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7303
7304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7305 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7306 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   lt_cv_ld_exported_symbols_list=no
7310       save_LDFLAGS=$LDFLAGS
7311       echo "_main" > conftest.sym
7312       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h.  */
7315
7316 int
7317 main ()
7318 {
7319
7320   ;
7321   return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"; then :
7325   lt_cv_ld_exported_symbols_list=yes
7326 else
7327   lt_cv_ld_exported_symbols_list=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext \
7330     conftest$ac_exeext conftest.$ac_ext
7331         LDFLAGS="$save_LDFLAGS"
7332
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7335 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7336
7337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7338 $as_echo_n "checking for -force_load linker flag... " >&6; }
7339 if ${lt_cv_ld_force_load+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   lt_cv_ld_force_load=no
7343       cat > conftest.c << _LT_EOF
7344 int forced_loaded() { return 2;}
7345 _LT_EOF
7346       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7347       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7348       echo "$AR cru libconftest.a conftest.o" >&5
7349       $AR cru libconftest.a conftest.o 2>&5
7350       echo "$RANLIB libconftest.a" >&5
7351       $RANLIB libconftest.a 2>&5
7352       cat > conftest.c << _LT_EOF
7353 int main() { return 0;}
7354 _LT_EOF
7355       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7356       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7357       _lt_result=$?
7358       if test -s conftest.err && $GREP force_load conftest.err; then
7359         cat conftest.err >&5
7360       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7361         lt_cv_ld_force_load=yes
7362       else
7363         cat conftest.err >&5
7364       fi
7365         rm -f conftest.err libconftest.a conftest conftest.c
7366         rm -rf conftest.dSYM
7367
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7370 $as_echo "$lt_cv_ld_force_load" >&6; }
7371     case $host_os in
7372     rhapsody* | darwin1.[012])
7373       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7374     darwin1.*)
7375       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7376     darwin*) # darwin 5.x on
7377       # if running on 10.5 or later, the deployment target defaults
7378       # to the OS version, if on x86, and 10.4, the deployment
7379       # target defaults to 10.4. Don't you love it?
7380       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7381         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7382           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7383         10.[012]*)
7384           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7385         10.*)
7386           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7387       esac
7388     ;;
7389   esac
7390     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7391       _lt_dar_single_mod='$single_module'
7392     fi
7393     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7394       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7395     else
7396       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7397     fi
7398     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7399       _lt_dsymutil='~$DSYMUTIL $lib || :'
7400     else
7401       _lt_dsymutil=
7402     fi
7403     ;;
7404   esac
7405
7406 ac_ext=c
7407 ac_cpp='$CPP $CPPFLAGS'
7408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7412 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7413 # On Suns, sometimes $CPP names a directory.
7414 if test -n "$CPP" && test -d "$CPP"; then
7415   CPP=
7416 fi
7417 if test -z "$CPP"; then
7418   if ${ac_cv_prog_CPP+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421       # Double quotes because CPP needs to be expanded
7422     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7423     do
7424       ac_preproc_ok=false
7425 for ac_c_preproc_warn_flag in '' yes
7426 do
7427   # Use a header file that comes with gcc, so configuring glibc
7428   # with a fresh cross-compiler works.
7429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430   # <limits.h> exists even on freestanding compilers.
7431   # On the NeXT, cc -E runs the code through the compiler's parser,
7432   # not just through cpp. "Syntax error" is here to catch this case.
7433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435 #ifdef __STDC__
7436 # include <limits.h>
7437 #else
7438 # include <assert.h>
7439 #endif
7440                      Syntax error
7441 _ACEOF
7442 if ac_fn_c_try_cpp "$LINENO"; then :
7443
7444 else
7445   # Broken: fails on valid input.
7446 continue
7447 fi
7448 rm -f conftest.err conftest.i conftest.$ac_ext
7449
7450   # OK, works on sane cases.  Now check whether nonexistent headers
7451   # can be detected and how.
7452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h.  */
7454 #include <ac_nonexistent.h>
7455 _ACEOF
7456 if ac_fn_c_try_cpp "$LINENO"; then :
7457   # Broken: success on invalid input.
7458 continue
7459 else
7460   # Passes both tests.
7461 ac_preproc_ok=:
7462 break
7463 fi
7464 rm -f conftest.err conftest.i conftest.$ac_ext
7465
7466 done
7467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7468 rm -f conftest.i conftest.err conftest.$ac_ext
7469 if $ac_preproc_ok; then :
7470   break
7471 fi
7472
7473     done
7474     ac_cv_prog_CPP=$CPP
7475
7476 fi
7477   CPP=$ac_cv_prog_CPP
7478 else
7479   ac_cv_prog_CPP=$CPP
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7482 $as_echo "$CPP" >&6; }
7483 ac_preproc_ok=false
7484 for ac_c_preproc_warn_flag in '' yes
7485 do
7486   # Use a header file that comes with gcc, so configuring glibc
7487   # with a fresh cross-compiler works.
7488   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7489   # <limits.h> exists even on freestanding compilers.
7490   # On the NeXT, cc -E runs the code through the compiler's parser,
7491   # not just through cpp. "Syntax error" is here to catch this case.
7492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494 #ifdef __STDC__
7495 # include <limits.h>
7496 #else
7497 # include <assert.h>
7498 #endif
7499                      Syntax error
7500 _ACEOF
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502
7503 else
7504   # Broken: fails on valid input.
7505 continue
7506 fi
7507 rm -f conftest.err conftest.i conftest.$ac_ext
7508
7509   # OK, works on sane cases.  Now check whether nonexistent headers
7510   # can be detected and how.
7511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513 #include <ac_nonexistent.h>
7514 _ACEOF
7515 if ac_fn_c_try_cpp "$LINENO"; then :
7516   # Broken: success on invalid input.
7517 continue
7518 else
7519   # Passes both tests.
7520 ac_preproc_ok=:
7521 break
7522 fi
7523 rm -f conftest.err conftest.i conftest.$ac_ext
7524
7525 done
7526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7527 rm -f conftest.i conftest.err conftest.$ac_ext
7528 if $ac_preproc_ok; then :
7529
7530 else
7531   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7533 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7534 See \`config.log' for more details" "$LINENO" 5; }
7535 fi
7536
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7545 $as_echo_n "checking for ANSI C header files... " >&6; }
7546 if ${ac_cv_header_stdc+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h.  */
7551 #include <stdlib.h>
7552 #include <stdarg.h>
7553 #include <string.h>
7554 #include <float.h>
7555
7556 int
7557 main ()
7558 {
7559
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565   ac_cv_header_stdc=yes
7566 else
7567   ac_cv_header_stdc=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570
7571 if test $ac_cv_header_stdc = yes; then
7572   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h.  */
7575 #include <string.h>
7576
7577 _ACEOF
7578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7579   $EGREP "memchr" >/dev/null 2>&1; then :
7580
7581 else
7582   ac_cv_header_stdc=no
7583 fi
7584 rm -f conftest*
7585
7586 fi
7587
7588 if test $ac_cv_header_stdc = yes; then
7589   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h.  */
7592 #include <stdlib.h>
7593
7594 _ACEOF
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596   $EGREP "free" >/dev/null 2>&1; then :
7597
7598 else
7599   ac_cv_header_stdc=no
7600 fi
7601 rm -f conftest*
7602
7603 fi
7604
7605 if test $ac_cv_header_stdc = yes; then
7606   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7607   if test "$cross_compiling" = yes; then :
7608   :
7609 else
7610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h.  */
7612 #include <ctype.h>
7613 #include <stdlib.h>
7614 #if ((' ' & 0x0FF) == 0x020)
7615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7617 #else
7618 # define ISLOWER(c) \
7619                    (('a' <= (c) && (c) <= 'i') \
7620                      || ('j' <= (c) && (c) <= 'r') \
7621                      || ('s' <= (c) && (c) <= 'z'))
7622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7623 #endif
7624
7625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7626 int
7627 main ()
7628 {
7629   int i;
7630   for (i = 0; i < 256; i++)
7631     if (XOR (islower (i), ISLOWER (i))
7632         || toupper (i) != TOUPPER (i))
7633       return 2;
7634   return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_run "$LINENO"; then :
7638
7639 else
7640   ac_cv_header_stdc=no
7641 fi
7642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7643   conftest.$ac_objext conftest.beam conftest.$ac_ext
7644 fi
7645
7646 fi
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7649 $as_echo "$ac_cv_header_stdc" >&6; }
7650 if test $ac_cv_header_stdc = yes; then
7651
7652 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7653
7654 fi
7655
7656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7658                   inttypes.h stdint.h unistd.h
7659 do :
7660   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7662 "
7663 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7664   cat >>confdefs.h <<_ACEOF
7665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7666 _ACEOF
7667
7668 fi
7669
7670 done
7671
7672
7673 for ac_header in dlfcn.h
7674 do :
7675   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7676 "
7677 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7678   cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DLFCN_H 1
7680 _ACEOF
7681
7682 fi
7683
7684 done
7685
7686
7687
7688
7689
7690 # Set options
7691 enable_win32_dll=yes
7692
7693 case $host in
7694 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7695   if test -n "$ac_tool_prefix"; then
7696   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}as; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_AS+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   if test -n "$AS"; then
7704   ac_cv_prog_AS="$AS" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711     for ac_exec_ext in '' $ac_executable_extensions; do
7712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713     ac_cv_prog_AS="${ac_tool_prefix}as"
7714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715     break 2
7716   fi
7717 done
7718   done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 AS=$ac_cv_prog_AS
7724 if test -n "$AS"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7726 $as_echo "$AS" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 fi
7734 if test -z "$ac_cv_prog_AS"; then
7735   ac_ct_AS=$AS
7736   # Extract the first word of "as", so it can be a program name with args.
7737 set dummy as; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   if test -n "$ac_ct_AS"; then
7744   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751     for ac_exec_ext in '' $ac_executable_extensions; do
7752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753     ac_cv_prog_ac_ct_AS="as"
7754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758   done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7764 if test -n "$ac_ct_AS"; then
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7766 $as_echo "$ac_ct_AS" >&6; }
7767 else
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772   if test "x$ac_ct_AS" = x; then
7773     AS="false"
7774   else
7775     case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781     AS=$ac_ct_AS
7782   fi
7783 else
7784   AS="$ac_cv_prog_AS"
7785 fi
7786
7787   if test -n "$ac_tool_prefix"; then
7788   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_DLLTOOL+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   if test -n "$DLLTOOL"; then
7796   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803     for ac_exec_ext in '' $ac_executable_extensions; do
7804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810   done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 DLLTOOL=$ac_cv_prog_DLLTOOL
7816 if test -n "$DLLTOOL"; then
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7818 $as_echo "$DLLTOOL" >&6; }
7819 else
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_DLLTOOL"; then
7827   ac_ct_DLLTOOL=$DLLTOOL
7828   # Extract the first word of "dlltool", so it can be a program name with args.
7829 set dummy dlltool; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7833   $as_echo_n "(cached) " >&6
7834 else
7835   if test -n "$ac_ct_DLLTOOL"; then
7836   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7856 if test -n "$ac_ct_DLLTOOL"; then
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7858 $as_echo "$ac_ct_DLLTOOL" >&6; }
7859 else
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863
7864   if test "x$ac_ct_DLLTOOL" = x; then
7865     DLLTOOL="false"
7866   else
7867     case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871 ac_tool_warned=yes ;;
7872 esac
7873     DLLTOOL=$ac_ct_DLLTOOL
7874   fi
7875 else
7876   DLLTOOL="$ac_cv_prog_DLLTOOL"
7877 fi
7878
7879   if test -n "$ac_tool_prefix"; then
7880   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_OBJDUMP+:} false; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   if test -n "$OBJDUMP"; then
7888   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893   IFS=$as_save_IFS
7894   test -z "$as_dir" && as_dir=.
7895     for ac_exec_ext in '' $ac_executable_extensions; do
7896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899     break 2
7900   fi
7901 done
7902   done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 OBJDUMP=$ac_cv_prog_OBJDUMP
7908 if test -n "$OBJDUMP"; then
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7910 $as_echo "$OBJDUMP" >&6; }
7911 else
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917 fi
7918 if test -z "$ac_cv_prog_OBJDUMP"; then
7919   ac_ct_OBJDUMP=$OBJDUMP
7920   # Extract the first word of "objdump", so it can be a program name with args.
7921 set dummy objdump; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   if test -n "$ac_ct_OBJDUMP"; then
7928   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933   IFS=$as_save_IFS
7934   test -z "$as_dir" && as_dir=.
7935     for ac_exec_ext in '' $ac_executable_extensions; do
7936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939     break 2
7940   fi
7941 done
7942   done
7943 IFS=$as_save_IFS
7944
7945 fi
7946 fi
7947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7948 if test -n "$ac_ct_OBJDUMP"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7950 $as_echo "$ac_ct_OBJDUMP" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956   if test "x$ac_ct_OBJDUMP" = x; then
7957     OBJDUMP="false"
7958   else
7959     case $cross_compiling:$ac_tool_warned in
7960 yes:)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963 ac_tool_warned=yes ;;
7964 esac
7965     OBJDUMP=$ac_ct_OBJDUMP
7966   fi
7967 else
7968   OBJDUMP="$ac_cv_prog_OBJDUMP"
7969 fi
7970
7971   ;;
7972 esac
7973
7974 test -z "$AS" && AS=as
7975
7976
7977
7978
7979
7980 test -z "$DLLTOOL" && DLLTOOL=dlltool
7981
7982
7983
7984
7985
7986 test -z "$OBJDUMP" && OBJDUMP=objdump
7987
7988
7989
7990
7991
7992
7993
7994         enable_dlopen=no
7995
7996
7997
7998             # Check whether --enable-shared was given.
7999 if test "${enable_shared+set}" = set; then :
8000   enableval=$enable_shared; p=${PACKAGE-default}
8001     case $enableval in
8002     yes) enable_shared=yes ;;
8003     no) enable_shared=no ;;
8004     *)
8005       enable_shared=no
8006       # Look at the argument we got.  We use all the common list separators.
8007       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8008       for pkg in $enableval; do
8009         IFS="$lt_save_ifs"
8010         if test "X$pkg" = "X$p"; then
8011           enable_shared=yes
8012         fi
8013       done
8014       IFS="$lt_save_ifs"
8015       ;;
8016     esac
8017 else
8018   enable_shared=yes
8019 fi
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029   # Check whether --enable-static was given.
8030 if test "${enable_static+set}" = set; then :
8031   enableval=$enable_static; p=${PACKAGE-default}
8032     case $enableval in
8033     yes) enable_static=yes ;;
8034     no) enable_static=no ;;
8035     *)
8036      enable_static=no
8037       # Look at the argument we got.  We use all the common list separators.
8038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8039       for pkg in $enableval; do
8040         IFS="$lt_save_ifs"
8041         if test "X$pkg" = "X$p"; then
8042           enable_static=yes
8043         fi
8044       done
8045       IFS="$lt_save_ifs"
8046       ;;
8047     esac
8048 else
8049   enable_static=yes
8050 fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061 # Check whether --with-pic was given.
8062 if test "${with_pic+set}" = set; then :
8063   withval=$with_pic; lt_p=${PACKAGE-default}
8064     case $withval in
8065     yes|no) pic_mode=$withval ;;
8066     *)
8067       pic_mode=default
8068       # Look at the argument we got.  We use all the common list separators.
8069       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8070       for lt_pkg in $withval; do
8071         IFS="$lt_save_ifs"
8072         if test "X$lt_pkg" = "X$lt_p"; then
8073           pic_mode=yes
8074         fi
8075       done
8076       IFS="$lt_save_ifs"
8077       ;;
8078     esac
8079 else
8080   pic_mode=default
8081 fi
8082
8083
8084 test -z "$pic_mode" && pic_mode=default
8085
8086
8087
8088
8089
8090
8091
8092   # Check whether --enable-fast-install was given.
8093 if test "${enable_fast_install+set}" = set; then :
8094   enableval=$enable_fast_install; p=${PACKAGE-default}
8095     case $enableval in
8096     yes) enable_fast_install=yes ;;
8097     no) enable_fast_install=no ;;
8098     *)
8099       enable_fast_install=no
8100       # Look at the argument we got.  We use all the common list separators.
8101       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8102       for pkg in $enableval; do
8103         IFS="$lt_save_ifs"
8104         if test "X$pkg" = "X$p"; then
8105           enable_fast_install=yes
8106         fi
8107       done
8108       IFS="$lt_save_ifs"
8109       ;;
8110     esac
8111 else
8112   enable_fast_install=yes
8113 fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 # This can be used to rebuild libtool when needed
8126 LIBTOOL_DEPS="$ltmain"
8127
8128 # Always use our own libtool.
8129 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160 test -z "$LN_S" && LN_S="ln -s"
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 if test -n "${ZSH_VERSION+set}" ; then
8176    setopt NO_GLOB_SUBST
8177 fi
8178
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8180 $as_echo_n "checking for objdir... " >&6; }
8181 if ${lt_cv_objdir+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   rm -f .libs 2>/dev/null
8185 mkdir .libs 2>/dev/null
8186 if test -d .libs; then
8187   lt_cv_objdir=.libs
8188 else
8189   # MS-DOS does not allow filenames that begin with a dot.
8190   lt_cv_objdir=_libs
8191 fi
8192 rmdir .libs 2>/dev/null
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8195 $as_echo "$lt_cv_objdir" >&6; }
8196 objdir=$lt_cv_objdir
8197
8198
8199
8200
8201
8202 cat >>confdefs.h <<_ACEOF
8203 #define LT_OBJDIR "$lt_cv_objdir/"
8204 _ACEOF
8205
8206
8207
8208
8209 case $host_os in
8210 aix3*)
8211   # AIX sometimes has problems with the GCC collect2 program.  For some
8212   # reason, if we set the COLLECT_NAMES environment variable, the problems
8213   # vanish in a puff of smoke.
8214   if test "X${COLLECT_NAMES+set}" != Xset; then
8215     COLLECT_NAMES=
8216     export COLLECT_NAMES
8217   fi
8218   ;;
8219 esac
8220
8221 # Global variables:
8222 ofile=libtool
8223 can_build_shared=yes
8224
8225 # All known linkers require a `.a' archive for static linking (except MSVC,
8226 # which needs '.lib').
8227 libext=a
8228
8229 with_gnu_ld="$lt_cv_prog_gnu_ld"
8230
8231 old_CC="$CC"
8232 old_CFLAGS="$CFLAGS"
8233
8234 # Set sane defaults for various variables
8235 test -z "$CC" && CC=cc
8236 test -z "$LTCC" && LTCC=$CC
8237 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8238 test -z "$LD" && LD=ld
8239 test -z "$ac_objext" && ac_objext=o
8240
8241 for cc_temp in $compiler""; do
8242   case $cc_temp in
8243     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8244     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8245     \-*) ;;
8246     *) break;;
8247   esac
8248 done
8249 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8250
8251
8252 # Only perform the check for file, if the check method requires it
8253 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8254 case $deplibs_check_method in
8255 file_magic*)
8256   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8258 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8259 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262   case $MAGIC_CMD in
8263 [\\/*] |  ?:[\\/]*)
8264   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8265   ;;
8266 *)
8267   lt_save_MAGIC_CMD="$MAGIC_CMD"
8268   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8269   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8270   for ac_dir in $ac_dummy; do
8271     IFS="$lt_save_ifs"
8272     test -z "$ac_dir" && ac_dir=.
8273     if test -f $ac_dir/${ac_tool_prefix}file; then
8274       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8275       if test -n "$file_magic_test_file"; then
8276         case $deplibs_check_method in
8277         "file_magic "*)
8278           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8279           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8281             $EGREP "$file_magic_regex" > /dev/null; then
8282             :
8283           else
8284             cat <<_LT_EOF 1>&2
8285
8286 *** Warning: the command libtool uses to detect shared libraries,
8287 *** $file_magic_cmd, produces output that libtool cannot recognize.
8288 *** The result is that libtool may fail to recognize shared libraries
8289 *** as such.  This will affect the creation of libtool libraries that
8290 *** depend on shared libraries, but programs linked with such libtool
8291 *** libraries will work regardless of this problem.  Nevertheless, you
8292 *** may want to report the problem to your system manager and/or to
8293 *** bug-libtool@gnu.org
8294
8295 _LT_EOF
8296           fi ;;
8297         esac
8298       fi
8299       break
8300     fi
8301   done
8302   IFS="$lt_save_ifs"
8303   MAGIC_CMD="$lt_save_MAGIC_CMD"
8304   ;;
8305 esac
8306 fi
8307
8308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8309 if test -n "$MAGIC_CMD"; then
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8311 $as_echo "$MAGIC_CMD" >&6; }
8312 else
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317
8318
8319
8320
8321 if test -z "$lt_cv_path_MAGIC_CMD"; then
8322   if test -n "$ac_tool_prefix"; then
8323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8324 $as_echo_n "checking for file... " >&6; }
8325 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8326   $as_echo_n "(cached) " >&6
8327 else
8328   case $MAGIC_CMD in
8329 [\\/*] |  ?:[\\/]*)
8330   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8331   ;;
8332 *)
8333   lt_save_MAGIC_CMD="$MAGIC_CMD"
8334   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8335   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8336   for ac_dir in $ac_dummy; do
8337     IFS="$lt_save_ifs"
8338     test -z "$ac_dir" && ac_dir=.
8339     if test -f $ac_dir/file; then
8340       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8341       if test -n "$file_magic_test_file"; then
8342         case $deplibs_check_method in
8343         "file_magic "*)
8344           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8345           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8346           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8347             $EGREP "$file_magic_regex" > /dev/null; then
8348             :
8349           else
8350             cat <<_LT_EOF 1>&2
8351
8352 *** Warning: the command libtool uses to detect shared libraries,
8353 *** $file_magic_cmd, produces output that libtool cannot recognize.
8354 *** The result is that libtool may fail to recognize shared libraries
8355 *** as such.  This will affect the creation of libtool libraries that
8356 *** depend on shared libraries, but programs linked with such libtool
8357 *** libraries will work regardless of this problem.  Nevertheless, you
8358 *** may want to report the problem to your system manager and/or to
8359 *** bug-libtool@gnu.org
8360
8361 _LT_EOF
8362           fi ;;
8363         esac
8364       fi
8365       break
8366     fi
8367   done
8368   IFS="$lt_save_ifs"
8369   MAGIC_CMD="$lt_save_MAGIC_CMD"
8370   ;;
8371 esac
8372 fi
8373
8374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8375 if test -n "$MAGIC_CMD"; then
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8377 $as_echo "$MAGIC_CMD" >&6; }
8378 else
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384   else
8385     MAGIC_CMD=:
8386   fi
8387 fi
8388
8389   fi
8390   ;;
8391 esac
8392
8393 # Use C for the default configuration in the libtool script
8394
8395 lt_save_CC="$CC"
8396 ac_ext=c
8397 ac_cpp='$CPP $CPPFLAGS'
8398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402
8403 # Source file extension for C test sources.
8404 ac_ext=c
8405
8406 # Object file extension for compiled C test sources.
8407 objext=o
8408 objext=$objext
8409
8410 # Code to be used in simple compile tests
8411 lt_simple_compile_test_code="int some_variable = 0;"
8412
8413 # Code to be used in simple link tests
8414 lt_simple_link_test_code='int main(){return(0);}'
8415
8416
8417
8418
8419
8420
8421
8422 # If no C compiler was specified, use CC.
8423 LTCC=${LTCC-"$CC"}
8424
8425 # If no C compiler flags were specified, use CFLAGS.
8426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8427
8428 # Allow CC to be a program name with arguments.
8429 compiler=$CC
8430
8431 # Save the default compiler, since it gets overwritten when the other
8432 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8433 compiler_DEFAULT=$CC
8434
8435 # save warnings/boilerplate of simple test code
8436 ac_outfile=conftest.$ac_objext
8437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8439 _lt_compiler_boilerplate=`cat conftest.err`
8440 $RM conftest*
8441
8442 ac_outfile=conftest.$ac_objext
8443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8445 _lt_linker_boilerplate=`cat conftest.err`
8446 $RM -r conftest*
8447
8448
8449 ## CAVEAT EMPTOR:
8450 ## There is no encapsulation within the following macros, do not change
8451 ## the running order or otherwise move them around unless you know exactly
8452 ## what you are doing...
8453 if test -n "$compiler"; then
8454
8455 lt_prog_compiler_no_builtin_flag=
8456
8457 if test "$GCC" = yes; then
8458   case $cc_basename in
8459   nvcc*)
8460     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8461   *)
8462     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8463   esac
8464
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8466 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8467 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8468   $as_echo_n "(cached) " >&6
8469 else
8470   lt_cv_prog_compiler_rtti_exceptions=no
8471    ac_outfile=conftest.$ac_objext
8472    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8473    lt_compiler_flag="-fno-rtti -fno-exceptions"
8474    # Insert the option either (1) after the last *FLAGS variable, or
8475    # (2) before a word containing "conftest.", or (3) at the end.
8476    # Note that $ac_compile itself does not contain backslashes and begins
8477    # with a dollar sign (not a hyphen), so the echo should work correctly.
8478    # The option is referenced via a variable to avoid confusing sed.
8479    lt_compile=`echo "$ac_compile" | $SED \
8480    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8482    -e 's:$: $lt_compiler_flag:'`
8483    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8484    (eval "$lt_compile" 2>conftest.err)
8485    ac_status=$?
8486    cat conftest.err >&5
8487    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488    if (exit $ac_status) && test -s "$ac_outfile"; then
8489      # The compiler can only warn and ignore the option if not recognized
8490      # So say no if there are warnings other than the usual output.
8491      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8492      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8493      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8494        lt_cv_prog_compiler_rtti_exceptions=yes
8495      fi
8496    fi
8497    $RM conftest*
8498
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8501 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8502
8503 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8504     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8505 else
8506     :
8507 fi
8508
8509 fi
8510
8511
8512
8513
8514
8515
8516   lt_prog_compiler_wl=
8517 lt_prog_compiler_pic=
8518 lt_prog_compiler_static=
8519
8520
8521   if test "$GCC" = yes; then
8522     lt_prog_compiler_wl='-Wl,'
8523     lt_prog_compiler_static='-static'
8524
8525     case $host_os in
8526       aix*)
8527       # All AIX code is PIC.
8528       if test "$host_cpu" = ia64; then
8529         # AIX 5 now supports IA64 processor
8530         lt_prog_compiler_static='-Bstatic'
8531       fi
8532       ;;
8533
8534     amigaos*)
8535       case $host_cpu in
8536       powerpc)
8537             # see comment about AmigaOS4 .so support
8538             lt_prog_compiler_pic='-fPIC'
8539         ;;
8540       m68k)
8541             # FIXME: we need at least 68020 code to build shared libraries, but
8542             # adding the `-m68020' flag to GCC prevents building anything better,
8543             # like `-m68040'.
8544             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8545         ;;
8546       esac
8547       ;;
8548
8549     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8550       # PIC is the default for these OSes.
8551       ;;
8552
8553     mingw* | cygwin* | pw32* | os2* | cegcc*)
8554       # This hack is so that the source file can tell whether it is being
8555       # built for inclusion in a dll (and should export symbols for example).
8556       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8557       # (--disable-auto-import) libraries
8558       lt_prog_compiler_pic='-DDLL_EXPORT'
8559       ;;
8560
8561     darwin* | rhapsody*)
8562       # PIC is the default on this platform
8563       # Common symbols not allowed in MH_DYLIB files
8564       lt_prog_compiler_pic='-fno-common'
8565       ;;
8566
8567     haiku*)
8568       # PIC is the default for Haiku.
8569       # The "-static" flag exists, but is broken.
8570       lt_prog_compiler_static=
8571       ;;
8572
8573     hpux*)
8574       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8575       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8576       # sets the default TLS model and affects inlining.
8577       case $host_cpu in
8578       hppa*64*)
8579         # +Z the default
8580         ;;
8581       *)
8582         lt_prog_compiler_pic='-fPIC'
8583         ;;
8584       esac
8585       ;;
8586
8587     interix[3-9]*)
8588       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8589       # Instead, we relocate shared libraries at runtime.
8590       ;;
8591
8592     msdosdjgpp*)
8593       # Just because we use GCC doesn't mean we suddenly get shared libraries
8594       # on systems that don't support them.
8595       lt_prog_compiler_can_build_shared=no
8596       enable_shared=no
8597       ;;
8598
8599     *nto* | *qnx*)
8600       # QNX uses GNU C++, but need to define -shared option too, otherwise
8601       # it will coredump.
8602       lt_prog_compiler_pic='-fPIC -shared'
8603       ;;
8604
8605     sysv4*MP*)
8606       if test -d /usr/nec; then
8607         lt_prog_compiler_pic=-Kconform_pic
8608       fi
8609       ;;
8610
8611     *)
8612       lt_prog_compiler_pic='-fPIC'
8613       ;;
8614     esac
8615
8616     case $cc_basename in
8617     nvcc*) # Cuda Compiler Driver 2.2
8618       lt_prog_compiler_wl='-Xlinker '
8619       if test -n "$lt_prog_compiler_pic"; then
8620         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8621       fi
8622       ;;
8623     esac
8624   else
8625     # PORTME Check for flag to pass linker flags through the system compiler.
8626     case $host_os in
8627     aix*)
8628       lt_prog_compiler_wl='-Wl,'
8629       if test "$host_cpu" = ia64; then
8630         # AIX 5 now supports IA64 processor
8631         lt_prog_compiler_static='-Bstatic'
8632       else
8633         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8634       fi
8635       ;;
8636
8637     mingw* | cygwin* | pw32* | os2* | cegcc*)
8638       # This hack is so that the source file can tell whether it is being
8639       # built for inclusion in a dll (and should export symbols for example).
8640       lt_prog_compiler_pic='-DDLL_EXPORT'
8641       ;;
8642
8643     hpux9* | hpux10* | hpux11*)
8644       lt_prog_compiler_wl='-Wl,'
8645       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8646       # not for PA HP-UX.
8647       case $host_cpu in
8648       hppa*64*|ia64*)
8649         # +Z the default
8650         ;;
8651       *)
8652         lt_prog_compiler_pic='+Z'
8653         ;;
8654       esac
8655       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8656       lt_prog_compiler_static='${wl}-a ${wl}archive'
8657       ;;
8658
8659     irix5* | irix6* | nonstopux*)
8660       lt_prog_compiler_wl='-Wl,'
8661       # PIC (with -KPIC) is the default.
8662       lt_prog_compiler_static='-non_shared'
8663       ;;
8664
8665     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8666       case $cc_basename in
8667       # old Intel for x86_64 which still supported -KPIC.
8668       ecc*)
8669         lt_prog_compiler_wl='-Wl,'
8670         lt_prog_compiler_pic='-KPIC'
8671         lt_prog_compiler_static='-static'
8672         ;;
8673       # icc used to be incompatible with GCC.
8674       # ICC 10 doesn't accept -KPIC any more.
8675       icc* | ifort*)
8676         lt_prog_compiler_wl='-Wl,'
8677         lt_prog_compiler_pic='-fPIC'
8678         lt_prog_compiler_static='-static'
8679         ;;
8680       # Lahey Fortran 8.1.
8681       lf95*)
8682         lt_prog_compiler_wl='-Wl,'
8683         lt_prog_compiler_pic='--shared'
8684         lt_prog_compiler_static='--static'
8685         ;;
8686       nagfor*)
8687         # NAG Fortran compiler
8688         lt_prog_compiler_wl='-Wl,-Wl,,'
8689         lt_prog_compiler_pic='-PIC'
8690         lt_prog_compiler_static='-Bstatic'
8691         ;;
8692       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8693         # Portland Group compilers (*not* the Pentium gcc compiler,
8694         # which looks to be a dead project)
8695         lt_prog_compiler_wl='-Wl,'
8696         lt_prog_compiler_pic='-fpic'
8697         lt_prog_compiler_static='-Bstatic'
8698         ;;
8699       ccc*)
8700         lt_prog_compiler_wl='-Wl,'
8701         # All Alpha code is PIC.
8702         lt_prog_compiler_static='-non_shared'
8703         ;;
8704       xl* | bgxl* | bgf* | mpixl*)
8705         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8706         lt_prog_compiler_wl='-Wl,'
8707         lt_prog_compiler_pic='-qpic'
8708         lt_prog_compiler_static='-qstaticlink'
8709         ;;
8710       *)
8711         case `$CC -V 2>&1 | sed 5q` in
8712         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8713           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8714           lt_prog_compiler_pic='-KPIC'
8715           lt_prog_compiler_static='-Bstatic'
8716           lt_prog_compiler_wl=''
8717           ;;
8718         *Sun\ F* | *Sun*Fortran*)
8719           lt_prog_compiler_pic='-KPIC'
8720           lt_prog_compiler_static='-Bstatic'
8721           lt_prog_compiler_wl='-Qoption ld '
8722           ;;
8723         *Sun\ C*)
8724           # Sun C 5.9
8725           lt_prog_compiler_pic='-KPIC'
8726           lt_prog_compiler_static='-Bstatic'
8727           lt_prog_compiler_wl='-Wl,'
8728           ;;
8729         *Intel*\ [CF]*Compiler*)
8730           lt_prog_compiler_wl='-Wl,'
8731           lt_prog_compiler_pic='-fPIC'
8732           lt_prog_compiler_static='-static'
8733           ;;
8734         *Portland\ Group*)
8735           lt_prog_compiler_wl='-Wl,'
8736           lt_prog_compiler_pic='-fpic'
8737           lt_prog_compiler_static='-Bstatic'
8738           ;;
8739         esac
8740         ;;
8741       esac
8742       ;;
8743
8744     newsos6)
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     *nto* | *qnx*)
8750       # QNX uses GNU C++, but need to define -shared option too, otherwise
8751       # it will coredump.
8752       lt_prog_compiler_pic='-fPIC -shared'
8753       ;;
8754
8755     osf3* | osf4* | osf5*)
8756       lt_prog_compiler_wl='-Wl,'
8757       # All OSF/1 code is PIC.
8758       lt_prog_compiler_static='-non_shared'
8759       ;;
8760
8761     rdos*)
8762       lt_prog_compiler_static='-non_shared'
8763       ;;
8764
8765     solaris*)
8766       lt_prog_compiler_pic='-KPIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       case $cc_basename in
8769       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8770         lt_prog_compiler_wl='-Qoption ld ';;
8771       *)
8772         lt_prog_compiler_wl='-Wl,';;
8773       esac
8774       ;;
8775
8776     sunos4*)
8777       lt_prog_compiler_wl='-Qoption ld '
8778       lt_prog_compiler_pic='-PIC'
8779       lt_prog_compiler_static='-Bstatic'
8780       ;;
8781
8782     sysv4 | sysv4.2uw2* | sysv4.3*)
8783       lt_prog_compiler_wl='-Wl,'
8784       lt_prog_compiler_pic='-KPIC'
8785       lt_prog_compiler_static='-Bstatic'
8786       ;;
8787
8788     sysv4*MP*)
8789       if test -d /usr/nec ;then
8790         lt_prog_compiler_pic='-Kconform_pic'
8791         lt_prog_compiler_static='-Bstatic'
8792       fi
8793       ;;
8794
8795     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8796       lt_prog_compiler_wl='-Wl,'
8797       lt_prog_compiler_pic='-KPIC'
8798       lt_prog_compiler_static='-Bstatic'
8799       ;;
8800
8801     unicos*)
8802       lt_prog_compiler_wl='-Wl,'
8803       lt_prog_compiler_can_build_shared=no
8804       ;;
8805
8806     uts4*)
8807       lt_prog_compiler_pic='-pic'
8808       lt_prog_compiler_static='-Bstatic'
8809       ;;
8810
8811     *)
8812       lt_prog_compiler_can_build_shared=no
8813       ;;
8814     esac
8815   fi
8816
8817 case $host_os in
8818   # For platforms which do not support PIC, -DPIC is meaningless:
8819   *djgpp*)
8820     lt_prog_compiler_pic=
8821     ;;
8822   *)
8823     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8824     ;;
8825 esac
8826
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8828 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8829 if ${lt_cv_prog_compiler_pic+:} false; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8835 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8836 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8837
8838 #
8839 # Check to make sure the PIC flag actually works.
8840 #
8841 if test -n "$lt_prog_compiler_pic"; then
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8843 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8844 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8845   $as_echo_n "(cached) " >&6
8846 else
8847   lt_cv_prog_compiler_pic_works=no
8848    ac_outfile=conftest.$ac_objext
8849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8851    # Insert the option either (1) after the last *FLAGS variable, or
8852    # (2) before a word containing "conftest.", or (3) at the end.
8853    # Note that $ac_compile itself does not contain backslashes and begins
8854    # with a dollar sign (not a hyphen), so the echo should work correctly.
8855    # The option is referenced via a variable to avoid confusing sed.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>conftest.err)
8862    ac_status=$?
8863    cat conftest.err >&5
8864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s "$ac_outfile"; then
8866      # The compiler can only warn and ignore the option if not recognized
8867      # So say no if there are warnings other than the usual output.
8868      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8869      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8870      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8871        lt_cv_prog_compiler_pic_works=yes
8872      fi
8873    fi
8874    $RM conftest*
8875
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8878 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8879
8880 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8881     case $lt_prog_compiler_pic in
8882      "" | " "*) ;;
8883      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8884      esac
8885 else
8886     lt_prog_compiler_pic=
8887      lt_prog_compiler_can_build_shared=no
8888 fi
8889
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902 #
8903 # Check to make sure the static flag actually works.
8904 #
8905 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8908 if ${lt_cv_prog_compiler_static_works+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   lt_cv_prog_compiler_static_works=no
8912    save_LDFLAGS="$LDFLAGS"
8913    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8914    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8915    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8916      # The linker can only warn and ignore the option if not recognized
8917      # So say no if there are warnings
8918      if test -s conftest.err; then
8919        # Append any errors to the config.log.
8920        cat conftest.err 1>&5
8921        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8922        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8923        if diff conftest.exp conftest.er2 >/dev/null; then
8924          lt_cv_prog_compiler_static_works=yes
8925        fi
8926      else
8927        lt_cv_prog_compiler_static_works=yes
8928      fi
8929    fi
8930    $RM -r conftest*
8931    LDFLAGS="$save_LDFLAGS"
8932
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8935 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8936
8937 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8938     :
8939 else
8940     lt_prog_compiler_static=
8941 fi
8942
8943
8944
8945
8946
8947
8948
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8950 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8951 if ${lt_cv_prog_compiler_c_o+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   lt_cv_prog_compiler_c_o=no
8955    $RM -r conftest 2>/dev/null
8956    mkdir conftest
8957    cd conftest
8958    mkdir out
8959    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8960
8961    lt_compiler_flag="-o out/conftest2.$ac_objext"
8962    # Insert the option either (1) after the last *FLAGS variable, or
8963    # (2) before a word containing "conftest.", or (3) at the end.
8964    # Note that $ac_compile itself does not contain backslashes and begins
8965    # with a dollar sign (not a hyphen), so the echo should work correctly.
8966    lt_compile=`echo "$ac_compile" | $SED \
8967    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8969    -e 's:$: $lt_compiler_flag:'`
8970    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8971    (eval "$lt_compile" 2>out/conftest.err)
8972    ac_status=$?
8973    cat out/conftest.err >&5
8974    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8976    then
8977      # The compiler can only warn and ignore the option if not recognized
8978      # So say no if there are warnings
8979      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8980      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8981      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8982        lt_cv_prog_compiler_c_o=yes
8983      fi
8984    fi
8985    chmod u+w . 2>&5
8986    $RM conftest*
8987    # SGI C++ compiler will create directory out/ii_files/ for
8988    # template instantiation
8989    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8990    $RM out/* && rmdir out
8991    cd ..
8992    $RM -r conftest
8993    $RM conftest*
8994
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8997 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8998
8999
9000
9001
9002
9003
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9005 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9006 if ${lt_cv_prog_compiler_c_o+:} false; then :
9007   $as_echo_n "(cached) " >&6
9008 else
9009   lt_cv_prog_compiler_c_o=no
9010    $RM -r conftest 2>/dev/null
9011    mkdir conftest
9012    cd conftest
9013    mkdir out
9014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015
9016    lt_compiler_flag="-o out/conftest2.$ac_objext"
9017    # Insert the option either (1) after the last *FLAGS variable, or
9018    # (2) before a word containing "conftest.", or (3) at the end.
9019    # Note that $ac_compile itself does not contain backslashes and begins
9020    # with a dollar sign (not a hyphen), so the echo should work correctly.
9021    lt_compile=`echo "$ac_compile" | $SED \
9022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024    -e 's:$: $lt_compiler_flag:'`
9025    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026    (eval "$lt_compile" 2>out/conftest.err)
9027    ac_status=$?
9028    cat out/conftest.err >&5
9029    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9031    then
9032      # The compiler can only warn and ignore the option if not recognized
9033      # So say no if there are warnings
9034      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9035      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9036      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9037        lt_cv_prog_compiler_c_o=yes
9038      fi
9039    fi
9040    chmod u+w . 2>&5
9041    $RM conftest*
9042    # SGI C++ compiler will create directory out/ii_files/ for
9043    # template instantiation
9044    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9045    $RM out/* && rmdir out
9046    cd ..
9047    $RM -r conftest
9048    $RM conftest*
9049
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9052 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9053
9054
9055
9056
9057 hard_links="nottested"
9058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9059   # do not overwrite the value of need_locks provided by the user
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9061 $as_echo_n "checking if we can lock with hard links... " >&6; }
9062   hard_links=yes
9063   $RM conftest*
9064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9065   touch conftest.a
9066   ln conftest.a conftest.b 2>&5 || hard_links=no
9067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9069 $as_echo "$hard_links" >&6; }
9070   if test "$hard_links" = no; then
9071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9072 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9073     need_locks=warn
9074   fi
9075 else
9076   need_locks=no
9077 fi
9078
9079
9080
9081
9082
9083
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9086
9087   runpath_var=
9088   allow_undefined_flag=
9089   always_export_symbols=no
9090   archive_cmds=
9091   archive_expsym_cmds=
9092   compiler_needs_object=no
9093   enable_shared_with_static_runtimes=no
9094   export_dynamic_flag_spec=
9095   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9096   hardcode_automatic=no
9097   hardcode_direct=no
9098   hardcode_direct_absolute=no
9099   hardcode_libdir_flag_spec=
9100   hardcode_libdir_separator=
9101   hardcode_minus_L=no
9102   hardcode_shlibpath_var=unsupported
9103   inherit_rpath=no
9104   link_all_deplibs=unknown
9105   module_cmds=
9106   module_expsym_cmds=
9107   old_archive_from_new_cmds=
9108   old_archive_from_expsyms_cmds=
9109   thread_safe_flag_spec=
9110   whole_archive_flag_spec=
9111   # include_expsyms should be a list of space-separated symbols to be *always*
9112   # included in the symbol list
9113   include_expsyms=
9114   # exclude_expsyms can be an extended regexp of symbols to exclude
9115   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9116   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9117   # as well as any symbol that contains `d'.
9118   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9119   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9120   # platforms (ab)use it in PIC code, but their linkers get confused if
9121   # the symbol is explicitly referenced.  Since portable code cannot
9122   # rely on this symbol name, it's probably fine to never include it in
9123   # preloaded symbol tables.
9124   # Exclude shared library initialization/finalization symbols.
9125   extract_expsyms_cmds=
9126
9127   case $host_os in
9128   cygwin* | mingw* | pw32* | cegcc*)
9129     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9130     # When not using gcc, we currently assume that we are using
9131     # Microsoft Visual C++.
9132     if test "$GCC" != yes; then
9133       with_gnu_ld=no
9134     fi
9135     ;;
9136   interix*)
9137     # we just hope/assume this is gcc and not c89 (= MSVC++)
9138     with_gnu_ld=yes
9139     ;;
9140   openbsd*)
9141     with_gnu_ld=no
9142     ;;
9143   linux* | k*bsd*-gnu | gnu*)
9144     link_all_deplibs=no
9145     ;;
9146   esac
9147
9148   ld_shlibs=yes
9149
9150   # On some targets, GNU ld is compatible enough with the native linker
9151   # that we're better off using the native interface for both.
9152   lt_use_gnu_ld_interface=no
9153   if test "$with_gnu_ld" = yes; then
9154     case $host_os in
9155       aix*)
9156         # The AIX port of GNU ld has always aspired to compatibility
9157         # with the native linker.  However, as the warning in the GNU ld
9158         # block says, versions before 2.19.5* couldn't really create working
9159         # shared libraries, regardless of the interface used.
9160         case `$LD -v 2>&1` in
9161           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9162           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9163           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9164           *)
9165             lt_use_gnu_ld_interface=yes
9166             ;;
9167         esac
9168         ;;
9169       *)
9170         lt_use_gnu_ld_interface=yes
9171         ;;
9172     esac
9173   fi
9174
9175   if test "$lt_use_gnu_ld_interface" = yes; then
9176     # If archive_cmds runs LD, not CC, wlarc should be empty
9177     wlarc='${wl}'
9178
9179     # Set some defaults for GNU ld with shared library support. These
9180     # are reset later if shared libraries are not supported. Putting them
9181     # here allows them to be overridden if necessary.
9182     runpath_var=LD_RUN_PATH
9183     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9184     export_dynamic_flag_spec='${wl}--export-dynamic'
9185     # ancient GNU ld didn't support --whole-archive et. al.
9186     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9187       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9188     else
9189       whole_archive_flag_spec=
9190     fi
9191     supports_anon_versioning=no
9192     case `$LD -v 2>&1` in
9193       *GNU\ gold*) supports_anon_versioning=yes ;;
9194       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9195       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9196       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9197       *\ 2.11.*) ;; # other 2.11 versions
9198       *) supports_anon_versioning=yes ;;
9199     esac
9200
9201     # See if GNU ld supports shared libraries.
9202     case $host_os in
9203     aix[3-9]*)
9204       # On AIX/PPC, the GNU linker is very broken
9205       if test "$host_cpu" != ia64; then
9206         ld_shlibs=no
9207         cat <<_LT_EOF 1>&2
9208
9209 *** Warning: the GNU linker, at least up to release 2.19, is reported
9210 *** to be unable to reliably create shared libraries on AIX.
9211 *** Therefore, libtool is disabling shared libraries support.  If you
9212 *** really care for shared libraries, you may want to install binutils
9213 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9214 *** You will then need to restart the configuration process.
9215
9216 _LT_EOF
9217       fi
9218       ;;
9219
9220     amigaos*)
9221       case $host_cpu in
9222       powerpc)
9223             # see comment about AmigaOS4 .so support
9224             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225             archive_expsym_cmds=''
9226         ;;
9227       m68k)
9228             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)'
9229             hardcode_libdir_flag_spec='-L$libdir'
9230             hardcode_minus_L=yes
9231         ;;
9232       esac
9233       ;;
9234
9235     beos*)
9236       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9237         allow_undefined_flag=unsupported
9238         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9239         # support --undefined.  This deserves some investigation.  FIXME
9240         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241       else
9242         ld_shlibs=no
9243       fi
9244       ;;
9245
9246     cygwin* | mingw* | pw32* | cegcc*)
9247       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9248       # as there is no search path for DLLs.
9249       hardcode_libdir_flag_spec='-L$libdir'
9250       export_dynamic_flag_spec='${wl}--export-all-symbols'
9251       allow_undefined_flag=unsupported
9252       always_export_symbols=no
9253       enable_shared_with_static_runtimes=yes
9254       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'
9255       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9256
9257       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9259         # If the export-symbols file already is a .def file (1st line
9260         # is EXPORTS), use it as is; otherwise, prepend...
9261         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9262           cp $export_symbols $output_objdir/$soname.def;
9263         else
9264           echo EXPORTS > $output_objdir/$soname.def;
9265           cat $export_symbols >> $output_objdir/$soname.def;
9266         fi~
9267         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9268       else
9269         ld_shlibs=no
9270       fi
9271       ;;
9272
9273     haiku*)
9274       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275       link_all_deplibs=yes
9276       ;;
9277
9278     interix[3-9]*)
9279       hardcode_direct=no
9280       hardcode_shlibpath_var=no
9281       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9282       export_dynamic_flag_spec='${wl}-E'
9283       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9284       # Instead, shared libraries are loaded at an image base (0x10000000 by
9285       # default) and relocated if they conflict, which is a slow very memory
9286       # consuming and fragmenting process.  To avoid this, we pick a random,
9287       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9288       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9289       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9290       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'
9291       ;;
9292
9293     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9294       tmp_diet=no
9295       if test "$host_os" = linux-dietlibc; then
9296         case $cc_basename in
9297           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9298         esac
9299       fi
9300       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9301          && test "$tmp_diet" = no
9302       then
9303         tmp_addflag=' $pic_flag'
9304         tmp_sharedflag='-shared'
9305         case $cc_basename,$host_cpu in
9306         pgcc*)                          # Portland Group C compiler
9307           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'
9308           tmp_addflag=' $pic_flag'
9309           ;;
9310         pgf77* | pgf90* | pgf95* | pgfortran*)
9311                                         # Portland Group f77 and f90 compilers
9312           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'
9313           tmp_addflag=' $pic_flag -Mnomain' ;;
9314         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9315           tmp_addflag=' -i_dynamic' ;;
9316         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9317           tmp_addflag=' -i_dynamic -nofor_main' ;;
9318         ifc* | ifort*)                  # Intel Fortran compiler
9319           tmp_addflag=' -nofor_main' ;;
9320         lf95*)                          # Lahey Fortran 8.1
9321           whole_archive_flag_spec=
9322           tmp_sharedflag='--shared' ;;
9323         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9324           tmp_sharedflag='-qmkshrobj'
9325           tmp_addflag= ;;
9326         nvcc*)  # Cuda Compiler Driver 2.2
9327           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'
9328           compiler_needs_object=yes
9329           ;;
9330         esac
9331         case `$CC -V 2>&1 | sed 5q` in
9332         *Sun\ C*)                       # Sun C 5.9
9333           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'
9334           compiler_needs_object=yes
9335           tmp_sharedflag='-G' ;;
9336         *Sun\ F*)                       # Sun Fortran 8.3
9337           tmp_sharedflag='-G' ;;
9338         esac
9339         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340
9341         if test "x$supports_anon_versioning" = xyes; then
9342           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9343             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9344             echo "local: *; };" >> $output_objdir/$libname.ver~
9345             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9346         fi
9347
9348         case $cc_basename in
9349         xlf* | bgf* | bgxlf* | mpixlf*)
9350           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9351           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9352           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9354           if test "x$supports_anon_versioning" = xyes; then
9355             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9356               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9357               echo "local: *; };" >> $output_objdir/$libname.ver~
9358               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9359           fi
9360           ;;
9361         esac
9362       else
9363         ld_shlibs=no
9364       fi
9365       ;;
9366
9367     netbsd* | netbsdelf*-gnu)
9368       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9369         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9370         wlarc=
9371       else
9372         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374       fi
9375       ;;
9376
9377     solaris*)
9378       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9379         ld_shlibs=no
9380         cat <<_LT_EOF 1>&2
9381
9382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9383 *** create shared libraries on Solaris systems.  Therefore, libtool
9384 *** is disabling shared libraries support.  We urge you to upgrade GNU
9385 *** binutils to release 2.9.1 or newer.  Another option is to modify
9386 *** your PATH or compiler configuration so that the native linker is
9387 *** used, and then restart.
9388
9389 _LT_EOF
9390       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9393       else
9394         ld_shlibs=no
9395       fi
9396       ;;
9397
9398     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9399       case `$LD -v 2>&1` in
9400         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9401         ld_shlibs=no
9402         cat <<_LT_EOF 1>&2
9403
9404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9405 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9406 *** is disabling shared libraries support.  We urge you to upgrade GNU
9407 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9408 *** your PATH or compiler configuration so that the native linker is
9409 *** used, and then restart.
9410
9411 _LT_EOF
9412         ;;
9413         *)
9414           # For security reasons, it is highly recommended that you always
9415           # use absolute paths for naming shared libraries, and exclude the
9416           # DT_RUNPATH tag from executables and libraries.  But doing so
9417           # requires that you compile everything twice, which is a pain.
9418           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9419             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9420             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9422           else
9423             ld_shlibs=no
9424           fi
9425         ;;
9426       esac
9427       ;;
9428
9429     sunos4*)
9430       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9431       wlarc=
9432       hardcode_direct=yes
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     *)
9437       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9438         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440       else
9441         ld_shlibs=no
9442       fi
9443       ;;
9444     esac
9445
9446     if test "$ld_shlibs" = no; then
9447       runpath_var=
9448       hardcode_libdir_flag_spec=
9449       export_dynamic_flag_spec=
9450       whole_archive_flag_spec=
9451     fi
9452   else
9453     # PORTME fill in a description of your system's linker (not GNU ld)
9454     case $host_os in
9455     aix3*)
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=yes
9458       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'
9459       # Note: this linker hardcodes the directories in LIBPATH if there
9460       # are no directories specified by -L.
9461       hardcode_minus_L=yes
9462       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9463         # Neither direct hardcoding nor static linking is supported with a
9464         # broken collect2.
9465         hardcode_direct=unsupported
9466       fi
9467       ;;
9468
9469     aix[4-9]*)
9470       if test "$host_cpu" = ia64; then
9471         # On IA64, the linker does run time linking by default, so we don't
9472         # have to do anything special.
9473         aix_use_runtimelinking=no
9474         exp_sym_flag='-Bexport'
9475         no_entry_flag=""
9476       else
9477         # If we're using GNU nm, then we don't want the "-C" option.
9478         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9479         # Also, AIX nm treats weak defined symbols like other global
9480         # defined symbols, whereas GNU nm marks them as "W".
9481         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9482           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'
9483         else
9484           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'
9485         fi
9486         aix_use_runtimelinking=no
9487
9488         # Test if we are trying to use run time linking or normal
9489         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9490         # need to do runtime linking.
9491         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9492           for ld_flag in $LDFLAGS; do
9493           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9494             aix_use_runtimelinking=yes
9495             break
9496           fi
9497           done
9498           ;;
9499         esac
9500
9501         exp_sym_flag='-bexport'
9502         no_entry_flag='-bnoentry'
9503       fi
9504
9505       # When large executables or shared objects are built, AIX ld can
9506       # have problems creating the table of contents.  If linking a library
9507       # or program results in "error TOC overflow" add -mminimal-toc to
9508       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9509       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9510
9511       archive_cmds=''
9512       hardcode_direct=yes
9513       hardcode_direct_absolute=yes
9514       hardcode_libdir_separator=':'
9515       link_all_deplibs=yes
9516       file_list_spec='${wl}-f,'
9517
9518       if test "$GCC" = yes; then
9519         case $host_os in aix4.[012]|aix4.[012].*)
9520         # We only want to do this on AIX 4.2 and lower, the check
9521         # below for broken collect2 doesn't work under 4.3+
9522           collect2name=`${CC} -print-prog-name=collect2`
9523           if test -f "$collect2name" &&
9524            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9525           then
9526           # We have reworked collect2
9527           :
9528           else
9529           # We have old collect2
9530           hardcode_direct=unsupported
9531           # It fails to find uninstalled libraries when the uninstalled
9532           # path is not listed in the libpath.  Setting hardcode_minus_L
9533           # to unsupported forces relinking
9534           hardcode_minus_L=yes
9535           hardcode_libdir_flag_spec='-L$libdir'
9536           hardcode_libdir_separator=
9537           fi
9538           ;;
9539         esac
9540         shared_flag='-shared'
9541         if test "$aix_use_runtimelinking" = yes; then
9542           shared_flag="$shared_flag "'${wl}-G'
9543         fi
9544         link_all_deplibs=no
9545       else
9546         # not using gcc
9547         if test "$host_cpu" = ia64; then
9548         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9549         # chokes on -Wl,-G. The following line is correct:
9550           shared_flag='-G'
9551         else
9552           if test "$aix_use_runtimelinking" = yes; then
9553             shared_flag='${wl}-G'
9554           else
9555             shared_flag='${wl}-bM:SRE'
9556           fi
9557         fi
9558       fi
9559
9560       export_dynamic_flag_spec='${wl}-bexpall'
9561       # It seems that -bexpall does not export symbols beginning with
9562       # underscore (_), so it is better to generate a list of symbols to export.
9563       always_export_symbols=yes
9564       if test "$aix_use_runtimelinking" = yes; then
9565         # Warning - without using the other runtime loading flags (-brtl),
9566         # -berok will link without error, but may produce a broken library.
9567         allow_undefined_flag='-berok'
9568         # Determine the default libpath from the value encoded in an
9569         # empty executable.
9570         if test "${lt_cv_aix_libpath+set}" = set; then
9571   aix_libpath=$lt_cv_aix_libpath
9572 else
9573   if ${lt_cv_aix_libpath_+:} false; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h.  */
9578
9579 int
9580 main ()
9581 {
9582
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 if ac_fn_c_try_link "$LINENO"; then :
9588
9589   lt_aix_libpath_sed='
9590       /Import File Strings/,/^$/ {
9591           /^0/ {
9592               s/^0  *\([^ ]*\) *$/\1/
9593               p
9594           }
9595       }'
9596   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9597   # Check for a 64-bit object if we didn't find anything.
9598   if test -z "$lt_cv_aix_libpath_"; then
9599     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9600   fi
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext \
9603     conftest$ac_exeext conftest.$ac_ext
9604   if test -z "$lt_cv_aix_libpath_"; then
9605     lt_cv_aix_libpath_="/usr/lib:/lib"
9606   fi
9607
9608 fi
9609
9610   aix_libpath=$lt_cv_aix_libpath_
9611 fi
9612
9613         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9614         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"
9615       else
9616         if test "$host_cpu" = ia64; then
9617           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9618           allow_undefined_flag="-z nodefs"
9619           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"
9620         else
9621          # Determine the default libpath from the value encoded in an
9622          # empty executable.
9623          if test "${lt_cv_aix_libpath+set}" = set; then
9624   aix_libpath=$lt_cv_aix_libpath
9625 else
9626   if ${lt_cv_aix_libpath_+:} false; then :
9627   $as_echo_n "(cached) " >&6
9628 else
9629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h.  */
9631
9632 int
9633 main ()
9634 {
9635
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_link "$LINENO"; then :
9641
9642   lt_aix_libpath_sed='
9643       /Import File Strings/,/^$/ {
9644           /^0/ {
9645               s/^0  *\([^ ]*\) *$/\1/
9646               p
9647           }
9648       }'
9649   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650   # Check for a 64-bit object if we didn't find anything.
9651   if test -z "$lt_cv_aix_libpath_"; then
9652     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653   fi
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext \
9656     conftest$ac_exeext conftest.$ac_ext
9657   if test -z "$lt_cv_aix_libpath_"; then
9658     lt_cv_aix_libpath_="/usr/lib:/lib"
9659   fi
9660
9661 fi
9662
9663   aix_libpath=$lt_cv_aix_libpath_
9664 fi
9665
9666          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9667           # Warning - without using the other run time loading flags,
9668           # -berok will link without error, but may produce a broken library.
9669           no_undefined_flag=' ${wl}-bernotok'
9670           allow_undefined_flag=' ${wl}-berok'
9671           if test "$with_gnu_ld" = yes; then
9672             # We only use this code for GNU lds that support --whole-archive.
9673             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9674           else
9675             # Exported symbols can be pulled into shared objects from archives
9676             whole_archive_flag_spec='$convenience'
9677           fi
9678           archive_cmds_need_lc=yes
9679           # This is similar to how AIX traditionally builds its shared libraries.
9680           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'
9681         fi
9682       fi
9683       ;;
9684
9685     amigaos*)
9686       case $host_cpu in
9687       powerpc)
9688             # see comment about AmigaOS4 .so support
9689             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690             archive_expsym_cmds=''
9691         ;;
9692       m68k)
9693             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)'
9694             hardcode_libdir_flag_spec='-L$libdir'
9695             hardcode_minus_L=yes
9696         ;;
9697       esac
9698       ;;
9699
9700     bsdi[45]*)
9701       export_dynamic_flag_spec=-rdynamic
9702       ;;
9703
9704     cygwin* | mingw* | pw32* | cegcc*)
9705       # When not using gcc, we currently assume that we are using
9706       # Microsoft Visual C++.
9707       # hardcode_libdir_flag_spec is actually meaningless, as there is
9708       # no search path for DLLs.
9709       case $cc_basename in
9710       cl*)
9711         # Native MSVC
9712         hardcode_libdir_flag_spec=' '
9713         allow_undefined_flag=unsupported
9714         always_export_symbols=yes
9715         file_list_spec='@'
9716         # Tell ltmain to make .lib files, not .a files.
9717         libext=lib
9718         # Tell ltmain to make .dll files, not .so files.
9719         shrext_cmds=".dll"
9720         # FIXME: Setting linknames here is a bad hack.
9721         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9722         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9723             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9724           else
9725             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9726           fi~
9727           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9728           linknames='
9729         # The linker will not automatically build a static lib if we build a DLL.
9730         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9731         enable_shared_with_static_runtimes=yes
9732         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9733         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9734         # Don't use ranlib
9735         old_postinstall_cmds='chmod 644 $oldlib'
9736         postlink_cmds='lt_outputfile="@OUTPUT@"~
9737           lt_tool_outputfile="@TOOL_OUTPUT@"~
9738           case $lt_outputfile in
9739             *.exe|*.EXE) ;;
9740             *)
9741               lt_outputfile="$lt_outputfile.exe"
9742               lt_tool_outputfile="$lt_tool_outputfile.exe"
9743               ;;
9744           esac~
9745           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9746             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9747             $RM "$lt_outputfile.manifest";
9748           fi'
9749         ;;
9750       *)
9751         # Assume MSVC wrapper
9752         hardcode_libdir_flag_spec=' '
9753         allow_undefined_flag=unsupported
9754         # Tell ltmain to make .lib files, not .a files.
9755         libext=lib
9756         # Tell ltmain to make .dll files, not .so files.
9757         shrext_cmds=".dll"
9758         # FIXME: Setting linknames here is a bad hack.
9759         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9760         # The linker will automatically build a .lib file if we build a DLL.
9761         old_archive_from_new_cmds='true'
9762         # FIXME: Should let the user specify the lib program.
9763         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9764         enable_shared_with_static_runtimes=yes
9765         ;;
9766       esac
9767       ;;
9768
9769     darwin* | rhapsody*)
9770
9771
9772   archive_cmds_need_lc=no
9773   hardcode_direct=no
9774   hardcode_automatic=yes
9775   hardcode_shlibpath_var=unsupported
9776   if test "$lt_cv_ld_force_load" = "yes"; then
9777     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\"`'
9778
9779   else
9780     whole_archive_flag_spec=''
9781   fi
9782   link_all_deplibs=yes
9783   allow_undefined_flag="$_lt_dar_allow_undefined"
9784   case $cc_basename in
9785      ifort*) _lt_dar_can_shared=yes ;;
9786      *) _lt_dar_can_shared=$GCC ;;
9787   esac
9788   if test "$_lt_dar_can_shared" = "yes"; then
9789     output_verbose_link_cmd=func_echo_all
9790     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9791     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9792     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}"
9793     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}"
9794
9795   else
9796   ld_shlibs=no
9797   fi
9798
9799       ;;
9800
9801     dgux*)
9802       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803       hardcode_libdir_flag_spec='-L$libdir'
9804       hardcode_shlibpath_var=no
9805       ;;
9806
9807     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9808     # support.  Future versions do this automatically, but an explicit c++rt0.o
9809     # does not break anything, and helps significantly (at the cost of a little
9810     # extra space).
9811     freebsd2.2*)
9812       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9813       hardcode_libdir_flag_spec='-R$libdir'
9814       hardcode_direct=yes
9815       hardcode_shlibpath_var=no
9816       ;;
9817
9818     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9819     freebsd2.*)
9820       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9821       hardcode_direct=yes
9822       hardcode_minus_L=yes
9823       hardcode_shlibpath_var=no
9824       ;;
9825
9826     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9827     freebsd* | dragonfly*)
9828       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9829       hardcode_libdir_flag_spec='-R$libdir'
9830       hardcode_direct=yes
9831       hardcode_shlibpath_var=no
9832       ;;
9833
9834     hpux9*)
9835       if test "$GCC" = yes; then
9836         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'
9837       else
9838         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'
9839       fi
9840       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841       hardcode_libdir_separator=:
9842       hardcode_direct=yes
9843
9844       # hardcode_minus_L: Not really in the search PATH,
9845       # but as the default location of the library.
9846       hardcode_minus_L=yes
9847       export_dynamic_flag_spec='${wl}-E'
9848       ;;
9849
9850     hpux10*)
9851       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9852         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853       else
9854         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9855       fi
9856       if test "$with_gnu_ld" = no; then
9857         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9858         hardcode_libdir_separator=:
9859         hardcode_direct=yes
9860         hardcode_direct_absolute=yes
9861         export_dynamic_flag_spec='${wl}-E'
9862         # hardcode_minus_L: Not really in the search PATH,
9863         # but as the default location of the library.
9864         hardcode_minus_L=yes
9865       fi
9866       ;;
9867
9868     hpux11*)
9869       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9870         case $host_cpu in
9871         hppa*64*)
9872           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873           ;;
9874         ia64*)
9875           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9876           ;;
9877         *)
9878           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879           ;;
9880         esac
9881       else
9882         case $host_cpu in
9883         hppa*64*)
9884           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9885           ;;
9886         ia64*)
9887           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9888           ;;
9889         *)
9890
9891           # Older versions of the 11.00 compiler do not understand -b yet
9892           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9893           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9894 $as_echo_n "checking if $CC understands -b... " >&6; }
9895 if ${lt_cv_prog_compiler__b+:} false; then :
9896   $as_echo_n "(cached) " >&6
9897 else
9898   lt_cv_prog_compiler__b=no
9899    save_LDFLAGS="$LDFLAGS"
9900    LDFLAGS="$LDFLAGS -b"
9901    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9902    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9903      # The linker can only warn and ignore the option if not recognized
9904      # So say no if there are warnings
9905      if test -s conftest.err; then
9906        # Append any errors to the config.log.
9907        cat conftest.err 1>&5
9908        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9909        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9910        if diff conftest.exp conftest.er2 >/dev/null; then
9911          lt_cv_prog_compiler__b=yes
9912        fi
9913      else
9914        lt_cv_prog_compiler__b=yes
9915      fi
9916    fi
9917    $RM -r conftest*
9918    LDFLAGS="$save_LDFLAGS"
9919
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9922 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9923
9924 if test x"$lt_cv_prog_compiler__b" = xyes; then
9925     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9926 else
9927     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9928 fi
9929
9930           ;;
9931         esac
9932       fi
9933       if test "$with_gnu_ld" = no; then
9934         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9935         hardcode_libdir_separator=:
9936
9937         case $host_cpu in
9938         hppa*64*|ia64*)
9939           hardcode_direct=no
9940           hardcode_shlibpath_var=no
9941           ;;
9942         *)
9943           hardcode_direct=yes
9944           hardcode_direct_absolute=yes
9945           export_dynamic_flag_spec='${wl}-E'
9946
9947           # hardcode_minus_L: Not really in the search PATH,
9948           # but as the default location of the library.
9949           hardcode_minus_L=yes
9950           ;;
9951         esac
9952       fi
9953       ;;
9954
9955     irix5* | irix6* | nonstopux*)
9956       if test "$GCC" = yes; then
9957         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'
9958         # Try to use the -exported_symbol ld option, if it does not
9959         # work, assume that -exports_file does not work either and
9960         # implicitly export all symbols.
9961         # This should be the same for all languages, so no per-tag cache variable.
9962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9963 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9964 if ${lt_cv_irix_exported_symbol+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   save_LDFLAGS="$LDFLAGS"
9968            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9969            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h.  */
9971 int foo (void) { return 0; }
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974   lt_cv_irix_exported_symbol=yes
9975 else
9976   lt_cv_irix_exported_symbol=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext \
9979     conftest$ac_exeext conftest.$ac_ext
9980            LDFLAGS="$save_LDFLAGS"
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9983 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9984         if test "$lt_cv_irix_exported_symbol" = yes; then
9985           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'
9986         fi
9987       else
9988         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'
9989         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'
9990       fi
9991       archive_cmds_need_lc='no'
9992       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993       hardcode_libdir_separator=:
9994       inherit_rpath=yes
9995       link_all_deplibs=yes
9996       ;;
9997
9998     netbsd* | netbsdelf*-gnu)
9999       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10000         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10001       else
10002         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10003       fi
10004       hardcode_libdir_flag_spec='-R$libdir'
10005       hardcode_direct=yes
10006       hardcode_shlibpath_var=no
10007       ;;
10008
10009     newsos6)
10010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011       hardcode_direct=yes
10012       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013       hardcode_libdir_separator=:
10014       hardcode_shlibpath_var=no
10015       ;;
10016
10017     *nto* | *qnx*)
10018       ;;
10019
10020     openbsd*)
10021       if test -f /usr/libexec/ld.so; then
10022         hardcode_direct=yes
10023         hardcode_shlibpath_var=no
10024         hardcode_direct_absolute=yes
10025         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10026           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10027           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10028           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029           export_dynamic_flag_spec='${wl}-E'
10030         else
10031           case $host_os in
10032            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10033              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034              hardcode_libdir_flag_spec='-R$libdir'
10035              ;;
10036            *)
10037              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10039              ;;
10040           esac
10041         fi
10042       else
10043         ld_shlibs=no
10044       fi
10045       ;;
10046
10047     os2*)
10048       hardcode_libdir_flag_spec='-L$libdir'
10049       hardcode_minus_L=yes
10050       allow_undefined_flag=unsupported
10051       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'
10052       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10053       ;;
10054
10055     osf3*)
10056       if test "$GCC" = yes; then
10057         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10058         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'
10059       else
10060         allow_undefined_flag=' -expect_unresolved \*'
10061         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'
10062       fi
10063       archive_cmds_need_lc='no'
10064       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065       hardcode_libdir_separator=:
10066       ;;
10067
10068     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10069       if test "$GCC" = yes; then
10070         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10071         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'
10072         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073       else
10074         allow_undefined_flag=' -expect_unresolved \*'
10075         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'
10076         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~
10077         $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'
10078
10079         # Both c and cxx compiler support -rpath directly
10080         hardcode_libdir_flag_spec='-rpath $libdir'
10081       fi
10082       archive_cmds_need_lc='no'
10083       hardcode_libdir_separator=:
10084       ;;
10085
10086     solaris*)
10087       no_undefined_flag=' -z defs'
10088       if test "$GCC" = yes; then
10089         wlarc='${wl}'
10090         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092           $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'
10093       else
10094         case `$CC -V 2>&1` in
10095         *"Compilers 5.0"*)
10096           wlarc=''
10097           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10099           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10100           ;;
10101         *)
10102           wlarc='${wl}'
10103           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10105           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10106           ;;
10107         esac
10108       fi
10109       hardcode_libdir_flag_spec='-R$libdir'
10110       hardcode_shlibpath_var=no
10111       case $host_os in
10112       solaris2.[0-5] | solaris2.[0-5].*) ;;
10113       *)
10114         # The compiler driver will combine and reorder linker options,
10115         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10116         # but is careful enough not to reorder.
10117         # Supported since Solaris 2.6 (maybe 2.5.1?)
10118         if test "$GCC" = yes; then
10119           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10120         else
10121           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10122         fi
10123         ;;
10124       esac
10125       link_all_deplibs=yes
10126       ;;
10127
10128     sunos4*)
10129       if test "x$host_vendor" = xsequent; then
10130         # Use $CC to link under sequent, because it throws in some extra .o
10131         # files that make .init and .fini sections work.
10132         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133       else
10134         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10135       fi
10136       hardcode_libdir_flag_spec='-L$libdir'
10137       hardcode_direct=yes
10138       hardcode_minus_L=yes
10139       hardcode_shlibpath_var=no
10140       ;;
10141
10142     sysv4)
10143       case $host_vendor in
10144         sni)
10145           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146           hardcode_direct=yes # is this really true???
10147         ;;
10148         siemens)
10149           ## LD is ld it makes a PLAMLIB
10150           ## CC just makes a GrossModule.
10151           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10152           reload_cmds='$CC -r -o $output$reload_objs'
10153           hardcode_direct=no
10154         ;;
10155         motorola)
10156           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10158         ;;
10159       esac
10160       runpath_var='LD_RUN_PATH'
10161       hardcode_shlibpath_var=no
10162       ;;
10163
10164     sysv4.3*)
10165       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166       hardcode_shlibpath_var=no
10167       export_dynamic_flag_spec='-Bexport'
10168       ;;
10169
10170     sysv4*MP*)
10171       if test -d /usr/nec; then
10172         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173         hardcode_shlibpath_var=no
10174         runpath_var=LD_RUN_PATH
10175         hardcode_runpath_var=yes
10176         ld_shlibs=yes
10177       fi
10178       ;;
10179
10180     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10181       no_undefined_flag='${wl}-z,text'
10182       archive_cmds_need_lc=no
10183       hardcode_shlibpath_var=no
10184       runpath_var='LD_RUN_PATH'
10185
10186       if test "$GCC" = yes; then
10187         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189       else
10190         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192       fi
10193       ;;
10194
10195     sysv5* | sco3.2v5* | sco5v6*)
10196       # Note: We can NOT use -z defs as we might desire, because we do not
10197       # link with -lc, and that would cause any symbols used from libc to
10198       # always be unresolved, which means just about no library would
10199       # ever link correctly.  If we're not using GNU ld we use -z text
10200       # though, which does catch some bad symbols but isn't as heavy-handed
10201       # as -z defs.
10202       no_undefined_flag='${wl}-z,text'
10203       allow_undefined_flag='${wl}-z,nodefs'
10204       archive_cmds_need_lc=no
10205       hardcode_shlibpath_var=no
10206       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10207       hardcode_libdir_separator=':'
10208       link_all_deplibs=yes
10209       export_dynamic_flag_spec='${wl}-Bexport'
10210       runpath_var='LD_RUN_PATH'
10211
10212       if test "$GCC" = yes; then
10213         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215       else
10216         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218       fi
10219       ;;
10220
10221     uts4*)
10222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223       hardcode_libdir_flag_spec='-L$libdir'
10224       hardcode_shlibpath_var=no
10225       ;;
10226
10227     *)
10228       ld_shlibs=no
10229       ;;
10230     esac
10231
10232     if test x$host_vendor = xsni; then
10233       case $host in
10234       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10235         export_dynamic_flag_spec='${wl}-Blargedynsym'
10236         ;;
10237       esac
10238     fi
10239   fi
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10242 $as_echo "$ld_shlibs" >&6; }
10243 test "$ld_shlibs" = no && can_build_shared=no
10244
10245 with_gnu_ld=$with_gnu_ld
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261 #
10262 # Do we need to explicitly link libc?
10263 #
10264 case "x$archive_cmds_need_lc" in
10265 x|xyes)
10266   # Assume -lc should be added
10267   archive_cmds_need_lc=yes
10268
10269   if test "$enable_shared" = yes && test "$GCC" = yes; then
10270     case $archive_cmds in
10271     *'~'*)
10272       # FIXME: we may have to deal with multi-command sequences.
10273       ;;
10274     '$CC '*)
10275       # Test whether the compiler implicitly links with -lc since on some
10276       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10277       # to ld, don't add -lc before -lgcc.
10278       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10279 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10280 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   $RM conftest*
10284         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10285
10286         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10287   (eval $ac_compile) 2>&5
10288   ac_status=$?
10289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10290   test $ac_status = 0; } 2>conftest.err; then
10291           soname=conftest
10292           lib=conftest
10293           libobjs=conftest.$ac_objext
10294           deplibs=
10295           wl=$lt_prog_compiler_wl
10296           pic_flag=$lt_prog_compiler_pic
10297           compiler_flags=-v
10298           linker_flags=-v
10299           verstring=
10300           output_objdir=.
10301           libname=conftest
10302           lt_save_allow_undefined_flag=$allow_undefined_flag
10303           allow_undefined_flag=
10304           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10305   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10306   ac_status=$?
10307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308   test $ac_status = 0; }
10309           then
10310             lt_cv_archive_cmds_need_lc=no
10311           else
10312             lt_cv_archive_cmds_need_lc=yes
10313           fi
10314           allow_undefined_flag=$lt_save_allow_undefined_flag
10315         else
10316           cat conftest.err 1>&5
10317         fi
10318         $RM conftest*
10319
10320 fi
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10322 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10323       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10324       ;;
10325     esac
10326   fi
10327   ;;
10328 esac
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10482 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10483
10484 if test "$GCC" = yes; then
10485   case $host_os in
10486     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10487     *) lt_awk_arg="/^libraries:/" ;;
10488   esac
10489   case $host_os in
10490     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10491     *) lt_sed_strip_eq="s,=/,/,g" ;;
10492   esac
10493   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10494   case $lt_search_path_spec in
10495   *\;*)
10496     # if the path contains ";" then we assume it to be the separator
10497     # otherwise default to the standard path separator (i.e. ":") - it is
10498     # assumed that no part of a normal pathname contains ";" but that should
10499     # okay in the real world where ";" in dirpaths is itself problematic.
10500     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10501     ;;
10502   *)
10503     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10504     ;;
10505   esac
10506   # Ok, now we have the path, separated by spaces, we can step through it
10507   # and add multilib dir if necessary.
10508   lt_tmp_lt_search_path_spec=
10509   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10510   for lt_sys_path in $lt_search_path_spec; do
10511     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10512       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10513     else
10514       test -d "$lt_sys_path" && \
10515         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10516     fi
10517   done
10518   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10519 BEGIN {RS=" "; FS="/|\n";} {
10520   lt_foo="";
10521   lt_count=0;
10522   for (lt_i = NF; lt_i > 0; lt_i--) {
10523     if ($lt_i != "" && $lt_i != ".") {
10524       if ($lt_i == "..") {
10525         lt_count++;
10526       } else {
10527         if (lt_count == 0) {
10528           lt_foo="/" $lt_i lt_foo;
10529         } else {
10530           lt_count--;
10531         }
10532       }
10533     }
10534   }
10535   if (lt_foo != "") { lt_freq[lt_foo]++; }
10536   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10537 }'`
10538   # AWK program above erroneously prepends '/' to C:/dos/paths
10539   # for these hosts.
10540   case $host_os in
10541     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10542       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10543   esac
10544   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10545 else
10546   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10547 fi
10548 library_names_spec=
10549 libname_spec='lib$name'
10550 soname_spec=
10551 shrext_cmds=".so"
10552 postinstall_cmds=
10553 postuninstall_cmds=
10554 finish_cmds=
10555 finish_eval=
10556 shlibpath_var=
10557 shlibpath_overrides_runpath=unknown
10558 version_type=none
10559 dynamic_linker="$host_os ld.so"
10560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10561 need_lib_prefix=unknown
10562 hardcode_into_libs=no
10563
10564 # when you set need_version to no, make sure it does not cause -set_version
10565 # flags to be left without arguments
10566 need_version=unknown
10567
10568 case $host_os in
10569 aix3*)
10570   version_type=linux # correct to gnu/linux during the next big refactor
10571   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10572   shlibpath_var=LIBPATH
10573
10574   # AIX 3 has no versioning support, so we append a major version to the name.
10575   soname_spec='${libname}${release}${shared_ext}$major'
10576   ;;
10577
10578 aix[4-9]*)
10579   version_type=linux # correct to gnu/linux during the next big refactor
10580   need_lib_prefix=no
10581   need_version=no
10582   hardcode_into_libs=yes
10583   if test "$host_cpu" = ia64; then
10584     # AIX 5 supports IA64
10585     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10586     shlibpath_var=LD_LIBRARY_PATH
10587   else
10588     # With GCC up to 2.95.x, collect2 would create an import file
10589     # for dependence libraries.  The import file would start with
10590     # the line `#! .'.  This would cause the generated library to
10591     # depend on `.', always an invalid library.  This was fixed in
10592     # development snapshots of GCC prior to 3.0.
10593     case $host_os in
10594       aix4 | aix4.[01] | aix4.[01].*)
10595       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10596            echo ' yes '
10597            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10598         :
10599       else
10600         can_build_shared=no
10601       fi
10602       ;;
10603     esac
10604     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10605     # soname into executable. Probably we can add versioning support to
10606     # collect2, so additional links can be useful in future.
10607     if test "$aix_use_runtimelinking" = yes; then
10608       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10609       # instead of lib<name>.a to let people know that these are not
10610       # typical AIX shared libraries.
10611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612     else
10613       # We preserve .a as extension for shared libraries through AIX4.2
10614       # and later when we are not doing run time linking.
10615       library_names_spec='${libname}${release}.a $libname.a'
10616       soname_spec='${libname}${release}${shared_ext}$major'
10617     fi
10618     shlibpath_var=LIBPATH
10619   fi
10620   ;;
10621
10622 amigaos*)
10623   case $host_cpu in
10624   powerpc)
10625     # Since July 2007 AmigaOS4 officially supports .so libraries.
10626     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628     ;;
10629   m68k)
10630     library_names_spec='$libname.ixlibrary $libname.a'
10631     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10632     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'
10633     ;;
10634   esac
10635   ;;
10636
10637 beos*)
10638   library_names_spec='${libname}${shared_ext}'
10639   dynamic_linker="$host_os ld.so"
10640   shlibpath_var=LIBRARY_PATH
10641   ;;
10642
10643 bsdi[45]*)
10644   version_type=linux # correct to gnu/linux during the next big refactor
10645   need_version=no
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647   soname_spec='${libname}${release}${shared_ext}$major'
10648   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10649   shlibpath_var=LD_LIBRARY_PATH
10650   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10651   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10652   # the default ld.so.conf also contains /usr/contrib/lib and
10653   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10654   # libtool to hard-code these into programs
10655   ;;
10656
10657 cygwin* | mingw* | pw32* | cegcc*)
10658   version_type=windows
10659   shrext_cmds=".dll"
10660   need_version=no
10661   need_lib_prefix=no
10662
10663   case $GCC,$cc_basename in
10664   yes,*)
10665     # gcc
10666     library_names_spec='$libname.dll.a'
10667     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10668     postinstall_cmds='base_file=`basename \${file}`~
10669       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10670       dldir=$destdir/`dirname \$dlpath`~
10671       test -d \$dldir || mkdir -p \$dldir~
10672       $install_prog $dir/$dlname \$dldir/$dlname~
10673       chmod a+x \$dldir/$dlname~
10674       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10675         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10676       fi'
10677     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10678       dlpath=$dir/\$dldll~
10679        $RM \$dlpath'
10680     shlibpath_overrides_runpath=yes
10681
10682     case $host_os in
10683     cygwin*)
10684       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10685       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10686
10687       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10688       ;;
10689     mingw* | cegcc*)
10690       # MinGW DLLs use traditional 'lib' prefix
10691       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10692       ;;
10693     pw32*)
10694       # pw32 DLLs use 'pw' prefix rather than 'lib'
10695       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696       ;;
10697     esac
10698     dynamic_linker='Win32 ld.exe'
10699     ;;
10700
10701   *,cl*)
10702     # Native MSVC
10703     libname_spec='$name'
10704     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10705     library_names_spec='${libname}.dll.lib'
10706
10707     case $build_os in
10708     mingw*)
10709       sys_lib_search_path_spec=
10710       lt_save_ifs=$IFS
10711       IFS=';'
10712       for lt_path in $LIB
10713       do
10714         IFS=$lt_save_ifs
10715         # Let DOS variable expansion print the short 8.3 style file name.
10716         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10717         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10718       done
10719       IFS=$lt_save_ifs
10720       # Convert to MSYS style.
10721       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10722       ;;
10723     cygwin*)
10724       # Convert to unix form, then to dos form, then back to unix form
10725       # but this time dos style (no spaces!) so that the unix form looks
10726       # like /cygdrive/c/PROGRA~1:/cygdr...
10727       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10728       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10729       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10730       ;;
10731     *)
10732       sys_lib_search_path_spec="$LIB"
10733       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10734         # It is most probably a Windows format PATH.
10735         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10736       else
10737         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10738       fi
10739       # FIXME: find the short name or the path components, as spaces are
10740       # common. (e.g. "Program Files" -> "PROGRA~1")
10741       ;;
10742     esac
10743
10744     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10745     postinstall_cmds='base_file=`basename \${file}`~
10746       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10747       dldir=$destdir/`dirname \$dlpath`~
10748       test -d \$dldir || mkdir -p \$dldir~
10749       $install_prog $dir/$dlname \$dldir/$dlname'
10750     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751       dlpath=$dir/\$dldll~
10752        $RM \$dlpath'
10753     shlibpath_overrides_runpath=yes
10754     dynamic_linker='Win32 link.exe'
10755     ;;
10756
10757   *)
10758     # Assume MSVC wrapper
10759     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10760     dynamic_linker='Win32 ld.exe'
10761     ;;
10762   esac
10763   # FIXME: first we should search . and the directory the executable is in
10764   shlibpath_var=PATH
10765   ;;
10766
10767 darwin* | rhapsody*)
10768   dynamic_linker="$host_os dyld"
10769   version_type=darwin
10770   need_lib_prefix=no
10771   need_version=no
10772   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10773   soname_spec='${libname}${release}${major}$shared_ext'
10774   shlibpath_overrides_runpath=yes
10775   shlibpath_var=DYLD_LIBRARY_PATH
10776   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10777
10778   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10779   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10780   ;;
10781
10782 dgux*)
10783   version_type=linux # correct to gnu/linux during the next big refactor
10784   need_lib_prefix=no
10785   need_version=no
10786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10787   soname_spec='${libname}${release}${shared_ext}$major'
10788   shlibpath_var=LD_LIBRARY_PATH
10789   ;;
10790
10791 freebsd* | dragonfly*)
10792   # DragonFly does not have aout.  When/if they implement a new
10793   # versioning mechanism, adjust this.
10794   if test -x /usr/bin/objformat; then
10795     objformat=`/usr/bin/objformat`
10796   else
10797     case $host_os in
10798     freebsd[23].*) objformat=aout ;;
10799     *) objformat=elf ;;
10800     esac
10801   fi
10802   version_type=freebsd-$objformat
10803   case $version_type in
10804     freebsd-elf*)
10805       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10806       need_version=no
10807       need_lib_prefix=no
10808       ;;
10809     freebsd-*)
10810       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10811       need_version=yes
10812       ;;
10813   esac
10814   shlibpath_var=LD_LIBRARY_PATH
10815   case $host_os in
10816   freebsd2.*)
10817     shlibpath_overrides_runpath=yes
10818     ;;
10819   freebsd3.[01]* | freebsdelf3.[01]*)
10820     shlibpath_overrides_runpath=yes
10821     hardcode_into_libs=yes
10822     ;;
10823   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10824   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10825     shlibpath_overrides_runpath=no
10826     hardcode_into_libs=yes
10827     ;;
10828   *) # from 4.6 on, and DragonFly
10829     shlibpath_overrides_runpath=yes
10830     hardcode_into_libs=yes
10831     ;;
10832   esac
10833   ;;
10834
10835 haiku*)
10836   version_type=linux # correct to gnu/linux during the next big refactor
10837   need_lib_prefix=no
10838   need_version=no
10839   dynamic_linker="$host_os runtime_loader"
10840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10841   soname_spec='${libname}${release}${shared_ext}$major'
10842   shlibpath_var=LIBRARY_PATH
10843   shlibpath_overrides_runpath=yes
10844   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10845   hardcode_into_libs=yes
10846   ;;
10847
10848 hpux9* | hpux10* | hpux11*)
10849   # Give a soname corresponding to the major version so that dld.sl refuses to
10850   # link against other versions.
10851   version_type=sunos
10852   need_lib_prefix=no
10853   need_version=no
10854   case $host_cpu in
10855   ia64*)
10856     shrext_cmds='.so'
10857     hardcode_into_libs=yes
10858     dynamic_linker="$host_os dld.so"
10859     shlibpath_var=LD_LIBRARY_PATH
10860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862     soname_spec='${libname}${release}${shared_ext}$major'
10863     if test "X$HPUX_IA64_MODE" = X32; then
10864       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10865     else
10866       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10867     fi
10868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869     ;;
10870   hppa*64*)
10871     shrext_cmds='.sl'
10872     hardcode_into_libs=yes
10873     dynamic_linker="$host_os dld.sl"
10874     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877     soname_spec='${libname}${release}${shared_ext}$major'
10878     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10879     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10880     ;;
10881   *)
10882     shrext_cmds='.sl'
10883     dynamic_linker="$host_os dld.sl"
10884     shlibpath_var=SHLIB_PATH
10885     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
10889   esac
10890   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10891   postinstall_cmds='chmod 555 $lib'
10892   # or fails outright, so override atomically:
10893   install_override_mode=555
10894   ;;
10895
10896 interix[3-9]*)
10897   version_type=linux # correct to gnu/linux during the next big refactor
10898   need_lib_prefix=no
10899   need_version=no
10900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10901   soname_spec='${libname}${release}${shared_ext}$major'
10902   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10903   shlibpath_var=LD_LIBRARY_PATH
10904   shlibpath_overrides_runpath=no
10905   hardcode_into_libs=yes
10906   ;;
10907
10908 irix5* | irix6* | nonstopux*)
10909   case $host_os in
10910     nonstopux*) version_type=nonstopux ;;
10911     *)
10912         if test "$lt_cv_prog_gnu_ld" = yes; then
10913                 version_type=linux # correct to gnu/linux during the next big refactor
10914         else
10915                 version_type=irix
10916         fi ;;
10917   esac
10918   need_lib_prefix=no
10919   need_version=no
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10922   case $host_os in
10923   irix5* | nonstopux*)
10924     libsuff= shlibsuff=
10925     ;;
10926   *)
10927     case $LD in # libtool.m4 will add one of these switches to LD
10928     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10929       libsuff= shlibsuff= libmagic=32-bit;;
10930     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10931       libsuff=32 shlibsuff=N32 libmagic=N32;;
10932     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10933       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10934     *) libsuff= shlibsuff= libmagic=never-match;;
10935     esac
10936     ;;
10937   esac
10938   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10939   shlibpath_overrides_runpath=no
10940   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10941   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10942   hardcode_into_libs=yes
10943   ;;
10944
10945 # No shared lib support for Linux oldld, aout, or coff.
10946 linux*oldld* | linux*aout* | linux*coff*)
10947   dynamic_linker=no
10948   ;;
10949
10950 # This must be glibc/ELF.
10951 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10952   version_type=linux # correct to gnu/linux during the next big refactor
10953   need_lib_prefix=no
10954   need_version=no
10955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956   soname_spec='${libname}${release}${shared_ext}$major'
10957   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10958   shlibpath_var=LD_LIBRARY_PATH
10959   shlibpath_overrides_runpath=no
10960
10961   # Some binutils ld are patched to set DT_RUNPATH
10962   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   lt_cv_shlibpath_overrides_runpath=no
10966     save_LDFLAGS=$LDFLAGS
10967     save_libdir=$libdir
10968     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10969          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10970     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h.  */
10972
10973 int
10974 main ()
10975 {
10976
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"; then :
10982   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10983   lt_cv_shlibpath_overrides_runpath=yes
10984 fi
10985 fi
10986 rm -f core conftest.err conftest.$ac_objext \
10987     conftest$ac_exeext conftest.$ac_ext
10988     LDFLAGS=$save_LDFLAGS
10989     libdir=$save_libdir
10990
10991 fi
10992
10993   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10994
10995   # This implies no fast_install, which is unacceptable.
10996   # Some rework will be needed to allow for fast_install
10997   # before this can be enabled.
10998   hardcode_into_libs=yes
10999
11000   # Append ld.so.conf contents to the search path
11001   if test -f /etc/ld.so.conf; then
11002     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' ' '`
11003     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11004   fi
11005
11006   # We used to test for /lib/ld.so.1 and disable shared libraries on
11007   # powerpc, because MkLinux only supported shared libraries with the
11008   # GNU dynamic linker.  Since this was broken with cross compilers,
11009   # most powerpc-linux boxes support dynamic linking these days and
11010   # people can always --disable-shared, the test was removed, and we
11011   # assume the GNU/Linux dynamic linker is in use.
11012   dynamic_linker='GNU/Linux ld.so'
11013   ;;
11014
11015 netbsdelf*-gnu)
11016   version_type=linux
11017   need_lib_prefix=no
11018   need_version=no
11019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11020   soname_spec='${libname}${release}${shared_ext}$major'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   shlibpath_overrides_runpath=no
11023   hardcode_into_libs=yes
11024   dynamic_linker='NetBSD ld.elf_so'
11025   ;;
11026
11027 netbsd*)
11028   version_type=sunos
11029   need_lib_prefix=no
11030   need_version=no
11031   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11034     dynamic_linker='NetBSD (a.out) ld.so'
11035   else
11036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037     soname_spec='${libname}${release}${shared_ext}$major'
11038     dynamic_linker='NetBSD ld.elf_so'
11039   fi
11040   shlibpath_var=LD_LIBRARY_PATH
11041   shlibpath_overrides_runpath=yes
11042   hardcode_into_libs=yes
11043   ;;
11044
11045 newsos6)
11046   version_type=linux # correct to gnu/linux during the next big refactor
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=yes
11050   ;;
11051
11052 *nto* | *qnx*)
11053   version_type=qnx
11054   need_lib_prefix=no
11055   need_version=no
11056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057   soname_spec='${libname}${release}${shared_ext}$major'
11058   shlibpath_var=LD_LIBRARY_PATH
11059   shlibpath_overrides_runpath=no
11060   hardcode_into_libs=yes
11061   dynamic_linker='ldqnx.so'
11062   ;;
11063
11064 openbsd*)
11065   version_type=sunos
11066   sys_lib_dlsearch_path_spec="/usr/lib"
11067   need_lib_prefix=no
11068   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11069   case $host_os in
11070     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11071     *)                          need_version=no  ;;
11072   esac
11073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11075   shlibpath_var=LD_LIBRARY_PATH
11076   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077     case $host_os in
11078       openbsd2.[89] | openbsd2.[89].*)
11079         shlibpath_overrides_runpath=no
11080         ;;
11081       *)
11082         shlibpath_overrides_runpath=yes
11083         ;;
11084       esac
11085   else
11086     shlibpath_overrides_runpath=yes
11087   fi
11088   ;;
11089
11090 os2*)
11091   libname_spec='$name'
11092   shrext_cmds=".dll"
11093   need_lib_prefix=no
11094   library_names_spec='$libname${shared_ext} $libname.a'
11095   dynamic_linker='OS/2 ld.exe'
11096   shlibpath_var=LIBPATH
11097   ;;
11098
11099 osf3* | osf4* | osf5*)
11100   version_type=osf
11101   need_lib_prefix=no
11102   need_version=no
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11107   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11108   ;;
11109
11110 rdos*)
11111   dynamic_linker=no
11112   ;;
11113
11114 solaris*)
11115   version_type=linux # correct to gnu/linux during the next big refactor
11116   need_lib_prefix=no
11117   need_version=no
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119   soname_spec='${libname}${release}${shared_ext}$major'
11120   shlibpath_var=LD_LIBRARY_PATH
11121   shlibpath_overrides_runpath=yes
11122   hardcode_into_libs=yes
11123   # ldd complains unless libraries are executable
11124   postinstall_cmds='chmod +x $lib'
11125   ;;
11126
11127 sunos4*)
11128   version_type=sunos
11129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11131   shlibpath_var=LD_LIBRARY_PATH
11132   shlibpath_overrides_runpath=yes
11133   if test "$with_gnu_ld" = yes; then
11134     need_lib_prefix=no
11135   fi
11136   need_version=yes
11137   ;;
11138
11139 sysv4 | sysv4.3*)
11140   version_type=linux # correct to gnu/linux during the next big refactor
11141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142   soname_spec='${libname}${release}${shared_ext}$major'
11143   shlibpath_var=LD_LIBRARY_PATH
11144   case $host_vendor in
11145     sni)
11146       shlibpath_overrides_runpath=no
11147       need_lib_prefix=no
11148       runpath_var=LD_RUN_PATH
11149       ;;
11150     siemens)
11151       need_lib_prefix=no
11152       ;;
11153     motorola)
11154       need_lib_prefix=no
11155       need_version=no
11156       shlibpath_overrides_runpath=no
11157       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11158       ;;
11159   esac
11160   ;;
11161
11162 sysv4*MP*)
11163   if test -d /usr/nec ;then
11164     version_type=linux # correct to gnu/linux during the next big refactor
11165     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11166     soname_spec='$libname${shared_ext}.$major'
11167     shlibpath_var=LD_LIBRARY_PATH
11168   fi
11169   ;;
11170
11171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172   version_type=freebsd-elf
11173   need_lib_prefix=no
11174   need_version=no
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   shlibpath_overrides_runpath=yes
11179   hardcode_into_libs=yes
11180   if test "$with_gnu_ld" = yes; then
11181     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11182   else
11183     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11184     case $host_os in
11185       sco3.2v5*)
11186         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11187         ;;
11188     esac
11189   fi
11190   sys_lib_dlsearch_path_spec='/usr/lib'
11191   ;;
11192
11193 tpf*)
11194   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11195   version_type=linux # correct to gnu/linux during the next big refactor
11196   need_lib_prefix=no
11197   need_version=no
11198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199   shlibpath_var=LD_LIBRARY_PATH
11200   shlibpath_overrides_runpath=no
11201   hardcode_into_libs=yes
11202   ;;
11203
11204 uts4*)
11205   version_type=linux # correct to gnu/linux during the next big refactor
11206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207   soname_spec='${libname}${release}${shared_ext}$major'
11208   shlibpath_var=LD_LIBRARY_PATH
11209   ;;
11210
11211 *)
11212   dynamic_linker=no
11213   ;;
11214 esac
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11216 $as_echo "$dynamic_linker" >&6; }
11217 test "$dynamic_linker" = no && can_build_shared=no
11218
11219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11220 if test "$GCC" = yes; then
11221   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11222 fi
11223
11224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11225   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226 fi
11227 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11228   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11229 fi
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11323 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11324 hardcode_action=
11325 if test -n "$hardcode_libdir_flag_spec" ||
11326    test -n "$runpath_var" ||
11327    test "X$hardcode_automatic" = "Xyes" ; then
11328
11329   # We can hardcode non-existent directories.
11330   if test "$hardcode_direct" != no &&
11331      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11332      # have to relink, otherwise we might link with an installed library
11333      # when we should be linking with a yet-to-be-installed one
11334      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11335      test "$hardcode_minus_L" != no; then
11336     # Linking always hardcodes the temporary library directory.
11337     hardcode_action=relink
11338   else
11339     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11340     hardcode_action=immediate
11341   fi
11342 else
11343   # We cannot hardcode anything, or else we can only hardcode existing
11344   # directories.
11345   hardcode_action=unsupported
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11348 $as_echo "$hardcode_action" >&6; }
11349
11350 if test "$hardcode_action" = relink ||
11351    test "$inherit_rpath" = yes; then
11352   # Fast installation is not supported
11353   enable_fast_install=no
11354 elif test "$shlibpath_overrides_runpath" = yes ||
11355      test "$enable_shared" = no; then
11356   # Fast installation is not necessary
11357   enable_fast_install=needless
11358 fi
11359
11360
11361
11362
11363
11364
11365   if test "x$enable_dlopen" != xyes; then
11366   enable_dlopen=unknown
11367   enable_dlopen_self=unknown
11368   enable_dlopen_self_static=unknown
11369 else
11370   lt_cv_dlopen=no
11371   lt_cv_dlopen_libs=
11372
11373   case $host_os in
11374   beos*)
11375     lt_cv_dlopen="load_add_on"
11376     lt_cv_dlopen_libs=
11377     lt_cv_dlopen_self=yes
11378     ;;
11379
11380   mingw* | pw32* | cegcc*)
11381     lt_cv_dlopen="LoadLibrary"
11382     lt_cv_dlopen_libs=
11383     ;;
11384
11385   cygwin*)
11386     lt_cv_dlopen="dlopen"
11387     lt_cv_dlopen_libs=
11388     ;;
11389
11390   darwin*)
11391   # if libdl is installed we need to link against it
11392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11394 if ${ac_cv_lib_dl_dlopen+:} false; then :
11395   $as_echo_n "(cached) " >&6
11396 else
11397   ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldl  $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h.  */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403    Use char because int might match the return type of a GCC
11404    builtin and then its argument prototype would still apply.  */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dlopen ();
11409 int
11410 main ()
11411 {
11412 return dlopen ();
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418   ac_cv_lib_dl_dlopen=yes
11419 else
11420   ac_cv_lib_dl_dlopen=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423     conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11429   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430 else
11431
11432     lt_cv_dlopen="dyld"
11433     lt_cv_dlopen_libs=
11434     lt_cv_dlopen_self=yes
11435
11436 fi
11437
11438     ;;
11439
11440   *)
11441     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11442 if test "x$ac_cv_func_shl_load" = xyes; then :
11443   lt_cv_dlopen="shl_load"
11444 else
11445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11446 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11447 if ${ac_cv_lib_dld_shl_load+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldld  $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456    Use char because int might match the return type of a GCC
11457    builtin and then its argument prototype would still apply.  */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char shl_load ();
11462 int
11463 main ()
11464 {
11465 return shl_load ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471   ac_cv_lib_dld_shl_load=yes
11472 else
11473   ac_cv_lib_dld_shl_load=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476     conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11480 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11481 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11482   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11483 else
11484   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11485 if test "x$ac_cv_func_dlopen" = xyes; then :
11486   lt_cv_dlopen="dlopen"
11487 else
11488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11490 if ${ac_cv_lib_dl_dlopen+:} false; then :
11491   $as_echo_n "(cached) " >&6
11492 else
11493   ac_check_lib_save_LIBS=$LIBS
11494 LIBS="-ldl  $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h.  */
11497
11498 /* Override any GCC internal prototype to avoid an error.
11499    Use char because int might match the return type of a GCC
11500    builtin and then its argument prototype would still apply.  */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char dlopen ();
11505 int
11506 main ()
11507 {
11508 return dlopen ();
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514   ac_cv_lib_dl_dlopen=yes
11515 else
11516   ac_cv_lib_dl_dlopen=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext \
11519     conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11525   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526 else
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11528 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11529 if ${ac_cv_lib_svld_dlopen+:} false; then :
11530   $as_echo_n "(cached) " >&6
11531 else
11532   ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-lsvld  $LIBS"
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h.  */
11536
11537 /* Override any GCC internal prototype to avoid an error.
11538    Use char because int might match the return type of a GCC
11539    builtin and then its argument prototype would still apply.  */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 char dlopen ();
11544 int
11545 main ()
11546 {
11547 return dlopen ();
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553   ac_cv_lib_svld_dlopen=yes
11554 else
11555   ac_cv_lib_svld_dlopen=no
11556 fi
11557 rm -f core conftest.err conftest.$ac_objext \
11558     conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11562 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11563 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565 else
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11567 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11568 if ${ac_cv_lib_dld_dld_link+:} false; then :
11569   $as_echo_n "(cached) " >&6
11570 else
11571   ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldld  $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h.  */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577    Use char because int might match the return type of a GCC
11578    builtin and then its argument prototype would still apply.  */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dld_link ();
11583 int
11584 main ()
11585 {
11586 return dld_link ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592   ac_cv_lib_dld_dld_link=yes
11593 else
11594   ac_cv_lib_dld_dld_link=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597     conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11601 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11602 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11603   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11604 fi
11605
11606
11607 fi
11608
11609
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621     ;;
11622   esac
11623
11624   if test "x$lt_cv_dlopen" != xno; then
11625     enable_dlopen=yes
11626   else
11627     enable_dlopen=no
11628   fi
11629
11630   case $lt_cv_dlopen in
11631   dlopen)
11632     save_CPPFLAGS="$CPPFLAGS"
11633     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634
11635     save_LDFLAGS="$LDFLAGS"
11636     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637
11638     save_LIBS="$LIBS"
11639     LIBS="$lt_cv_dlopen_libs $LIBS"
11640
11641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11642 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11643 if ${lt_cv_dlopen_self+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646           if test "$cross_compiling" = yes; then :
11647   lt_cv_dlopen_self=cross
11648 else
11649   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650   lt_status=$lt_dlunknown
11651   cat > conftest.$ac_ext <<_LT_EOF
11652 #line $LINENO "configure"
11653 #include "confdefs.h"
11654
11655 #if HAVE_DLFCN_H
11656 #include <dlfcn.h>
11657 #endif
11658
11659 #include <stdio.h>
11660
11661 #ifdef RTLD_GLOBAL
11662 #  define LT_DLGLOBAL           RTLD_GLOBAL
11663 #else
11664 #  ifdef DL_GLOBAL
11665 #    define LT_DLGLOBAL         DL_GLOBAL
11666 #  else
11667 #    define LT_DLGLOBAL         0
11668 #  endif
11669 #endif
11670
11671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672    find out it does not work in some platform. */
11673 #ifndef LT_DLLAZY_OR_NOW
11674 #  ifdef RTLD_LAZY
11675 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11676 #  else
11677 #    ifdef DL_LAZY
11678 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11679 #    else
11680 #      ifdef RTLD_NOW
11681 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11682 #      else
11683 #        ifdef DL_NOW
11684 #          define LT_DLLAZY_OR_NOW      DL_NOW
11685 #        else
11686 #          define LT_DLLAZY_OR_NOW      0
11687 #        endif
11688 #      endif
11689 #    endif
11690 #  endif
11691 #endif
11692
11693 /* When -fvisbility=hidden is used, assume the code has been annotated
11694    correspondingly for the symbols needed.  */
11695 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11696 int fnord () __attribute__((visibility("default")));
11697 #endif
11698
11699 int fnord () { return 42; }
11700 int main ()
11701 {
11702   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11703   int status = $lt_dlunknown;
11704
11705   if (self)
11706     {
11707       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11708       else
11709         {
11710           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11711           else puts (dlerror ());
11712         }
11713       /* dlclose (self); */
11714     }
11715   else
11716     puts (dlerror ());
11717
11718   return status;
11719 }
11720 _LT_EOF
11721   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11722   (eval $ac_link) 2>&5
11723   ac_status=$?
11724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11726     (./conftest; exit; ) >&5 2>/dev/null
11727     lt_status=$?
11728     case x$lt_status in
11729       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11730       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11731       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11732     esac
11733   else :
11734     # compilation failed
11735     lt_cv_dlopen_self=no
11736   fi
11737 fi
11738 rm -fr conftest*
11739
11740
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11743 $as_echo "$lt_cv_dlopen_self" >&6; }
11744
11745     if test "x$lt_cv_dlopen_self" = xyes; then
11746       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11748 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11749 if ${lt_cv_dlopen_self_static+:} false; then :
11750   $as_echo_n "(cached) " >&6
11751 else
11752           if test "$cross_compiling" = yes; then :
11753   lt_cv_dlopen_self_static=cross
11754 else
11755   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11756   lt_status=$lt_dlunknown
11757   cat > conftest.$ac_ext <<_LT_EOF
11758 #line $LINENO "configure"
11759 #include "confdefs.h"
11760
11761 #if HAVE_DLFCN_H
11762 #include <dlfcn.h>
11763 #endif
11764
11765 #include <stdio.h>
11766
11767 #ifdef RTLD_GLOBAL
11768 #  define LT_DLGLOBAL           RTLD_GLOBAL
11769 #else
11770 #  ifdef DL_GLOBAL
11771 #    define LT_DLGLOBAL         DL_GLOBAL
11772 #  else
11773 #    define LT_DLGLOBAL         0
11774 #  endif
11775 #endif
11776
11777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11778    find out it does not work in some platform. */
11779 #ifndef LT_DLLAZY_OR_NOW
11780 #  ifdef RTLD_LAZY
11781 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11782 #  else
11783 #    ifdef DL_LAZY
11784 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11785 #    else
11786 #      ifdef RTLD_NOW
11787 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11788 #      else
11789 #        ifdef DL_NOW
11790 #          define LT_DLLAZY_OR_NOW      DL_NOW
11791 #        else
11792 #          define LT_DLLAZY_OR_NOW      0
11793 #        endif
11794 #      endif
11795 #    endif
11796 #  endif
11797 #endif
11798
11799 /* When -fvisbility=hidden is used, assume the code has been annotated
11800    correspondingly for the symbols needed.  */
11801 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11802 int fnord () __attribute__((visibility("default")));
11803 #endif
11804
11805 int fnord () { return 42; }
11806 int main ()
11807 {
11808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809   int status = $lt_dlunknown;
11810
11811   if (self)
11812     {
11813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11814       else
11815         {
11816           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11817           else puts (dlerror ());
11818         }
11819       /* dlclose (self); */
11820     }
11821   else
11822     puts (dlerror ());
11823
11824   return status;
11825 }
11826 _LT_EOF
11827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11828   (eval $ac_link) 2>&5
11829   ac_status=$?
11830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11832     (./conftest; exit; ) >&5 2>/dev/null
11833     lt_status=$?
11834     case x$lt_status in
11835       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11836       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11837       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11838     esac
11839   else :
11840     # compilation failed
11841     lt_cv_dlopen_self_static=no
11842   fi
11843 fi
11844 rm -fr conftest*
11845
11846
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11849 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11850     fi
11851
11852     CPPFLAGS="$save_CPPFLAGS"
11853     LDFLAGS="$save_LDFLAGS"
11854     LIBS="$save_LIBS"
11855     ;;
11856   esac
11857
11858   case $lt_cv_dlopen_self in
11859   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11860   *) enable_dlopen_self=unknown ;;
11861   esac
11862
11863   case $lt_cv_dlopen_self_static in
11864   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11865   *) enable_dlopen_self_static=unknown ;;
11866   esac
11867 fi
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 striplib=
11886 old_striplib=
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11888 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11890   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11891   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; }
11894 else
11895 # FIXME - insert some real tests, host_os isn't really good enough
11896   case $host_os in
11897   darwin*)
11898     if test -n "$STRIP" ; then
11899       striplib="$STRIP -x"
11900       old_striplib="$STRIP -S"
11901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11903     else
11904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906     fi
11907     ;;
11908   *)
11909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911     ;;
11912   esac
11913 fi
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926   # Report which library types will actually be built
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11928 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11930 $as_echo "$can_build_shared" >&6; }
11931
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11933 $as_echo_n "checking whether to build shared libraries... " >&6; }
11934   test "$can_build_shared" = "no" && enable_shared=no
11935
11936   # On AIX, shared libraries and static libraries use the same namespace, and
11937   # are all built from PIC.
11938   case $host_os in
11939   aix3*)
11940     test "$enable_shared" = yes && enable_static=no
11941     if test -n "$RANLIB"; then
11942       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11943       postinstall_cmds='$RANLIB $lib'
11944     fi
11945     ;;
11946
11947   aix[4-9]*)
11948     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11949       test "$enable_shared" = yes && enable_static=no
11950     fi
11951     ;;
11952   esac
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11954 $as_echo "$enable_shared" >&6; }
11955
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11957 $as_echo_n "checking whether to build static libraries... " >&6; }
11958   # Make sure either enable_shared or enable_static is yes.
11959   test "$enable_shared" = yes || enable_static=yes
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11961 $as_echo "$enable_static" >&6; }
11962
11963
11964
11965
11966 fi
11967 ac_ext=c
11968 ac_cpp='$CPP $CPPFLAGS'
11969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972
11973 CC="$lt_save_CC"
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989         ac_config_commands="$ac_config_commands libtool"
11990
11991
11992
11993
11994 # Only expand once:
11995
11996
11997
11998
11999
12000   for ac_func in $ac_func_list
12001 do :
12002   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12005   cat >>confdefs.h <<_ACEOF
12006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007 _ACEOF
12008
12009 fi
12010 done
12011
12012
12013
12014
12015
12016
12017
12018 # Checks for programs.
12019
12020
12021
12022
12023
12024
12025
12026 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12027         if test -n "$ac_tool_prefix"; then
12028   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12029 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   case $PKG_CONFIG in
12036   [\\/]* | ?:[\\/]*)
12037   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12038   ;;
12039   *)
12040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045     for ac_exec_ext in '' $ac_executable_extensions; do
12046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052   done
12053 IFS=$as_save_IFS
12054
12055   ;;
12056 esac
12057 fi
12058 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12059 if test -n "$PKG_CONFIG"; then
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12061 $as_echo "$PKG_CONFIG" >&6; }
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068 fi
12069 if test -z "$ac_cv_path_PKG_CONFIG"; then
12070   ac_pt_PKG_CONFIG=$PKG_CONFIG
12071   # Extract the first word of "pkg-config", so it can be a program name with args.
12072 set dummy pkg-config; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   case $ac_pt_PKG_CONFIG in
12079   [\\/]* | ?:[\\/]*)
12080   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12081   ;;
12082   *)
12083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $PATH
12085 do
12086   IFS=$as_save_IFS
12087   test -z "$as_dir" && as_dir=.
12088     for ac_exec_ext in '' $ac_executable_extensions; do
12089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092     break 2
12093   fi
12094 done
12095   done
12096 IFS=$as_save_IFS
12097
12098   ;;
12099 esac
12100 fi
12101 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12102 if test -n "$ac_pt_PKG_CONFIG"; then
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12104 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12105 else
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110   if test "x$ac_pt_PKG_CONFIG" = x; then
12111     PKG_CONFIG=""
12112   else
12113     case $cross_compiling:$ac_tool_warned in
12114 yes:)
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12117 ac_tool_warned=yes ;;
12118 esac
12119     PKG_CONFIG=$ac_pt_PKG_CONFIG
12120   fi
12121 else
12122   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12123 fi
12124
12125 fi
12126 if test -n "$PKG_CONFIG"; then
12127         _pkg_min_version=0.23
12128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12129 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12130         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12131                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132 $as_echo "yes" >&6; }
12133         else
12134                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136                 PKG_CONFIG=""
12137         fi
12138 fi
12139 ac_ext=c
12140 ac_cpp='$CPP $CPPFLAGS'
12141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144 if test -n "$ac_tool_prefix"; then
12145   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_prog_CC+:} false; then :
12150   $as_echo_n "(cached) " >&6
12151 else
12152   if test -n "$CC"; then
12153   ac_cv_prog_CC="$CC" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158   IFS=$as_save_IFS
12159   test -z "$as_dir" && as_dir=.
12160     for ac_exec_ext in '' $ac_executable_extensions; do
12161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164     break 2
12165   fi
12166 done
12167   done
12168 IFS=$as_save_IFS
12169
12170 fi
12171 fi
12172 CC=$ac_cv_prog_CC
12173 if test -n "$CC"; then
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12175 $as_echo "$CC" >&6; }
12176 else
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12179 fi
12180
12181
12182 fi
12183 if test -z "$ac_cv_prog_CC"; then
12184   ac_ct_CC=$CC
12185   # Extract the first word of "gcc", so it can be a program name with args.
12186 set dummy gcc; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192   if test -n "$ac_ct_CC"; then
12193   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200     for ac_exec_ext in '' $ac_executable_extensions; do
12201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_prog_ac_ct_CC="gcc"
12203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207   done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12213 if test -n "$ac_ct_CC"; then
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12215 $as_echo "$ac_ct_CC" >&6; }
12216 else
12217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221   if test "x$ac_ct_CC" = x; then
12222     CC=""
12223   else
12224     case $cross_compiling:$ac_tool_warned in
12225 yes:)
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12228 ac_tool_warned=yes ;;
12229 esac
12230     CC=$ac_ct_CC
12231   fi
12232 else
12233   CC="$ac_cv_prog_CC"
12234 fi
12235
12236 if test -z "$CC"; then
12237           if test -n "$ac_tool_prefix"; then
12238     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12239 set dummy ${ac_tool_prefix}cc; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if ${ac_cv_prog_CC+:} false; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   if test -n "$CC"; then
12246   ac_cv_prog_CC="$CC" # Let the user override the test.
12247 else
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12250 do
12251   IFS=$as_save_IFS
12252   test -z "$as_dir" && as_dir=.
12253     for ac_exec_ext in '' $ac_executable_extensions; do
12254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255     ac_cv_prog_CC="${ac_tool_prefix}cc"
12256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257     break 2
12258   fi
12259 done
12260   done
12261 IFS=$as_save_IFS
12262
12263 fi
12264 fi
12265 CC=$ac_cv_prog_CC
12266 if test -n "$CC"; then
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12268 $as_echo "$CC" >&6; }
12269 else
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272 fi
12273
12274
12275   fi
12276 fi
12277 if test -z "$CC"; then
12278   # Extract the first word of "cc", so it can be a program name with args.
12279 set dummy cc; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_prog_CC+:} false; then :
12283   $as_echo_n "(cached) " >&6
12284 else
12285   if test -n "$CC"; then
12286   ac_cv_prog_CC="$CC" # Let the user override the test.
12287 else
12288   ac_prog_rejected=no
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12291 do
12292   IFS=$as_save_IFS
12293   test -z "$as_dir" && as_dir=.
12294     for ac_exec_ext in '' $ac_executable_extensions; do
12295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12296     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12297        ac_prog_rejected=yes
12298        continue
12299      fi
12300     ac_cv_prog_CC="cc"
12301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302     break 2
12303   fi
12304 done
12305   done
12306 IFS=$as_save_IFS
12307
12308 if test $ac_prog_rejected = yes; then
12309   # We found a bogon in the path, so make sure we never use it.
12310   set dummy $ac_cv_prog_CC
12311   shift
12312   if test $# != 0; then
12313     # We chose a different compiler from the bogus one.
12314     # However, it has the same basename, so the bogon will be chosen
12315     # first if we set CC to just the basename; use the full file name.
12316     shift
12317     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12318   fi
12319 fi
12320 fi
12321 fi
12322 CC=$ac_cv_prog_CC
12323 if test -n "$CC"; then
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12325 $as_echo "$CC" >&6; }
12326 else
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12329 fi
12330
12331
12332 fi
12333 if test -z "$CC"; then
12334   if test -n "$ac_tool_prefix"; then
12335   for ac_prog in cl.exe
12336   do
12337     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if ${ac_cv_prog_CC+:} false; then :
12342   $as_echo_n "(cached) " >&6
12343 else
12344   if test -n "$CC"; then
12345   ac_cv_prog_CC="$CC" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350   IFS=$as_save_IFS
12351   test -z "$as_dir" && as_dir=.
12352     for ac_exec_ext in '' $ac_executable_extensions; do
12353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12354     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356     break 2
12357   fi
12358 done
12359   done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 CC=$ac_cv_prog_CC
12365 if test -n "$CC"; then
12366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12367 $as_echo "$CC" >&6; }
12368 else
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374     test -n "$CC" && break
12375   done
12376 fi
12377 if test -z "$CC"; then
12378   ac_ct_CC=$CC
12379   for ac_prog in cl.exe
12380 do
12381   # Extract the first word of "$ac_prog", so it can be a program name with args.
12382 set dummy $ac_prog; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   if test -n "$ac_ct_CC"; then
12389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12393 do
12394   IFS=$as_save_IFS
12395   test -z "$as_dir" && as_dir=.
12396     for ac_exec_ext in '' $ac_executable_extensions; do
12397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12398     ac_cv_prog_ac_ct_CC="$ac_prog"
12399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400     break 2
12401   fi
12402 done
12403   done
12404 IFS=$as_save_IFS
12405
12406 fi
12407 fi
12408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12409 if test -n "$ac_ct_CC"; then
12410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12411 $as_echo "$ac_ct_CC" >&6; }
12412 else
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416
12417
12418   test -n "$ac_ct_CC" && break
12419 done
12420
12421   if test "x$ac_ct_CC" = x; then
12422     CC=""
12423   else
12424     case $cross_compiling:$ac_tool_warned in
12425 yes:)
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12428 ac_tool_warned=yes ;;
12429 esac
12430     CC=$ac_ct_CC
12431   fi
12432 fi
12433
12434 fi
12435
12436
12437 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12439 as_fn_error $? "no acceptable C compiler found in \$PATH
12440 See \`config.log' for more details" "$LINENO" 5; }
12441
12442 # Provide some information about the compiler.
12443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12444 set X $ac_compile
12445 ac_compiler=$2
12446 for ac_option in --version -v -V -qversion; do
12447   { { ac_try="$ac_compiler $ac_option >&5"
12448 case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12453 $as_echo "$ac_try_echo"; } >&5
12454   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12455   ac_status=$?
12456   if test -s conftest.err; then
12457     sed '10a\
12458 ... rest of stderr output deleted ...
12459          10q' conftest.err >conftest.er1
12460     cat conftest.er1 >&5
12461   fi
12462   rm -f conftest.er1 conftest.err
12463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12464   test $ac_status = 0; }
12465 done
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12469 if ${ac_cv_c_compiler_gnu+:} false; then :
12470   $as_echo_n "(cached) " >&6
12471 else
12472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h.  */
12474
12475 int
12476 main ()
12477 {
12478 #ifndef __GNUC__
12479        choke me
12480 #endif
12481
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_compile "$LINENO"; then :
12487   ac_compiler_gnu=yes
12488 else
12489   ac_compiler_gnu=no
12490 fi
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12493
12494 fi
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12497 if test $ac_compiler_gnu = yes; then
12498   GCC=yes
12499 else
12500   GCC=
12501 fi
12502 ac_test_CFLAGS=${CFLAGS+set}
12503 ac_save_CFLAGS=$CFLAGS
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12506 if ${ac_cv_prog_cc_g+:} false; then :
12507   $as_echo_n "(cached) " >&6
12508 else
12509   ac_save_c_werror_flag=$ac_c_werror_flag
12510    ac_c_werror_flag=yes
12511    ac_cv_prog_cc_g=no
12512    CFLAGS="-g"
12513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h.  */
12515
12516 int
12517 main ()
12518 {
12519
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_compile "$LINENO"; then :
12525   ac_cv_prog_cc_g=yes
12526 else
12527   CFLAGS=""
12528       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h.  */
12530
12531 int
12532 main ()
12533 {
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_compile "$LINENO"; then :
12540
12541 else
12542   ac_c_werror_flag=$ac_save_c_werror_flag
12543          CFLAGS="-g"
12544          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546
12547 int
12548 main ()
12549 {
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556   ac_cv_prog_cc_g=yes
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563    ac_c_werror_flag=$ac_save_c_werror_flag
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12566 $as_echo "$ac_cv_prog_cc_g" >&6; }
12567 if test "$ac_test_CFLAGS" = set; then
12568   CFLAGS=$ac_save_CFLAGS
12569 elif test $ac_cv_prog_cc_g = yes; then
12570   if test "$GCC" = yes; then
12571     CFLAGS="-g -O2"
12572   else
12573     CFLAGS="-g"
12574   fi
12575 else
12576   if test "$GCC" = yes; then
12577     CFLAGS="-O2"
12578   else
12579     CFLAGS=
12580   fi
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12584 if ${ac_cv_prog_cc_c89+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   ac_cv_prog_cc_c89=no
12588 ac_save_CC=$CC
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h.  */
12591 #include <stdarg.h>
12592 #include <stdio.h>
12593 struct stat;
12594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12595 struct buf { int x; };
12596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12597 static char *e (p, i)
12598      char **p;
12599      int i;
12600 {
12601   return p[i];
12602 }
12603 static char *f (char * (*g) (char **, int), char **p, ...)
12604 {
12605   char *s;
12606   va_list v;
12607   va_start (v,p);
12608   s = g (p, va_arg (v,int));
12609   va_end (v);
12610   return s;
12611 }
12612
12613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12614    function prototypes and stuff, but not '\xHH' hex character constants.
12615    These don't provoke an error unfortunately, instead are silently treated
12616    as 'x'.  The following induces an error, until -std is added to get
12617    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12618    array size at least.  It's necessary to write '\x00'==0 to get something
12619    that's true only with -std.  */
12620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12621
12622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12623    inside strings and character constants.  */
12624 #define FOO(x) 'x'
12625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12626
12627 int test (int i, double x);
12628 struct s1 {int (*f) (int a);};
12629 struct s2 {int (*f) (double a);};
12630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12631 int argc;
12632 char **argv;
12633 int
12634 main ()
12635 {
12636 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12642         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12643 do
12644   CC="$ac_save_CC $ac_arg"
12645   if ac_fn_c_try_compile "$LINENO"; then :
12646   ac_cv_prog_cc_c89=$ac_arg
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext
12649   test "x$ac_cv_prog_cc_c89" != "xno" && break
12650 done
12651 rm -f conftest.$ac_ext
12652 CC=$ac_save_CC
12653
12654 fi
12655 # AC_CACHE_VAL
12656 case "x$ac_cv_prog_cc_c89" in
12657   x)
12658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12659 $as_echo "none needed" >&6; } ;;
12660   xno)
12661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12662 $as_echo "unsupported" >&6; } ;;
12663   *)
12664     CC="$CC $ac_cv_prog_cc_c89"
12665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12667 esac
12668 if test "x$ac_cv_prog_cc_c89" != xno; then :
12669
12670 fi
12671
12672 ac_ext=c
12673 ac_cpp='$CPP $CPPFLAGS'
12674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12677
12678 ac_ext=c
12679 ac_cpp='$CPP $CPPFLAGS'
12680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12684 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12685 if ${am_cv_prog_cc_c_o+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h.  */
12690
12691 int
12692 main ()
12693 {
12694
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699   # Make sure it works both with $CC and with simple cc.
12700   # Following AC_PROG_CC_C_O, we do the test twice because some
12701   # compilers refuse to overwrite an existing .o file with -o,
12702   # though they will create one.
12703   am_cv_prog_cc_c_o=yes
12704   for am_i in 1 2; do
12705     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12706    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12707    ac_status=$?
12708    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709    (exit $ac_status); } \
12710          && test -f conftest2.$ac_objext; then
12711       : OK
12712     else
12713       am_cv_prog_cc_c_o=no
12714       break
12715     fi
12716   done
12717   rm -f core conftest*
12718   unset am_i
12719 fi
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12721 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12722 if test "$am_cv_prog_cc_c_o" != yes; then
12723    # Losing compiler, so override with the script.
12724    # FIXME: It is wrong to rewrite CC.
12725    # But if we don't then we get into trouble of one sort or another.
12726    # A longer-term fix would be to have automake use am__CC in this case,
12727    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12728    CC="$am_aux_dir/compile $CC"
12729 fi
12730 ac_ext=c
12731 ac_cpp='$CPP $CPPFLAGS'
12732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12735
12736
12737 depcc="$CC"   am_compiler_list=
12738
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12740 $as_echo_n "checking dependency style of $depcc... " >&6; }
12741 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12745   # We make a subdir and do the tests there.  Otherwise we can end up
12746   # making bogus files that we don't know about and never remove.  For
12747   # instance it was reported that on HP-UX the gcc test will end up
12748   # making a dummy file named 'D' -- because '-MD' means "put the output
12749   # in D".
12750   rm -rf conftest.dir
12751   mkdir conftest.dir
12752   # Copy depcomp to subdir because otherwise we won't find it if we're
12753   # using a relative directory.
12754   cp "$am_depcomp" conftest.dir
12755   cd conftest.dir
12756   # We will build objects and dependencies in a subdirectory because
12757   # it helps to detect inapplicable dependency modes.  For instance
12758   # both Tru64's cc and ICC support -MD to output dependencies as a
12759   # side effect of compilation, but ICC will put the dependencies in
12760   # the current directory while Tru64 will put them in the object
12761   # directory.
12762   mkdir sub
12763
12764   am_cv_CC_dependencies_compiler_type=none
12765   if test "$am_compiler_list" = ""; then
12766      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12767   fi
12768   am__universal=false
12769   case " $depcc " in #(
12770      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12771      esac
12772
12773   for depmode in $am_compiler_list; do
12774     # Setup a source with many dependencies, because some compilers
12775     # like to wrap large dependency lists on column 80 (with \), and
12776     # we should not choose a depcomp mode which is confused by this.
12777     #
12778     # We need to recreate these files for each test, as the compiler may
12779     # overwrite some of them when testing with obscure command lines.
12780     # This happens at least with the AIX C compiler.
12781     : > sub/conftest.c
12782     for i in 1 2 3 4 5 6; do
12783       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12784       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12785       # Solaris 10 /bin/sh.
12786       echo '/* dummy */' > sub/conftst$i.h
12787     done
12788     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12789
12790     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12791     # mode.  It turns out that the SunPro C++ compiler does not properly
12792     # handle '-M -o', and we need to detect this.  Also, some Intel
12793     # versions had trouble with output in subdirs.
12794     am__obj=sub/conftest.${OBJEXT-o}
12795     am__minus_obj="-o $am__obj"
12796     case $depmode in
12797     gcc)
12798       # This depmode causes a compiler race in universal mode.
12799       test "$am__universal" = false || continue
12800       ;;
12801     nosideeffect)
12802       # After this tag, mechanisms are not by side-effect, so they'll
12803       # only be used when explicitly requested.
12804       if test "x$enable_dependency_tracking" = xyes; then
12805         continue
12806       else
12807         break
12808       fi
12809       ;;
12810     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12811       # This compiler won't grok '-c -o', but also, the minuso test has
12812       # not run yet.  These depmodes are late enough in the game, and
12813       # so weak that their functioning should not be impacted.
12814       am__obj=conftest.${OBJEXT-o}
12815       am__minus_obj=
12816       ;;
12817     none) break ;;
12818     esac
12819     if depmode=$depmode \
12820        source=sub/conftest.c object=$am__obj \
12821        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12822        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12823          >/dev/null 2>conftest.err &&
12824        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12825        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12826        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12827        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12828       # icc doesn't choke on unknown options, it will just issue warnings
12829       # or remarks (even with -Werror).  So we grep stderr for any message
12830       # that says an option was ignored or not supported.
12831       # When given -MP, icc 7.0 and 7.1 complain thusly:
12832       #   icc: Command line warning: ignoring option '-M'; no argument required
12833       # The diagnosis changed in icc 8.0:
12834       #   icc: Command line remark: option '-MP' not supported
12835       if (grep 'ignoring option' conftest.err ||
12836           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12837         am_cv_CC_dependencies_compiler_type=$depmode
12838         break
12839       fi
12840     fi
12841   done
12842
12843   cd ..
12844   rm -rf conftest.dir
12845 else
12846   am_cv_CC_dependencies_compiler_type=none
12847 fi
12848
12849 fi
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12851 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12852 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12853
12854  if
12855   test "x$enable_dependency_tracking" != xno \
12856   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12857   am__fastdepCC_TRUE=
12858   am__fastdepCC_FALSE='#'
12859 else
12860   am__fastdepCC_TRUE='#'
12861   am__fastdepCC_FALSE=
12862 fi
12863
12864
12865
12866 # Extract the first word of "valac", so it can be a program name with args.
12867 set dummy valac; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_path_VALAC+:} false; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   case $VALAC in
12874   [\\/]* | ?:[\\/]*)
12875   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12876   ;;
12877   *)
12878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881   IFS=$as_save_IFS
12882   test -z "$as_dir" && as_dir=.
12883     for ac_exec_ext in '' $ac_executable_extensions; do
12884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12885     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887     break 2
12888   fi
12889 done
12890   done
12891 IFS=$as_save_IFS
12892
12893   test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
12894   ;;
12895 esac
12896 fi
12897 VALAC=$ac_cv_path_VALAC
12898 if test -n "$VALAC"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12900 $as_echo "$VALAC" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907    if test "$VALAC" != valac && test -n "0.9"; then :
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.9" >&5
12909 $as_echo_n "checking whether $VALAC is at least version 0.9... " >&6; }
12910        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12911        as_arg_v1=0.9
12912 as_arg_v2="$am__vala_version"
12913 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12914 case $? in #(
12915   1) :
12916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 $as_echo "yes" >&6; } ;; #(
12918   0) :
12919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; } ;; #(
12921   2) :
12922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924           VALAC=valac ;; #(
12925   *) :
12926      ;;
12927 esac
12928 fi
12929     if test "$VALAC" = valac; then
12930       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
12931 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
12932          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
12933 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
12934     else
12935       :
12936     fi
12937
12938 gee_0_8=no
12939 # Platform checks
12940
12941
12942 case "$host" in
12943   *-*-mingw*)
12944     win32=yes
12945     macos=no
12946     linux=no
12947     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12948     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12949
12950 pkg_failed=no
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12952 $as_echo_n "checking for GTK... " >&6; }
12953
12954 if test -n "$GTK_CFLAGS"; then
12955     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12956  elif test -n "$PKG_CONFIG"; then
12957     if test -n "$PKG_CONFIG" && \
12958     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12959   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12960   ac_status=$?
12961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12962   test $ac_status = 0; }; then
12963   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12964                       test "x$?" != "x0" && pkg_failed=yes
12965 else
12966   pkg_failed=yes
12967 fi
12968  else
12969     pkg_failed=untried
12970 fi
12971 if test -n "$GTK_LIBS"; then
12972     pkg_cv_GTK_LIBS="$GTK_LIBS"
12973  elif test -n "$PKG_CONFIG"; then
12974     if test -n "$PKG_CONFIG" && \
12975     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12976   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12977   ac_status=$?
12978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12979   test $ac_status = 0; }; then
12980   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12981                       test "x$?" != "x0" && pkg_failed=yes
12982 else
12983   pkg_failed=yes
12984 fi
12985  else
12986     pkg_failed=untried
12987 fi
12988
12989
12990
12991 if test $pkg_failed = yes; then
12992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12994
12995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12996         _pkg_short_errors_supported=yes
12997 else
12998         _pkg_short_errors_supported=no
12999 fi
13000         if test $_pkg_short_errors_supported = yes; then
13001                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13002         else
13003                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13004         fi
13005         # Put the nasty error message in config.log where it belongs
13006         echo "$GTK_PKG_ERRORS" >&5
13007
13008         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13009
13010 $GTK_PKG_ERRORS
13011
13012 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13013 installed software in a non-standard prefix.
13014
13015 Alternatively, you may set the environment variables GTK_CFLAGS
13016 and GTK_LIBS to avoid the need to call pkg-config.
13017 See the pkg-config man page for more details." "$LINENO" 5
13018 elif test $pkg_failed = untried; then
13019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13023 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13024 is in your PATH or set the PKG_CONFIG environment variable to the full
13025 path to pkg-config.
13026
13027 Alternatively, you may set the environment variables GTK_CFLAGS
13028 and GTK_LIBS to avoid the need to call pkg-config.
13029 See the pkg-config man page for more details.
13030
13031 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13032 See \`config.log' for more details" "$LINENO" 5; }
13033 else
13034         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13035         GTK_LIBS=$pkg_cv_GTK_LIBS
13036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13037 $as_echo "yes" >&6; }
13038         GTK_VERSION="gtk+-2.0"
13039
13040 fi
13041     ;;
13042
13043   *darwin*)
13044     win32=no
13045     macos=yes
13046     linux=no
13047
13048     # We require dbus-glib for the client library even if we are using GDBus
13049     # in the server. The reason we can't always use dbus-glib in the server is
13050     # because Vala drops support for it, but as it ships with DBus there is very
13051     # little danger of it being dropped by distros any time soon.
13052     CLIENT_IPC_MODULE="dbus-glib-1"
13053         SERVER_IPC_MODULE="dbus-glib-1"
13054
13055
13056 pkg_failed=no
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
13058 $as_echo_n "checking for MAC... " >&6; }
13059
13060 if test -n "$MAC_CFLAGS"; then
13061     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
13062  elif test -n "$PKG_CONFIG"; then
13063     if test -n "$PKG_CONFIG" && \
13064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13065         \""; } >&5
13066   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13067         ") 2>&5
13068   ac_status=$?
13069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070   test $ac_status = 0; }; then
13071   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
13072         " 2>/dev/null`
13073                       test "x$?" != "x0" && pkg_failed=yes
13074 else
13075   pkg_failed=yes
13076 fi
13077  else
13078     pkg_failed=untried
13079 fi
13080 if test -n "$MAC_LIBS"; then
13081     pkg_cv_MAC_LIBS="$MAC_LIBS"
13082  elif test -n "$PKG_CONFIG"; then
13083     if test -n "$PKG_CONFIG" && \
13084     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
13085         \""; } >&5
13086   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
13087         ") 2>&5
13088   ac_status=$?
13089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090   test $ac_status = 0; }; then
13091   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
13092         " 2>/dev/null`
13093                       test "x$?" != "x0" && pkg_failed=yes
13094 else
13095   pkg_failed=yes
13096 fi
13097  else
13098     pkg_failed=untried
13099 fi
13100
13101
13102
13103 if test $pkg_failed = yes; then
13104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106
13107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13108         _pkg_short_errors_supported=yes
13109 else
13110         _pkg_short_errors_supported=no
13111 fi
13112         if test $_pkg_short_errors_supported = yes; then
13113                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13114         " 2>&1`
13115         else
13116                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
13117         " 2>&1`
13118         fi
13119         # Put the nasty error message in config.log where it belongs
13120         echo "$MAC_PKG_ERRORS" >&5
13121
13122         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
13123         ) were not met:
13124
13125 $MAC_PKG_ERRORS
13126
13127 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13128 installed software in a non-standard prefix.
13129
13130 Alternatively, you may set the environment variables MAC_CFLAGS
13131 and MAC_LIBS to avoid the need to call pkg-config.
13132 See the pkg-config man page for more details." "$LINENO" 5
13133 elif test $pkg_failed = untried; then
13134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13138 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13139 is in your PATH or set the PKG_CONFIG environment variable to the full
13140 path to pkg-config.
13141
13142 Alternatively, you may set the environment variables MAC_CFLAGS
13143 and MAC_LIBS to avoid the need to call pkg-config.
13144 See the pkg-config man page for more details.
13145
13146 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13147 See \`config.log' for more details" "$LINENO" 5; }
13148 else
13149         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
13150         MAC_LIBS=$pkg_cv_MAC_LIBS
13151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153
13154 fi
13155
13156 # TODO: Move to GTK+-3
13157 #            [gtk+-3.0 >= 2.0],
13158 #            [GTK_VERSION="gtk+-3.0"]
13159
13160 pkg_failed=no
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13162 $as_echo_n "checking for GTK... " >&6; }
13163
13164 if test -n "$GTK_CFLAGS"; then
13165     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13166  elif test -n "$PKG_CONFIG"; then
13167     if test -n "$PKG_CONFIG" && \
13168     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13169   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13170   ac_status=$?
13171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172   test $ac_status = 0; }; then
13173   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13174                       test "x$?" != "x0" && pkg_failed=yes
13175 else
13176   pkg_failed=yes
13177 fi
13178  else
13179     pkg_failed=untried
13180 fi
13181 if test -n "$GTK_LIBS"; then
13182     pkg_cv_GTK_LIBS="$GTK_LIBS"
13183  elif test -n "$PKG_CONFIG"; then
13184     if test -n "$PKG_CONFIG" && \
13185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13186   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13187   ac_status=$?
13188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189   test $ac_status = 0; }; then
13190   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13191                       test "x$?" != "x0" && pkg_failed=yes
13192 else
13193   pkg_failed=yes
13194 fi
13195  else
13196     pkg_failed=untried
13197 fi
13198
13199
13200
13201 if test $pkg_failed = yes; then
13202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204
13205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13206         _pkg_short_errors_supported=yes
13207 else
13208         _pkg_short_errors_supported=no
13209 fi
13210         if test $_pkg_short_errors_supported = yes; then
13211                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13212         else
13213                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13214         fi
13215         # Put the nasty error message in config.log where it belongs
13216         echo "$GTK_PKG_ERRORS" >&5
13217
13218         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13219
13220 $GTK_PKG_ERRORS
13221
13222 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13223 installed software in a non-standard prefix.
13224
13225 Alternatively, you may set the environment variables GTK_CFLAGS
13226 and GTK_LIBS to avoid the need to call pkg-config.
13227 See the pkg-config man page for more details." "$LINENO" 5
13228 elif test $pkg_failed = untried; then
13229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13231         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13233 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13234 is in your PATH or set the PKG_CONFIG environment variable to the full
13235 path to pkg-config.
13236
13237 Alternatively, you may set the environment variables GTK_CFLAGS
13238 and GTK_LIBS to avoid the need to call pkg-config.
13239 See the pkg-config man page for more details.
13240
13241 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13242 See \`config.log' for more details" "$LINENO" 5; }
13243 else
13244         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13245         GTK_LIBS=$pkg_cv_GTK_LIBS
13246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13247 $as_echo "yes" >&6; }
13248         GTK_VERSION="gtk+-2.0"
13249
13250 fi
13251
13252     ;;
13253   *)
13254     macos=no
13255     win32=no
13256     linux=yes
13257
13258     # We require dbus-glib for the client library even if we are using GDBus
13259     # in the server. The reason we can't always use dbus-glib in the server is
13260     # because Vala drops support for it, but as it ships with DBus there is very
13261     # little danger of it being dropped by distros any time soon.
13262     CLIENT_IPC_MODULE="dbus-glib-1"
13263
13264 pkg_failed=no
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13266 $as_echo_n "checking for GDBUS... " >&6; }
13267
13268 if test -n "$GDBUS_CFLAGS"; then
13269     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13270  elif test -n "$PKG_CONFIG"; then
13271     if test -n "$PKG_CONFIG" && \
13272     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13273   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13274   ac_status=$?
13275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276   test $ac_status = 0; }; then
13277   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13278                       test "x$?" != "x0" && pkg_failed=yes
13279 else
13280   pkg_failed=yes
13281 fi
13282  else
13283     pkg_failed=untried
13284 fi
13285 if test -n "$GDBUS_LIBS"; then
13286     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13287  elif test -n "$PKG_CONFIG"; then
13288     if test -n "$PKG_CONFIG" && \
13289     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13290   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13291   ac_status=$?
13292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293   test $ac_status = 0; }; then
13294   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13295                       test "x$?" != "x0" && pkg_failed=yes
13296 else
13297   pkg_failed=yes
13298 fi
13299  else
13300     pkg_failed=untried
13301 fi
13302
13303
13304
13305 if test $pkg_failed = yes; then
13306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308
13309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13310         _pkg_short_errors_supported=yes
13311 else
13312         _pkg_short_errors_supported=no
13313 fi
13314         if test $_pkg_short_errors_supported = yes; then
13315                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13316         else
13317                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13318         fi
13319         # Put the nasty error message in config.log where it belongs
13320         echo "$GDBUS_PKG_ERRORS" >&5
13321
13322         SERVER_IPC_MODULE="dbus-glib-1"
13323
13324 elif test $pkg_failed = untried; then
13325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13327         SERVER_IPC_MODULE="dbus-glib-1"
13328
13329 else
13330         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13331         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13333 $as_echo "yes" >&6; }
13334         SERVER_IPC_MODULE="gio-2.0"
13335 fi
13336 # TODO: Move to GTK+-3
13337 #            [gtk+-3.0 >= 2.0],
13338 #            [GTK_VERSION="gtk+-3.0"]
13339
13340 pkg_failed=no
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13342 $as_echo_n "checking for GTK... " >&6; }
13343
13344 if test -n "$GTK_CFLAGS"; then
13345     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13346  elif test -n "$PKG_CONFIG"; then
13347     if test -n "$PKG_CONFIG" && \
13348     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13349   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13350   ac_status=$?
13351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13352   test $ac_status = 0; }; then
13353   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13354                       test "x$?" != "x0" && pkg_failed=yes
13355 else
13356   pkg_failed=yes
13357 fi
13358  else
13359     pkg_failed=untried
13360 fi
13361 if test -n "$GTK_LIBS"; then
13362     pkg_cv_GTK_LIBS="$GTK_LIBS"
13363  elif test -n "$PKG_CONFIG"; then
13364     if test -n "$PKG_CONFIG" && \
13365     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13366   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13367   ac_status=$?
13368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13369   test $ac_status = 0; }; then
13370   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13371                       test "x$?" != "x0" && pkg_failed=yes
13372 else
13373   pkg_failed=yes
13374 fi
13375  else
13376     pkg_failed=untried
13377 fi
13378
13379
13380
13381 if test $pkg_failed = yes; then
13382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13384
13385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13386         _pkg_short_errors_supported=yes
13387 else
13388         _pkg_short_errors_supported=no
13389 fi
13390         if test $_pkg_short_errors_supported = yes; then
13391                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13392         else
13393                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13394         fi
13395         # Put the nasty error message in config.log where it belongs
13396         echo "$GTK_PKG_ERRORS" >&5
13397
13398         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13399
13400 $GTK_PKG_ERRORS
13401
13402 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13403 installed software in a non-standard prefix.
13404
13405 Alternatively, you may set the environment variables GTK_CFLAGS
13406 and GTK_LIBS to avoid the need to call pkg-config.
13407 See the pkg-config man page for more details." "$LINENO" 5
13408 elif test $pkg_failed = untried; then
13409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13413 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13414 is in your PATH or set the PKG_CONFIG environment variable to the full
13415 path to pkg-config.
13416
13417 Alternatively, you may set the environment variables GTK_CFLAGS
13418 and GTK_LIBS to avoid the need to call pkg-config.
13419 See the pkg-config man page for more details.
13420
13421 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13422 See \`config.log' for more details" "$LINENO" 5; }
13423 else
13424         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13425         GTK_LIBS=$pkg_cv_GTK_LIBS
13426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13427 $as_echo "yes" >&6; }
13428         GTK_VERSION="gtk+-2.0"
13429
13430 fi
13431
13432 pkg_failed=no
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEE" >&5
13434 $as_echo_n "checking for GEE... " >&6; }
13435
13436 if test -n "$GEE_CFLAGS"; then
13437     pkg_cv_GEE_CFLAGS="$GEE_CFLAGS"
13438  elif test -n "$PKG_CONFIG"; then
13439     if test -n "$PKG_CONFIG" && \
13440     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.5\""; } >&5
13441   ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.5") 2>&5
13442   ac_status=$?
13443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13444   test $ac_status = 0; }; then
13445   pkg_cv_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-0.8 >= 0.5" 2>/dev/null`
13446                       test "x$?" != "x0" && pkg_failed=yes
13447 else
13448   pkg_failed=yes
13449 fi
13450  else
13451     pkg_failed=untried
13452 fi
13453 if test -n "$GEE_LIBS"; then
13454     pkg_cv_GEE_LIBS="$GEE_LIBS"
13455  elif test -n "$PKG_CONFIG"; then
13456     if test -n "$PKG_CONFIG" && \
13457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.5\""; } >&5
13458   ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.5") 2>&5
13459   ac_status=$?
13460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461   test $ac_status = 0; }; then
13462   pkg_cv_GEE_LIBS=`$PKG_CONFIG --libs "gee-0.8 >= 0.5" 2>/dev/null`
13463                       test "x$?" != "x0" && pkg_failed=yes
13464 else
13465   pkg_failed=yes
13466 fi
13467  else
13468     pkg_failed=untried
13469 fi
13470
13471
13472
13473 if test $pkg_failed = yes; then
13474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476
13477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13478         _pkg_short_errors_supported=yes
13479 else
13480         _pkg_short_errors_supported=no
13481 fi
13482         if test $_pkg_short_errors_supported = yes; then
13483                 GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-0.8 >= 0.5" 2>&1`
13484         else
13485                 GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-0.8 >= 0.5" 2>&1`
13486         fi
13487         # Put the nasty error message in config.log where it belongs
13488         echo "$GEE_PKG_ERRORS" >&5
13489
13490
13491 pkg_failed=no
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEE" >&5
13493 $as_echo_n "checking for GEE... " >&6; }
13494
13495 if test -n "$GEE_CFLAGS"; then
13496     pkg_cv_GEE_CFLAGS="$GEE_CFLAGS"
13497  elif test -n "$PKG_CONFIG"; then
13498     if test -n "$PKG_CONFIG" && \
13499     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0\""; } >&5
13500   ($PKG_CONFIG --exists --print-errors "gee-1.0") 2>&5
13501   ac_status=$?
13502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503   test $ac_status = 0; }; then
13504   pkg_cv_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-1.0" 2>/dev/null`
13505                       test "x$?" != "x0" && pkg_failed=yes
13506 else
13507   pkg_failed=yes
13508 fi
13509  else
13510     pkg_failed=untried
13511 fi
13512 if test -n "$GEE_LIBS"; then
13513     pkg_cv_GEE_LIBS="$GEE_LIBS"
13514  elif test -n "$PKG_CONFIG"; then
13515     if test -n "$PKG_CONFIG" && \
13516     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0\""; } >&5
13517   ($PKG_CONFIG --exists --print-errors "gee-1.0") 2>&5
13518   ac_status=$?
13519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520   test $ac_status = 0; }; then
13521   pkg_cv_GEE_LIBS=`$PKG_CONFIG --libs "gee-1.0" 2>/dev/null`
13522                       test "x$?" != "x0" && pkg_failed=yes
13523 else
13524   pkg_failed=yes
13525 fi
13526  else
13527     pkg_failed=untried
13528 fi
13529
13530
13531
13532 if test $pkg_failed = yes; then
13533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535
13536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13537         _pkg_short_errors_supported=yes
13538 else
13539         _pkg_short_errors_supported=no
13540 fi
13541         if test $_pkg_short_errors_supported = yes; then
13542                 GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-1.0" 2>&1`
13543         else
13544                 GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-1.0" 2>&1`
13545         fi
13546         # Put the nasty error message in config.log where it belongs
13547         echo "$GEE_PKG_ERRORS" >&5
13548
13549         as_fn_error $? "Package requirements (gee-1.0) were not met:
13550
13551 $GEE_PKG_ERRORS
13552
13553 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13554 installed software in a non-standard prefix.
13555
13556 Alternatively, you may set the environment variables GEE_CFLAGS
13557 and GEE_LIBS to avoid the need to call pkg-config.
13558 See the pkg-config man page for more details." "$LINENO" 5
13559 elif test $pkg_failed = untried; then
13560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13564 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13565 is in your PATH or set the PKG_CONFIG environment variable to the full
13566 path to pkg-config.
13567
13568 Alternatively, you may set the environment variables GEE_CFLAGS
13569 and GEE_LIBS to avoid the need to call pkg-config.
13570 See the pkg-config man page for more details.
13571
13572 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13573 See \`config.log' for more details" "$LINENO" 5; }
13574 else
13575         GEE_CFLAGS=$pkg_cv_GEE_CFLAGS
13576         GEE_LIBS=$pkg_cv_GEE_LIBS
13577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13578 $as_echo "yes" >&6; }
13579
13580 fi
13581 elif test $pkg_failed = untried; then
13582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13584
13585 pkg_failed=no
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEE" >&5
13587 $as_echo_n "checking for GEE... " >&6; }
13588
13589 if test -n "$GEE_CFLAGS"; then
13590     pkg_cv_GEE_CFLAGS="$GEE_CFLAGS"
13591  elif test -n "$PKG_CONFIG"; then
13592     if test -n "$PKG_CONFIG" && \
13593     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0\""; } >&5
13594   ($PKG_CONFIG --exists --print-errors "gee-1.0") 2>&5
13595   ac_status=$?
13596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13597   test $ac_status = 0; }; then
13598   pkg_cv_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-1.0" 2>/dev/null`
13599                       test "x$?" != "x0" && pkg_failed=yes
13600 else
13601   pkg_failed=yes
13602 fi
13603  else
13604     pkg_failed=untried
13605 fi
13606 if test -n "$GEE_LIBS"; then
13607     pkg_cv_GEE_LIBS="$GEE_LIBS"
13608  elif test -n "$PKG_CONFIG"; then
13609     if test -n "$PKG_CONFIG" && \
13610     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0\""; } >&5
13611   ($PKG_CONFIG --exists --print-errors "gee-1.0") 2>&5
13612   ac_status=$?
13613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614   test $ac_status = 0; }; then
13615   pkg_cv_GEE_LIBS=`$PKG_CONFIG --libs "gee-1.0" 2>/dev/null`
13616                       test "x$?" != "x0" && pkg_failed=yes
13617 else
13618   pkg_failed=yes
13619 fi
13620  else
13621     pkg_failed=untried
13622 fi
13623
13624
13625
13626 if test $pkg_failed = yes; then
13627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13629
13630 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13631         _pkg_short_errors_supported=yes
13632 else
13633         _pkg_short_errors_supported=no
13634 fi
13635         if test $_pkg_short_errors_supported = yes; then
13636                 GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-1.0" 2>&1`
13637         else
13638                 GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-1.0" 2>&1`
13639         fi
13640         # Put the nasty error message in config.log where it belongs
13641         echo "$GEE_PKG_ERRORS" >&5
13642
13643         as_fn_error $? "Package requirements (gee-1.0) were not met:
13644
13645 $GEE_PKG_ERRORS
13646
13647 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13648 installed software in a non-standard prefix.
13649
13650 Alternatively, you may set the environment variables GEE_CFLAGS
13651 and GEE_LIBS to avoid the need to call pkg-config.
13652 See the pkg-config man page for more details." "$LINENO" 5
13653 elif test $pkg_failed = untried; then
13654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655 $as_echo "no" >&6; }
13656         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13658 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13659 is in your PATH or set the PKG_CONFIG environment variable to the full
13660 path to pkg-config.
13661
13662 Alternatively, you may set the environment variables GEE_CFLAGS
13663 and GEE_LIBS to avoid the need to call pkg-config.
13664 See the pkg-config man page for more details.
13665
13666 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13667 See \`config.log' for more details" "$LINENO" 5; }
13668 else
13669         GEE_CFLAGS=$pkg_cv_GEE_CFLAGS
13670         GEE_LIBS=$pkg_cv_GEE_LIBS
13671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672 $as_echo "yes" >&6; }
13673
13674 fi
13675 else
13676         GEE_CFLAGS=$pkg_cv_GEE_CFLAGS
13677         GEE_LIBS=$pkg_cv_GEE_LIBS
13678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 $as_echo "yes" >&6; }
13680         gee_0_8=yes
13681 fi
13682
13683     ;;
13684 esac
13685  if test "$gee_0_8" = "yes"; then
13686   GEE_0_8_TRUE=
13687   GEE_0_8_FALSE='#'
13688 else
13689   GEE_0_8_TRUE='#'
13690   GEE_0_8_FALSE=
13691 fi
13692
13693  if test "$linux" = "yes"; then
13694   OS_LINUX_TRUE=
13695   OS_LINUX_FALSE='#'
13696 else
13697   OS_LINUX_TRUE='#'
13698   OS_LINUX_FALSE=
13699 fi
13700
13701  if test "$win32" = "yes"; then
13702   OS_WIN32_TRUE=
13703   OS_WIN32_FALSE='#'
13704 else
13705   OS_WIN32_TRUE='#'
13706   OS_WIN32_FALSE=
13707 fi
13708
13709  if test "$macos" = "yes"; then
13710   OS_MACOS_TRUE=
13711   OS_MACOS_FALSE='#'
13712 else
13713   OS_MACOS_TRUE='#'
13714   OS_MACOS_FALSE=
13715 fi
13716
13717
13718  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13719   IPC_MSRPC_TRUE=
13720   IPC_MSRPC_FALSE='#'
13721 else
13722   IPC_MSRPC_TRUE='#'
13723   IPC_MSRPC_FALSE=
13724 fi
13725
13726  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13727   IPC_DBUS_TRUE=
13728   IPC_DBUS_FALSE='#'
13729 else
13730   IPC_DBUS_TRUE='#'
13731   IPC_DBUS_FALSE=
13732 fi
13733
13734  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13735   IPC_DBUS_GLIB_TRUE=
13736   IPC_DBUS_GLIB_FALSE='#'
13737 else
13738   IPC_DBUS_GLIB_TRUE='#'
13739   IPC_DBUS_GLIB_FALSE=
13740 fi
13741
13742  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13743   IPC_GDBUS_TRUE=
13744   IPC_GDBUS_FALSE='#'
13745 else
13746   IPC_GDBUS_TRUE='#'
13747   IPC_GDBUS_FALSE=
13748 fi
13749
13750
13751 vala_version=`$VALAC --version | sed 's/Vala  *//'`
13752 as_arg_v1="$vala_version"
13753 as_arg_v2=0.11.1
13754 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13755 case $? in #(
13756   1) :
13757     gio_vapi_uses_arrays="no" ;; #(
13758   0) :
13759     gio_vapi_uses_arrays="yes" ;; #(
13760   2) :
13761     gio_vapi_uses_arrays="yes" ;; #(
13762   *) :
13763      ;;
13764 esac
13765  if test "$gio_vapi_uses_arrays" = "yes"; then
13766   GIO_VAPI_USES_ARRAYS_TRUE=
13767   GIO_VAPI_USES_ARRAYS_FALSE='#'
13768 else
13769   GIO_VAPI_USES_ARRAYS_TRUE='#'
13770   GIO_VAPI_USES_ARRAYS_FALSE=
13771 fi
13772
13773 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13775 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13776   as_arg_v1=0.12.2
13777 as_arg_v2="$vala_version"
13778 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13779 case $? in #(
13780   1) :
13781     vala_supports_dbus_glib="no" ;; #(
13782   0) :
13783     vala_supports_dbus_glib="no" ;; #(
13784   2) :
13785     vala_supports_dbus_glib="yes" ;; #(
13786   *) :
13787      ;;
13788 esac
13789
13790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13791 $as_echo "$vala_supports_dbus_glib" >&6; }
13792   if test "$vala_supports_dbus_glib" = "no"; then
13793     as_fn_error $? "
13794 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13795 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13796   fi
13797 fi
13798
13799 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13800   # MS RPC utilities
13801
13802   pkg_config_args="msrpc-mingw-1.0"
13803
13804
13805
13806
13807
13808
13809
13810
13811 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13812         if test -n "$ac_tool_prefix"; then
13813   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13814 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13818   $as_echo_n "(cached) " >&6
13819 else
13820   case $PKG_CONFIG in
13821   [\\/]* | ?:[\\/]*)
13822   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13823   ;;
13824   *)
13825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $PATH
13827 do
13828   IFS=$as_save_IFS
13829   test -z "$as_dir" && as_dir=.
13830     for ac_exec_ext in '' $ac_executable_extensions; do
13831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834     break 2
13835   fi
13836 done
13837   done
13838 IFS=$as_save_IFS
13839
13840   ;;
13841 esac
13842 fi
13843 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13844 if test -n "$PKG_CONFIG"; then
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13846 $as_echo "$PKG_CONFIG" >&6; }
13847 else
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13850 fi
13851
13852
13853 fi
13854 if test -z "$ac_cv_path_PKG_CONFIG"; then
13855   ac_pt_PKG_CONFIG=$PKG_CONFIG
13856   # Extract the first word of "pkg-config", so it can be a program name with args.
13857 set dummy pkg-config; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   case $ac_pt_PKG_CONFIG in
13864   [\\/]* | ?:[\\/]*)
13865   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13866   ;;
13867   *)
13868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13870 do
13871   IFS=$as_save_IFS
13872   test -z "$as_dir" && as_dir=.
13873     for ac_exec_ext in '' $ac_executable_extensions; do
13874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877     break 2
13878   fi
13879 done
13880   done
13881 IFS=$as_save_IFS
13882
13883   ;;
13884 esac
13885 fi
13886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13887 if test -n "$ac_pt_PKG_CONFIG"; then
13888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13889 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13890 else
13891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13893 fi
13894
13895   if test "x$ac_pt_PKG_CONFIG" = x; then
13896     PKG_CONFIG=""
13897   else
13898     case $cross_compiling:$ac_tool_warned in
13899 yes:)
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13902 ac_tool_warned=yes ;;
13903 esac
13904     PKG_CONFIG=$ac_pt_PKG_CONFIG
13905   fi
13906 else
13907   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13908 fi
13909
13910 fi
13911 if test -n "$PKG_CONFIG"; then
13912         _pkg_min_version=0.16
13913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13914 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13915         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13916                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13917 $as_echo "yes" >&6; }
13918         else
13919                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 $as_echo "no" >&6; }
13921                 PKG_CONFIG=""
13922         fi
13923 fi
13924
13925   no_msrpc=""
13926
13927   if test "x$PKG_CONFIG" = x ; then
13928     no_msrpc=yes
13929     PKG_CONFIG=no
13930   fi
13931
13932   min_msrpc_mingw_version=0.1.0
13933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13934 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13935
13936   if test x$PKG_CONFIG != xno ; then
13937     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13938       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13939     fi
13940
13941     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13942       :
13943     else
13944       no_msrpc=yes
13945     fi
13946   fi
13947
13948   if test x"$no_msrpc" = x ; then
13949     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13950     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13951     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13952   fi
13953
13954   if test "x$no_msrpc" = x ; then
13955      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13956 $as_echo "yes" >&6; }
13957      :
13958   else
13959      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13960 $as_echo "no" >&6; }
13961      if test "$PKG_CONFIG" = "no" ; then
13962        echo "*** A new enough version of pkg-config was not found."
13963        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13964      else
13965        echo "not found"
13966      fi
13967      MSRPC_CFLAGS=""
13968      MSRPC_LIBS=""
13969      MIDL_WRAPPER=""
13970      as_fn_error $? "
13971 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13972   fi
13973
13974
13975
13976
13977
13978   # Extract the first word of "midl", so it can be a program name with args.
13979 set dummy midl; ac_word=$2
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981 $as_echo_n "checking for $ac_word... " >&6; }
13982 if ${ac_cv_path_MIDL+:} false; then :
13983   $as_echo_n "(cached) " >&6
13984 else
13985   case $MIDL in
13986   [\\/]* | ?:[\\/]*)
13987   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13988   ;;
13989   *)
13990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13992 do
13993   IFS=$as_save_IFS
13994   test -z "$as_dir" && as_dir=.
13995     for ac_exec_ext in '' $ac_executable_extensions; do
13996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13997     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13999     break 2
14000   fi
14001 done
14002   done
14003 IFS=$as_save_IFS
14004
14005   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
14006   ;;
14007 esac
14008 fi
14009 MIDL=$ac_cv_path_MIDL
14010 if test -n "$MIDL"; then
14011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
14012 $as_echo "$MIDL" >&6; }
14013 else
14014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 $as_echo "no" >&6; }
14016 fi
14017
14018
14019   if test "$MIDL" = "no"; then
14020      as_fn_error $? "
14021 *** Could not find the Microsoft interface compiler MIDL.EXE.
14022 *** This program is available as part of the MS Windows SDK, in
14023 *** the Win32 Development Tools package. If it is not in the PATH
14024 *** or its default location you may set the 'MIDL' environment
14025 *** variable to point to its location and rerun configure." "$LINENO" 5
14026   fi
14027 fi
14028
14029 if test "$win32" = "yes"; then
14030   # Other Windows-specific tools
14031
14032   # LIB.EXE from MSVC to build an MSVC-compatible import library.
14033   # Extract the first word of "lib", so it can be a program name with args.
14034 set dummy lib; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_path_MSVC_LIB+:} false; then :
14038   $as_echo_n "(cached) " >&6
14039 else
14040   case $MSVC_LIB in
14041   [\\/]* | ?:[\\/]*)
14042   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
14043   ;;
14044   *)
14045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 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
14047 do
14048   IFS=$as_save_IFS
14049   test -z "$as_dir" && as_dir=.
14050     for ac_exec_ext in '' $ac_executable_extensions; do
14051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14052     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
14053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14054     break 2
14055   fi
14056 done
14057   done
14058 IFS=$as_save_IFS
14059
14060   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
14061   ;;
14062 esac
14063 fi
14064 MSVC_LIB=$ac_cv_path_MSVC_LIB
14065 if test -n "$MSVC_LIB"; then
14066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
14067 $as_echo "$MSVC_LIB" >&6; }
14068 else
14069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070 $as_echo "no" >&6; }
14071 fi
14072
14073
14074
14075   if test "$MSVC_LIB" = "no"; then
14076      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14077 *** Could not find the Microsoft 'LIB.EXE' program. This is required
14078 *** to build the Visual C import library for libmoonshot. Use the
14079 *** MSVC_LIB environment variable to pass its location if this is
14080 *** outside the PATH." >&5
14081 $as_echo "$as_me: WARNING:
14082 *** Could not find the Microsoft 'LIB.EXE' program. This is required
14083 *** to build the Visual C import library for libmoonshot. Use the
14084 *** MSVC_LIB environment variable to pass its location if this is
14085 *** outside the PATH." >&2;}
14086   fi
14087
14088
14089   # ImageMagick for the 'make icons' target. Note that
14090   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
14091   # Extract the first word of "convert", so it can be a program name with args.
14092 set dummy convert; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 $as_echo_n "checking for $ac_word... " >&6; }
14095 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
14096   $as_echo_n "(cached) " >&6
14097 else
14098   case $IMAGEMAGICK_CONVERT in
14099   [\\/]* | ?:[\\/]*)
14100   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
14101   ;;
14102   *)
14103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
14105 do
14106   IFS=$as_save_IFS
14107   test -z "$as_dir" && as_dir=.
14108     for ac_exec_ext in '' $ac_executable_extensions; do
14109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
14111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112     break 2
14113   fi
14114 done
14115   done
14116 IFS=$as_save_IFS
14117
14118   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
14119   ;;
14120 esac
14121 fi
14122 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
14123 if test -n "$IMAGEMAGICK_CONVERT"; then
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
14125 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
14126 else
14127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131
14132
14133   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
14134      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14135 *** Could not find ImageMagick convert.exe. This is required for the
14136 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
14137 *** variable to pass its location if this is outside the PATH." >&5
14138 $as_echo "$as_me: WARNING:
14139 *** Could not find ImageMagick convert.exe. This is required for the
14140 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
14141 *** variable to pass its location if this is outside the PATH." >&2;}
14142   fi
14143
14144
14145   # Windows Installer XML tools
14146   # Extract the first word of "candle", so it can be a program name with args.
14147 set dummy candle; ac_word=$2
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14149 $as_echo_n "checking for $ac_word... " >&6; }
14150 if ${ac_cv_path_WIX_CANDLE+:} false; then :
14151   $as_echo_n "(cached) " >&6
14152 else
14153   case $WIX_CANDLE in
14154   [\\/]* | ?:[\\/]*)
14155   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
14156   ;;
14157   *)
14158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 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
14160 do
14161   IFS=$as_save_IFS
14162   test -z "$as_dir" && as_dir=.
14163     for ac_exec_ext in '' $ac_executable_extensions; do
14164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14165     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
14166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14167     break 2
14168   fi
14169 done
14170   done
14171 IFS=$as_save_IFS
14172
14173   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
14174   ;;
14175 esac
14176 fi
14177 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
14178 if test -n "$WIX_CANDLE"; then
14179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
14180 $as_echo "$WIX_CANDLE" >&6; }
14181 else
14182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14184 fi
14185
14186
14187   # Extract the first word of "light", so it can be a program name with args.
14188 set dummy light; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if ${ac_cv_path_WIX_LIGHT+:} false; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   case $WIX_LIGHT in
14195   [\\/]* | ?:[\\/]*)
14196   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
14197   ;;
14198   *)
14199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 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
14201 do
14202   IFS=$as_save_IFS
14203   test -z "$as_dir" && as_dir=.
14204     for ac_exec_ext in '' $ac_executable_extensions; do
14205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14206     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
14207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208     break 2
14209   fi
14210 done
14211   done
14212 IFS=$as_save_IFS
14213
14214   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
14215   ;;
14216 esac
14217 fi
14218 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
14219 if test -n "$WIX_LIGHT"; then
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
14221 $as_echo "$WIX_LIGHT" >&6; }
14222 else
14223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14225 fi
14226
14227
14228
14229   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
14230      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14231 *** Could not find the Windows Installer XML tools. These are required
14232 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
14233 *** environment variables to pass their locations if they are outside
14234 *** the PATH." >&5
14235 $as_echo "$as_me: WARNING:
14236 *** Could not find the Windows Installer XML tools. These are required
14237 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
14238 *** environment variables to pass their locations if they are outside
14239 *** the PATH." >&2;}
14240   fi
14241 fi
14242
14243 if test "$linux" = "yes"; then
14244   # Extract the first word of "update-mime-database", so it can be a program name with args.
14245 set dummy update-mime-database; ac_word=$2
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   case $UPDATE_MIME_DATABASE in
14252   [\\/]* | ?:[\\/]*)
14253   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
14254   ;;
14255   *)
14256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14258 do
14259   IFS=$as_save_IFS
14260   test -z "$as_dir" && as_dir=.
14261     for ac_exec_ext in '' $ac_executable_extensions; do
14262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14263     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265     break 2
14266   fi
14267 done
14268   done
14269 IFS=$as_save_IFS
14270
14271   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
14272   ;;
14273 esac
14274 fi
14275 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
14276 if test -n "$UPDATE_MIME_DATABASE"; then
14277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
14278 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
14279 else
14280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14282 fi
14283
14284
14285   if test "$UPDATE_MIME_DATABASE" = "no"; then
14286     as_fn_error $? "
14287 *** Could not find the Freedesktop.org  mime database update tool.
14288 *** Web provisioning files could not be automatically installed." "$LINENO" 5
14289   fi
14290   # Extract the first word of "update-desktop-database", so it can be a program name with args.
14291 set dummy update-desktop-database; ac_word=$2
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14293 $as_echo_n "checking for $ac_word... " >&6; }
14294 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297   case $UPDATE_DESKTOP_DATABASE in
14298   [\\/]* | ?:[\\/]*)
14299   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
14300   ;;
14301   *)
14302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14304 do
14305   IFS=$as_save_IFS
14306   test -z "$as_dir" && as_dir=.
14307     for ac_exec_ext in '' $ac_executable_extensions; do
14308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311     break 2
14312   fi
14313 done
14314   done
14315 IFS=$as_save_IFS
14316
14317   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
14318   ;;
14319 esac
14320 fi
14321 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
14322 if test -n "$UPDATE_DESKTOP_DATABASE"; then
14323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
14324 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
14325 else
14326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14328 fi
14329
14330
14331   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
14332     as_fn_error $? "
14333 *** Could not find the Freedesktop.org desktop entry database update
14334 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
14335   fi
14336 fi
14337
14338 MOONSHOT_APP="$bindir/moonshot"
14339 MOONSHOT_WEBP="$bindir/moonshot-webp"
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351 # Dependencies
14352
14353 pkg_failed=no
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
14355 $as_echo_n "checking for moonshot... " >&6; }
14356
14357 if test -n "$moonshot_CFLAGS"; then
14358     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
14359  elif test -n "$PKG_CONFIG"; then
14360     if test -n "$PKG_CONFIG" && \
14361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14362         atk >= 1.20
14363         glib-2.0 >= 2.22
14364         gobject-2.0 >= 2.22
14365         \$GTK_VERSION
14366         \$SERVER_IPC_MODULE
14367                 \$MAC
14368 \""; } >&5
14369   ($PKG_CONFIG --exists --print-errors "
14370         atk >= 1.20
14371         glib-2.0 >= 2.22
14372         gobject-2.0 >= 2.22
14373         $GTK_VERSION
14374         $SERVER_IPC_MODULE
14375                 $MAC
14376 ") 2>&5
14377   ac_status=$?
14378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379   test $ac_status = 0; }; then
14380   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
14381         atk >= 1.20
14382         glib-2.0 >= 2.22
14383         gobject-2.0 >= 2.22
14384         $GTK_VERSION
14385         $SERVER_IPC_MODULE
14386                 $MAC
14387 " 2>/dev/null`
14388                       test "x$?" != "x0" && pkg_failed=yes
14389 else
14390   pkg_failed=yes
14391 fi
14392  else
14393     pkg_failed=untried
14394 fi
14395 if test -n "$moonshot_LIBS"; then
14396     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
14397  elif test -n "$PKG_CONFIG"; then
14398     if test -n "$PKG_CONFIG" && \
14399     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14400         atk >= 1.20
14401         glib-2.0 >= 2.22
14402         gobject-2.0 >= 2.22
14403         \$GTK_VERSION
14404         \$SERVER_IPC_MODULE
14405                 \$MAC
14406 \""; } >&5
14407   ($PKG_CONFIG --exists --print-errors "
14408         atk >= 1.20
14409         glib-2.0 >= 2.22
14410         gobject-2.0 >= 2.22
14411         $GTK_VERSION
14412         $SERVER_IPC_MODULE
14413                 $MAC
14414 ") 2>&5
14415   ac_status=$?
14416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14417   test $ac_status = 0; }; then
14418   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
14419         atk >= 1.20
14420         glib-2.0 >= 2.22
14421         gobject-2.0 >= 2.22
14422         $GTK_VERSION
14423         $SERVER_IPC_MODULE
14424                 $MAC
14425 " 2>/dev/null`
14426                       test "x$?" != "x0" && pkg_failed=yes
14427 else
14428   pkg_failed=yes
14429 fi
14430  else
14431     pkg_failed=untried
14432 fi
14433
14434
14435
14436 if test $pkg_failed = yes; then
14437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14439
14440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14441         _pkg_short_errors_supported=yes
14442 else
14443         _pkg_short_errors_supported=no
14444 fi
14445         if test $_pkg_short_errors_supported = yes; then
14446                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14447         atk >= 1.20
14448         glib-2.0 >= 2.22
14449         gobject-2.0 >= 2.22
14450         $GTK_VERSION
14451         $SERVER_IPC_MODULE
14452                 $MAC
14453 " 2>&1`
14454         else
14455                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14456         atk >= 1.20
14457         glib-2.0 >= 2.22
14458         gobject-2.0 >= 2.22
14459         $GTK_VERSION
14460         $SERVER_IPC_MODULE
14461                 $MAC
14462 " 2>&1`
14463         fi
14464         # Put the nasty error message in config.log where it belongs
14465         echo "$moonshot_PKG_ERRORS" >&5
14466
14467         as_fn_error $? "Package requirements (
14468         atk >= 1.20
14469         glib-2.0 >= 2.22
14470         gobject-2.0 >= 2.22
14471         $GTK_VERSION
14472         $SERVER_IPC_MODULE
14473                 $MAC
14474 ) were not met:
14475
14476 $moonshot_PKG_ERRORS
14477
14478 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14479 installed software in a non-standard prefix.
14480
14481 Alternatively, you may set the environment variables moonshot_CFLAGS
14482 and moonshot_LIBS to avoid the need to call pkg-config.
14483 See the pkg-config man page for more details." "$LINENO" 5
14484 elif test $pkg_failed = untried; then
14485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14487         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14489 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14490 is in your PATH or set the PKG_CONFIG environment variable to the full
14491 path to pkg-config.
14492
14493 Alternatively, you may set the environment variables moonshot_CFLAGS
14494 and moonshot_LIBS to avoid the need to call pkg-config.
14495 See the pkg-config man page for more details.
14496
14497 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14498 See \`config.log' for more details" "$LINENO" 5; }
14499 else
14500         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14501         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14503 $as_echo "yes" >&6; }
14504
14505 fi
14506
14507
14508 pkg_failed=no
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14510 $as_echo_n "checking for libmoonshot... " >&6; }
14511
14512 if test -n "$libmoonshot_CFLAGS"; then
14513     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14514  elif test -n "$PKG_CONFIG"; then
14515     if test -n "$PKG_CONFIG" && \
14516     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14517         \$CLIENT_IPC_MODULE
14518 \""; } >&5
14519   ($PKG_CONFIG --exists --print-errors "
14520         $CLIENT_IPC_MODULE
14521 ") 2>&5
14522   ac_status=$?
14523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14524   test $ac_status = 0; }; then
14525   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14526         $CLIENT_IPC_MODULE
14527 " 2>/dev/null`
14528                       test "x$?" != "x0" && pkg_failed=yes
14529 else
14530   pkg_failed=yes
14531 fi
14532  else
14533     pkg_failed=untried
14534 fi
14535 if test -n "$libmoonshot_LIBS"; then
14536     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
14537  elif test -n "$PKG_CONFIG"; then
14538     if test -n "$PKG_CONFIG" && \
14539     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14540         \$CLIENT_IPC_MODULE
14541 \""; } >&5
14542   ($PKG_CONFIG --exists --print-errors "
14543         $CLIENT_IPC_MODULE
14544 ") 2>&5
14545   ac_status=$?
14546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14547   test $ac_status = 0; }; then
14548   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
14549         $CLIENT_IPC_MODULE
14550 " 2>/dev/null`
14551                       test "x$?" != "x0" && pkg_failed=yes
14552 else
14553   pkg_failed=yes
14554 fi
14555  else
14556     pkg_failed=untried
14557 fi
14558
14559
14560
14561 if test $pkg_failed = yes; then
14562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563 $as_echo "no" >&6; }
14564
14565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14566         _pkg_short_errors_supported=yes
14567 else
14568         _pkg_short_errors_supported=no
14569 fi
14570         if test $_pkg_short_errors_supported = yes; then
14571                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14572         $CLIENT_IPC_MODULE
14573 " 2>&1`
14574         else
14575                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14576         $CLIENT_IPC_MODULE
14577 " 2>&1`
14578         fi
14579         # Put the nasty error message in config.log where it belongs
14580         echo "$libmoonshot_PKG_ERRORS" >&5
14581
14582         as_fn_error $? "Package requirements (
14583         $CLIENT_IPC_MODULE
14584 ) were not met:
14585
14586 $libmoonshot_PKG_ERRORS
14587
14588 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14589 installed software in a non-standard prefix.
14590
14591 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14592 and libmoonshot_LIBS to avoid the need to call pkg-config.
14593 See the pkg-config man page for more details." "$LINENO" 5
14594 elif test $pkg_failed = untried; then
14595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14597         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14599 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14600 is in your PATH or set the PKG_CONFIG environment variable to the full
14601 path to pkg-config.
14602
14603 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14604 and libmoonshot_LIBS to avoid the need to call pkg-config.
14605 See the pkg-config man page for more details.
14606
14607 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14608 See \`config.log' for more details" "$LINENO" 5; }
14609 else
14610         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14611         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14613 $as_echo "yes" >&6; }
14614
14615 fi
14616
14617 # i18n stuff
14618
14619 mkdir_p="$MKDIR_P"
14620 case $mkdir_p in
14621   [\\/$]* | ?:[\\/]*) ;;
14622   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14623 esac
14624
14625
14626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14627 $as_echo_n "checking whether NLS is requested... " >&6; }
14628     # Check whether --enable-nls was given.
14629 if test "${enable_nls+set}" = set; then :
14630   enableval=$enable_nls; USE_NLS=$enableval
14631 else
14632   USE_NLS=yes
14633 fi
14634
14635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14636 $as_echo "$USE_NLS" >&6; }
14637
14638
14639
14640
14641       GETTEXT_MACRO_VERSION=0.18
14642
14643
14644
14645
14646 # Prepare PATH_SEPARATOR.
14647 # The user is always right.
14648 if test "${PATH_SEPARATOR+set}" != set; then
14649   echo "#! /bin/sh" >conf$$.sh
14650   echo  "exit 0"   >>conf$$.sh
14651   chmod +x conf$$.sh
14652   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14653     PATH_SEPARATOR=';'
14654   else
14655     PATH_SEPARATOR=:
14656   fi
14657   rm -f conf$$.sh
14658 fi
14659
14660 # Find out how to test for executable files. Don't use a zero-byte file,
14661 # as systems may use methods other than mode bits to determine executability.
14662 cat >conf$$.file <<_ASEOF
14663 #! /bin/sh
14664 exit 0
14665 _ASEOF
14666 chmod +x conf$$.file
14667 if test -x conf$$.file >/dev/null 2>&1; then
14668   ac_executable_p="test -x"
14669 else
14670   ac_executable_p="test -f"
14671 fi
14672 rm -f conf$$.file
14673
14674 # Extract the first word of "msgfmt", so it can be a program name with args.
14675 set dummy msgfmt; ac_word=$2
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14677 $as_echo_n "checking for $ac_word... " >&6; }
14678 if ${ac_cv_path_MSGFMT+:} false; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681   case "$MSGFMT" in
14682   [\\/]* | ?:[\\/]*)
14683     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14684     ;;
14685   *)
14686     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14687     for ac_dir in $PATH; do
14688       IFS="$ac_save_IFS"
14689       test -z "$ac_dir" && ac_dir=.
14690       for ac_exec_ext in '' $ac_executable_extensions; do
14691         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14692           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14693           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14694      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14695             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14696             break 2
14697           fi
14698         fi
14699       done
14700     done
14701     IFS="$ac_save_IFS"
14702   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14703     ;;
14704 esac
14705 fi
14706 MSGFMT="$ac_cv_path_MSGFMT"
14707 if test "$MSGFMT" != ":"; then
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14709 $as_echo "$MSGFMT" >&6; }
14710 else
14711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14713 fi
14714
14715   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14716 set dummy gmsgfmt; ac_word=$2
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718 $as_echo_n "checking for $ac_word... " >&6; }
14719 if ${ac_cv_path_GMSGFMT+:} false; then :
14720   $as_echo_n "(cached) " >&6
14721 else
14722   case $GMSGFMT in
14723   [\\/]* | ?:[\\/]*)
14724   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14725   ;;
14726   *)
14727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728 for as_dir in $PATH
14729 do
14730   IFS=$as_save_IFS
14731   test -z "$as_dir" && as_dir=.
14732     for ac_exec_ext in '' $ac_executable_extensions; do
14733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14734     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14736     break 2
14737   fi
14738 done
14739   done
14740 IFS=$as_save_IFS
14741
14742   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14743   ;;
14744 esac
14745 fi
14746 GMSGFMT=$ac_cv_path_GMSGFMT
14747 if test -n "$GMSGFMT"; then
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14749 $as_echo "$GMSGFMT" >&6; }
14750 else
14751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754
14755
14756
14757     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14758     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14759     *) MSGFMT_015=$MSGFMT ;;
14760   esac
14761
14762   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14763     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14764     *) GMSGFMT_015=$GMSGFMT ;;
14765   esac
14766
14767
14768
14769 # Prepare PATH_SEPARATOR.
14770 # The user is always right.
14771 if test "${PATH_SEPARATOR+set}" != set; then
14772   echo "#! /bin/sh" >conf$$.sh
14773   echo  "exit 0"   >>conf$$.sh
14774   chmod +x conf$$.sh
14775   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14776     PATH_SEPARATOR=';'
14777   else
14778     PATH_SEPARATOR=:
14779   fi
14780   rm -f conf$$.sh
14781 fi
14782
14783 # Find out how to test for executable files. Don't use a zero-byte file,
14784 # as systems may use methods other than mode bits to determine executability.
14785 cat >conf$$.file <<_ASEOF
14786 #! /bin/sh
14787 exit 0
14788 _ASEOF
14789 chmod +x conf$$.file
14790 if test -x conf$$.file >/dev/null 2>&1; then
14791   ac_executable_p="test -x"
14792 else
14793   ac_executable_p="test -f"
14794 fi
14795 rm -f conf$$.file
14796
14797 # Extract the first word of "xgettext", so it can be a program name with args.
14798 set dummy xgettext; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800 $as_echo_n "checking for $ac_word... " >&6; }
14801 if ${ac_cv_path_XGETTEXT+:} false; then :
14802   $as_echo_n "(cached) " >&6
14803 else
14804   case "$XGETTEXT" in
14805   [\\/]* | ?:[\\/]*)
14806     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14807     ;;
14808   *)
14809     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14810     for ac_dir in $PATH; do
14811       IFS="$ac_save_IFS"
14812       test -z "$ac_dir" && ac_dir=.
14813       for ac_exec_ext in '' $ac_executable_extensions; do
14814         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14815           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14816           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14817      (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
14818             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14819             break 2
14820           fi
14821         fi
14822       done
14823     done
14824     IFS="$ac_save_IFS"
14825   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14826     ;;
14827 esac
14828 fi
14829 XGETTEXT="$ac_cv_path_XGETTEXT"
14830 if test "$XGETTEXT" != ":"; then
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14832 $as_echo "$XGETTEXT" >&6; }
14833 else
14834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835 $as_echo "no" >&6; }
14836 fi
14837
14838     rm -f messages.po
14839
14840     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14841     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14842     *) XGETTEXT_015=$XGETTEXT ;;
14843   esac
14844
14845
14846
14847 # Prepare PATH_SEPARATOR.
14848 # The user is always right.
14849 if test "${PATH_SEPARATOR+set}" != set; then
14850   echo "#! /bin/sh" >conf$$.sh
14851   echo  "exit 0"   >>conf$$.sh
14852   chmod +x conf$$.sh
14853   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14854     PATH_SEPARATOR=';'
14855   else
14856     PATH_SEPARATOR=:
14857   fi
14858   rm -f conf$$.sh
14859 fi
14860
14861 # Find out how to test for executable files. Don't use a zero-byte file,
14862 # as systems may use methods other than mode bits to determine executability.
14863 cat >conf$$.file <<_ASEOF
14864 #! /bin/sh
14865 exit 0
14866 _ASEOF
14867 chmod +x conf$$.file
14868 if test -x conf$$.file >/dev/null 2>&1; then
14869   ac_executable_p="test -x"
14870 else
14871   ac_executable_p="test -f"
14872 fi
14873 rm -f conf$$.file
14874
14875 # Extract the first word of "msgmerge", so it can be a program name with args.
14876 set dummy msgmerge; ac_word=$2
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14878 $as_echo_n "checking for $ac_word... " >&6; }
14879 if ${ac_cv_path_MSGMERGE+:} false; then :
14880   $as_echo_n "(cached) " >&6
14881 else
14882   case "$MSGMERGE" in
14883   [\\/]* | ?:[\\/]*)
14884     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14885     ;;
14886   *)
14887     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14888     for ac_dir in $PATH; do
14889       IFS="$ac_save_IFS"
14890       test -z "$ac_dir" && ac_dir=.
14891       for ac_exec_ext in '' $ac_executable_extensions; do
14892         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14893           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14894           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14895             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14896             break 2
14897           fi
14898         fi
14899       done
14900     done
14901     IFS="$ac_save_IFS"
14902   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14903     ;;
14904 esac
14905 fi
14906 MSGMERGE="$ac_cv_path_MSGMERGE"
14907 if test "$MSGMERGE" != ":"; then
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14909 $as_echo "$MSGMERGE" >&6; }
14910 else
14911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912 $as_echo "no" >&6; }
14913 fi
14914
14915
14916         test -n "$localedir" || localedir='${datadir}/locale'
14917
14918
14919     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14920
14921
14922   ac_config_commands="$ac_config_commands po-directories"
14923
14924
14925
14926       if test "X$prefix" = "XNONE"; then
14927     acl_final_prefix="$ac_default_prefix"
14928   else
14929     acl_final_prefix="$prefix"
14930   fi
14931   if test "X$exec_prefix" = "XNONE"; then
14932     acl_final_exec_prefix='${prefix}'
14933   else
14934     acl_final_exec_prefix="$exec_prefix"
14935   fi
14936   acl_save_prefix="$prefix"
14937   prefix="$acl_final_prefix"
14938   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14939   prefix="$acl_save_prefix"
14940
14941
14942 # Check whether --with-gnu-ld was given.
14943 if test "${with_gnu_ld+set}" = set; then :
14944   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14945 else
14946   with_gnu_ld=no
14947 fi
14948
14949 # Prepare PATH_SEPARATOR.
14950 # The user is always right.
14951 if test "${PATH_SEPARATOR+set}" != set; then
14952   echo "#! /bin/sh" >conf$$.sh
14953   echo  "exit 0"   >>conf$$.sh
14954   chmod +x conf$$.sh
14955   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14956     PATH_SEPARATOR=';'
14957   else
14958     PATH_SEPARATOR=:
14959   fi
14960   rm -f conf$$.sh
14961 fi
14962 ac_prog=ld
14963 if test "$GCC" = yes; then
14964   # Check if gcc -print-prog-name=ld gives a path.
14965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14966 $as_echo_n "checking for ld used by GCC... " >&6; }
14967   case $host in
14968   *-*-mingw*)
14969     # gcc leaves a trailing carriage return which upsets mingw
14970     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14971   *)
14972     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14973   esac
14974   case $ac_prog in
14975     # Accept absolute paths.
14976     [\\/]* | [A-Za-z]:[\\/]*)
14977       re_direlt='/[^/][^/]*/\.\./'
14978       # Canonicalize the path of ld
14979       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14980       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14981         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14982       done
14983       test -z "$LD" && LD="$ac_prog"
14984       ;;
14985   "")
14986     # If it fails, then pretend we aren't using GCC.
14987     ac_prog=ld
14988     ;;
14989   *)
14990     # If it is relative, then search for the first ld in PATH.
14991     with_gnu_ld=unknown
14992     ;;
14993   esac
14994 elif test "$with_gnu_ld" = yes; then
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14996 $as_echo_n "checking for GNU ld... " >&6; }
14997 else
14998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14999 $as_echo_n "checking for non-GNU ld... " >&6; }
15000 fi
15001 if ${acl_cv_path_LD+:} false; then :
15002   $as_echo_n "(cached) " >&6
15003 else
15004   if test -z "$LD"; then
15005   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15006   for ac_dir in $PATH; do
15007     test -z "$ac_dir" && ac_dir=.
15008     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15009       acl_cv_path_LD="$ac_dir/$ac_prog"
15010       # Check to see if the program is GNU ld.  I'd rather use --version,
15011       # but apparently some GNU ld's only accept -v.
15012       # Break only if it was the GNU/non-GNU ld that we prefer.
15013       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15014       *GNU* | *'with BFD'*)
15015         test "$with_gnu_ld" != no && break ;;
15016       *)
15017         test "$with_gnu_ld" != yes && break ;;
15018       esac
15019     fi
15020   done
15021   IFS="$ac_save_ifs"
15022 else
15023   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15024 fi
15025 fi
15026
15027 LD="$acl_cv_path_LD"
15028 if test -n "$LD"; then
15029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15030 $as_echo "$LD" >&6; }
15031 else
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034 fi
15035 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15038 if ${acl_cv_prog_gnu_ld+:} false; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15042 case `$LD -v 2>&1 </dev/null` in
15043 *GNU* | *'with BFD'*)
15044   acl_cv_prog_gnu_ld=yes ;;
15045 *)
15046   acl_cv_prog_gnu_ld=no ;;
15047 esac
15048 fi
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15050 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15051 with_gnu_ld=$acl_cv_prog_gnu_ld
15052
15053
15054
15055
15056                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15057 $as_echo_n "checking for shared library run path origin... " >&6; }
15058 if ${acl_cv_rpath+:} false; then :
15059   $as_echo_n "(cached) " >&6
15060 else
15061
15062     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15063     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15064     . ./conftest.sh
15065     rm -f ./conftest.sh
15066     acl_cv_rpath=done
15067
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15070 $as_echo "$acl_cv_rpath" >&6; }
15071   wl="$acl_cv_wl"
15072   acl_libext="$acl_cv_libext"
15073   acl_shlibext="$acl_cv_shlibext"
15074   acl_libname_spec="$acl_cv_libname_spec"
15075   acl_library_names_spec="$acl_cv_library_names_spec"
15076   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15077   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15078   acl_hardcode_direct="$acl_cv_hardcode_direct"
15079   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15080     # Check whether --enable-rpath was given.
15081 if test "${enable_rpath+set}" = set; then :
15082   enableval=$enable_rpath; :
15083 else
15084   enable_rpath=yes
15085 fi
15086
15087
15088
15089
15090   acl_libdirstem=lib
15091   acl_libdirstem2=
15092   case "$host_os" in
15093     solaris*)
15094                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15095 $as_echo_n "checking for 64-bit host... " >&6; }
15096 if ${gl_cv_solaris_64bit+:} false; then :
15097   $as_echo_n "(cached) " >&6
15098 else
15099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h.  */
15101
15102 #ifdef _LP64
15103 sixtyfour bits
15104 #endif
15105
15106 _ACEOF
15107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15108   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15109   gl_cv_solaris_64bit=yes
15110 else
15111   gl_cv_solaris_64bit=no
15112 fi
15113 rm -f conftest*
15114
15115
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15118 $as_echo "$gl_cv_solaris_64bit" >&6; }
15119       if test $gl_cv_solaris_64bit = yes; then
15120         acl_libdirstem=lib/64
15121         case "$host_cpu" in
15122           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15123           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15124         esac
15125       fi
15126       ;;
15127     *)
15128       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15129       if test -n "$searchpath"; then
15130         acl_save_IFS="${IFS=    }"; IFS=":"
15131         for searchdir in $searchpath; do
15132           if test -d "$searchdir"; then
15133             case "$searchdir" in
15134               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15135               */../ | */.. )
15136                 # Better ignore directories of this form. They are misleading.
15137                 ;;
15138               *) searchdir=`cd "$searchdir" && pwd`
15139                  case "$searchdir" in
15140                    */lib64 ) acl_libdirstem=lib64 ;;
15141                  esac ;;
15142             esac
15143           fi
15144         done
15145         IFS="$acl_save_IFS"
15146       fi
15147       ;;
15148   esac
15149   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162     use_additional=yes
15163
15164   acl_save_prefix="$prefix"
15165   prefix="$acl_final_prefix"
15166   acl_save_exec_prefix="$exec_prefix"
15167   exec_prefix="$acl_final_exec_prefix"
15168
15169     eval additional_includedir=\"$includedir\"
15170     eval additional_libdir=\"$libdir\"
15171
15172   exec_prefix="$acl_save_exec_prefix"
15173   prefix="$acl_save_prefix"
15174
15175
15176 # Check whether --with-libiconv-prefix was given.
15177 if test "${with_libiconv_prefix+set}" = set; then :
15178   withval=$with_libiconv_prefix;
15179     if test "X$withval" = "Xno"; then
15180       use_additional=no
15181     else
15182       if test "X$withval" = "X"; then
15183
15184   acl_save_prefix="$prefix"
15185   prefix="$acl_final_prefix"
15186   acl_save_exec_prefix="$exec_prefix"
15187   exec_prefix="$acl_final_exec_prefix"
15188
15189           eval additional_includedir=\"$includedir\"
15190           eval additional_libdir=\"$libdir\"
15191
15192   exec_prefix="$acl_save_exec_prefix"
15193   prefix="$acl_save_prefix"
15194
15195       else
15196         additional_includedir="$withval/include"
15197         additional_libdir="$withval/$acl_libdirstem"
15198         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15199            && ! test -d "$withval/$acl_libdirstem"; then
15200           additional_libdir="$withval/$acl_libdirstem2"
15201         fi
15202       fi
15203     fi
15204
15205 fi
15206
15207       LIBICONV=
15208   LTLIBICONV=
15209   INCICONV=
15210   LIBICONV_PREFIX=
15211       HAVE_LIBICONV=
15212   rpathdirs=
15213   ltrpathdirs=
15214   names_already_handled=
15215   names_next_round='iconv '
15216   while test -n "$names_next_round"; do
15217     names_this_round="$names_next_round"
15218     names_next_round=
15219     for name in $names_this_round; do
15220       already_handled=
15221       for n in $names_already_handled; do
15222         if test "$n" = "$name"; then
15223           already_handled=yes
15224           break
15225         fi
15226       done
15227       if test -z "$already_handled"; then
15228         names_already_handled="$names_already_handled $name"
15229                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15230         eval value=\"\$HAVE_LIB$uppername\"
15231         if test -n "$value"; then
15232           if test "$value" = yes; then
15233             eval value=\"\$LIB$uppername\"
15234             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15235             eval value=\"\$LTLIB$uppername\"
15236             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15237           else
15238                                     :
15239           fi
15240         else
15241                               found_dir=
15242           found_la=
15243           found_so=
15244           found_a=
15245           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15246           if test -n "$acl_shlibext"; then
15247             shrext=".$acl_shlibext"             # typically: shrext=.so
15248           else
15249             shrext=
15250           fi
15251           if test $use_additional = yes; then
15252             dir="$additional_libdir"
15253                                     if test -n "$acl_shlibext"; then
15254               if test -f "$dir/$libname$shrext"; then
15255                 found_dir="$dir"
15256                 found_so="$dir/$libname$shrext"
15257               else
15258                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15259                   ver=`(cd "$dir" && \
15260                         for f in "$libname$shrext".*; do echo "$f"; done \
15261                         | sed -e "s,^$libname$shrext\\\\.,," \
15262                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15263                         | sed 1q ) 2>/dev/null`
15264                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15265                     found_dir="$dir"
15266                     found_so="$dir/$libname$shrext.$ver"
15267                   fi
15268                 else
15269                   eval library_names=\"$acl_library_names_spec\"
15270                   for f in $library_names; do
15271                     if test -f "$dir/$f"; then
15272                       found_dir="$dir"
15273                       found_so="$dir/$f"
15274                       break
15275                     fi
15276                   done
15277                 fi
15278               fi
15279             fi
15280                         if test "X$found_dir" = "X"; then
15281               if test -f "$dir/$libname.$acl_libext"; then
15282                 found_dir="$dir"
15283                 found_a="$dir/$libname.$acl_libext"
15284               fi
15285             fi
15286             if test "X$found_dir" != "X"; then
15287               if test -f "$dir/$libname.la"; then
15288                 found_la="$dir/$libname.la"
15289               fi
15290             fi
15291           fi
15292           if test "X$found_dir" = "X"; then
15293             for x in $LDFLAGS $LTLIBICONV; do
15294
15295   acl_save_prefix="$prefix"
15296   prefix="$acl_final_prefix"
15297   acl_save_exec_prefix="$exec_prefix"
15298   exec_prefix="$acl_final_exec_prefix"
15299   eval x=\"$x\"
15300   exec_prefix="$acl_save_exec_prefix"
15301   prefix="$acl_save_prefix"
15302
15303               case "$x" in
15304                 -L*)
15305                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15306                                     if test -n "$acl_shlibext"; then
15307                     if test -f "$dir/$libname$shrext"; then
15308                       found_dir="$dir"
15309                       found_so="$dir/$libname$shrext"
15310                     else
15311                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15312                         ver=`(cd "$dir" && \
15313                               for f in "$libname$shrext".*; do echo "$f"; done \
15314                               | sed -e "s,^$libname$shrext\\\\.,," \
15315                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15316                               | sed 1q ) 2>/dev/null`
15317                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15318                           found_dir="$dir"
15319                           found_so="$dir/$libname$shrext.$ver"
15320                         fi
15321                       else
15322                         eval library_names=\"$acl_library_names_spec\"
15323                         for f in $library_names; do
15324                           if test -f "$dir/$f"; then
15325                             found_dir="$dir"
15326                             found_so="$dir/$f"
15327                             break
15328                           fi
15329                         done
15330                       fi
15331                     fi
15332                   fi
15333                                     if test "X$found_dir" = "X"; then
15334                     if test -f "$dir/$libname.$acl_libext"; then
15335                       found_dir="$dir"
15336                       found_a="$dir/$libname.$acl_libext"
15337                     fi
15338                   fi
15339                   if test "X$found_dir" != "X"; then
15340                     if test -f "$dir/$libname.la"; then
15341                       found_la="$dir/$libname.la"
15342                     fi
15343                   fi
15344                   ;;
15345               esac
15346               if test "X$found_dir" != "X"; then
15347                 break
15348               fi
15349             done
15350           fi
15351           if test "X$found_dir" != "X"; then
15352                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15353             if test "X$found_so" != "X"; then
15354                                                         if test "$enable_rpath" = no \
15355                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15356                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15357                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15358               else
15359                                                                                 haveit=
15360                 for x in $ltrpathdirs; do
15361                   if test "X$x" = "X$found_dir"; then
15362                     haveit=yes
15363                     break
15364                   fi
15365                 done
15366                 if test -z "$haveit"; then
15367                   ltrpathdirs="$ltrpathdirs $found_dir"
15368                 fi
15369                                 if test "$acl_hardcode_direct" = yes; then
15370                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15371                 else
15372                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15373                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15374                                                             haveit=
15375                     for x in $rpathdirs; do
15376                       if test "X$x" = "X$found_dir"; then
15377                         haveit=yes
15378                         break
15379                       fi
15380                     done
15381                     if test -z "$haveit"; then
15382                       rpathdirs="$rpathdirs $found_dir"
15383                     fi
15384                   else
15385                                                                                 haveit=
15386                     for x in $LDFLAGS $LIBICONV; do
15387
15388   acl_save_prefix="$prefix"
15389   prefix="$acl_final_prefix"
15390   acl_save_exec_prefix="$exec_prefix"
15391   exec_prefix="$acl_final_exec_prefix"
15392   eval x=\"$x\"
15393   exec_prefix="$acl_save_exec_prefix"
15394   prefix="$acl_save_prefix"
15395
15396                       if test "X$x" = "X-L$found_dir"; then
15397                         haveit=yes
15398                         break
15399                       fi
15400                     done
15401                     if test -z "$haveit"; then
15402                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15403                     fi
15404                     if test "$acl_hardcode_minus_L" != no; then
15405                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15406                     else
15407                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15408                     fi
15409                   fi
15410                 fi
15411               fi
15412             else
15413               if test "X$found_a" != "X"; then
15414                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15415               else
15416                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15417               fi
15418             fi
15419                         additional_includedir=
15420             case "$found_dir" in
15421               */$acl_libdirstem | */$acl_libdirstem/)
15422                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15423                 if test "$name" = 'iconv'; then
15424                   LIBICONV_PREFIX="$basedir"
15425                 fi
15426                 additional_includedir="$basedir/include"
15427                 ;;
15428               */$acl_libdirstem2 | */$acl_libdirstem2/)
15429                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15430                 if test "$name" = 'iconv'; then
15431                   LIBICONV_PREFIX="$basedir"
15432                 fi
15433                 additional_includedir="$basedir/include"
15434                 ;;
15435             esac
15436             if test "X$additional_includedir" != "X"; then
15437                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15438                 haveit=
15439                 if test "X$additional_includedir" = "X/usr/local/include"; then
15440                   if test -n "$GCC"; then
15441                     case $host_os in
15442                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15443                     esac
15444                   fi
15445                 fi
15446                 if test -z "$haveit"; then
15447                   for x in $CPPFLAGS $INCICONV; do
15448
15449   acl_save_prefix="$prefix"
15450   prefix="$acl_final_prefix"
15451   acl_save_exec_prefix="$exec_prefix"
15452   exec_prefix="$acl_final_exec_prefix"
15453   eval x=\"$x\"
15454   exec_prefix="$acl_save_exec_prefix"
15455   prefix="$acl_save_prefix"
15456
15457                     if test "X$x" = "X-I$additional_includedir"; then
15458                       haveit=yes
15459                       break
15460                     fi
15461                   done
15462                   if test -z "$haveit"; then
15463                     if test -d "$additional_includedir"; then
15464                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15465                     fi
15466                   fi
15467                 fi
15468               fi
15469             fi
15470                         if test -n "$found_la"; then
15471                                                         save_libdir="$libdir"
15472               case "$found_la" in
15473                 */* | *\\*) . "$found_la" ;;
15474                 *) . "./$found_la" ;;
15475               esac
15476               libdir="$save_libdir"
15477                             for dep in $dependency_libs; do
15478                 case "$dep" in
15479                   -L*)
15480                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15481                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15482                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15483                       haveit=
15484                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15485                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15486                         if test -n "$GCC"; then
15487                           case $host_os in
15488                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15489                           esac
15490                         fi
15491                       fi
15492                       if test -z "$haveit"; then
15493                         haveit=
15494                         for x in $LDFLAGS $LIBICONV; do
15495
15496   acl_save_prefix="$prefix"
15497   prefix="$acl_final_prefix"
15498   acl_save_exec_prefix="$exec_prefix"
15499   exec_prefix="$acl_final_exec_prefix"
15500   eval x=\"$x\"
15501   exec_prefix="$acl_save_exec_prefix"
15502   prefix="$acl_save_prefix"
15503
15504                           if test "X$x" = "X-L$additional_libdir"; then
15505                             haveit=yes
15506                             break
15507                           fi
15508                         done
15509                         if test -z "$haveit"; then
15510                           if test -d "$additional_libdir"; then
15511                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15512                           fi
15513                         fi
15514                         haveit=
15515                         for x in $LDFLAGS $LTLIBICONV; do
15516
15517   acl_save_prefix="$prefix"
15518   prefix="$acl_final_prefix"
15519   acl_save_exec_prefix="$exec_prefix"
15520   exec_prefix="$acl_final_exec_prefix"
15521   eval x=\"$x\"
15522   exec_prefix="$acl_save_exec_prefix"
15523   prefix="$acl_save_prefix"
15524
15525                           if test "X$x" = "X-L$additional_libdir"; then
15526                             haveit=yes
15527                             break
15528                           fi
15529                         done
15530                         if test -z "$haveit"; then
15531                           if test -d "$additional_libdir"; then
15532                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15533                           fi
15534                         fi
15535                       fi
15536                     fi
15537                     ;;
15538                   -R*)
15539                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15540                     if test "$enable_rpath" != no; then
15541                                                                   haveit=
15542                       for x in $rpathdirs; do
15543                         if test "X$x" = "X$dir"; then
15544                           haveit=yes
15545                           break
15546                         fi
15547                       done
15548                       if test -z "$haveit"; then
15549                         rpathdirs="$rpathdirs $dir"
15550                       fi
15551                                                                   haveit=
15552                       for x in $ltrpathdirs; do
15553                         if test "X$x" = "X$dir"; then
15554                           haveit=yes
15555                           break
15556                         fi
15557                       done
15558                       if test -z "$haveit"; then
15559                         ltrpathdirs="$ltrpathdirs $dir"
15560                       fi
15561                     fi
15562                     ;;
15563                   -l*)
15564                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15565                     ;;
15566                   *.la)
15567                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15568                     ;;
15569                   *)
15570                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15571                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15572                     ;;
15573                 esac
15574               done
15575             fi
15576           else
15577                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15578             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15579           fi
15580         fi
15581       fi
15582     done
15583   done
15584   if test "X$rpathdirs" != "X"; then
15585     if test -n "$acl_hardcode_libdir_separator"; then
15586                         alldirs=
15587       for found_dir in $rpathdirs; do
15588         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15589       done
15590             acl_save_libdir="$libdir"
15591       libdir="$alldirs"
15592       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15593       libdir="$acl_save_libdir"
15594       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15595     else
15596             for found_dir in $rpathdirs; do
15597         acl_save_libdir="$libdir"
15598         libdir="$found_dir"
15599         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15600         libdir="$acl_save_libdir"
15601         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15602       done
15603     fi
15604   fi
15605   if test "X$ltrpathdirs" != "X"; then
15606             for found_dir in $ltrpathdirs; do
15607       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15608     done
15609   fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15642 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15643 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15644   $as_echo_n "(cached) " >&6
15645 else
15646   gt_save_LIBS="$LIBS"
15647      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15648      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h.  */
15650 #include <CoreFoundation/CFPreferences.h>
15651 int
15652 main ()
15653 {
15654 CFPreferencesCopyAppValue(NULL, NULL)
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 if ac_fn_c_try_link "$LINENO"; then :
15660   gt_cv_func_CFPreferencesCopyAppValue=yes
15661 else
15662   gt_cv_func_CFPreferencesCopyAppValue=no
15663 fi
15664 rm -f core conftest.err conftest.$ac_objext \
15665     conftest$ac_exeext conftest.$ac_ext
15666      LIBS="$gt_save_LIBS"
15667 fi
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15669 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15670   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15671
15672 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15673
15674   fi
15675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15676 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15677 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15678   $as_echo_n "(cached) " >&6
15679 else
15680   gt_save_LIBS="$LIBS"
15681      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h.  */
15684 #include <CoreFoundation/CFLocale.h>
15685 int
15686 main ()
15687 {
15688 CFLocaleCopyCurrent();
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"; then :
15694   gt_cv_func_CFLocaleCopyCurrent=yes
15695 else
15696   gt_cv_func_CFLocaleCopyCurrent=no
15697 fi
15698 rm -f core conftest.err conftest.$ac_objext \
15699     conftest$ac_exeext conftest.$ac_ext
15700      LIBS="$gt_save_LIBS"
15701 fi
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15703 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15704   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15705
15706 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15707
15708   fi
15709   INTL_MACOSX_LIBS=
15710   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15711     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15712   fi
15713
15714
15715
15716
15717
15718
15719   LIBINTL=
15720   LTLIBINTL=
15721   POSUB=
15722
15723     case " $gt_needs " in
15724     *" need-formatstring-macros "*) gt_api_version=3 ;;
15725     *" need-ngettext "*) gt_api_version=2 ;;
15726     *) gt_api_version=1 ;;
15727   esac
15728   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15729   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15730
15731     if test "$USE_NLS" = "yes"; then
15732     gt_use_preinstalled_gnugettext=no
15733
15734
15735         if test $gt_api_version -ge 3; then
15736           gt_revision_test_code='
15737 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15738 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15739 #endif
15740 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15741 '
15742         else
15743           gt_revision_test_code=
15744         fi
15745         if test $gt_api_version -ge 2; then
15746           gt_expression_test_code=' + * ngettext ("", "", 0)'
15747         else
15748           gt_expression_test_code=
15749         fi
15750
15751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15752 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15753 if eval \${$gt_func_gnugettext_libc+:} false; then :
15754   $as_echo_n "(cached) " >&6
15755 else
15756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h.  */
15758 #include <libintl.h>
15759 $gt_revision_test_code
15760 extern int _nl_msg_cat_cntr;
15761 extern int *_nl_domain_bindings;
15762 int
15763 main ()
15764 {
15765 bindtextdomain ("", "");
15766 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15767   ;
15768   return 0;
15769 }
15770 _ACEOF
15771 if ac_fn_c_try_link "$LINENO"; then :
15772   eval "$gt_func_gnugettext_libc=yes"
15773 else
15774   eval "$gt_func_gnugettext_libc=no"
15775 fi
15776 rm -f core conftest.err conftest.$ac_objext \
15777     conftest$ac_exeext conftest.$ac_ext
15778 fi
15779 eval ac_res=\$$gt_func_gnugettext_libc
15780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15781 $as_echo "$ac_res" >&6; }
15782
15783         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15784
15785
15786
15787
15788
15789           am_save_CPPFLAGS="$CPPFLAGS"
15790
15791   for element in $INCICONV; do
15792     haveit=
15793     for x in $CPPFLAGS; do
15794
15795   acl_save_prefix="$prefix"
15796   prefix="$acl_final_prefix"
15797   acl_save_exec_prefix="$exec_prefix"
15798   exec_prefix="$acl_final_exec_prefix"
15799   eval x=\"$x\"
15800   exec_prefix="$acl_save_exec_prefix"
15801   prefix="$acl_save_prefix"
15802
15803       if test "X$x" = "X$element"; then
15804         haveit=yes
15805         break
15806       fi
15807     done
15808     if test -z "$haveit"; then
15809       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15810     fi
15811   done
15812
15813
15814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15815 $as_echo_n "checking for iconv... " >&6; }
15816 if ${am_cv_func_iconv+:} false; then :
15817   $as_echo_n "(cached) " >&6
15818 else
15819
15820     am_cv_func_iconv="no, consider installing GNU libiconv"
15821     am_cv_lib_iconv=no
15822     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h.  */
15824 #include <stdlib.h>
15825 #include <iconv.h>
15826 int
15827 main ()
15828 {
15829 iconv_t cd = iconv_open("","");
15830        iconv(cd,NULL,NULL,NULL,NULL);
15831        iconv_close(cd);
15832   ;
15833   return 0;
15834 }
15835 _ACEOF
15836 if ac_fn_c_try_link "$LINENO"; then :
15837   am_cv_func_iconv=yes
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext \
15840     conftest$ac_exeext conftest.$ac_ext
15841     if test "$am_cv_func_iconv" != yes; then
15842       am_save_LIBS="$LIBS"
15843       LIBS="$LIBS $LIBICONV"
15844       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846 #include <stdlib.h>
15847 #include <iconv.h>
15848 int
15849 main ()
15850 {
15851 iconv_t cd = iconv_open("","");
15852          iconv(cd,NULL,NULL,NULL,NULL);
15853          iconv_close(cd);
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
15858 if ac_fn_c_try_link "$LINENO"; then :
15859   am_cv_lib_iconv=yes
15860         am_cv_func_iconv=yes
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext \
15863     conftest$ac_exeext conftest.$ac_ext
15864       LIBS="$am_save_LIBS"
15865     fi
15866
15867 fi
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15869 $as_echo "$am_cv_func_iconv" >&6; }
15870   if test "$am_cv_func_iconv" = yes; then
15871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15872 $as_echo_n "checking for working iconv... " >&6; }
15873 if ${am_cv_func_iconv_works+:} false; then :
15874   $as_echo_n "(cached) " >&6
15875 else
15876
15877             am_save_LIBS="$LIBS"
15878       if test $am_cv_lib_iconv = yes; then
15879         LIBS="$LIBS $LIBICONV"
15880       fi
15881       if test "$cross_compiling" = yes; then :
15882   case "$host_os" in
15883            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15884            *)            am_cv_func_iconv_works="guessing yes" ;;
15885          esac
15886 else
15887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h.  */
15889
15890 #include <iconv.h>
15891 #include <string.h>
15892 int main ()
15893 {
15894   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15895      returns.  */
15896   {
15897     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15898     if (cd_utf8_to_88591 != (iconv_t)(-1))
15899       {
15900         static const char input[] = "\342\202\254"; /* EURO SIGN */
15901         char buf[10];
15902         const char *inptr = input;
15903         size_t inbytesleft = strlen (input);
15904         char *outptr = buf;
15905         size_t outbytesleft = sizeof (buf);
15906         size_t res = iconv (cd_utf8_to_88591,
15907                             (char **) &inptr, &inbytesleft,
15908                             &outptr, &outbytesleft);
15909         if (res == 0)
15910           return 1;
15911       }
15912   }
15913   /* Test against Solaris 10 bug: Failures are not distinguishable from
15914      successful returns.  */
15915   {
15916     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15917     if (cd_ascii_to_88591 != (iconv_t)(-1))
15918       {
15919         static const char input[] = "\263";
15920         char buf[10];
15921         const char *inptr = input;
15922         size_t inbytesleft = strlen (input);
15923         char *outptr = buf;
15924         size_t outbytesleft = sizeof (buf);
15925         size_t res = iconv (cd_ascii_to_88591,
15926                             (char **) &inptr, &inbytesleft,
15927                             &outptr, &outbytesleft);
15928         if (res == 0)
15929           return 1;
15930       }
15931   }
15932 #if 0 /* This bug could be worked around by the caller.  */
15933   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15934   {
15935     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15936     if (cd_88591_to_utf8 != (iconv_t)(-1))
15937       {
15938         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15939         char buf[50];
15940         const char *inptr = input;
15941         size_t inbytesleft = strlen (input);
15942         char *outptr = buf;
15943         size_t outbytesleft = sizeof (buf);
15944         size_t res = iconv (cd_88591_to_utf8,
15945                             (char **) &inptr, &inbytesleft,
15946                             &outptr, &outbytesleft);
15947         if ((int)res > 0)
15948           return 1;
15949       }
15950   }
15951 #endif
15952   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15953      provided.  */
15954   if (/* Try standardized names.  */
15955       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15956       /* Try IRIX, OSF/1 names.  */
15957       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15958       /* Try AIX names.  */
15959       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15960       /* Try HP-UX names.  */
15961       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15962     return 1;
15963   return 0;
15964 }
15965 _ACEOF
15966 if ac_fn_c_try_run "$LINENO"; then :
15967   am_cv_func_iconv_works=yes
15968 else
15969   am_cv_func_iconv_works=no
15970 fi
15971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15972   conftest.$ac_objext conftest.beam conftest.$ac_ext
15973 fi
15974
15975       LIBS="$am_save_LIBS"
15976
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15979 $as_echo "$am_cv_func_iconv_works" >&6; }
15980     case "$am_cv_func_iconv_works" in
15981       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15982       *)   am_func_iconv=yes ;;
15983     esac
15984   else
15985     am_func_iconv=no am_cv_lib_iconv=no
15986   fi
15987   if test "$am_func_iconv" = yes; then
15988
15989 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15990
15991   fi
15992   if test "$am_cv_lib_iconv" = yes; then
15993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15994 $as_echo_n "checking how to link with libiconv... " >&6; }
15995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15996 $as_echo "$LIBICONV" >&6; }
15997   else
15998             CPPFLAGS="$am_save_CPPFLAGS"
15999     LIBICONV=
16000     LTLIBICONV=
16001   fi
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013     use_additional=yes
16014
16015   acl_save_prefix="$prefix"
16016   prefix="$acl_final_prefix"
16017   acl_save_exec_prefix="$exec_prefix"
16018   exec_prefix="$acl_final_exec_prefix"
16019
16020     eval additional_includedir=\"$includedir\"
16021     eval additional_libdir=\"$libdir\"
16022
16023   exec_prefix="$acl_save_exec_prefix"
16024   prefix="$acl_save_prefix"
16025
16026
16027 # Check whether --with-libintl-prefix was given.
16028 if test "${with_libintl_prefix+set}" = set; then :
16029   withval=$with_libintl_prefix;
16030     if test "X$withval" = "Xno"; then
16031       use_additional=no
16032     else
16033       if test "X$withval" = "X"; then
16034
16035   acl_save_prefix="$prefix"
16036   prefix="$acl_final_prefix"
16037   acl_save_exec_prefix="$exec_prefix"
16038   exec_prefix="$acl_final_exec_prefix"
16039
16040           eval additional_includedir=\"$includedir\"
16041           eval additional_libdir=\"$libdir\"
16042
16043   exec_prefix="$acl_save_exec_prefix"
16044   prefix="$acl_save_prefix"
16045
16046       else
16047         additional_includedir="$withval/include"
16048         additional_libdir="$withval/$acl_libdirstem"
16049         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16050            && ! test -d "$withval/$acl_libdirstem"; then
16051           additional_libdir="$withval/$acl_libdirstem2"
16052         fi
16053       fi
16054     fi
16055
16056 fi
16057
16058       LIBINTL=
16059   LTLIBINTL=
16060   INCINTL=
16061   LIBINTL_PREFIX=
16062       HAVE_LIBINTL=
16063   rpathdirs=
16064   ltrpathdirs=
16065   names_already_handled=
16066   names_next_round='intl '
16067   while test -n "$names_next_round"; do
16068     names_this_round="$names_next_round"
16069     names_next_round=
16070     for name in $names_this_round; do
16071       already_handled=
16072       for n in $names_already_handled; do
16073         if test "$n" = "$name"; then
16074           already_handled=yes
16075           break
16076         fi
16077       done
16078       if test -z "$already_handled"; then
16079         names_already_handled="$names_already_handled $name"
16080                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16081         eval value=\"\$HAVE_LIB$uppername\"
16082         if test -n "$value"; then
16083           if test "$value" = yes; then
16084             eval value=\"\$LIB$uppername\"
16085             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16086             eval value=\"\$LTLIB$uppername\"
16087             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16088           else
16089                                     :
16090           fi
16091         else
16092                               found_dir=
16093           found_la=
16094           found_so=
16095           found_a=
16096           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16097           if test -n "$acl_shlibext"; then
16098             shrext=".$acl_shlibext"             # typically: shrext=.so
16099           else
16100             shrext=
16101           fi
16102           if test $use_additional = yes; then
16103             dir="$additional_libdir"
16104                                     if test -n "$acl_shlibext"; then
16105               if test -f "$dir/$libname$shrext"; then
16106                 found_dir="$dir"
16107                 found_so="$dir/$libname$shrext"
16108               else
16109                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16110                   ver=`(cd "$dir" && \
16111                         for f in "$libname$shrext".*; do echo "$f"; done \
16112                         | sed -e "s,^$libname$shrext\\\\.,," \
16113                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16114                         | sed 1q ) 2>/dev/null`
16115                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16116                     found_dir="$dir"
16117                     found_so="$dir/$libname$shrext.$ver"
16118                   fi
16119                 else
16120                   eval library_names=\"$acl_library_names_spec\"
16121                   for f in $library_names; do
16122                     if test -f "$dir/$f"; then
16123                       found_dir="$dir"
16124                       found_so="$dir/$f"
16125                       break
16126                     fi
16127                   done
16128                 fi
16129               fi
16130             fi
16131                         if test "X$found_dir" = "X"; then
16132               if test -f "$dir/$libname.$acl_libext"; then
16133                 found_dir="$dir"
16134                 found_a="$dir/$libname.$acl_libext"
16135               fi
16136             fi
16137             if test "X$found_dir" != "X"; then
16138               if test -f "$dir/$libname.la"; then
16139                 found_la="$dir/$libname.la"
16140               fi
16141             fi
16142           fi
16143           if test "X$found_dir" = "X"; then
16144             for x in $LDFLAGS $LTLIBINTL; do
16145
16146   acl_save_prefix="$prefix"
16147   prefix="$acl_final_prefix"
16148   acl_save_exec_prefix="$exec_prefix"
16149   exec_prefix="$acl_final_exec_prefix"
16150   eval x=\"$x\"
16151   exec_prefix="$acl_save_exec_prefix"
16152   prefix="$acl_save_prefix"
16153
16154               case "$x" in
16155                 -L*)
16156                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16157                                     if test -n "$acl_shlibext"; then
16158                     if test -f "$dir/$libname$shrext"; then
16159                       found_dir="$dir"
16160                       found_so="$dir/$libname$shrext"
16161                     else
16162                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16163                         ver=`(cd "$dir" && \
16164                               for f in "$libname$shrext".*; do echo "$f"; done \
16165                               | sed -e "s,^$libname$shrext\\\\.,," \
16166                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16167                               | sed 1q ) 2>/dev/null`
16168                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16169                           found_dir="$dir"
16170                           found_so="$dir/$libname$shrext.$ver"
16171                         fi
16172                       else
16173                         eval library_names=\"$acl_library_names_spec\"
16174                         for f in $library_names; do
16175                           if test -f "$dir/$f"; then
16176                             found_dir="$dir"
16177                             found_so="$dir/$f"
16178                             break
16179                           fi
16180                         done
16181                       fi
16182                     fi
16183                   fi
16184                                     if test "X$found_dir" = "X"; then
16185                     if test -f "$dir/$libname.$acl_libext"; then
16186                       found_dir="$dir"
16187                       found_a="$dir/$libname.$acl_libext"
16188                     fi
16189                   fi
16190                   if test "X$found_dir" != "X"; then
16191                     if test -f "$dir/$libname.la"; then
16192                       found_la="$dir/$libname.la"
16193                     fi
16194                   fi
16195                   ;;
16196               esac
16197               if test "X$found_dir" != "X"; then
16198                 break
16199               fi
16200             done
16201           fi
16202           if test "X$found_dir" != "X"; then
16203                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16204             if test "X$found_so" != "X"; then
16205                                                         if test "$enable_rpath" = no \
16206                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16207                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16208                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16209               else
16210                                                                                 haveit=
16211                 for x in $ltrpathdirs; do
16212                   if test "X$x" = "X$found_dir"; then
16213                     haveit=yes
16214                     break
16215                   fi
16216                 done
16217                 if test -z "$haveit"; then
16218                   ltrpathdirs="$ltrpathdirs $found_dir"
16219                 fi
16220                                 if test "$acl_hardcode_direct" = yes; then
16221                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16222                 else
16223                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16224                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16225                                                             haveit=
16226                     for x in $rpathdirs; do
16227                       if test "X$x" = "X$found_dir"; then
16228                         haveit=yes
16229                         break
16230                       fi
16231                     done
16232                     if test -z "$haveit"; then
16233                       rpathdirs="$rpathdirs $found_dir"
16234                     fi
16235                   else
16236                                                                                 haveit=
16237                     for x in $LDFLAGS $LIBINTL; do
16238
16239   acl_save_prefix="$prefix"
16240   prefix="$acl_final_prefix"
16241   acl_save_exec_prefix="$exec_prefix"
16242   exec_prefix="$acl_final_exec_prefix"
16243   eval x=\"$x\"
16244   exec_prefix="$acl_save_exec_prefix"
16245   prefix="$acl_save_prefix"
16246
16247                       if test "X$x" = "X-L$found_dir"; then
16248                         haveit=yes
16249                         break
16250                       fi
16251                     done
16252                     if test -z "$haveit"; then
16253                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16254                     fi
16255                     if test "$acl_hardcode_minus_L" != no; then
16256                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16257                     else
16258                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16259                     fi
16260                   fi
16261                 fi
16262               fi
16263             else
16264               if test "X$found_a" != "X"; then
16265                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16266               else
16267                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16268               fi
16269             fi
16270                         additional_includedir=
16271             case "$found_dir" in
16272               */$acl_libdirstem | */$acl_libdirstem/)
16273                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16274                 if test "$name" = 'intl'; then
16275                   LIBINTL_PREFIX="$basedir"
16276                 fi
16277                 additional_includedir="$basedir/include"
16278                 ;;
16279               */$acl_libdirstem2 | */$acl_libdirstem2/)
16280                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16281                 if test "$name" = 'intl'; then
16282                   LIBINTL_PREFIX="$basedir"
16283                 fi
16284                 additional_includedir="$basedir/include"
16285                 ;;
16286             esac
16287             if test "X$additional_includedir" != "X"; then
16288                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16289                 haveit=
16290                 if test "X$additional_includedir" = "X/usr/local/include"; then
16291                   if test -n "$GCC"; then
16292                     case $host_os in
16293                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16294                     esac
16295                   fi
16296                 fi
16297                 if test -z "$haveit"; then
16298                   for x in $CPPFLAGS $INCINTL; do
16299
16300   acl_save_prefix="$prefix"
16301   prefix="$acl_final_prefix"
16302   acl_save_exec_prefix="$exec_prefix"
16303   exec_prefix="$acl_final_exec_prefix"
16304   eval x=\"$x\"
16305   exec_prefix="$acl_save_exec_prefix"
16306   prefix="$acl_save_prefix"
16307
16308                     if test "X$x" = "X-I$additional_includedir"; then
16309                       haveit=yes
16310                       break
16311                     fi
16312                   done
16313                   if test -z "$haveit"; then
16314                     if test -d "$additional_includedir"; then
16315                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16316                     fi
16317                   fi
16318                 fi
16319               fi
16320             fi
16321                         if test -n "$found_la"; then
16322                                                         save_libdir="$libdir"
16323               case "$found_la" in
16324                 */* | *\\*) . "$found_la" ;;
16325                 *) . "./$found_la" ;;
16326               esac
16327               libdir="$save_libdir"
16328                             for dep in $dependency_libs; do
16329                 case "$dep" in
16330                   -L*)
16331                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16332                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16333                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16334                       haveit=
16335                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16336                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16337                         if test -n "$GCC"; then
16338                           case $host_os in
16339                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16340                           esac
16341                         fi
16342                       fi
16343                       if test -z "$haveit"; then
16344                         haveit=
16345                         for x in $LDFLAGS $LIBINTL; do
16346
16347   acl_save_prefix="$prefix"
16348   prefix="$acl_final_prefix"
16349   acl_save_exec_prefix="$exec_prefix"
16350   exec_prefix="$acl_final_exec_prefix"
16351   eval x=\"$x\"
16352   exec_prefix="$acl_save_exec_prefix"
16353   prefix="$acl_save_prefix"
16354
16355                           if test "X$x" = "X-L$additional_libdir"; then
16356                             haveit=yes
16357                             break
16358                           fi
16359                         done
16360                         if test -z "$haveit"; then
16361                           if test -d "$additional_libdir"; then
16362                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16363                           fi
16364                         fi
16365                         haveit=
16366                         for x in $LDFLAGS $LTLIBINTL; do
16367
16368   acl_save_prefix="$prefix"
16369   prefix="$acl_final_prefix"
16370   acl_save_exec_prefix="$exec_prefix"
16371   exec_prefix="$acl_final_exec_prefix"
16372   eval x=\"$x\"
16373   exec_prefix="$acl_save_exec_prefix"
16374   prefix="$acl_save_prefix"
16375
16376                           if test "X$x" = "X-L$additional_libdir"; then
16377                             haveit=yes
16378                             break
16379                           fi
16380                         done
16381                         if test -z "$haveit"; then
16382                           if test -d "$additional_libdir"; then
16383                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16384                           fi
16385                         fi
16386                       fi
16387                     fi
16388                     ;;
16389                   -R*)
16390                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16391                     if test "$enable_rpath" != no; then
16392                                                                   haveit=
16393                       for x in $rpathdirs; do
16394                         if test "X$x" = "X$dir"; then
16395                           haveit=yes
16396                           break
16397                         fi
16398                       done
16399                       if test -z "$haveit"; then
16400                         rpathdirs="$rpathdirs $dir"
16401                       fi
16402                                                                   haveit=
16403                       for x in $ltrpathdirs; do
16404                         if test "X$x" = "X$dir"; then
16405                           haveit=yes
16406                           break
16407                         fi
16408                       done
16409                       if test -z "$haveit"; then
16410                         ltrpathdirs="$ltrpathdirs $dir"
16411                       fi
16412                     fi
16413                     ;;
16414                   -l*)
16415                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16416                     ;;
16417                   *.la)
16418                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16419                     ;;
16420                   *)
16421                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16422                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16423                     ;;
16424                 esac
16425               done
16426             fi
16427           else
16428                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16429             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16430           fi
16431         fi
16432       fi
16433     done
16434   done
16435   if test "X$rpathdirs" != "X"; then
16436     if test -n "$acl_hardcode_libdir_separator"; then
16437                         alldirs=
16438       for found_dir in $rpathdirs; do
16439         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16440       done
16441             acl_save_libdir="$libdir"
16442       libdir="$alldirs"
16443       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16444       libdir="$acl_save_libdir"
16445       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16446     else
16447             for found_dir in $rpathdirs; do
16448         acl_save_libdir="$libdir"
16449         libdir="$found_dir"
16450         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16451         libdir="$acl_save_libdir"
16452         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16453       done
16454     fi
16455   fi
16456   if test "X$ltrpathdirs" != "X"; then
16457             for found_dir in $ltrpathdirs; do
16458       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16459     done
16460   fi
16461
16462
16463
16464
16465
16466
16467           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16468 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16469 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16470   $as_echo_n "(cached) " >&6
16471 else
16472   gt_save_CPPFLAGS="$CPPFLAGS"
16473             CPPFLAGS="$CPPFLAGS $INCINTL"
16474             gt_save_LIBS="$LIBS"
16475             LIBS="$LIBS $LIBINTL"
16476                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h.  */
16478 #include <libintl.h>
16479 $gt_revision_test_code
16480 extern int _nl_msg_cat_cntr;
16481 extern
16482 #ifdef __cplusplus
16483 "C"
16484 #endif
16485 const char *_nl_expand_alias (const char *);
16486 int
16487 main ()
16488 {
16489 bindtextdomain ("", "");
16490 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16491   ;
16492   return 0;
16493 }
16494 _ACEOF
16495 if ac_fn_c_try_link "$LINENO"; then :
16496   eval "$gt_func_gnugettext_libintl=yes"
16497 else
16498   eval "$gt_func_gnugettext_libintl=no"
16499 fi
16500 rm -f core conftest.err conftest.$ac_objext \
16501     conftest$ac_exeext conftest.$ac_ext
16502                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16503               LIBS="$LIBS $LIBICONV"
16504               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h.  */
16506 #include <libintl.h>
16507 $gt_revision_test_code
16508 extern int _nl_msg_cat_cntr;
16509 extern
16510 #ifdef __cplusplus
16511 "C"
16512 #endif
16513 const char *_nl_expand_alias (const char *);
16514 int
16515 main ()
16516 {
16517 bindtextdomain ("", "");
16518 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16519   ;
16520   return 0;
16521 }
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524   LIBINTL="$LIBINTL $LIBICONV"
16525                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16526                 eval "$gt_func_gnugettext_libintl=yes"
16527
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext \
16530     conftest$ac_exeext conftest.$ac_ext
16531             fi
16532             CPPFLAGS="$gt_save_CPPFLAGS"
16533             LIBS="$gt_save_LIBS"
16534 fi
16535 eval ac_res=\$$gt_func_gnugettext_libintl
16536                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16537 $as_echo "$ac_res" >&6; }
16538         fi
16539
16540                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16541            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16542                 && test "$PACKAGE" != gettext-runtime \
16543                 && test "$PACKAGE" != gettext-tools; }; then
16544           gt_use_preinstalled_gnugettext=yes
16545         else
16546                     LIBINTL=
16547           LTLIBINTL=
16548           INCINTL=
16549         fi
16550
16551
16552
16553     if test -n "$INTL_MACOSX_LIBS"; then
16554       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16555          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16556                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16557         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16558       fi
16559     fi
16560
16561     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16562        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16563
16564 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16565
16566     else
16567       USE_NLS=no
16568     fi
16569   fi
16570
16571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16572 $as_echo_n "checking whether to use NLS... " >&6; }
16573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16574 $as_echo "$USE_NLS" >&6; }
16575   if test "$USE_NLS" = "yes"; then
16576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16577 $as_echo_n "checking where the gettext function comes from... " >&6; }
16578     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16579       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16580         gt_source="external libintl"
16581       else
16582         gt_source="libc"
16583       fi
16584     else
16585       gt_source="included intl directory"
16586     fi
16587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16588 $as_echo "$gt_source" >&6; }
16589   fi
16590
16591   if test "$USE_NLS" = "yes"; then
16592
16593     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16594       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16596 $as_echo_n "checking how to link with libintl... " >&6; }
16597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16598 $as_echo "$LIBINTL" >&6; }
16599
16600   for element in $INCINTL; do
16601     haveit=
16602     for x in $CPPFLAGS; do
16603
16604   acl_save_prefix="$prefix"
16605   prefix="$acl_final_prefix"
16606   acl_save_exec_prefix="$exec_prefix"
16607   exec_prefix="$acl_final_exec_prefix"
16608   eval x=\"$x\"
16609   exec_prefix="$acl_save_exec_prefix"
16610   prefix="$acl_save_prefix"
16611
16612       if test "X$x" = "X$element"; then
16613         haveit=yes
16614         break
16615       fi
16616     done
16617     if test -z "$haveit"; then
16618       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16619     fi
16620   done
16621
16622       fi
16623
16624
16625 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16626
16627
16628 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16629
16630     fi
16631
16632         POSUB=po
16633   fi
16634
16635
16636
16637     INTLLIBS="$LIBINTL"
16638
16639
16640
16641
16642
16643
16644
16645
16646 GETTEXT_PACKAGE=PACKAGE_TARNAME
16647
16648
16649 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16650
16651
16652 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16653
16654
16655 cat >confcache <<\_ACEOF
16656 # This file is a shell script that caches the results of configure
16657 # tests run on this system so they can be shared between configure
16658 # scripts and configure runs, see configure's option --config-cache.
16659 # It is not useful on other systems.  If it contains results you don't
16660 # want to keep, you may remove or edit it.
16661 #
16662 # config.status only pays attention to the cache file if you give it
16663 # the --recheck option to rerun configure.
16664 #
16665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16667 # following values.
16668
16669 _ACEOF
16670
16671 # The following way of writing the cache mishandles newlines in values,
16672 # but we know of no workaround that is simple, portable, and efficient.
16673 # So, we kill variables containing newlines.
16674 # Ultrix sh set writes to stderr and can't be redirected directly,
16675 # and sets the high bit in the cache file unless we assign to the vars.
16676 (
16677   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16678     eval ac_val=\$$ac_var
16679     case $ac_val in #(
16680     *${as_nl}*)
16681       case $ac_var in #(
16682       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16684       esac
16685       case $ac_var in #(
16686       _ | IFS | as_nl) ;; #(
16687       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16688       *) { eval $ac_var=; unset $ac_var;} ;;
16689       esac ;;
16690     esac
16691   done
16692
16693   (set) 2>&1 |
16694     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16695     *${as_nl}ac_space=\ *)
16696       # `set' does not quote correctly, so add quotes: double-quote
16697       # substitution turns \\\\ into \\, and sed turns \\ into \.
16698       sed -n \
16699         "s/'/'\\\\''/g;
16700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16701       ;; #(
16702     *)
16703       # `set' quotes correctly as required by POSIX, so do not add quotes.
16704       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16705       ;;
16706     esac |
16707     sort
16708 ) |
16709   sed '
16710      /^ac_cv_env_/b end
16711      t clear
16712      :clear
16713      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16714      t end
16715      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16716      :end' >>confcache
16717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16718   if test -w "$cache_file"; then
16719     if test "x$cache_file" != "x/dev/null"; then
16720       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16721 $as_echo "$as_me: updating cache $cache_file" >&6;}
16722       if test ! -f "$cache_file" || test -h "$cache_file"; then
16723         cat confcache >"$cache_file"
16724       else
16725         case $cache_file in #(
16726         */* | ?:*)
16727           mv -f confcache "$cache_file"$$ &&
16728           mv -f "$cache_file"$$ "$cache_file" ;; #(
16729         *)
16730           mv -f confcache "$cache_file" ;;
16731         esac
16732       fi
16733     fi
16734   else
16735     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16737   fi
16738 fi
16739 rm -f confcache
16740
16741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16742 # Let make expand exec_prefix.
16743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16744
16745 DEFS=-DHAVE_CONFIG_H
16746
16747 ac_libobjs=
16748 ac_ltlibobjs=
16749 U=
16750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16751   # 1. Remove the extension, and $U if already installed.
16752   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16753   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16754   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16755   #    will be set to the directory where LIBOBJS objects are built.
16756   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16757   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16758 done
16759 LIBOBJS=$ac_libobjs
16760
16761 LTLIBOBJS=$ac_ltlibobjs
16762
16763
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16765 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16766    if test -n "$am_sleep_pid"; then
16767      # Hide warnings about reused PIDs.
16768      wait $am_sleep_pid 2>/dev/null
16769    fi
16770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16771 $as_echo "done" >&6; }
16772  if test -n "$EXEEXT"; then
16773   am__EXEEXT_TRUE=
16774   am__EXEEXT_FALSE='#'
16775 else
16776   am__EXEEXT_TRUE='#'
16777   am__EXEEXT_FALSE=
16778 fi
16779
16780 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16781   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16783 fi
16784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16785   as_fn_error $? "conditional \"AMDEP\" was never defined.
16786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16787 fi
16788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16789   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16791 fi
16792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16793   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16795 fi
16796 if test -z "${GEE_0_8_TRUE}" && test -z "${GEE_0_8_FALSE}"; then
16797   as_fn_error $? "conditional \"GEE_0_8\" was never defined.
16798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16799 fi
16800 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16801   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16803 fi
16804 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16805   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16807 fi
16808 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16809   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16811 fi
16812 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16813   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16815 fi
16816 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16817   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16819 fi
16820 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16821   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 fi
16824 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16825   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827 fi
16828 if test -z "${GIO_VAPI_USES_ARRAYS_TRUE}" && test -z "${GIO_VAPI_USES_ARRAYS_FALSE}"; then
16829   as_fn_error $? "conditional \"GIO_VAPI_USES_ARRAYS\" was never defined.
16830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 fi
16832
16833 : "${CONFIG_STATUS=./config.status}"
16834 ac_write_fail=0
16835 ac_clean_files_save=$ac_clean_files
16836 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16838 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16839 as_write_fail=0
16840 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16841 #! $SHELL
16842 # Generated by $as_me.
16843 # Run this file to recreate the current configuration.
16844 # Compiler output produced by configure, useful for debugging
16845 # configure, is in config.log if it exists.
16846
16847 debug=false
16848 ac_cs_recheck=false
16849 ac_cs_silent=false
16850
16851 SHELL=\${CONFIG_SHELL-$SHELL}
16852 export SHELL
16853 _ASEOF
16854 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16855 ## -------------------- ##
16856 ## M4sh Initialization. ##
16857 ## -------------------- ##
16858
16859 # Be more Bourne compatible
16860 DUALCASE=1; export DUALCASE # for MKS sh
16861 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16862   emulate sh
16863   NULLCMD=:
16864   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16865   # is contrary to our usage.  Disable this feature.
16866   alias -g '${1+"$@"}'='"$@"'
16867   setopt NO_GLOB_SUBST
16868 else
16869   case `(set -o) 2>/dev/null` in #(
16870   *posix*) :
16871     set -o posix ;; #(
16872   *) :
16873      ;;
16874 esac
16875 fi
16876
16877
16878 as_nl='
16879 '
16880 export as_nl
16881 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16882 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16885 # Prefer a ksh shell builtin over an external printf program on Solaris,
16886 # but without wasting forks for bash or zsh.
16887 if test -z "$BASH_VERSION$ZSH_VERSION" \
16888     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16889   as_echo='print -r --'
16890   as_echo_n='print -rn --'
16891 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16892   as_echo='printf %s\n'
16893   as_echo_n='printf %s'
16894 else
16895   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16896     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16897     as_echo_n='/usr/ucb/echo -n'
16898   else
16899     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16900     as_echo_n_body='eval
16901       arg=$1;
16902       case $arg in #(
16903       *"$as_nl"*)
16904         expr "X$arg" : "X\\(.*\\)$as_nl";
16905         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16906       esac;
16907       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16908     '
16909     export as_echo_n_body
16910     as_echo_n='sh -c $as_echo_n_body as_echo'
16911   fi
16912   export as_echo_body
16913   as_echo='sh -c $as_echo_body as_echo'
16914 fi
16915
16916 # The user is always right.
16917 if test "${PATH_SEPARATOR+set}" != set; then
16918   PATH_SEPARATOR=:
16919   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16920     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16921       PATH_SEPARATOR=';'
16922   }
16923 fi
16924
16925
16926 # IFS
16927 # We need space, tab and new line, in precisely that order.  Quoting is
16928 # there to prevent editors from complaining about space-tab.
16929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16930 # splitting by setting IFS to empty value.)
16931 IFS=" ""        $as_nl"
16932
16933 # Find who we are.  Look in the path if we contain no directory separator.
16934 as_myself=
16935 case $0 in #((
16936   *[\\/]* ) as_myself=$0 ;;
16937   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938 for as_dir in $PATH
16939 do
16940   IFS=$as_save_IFS
16941   test -z "$as_dir" && as_dir=.
16942     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16943   done
16944 IFS=$as_save_IFS
16945
16946      ;;
16947 esac
16948 # We did not find ourselves, most probably we were run as `sh COMMAND'
16949 # in which case we are not to be found in the path.
16950 if test "x$as_myself" = x; then
16951   as_myself=$0
16952 fi
16953 if test ! -f "$as_myself"; then
16954   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16955   exit 1
16956 fi
16957
16958 # Unset variables that we do not need and which cause bugs (e.g. in
16959 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16960 # suppresses any "Segmentation fault" message there.  '((' could
16961 # trigger a bug in pdksh 5.2.14.
16962 for as_var in BASH_ENV ENV MAIL MAILPATH
16963 do eval test x\${$as_var+set} = xset \
16964   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16965 done
16966 PS1='$ '
16967 PS2='> '
16968 PS4='+ '
16969
16970 # NLS nuisances.
16971 LC_ALL=C
16972 export LC_ALL
16973 LANGUAGE=C
16974 export LANGUAGE
16975
16976 # CDPATH.
16977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16978
16979
16980 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16981 # ----------------------------------------
16982 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16983 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16984 # script with STATUS, using 1 if that was 0.
16985 as_fn_error ()
16986 {
16987   as_status=$1; test $as_status -eq 0 && as_status=1
16988   if test "$4"; then
16989     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16990     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16991   fi
16992   $as_echo "$as_me: error: $2" >&2
16993   as_fn_exit $as_status
16994 } # as_fn_error
16995
16996
16997 # as_fn_set_status STATUS
16998 # -----------------------
16999 # Set $? to STATUS, without forking.
17000 as_fn_set_status ()
17001 {
17002   return $1
17003 } # as_fn_set_status
17004
17005 # as_fn_exit STATUS
17006 # -----------------
17007 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17008 as_fn_exit ()
17009 {
17010   set +e
17011   as_fn_set_status $1
17012   exit $1
17013 } # as_fn_exit
17014
17015 # as_fn_unset VAR
17016 # ---------------
17017 # Portably unset VAR.
17018 as_fn_unset ()
17019 {
17020   { eval $1=; unset $1;}
17021 }
17022 as_unset=as_fn_unset
17023 # as_fn_append VAR VALUE
17024 # ----------------------
17025 # Append the text in VALUE to the end of the definition contained in VAR. Take
17026 # advantage of any shell optimizations that allow amortized linear growth over
17027 # repeated appends, instead of the typical quadratic growth present in naive
17028 # implementations.
17029 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17030   eval 'as_fn_append ()
17031   {
17032     eval $1+=\$2
17033   }'
17034 else
17035   as_fn_append ()
17036   {
17037     eval $1=\$$1\$2
17038   }
17039 fi # as_fn_append
17040
17041 # as_fn_arith ARG...
17042 # ------------------
17043 # Perform arithmetic evaluation on the ARGs, and store the result in the
17044 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17045 # must be portable across $(()) and expr.
17046 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17047   eval 'as_fn_arith ()
17048   {
17049     as_val=$(( $* ))
17050   }'
17051 else
17052   as_fn_arith ()
17053   {
17054     as_val=`expr "$@" || test $? -eq 1`
17055   }
17056 fi # as_fn_arith
17057
17058
17059 if expr a : '\(a\)' >/dev/null 2>&1 &&
17060    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17061   as_expr=expr
17062 else
17063   as_expr=false
17064 fi
17065
17066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17067   as_basename=basename
17068 else
17069   as_basename=false
17070 fi
17071
17072 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17073   as_dirname=dirname
17074 else
17075   as_dirname=false
17076 fi
17077
17078 as_me=`$as_basename -- "$0" ||
17079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17080          X"$0" : 'X\(//\)$' \| \
17081          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17082 $as_echo X/"$0" |
17083     sed '/^.*\/\([^/][^/]*\)\/*$/{
17084             s//\1/
17085             q
17086           }
17087           /^X\/\(\/\/\)$/{
17088             s//\1/
17089             q
17090           }
17091           /^X\/\(\/\).*/{
17092             s//\1/
17093             q
17094           }
17095           s/.*/./; q'`
17096
17097 # Avoid depending upon Character Ranges.
17098 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17101 as_cr_digits='0123456789'
17102 as_cr_alnum=$as_cr_Letters$as_cr_digits
17103
17104 ECHO_C= ECHO_N= ECHO_T=
17105 case `echo -n x` in #(((((
17106 -n*)
17107   case `echo 'xy\c'` in
17108   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17109   xy)  ECHO_C='\c';;
17110   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17111        ECHO_T=' ';;
17112   esac;;
17113 *)
17114   ECHO_N='-n';;
17115 esac
17116
17117 rm -f conf$$ conf$$.exe conf$$.file
17118 if test -d conf$$.dir; then
17119   rm -f conf$$.dir/conf$$.file
17120 else
17121   rm -f conf$$.dir
17122   mkdir conf$$.dir 2>/dev/null
17123 fi
17124 if (echo >conf$$.file) 2>/dev/null; then
17125   if ln -s conf$$.file conf$$ 2>/dev/null; then
17126     as_ln_s='ln -s'
17127     # ... but there are two gotchas:
17128     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17129     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17130     # In both cases, we have to default to `cp -pR'.
17131     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17132       as_ln_s='cp -pR'
17133   elif ln conf$$.file conf$$ 2>/dev/null; then
17134     as_ln_s=ln
17135   else
17136     as_ln_s='cp -pR'
17137   fi
17138 else
17139   as_ln_s='cp -pR'
17140 fi
17141 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17142 rmdir conf$$.dir 2>/dev/null
17143
17144
17145 # as_fn_mkdir_p
17146 # -------------
17147 # Create "$as_dir" as a directory, including parents if necessary.
17148 as_fn_mkdir_p ()
17149 {
17150
17151   case $as_dir in #(
17152   -*) as_dir=./$as_dir;;
17153   esac
17154   test -d "$as_dir" || eval $as_mkdir_p || {
17155     as_dirs=
17156     while :; do
17157       case $as_dir in #(
17158       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17159       *) as_qdir=$as_dir;;
17160       esac
17161       as_dirs="'$as_qdir' $as_dirs"
17162       as_dir=`$as_dirname -- "$as_dir" ||
17163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17164          X"$as_dir" : 'X\(//\)[^/]' \| \
17165          X"$as_dir" : 'X\(//\)$' \| \
17166          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17167 $as_echo X"$as_dir" |
17168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17169             s//\1/
17170             q
17171           }
17172           /^X\(\/\/\)[^/].*/{
17173             s//\1/
17174             q
17175           }
17176           /^X\(\/\/\)$/{
17177             s//\1/
17178             q
17179           }
17180           /^X\(\/\).*/{
17181             s//\1/
17182             q
17183           }
17184           s/.*/./; q'`
17185       test -d "$as_dir" && break
17186     done
17187     test -z "$as_dirs" || eval "mkdir $as_dirs"
17188   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17189
17190
17191 } # as_fn_mkdir_p
17192 if mkdir -p . 2>/dev/null; then
17193   as_mkdir_p='mkdir -p "$as_dir"'
17194 else
17195   test -d ./-p && rmdir ./-p
17196   as_mkdir_p=false
17197 fi
17198
17199
17200 # as_fn_executable_p FILE
17201 # -----------------------
17202 # Test if FILE is an executable regular file.
17203 as_fn_executable_p ()
17204 {
17205   test -f "$1" && test -x "$1"
17206 } # as_fn_executable_p
17207 as_test_x='test -x'
17208 as_executable_p=as_fn_executable_p
17209
17210 # Sed expression to map a string onto a valid CPP name.
17211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17212
17213 # Sed expression to map a string onto a valid variable name.
17214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17215
17216
17217 exec 6>&1
17218 ## ----------------------------------- ##
17219 ## Main body of $CONFIG_STATUS script. ##
17220 ## ----------------------------------- ##
17221 _ASEOF
17222 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17223
17224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17225 # Save the log message, to keep $0 and so on meaningful, and to
17226 # report actual input values of CONFIG_FILES etc. instead of their
17227 # values after options handling.
17228 ac_log="
17229 This file was extended by Moonshot-ui $as_me 0.7.2, which was
17230 generated by GNU Autoconf 2.69.  Invocation command line was
17231
17232   CONFIG_FILES    = $CONFIG_FILES
17233   CONFIG_HEADERS  = $CONFIG_HEADERS
17234   CONFIG_LINKS    = $CONFIG_LINKS
17235   CONFIG_COMMANDS = $CONFIG_COMMANDS
17236   $ $0 $@
17237
17238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17239 "
17240
17241 _ACEOF
17242
17243 case $ac_config_files in *"
17244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17245 esac
17246
17247 case $ac_config_headers in *"
17248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17249 esac
17250
17251
17252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17253 # Files that config.status was made for.
17254 config_files="$ac_config_files"
17255 config_headers="$ac_config_headers"
17256 config_commands="$ac_config_commands"
17257
17258 _ACEOF
17259
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17261 ac_cs_usage="\
17262 \`$as_me' instantiates files and other configuration actions
17263 from templates according to the current configuration.  Unless the files
17264 and actions are specified as TAGs, all are instantiated by default.
17265
17266 Usage: $0 [OPTION]... [TAG]...
17267
17268   -h, --help       print this help, then exit
17269   -V, --version    print version number and configuration settings, then exit
17270       --config     print configuration, then exit
17271   -q, --quiet, --silent
17272                    do not print progress messages
17273   -d, --debug      don't remove temporary files
17274       --recheck    update $as_me by reconfiguring in the same conditions
17275       --file=FILE[:TEMPLATE]
17276                    instantiate the configuration file FILE
17277       --header=FILE[:TEMPLATE]
17278                    instantiate the configuration header FILE
17279
17280 Configuration files:
17281 $config_files
17282
17283 Configuration headers:
17284 $config_headers
17285
17286 Configuration commands:
17287 $config_commands
17288
17289 Report bugs to <moonshot-community@jiscmail.ac.uk>.
17290 Moonshot-ui home page: <http://www.project-moonshot.org/>."
17291
17292 _ACEOF
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17295 ac_cs_version="\\
17296 Moonshot-ui config.status 0.7.2
17297 configured by $0, generated by GNU Autoconf 2.69,
17298   with options \\"\$ac_cs_config\\"
17299
17300 Copyright (C) 2012 Free Software Foundation, Inc.
17301 This config.status script is free software; the Free Software Foundation
17302 gives unlimited permission to copy, distribute and modify it."
17303
17304 ac_pwd='$ac_pwd'
17305 srcdir='$srcdir'
17306 INSTALL='$INSTALL'
17307 MKDIR_P='$MKDIR_P'
17308 AWK='$AWK'
17309 test -n "\$AWK" || AWK=awk
17310 _ACEOF
17311
17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313 # The default lists apply if the user does not specify any file.
17314 ac_need_defaults=:
17315 while test $# != 0
17316 do
17317   case $1 in
17318   --*=?*)
17319     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17320     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17321     ac_shift=:
17322     ;;
17323   --*=)
17324     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17325     ac_optarg=
17326     ac_shift=:
17327     ;;
17328   *)
17329     ac_option=$1
17330     ac_optarg=$2
17331     ac_shift=shift
17332     ;;
17333   esac
17334
17335   case $ac_option in
17336   # Handling of the options.
17337   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17338     ac_cs_recheck=: ;;
17339   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17340     $as_echo "$ac_cs_version"; exit ;;
17341   --config | --confi | --conf | --con | --co | --c )
17342     $as_echo "$ac_cs_config"; exit ;;
17343   --debug | --debu | --deb | --de | --d | -d )
17344     debug=: ;;
17345   --file | --fil | --fi | --f )
17346     $ac_shift
17347     case $ac_optarg in
17348     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17349     '') as_fn_error $? "missing file argument" ;;
17350     esac
17351     as_fn_append CONFIG_FILES " '$ac_optarg'"
17352     ac_need_defaults=false;;
17353   --header | --heade | --head | --hea )
17354     $ac_shift
17355     case $ac_optarg in
17356     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17357     esac
17358     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17359     ac_need_defaults=false;;
17360   --he | --h)
17361     # Conflict between --help and --header
17362     as_fn_error $? "ambiguous option: \`$1'
17363 Try \`$0 --help' for more information.";;
17364   --help | --hel | -h )
17365     $as_echo "$ac_cs_usage"; exit ;;
17366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17367   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17368     ac_cs_silent=: ;;
17369
17370   # This is an error.
17371   -*) as_fn_error $? "unrecognized option: \`$1'
17372 Try \`$0 --help' for more information." ;;
17373
17374   *) as_fn_append ac_config_targets " $1"
17375      ac_need_defaults=false ;;
17376
17377   esac
17378   shift
17379 done
17380
17381 ac_configure_extra_args=
17382
17383 if $ac_cs_silent; then
17384   exec 6>/dev/null
17385   ac_configure_extra_args="$ac_configure_extra_args --silent"
17386 fi
17387
17388 _ACEOF
17389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17390 if \$ac_cs_recheck; then
17391   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17392   shift
17393   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17394   CONFIG_SHELL='$SHELL'
17395   export CONFIG_SHELL
17396   exec "\$@"
17397 fi
17398
17399 _ACEOF
17400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17401 exec 5>>config.log
17402 {
17403   echo
17404   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17405 ## Running $as_me. ##
17406 _ASBOX
17407   $as_echo "$ac_log"
17408 } >&5
17409
17410 _ACEOF
17411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17412 #
17413 # INIT-COMMANDS
17414 #
17415 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17416
17417
17418 # The HP-UX ksh and POSIX shell print the target directory to stdout
17419 # if CDPATH is set.
17420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17421
17422 sed_quote_subst='$sed_quote_subst'
17423 double_quote_subst='$double_quote_subst'
17424 delay_variable_subst='$delay_variable_subst'
17425 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17426 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17427 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17428 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17429 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17430 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17431 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17432 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17433 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17434 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17435 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17436 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17437 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17438 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17439 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17440 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17441 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17442 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17443 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17444 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17445 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17446 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17447 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17448 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17449 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17450 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17451 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17452 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17453 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17454 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17455 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17456 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17457 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17458 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17459 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17460 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17465 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17466 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17468 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17482 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"`'
17483 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17484 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17488 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17489 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17493 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17494 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17495 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17496 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17497 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17498 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17499 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17500 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17501 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17502 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17503 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17504 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17505 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17506 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17507 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17508 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17509 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17510 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17511 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17512 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17513 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17514 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17515 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17516 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17517 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17518 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17519 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17520 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17521 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17522 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17523 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17524 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17525 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17526 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17527 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17528 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17529 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17530 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17531 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17532 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17533 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17534 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17535 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17536 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17537 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17538 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17539 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17540 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17541 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17542 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17543 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17544 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17545 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17546 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17547 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17548 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17549 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17550 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17551 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17552 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17553 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17554 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17555 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17556
17557 LTCC='$LTCC'
17558 LTCFLAGS='$LTCFLAGS'
17559 compiler='$compiler_DEFAULT'
17560
17561 # A function that is used when there is no print builtin or printf.
17562 func_fallback_echo ()
17563 {
17564   eval 'cat <<_LTECHO_EOF
17565 \$1
17566 _LTECHO_EOF'
17567 }
17568
17569 # Quote evaled strings.
17570 for var in AS \
17571 DLLTOOL \
17572 OBJDUMP \
17573 SHELL \
17574 ECHO \
17575 PATH_SEPARATOR \
17576 SED \
17577 GREP \
17578 EGREP \
17579 FGREP \
17580 LD \
17581 NM \
17582 LN_S \
17583 lt_SP2NL \
17584 lt_NL2SP \
17585 reload_flag \
17586 deplibs_check_method \
17587 file_magic_cmd \
17588 file_magic_glob \
17589 want_nocaseglob \
17590 sharedlib_from_linklib_cmd \
17591 AR \
17592 AR_FLAGS \
17593 archiver_list_spec \
17594 STRIP \
17595 RANLIB \
17596 CC \
17597 CFLAGS \
17598 compiler \
17599 lt_cv_sys_global_symbol_pipe \
17600 lt_cv_sys_global_symbol_to_cdecl \
17601 lt_cv_sys_global_symbol_to_c_name_address \
17602 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17603 nm_file_list_spec \
17604 lt_prog_compiler_no_builtin_flag \
17605 lt_prog_compiler_pic \
17606 lt_prog_compiler_wl \
17607 lt_prog_compiler_static \
17608 lt_cv_prog_compiler_c_o \
17609 need_locks \
17610 MANIFEST_TOOL \
17611 DSYMUTIL \
17612 NMEDIT \
17613 LIPO \
17614 OTOOL \
17615 OTOOL64 \
17616 shrext_cmds \
17617 export_dynamic_flag_spec \
17618 whole_archive_flag_spec \
17619 compiler_needs_object \
17620 with_gnu_ld \
17621 allow_undefined_flag \
17622 no_undefined_flag \
17623 hardcode_libdir_flag_spec \
17624 hardcode_libdir_separator \
17625 exclude_expsyms \
17626 include_expsyms \
17627 file_list_spec \
17628 variables_saved_for_relink \
17629 libname_spec \
17630 library_names_spec \
17631 soname_spec \
17632 install_override_mode \
17633 finish_eval \
17634 old_striplib \
17635 striplib; do
17636     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17637     *[\\\\\\\`\\"\\\$]*)
17638       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17639       ;;
17640     *)
17641       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17642       ;;
17643     esac
17644 done
17645
17646 # Double-quote double-evaled strings.
17647 for var in reload_cmds \
17648 old_postinstall_cmds \
17649 old_postuninstall_cmds \
17650 old_archive_cmds \
17651 extract_expsyms_cmds \
17652 old_archive_from_new_cmds \
17653 old_archive_from_expsyms_cmds \
17654 archive_cmds \
17655 archive_expsym_cmds \
17656 module_cmds \
17657 module_expsym_cmds \
17658 export_symbols_cmds \
17659 prelink_cmds \
17660 postlink_cmds \
17661 postinstall_cmds \
17662 postuninstall_cmds \
17663 finish_cmds \
17664 sys_lib_search_path_spec \
17665 sys_lib_dlsearch_path_spec; do
17666     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17667     *[\\\\\\\`\\"\\\$]*)
17668       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17669       ;;
17670     *)
17671       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17672       ;;
17673     esac
17674 done
17675
17676 ac_aux_dir='$ac_aux_dir'
17677 xsi_shell='$xsi_shell'
17678 lt_shell_append='$lt_shell_append'
17679
17680 # See if we are running on zsh, and set the options which allow our
17681 # commands through without removal of \ escapes INIT.
17682 if test -n "\${ZSH_VERSION+set}" ; then
17683    setopt NO_GLOB_SUBST
17684 fi
17685
17686
17687     PACKAGE='$PACKAGE'
17688     VERSION='$VERSION'
17689     TIMESTAMP='$TIMESTAMP'
17690     RM='$RM'
17691     ofile='$ofile'
17692
17693
17694
17695 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17696     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17697     # from automake < 1.5.
17698     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17699     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17700     LINGUAS="${LINGUAS-%UNSET%}"
17701
17702
17703 _ACEOF
17704
17705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17706
17707 # Handling of arguments.
17708 for ac_config_target in $ac_config_targets
17709 do
17710   case $ac_config_target in
17711     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17712     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17713     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17714     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17715     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17716     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17717     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17718     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17719     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17720
17721   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17722   esac
17723 done
17724
17725
17726 # If the user did not use the arguments to specify the items to instantiate,
17727 # then the envvar interface is used.  Set only those that are not.
17728 # We use the long form for the default assignment because of an extremely
17729 # bizarre bug on SunOS 4.1.3.
17730 if $ac_need_defaults; then
17731   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17732   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17733   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17734 fi
17735
17736 # Have a temporary directory for convenience.  Make it in the build tree
17737 # simply because there is no reason against having it here, and in addition,
17738 # creating and moving files from /tmp can sometimes cause problems.
17739 # Hook for its removal unless debugging.
17740 # Note that there is a small window in which the directory will not be cleaned:
17741 # after its creation but before its name has been assigned to `$tmp'.
17742 $debug ||
17743 {
17744   tmp= ac_tmp=
17745   trap 'exit_status=$?
17746   : "${ac_tmp:=$tmp}"
17747   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17748 ' 0
17749   trap 'as_fn_exit 1' 1 2 13 15
17750 }
17751 # Create a (secure) tmp directory for tmp files.
17752
17753 {
17754   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17755   test -d "$tmp"
17756 }  ||
17757 {
17758   tmp=./conf$$-$RANDOM
17759   (umask 077 && mkdir "$tmp")
17760 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17761 ac_tmp=$tmp
17762
17763 # Set up the scripts for CONFIG_FILES section.
17764 # No need to generate them if there are no CONFIG_FILES.
17765 # This happens for instance with `./config.status config.h'.
17766 if test -n "$CONFIG_FILES"; then
17767
17768
17769 ac_cr=`echo X | tr X '\015'`
17770 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17771 # But we know of no other shell where ac_cr would be empty at this
17772 # point, so we can use a bashism as a fallback.
17773 if test "x$ac_cr" = x; then
17774   eval ac_cr=\$\'\\r\'
17775 fi
17776 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17777 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17778   ac_cs_awk_cr='\\r'
17779 else
17780   ac_cs_awk_cr=$ac_cr
17781 fi
17782
17783 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17784 _ACEOF
17785
17786
17787 {
17788   echo "cat >conf$$subs.awk <<_ACEOF" &&
17789   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17790   echo "_ACEOF"
17791 } >conf$$subs.sh ||
17792   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17793 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17794 ac_delim='%!_!# '
17795 for ac_last_try in false false false false false :; do
17796   . ./conf$$subs.sh ||
17797     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17798
17799   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17800   if test $ac_delim_n = $ac_delim_num; then
17801     break
17802   elif $ac_last_try; then
17803     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17804   else
17805     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17806   fi
17807 done
17808 rm -f conf$$subs.sh
17809
17810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17811 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17812 _ACEOF
17813 sed -n '
17814 h
17815 s/^/S["/; s/!.*/"]=/
17816 p
17817 g
17818 s/^[^!]*!//
17819 :repl
17820 t repl
17821 s/'"$ac_delim"'$//
17822 t delim
17823 :nl
17824 h
17825 s/\(.\{148\}\)..*/\1/
17826 t more1
17827 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17828 p
17829 n
17830 b repl
17831 :more1
17832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17833 p
17834 g
17835 s/.\{148\}//
17836 t nl
17837 :delim
17838 h
17839 s/\(.\{148\}\)..*/\1/
17840 t more2
17841 s/["\\]/\\&/g; s/^/"/; s/$/"/
17842 p
17843 b
17844 :more2
17845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17846 p
17847 g
17848 s/.\{148\}//
17849 t delim
17850 ' <conf$$subs.awk | sed '
17851 /^[^""]/{
17852   N
17853   s/\n//
17854 }
17855 ' >>$CONFIG_STATUS || ac_write_fail=1
17856 rm -f conf$$subs.awk
17857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17858 _ACAWK
17859 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17860   for (key in S) S_is_set[key] = 1
17861   FS = "\a"
17862
17863 }
17864 {
17865   line = $ 0
17866   nfields = split(line, field, "@")
17867   substed = 0
17868   len = length(field[1])
17869   for (i = 2; i < nfields; i++) {
17870     key = field[i]
17871     keylen = length(key)
17872     if (S_is_set[key]) {
17873       value = S[key]
17874       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17875       len += length(value) + length(field[++i])
17876       substed = 1
17877     } else
17878       len += 1 + keylen
17879   }
17880
17881   print line
17882 }
17883
17884 _ACAWK
17885 _ACEOF
17886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17887 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17888   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17889 else
17890   cat
17891 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17892   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17893 _ACEOF
17894
17895 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17896 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17897 # trailing colons and then remove the whole line if VPATH becomes empty
17898 # (actually we leave an empty line to preserve line numbers).
17899 if test "x$srcdir" = x.; then
17900   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17901 h
17902 s///
17903 s/^/:/
17904 s/[      ]*$/:/
17905 s/:\$(srcdir):/:/g
17906 s/:\${srcdir}:/:/g
17907 s/:@srcdir@:/:/g
17908 s/^:*//
17909 s/:*$//
17910 x
17911 s/\(=[   ]*\).*/\1/
17912 G
17913 s/\n//
17914 s/^[^=]*=[       ]*$//
17915 }'
17916 fi
17917
17918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17919 fi # test -n "$CONFIG_FILES"
17920
17921 # Set up the scripts for CONFIG_HEADERS section.
17922 # No need to generate them if there are no CONFIG_HEADERS.
17923 # This happens for instance with `./config.status Makefile'.
17924 if test -n "$CONFIG_HEADERS"; then
17925 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17926 BEGIN {
17927 _ACEOF
17928
17929 # Transform confdefs.h into an awk script `defines.awk', embedded as
17930 # here-document in config.status, that substitutes the proper values into
17931 # config.h.in to produce config.h.
17932
17933 # Create a delimiter string that does not exist in confdefs.h, to ease
17934 # handling of long lines.
17935 ac_delim='%!_!# '
17936 for ac_last_try in false false :; do
17937   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17938   if test -z "$ac_tt"; then
17939     break
17940   elif $ac_last_try; then
17941     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17942   else
17943     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17944   fi
17945 done
17946
17947 # For the awk script, D is an array of macro values keyed by name,
17948 # likewise P contains macro parameters if any.  Preserve backslash
17949 # newline sequences.
17950
17951 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17952 sed -n '
17953 s/.\{148\}/&'"$ac_delim"'/g
17954 t rset
17955 :rset
17956 s/^[     ]*#[    ]*define[       ][      ]*/ /
17957 t def
17958 d
17959 :def
17960 s/\\$//
17961 t bsnl
17962 s/["\\]/\\&/g
17963 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17964 D["\1"]=" \3"/p
17965 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17966 d
17967 :bsnl
17968 s/["\\]/\\&/g
17969 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17970 D["\1"]=" \3\\\\\\n"\\/p
17971 t cont
17972 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17973 t cont
17974 d
17975 :cont
17976 n
17977 s/.\{148\}/&'"$ac_delim"'/g
17978 t clear
17979 :clear
17980 s/\\$//
17981 t bsnlc
17982 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17983 d
17984 :bsnlc
17985 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17986 b cont
17987 ' <confdefs.h | sed '
17988 s/'"$ac_delim"'/"\\\
17989 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17990
17991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17992   for (key in D) D_is_set[key] = 1
17993   FS = "\a"
17994 }
17995 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17996   line = \$ 0
17997   split(line, arg, " ")
17998   if (arg[1] == "#") {
17999     defundef = arg[2]
18000     mac1 = arg[3]
18001   } else {
18002     defundef = substr(arg[1], 2)
18003     mac1 = arg[2]
18004   }
18005   split(mac1, mac2, "(") #)
18006   macro = mac2[1]
18007   prefix = substr(line, 1, index(line, defundef) - 1)
18008   if (D_is_set[macro]) {
18009     # Preserve the white space surrounding the "#".
18010     print prefix "define", macro P[macro] D[macro]
18011     next
18012   } else {
18013     # Replace #undef with comments.  This is necessary, for example,
18014     # in the case of _POSIX_SOURCE, which is predefined and required
18015     # on some systems where configure will not decide to define it.
18016     if (defundef == "undef") {
18017       print "/*", prefix defundef, macro, "*/"
18018       next
18019     }
18020   }
18021 }
18022 { print }
18023 _ACAWK
18024 _ACEOF
18025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18026   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18027 fi # test -n "$CONFIG_HEADERS"
18028
18029
18030 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18031 shift
18032 for ac_tag
18033 do
18034   case $ac_tag in
18035   :[FHLC]) ac_mode=$ac_tag; continue;;
18036   esac
18037   case $ac_mode$ac_tag in
18038   :[FHL]*:*);;
18039   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18040   :[FH]-) ac_tag=-:-;;
18041   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18042   esac
18043   ac_save_IFS=$IFS
18044   IFS=:
18045   set x $ac_tag
18046   IFS=$ac_save_IFS
18047   shift
18048   ac_file=$1
18049   shift
18050
18051   case $ac_mode in
18052   :L) ac_source=$1;;
18053   :[FH])
18054     ac_file_inputs=
18055     for ac_f
18056     do
18057       case $ac_f in
18058       -) ac_f="$ac_tmp/stdin";;
18059       *) # Look for the file first in the build tree, then in the source tree
18060          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18061          # because $ac_f cannot contain `:'.
18062          test -f "$ac_f" ||
18063            case $ac_f in
18064            [\\/$]*) false;;
18065            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18066            esac ||
18067            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18068       esac
18069       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18070       as_fn_append ac_file_inputs " '$ac_f'"
18071     done
18072
18073     # Let's still pretend it is `configure' which instantiates (i.e., don't
18074     # use $as_me), people would be surprised to read:
18075     #    /* config.h.  Generated by config.status.  */
18076     configure_input='Generated from '`
18077           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18078         `' by configure.'
18079     if test x"$ac_file" != x-; then
18080       configure_input="$ac_file.  $configure_input"
18081       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18082 $as_echo "$as_me: creating $ac_file" >&6;}
18083     fi
18084     # Neutralize special characters interpreted by sed in replacement strings.
18085     case $configure_input in #(
18086     *\&* | *\|* | *\\* )
18087        ac_sed_conf_input=`$as_echo "$configure_input" |
18088        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18089     *) ac_sed_conf_input=$configure_input;;
18090     esac
18091
18092     case $ac_tag in
18093     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18094       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18095     esac
18096     ;;
18097   esac
18098
18099   ac_dir=`$as_dirname -- "$ac_file" ||
18100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101          X"$ac_file" : 'X\(//\)[^/]' \| \
18102          X"$ac_file" : 'X\(//\)$' \| \
18103          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18104 $as_echo X"$ac_file" |
18105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18106             s//\1/
18107             q
18108           }
18109           /^X\(\/\/\)[^/].*/{
18110             s//\1/
18111             q
18112           }
18113           /^X\(\/\/\)$/{
18114             s//\1/
18115             q
18116           }
18117           /^X\(\/\).*/{
18118             s//\1/
18119             q
18120           }
18121           s/.*/./; q'`
18122   as_dir="$ac_dir"; as_fn_mkdir_p
18123   ac_builddir=.
18124
18125 case "$ac_dir" in
18126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18127 *)
18128   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18129   # A ".." for each directory in $ac_dir_suffix.
18130   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18131   case $ac_top_builddir_sub in
18132   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18133   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18134   esac ;;
18135 esac
18136 ac_abs_top_builddir=$ac_pwd
18137 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18138 # for backward compatibility:
18139 ac_top_builddir=$ac_top_build_prefix
18140
18141 case $srcdir in
18142   .)  # We are building in place.
18143     ac_srcdir=.
18144     ac_top_srcdir=$ac_top_builddir_sub
18145     ac_abs_top_srcdir=$ac_pwd ;;
18146   [\\/]* | ?:[\\/]* )  # Absolute name.
18147     ac_srcdir=$srcdir$ac_dir_suffix;
18148     ac_top_srcdir=$srcdir
18149     ac_abs_top_srcdir=$srcdir ;;
18150   *) # Relative name.
18151     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18152     ac_top_srcdir=$ac_top_build_prefix$srcdir
18153     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18154 esac
18155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18156
18157
18158   case $ac_mode in
18159   :F)
18160   #
18161   # CONFIG_FILE
18162   #
18163
18164   case $INSTALL in
18165   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18166   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18167   esac
18168   ac_MKDIR_P=$MKDIR_P
18169   case $MKDIR_P in
18170   [\\/$]* | ?:[\\/]* ) ;;
18171   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18172   esac
18173 _ACEOF
18174
18175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18176 # If the template does not know about datarootdir, expand it.
18177 # FIXME: This hack should be removed a few years after 2.60.
18178 ac_datarootdir_hack=; ac_datarootdir_seen=
18179 ac_sed_dataroot='
18180 /datarootdir/ {
18181   p
18182   q
18183 }
18184 /@datadir@/p
18185 /@docdir@/p
18186 /@infodir@/p
18187 /@localedir@/p
18188 /@mandir@/p'
18189 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18190 *datarootdir*) ac_datarootdir_seen=yes;;
18191 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18193 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18194 _ACEOF
18195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18196   ac_datarootdir_hack='
18197   s&@datadir@&$datadir&g
18198   s&@docdir@&$docdir&g
18199   s&@infodir@&$infodir&g
18200   s&@localedir@&$localedir&g
18201   s&@mandir@&$mandir&g
18202   s&\\\${datarootdir}&$datarootdir&g' ;;
18203 esac
18204 _ACEOF
18205
18206 # Neutralize VPATH when `$srcdir' = `.'.
18207 # Shell code in configure.ac might set extrasub.
18208 # FIXME: do we really want to maintain this feature?
18209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18210 ac_sed_extra="$ac_vpsub
18211 $extrasub
18212 _ACEOF
18213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18214 :t
18215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18216 s|@configure_input@|$ac_sed_conf_input|;t t
18217 s&@top_builddir@&$ac_top_builddir_sub&;t t
18218 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18219 s&@srcdir@&$ac_srcdir&;t t
18220 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18221 s&@top_srcdir@&$ac_top_srcdir&;t t
18222 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18223 s&@builddir@&$ac_builddir&;t t
18224 s&@abs_builddir@&$ac_abs_builddir&;t t
18225 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18226 s&@INSTALL@&$ac_INSTALL&;t t
18227 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18228 $ac_datarootdir_hack
18229 "
18230 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18231   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18232
18233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18234   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18235   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18236       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18237   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18238 which seems to be undefined.  Please make sure it is defined" >&5
18239 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18240 which seems to be undefined.  Please make sure it is defined" >&2;}
18241
18242   rm -f "$ac_tmp/stdin"
18243   case $ac_file in
18244   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18245   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18246   esac \
18247   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18248  ;;
18249   :H)
18250   #
18251   # CONFIG_HEADER
18252   #
18253   if test x"$ac_file" != x-; then
18254     {
18255       $as_echo "/* $configure_input  */" \
18256       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18257     } >"$ac_tmp/config.h" \
18258       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18259     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18260       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18261 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18262     else
18263       rm -f "$ac_file"
18264       mv "$ac_tmp/config.h" "$ac_file" \
18265         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18266     fi
18267   else
18268     $as_echo "/* $configure_input  */" \
18269       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18270       || as_fn_error $? "could not create -" "$LINENO" 5
18271   fi
18272 # Compute "$ac_file"'s index in $config_headers.
18273 _am_arg="$ac_file"
18274 _am_stamp_count=1
18275 for _am_header in $config_headers :; do
18276   case $_am_header in
18277     $_am_arg | $_am_arg:* )
18278       break ;;
18279     * )
18280       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18281   esac
18282 done
18283 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18284 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18285          X"$_am_arg" : 'X\(//\)[^/]' \| \
18286          X"$_am_arg" : 'X\(//\)$' \| \
18287          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18288 $as_echo X"$_am_arg" |
18289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18290             s//\1/
18291             q
18292           }
18293           /^X\(\/\/\)[^/].*/{
18294             s//\1/
18295             q
18296           }
18297           /^X\(\/\/\)$/{
18298             s//\1/
18299             q
18300           }
18301           /^X\(\/\).*/{
18302             s//\1/
18303             q
18304           }
18305           s/.*/./; q'`/stamp-h$_am_stamp_count
18306  ;;
18307
18308   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18309 $as_echo "$as_me: executing $ac_file commands" >&6;}
18310  ;;
18311   esac
18312
18313
18314   case $ac_file$ac_mode in
18315     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18316   # Older Autoconf quotes --file arguments for eval, but not when files
18317   # are listed without --file.  Let's play safe and only enable the eval
18318   # if we detect the quoting.
18319   case $CONFIG_FILES in
18320   *\'*) eval set x "$CONFIG_FILES" ;;
18321   *)   set x $CONFIG_FILES ;;
18322   esac
18323   shift
18324   for mf
18325   do
18326     # Strip MF so we end up with the name of the file.
18327     mf=`echo "$mf" | sed -e 's/:.*$//'`
18328     # Check whether this is an Automake generated Makefile or not.
18329     # We used to match only the files named 'Makefile.in', but
18330     # some people rename them; so instead we look at the file content.
18331     # Grep'ing the first line is not enough: some people post-process
18332     # each Makefile.in and add a new line on top of each file to say so.
18333     # Grep'ing the whole file is not good either: AIX grep has a line
18334     # limit of 2048, but all sed's we know have understand at least 4000.
18335     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18336       dirpart=`$as_dirname -- "$mf" ||
18337 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18338          X"$mf" : 'X\(//\)[^/]' \| \
18339          X"$mf" : 'X\(//\)$' \| \
18340          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18341 $as_echo X"$mf" |
18342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18343             s//\1/
18344             q
18345           }
18346           /^X\(\/\/\)[^/].*/{
18347             s//\1/
18348             q
18349           }
18350           /^X\(\/\/\)$/{
18351             s//\1/
18352             q
18353           }
18354           /^X\(\/\).*/{
18355             s//\1/
18356             q
18357           }
18358           s/.*/./; q'`
18359     else
18360       continue
18361     fi
18362     # Extract the definition of DEPDIR, am__include, and am__quote
18363     # from the Makefile without running 'make'.
18364     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18365     test -z "$DEPDIR" && continue
18366     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18367     test -z "$am__include" && continue
18368     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18369     # Find all dependency output files, they are included files with
18370     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18371     # simplest approach to changing $(DEPDIR) to its actual value in the
18372     # expansion.
18373     for file in `sed -n "
18374       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18375          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18376       # Make sure the directory exists.
18377       test -f "$dirpart/$file" && continue
18378       fdir=`$as_dirname -- "$file" ||
18379 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18380          X"$file" : 'X\(//\)[^/]' \| \
18381          X"$file" : 'X\(//\)$' \| \
18382          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18383 $as_echo X"$file" |
18384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18385             s//\1/
18386             q
18387           }
18388           /^X\(\/\/\)[^/].*/{
18389             s//\1/
18390             q
18391           }
18392           /^X\(\/\/\)$/{
18393             s//\1/
18394             q
18395           }
18396           /^X\(\/\).*/{
18397             s//\1/
18398             q
18399           }
18400           s/.*/./; q'`
18401       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18402       # echo "creating $dirpart/$file"
18403       echo '# dummy' > "$dirpart/$file"
18404     done
18405   done
18406 }
18407  ;;
18408     "libtool":C)
18409
18410     # See if we are running on zsh, and set the options which allow our
18411     # commands through without removal of \ escapes.
18412     if test -n "${ZSH_VERSION+set}" ; then
18413       setopt NO_GLOB_SUBST
18414     fi
18415
18416     cfgfile="${ofile}T"
18417     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18418     $RM "$cfgfile"
18419
18420     cat <<_LT_EOF >> "$cfgfile"
18421 #! $SHELL
18422
18423 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18424 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18426 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18427 #
18428 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18429 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18430 #                 Foundation, Inc.
18431 #   Written by Gordon Matzigkeit, 1996
18432 #
18433 #   This file is part of GNU Libtool.
18434 #
18435 # GNU Libtool is free software; you can redistribute it and/or
18436 # modify it under the terms of the GNU General Public License as
18437 # published by the Free Software Foundation; either version 2 of
18438 # the License, or (at your option) any later version.
18439 #
18440 # As a special exception to the GNU General Public License,
18441 # if you distribute this file as part of a program or library that
18442 # is built using GNU Libtool, you may include this file under the
18443 # same distribution terms that you use for the rest of that program.
18444 #
18445 # GNU Libtool is distributed in the hope that it will be useful,
18446 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18447 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18448 # GNU General Public License for more details.
18449 #
18450 # You should have received a copy of the GNU General Public License
18451 # along with GNU Libtool; see the file COPYING.  If not, a copy
18452 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18453 # obtained by writing to the Free Software Foundation, Inc.,
18454 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18455
18456
18457 # The names of the tagged configurations supported by this script.
18458 available_tags=""
18459
18460 # ### BEGIN LIBTOOL CONFIG
18461
18462 # Which release of libtool.m4 was used?
18463 macro_version=$macro_version
18464 macro_revision=$macro_revision
18465
18466 # Assembler program.
18467 AS=$lt_AS
18468
18469 # DLL creation program.
18470 DLLTOOL=$lt_DLLTOOL
18471
18472 # Object dumper program.
18473 OBJDUMP=$lt_OBJDUMP
18474
18475 # Whether or not to build shared libraries.
18476 build_libtool_libs=$enable_shared
18477
18478 # Whether or not to build static libraries.
18479 build_old_libs=$enable_static
18480
18481 # What type of objects to build.
18482 pic_mode=$pic_mode
18483
18484 # Whether or not to optimize for fast installation.
18485 fast_install=$enable_fast_install
18486
18487 # Shell to use when invoking shell scripts.
18488 SHELL=$lt_SHELL
18489
18490 # An echo program that protects backslashes.
18491 ECHO=$lt_ECHO
18492
18493 # The PATH separator for the build system.
18494 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18495
18496 # The host system.
18497 host_alias=$host_alias
18498 host=$host
18499 host_os=$host_os
18500
18501 # The build system.
18502 build_alias=$build_alias
18503 build=$build
18504 build_os=$build_os
18505
18506 # A sed program that does not truncate output.
18507 SED=$lt_SED
18508
18509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18510 Xsed="\$SED -e 1s/^X//"
18511
18512 # A grep program that handles long lines.
18513 GREP=$lt_GREP
18514
18515 # An ERE matcher.
18516 EGREP=$lt_EGREP
18517
18518 # A literal string matcher.
18519 FGREP=$lt_FGREP
18520
18521 # A BSD- or MS-compatible name lister.
18522 NM=$lt_NM
18523
18524 # Whether we need soft or hard links.
18525 LN_S=$lt_LN_S
18526
18527 # What is the maximum length of a command?
18528 max_cmd_len=$max_cmd_len
18529
18530 # Object file suffix (normally "o").
18531 objext=$ac_objext
18532
18533 # Executable file suffix (normally "").
18534 exeext=$exeext
18535
18536 # whether the shell understands "unset".
18537 lt_unset=$lt_unset
18538
18539 # turn spaces into newlines.
18540 SP2NL=$lt_lt_SP2NL
18541
18542 # turn newlines into spaces.
18543 NL2SP=$lt_lt_NL2SP
18544
18545 # convert \$build file names to \$host format.
18546 to_host_file_cmd=$lt_cv_to_host_file_cmd
18547
18548 # convert \$build files to toolchain format.
18549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18550
18551 # Method to check whether dependent libraries are shared objects.
18552 deplibs_check_method=$lt_deplibs_check_method
18553
18554 # Command to use when deplibs_check_method = "file_magic".
18555 file_magic_cmd=$lt_file_magic_cmd
18556
18557 # How to find potential files when deplibs_check_method = "file_magic".
18558 file_magic_glob=$lt_file_magic_glob
18559
18560 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18561 want_nocaseglob=$lt_want_nocaseglob
18562
18563 # Command to associate shared and link libraries.
18564 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18565
18566 # The archiver.
18567 AR=$lt_AR
18568
18569 # Flags to create an archive.
18570 AR_FLAGS=$lt_AR_FLAGS
18571
18572 # How to feed a file listing to the archiver.
18573 archiver_list_spec=$lt_archiver_list_spec
18574
18575 # A symbol stripping program.
18576 STRIP=$lt_STRIP
18577
18578 # Commands used to install an old-style archive.
18579 RANLIB=$lt_RANLIB
18580 old_postinstall_cmds=$lt_old_postinstall_cmds
18581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18582
18583 # Whether to use a lock for old archive extraction.
18584 lock_old_archive_extraction=$lock_old_archive_extraction
18585
18586 # A C compiler.
18587 LTCC=$lt_CC
18588
18589 # LTCC compiler flags.
18590 LTCFLAGS=$lt_CFLAGS
18591
18592 # Take the output of nm and produce a listing of raw symbols and C names.
18593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18594
18595 # Transform the output of nm in a proper C declaration.
18596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18597
18598 # Transform the output of nm in a C name address pair.
18599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18600
18601 # Transform the output of nm in a C name address pair when lib prefix is needed.
18602 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18603
18604 # Specify filename containing input files for \$NM.
18605 nm_file_list_spec=$lt_nm_file_list_spec
18606
18607 # The root where to search for dependent libraries,and in which our libraries should be installed.
18608 lt_sysroot=$lt_sysroot
18609
18610 # The name of the directory that contains temporary libtool files.
18611 objdir=$objdir
18612
18613 # Used to examine libraries when file_magic_cmd begins with "file".
18614 MAGIC_CMD=$MAGIC_CMD
18615
18616 # Must we lock files when doing compilation?
18617 need_locks=$lt_need_locks
18618
18619 # Manifest tool.
18620 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18621
18622 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18623 DSYMUTIL=$lt_DSYMUTIL
18624
18625 # Tool to change global to local symbols on Mac OS X.
18626 NMEDIT=$lt_NMEDIT
18627
18628 # Tool to manipulate fat objects and archives on Mac OS X.
18629 LIPO=$lt_LIPO
18630
18631 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18632 OTOOL=$lt_OTOOL
18633
18634 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18635 OTOOL64=$lt_OTOOL64
18636
18637 # Old archive suffix (normally "a").
18638 libext=$libext
18639
18640 # Shared library suffix (normally ".so").
18641 shrext_cmds=$lt_shrext_cmds
18642
18643 # The commands to extract the exported symbol list from a shared archive.
18644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18645
18646 # Variables whose values should be saved in libtool wrapper scripts and
18647 # restored at link time.
18648 variables_saved_for_relink=$lt_variables_saved_for_relink
18649
18650 # Do we need the "lib" prefix for modules?
18651 need_lib_prefix=$need_lib_prefix
18652
18653 # Do we need a version for libraries?
18654 need_version=$need_version
18655
18656 # Library versioning type.
18657 version_type=$version_type
18658
18659 # Shared library runtime path variable.
18660 runpath_var=$runpath_var
18661
18662 # Shared library path variable.
18663 shlibpath_var=$shlibpath_var
18664
18665 # Is shlibpath searched before the hard-coded library search path?
18666 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18667
18668 # Format of library name prefix.
18669 libname_spec=$lt_libname_spec
18670
18671 # List of archive names.  First name is the real one, the rest are links.
18672 # The last name is the one that the linker finds with -lNAME
18673 library_names_spec=$lt_library_names_spec
18674
18675 # The coded name of the library, if different from the real name.
18676 soname_spec=$lt_soname_spec
18677
18678 # Permission mode override for installation of shared libraries.
18679 install_override_mode=$lt_install_override_mode
18680
18681 # Command to use after installation of a shared archive.
18682 postinstall_cmds=$lt_postinstall_cmds
18683
18684 # Command to use after uninstallation of a shared archive.
18685 postuninstall_cmds=$lt_postuninstall_cmds
18686
18687 # Commands used to finish a libtool library installation in a directory.
18688 finish_cmds=$lt_finish_cmds
18689
18690 # As "finish_cmds", except a single script fragment to be evaled but
18691 # not shown.
18692 finish_eval=$lt_finish_eval
18693
18694 # Whether we should hardcode library paths into libraries.
18695 hardcode_into_libs=$hardcode_into_libs
18696
18697 # Compile-time system search path for libraries.
18698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18699
18700 # Run-time system search path for libraries.
18701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18702
18703 # Whether dlopen is supported.
18704 dlopen_support=$enable_dlopen
18705
18706 # Whether dlopen of programs is supported.
18707 dlopen_self=$enable_dlopen_self
18708
18709 # Whether dlopen of statically linked programs is supported.
18710 dlopen_self_static=$enable_dlopen_self_static
18711
18712 # Commands to strip libraries.
18713 old_striplib=$lt_old_striplib
18714 striplib=$lt_striplib
18715
18716
18717 # The linker used to build libraries.
18718 LD=$lt_LD
18719
18720 # How to create reloadable object files.
18721 reload_flag=$lt_reload_flag
18722 reload_cmds=$lt_reload_cmds
18723
18724 # Commands used to build an old-style archive.
18725 old_archive_cmds=$lt_old_archive_cmds
18726
18727 # A language specific compiler.
18728 CC=$lt_compiler
18729
18730 # Is the compiler the GNU compiler?
18731 with_gcc=$GCC
18732
18733 # Compiler flag to turn off builtin functions.
18734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18735
18736 # Additional compiler flags for building library objects.
18737 pic_flag=$lt_lt_prog_compiler_pic
18738
18739 # How to pass a linker flag through the compiler.
18740 wl=$lt_lt_prog_compiler_wl
18741
18742 # Compiler flag to prevent dynamic linking.
18743 link_static_flag=$lt_lt_prog_compiler_static
18744
18745 # Does compiler simultaneously support -c and -o options?
18746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18747
18748 # Whether or not to add -lc for building shared libraries.
18749 build_libtool_need_lc=$archive_cmds_need_lc
18750
18751 # Whether or not to disallow shared libs when runtime libs are static.
18752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18753
18754 # Compiler flag to allow reflexive dlopens.
18755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18756
18757 # Compiler flag to generate shared objects directly from archives.
18758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18759
18760 # Whether the compiler copes with passing no objects directly.
18761 compiler_needs_object=$lt_compiler_needs_object
18762
18763 # Create an old-style archive from a shared archive.
18764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18765
18766 # Create a temporary old-style archive to link instead of a shared archive.
18767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18768
18769 # Commands used to build a shared archive.
18770 archive_cmds=$lt_archive_cmds
18771 archive_expsym_cmds=$lt_archive_expsym_cmds
18772
18773 # Commands used to build a loadable module if different from building
18774 # a shared archive.
18775 module_cmds=$lt_module_cmds
18776 module_expsym_cmds=$lt_module_expsym_cmds
18777
18778 # Whether we are building with GNU ld or not.
18779 with_gnu_ld=$lt_with_gnu_ld
18780
18781 # Flag that allows shared libraries with undefined symbols to be built.
18782 allow_undefined_flag=$lt_allow_undefined_flag
18783
18784 # Flag that enforces no undefined symbols.
18785 no_undefined_flag=$lt_no_undefined_flag
18786
18787 # Flag to hardcode \$libdir into a binary during linking.
18788 # This must work even if \$libdir does not exist
18789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18790
18791 # Whether we need a single "-rpath" flag with a separated argument.
18792 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18793
18794 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18795 # DIR into the resulting binary.
18796 hardcode_direct=$hardcode_direct
18797
18798 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18799 # DIR into the resulting binary and the resulting library dependency is
18800 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18801 # library is relocated.
18802 hardcode_direct_absolute=$hardcode_direct_absolute
18803
18804 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18805 # into the resulting binary.
18806 hardcode_minus_L=$hardcode_minus_L
18807
18808 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18809 # into the resulting binary.
18810 hardcode_shlibpath_var=$hardcode_shlibpath_var
18811
18812 # Set to "yes" if building a shared library automatically hardcodes DIR
18813 # into the library and all subsequent libraries and executables linked
18814 # against it.
18815 hardcode_automatic=$hardcode_automatic
18816
18817 # Set to yes if linker adds runtime paths of dependent libraries
18818 # to runtime path list.
18819 inherit_rpath=$inherit_rpath
18820
18821 # Whether libtool must link a program against all its dependency libraries.
18822 link_all_deplibs=$link_all_deplibs
18823
18824 # Set to "yes" if exported symbols are required.
18825 always_export_symbols=$always_export_symbols
18826
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds
18829
18830 # Symbols that should not be listed in the preloaded symbols.
18831 exclude_expsyms=$lt_exclude_expsyms
18832
18833 # Symbols that must always be exported.
18834 include_expsyms=$lt_include_expsyms
18835
18836 # Commands necessary for linking programs (against libraries) with templates.
18837 prelink_cmds=$lt_prelink_cmds
18838
18839 # Commands necessary for finishing linking programs.
18840 postlink_cmds=$lt_postlink_cmds
18841
18842 # Specify filename containing input files.
18843 file_list_spec=$lt_file_list_spec
18844
18845 # How to hardcode a shared library path into an executable.
18846 hardcode_action=$hardcode_action
18847
18848 # ### END LIBTOOL CONFIG
18849
18850 _LT_EOF
18851
18852   case $host_os in
18853   aix3*)
18854     cat <<\_LT_EOF >> "$cfgfile"
18855 # AIX sometimes has problems with the GCC collect2 program.  For some
18856 # reason, if we set the COLLECT_NAMES environment variable, the problems
18857 # vanish in a puff of smoke.
18858 if test "X${COLLECT_NAMES+set}" != Xset; then
18859   COLLECT_NAMES=
18860   export COLLECT_NAMES
18861 fi
18862 _LT_EOF
18863     ;;
18864   esac
18865
18866
18867 ltmain="$ac_aux_dir/ltmain.sh"
18868
18869
18870   # We use sed instead of cat because bash on DJGPP gets confused if
18871   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18872   # text mode, it properly converts lines to CR/LF.  This bash problem
18873   # is reportedly fixed, but why not run on old versions too?
18874   sed '$q' "$ltmain" >> "$cfgfile" \
18875      || (rm -f "$cfgfile"; exit 1)
18876
18877   if test x"$xsi_shell" = xyes; then
18878   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18879 func_dirname ()\
18880 {\
18881 \    case ${1} in\
18882 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18883 \      *  ) func_dirname_result="${3}" ;;\
18884 \    esac\
18885 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18886   && mv -f "$cfgfile.tmp" "$cfgfile" \
18887     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18888 test 0 -eq $? || _lt_function_replace_fail=:
18889
18890
18891   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18892 func_basename ()\
18893 {\
18894 \    func_basename_result="${1##*/}"\
18895 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18896   && mv -f "$cfgfile.tmp" "$cfgfile" \
18897     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18898 test 0 -eq $? || _lt_function_replace_fail=:
18899
18900
18901   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18902 func_dirname_and_basename ()\
18903 {\
18904 \    case ${1} in\
18905 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18906 \      *  ) func_dirname_result="${3}" ;;\
18907 \    esac\
18908 \    func_basename_result="${1##*/}"\
18909 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18910   && mv -f "$cfgfile.tmp" "$cfgfile" \
18911     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18912 test 0 -eq $? || _lt_function_replace_fail=:
18913
18914
18915   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18916 func_stripname ()\
18917 {\
18918 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18919 \    # positional parameters, so assign one to ordinary parameter first.\
18920 \    func_stripname_result=${3}\
18921 \    func_stripname_result=${func_stripname_result#"${1}"}\
18922 \    func_stripname_result=${func_stripname_result%"${2}"}\
18923 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18924   && mv -f "$cfgfile.tmp" "$cfgfile" \
18925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18926 test 0 -eq $? || _lt_function_replace_fail=:
18927
18928
18929   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18930 func_split_long_opt ()\
18931 {\
18932 \    func_split_long_opt_name=${1%%=*}\
18933 \    func_split_long_opt_arg=${1#*=}\
18934 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18935   && mv -f "$cfgfile.tmp" "$cfgfile" \
18936     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18937 test 0 -eq $? || _lt_function_replace_fail=:
18938
18939
18940   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18941 func_split_short_opt ()\
18942 {\
18943 \    func_split_short_opt_arg=${1#??}\
18944 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18945 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18946   && mv -f "$cfgfile.tmp" "$cfgfile" \
18947     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18948 test 0 -eq $? || _lt_function_replace_fail=:
18949
18950
18951   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18952 func_lo2o ()\
18953 {\
18954 \    case ${1} in\
18955 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18956 \      *)    func_lo2o_result=${1} ;;\
18957 \    esac\
18958 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18959   && mv -f "$cfgfile.tmp" "$cfgfile" \
18960     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18961 test 0 -eq $? || _lt_function_replace_fail=:
18962
18963
18964   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18965 func_xform ()\
18966 {\
18967     func_xform_result=${1%.*}.lo\
18968 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18969   && mv -f "$cfgfile.tmp" "$cfgfile" \
18970     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18971 test 0 -eq $? || _lt_function_replace_fail=:
18972
18973
18974   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18975 func_arith ()\
18976 {\
18977     func_arith_result=$(( $* ))\
18978 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18979   && mv -f "$cfgfile.tmp" "$cfgfile" \
18980     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18981 test 0 -eq $? || _lt_function_replace_fail=:
18982
18983
18984   sed -e '/^func_len ()$/,/^} # func_len /c\
18985 func_len ()\
18986 {\
18987     func_len_result=${#1}\
18988 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18989   && mv -f "$cfgfile.tmp" "$cfgfile" \
18990     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18991 test 0 -eq $? || _lt_function_replace_fail=:
18992
18993 fi
18994
18995 if test x"$lt_shell_append" = xyes; then
18996   sed -e '/^func_append ()$/,/^} # func_append /c\
18997 func_append ()\
18998 {\
18999     eval "${1}+=\\${2}"\
19000 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19001   && mv -f "$cfgfile.tmp" "$cfgfile" \
19002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19003 test 0 -eq $? || _lt_function_replace_fail=:
19004
19005
19006   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19007 func_append_quoted ()\
19008 {\
19009 \    func_quote_for_eval "${2}"\
19010 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19011 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19012   && mv -f "$cfgfile.tmp" "$cfgfile" \
19013     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19014 test 0 -eq $? || _lt_function_replace_fail=:
19015
19016
19017   # Save a `func_append' function call where possible by direct use of '+='
19018   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19019     && mv -f "$cfgfile.tmp" "$cfgfile" \
19020       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19021   test 0 -eq $? || _lt_function_replace_fail=:
19022 else
19023   # Save a `func_append' function call even when '+=' is not available
19024   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19025     && mv -f "$cfgfile.tmp" "$cfgfile" \
19026       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19027   test 0 -eq $? || _lt_function_replace_fail=:
19028 fi
19029
19030 if test x"$_lt_function_replace_fail" = x":"; then
19031   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19032 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19033 fi
19034
19035
19036    mv -f "$cfgfile" "$ofile" ||
19037     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19038   chmod +x "$ofile"
19039
19040  ;;
19041     "po-directories":C)
19042     for ac_file in $CONFIG_FILES; do
19043       # Support "outfile[:infile[:infile...]]"
19044       case "$ac_file" in
19045         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19046       esac
19047       # PO directories have a Makefile.in generated from Makefile.in.in.
19048       case "$ac_file" in */Makefile.in)
19049         # Adjust a relative srcdir.
19050         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19051         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19052         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19053         # In autoconf-2.13 it is called $ac_given_srcdir.
19054         # In autoconf-2.50 it is called $srcdir.
19055         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19056         case "$ac_given_srcdir" in
19057           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19058           /*) top_srcdir="$ac_given_srcdir" ;;
19059           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19060         esac
19061         # Treat a directory as a PO directory if and only if it has a
19062         # POTFILES.in file. This allows packages to have multiple PO
19063         # directories under different names or in different locations.
19064         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19065           rm -f "$ac_dir/POTFILES"
19066           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19067           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19068           POMAKEFILEDEPS="POTFILES.in"
19069           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19070           # on $ac_dir but don't depend on user-specified configuration
19071           # parameters.
19072           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19073             # The LINGUAS file contains the set of available languages.
19074             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19075               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19076             fi
19077             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19078             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19079             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19080             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19081           else
19082             # The set of available languages was given in configure.in.
19083             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19084             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19085           fi
19086           # Compute POFILES
19087           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19088           # Compute UPDATEPOFILES
19089           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19090           # Compute DUMMYPOFILES
19091           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19092           # Compute GMOFILES
19093           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19094           case "$ac_given_srcdir" in
19095             .) srcdirpre= ;;
19096             *) srcdirpre='$(srcdir)/' ;;
19097           esac
19098           POFILES=
19099           UPDATEPOFILES=
19100           DUMMYPOFILES=
19101           GMOFILES=
19102           for lang in $ALL_LINGUAS; do
19103             POFILES="$POFILES $srcdirpre$lang.po"
19104             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19105             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19106             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19107           done
19108           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19109           # environment variable.
19110           INST_LINGUAS=
19111           if test -n "$ALL_LINGUAS"; then
19112             for presentlang in $ALL_LINGUAS; do
19113               useit=no
19114               if test "%UNSET%" != "$LINGUAS"; then
19115                 desiredlanguages="$LINGUAS"
19116               else
19117                 desiredlanguages="$ALL_LINGUAS"
19118               fi
19119               for desiredlang in $desiredlanguages; do
19120                 # Use the presentlang catalog if desiredlang is
19121                 #   a. equal to presentlang, or
19122                 #   b. a variant of presentlang (because in this case,
19123                 #      presentlang can be used as a fallback for messages
19124                 #      which are not translated in the desiredlang catalog).
19125                 case "$desiredlang" in
19126                   "$presentlang"*) useit=yes;;
19127                 esac
19128               done
19129               if test $useit = yes; then
19130                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19131               fi
19132             done
19133           fi
19134           CATALOGS=
19135           if test -n "$INST_LINGUAS"; then
19136             for lang in $INST_LINGUAS; do
19137               CATALOGS="$CATALOGS $lang.gmo"
19138             done
19139           fi
19140           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19141           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"
19142           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19143             if test -f "$f"; then
19144               case "$f" in
19145                 *.orig | *.bak | *~) ;;
19146                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19147               esac
19148             fi
19149           done
19150         fi
19151         ;;
19152       esac
19153     done ;;
19154
19155   esac
19156 done # for ac_tag
19157
19158
19159 as_fn_exit 0
19160 _ACEOF
19161 ac_clean_files=$ac_clean_files_save
19162
19163 test $ac_write_fail = 0 ||
19164   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19165
19166
19167 # configure is writing to config.log, and then calls config.status.
19168 # config.status does its own redirection, appending to config.log.
19169 # Unfortunately, on DOS this fails, as config.log is still kept open
19170 # by configure, so config.status won't be able to write to it; its
19171 # output is simply discarded.  So we exec the FD to /dev/null,
19172 # effectively closing config.log, so it can be properly (re)opened and
19173 # appended to by config.status.  When coming back to configure, we
19174 # need to make the FD available again.
19175 if test "$no_create" != yes; then
19176   ac_cs_success=:
19177   ac_config_status_args=
19178   test "$silent" = yes &&
19179     ac_config_status_args="$ac_config_status_args --quiet"
19180   exec 5>/dev/null
19181   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19182   exec 5>>config.log
19183   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19184   # would make configure fail if this is the last instruction.
19185   $ac_cs_success || as_fn_exit 1
19186 fi
19187 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19189 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19190 fi
19191