autoreconf
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Moonshot-ui 0.1.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: moonshot-community@jiscmail.ac.uk about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680 as_awk_strverscmp='
681   # Use only awk features that work with 7th edition Unix awk (1978).
682   # My, what an old awk you have, Mr. Solaris!
683   END {
684     while (length(v1) && length(v2)) {
685       # Set d1 to be the next thing to compare from v1, and likewise for d2.
686       # Normally this is a single character, but if v1 and v2 contain digits,
687       # compare them as integers and fractions as strverscmp does.
688       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
689         # Split v1 and v2 into their leading digit string components d1 and d2,
690         # and advance v1 and v2 past the leading digit strings.
691         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
692         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
693         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
694         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
695         if (d1 ~ /^0/) {
696           if (d2 ~ /^0/) {
697             # Compare two fractions.
698             while (d1 ~ /^0/ && d2 ~ /^0/) {
699               d1 = substr(d1, 2); len1--
700               d2 = substr(d2, 2); len2--
701             }
702             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
703               # The two components differ in length, and the common prefix
704               # contains only leading zeros.  Consider the longer to be less.
705               d1 = -len1
706               d2 = -len2
707             } else {
708               # Otherwise, compare as strings.
709               d1 = "x" d1
710               d2 = "x" d2
711             }
712           } else {
713             # A fraction is less than an integer.
714             exit 1
715           }
716         } else {
717           if (d2 ~ /^0/) {
718             # An integer is greater than a fraction.
719             exit 2
720           } else {
721             # Compare two integers.
722             d1 += 0
723             d2 += 0
724           }
725         }
726       } else {
727         # The normal case, without worrying about digits.
728         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
729         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
730       }
731       if (d1 < d2) exit 1
732       if (d1 > d2) exit 2
733     }
734     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
735     # which mishandles some comparisons of empty strings to integers.
736     if (length(v2)) exit 1
737     if (length(v1)) exit 2
738   }
739 '
740
741 test -n "$DJDIR" || exec 7<&0 </dev/null
742 exec 6>&1
743
744 # Name of the host.
745 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
746 # so uname gets run too.
747 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
748
749 #
750 # Initializations.
751 #
752 ac_default_prefix=/usr/local
753 ac_clean_files=
754 ac_config_libobj_dir=.
755 LIBOBJS=
756 cross_compiling=no
757 subdirs=
758 MFLAGS=
759 MAKEFLAGS=
760
761 # Identity of this package.
762 PACKAGE_NAME='Moonshot-ui'
763 PACKAGE_TARNAME='moonshot-ui'
764 PACKAGE_VERSION='0.1'
765 PACKAGE_STRING='Moonshot-ui 0.1'
766 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
767 PACKAGE_URL='http://www.project-moonshot.org/'
768
769 ac_unique_file="configure.ac"
770 # Factoring default headers for most tests.
771 ac_includes_default="\
772 #include <stdio.h>
773 #ifdef HAVE_SYS_TYPES_H
774 # include <sys/types.h>
775 #endif
776 #ifdef HAVE_SYS_STAT_H
777 # include <sys/stat.h>
778 #endif
779 #ifdef STDC_HEADERS
780 # include <stdlib.h>
781 # include <stddef.h>
782 #else
783 # ifdef HAVE_STDLIB_H
784 #  include <stdlib.h>
785 # endif
786 #endif
787 #ifdef HAVE_STRING_H
788 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
789 #  include <memory.h>
790 # endif
791 # include <string.h>
792 #endif
793 #ifdef HAVE_STRINGS_H
794 # include <strings.h>
795 #endif
796 #ifdef HAVE_INTTYPES_H
797 # include <inttypes.h>
798 #endif
799 #ifdef HAVE_STDINT_H
800 # include <stdint.h>
801 #endif
802 #ifdef HAVE_UNISTD_H
803 # include <unistd.h>
804 #endif"
805
806 gt_needs=
807 ac_subst_vars='am__EXEEXT_FALSE
808 am__EXEEXT_TRUE
809 LTLIBOBJS
810 LIBOBJS
811 GETTEXT_PACKAGE
812 POSUB
813 LTLIBINTL
814 LIBINTL
815 INTLLIBS
816 LTLIBICONV
817 LIBICONV
818 INTL_MACOSX_LIBS
819 XGETTEXT_EXTRA_OPTIONS
820 MSGMERGE
821 XGETTEXT_015
822 XGETTEXT
823 GMSGFMT_015
824 MSGFMT_015
825 GMSGFMT
826 MSGFMT
827 GETTEXT_MACRO_VERSION
828 USE_NLS
829 libmoonshot_LIBS
830 libmoonshot_CFLAGS
831 moonshot_LIBS
832 moonshot_CFLAGS
833 MOONSHOT_WEBP
834 MOONSHOT_APP
835 UPDATE_DESKTOP_DATABASE
836 UPDATE_MIME_DATABASE
837 WIX_LIGHT
838 WIX_CANDLE
839 IMAGEMAGICK_CONVERT
840 MSVC_LIB
841 MIDL
842 MIDL_WRAPPER
843 MSRPC_LIBS
844 MSRPC_CFLAGS
845 IPC_GDBUS_FALSE
846 IPC_GDBUS_TRUE
847 IPC_DBUS_GLIB_FALSE
848 IPC_DBUS_GLIB_TRUE
849 IPC_DBUS_FALSE
850 IPC_DBUS_TRUE
851 IPC_MSRPC_FALSE
852 IPC_MSRPC_TRUE
853 OS_MACOS_FALSE
854 OS_MACOS_TRUE
855 OS_WIN32_FALSE
856 OS_WIN32_TRUE
857 OS_LINUX_FALSE
858 OS_LINUX_TRUE
859 GDBUS_LIBS
860 GDBUS_CFLAGS
861 MAC_LIBS
862 MAC_CFLAGS
863 GTK_LIBS
864 GTK_CFLAGS
865 VALAC
866 PKG_CONFIG_LIBDIR
867 PKG_CONFIG_PATH
868 PKG_CONFIG
869 CPP
870 OTOOL64
871 OTOOL
872 LIPO
873 NMEDIT
874 DSYMUTIL
875 lt_ECHO
876 RANLIB
877 AR
878 LN_S
879 NM
880 ac_ct_DUMPBIN
881 DUMPBIN
882 LD
883 FGREP
884 EGREP
885 GREP
886 SED
887 am__fastdepCC_FALSE
888 am__fastdepCC_TRUE
889 CCDEPMODE
890 AMDEPBACKSLASH
891 AMDEP_FALSE
892 AMDEP_TRUE
893 am__quote
894 am__include
895 DEPDIR
896 OBJEXT
897 EXEEXT
898 ac_ct_CC
899 CPPFLAGS
900 LDFLAGS
901 CFLAGS
902 CC
903 host_os
904 host_vendor
905 host_cpu
906 host
907 build_os
908 build_vendor
909 build_cpu
910 build
911 LIBTOOL
912 OBJDUMP
913 DLLTOOL
914 AS
915 MAINT
916 MAINTAINER_MODE_FALSE
917 MAINTAINER_MODE_TRUE
918 AM_BACKSLASH
919 AM_DEFAULT_VERBOSITY
920 am__untar
921 am__tar
922 AMTAR
923 am__leading_dot
924 SET_MAKE
925 AWK
926 mkdir_p
927 MKDIR_P
928 INSTALL_STRIP_PROGRAM
929 STRIP
930 install_sh
931 MAKEINFO
932 AUTOHEADER
933 AUTOMAKE
934 AUTOCONF
935 ACLOCAL
936 VERSION
937 PACKAGE
938 CYGPATH_W
939 am__isrc
940 INSTALL_DATA
941 INSTALL_SCRIPT
942 INSTALL_PROGRAM
943 target_alias
944 host_alias
945 build_alias
946 LIBS
947 ECHO_T
948 ECHO_N
949 ECHO_C
950 DEFS
951 mandir
952 localedir
953 libdir
954 psdir
955 pdfdir
956 dvidir
957 htmldir
958 infodir
959 docdir
960 oldincludedir
961 includedir
962 localstatedir
963 sharedstatedir
964 sysconfdir
965 datadir
966 datarootdir
967 libexecdir
968 sbindir
969 bindir
970 program_transform_name
971 prefix
972 exec_prefix
973 PACKAGE_URL
974 PACKAGE_BUGREPORT
975 PACKAGE_STRING
976 PACKAGE_VERSION
977 PACKAGE_TARNAME
978 PACKAGE_NAME
979 PATH_SEPARATOR
980 SHELL'
981 ac_subst_files=''
982 ac_user_opts='
983 enable_option_checking
984 enable_silent_rules
985 enable_maintainer_mode
986 enable_shared
987 enable_static
988 with_pic
989 enable_fast_install
990 enable_dependency_tracking
991 with_gnu_ld
992 enable_libtool_lock
993 enable_nls
994 enable_rpath
995 with_libiconv_prefix
996 with_libintl_prefix
997 '
998       ac_precious_vars='build_alias
999 host_alias
1000 target_alias
1001 CC
1002 CFLAGS
1003 LDFLAGS
1004 LIBS
1005 CPPFLAGS
1006 CPP
1007 PKG_CONFIG
1008 PKG_CONFIG_PATH
1009 PKG_CONFIG_LIBDIR
1010 GTK_CFLAGS
1011 GTK_LIBS
1012 MAC_CFLAGS
1013 MAC_LIBS
1014 GDBUS_CFLAGS
1015 GDBUS_LIBS
1016 moonshot_CFLAGS
1017 moonshot_LIBS
1018 libmoonshot_CFLAGS
1019 libmoonshot_LIBS'
1020
1021
1022 # Initialize some variables set by options.
1023 ac_init_help=
1024 ac_init_version=false
1025 ac_unrecognized_opts=
1026 ac_unrecognized_sep=
1027 # The variables have the same names as the options, with
1028 # dashes changed to underlines.
1029 cache_file=/dev/null
1030 exec_prefix=NONE
1031 no_create=
1032 no_recursion=
1033 prefix=NONE
1034 program_prefix=NONE
1035 program_suffix=NONE
1036 program_transform_name=s,x,x,
1037 silent=
1038 site=
1039 srcdir=
1040 verbose=
1041 x_includes=NONE
1042 x_libraries=NONE
1043
1044 # Installation directory options.
1045 # These are left unexpanded so users can "make install exec_prefix=/foo"
1046 # and all the variables that are supposed to be based on exec_prefix
1047 # by default will actually change.
1048 # Use braces instead of parens because sh, perl, etc. also accept them.
1049 # (The list follows the same order as the GNU Coding Standards.)
1050 bindir='${exec_prefix}/bin'
1051 sbindir='${exec_prefix}/sbin'
1052 libexecdir='${exec_prefix}/libexec'
1053 datarootdir='${prefix}/share'
1054 datadir='${datarootdir}'
1055 sysconfdir='${prefix}/etc'
1056 sharedstatedir='${prefix}/com'
1057 localstatedir='${prefix}/var'
1058 includedir='${prefix}/include'
1059 oldincludedir='/usr/include'
1060 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1061 infodir='${datarootdir}/info'
1062 htmldir='${docdir}'
1063 dvidir='${docdir}'
1064 pdfdir='${docdir}'
1065 psdir='${docdir}'
1066 libdir='${exec_prefix}/lib'
1067 localedir='${datarootdir}/locale'
1068 mandir='${datarootdir}/man'
1069
1070 ac_prev=
1071 ac_dashdash=
1072 for ac_option
1073 do
1074   # If the previous option needs an argument, assign it.
1075   if test -n "$ac_prev"; then
1076     eval $ac_prev=\$ac_option
1077     ac_prev=
1078     continue
1079   fi
1080
1081   case $ac_option in
1082   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1083   *=)   ac_optarg= ;;
1084   *)    ac_optarg=yes ;;
1085   esac
1086
1087   # Accept the important Cygnus configure options, so we can diagnose typos.
1088
1089   case $ac_dashdash$ac_option in
1090   --)
1091     ac_dashdash=yes ;;
1092
1093   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1094     ac_prev=bindir ;;
1095   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096     bindir=$ac_optarg ;;
1097
1098   -build | --build | --buil | --bui | --bu)
1099     ac_prev=build_alias ;;
1100   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101     build_alias=$ac_optarg ;;
1102
1103   -cache-file | --cache-file | --cache-fil | --cache-fi \
1104   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105     ac_prev=cache_file ;;
1106   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108     cache_file=$ac_optarg ;;
1109
1110   --config-cache | -C)
1111     cache_file=config.cache ;;
1112
1113   -datadir | --datadir | --datadi | --datad)
1114     ac_prev=datadir ;;
1115   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116     datadir=$ac_optarg ;;
1117
1118   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119   | --dataroo | --dataro | --datar)
1120     ac_prev=datarootdir ;;
1121   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123     datarootdir=$ac_optarg ;;
1124
1125   -disable-* | --disable-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error $? "invalid feature name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "enable_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval enable_$ac_useropt=no ;;
1140
1141   -docdir | --docdir | --docdi | --doc | --do)
1142     ac_prev=docdir ;;
1143   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144     docdir=$ac_optarg ;;
1145
1146   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1147     ac_prev=dvidir ;;
1148   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149     dvidir=$ac_optarg ;;
1150
1151   -enable-* | --enable-*)
1152     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155       as_fn_error $? "invalid feature name: $ac_useropt"
1156     ac_useropt_orig=$ac_useropt
1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158     case $ac_user_opts in
1159       *"
1160 "enable_$ac_useropt"
1161 "*) ;;
1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163          ac_unrecognized_sep=', ';;
1164     esac
1165     eval enable_$ac_useropt=\$ac_optarg ;;
1166
1167   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169   | --exec | --exe | --ex)
1170     ac_prev=exec_prefix ;;
1171   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173   | --exec=* | --exe=* | --ex=*)
1174     exec_prefix=$ac_optarg ;;
1175
1176   -gas | --gas | --ga | --g)
1177     # Obsolete; use --with-gas.
1178     with_gas=yes ;;
1179
1180   -help | --help | --hel | --he | -h)
1181     ac_init_help=long ;;
1182   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183     ac_init_help=recursive ;;
1184   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185     ac_init_help=short ;;
1186
1187   -host | --host | --hos | --ho)
1188     ac_prev=host_alias ;;
1189   -host=* | --host=* | --hos=* | --ho=*)
1190     host_alias=$ac_optarg ;;
1191
1192   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193     ac_prev=htmldir ;;
1194   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195   | --ht=*)
1196     htmldir=$ac_optarg ;;
1197
1198   -includedir | --includedir | --includedi | --included | --include \
1199   | --includ | --inclu | --incl | --inc)
1200     ac_prev=includedir ;;
1201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202   | --includ=* | --inclu=* | --incl=* | --inc=*)
1203     includedir=$ac_optarg ;;
1204
1205   -infodir | --infodir | --infodi | --infod | --info | --inf)
1206     ac_prev=infodir ;;
1207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208     infodir=$ac_optarg ;;
1209
1210   -libdir | --libdir | --libdi | --libd)
1211     ac_prev=libdir ;;
1212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213     libdir=$ac_optarg ;;
1214
1215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216   | --libexe | --libex | --libe)
1217     ac_prev=libexecdir ;;
1218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219   | --libexe=* | --libex=* | --libe=*)
1220     libexecdir=$ac_optarg ;;
1221
1222   -localedir | --localedir | --localedi | --localed | --locale)
1223     ac_prev=localedir ;;
1224   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225     localedir=$ac_optarg ;;
1226
1227   -localstatedir | --localstatedir | --localstatedi | --localstated \
1228   | --localstate | --localstat | --localsta | --localst | --locals)
1229     ac_prev=localstatedir ;;
1230   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232     localstatedir=$ac_optarg ;;
1233
1234   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235     ac_prev=mandir ;;
1236   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237     mandir=$ac_optarg ;;
1238
1239   -nfp | --nfp | --nf)
1240     # Obsolete; use --without-fp.
1241     with_fp=no ;;
1242
1243   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244   | --no-cr | --no-c | -n)
1245     no_create=yes ;;
1246
1247   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1249     no_recursion=yes ;;
1250
1251   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253   | --oldin | --oldi | --old | --ol | --o)
1254     ac_prev=oldincludedir ;;
1255   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258     oldincludedir=$ac_optarg ;;
1259
1260   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261     ac_prev=prefix ;;
1262   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263     prefix=$ac_optarg ;;
1264
1265   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266   | --program-pre | --program-pr | --program-p)
1267     ac_prev=program_prefix ;;
1268   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270     program_prefix=$ac_optarg ;;
1271
1272   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273   | --program-suf | --program-su | --program-s)
1274     ac_prev=program_suffix ;;
1275   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277     program_suffix=$ac_optarg ;;
1278
1279   -program-transform-name | --program-transform-name \
1280   | --program-transform-nam | --program-transform-na \
1281   | --program-transform-n | --program-transform- \
1282   | --program-transform | --program-transfor \
1283   | --program-transfo | --program-transf \
1284   | --program-trans | --program-tran \
1285   | --progr-tra | --program-tr | --program-t)
1286     ac_prev=program_transform_name ;;
1287   -program-transform-name=* | --program-transform-name=* \
1288   | --program-transform-nam=* | --program-transform-na=* \
1289   | --program-transform-n=* | --program-transform-=* \
1290   | --program-transform=* | --program-transfor=* \
1291   | --program-transfo=* | --program-transf=* \
1292   | --program-trans=* | --program-tran=* \
1293   | --progr-tra=* | --program-tr=* | --program-t=*)
1294     program_transform_name=$ac_optarg ;;
1295
1296   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297     ac_prev=pdfdir ;;
1298   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299     pdfdir=$ac_optarg ;;
1300
1301   -psdir | --psdir | --psdi | --psd | --ps)
1302     ac_prev=psdir ;;
1303   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1304     psdir=$ac_optarg ;;
1305
1306   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307   | -silent | --silent | --silen | --sile | --sil)
1308     silent=yes ;;
1309
1310   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311     ac_prev=sbindir ;;
1312   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313   | --sbi=* | --sb=*)
1314     sbindir=$ac_optarg ;;
1315
1316   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318   | --sharedst | --shareds | --shared | --share | --shar \
1319   | --sha | --sh)
1320     ac_prev=sharedstatedir ;;
1321   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324   | --sha=* | --sh=*)
1325     sharedstatedir=$ac_optarg ;;
1326
1327   -site | --site | --sit)
1328     ac_prev=site ;;
1329   -site=* | --site=* | --sit=*)
1330     site=$ac_optarg ;;
1331
1332   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333     ac_prev=srcdir ;;
1334   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335     srcdir=$ac_optarg ;;
1336
1337   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338   | --syscon | --sysco | --sysc | --sys | --sy)
1339     ac_prev=sysconfdir ;;
1340   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342     sysconfdir=$ac_optarg ;;
1343
1344   -target | --target | --targe | --targ | --tar | --ta | --t)
1345     ac_prev=target_alias ;;
1346   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347     target_alias=$ac_optarg ;;
1348
1349   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350     verbose=yes ;;
1351
1352   -version | --version | --versio | --versi | --vers | -V)
1353     ac_init_version=: ;;
1354
1355   -with-* | --with-*)
1356     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357     # Reject names that are not valid shell variable names.
1358     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359       as_fn_error $? "invalid package name: $ac_useropt"
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=\$ac_optarg ;;
1370
1371   -without-* | --without-*)
1372     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375       as_fn_error $? "invalid package name: $ac_useropt"
1376     ac_useropt_orig=$ac_useropt
1377     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378     case $ac_user_opts in
1379       *"
1380 "with_$ac_useropt"
1381 "*) ;;
1382       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383          ac_unrecognized_sep=', ';;
1384     esac
1385     eval with_$ac_useropt=no ;;
1386
1387   --x)
1388     # Obsolete; use --with-x.
1389     with_x=yes ;;
1390
1391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392   | --x-incl | --x-inc | --x-in | --x-i)
1393     ac_prev=x_includes ;;
1394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396     x_includes=$ac_optarg ;;
1397
1398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400     ac_prev=x_libraries ;;
1401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403     x_libraries=$ac_optarg ;;
1404
1405   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1407     ;;
1408
1409   *=*)
1410     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411     # Reject names that are not valid shell variable names.
1412     case $ac_envvar in #(
1413       '' | [0-9]* | *[!_$as_cr_alnum]* )
1414       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1415     esac
1416     eval $ac_envvar=\$ac_optarg
1417     export $ac_envvar ;;
1418
1419   *)
1420     # FIXME: should be removed in autoconf 3.0.
1421     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1425     ;;
1426
1427   esac
1428 done
1429
1430 if test -n "$ac_prev"; then
1431   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432   as_fn_error $? "missing argument to $ac_option"
1433 fi
1434
1435 if test -n "$ac_unrecognized_opts"; then
1436   case $enable_option_checking in
1437     no) ;;
1438     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440   esac
1441 fi
1442
1443 # Check all directory arguments for consistency.
1444 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445                 datadir sysconfdir sharedstatedir localstatedir includedir \
1446                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447                 libdir localedir mandir
1448 do
1449   eval ac_val=\$$ac_var
1450   # Remove trailing slashes.
1451   case $ac_val in
1452     */ )
1453       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454       eval $ac_var=\$ac_val;;
1455   esac
1456   # Be sure to have absolute directory names.
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1462 done
1463
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1467 build=$build_alias
1468 host=$host_alias
1469 target=$target_alias
1470
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473   if test "x$build_alias" = x; then
1474     cross_compiling=maybe
1475     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1476     If a cross compiler is detected then cross compile mode will be used" >&2
1477   elif test "x$build_alias" != "x$host_alias"; then
1478     cross_compiling=yes
1479   fi
1480 fi
1481
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485 test "$silent" = yes && exec 6>/dev/null
1486
1487
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491   as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493   as_fn_error $? "pwd does not report name of working directory"
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$as_myself" : 'X\(//\)[^/]' \| \
1503          X"$as_myself" : 'X\(//\)$' \| \
1504          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537         pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540   srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_env_${ac_var}_value=\$${ac_var}
1551   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559   # Omit some internal or obsolete options to make the list less imposing.
1560   # This message is too long to be a string in the A/UX 3.1 sh.
1561   cat <<_ACEOF
1562 \`configure' configures Moonshot-ui 0.1 to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE.  See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572   -h, --help              display this help and exit
1573       --help=short        display options specific to this package
1574       --help=recursive    display the short help of all the included packages
1575   -V, --version           display version information and exit
1576   -q, --quiet, --silent   do not print \`checking ...' messages
1577       --cache-file=FILE   cache test results in FILE [disabled]
1578   -C, --config-cache      alias for \`--cache-file=config.cache'
1579   -n, --no-create         do not create output files
1580       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583   --prefix=PREFIX         install architecture-independent files in PREFIX
1584                           [$ac_default_prefix]
1585   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1586                           [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596   --bindir=DIR            user executables [EPREFIX/bin]
1597   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1598   --libexecdir=DIR        program executables [EPREFIX/libexec]
1599   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1600   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1601   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1602   --libdir=DIR            object code libraries [EPREFIX/lib]
1603   --includedir=DIR        C header files [PREFIX/include]
1604   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR           info documentation [DATAROOTDIR/info]
1608   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR            man documentation [DATAROOTDIR/man]
1610   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1611   --htmldir=DIR           html documentation [DOCDIR]
1612   --dvidir=DIR            dvi documentation [DOCDIR]
1613   --pdfdir=DIR            pdf documentation [DOCDIR]
1614   --psdir=DIR             ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 Program names:
1620   --program-prefix=PREFIX            prepend PREFIX to installed program names
1621   --program-suffix=SUFFIX            append SUFFIX to installed program names
1622   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1623
1624 System types:
1625   --build=BUILD     configure for building on BUILD [guessed]
1626   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1627 _ACEOF
1628 fi
1629
1630 if test -n "$ac_init_help"; then
1631   case $ac_init_help in
1632      short | recursive ) echo "Configuration of Moonshot-ui 0.1:";;
1633    esac
1634   cat <<\_ACEOF
1635
1636 Optional Features:
1637   --disable-option-checking  ignore unrecognized --enable/--with options
1638   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1639   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1640   --enable-silent-rules          less verbose build output (undo: `make V=1')
1641   --disable-silent-rules         verbose build output (undo: `make V=0')
1642   --disable-maintainer-mode  disable make rules and dependencies not useful
1643                           (and sometimes confusing) to the casual installer
1644   --enable-shared[=PKGS]  build shared libraries [default=yes]
1645   --enable-static[=PKGS]  build static libraries [default=yes]
1646   --enable-fast-install[=PKGS]
1647                           optimize for fast installation [default=yes]
1648   --disable-dependency-tracking  speeds up one-time build
1649   --enable-dependency-tracking   do not reject slow dependency extractors
1650   --disable-libtool-lock  avoid locking (might break parallel builds)
1651   --disable-nls           do not use Native Language Support
1652   --disable-rpath         do not hardcode runtime library paths
1653
1654 Optional Packages:
1655   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1656   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1657   --with-pic              try to use only PIC/non-PIC objects [default=use
1658                           both]
1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1664   --without-libintl-prefix     don't search for libintl in includedir and libdir
1665
1666 Some influential environment variables:
1667   CC          C compiler command
1668   CFLAGS      C compiler flags
1669   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1670               nonstandard directory <lib dir>
1671   LIBS        libraries to pass to the linker, e.g. -l<library>
1672   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1673               you have headers in a nonstandard directory <include dir>
1674   CPP         C preprocessor
1675   PKG_CONFIG  path to pkg-config utility
1676   PKG_CONFIG_PATH
1677               directories to add to pkg-config's search path
1678   PKG_CONFIG_LIBDIR
1679               path overriding pkg-config's built-in search path
1680   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1681   GTK_LIBS    linker flags for GTK, overriding pkg-config
1682   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1683   MAC_LIBS    linker flags for MAC, overriding pkg-config
1684   GDBUS_CFLAGS
1685               C compiler flags for GDBUS, overriding pkg-config
1686   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1687   moonshot_CFLAGS
1688               C compiler flags for moonshot, overriding pkg-config
1689   moonshot_LIBS
1690               linker flags for moonshot, overriding pkg-config
1691   libmoonshot_CFLAGS
1692               C compiler flags for libmoonshot, overriding pkg-config
1693   libmoonshot_LIBS
1694               linker flags for libmoonshot, overriding pkg-config
1695
1696 Use these variables to override the choices made by `configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1698
1699 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1700 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1701 _ACEOF
1702 ac_status=$?
1703 fi
1704
1705 if test "$ac_init_help" = "recursive"; then
1706   # If there are subdirs, report their specific --help.
1707   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708     test -d "$ac_dir" ||
1709       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710       continue
1711     ac_builddir=.
1712
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *)
1716   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717   # A ".." for each directory in $ac_dir_suffix.
1718   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719   case $ac_top_builddir_sub in
1720   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722   esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1728
1729 case $srcdir in
1730   .)  # We are building in place.
1731     ac_srcdir=.
1732     ac_top_srcdir=$ac_top_builddir_sub
1733     ac_abs_top_srcdir=$ac_pwd ;;
1734   [\\/]* | ?:[\\/]* )  # Absolute name.
1735     ac_srcdir=$srcdir$ac_dir_suffix;
1736     ac_top_srcdir=$srcdir
1737     ac_abs_top_srcdir=$srcdir ;;
1738   *) # Relative name.
1739     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740     ac_top_srcdir=$ac_top_build_prefix$srcdir
1741     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744
1745     cd "$ac_dir" || { ac_status=$?; continue; }
1746     # Check for guested configure.
1747     if test -f "$ac_srcdir/configure.gnu"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750     elif test -f "$ac_srcdir/configure"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure" --help=recursive
1753     else
1754       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755     fi || ac_status=$?
1756     cd "$ac_pwd" || { ac_status=$?; break; }
1757   done
1758 fi
1759
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762   cat <<\_ACEOF
1763 Moonshot-ui configure 0.1
1764 generated by GNU Autoconf 2.67
1765
1766 Copyright (C) 2010 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770   exit
1771 fi
1772
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1776
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   rm -f conftest.$ac_objext
1784   if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_compile") 2>conftest.err
1792   ac_status=$?
1793   if test -s conftest.err; then
1794     grep -v '^ *+' conftest.err >conftest.er1
1795     cat conftest.er1 >&5
1796     mv -f conftest.er1 conftest.err
1797   fi
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && {
1800          test -z "$ac_c_werror_flag" ||
1801          test ! -s conftest.err
1802        } && test -s conftest.$ac_objext; then :
1803   ac_retval=0
1804 else
1805   $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808         ac_retval=1
1809 fi
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811   as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_compile
1814
1815 # ac_fn_c_try_link LINENO
1816 # -----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_link ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   rm -f conftest.$ac_objext conftest$ac_exeext
1822   if { { ac_try="$ac_link"
1823 case "(($ac_try" in
1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825   *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829   (eval "$ac_link") 2>conftest.err
1830   ac_status=$?
1831   if test -s conftest.err; then
1832     grep -v '^ *+' conftest.err >conftest.er1
1833     cat conftest.er1 >&5
1834     mv -f conftest.er1 conftest.err
1835   fi
1836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837   test $ac_status = 0; } && {
1838          test -z "$ac_c_werror_flag" ||
1839          test ! -s conftest.err
1840        } && test -s conftest$ac_exeext && {
1841          test "$cross_compiling" = yes ||
1842          $as_test_x conftest$ac_exeext
1843        }; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849         ac_retval=1
1850 fi
1851   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853   # interfere with the next link command; also delete a directory that is
1854   # left behind by Apple's compiler.  We do this before executing the actions.
1855   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857   as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_link
1860
1861 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists and can be compiled using the include files in
1864 # INCLUDES, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_compile ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval "test \"\${$3+set}\"" = set; then :
1871   $as_echo_n "(cached) " >&6
1872 else
1873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $4
1876 #include <$2>
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879   eval "$3=yes"
1880 else
1881   eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
1890 } # ac_fn_c_check_header_compile
1891
1892 # ac_fn_c_try_cpp LINENO
1893 # ----------------------
1894 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_cpp ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906   ac_status=$?
1907   if test -s conftest.err; then
1908     grep -v '^ *+' conftest.err >conftest.er1
1909     cat conftest.er1 >&5
1910     mv -f conftest.er1 conftest.err
1911   fi
1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913   test $ac_status = 0; } > conftest.i && {
1914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1915          test ! -s conftest.err
1916        }; then :
1917   ac_retval=0
1918 else
1919   $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922     ac_retval=1
1923 fi
1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925   as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_cpp
1928
1929 # ac_fn_c_try_run LINENO
1930 # ----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932 # that executables *can* be run.
1933 ac_fn_c_try_run ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943   (eval "$ac_link") 2>&5
1944   ac_status=$?
1945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1947   { { case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_try") 2>&5
1954   ac_status=$?
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; }; }; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: program exited with status $ac_status" >&5
1960        $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963        ac_retval=$ac_status
1964 fi
1965   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967   as_fn_set_status $ac_retval
1968
1969 } # ac_fn_c_try_run
1970
1971 # ac_fn_c_check_func LINENO FUNC VAR
1972 # ----------------------------------
1973 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1974 ac_fn_c_check_func ()
1975 {
1976   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval "test \"\${$3+set}\"" = set; then :
1980   $as_echo_n "(cached) " >&6
1981 else
1982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1986 #define $2 innocuous_$2
1987
1988 /* System header to define __stub macros and hopefully few prototypes,
1989     which can conflict with char $2 (); below.
1990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1991     <limits.h> exists even on freestanding compilers.  */
1992
1993 #ifdef __STDC__
1994 # include <limits.h>
1995 #else
1996 # include <assert.h>
1997 #endif
1998
1999 #undef $2
2000
2001 /* Override any GCC internal prototype to avoid an error.
2002    Use char because int might match the return type of a GCC
2003    builtin and then its argument prototype would still apply.  */
2004 #ifdef __cplusplus
2005 extern "C"
2006 #endif
2007 char $2 ();
2008 /* The GNU C library defines this for functions which it implements
2009     to always fail with ENOSYS.  Some functions are actually named
2010     something starting with __ and the normal name is an alias.  */
2011 #if defined __stub_$2 || defined __stub___$2
2012 choke me
2013 #endif
2014
2015 int
2016 main ()
2017 {
2018 return $2 ();
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_link "$LINENO"; then :
2024   eval "$3=yes"
2025 else
2026   eval "$3=no"
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext \
2029     conftest$ac_exeext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035
2036 } # ac_fn_c_check_func
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by Moonshot-ui $as_me 0.1, which was
2042 generated by GNU Autoconf 2.67.  Invocation command line was
2043
2044   $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2062
2063 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2064 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2067 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2068 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2069 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078     $as_echo "PATH: $as_dir"
2079   done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105   for ac_arg
2106   do
2107     case $ac_arg in
2108     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110     | -silent | --silent | --silen | --sile | --sil)
2111       continue ;;
2112     *\'*)
2113       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114     esac
2115     case $ac_pass in
2116     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117     2)
2118       as_fn_append ac_configure_args1 " '$ac_arg'"
2119       if test $ac_must_keep_next = true; then
2120         ac_must_keep_next=false # Got value, back to normal.
2121       else
2122         case $ac_arg in
2123           *=* | --config-cache | -C | -disable-* | --disable-* \
2124           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126           | -with-* | --with-* | -without-* | --without-* | --x)
2127             case "$ac_configure_args0 " in
2128               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129             esac
2130             ;;
2131           -* ) ac_must_keep_next=true ;;
2132         esac
2133       fi
2134       as_fn_append ac_configure_args " '$ac_arg'"
2135       ;;
2136     esac
2137   done
2138 done
2139 { ac_configure_args0=; unset ac_configure_args0;}
2140 { ac_configure_args1=; unset ac_configure_args1;}
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log.  We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148   # Save into config.log some information that might help in debugging.
2149   {
2150     echo
2151
2152     $as_echo "## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##"
2155     echo
2156     # The following way of writing the cache mishandles newlines in values,
2157 (
2158   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159     eval ac_val=\$$ac_var
2160     case $ac_val in #(
2161     *${as_nl}*)
2162       case $ac_var in #(
2163       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165       esac
2166       case $ac_var in #(
2167       _ | IFS | as_nl) ;; #(
2168       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169       *) { eval $ac_var=; unset $ac_var;} ;;
2170       esac ;;
2171     esac
2172   done
2173   (set) 2>&1 |
2174     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175     *${as_nl}ac_space=\ *)
2176       sed -n \
2177         "s/'\''/'\''\\\\'\'''\''/g;
2178           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179       ;; #(
2180     *)
2181       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182       ;;
2183     esac |
2184     sort
2185 )
2186     echo
2187
2188     $as_echo "## ----------------- ##
2189 ## Output variables. ##
2190 ## ----------------- ##"
2191     echo
2192     for ac_var in $ac_subst_vars
2193     do
2194       eval ac_val=\$$ac_var
2195       case $ac_val in
2196       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197       esac
2198       $as_echo "$ac_var='\''$ac_val'\''"
2199     done | sort
2200     echo
2201
2202     if test -n "$ac_subst_files"; then
2203       $as_echo "## ------------------- ##
2204 ## File substitutions. ##
2205 ## ------------------- ##"
2206       echo
2207       for ac_var in $ac_subst_files
2208       do
2209         eval ac_val=\$$ac_var
2210         case $ac_val in
2211         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212         esac
2213         $as_echo "$ac_var='\''$ac_val'\''"
2214       done | sort
2215       echo
2216     fi
2217
2218     if test -s confdefs.h; then
2219       $as_echo "## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##"
2222       echo
2223       cat confdefs.h
2224       echo
2225     fi
2226     test "$ac_signal" != 0 &&
2227       $as_echo "$as_me: caught signal $ac_signal"
2228     $as_echo "$as_me: exit $exit_status"
2229   } >&5
2230   rm -f core *.core core.conftest.* &&
2231     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232     exit $exit_status
2233 ' 0
2234 for ac_signal in 1 2 13 15; do
2235   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2238
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2241
2242 $as_echo "/* confdefs.h */" > confdefs.h
2243
2244 # Predefined preprocessor variables.
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2269
2270
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276   # We do not want a PATH search for config.site.
2277   case $CONFIG_SITE in #((
2278     -*)  ac_site_file1=./$CONFIG_SITE;;
2279     */*) ac_site_file1=$CONFIG_SITE;;
2280     *)   ac_site_file1=./$CONFIG_SITE;;
2281   esac
2282 elif test "x$prefix" != xNONE; then
2283   ac_site_file1=$prefix/share/config.site
2284   ac_site_file2=$prefix/etc/config.site
2285 else
2286   ac_site_file1=$ac_default_prefix/share/config.site
2287   ac_site_file2=$ac_default_prefix/etc/config.site
2288 fi
2289 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 do
2291   test "x$ac_site_file" = xNONE && continue
2292   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295     sed 's/^/| /' "$ac_site_file" >&5
2296     . "$ac_site_file" \
2297       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 as_fn_error $? "failed to load site script $ac_site_file
2300 See \`config.log' for more details" "$LINENO" 5 ; }
2301   fi
2302 done
2303
2304 if test -r "$cache_file"; then
2305   # Some versions of bash will fail to source /dev/null (special files
2306   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2307   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310     case $cache_file in
2311       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312       *)                      . "./$cache_file";;
2313     esac
2314   fi
2315 else
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318   >$cache_file
2319 fi
2320
2321 gt_needs="$gt_needs "
2322 # Check that the precious variables saved in the cache have kept the same
2323 # value.
2324 ac_cache_corrupted=false
2325 for ac_var in $ac_precious_vars; do
2326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2327   eval ac_new_set=\$ac_env_${ac_var}_set
2328   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2329   eval ac_new_val=\$ac_env_${ac_var}_value
2330   case $ac_old_set,$ac_new_set in
2331     set,)
2332       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2333 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2334       ac_cache_corrupted=: ;;
2335     ,set)
2336       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2337 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2338       ac_cache_corrupted=: ;;
2339     ,);;
2340     *)
2341       if test "x$ac_old_val" != "x$ac_new_val"; then
2342         # differences in whitespace do not lead to failure.
2343         ac_old_val_w=`echo x $ac_old_val`
2344         ac_new_val_w=`echo x $ac_new_val`
2345         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2346           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2347 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2348           ac_cache_corrupted=:
2349         else
2350           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2351 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2352           eval $ac_var=\$ac_old_val
2353         fi
2354         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2355 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2356         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2357 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2358       fi;;
2359   esac
2360   # Pass precious variables to config.status.
2361   if test "$ac_new_set" = set; then
2362     case $ac_new_val in
2363     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2364     *) ac_arg=$ac_var=$ac_new_val ;;
2365     esac
2366     case " $ac_configure_args " in
2367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2368       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2369     esac
2370   fi
2371 done
2372 if $ac_cache_corrupted; then
2373   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2375   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2376 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2377   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2378 fi
2379 ## -------------------- ##
2380 ## Main body of script. ##
2381 ## -------------------- ##
2382
2383 ac_ext=c
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
2389
2390
2391 # Remove this when we can depend on autoconf >= 2.64
2392 PACKAGE_URL=http://www.project-moonshot.org/
2393
2394
2395 ac_config_headers="$ac_config_headers config.h"
2396
2397
2398
2399 ac_aux_dir=
2400 for ac_dir in build-aux "$srcdir"/build-aux; do
2401   if test -f "$ac_dir/install-sh"; then
2402     ac_aux_dir=$ac_dir
2403     ac_install_sh="$ac_aux_dir/install-sh -c"
2404     break
2405   elif test -f "$ac_dir/install.sh"; then
2406     ac_aux_dir=$ac_dir
2407     ac_install_sh="$ac_aux_dir/install.sh -c"
2408     break
2409   elif test -f "$ac_dir/shtool"; then
2410     ac_aux_dir=$ac_dir
2411     ac_install_sh="$ac_aux_dir/shtool install -c"
2412     break
2413   fi
2414 done
2415 if test -z "$ac_aux_dir"; then
2416   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2417 fi
2418
2419 # These three variables are undocumented and unsupported,
2420 # and are intended to be withdrawn in a future Autoconf release.
2421 # They can cause serious problems if a builder's source tree is in a directory
2422 # whose full name contains unusual characters.
2423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2425 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2426
2427
2428
2429 am__api_version='1.11'
2430
2431 # Find a good install program.  We prefer a C program (faster),
2432 # so one script is as good as another.  But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2437 # AIX /bin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 # Reject install programs that cannot install multiple files.
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2447 if test -z "$INSTALL"; then
2448 if test "${ac_cv_path_install+set}" = set; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456     # Account for people who put trailing slashes in PATH elements.
2457 case $as_dir/ in #((
2458   ./ | .// | /[cC]/* | \
2459   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461   /usr/ucb/* ) ;;
2462   *)
2463     # OSF1 and SCO ODT 3.0 have their own names for install.
2464     # Don't use installbsd from OSF since it installs stuff as root
2465     # by default.
2466     for ac_prog in ginstall scoinst install; do
2467       for ac_exec_ext in '' $ac_executable_extensions; do
2468         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2469           if test $ac_prog = install &&
2470             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471             # AIX install.  It has an incompatible calling convention.
2472             :
2473           elif test $ac_prog = install &&
2474             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475             # program-specific install script used by HP pwplus--don't use.
2476             :
2477           else
2478             rm -rf conftest.one conftest.two conftest.dir
2479             echo one > conftest.one
2480             echo two > conftest.two
2481             mkdir conftest.dir
2482             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483               test -s conftest.one && test -s conftest.two &&
2484               test -s conftest.dir/conftest.one &&
2485               test -s conftest.dir/conftest.two
2486             then
2487               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488               break 3
2489             fi
2490           fi
2491         fi
2492       done
2493     done
2494     ;;
2495 esac
2496
2497   done
2498 IFS=$as_save_IFS
2499
2500 rm -rf conftest.one conftest.two conftest.dir
2501
2502 fi
2503   if test "${ac_cv_path_install+set}" = set; then
2504     INSTALL=$ac_cv_path_install
2505   else
2506     # As a last resort, use the slow shell script.  Don't cache a
2507     # value for INSTALL within a source directory, because that will
2508     # break other packages using the cache if that directory is
2509     # removed, or if the value is a relative name.
2510     INSTALL=$ac_install_sh
2511   fi
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514 $as_echo "$INSTALL" >&6; }
2515
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2525 $as_echo_n "checking whether build environment is sane... " >&6; }
2526 # Just in case
2527 sleep 1
2528 echo timestamp > conftest.file
2529 # Reject unsafe characters in $srcdir or the absolute working directory
2530 # name.  Accept space and tab only in the latter.
2531 am_lf='
2532 '
2533 case `pwd` in
2534   *[\\\"\#\$\&\'\`$am_lf]*)
2535     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2536 esac
2537 case $srcdir in
2538   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2539     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2540 esac
2541
2542 # Do `set' in a subshell so we don't clobber the current shell's
2543 # arguments.  Must try -L first in case configure is actually a
2544 # symlink; some systems play weird games with the mod time of symlinks
2545 # (eg FreeBSD returns the mod time of the symlink's containing
2546 # directory).
2547 if (
2548    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2549    if test "$*" = "X"; then
2550       # -L didn't work.
2551       set X `ls -t "$srcdir/configure" conftest.file`
2552    fi
2553    rm -f conftest.file
2554    if test "$*" != "X $srcdir/configure conftest.file" \
2555       && test "$*" != "X conftest.file $srcdir/configure"; then
2556
2557       # If neither matched, then we have a broken ls.  This can happen
2558       # if, for instance, CONFIG_SHELL is bash and it inherits a
2559       # broken ls alias from the environment.  This has actually
2560       # happened.  Such a system could not be considered "sane".
2561       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2562 alias in your environment" "$LINENO" 5
2563    fi
2564
2565    test "$2" = conftest.file
2566    )
2567 then
2568    # Ok.
2569    :
2570 else
2571    as_fn_error $? "newly created file is older than distributed files!
2572 Check your system clock" "$LINENO" 5
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575 $as_echo "yes" >&6; }
2576 test "$program_prefix" != NONE &&
2577   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2578 # Use a double $ so make ignores it.
2579 test "$program_suffix" != NONE &&
2580   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2581 # Double any \ or $.
2582 # By default was `s,x,x', remove it if useless.
2583 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2584 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2585
2586 # expand $ac_aux_dir to an absolute path
2587 am_aux_dir=`cd $ac_aux_dir && pwd`
2588
2589 if test x"${MISSING+set}" != xset; then
2590   case $am_aux_dir in
2591   *\ * | *\     *)
2592     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2593   *)
2594     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2595   esac
2596 fi
2597 # Use eval to expand $SHELL
2598 if eval "$MISSING --run true"; then
2599   am_missing_run="$MISSING --run "
2600 else
2601   am_missing_run=
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2603 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2604 fi
2605
2606 if test x"${install_sh}" != xset; then
2607   case $am_aux_dir in
2608   *\ * | *\     *)
2609     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2610   *)
2611     install_sh="\${SHELL} $am_aux_dir/install-sh"
2612   esac
2613 fi
2614
2615 # Installed binaries are usually stripped using `strip' when the user
2616 # run `make install-strip'.  However `strip' might not be the right
2617 # tool to use in cross-compilation environments, therefore Automake
2618 # will honor the `STRIP' environment variable to overrule this program.
2619 if test "$cross_compiling" != no; then
2620   if test -n "$ac_tool_prefix"; then
2621   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}strip; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_STRIP+set}" = set; then :
2626   $as_echo_n "(cached) " >&6
2627 else
2628   if test -n "$STRIP"; then
2629   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636     for ac_exec_ext in '' $ac_executable_extensions; do
2637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643   done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 STRIP=$ac_cv_prog_STRIP
2649 if test -n "$STRIP"; then
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2651 $as_echo "$STRIP" >&6; }
2652 else
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657
2658 fi
2659 if test -z "$ac_cv_prog_STRIP"; then
2660   ac_ct_STRIP=$STRIP
2661   # Extract the first word of "strip", so it can be a program name with args.
2662 set dummy strip; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2666   $as_echo_n "(cached) " >&6
2667 else
2668   if test -n "$ac_ct_STRIP"; then
2669   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676     for ac_exec_ext in '' $ac_executable_extensions; do
2677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678     ac_cv_prog_ac_ct_STRIP="strip"
2679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680     break 2
2681   fi
2682 done
2683   done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2689 if test -n "$ac_ct_STRIP"; then
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2691 $as_echo "$ac_ct_STRIP" >&6; }
2692 else
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697   if test "x$ac_ct_STRIP" = x; then
2698     STRIP=":"
2699   else
2700     case $cross_compiling:$ac_tool_warned in
2701 yes:)
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704 ac_tool_warned=yes ;;
2705 esac
2706     STRIP=$ac_ct_STRIP
2707   fi
2708 else
2709   STRIP="$ac_cv_prog_STRIP"
2710 fi
2711
2712 fi
2713 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2716 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2717 if test -z "$MKDIR_P"; then
2718   if test "${ac_cv_path_mkdir+set}" = set; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726     for ac_prog in mkdir gmkdir; do
2727          for ac_exec_ext in '' $ac_executable_extensions; do
2728            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2729            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2730              'mkdir (GNU coreutils) '* | \
2731              'mkdir (coreutils) '* | \
2732              'mkdir (fileutils) '4.1*)
2733                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2734                break 3;;
2735            esac
2736          done
2737        done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742
2743   test -d ./--version && rmdir ./--version
2744   if test "${ac_cv_path_mkdir+set}" = set; then
2745     MKDIR_P="$ac_cv_path_mkdir -p"
2746   else
2747     # As a last resort, use the slow shell script.  Don't cache a
2748     # value for MKDIR_P within a source directory, because that will
2749     # break other packages using the cache if that directory is
2750     # removed, or if the value is a relative name.
2751     MKDIR_P="$ac_install_sh -d"
2752   fi
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2755 $as_echo "$MKDIR_P" >&6; }
2756
2757 mkdir_p="$MKDIR_P"
2758 case $mkdir_p in
2759   [\\/$]* | ?:[\\/]*) ;;
2760   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2761 esac
2762
2763 for ac_prog in gawk mawk nawk awk
2764 do
2765   # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_AWK+set}" = set; then :
2770   $as_echo_n "(cached) " >&6
2771 else
2772   if test -n "$AWK"; then
2773   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780     for ac_exec_ext in '' $ac_executable_extensions; do
2781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782     ac_cv_prog_AWK="$ac_prog"
2783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784     break 2
2785   fi
2786 done
2787   done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 AWK=$ac_cv_prog_AWK
2793 if test -n "$AWK"; then
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795 $as_echo "$AWK" >&6; }
2796 else
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802   test -n "$AWK" && break
2803 done
2804
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807 set x ${MAKE-make}
2808 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   cat >conftest.make <<\_ACEOF
2813 SHELL = /bin/sh
2814 all:
2815         @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 _ACEOF
2817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819   *@@@%%%=?*=@@@%%%*)
2820     eval ac_cv_prog_make_${ac_make}_set=yes;;
2821   *)
2822     eval ac_cv_prog_make_${ac_make}_set=no;;
2823 esac
2824 rm -f conftest.make
2825 fi
2826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828 $as_echo "yes" >&6; }
2829   SET_MAKE=
2830 else
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833   SET_MAKE="MAKE=${MAKE-make}"
2834 fi
2835
2836 rm -rf .tst 2>/dev/null
2837 mkdir .tst 2>/dev/null
2838 if test -d .tst; then
2839   am__leading_dot=.
2840 else
2841   am__leading_dot=_
2842 fi
2843 rmdir .tst 2>/dev/null
2844
2845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847   # is not polluted with repeated "-I."
2848   am__isrc=' -I$(srcdir)'
2849   # test to see if srcdir already configured
2850   if test -f $srcdir/config.status; then
2851     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2852   fi
2853 fi
2854
2855 # test whether we have cygpath
2856 if test -z "$CYGPATH_W"; then
2857   if (cygpath --version) >/dev/null 2>/dev/null; then
2858     CYGPATH_W='cygpath -w'
2859   else
2860     CYGPATH_W=echo
2861   fi
2862 fi
2863
2864
2865 # Define the identity of the package.
2866  PACKAGE='moonshot-ui'
2867  VERSION='0.1'
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE "$PACKAGE"
2872 _ACEOF
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define VERSION "$VERSION"
2877 _ACEOF
2878
2879 # Some tools Automake needs.
2880
2881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2882
2883
2884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2885
2886
2887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2888
2889
2890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2891
2892
2893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2894
2895 # We need awk for the "check" target.  The system "awk" is bad on
2896 # some platforms.
2897 # Always define AMTAR for backward compatibility.
2898
2899 AMTAR=${AMTAR-"${am_missing_run}tar"}
2900
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2903 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2904 # Loop over all known methods to create a tar archive until one works.
2905 _am_tools='gnutar  pax cpio none'
2906 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2907 # Do not fold the above two line into one, because Tru64 sh and
2908 # Solaris sh will not grok spaces in the rhs of `-'.
2909 for _am_tool in $_am_tools
2910 do
2911   case $_am_tool in
2912   gnutar)
2913     for _am_tar in tar gnutar gtar;
2914     do
2915       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2916    ($_am_tar --version) >&5 2>&5
2917    ac_status=$?
2918    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919    (exit $ac_status); } && break
2920     done
2921     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2922     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2923     am__untar="$_am_tar -xf -"
2924     ;;
2925   plaintar)
2926     # Must skip GNU tar: if it does not support --format= it doesn't create
2927     # ustar tarball either.
2928     (tar --version) >/dev/null 2>&1 && continue
2929     am__tar='tar chf - "$$tardir"'
2930     am__tar_='tar chf - "$tardir"'
2931     am__untar='tar xf -'
2932     ;;
2933   pax)
2934     am__tar='pax -L -x pax -w "$$tardir"'
2935     am__tar_='pax -L -x pax -w "$tardir"'
2936     am__untar='pax -r'
2937     ;;
2938   cpio)
2939     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2940     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2941     am__untar='cpio -i -H pax -d'
2942     ;;
2943   none)
2944     am__tar=false
2945     am__tar_=false
2946     am__untar=false
2947     ;;
2948   esac
2949
2950   # If the value was cached, stop now.  We just wanted to have am__tar
2951   # and am__untar set.
2952   test -n "${am_cv_prog_tar_pax}" && break
2953
2954   # tar/untar a dummy directory, and stop if the command works
2955   rm -rf conftest.dir
2956   mkdir conftest.dir
2957   echo GrepMe > conftest.dir/file
2958   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2959    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2960    ac_status=$?
2961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962    (exit $ac_status); }
2963   rm -rf conftest.dir
2964   if test -s conftest.tar; then
2965     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2966    ($am__untar <conftest.tar) >&5 2>&5
2967    ac_status=$?
2968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969    (exit $ac_status); }
2970     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2971   fi
2972 done
2973 rm -rf conftest.dir
2974
2975 if test "${am_cv_prog_tar_pax+set}" = set; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   am_cv_prog_tar_pax=$_am_tool
2979 fi
2980
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2982 $as_echo "$am_cv_prog_tar_pax" >&6; }
2983
2984
2985
2986
2987
2988 # Check whether --enable-silent-rules was given.
2989 if test "${enable_silent_rules+set}" = set; then :
2990   enableval=$enable_silent_rules;
2991 fi
2992
2993 case $enable_silent_rules in
2994 yes) AM_DEFAULT_VERBOSITY=0;;
2995 no)  AM_DEFAULT_VERBOSITY=1;;
2996 *)   AM_DEFAULT_VERBOSITY=0;;
2997 esac
2998 AM_BACKSLASH='\'
2999
3000
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3002 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3003     # Check whether --enable-maintainer-mode was given.
3004 if test "${enable_maintainer_mode+set}" = set; then :
3005   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3006 else
3007   USE_MAINTAINER_MODE=yes
3008 fi
3009
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3011 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3012    if test $USE_MAINTAINER_MODE = yes; then
3013   MAINTAINER_MODE_TRUE=
3014   MAINTAINER_MODE_FALSE='#'
3015 else
3016   MAINTAINER_MODE_TRUE='#'
3017   MAINTAINER_MODE_FALSE=
3018 fi
3019
3020   MAINT=$MAINTAINER_MODE_TRUE
3021
3022
3023
3024
3025 case `pwd` in
3026   *\ * | *\     *)
3027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3029 esac
3030
3031
3032
3033 macro_version='2.2.6b'
3034 macro_revision='1.3017'
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048 ltmain="$ac_aux_dir/ltmain.sh"
3049
3050 # Make sure we can run config.sub.
3051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3052   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3053
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3055 $as_echo_n "checking build system type... " >&6; }
3056 if test "${ac_cv_build+set}" = set; then :
3057   $as_echo_n "(cached) " >&6
3058 else
3059   ac_build_alias=$build_alias
3060 test "x$ac_build_alias" = x &&
3061   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3062 test "x$ac_build_alias" = x &&
3063   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3065   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3066
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3069 $as_echo "$ac_cv_build" >&6; }
3070 case $ac_cv_build in
3071 *-*-*) ;;
3072 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3073 esac
3074 build=$ac_cv_build
3075 ac_save_IFS=$IFS; IFS='-'
3076 set x $ac_cv_build
3077 shift
3078 build_cpu=$1
3079 build_vendor=$2
3080 shift; shift
3081 # Remember, the first character of IFS is used to create $*,
3082 # except with old shells:
3083 build_os=$*
3084 IFS=$ac_save_IFS
3085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3086
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3089 $as_echo_n "checking host system type... " >&6; }
3090 if test "${ac_cv_host+set}" = set; then :
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if test "x$host_alias" = x; then
3094   ac_cv_host=$ac_cv_build
3095 else
3096   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3097     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3098 fi
3099
3100 fi
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3102 $as_echo "$ac_cv_host" >&6; }
3103 case $ac_cv_host in
3104 *-*-*) ;;
3105 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3106 esac
3107 host=$ac_cv_host
3108 ac_save_IFS=$IFS; IFS='-'
3109 set x $ac_cv_host
3110 shift
3111 host_cpu=$1
3112 host_vendor=$2
3113 shift; shift
3114 # Remember, the first character of IFS is used to create $*,
3115 # except with old shells:
3116 host_os=$*
3117 IFS=$ac_save_IFS
3118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3119
3120
3121 DEPDIR="${am__leading_dot}deps"
3122
3123 ac_config_commands="$ac_config_commands depfiles"
3124
3125
3126 am_make=${MAKE-make}
3127 cat > confinc << 'END'
3128 am__doit:
3129         @echo this is the am__doit target
3130 .PHONY: am__doit
3131 END
3132 # If we don't find an include directive, just comment out the code.
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3134 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3135 am__include="#"
3136 am__quote=
3137 _am_result=none
3138 # First try GNU make style include.
3139 echo "include confinc" > confmf
3140 # Ignore all kinds of additional output from `make'.
3141 case `$am_make -s -f confmf 2> /dev/null` in #(
3142 *the\ am__doit\ target*)
3143   am__include=include
3144   am__quote=
3145   _am_result=GNU
3146   ;;
3147 esac
3148 # Now try BSD make style include.
3149 if test "$am__include" = "#"; then
3150    echo '.include "confinc"' > confmf
3151    case `$am_make -s -f confmf 2> /dev/null` in #(
3152    *the\ am__doit\ target*)
3153      am__include=.include
3154      am__quote="\""
3155      _am_result=BSD
3156      ;;
3157    esac
3158 fi
3159
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3162 $as_echo "$_am_result" >&6; }
3163 rm -f confinc confmf
3164
3165 # Check whether --enable-dependency-tracking was given.
3166 if test "${enable_dependency_tracking+set}" = set; then :
3167   enableval=$enable_dependency_tracking;
3168 fi
3169
3170 if test "x$enable_dependency_tracking" != xno; then
3171   am_depcomp="$ac_aux_dir/depcomp"
3172   AMDEPBACKSLASH='\'
3173 fi
3174  if test "x$enable_dependency_tracking" != xno; then
3175   AMDEP_TRUE=
3176   AMDEP_FALSE='#'
3177 else
3178   AMDEP_TRUE='#'
3179   AMDEP_FALSE=
3180 fi
3181
3182
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 if test -n "$ac_tool_prefix"; then
3189   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_CC+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$CC"; then
3197   ac_cv_prog_CC="$CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 CC=$ac_cv_prog_CC
3217 if test -n "$CC"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3219 $as_echo "$CC" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 fi
3227 if test -z "$ac_cv_prog_CC"; then
3228   ac_ct_CC=$CC
3229   # Extract the first word of "gcc", so it can be a program name with args.
3230 set dummy gcc; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   if test -n "$ac_ct_CC"; then
3237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242   IFS=$as_save_IFS
3243   test -z "$as_dir" && as_dir=.
3244     for ac_exec_ext in '' $ac_executable_extensions; do
3245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246     ac_cv_prog_ac_ct_CC="gcc"
3247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248     break 2
3249   fi
3250 done
3251   done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3259 $as_echo "$ac_ct_CC" >&6; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265   if test "x$ac_ct_CC" = x; then
3266     CC=""
3267   else
3268     case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274     CC=$ac_ct_CC
3275   fi
3276 else
3277   CC="$ac_cv_prog_CC"
3278 fi
3279
3280 if test -z "$CC"; then
3281           if test -n "$ac_tool_prefix"; then
3282     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297     for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     ac_cv_prog_CC="${ac_tool_prefix}cc"
3300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304   done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319   fi
3320 fi
3321 if test -z "$CC"; then
3322   # Extract the first word of "cc", so it can be a program name with args.
3323 set dummy cc; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if test "${ac_cv_prog_CC+set}" = set; then :
3327   $as_echo_n "(cached) " >&6
3328 else
3329   if test -n "$CC"; then
3330   ac_cv_prog_CC="$CC" # Let the user override the test.
3331 else
3332   ac_prog_rejected=no
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338     for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3341        ac_prog_rejected=yes
3342        continue
3343      fi
3344     ac_cv_prog_CC="cc"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 if test $ac_prog_rejected = yes; then
3353   # We found a bogon in the path, so make sure we never use it.
3354   set dummy $ac_cv_prog_CC
3355   shift
3356   if test $# != 0; then
3357     # We chose a different compiler from the bogus one.
3358     # However, it has the same basename, so the bogon will be chosen
3359     # first if we set CC to just the basename; use the full file name.
3360     shift
3361     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3362   fi
3363 fi
3364 fi
3365 fi
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 $as_echo "$CC" >&6; }
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376 fi
3377 if test -z "$CC"; then
3378   if test -n "$ac_tool_prefix"; then
3379   for ac_prog in cl.exe
3380   do
3381     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   if test -n "$CC"; then
3389   ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394   IFS=$as_save_IFS
3395   test -z "$as_dir" && as_dir=.
3396     for ac_exec_ext in '' $ac_executable_extensions; do
3397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400     break 2
3401   fi
3402 done
3403   done
3404 IFS=$as_save_IFS
3405
3406 fi
3407 fi
3408 CC=$ac_cv_prog_CC
3409 if test -n "$CC"; then
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 fi
3416
3417
3418     test -n "$CC" && break
3419   done
3420 fi
3421 if test -z "$CC"; then
3422   ac_ct_CC=$CC
3423   for ac_prog in cl.exe
3424 do
3425   # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   if test -n "$ac_ct_CC"; then
3433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440     for ac_exec_ext in '' $ac_executable_extensions; do
3441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442     ac_cv_prog_ac_ct_CC="$ac_prog"
3443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447   done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453 if test -n "$ac_ct_CC"; then
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3455 $as_echo "$ac_ct_CC" >&6; }
3456 else
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462   test -n "$ac_ct_CC" && break
3463 done
3464
3465   if test "x$ac_ct_CC" = x; then
3466     CC=""
3467   else
3468     case $cross_compiling:$ac_tool_warned in
3469 yes:)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3472 ac_tool_warned=yes ;;
3473 esac
3474     CC=$ac_ct_CC
3475   fi
3476 fi
3477
3478 fi
3479
3480
3481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "no acceptable C compiler found in \$PATH
3484 See \`config.log' for more details" "$LINENO" 5 ; }
3485
3486 # Provide some information about the compiler.
3487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3488 set X $ac_compile
3489 ac_compiler=$2
3490 for ac_option in --version -v -V -qversion; do
3491   { { ac_try="$ac_compiler $ac_option >&5"
3492 case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3499   ac_status=$?
3500   if test -s conftest.err; then
3501     sed '10a\
3502 ... rest of stderr output deleted ...
3503          10q' conftest.err >conftest.er1
3504     cat conftest.er1 >&5
3505   fi
3506   rm -f conftest.er1 conftest.err
3507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508   test $ac_status = 0; }
3509 done
3510
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 ac_clean_files_save=$ac_clean_files
3523 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3524 # Try to create an executable without -o first, disregard a.out.
3525 # It will help us diagnose broken compilers, and finding out an intuition
3526 # of exeext.
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3528 $as_echo_n "checking whether the C compiler works... " >&6; }
3529 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3530
3531 # The possible output files:
3532 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3533
3534 ac_rmfiles=
3535 for ac_file in $ac_files
3536 do
3537   case $ac_file in
3538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3539     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3540   esac
3541 done
3542 rm -f $ac_rmfiles
3543
3544 if { { ac_try="$ac_link_default"
3545 case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551   (eval "$ac_link_default") 2>&5
3552   ac_status=$?
3553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554   test $ac_status = 0; }; then :
3555   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3556 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3557 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3558 # so that the user can short-circuit this test for compilers unknown to
3559 # Autoconf.
3560 for ac_file in $ac_files ''
3561 do
3562   test -f "$ac_file" || continue
3563   case $ac_file in
3564     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3565         ;;
3566     [ab].out )
3567         # We found the default executable, but exeext='' is most
3568         # certainly right.
3569         break;;
3570     *.* )
3571         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3572         then :; else
3573            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3574         fi
3575         # We set ac_cv_exeext here because the later test for it is not
3576         # safe: cross compilers may not add the suffix if given an `-o'
3577         # argument, so we may need to know it at that point already.
3578         # Even if this section looks crufty: it has the advantage of
3579         # actually working.
3580         break;;
3581     * )
3582         break;;
3583   esac
3584 done
3585 test "$ac_cv_exeext" = no && ac_cv_exeext=
3586
3587 else
3588   ac_file=''
3589 fi
3590 if test -z "$ac_file"; then :
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error 77 "C compiler cannot create executables
3599 See \`config.log' for more details" "$LINENO" 5 ; }
3600 else
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602 $as_echo "yes" >&6; }
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3605 $as_echo_n "checking for C compiler default output file name... " >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3607 $as_echo "$ac_file" >&6; }
3608 ac_exeext=$ac_cv_exeext
3609
3610 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3611 ac_clean_files=$ac_clean_files_save
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3613 $as_echo_n "checking for suffix of executables... " >&6; }
3614 if { { ac_try="$ac_link"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621   (eval "$ac_link") 2>&5
3622   ac_status=$?
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }; then :
3625   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3626 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3627 # work properly (i.e., refer to `conftest.exe'), while it won't with
3628 # `rm'.
3629 for ac_file in conftest.exe conftest conftest.*; do
3630   test -f "$ac_file" || continue
3631   case $ac_file in
3632     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3633     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634           break;;
3635     * ) break;;
3636   esac
3637 done
3638 else
3639   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3642 See \`config.log' for more details" "$LINENO" 5 ; }
3643 fi
3644 rm -f conftest conftest$ac_cv_exeext
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3646 $as_echo "$ac_cv_exeext" >&6; }
3647
3648 rm -f conftest.$ac_ext
3649 EXEEXT=$ac_cv_exeext
3650 ac_exeext=$EXEEXT
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653 #include <stdio.h>
3654 int
3655 main ()
3656 {
3657 FILE *f = fopen ("conftest.out", "w");
3658  return ferror (f) || fclose (f) != 0;
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 ac_clean_files="$ac_clean_files conftest.out"
3665 # Check that the compiler produces executables we can run.  If not, either
3666 # the compiler is broken, or we cross compile.
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3668 $as_echo_n "checking whether we are cross compiling... " >&6; }
3669 if test "$cross_compiling" != yes; then
3670   { { ac_try="$ac_link"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677   (eval "$ac_link") 2>&5
3678   ac_status=$?
3679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680   test $ac_status = 0; }
3681   if { ac_try='./conftest$ac_cv_exeext'
3682   { { case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688   (eval "$ac_try") 2>&5
3689   ac_status=$?
3690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691   test $ac_status = 0; }; }; then
3692     cross_compiling=no
3693   else
3694     if test "$cross_compiling" = maybe; then
3695         cross_compiling=yes
3696     else
3697         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error $? "cannot run C compiled programs.
3700 If you meant to cross compile, use \`--host'.
3701 See \`config.log' for more details" "$LINENO" 5 ; }
3702     fi
3703   fi
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3706 $as_echo "$cross_compiling" >&6; }
3707
3708 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3709 ac_clean_files=$ac_clean_files_save
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3711 $as_echo_n "checking for suffix of object files... " >&6; }
3712 if test "${ac_cv_objext+set}" = set; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717
3718 int
3719 main ()
3720 {
3721
3722   ;
3723   return 0;
3724 }
3725 _ACEOF
3726 rm -f conftest.o conftest.obj
3727 if { { ac_try="$ac_compile"
3728 case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734   (eval "$ac_compile") 2>&5
3735   ac_status=$?
3736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737   test $ac_status = 0; }; then :
3738   for ac_file in conftest.o conftest.obj conftest.*; do
3739   test -f "$ac_file" || continue;
3740   case $ac_file in
3741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3742     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3743        break;;
3744   esac
3745 done
3746 else
3747   $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error $? "cannot compute suffix of object files: cannot compile
3753 See \`config.log' for more details" "$LINENO" 5 ; }
3754 fi
3755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3758 $as_echo "$ac_cv_objext" >&6; }
3759 OBJEXT=$ac_cv_objext
3760 ac_objext=$OBJEXT
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3763 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768
3769 int
3770 main ()
3771 {
3772 #ifndef __GNUC__
3773        choke me
3774 #endif
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781   ac_compiler_gnu=yes
3782 else
3783   ac_compiler_gnu=no
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3791 if test $ac_compiler_gnu = yes; then
3792   GCC=yes
3793 else
3794   GCC=
3795 fi
3796 ac_test_CFLAGS=${CFLAGS+set}
3797 ac_save_CFLAGS=$CFLAGS
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3800 if test "${ac_cv_prog_cc_g+set}" = set; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   ac_save_c_werror_flag=$ac_c_werror_flag
3804    ac_c_werror_flag=yes
3805    ac_cv_prog_cc_g=no
3806    CFLAGS="-g"
3807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h.  */
3809
3810 int
3811 main ()
3812 {
3813
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819   ac_cv_prog_cc_g=yes
3820 else
3821   CFLAGS=""
3822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h.  */
3824
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834
3835 else
3836   ac_c_werror_flag=$ac_save_c_werror_flag
3837          CFLAGS="-g"
3838          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h.  */
3840
3841 int
3842 main ()
3843 {
3844
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850   ac_cv_prog_cc_g=yes
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857    ac_c_werror_flag=$ac_save_c_werror_flag
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3860 $as_echo "$ac_cv_prog_cc_g" >&6; }
3861 if test "$ac_test_CFLAGS" = set; then
3862   CFLAGS=$ac_save_CFLAGS
3863 elif test $ac_cv_prog_cc_g = yes; then
3864   if test "$GCC" = yes; then
3865     CFLAGS="-g -O2"
3866   else
3867     CFLAGS="-g"
3868   fi
3869 else
3870   if test "$GCC" = yes; then
3871     CFLAGS="-O2"
3872   else
3873     CFLAGS=
3874   fi
3875 fi
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3878 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   ac_cv_prog_cc_c89=no
3882 ac_save_CC=$CC
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h.  */
3885 #include <stdarg.h>
3886 #include <stdio.h>
3887 #include <sys/types.h>
3888 #include <sys/stat.h>
3889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3890 struct buf { int x; };
3891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3892 static char *e (p, i)
3893      char **p;
3894      int i;
3895 {
3896   return p[i];
3897 }
3898 static char *f (char * (*g) (char **, int), char **p, ...)
3899 {
3900   char *s;
3901   va_list v;
3902   va_start (v,p);
3903   s = g (p, va_arg (v,int));
3904   va_end (v);
3905   return s;
3906 }
3907
3908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3909    function prototypes and stuff, but not '\xHH' hex character constants.
3910    These don't provoke an error unfortunately, instead are silently treated
3911    as 'x'.  The following induces an error, until -std is added to get
3912    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3913    array size at least.  It's necessary to write '\x00'==0 to get something
3914    that's true only with -std.  */
3915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3916
3917 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3918    inside strings and character constants.  */
3919 #define FOO(x) 'x'
3920 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3921
3922 int test (int i, double x);
3923 struct s1 {int (*f) (int a);};
3924 struct s2 {int (*f) (double a);};
3925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3926 int argc;
3927 char **argv;
3928 int
3929 main ()
3930 {
3931 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3937         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3938 do
3939   CC="$ac_save_CC $ac_arg"
3940   if ac_fn_c_try_compile "$LINENO"; then :
3941   ac_cv_prog_cc_c89=$ac_arg
3942 fi
3943 rm -f core conftest.err conftest.$ac_objext
3944   test "x$ac_cv_prog_cc_c89" != "xno" && break
3945 done
3946 rm -f conftest.$ac_ext
3947 CC=$ac_save_CC
3948
3949 fi
3950 # AC_CACHE_VAL
3951 case "x$ac_cv_prog_cc_c89" in
3952   x)
3953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3954 $as_echo "none needed" >&6; } ;;
3955   xno)
3956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3957 $as_echo "unsupported" >&6; } ;;
3958   *)
3959     CC="$CC $ac_cv_prog_cc_c89"
3960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3961 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3962 esac
3963 if test "x$ac_cv_prog_cc_c89" != xno; then :
3964
3965 fi
3966
3967 ac_ext=c
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972
3973 depcc="$CC"   am_compiler_list=
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976 $as_echo_n "checking dependency style of $depcc... " >&6; }
3977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981   # We make a subdir and do the tests there.  Otherwise we can end up
3982   # making bogus files that we don't know about and never remove.  For
3983   # instance it was reported that on HP-UX the gcc test will end up
3984   # making a dummy file named `D' -- because `-MD' means `put the output
3985   # in D'.
3986   mkdir conftest.dir
3987   # Copy depcomp to subdir because otherwise we won't find it if we're
3988   # using a relative directory.
3989   cp "$am_depcomp" conftest.dir
3990   cd conftest.dir
3991   # We will build objects and dependencies in a subdirectory because
3992   # it helps to detect inapplicable dependency modes.  For instance
3993   # both Tru64's cc and ICC support -MD to output dependencies as a
3994   # side effect of compilation, but ICC will put the dependencies in
3995   # the current directory while Tru64 will put them in the object
3996   # directory.
3997   mkdir sub
3998
3999   am_cv_CC_dependencies_compiler_type=none
4000   if test "$am_compiler_list" = ""; then
4001      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002   fi
4003   am__universal=false
4004   case " $depcc " in #(
4005      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4006      esac
4007
4008   for depmode in $am_compiler_list; do
4009     # Setup a source with many dependencies, because some compilers
4010     # like to wrap large dependency lists on column 80 (with \), and
4011     # we should not choose a depcomp mode which is confused by this.
4012     #
4013     # We need to recreate these files for each test, as the compiler may
4014     # overwrite some of them when testing with obscure command lines.
4015     # This happens at least with the AIX C compiler.
4016     : > sub/conftest.c
4017     for i in 1 2 3 4 5 6; do
4018       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4019       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4020       # Solaris 8's {/usr,}/bin/sh.
4021       touch sub/conftst$i.h
4022     done
4023     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4024
4025     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4026     # mode.  It turns out that the SunPro C++ compiler does not properly
4027     # handle `-M -o', and we need to detect this.  Also, some Intel
4028     # versions had trouble with output in subdirs
4029     am__obj=sub/conftest.${OBJEXT-o}
4030     am__minus_obj="-o $am__obj"
4031     case $depmode in
4032     gcc)
4033       # This depmode causes a compiler race in universal mode.
4034       test "$am__universal" = false || continue
4035       ;;
4036     nosideeffect)
4037       # after this tag, mechanisms are not by side-effect, so they'll
4038       # only be used when explicitly requested
4039       if test "x$enable_dependency_tracking" = xyes; then
4040         continue
4041       else
4042         break
4043       fi
4044       ;;
4045     msvisualcpp | msvcmsys)
4046       # This compiler won't grok `-c -o', but also, the minuso test has
4047       # not run yet.  These depmodes are late enough in the game, and
4048       # so weak that their functioning should not be impacted.
4049       am__obj=conftest.${OBJEXT-o}
4050       am__minus_obj=
4051       ;;
4052     none) break ;;
4053     esac
4054     if depmode=$depmode \
4055        source=sub/conftest.c object=$am__obj \
4056        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4057        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4058          >/dev/null 2>conftest.err &&
4059        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4060        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4061        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4062        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4063       # icc doesn't choke on unknown options, it will just issue warnings
4064       # or remarks (even with -Werror).  So we grep stderr for any message
4065       # that says an option was ignored or not supported.
4066       # When given -MP, icc 7.0 and 7.1 complain thusly:
4067       #   icc: Command line warning: ignoring option '-M'; no argument required
4068       # The diagnosis changed in icc 8.0:
4069       #   icc: Command line remark: option '-MP' not supported
4070       if (grep 'ignoring option' conftest.err ||
4071           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4072         am_cv_CC_dependencies_compiler_type=$depmode
4073         break
4074       fi
4075     fi
4076   done
4077
4078   cd ..
4079   rm -rf conftest.dir
4080 else
4081   am_cv_CC_dependencies_compiler_type=none
4082 fi
4083
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4086 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088
4089  if
4090   test "x$enable_dependency_tracking" != xno \
4091   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4092   am__fastdepCC_TRUE=
4093   am__fastdepCC_FALSE='#'
4094 else
4095   am__fastdepCC_TRUE='#'
4096   am__fastdepCC_FALSE=
4097 fi
4098
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4101 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4102 if test "${ac_cv_path_SED+set}" = set; then :
4103   $as_echo_n "(cached) " >&6
4104 else
4105             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4106      for ac_i in 1 2 3 4 5 6 7; do
4107        ac_script="$ac_script$as_nl$ac_script"
4108      done
4109      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4110      { ac_script=; unset ac_script;}
4111      if test -z "$SED"; then
4112   ac_path_SED_found=false
4113   # Loop through the user's path and test for each of PROGNAME-LIST
4114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119     for ac_prog in sed gsed; do
4120     for ac_exec_ext in '' $ac_executable_extensions; do
4121       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4122       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4123 # Check for GNU ac_path_SED and select it if it is found.
4124   # Check for GNU $ac_path_SED
4125 case `"$ac_path_SED" --version 2>&1` in
4126 *GNU*)
4127   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4128 *)
4129   ac_count=0
4130   $as_echo_n 0123456789 >"conftest.in"
4131   while :
4132   do
4133     cat "conftest.in" "conftest.in" >"conftest.tmp"
4134     mv "conftest.tmp" "conftest.in"
4135     cp "conftest.in" "conftest.nl"
4136     $as_echo '' >> "conftest.nl"
4137     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4139     as_fn_arith $ac_count + 1 && ac_count=$as_val
4140     if test $ac_count -gt ${ac_path_SED_max-0}; then
4141       # Best one so far, save it but keep looking for a better one
4142       ac_cv_path_SED="$ac_path_SED"
4143       ac_path_SED_max=$ac_count
4144     fi
4145     # 10*(2^10) chars as input seems more than enough
4146     test $ac_count -gt 10 && break
4147   done
4148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149 esac
4150
4151       $ac_path_SED_found && break 3
4152     done
4153   done
4154   done
4155 IFS=$as_save_IFS
4156   if test -z "$ac_cv_path_SED"; then
4157     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4158   fi
4159 else
4160   ac_cv_path_SED=$SED
4161 fi
4162
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4165 $as_echo "$ac_cv_path_SED" >&6; }
4166  SED="$ac_cv_path_SED"
4167   rm -f conftest.sed
4168
4169 test -z "$SED" && SED=sed
4170 Xsed="$SED -e 1s/^X//"
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4183 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4184 if test "${ac_cv_path_GREP+set}" = set; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -z "$GREP"; then
4188   ac_path_GREP_found=false
4189   # Loop through the user's path and test for each of PROGNAME-LIST
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_prog in grep ggrep; do
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4198       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4199 # Check for GNU ac_path_GREP and select it if it is found.
4200   # Check for GNU $ac_path_GREP
4201 case `"$ac_path_GREP" --version 2>&1` in
4202 *GNU*)
4203   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4204 *)
4205   ac_count=0
4206   $as_echo_n 0123456789 >"conftest.in"
4207   while :
4208   do
4209     cat "conftest.in" "conftest.in" >"conftest.tmp"
4210     mv "conftest.tmp" "conftest.in"
4211     cp "conftest.in" "conftest.nl"
4212     $as_echo 'GREP' >> "conftest.nl"
4213     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215     as_fn_arith $ac_count + 1 && ac_count=$as_val
4216     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4217       # Best one so far, save it but keep looking for a better one
4218       ac_cv_path_GREP="$ac_path_GREP"
4219       ac_path_GREP_max=$ac_count
4220     fi
4221     # 10*(2^10) chars as input seems more than enough
4222     test $ac_count -gt 10 && break
4223   done
4224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 esac
4226
4227       $ac_path_GREP_found && break 3
4228     done
4229   done
4230   done
4231 IFS=$as_save_IFS
4232   if test -z "$ac_cv_path_GREP"; then
4233     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234   fi
4235 else
4236   ac_cv_path_GREP=$GREP
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4241 $as_echo "$ac_cv_path_GREP" >&6; }
4242  GREP="$ac_cv_path_GREP"
4243
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4246 $as_echo_n "checking for egrep... " >&6; }
4247 if test "${ac_cv_path_EGREP+set}" = set; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4251    then ac_cv_path_EGREP="$GREP -E"
4252    else
4253      if test -z "$EGREP"; then
4254   ac_path_EGREP_found=false
4255   # Loop through the user's path and test for each of PROGNAME-LIST
4256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261     for ac_prog in egrep; do
4262     for ac_exec_ext in '' $ac_executable_extensions; do
4263       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4264       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266   # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4268 *GNU*)
4269   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4270 *)
4271   ac_count=0
4272   $as_echo_n 0123456789 >"conftest.in"
4273   while :
4274   do
4275     cat "conftest.in" "conftest.in" >"conftest.tmp"
4276     mv "conftest.tmp" "conftest.in"
4277     cp "conftest.in" "conftest.nl"
4278     $as_echo 'EGREP' >> "conftest.nl"
4279     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281     as_fn_arith $ac_count + 1 && ac_count=$as_val
4282     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283       # Best one so far, save it but keep looking for a better one
4284       ac_cv_path_EGREP="$ac_path_EGREP"
4285       ac_path_EGREP_max=$ac_count
4286     fi
4287     # 10*(2^10) chars as input seems more than enough
4288     test $ac_count -gt 10 && break
4289   done
4290   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4292
4293       $ac_path_EGREP_found && break 3
4294     done
4295   done
4296   done
4297 IFS=$as_save_IFS
4298   if test -z "$ac_cv_path_EGREP"; then
4299     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300   fi
4301 else
4302   ac_cv_path_EGREP=$EGREP
4303 fi
4304
4305    fi
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4308 $as_echo "$ac_cv_path_EGREP" >&6; }
4309  EGREP="$ac_cv_path_EGREP"
4310
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4313 $as_echo_n "checking for fgrep... " >&6; }
4314 if test "${ac_cv_path_FGREP+set}" = set; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4318    then ac_cv_path_FGREP="$GREP -F"
4319    else
4320      if test -z "$FGREP"; then
4321   ac_path_FGREP_found=false
4322   # Loop through the user's path and test for each of PROGNAME-LIST
4323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328     for ac_prog in fgrep; do
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4331       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4332 # Check for GNU ac_path_FGREP and select it if it is found.
4333   # Check for GNU $ac_path_FGREP
4334 case `"$ac_path_FGREP" --version 2>&1` in
4335 *GNU*)
4336   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4337 *)
4338   ac_count=0
4339   $as_echo_n 0123456789 >"conftest.in"
4340   while :
4341   do
4342     cat "conftest.in" "conftest.in" >"conftest.tmp"
4343     mv "conftest.tmp" "conftest.in"
4344     cp "conftest.in" "conftest.nl"
4345     $as_echo 'FGREP' >> "conftest.nl"
4346     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348     as_fn_arith $ac_count + 1 && ac_count=$as_val
4349     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4350       # Best one so far, save it but keep looking for a better one
4351       ac_cv_path_FGREP="$ac_path_FGREP"
4352       ac_path_FGREP_max=$ac_count
4353     fi
4354     # 10*(2^10) chars as input seems more than enough
4355     test $ac_count -gt 10 && break
4356   done
4357   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 esac
4359
4360       $ac_path_FGREP_found && break 3
4361     done
4362   done
4363   done
4364 IFS=$as_save_IFS
4365   if test -z "$ac_cv_path_FGREP"; then
4366     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367   fi
4368 else
4369   ac_cv_path_FGREP=$FGREP
4370 fi
4371
4372    fi
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4375 $as_echo "$ac_cv_path_FGREP" >&6; }
4376  FGREP="$ac_cv_path_FGREP"
4377
4378
4379 test -z "$GREP" && GREP=grep
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399 # Check whether --with-gnu-ld was given.
4400 if test "${with_gnu_ld+set}" = set; then :
4401   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4402 else
4403   with_gnu_ld=no
4404 fi
4405
4406 ac_prog=ld
4407 if test "$GCC" = yes; then
4408   # Check if gcc -print-prog-name=ld gives a path.
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4410 $as_echo_n "checking for ld used by $CC... " >&6; }
4411   case $host in
4412   *-*-mingw*)
4413     # gcc leaves a trailing carriage return which upsets mingw
4414     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4415   *)
4416     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4417   esac
4418   case $ac_prog in
4419     # Accept absolute paths.
4420     [\\/]* | ?:[\\/]*)
4421       re_direlt='/[^/][^/]*/\.\./'
4422       # Canonicalize the pathname of ld
4423       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4424       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4425         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4426       done
4427       test -z "$LD" && LD="$ac_prog"
4428       ;;
4429   "")
4430     # If it fails, then pretend we aren't using GCC.
4431     ac_prog=ld
4432     ;;
4433   *)
4434     # If it is relative, then search for the first ld in PATH.
4435     with_gnu_ld=unknown
4436     ;;
4437   esac
4438 elif test "$with_gnu_ld" = yes; then
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4440 $as_echo_n "checking for GNU ld... " >&6; }
4441 else
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4443 $as_echo_n "checking for non-GNU ld... " >&6; }
4444 fi
4445 if test "${lt_cv_path_LD+set}" = set; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   if test -z "$LD"; then
4449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4450   for ac_dir in $PATH; do
4451     IFS="$lt_save_ifs"
4452     test -z "$ac_dir" && ac_dir=.
4453     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4454       lt_cv_path_LD="$ac_dir/$ac_prog"
4455       # Check to see if the program is GNU ld.  I'd rather use --version,
4456       # but apparently some variants of GNU ld only accept -v.
4457       # Break only if it was the GNU/non-GNU ld that we prefer.
4458       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4459       *GNU* | *'with BFD'*)
4460         test "$with_gnu_ld" != no && break
4461         ;;
4462       *)
4463         test "$with_gnu_ld" != yes && break
4464         ;;
4465       esac
4466     fi
4467   done
4468   IFS="$lt_save_ifs"
4469 else
4470   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4471 fi
4472 fi
4473
4474 LD="$lt_cv_path_LD"
4475 if test -n "$LD"; then
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4477 $as_echo "$LD" >&6; }
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4484 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4485 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4489 case `$LD -v 2>&1 </dev/null` in
4490 *GNU* | *'with BFD'*)
4491   lt_cv_prog_gnu_ld=yes
4492   ;;
4493 *)
4494   lt_cv_prog_gnu_ld=no
4495   ;;
4496 esac
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4499 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4500 with_gnu_ld=$lt_cv_prog_gnu_ld
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4511 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4512 if test "${lt_cv_path_NM+set}" = set; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   if test -n "$NM"; then
4516   # Let the user override the test.
4517   lt_cv_path_NM="$NM"
4518 else
4519   lt_nm_to_check="${ac_tool_prefix}nm"
4520   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4521     lt_nm_to_check="$lt_nm_to_check nm"
4522   fi
4523   for lt_tmp_nm in $lt_nm_to_check; do
4524     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4525     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4526       IFS="$lt_save_ifs"
4527       test -z "$ac_dir" && ac_dir=.
4528       tmp_nm="$ac_dir/$lt_tmp_nm"
4529       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4530         # Check to see if the nm accepts a BSD-compat flag.
4531         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4532         #   nm: unknown option "B" ignored
4533         # Tru64's nm complains that /dev/null is an invalid object file
4534         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4535         */dev/null* | *'Invalid file or object type'*)
4536           lt_cv_path_NM="$tmp_nm -B"
4537           break
4538           ;;
4539         *)
4540           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4541           */dev/null*)
4542             lt_cv_path_NM="$tmp_nm -p"
4543             break
4544             ;;
4545           *)
4546             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4547             continue # so that we can try to find one that supports BSD flags
4548             ;;
4549           esac
4550           ;;
4551         esac
4552       fi
4553     done
4554     IFS="$lt_save_ifs"
4555   done
4556   : ${lt_cv_path_NM=no}
4557 fi
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4560 $as_echo "$lt_cv_path_NM" >&6; }
4561 if test "$lt_cv_path_NM" != "no"; then
4562   NM="$lt_cv_path_NM"
4563 else
4564   # Didn't find any BSD compatible name lister, look for dumpbin.
4565   if test -n "$ac_tool_prefix"; then
4566   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567   do
4568     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -n "$DUMPBIN"; then
4576   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583     for ac_exec_ext in '' $ac_executable_extensions; do
4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590   done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 DUMPBIN=$ac_cv_prog_DUMPBIN
4596 if test -n "$DUMPBIN"; then
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4598 $as_echo "$DUMPBIN" >&6; }
4599 else
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4604
4605     test -n "$DUMPBIN" && break
4606   done
4607 fi
4608 if test -z "$DUMPBIN"; then
4609   ac_ct_DUMPBIN=$DUMPBIN
4610   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4611 do
4612   # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   if test -n "$ac_ct_DUMPBIN"; then
4620   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634   done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4640 if test -n "$ac_ct_DUMPBIN"; then
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4642 $as_echo "$ac_ct_DUMPBIN" >&6; }
4643 else
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647
4648
4649   test -n "$ac_ct_DUMPBIN" && break
4650 done
4651
4652   if test "x$ac_ct_DUMPBIN" = x; then
4653     DUMPBIN=":"
4654   else
4655     case $cross_compiling:$ac_tool_warned in
4656 yes:)
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4659 ac_tool_warned=yes ;;
4660 esac
4661     DUMPBIN=$ac_ct_DUMPBIN
4662   fi
4663 fi
4664
4665
4666   if test "$DUMPBIN" != ":"; then
4667     NM="$DUMPBIN"
4668   fi
4669 fi
4670 test -z "$NM" && NM=nm
4671
4672
4673
4674
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4678 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4679 if test "${lt_cv_nm_interface+set}" = set; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   lt_cv_nm_interface="BSD nm"
4683   echo "int some_variable = 0;" > conftest.$ac_ext
4684   (eval echo "\"\$as_me:4684: $ac_compile\"" >&5)
4685   (eval "$ac_compile" 2>conftest.err)
4686   cat conftest.err >&5
4687   (eval echo "\"\$as_me:4687: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4688   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4689   cat conftest.err >&5
4690   (eval echo "\"\$as_me:4690: output\"" >&5)
4691   cat conftest.out >&5
4692   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4693     lt_cv_nm_interface="MS dumpbin"
4694   fi
4695   rm -f conftest*
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4698 $as_echo "$lt_cv_nm_interface" >&6; }
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4701 $as_echo_n "checking whether ln -s works... " >&6; }
4702 LN_S=$as_ln_s
4703 if test "$LN_S" = "ln -s"; then
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4706 else
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4708 $as_echo "no, using $LN_S" >&6; }
4709 fi
4710
4711 # find the maximum length of command line arguments
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4713 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4714 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717     i=0
4718   teststring="ABCD"
4719
4720   case $build_os in
4721   msdosdjgpp*)
4722     # On DJGPP, this test can blow up pretty badly due to problems in libc
4723     # (any single argument exceeding 2000 bytes causes a buffer overrun
4724     # during glob expansion).  Even if it were fixed, the result of this
4725     # check would be larger than it should be.
4726     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4727     ;;
4728
4729   gnu*)
4730     # Under GNU Hurd, this test is not required because there is
4731     # no limit to the length of command line arguments.
4732     # Libtool will interpret -1 as no limit whatsoever
4733     lt_cv_sys_max_cmd_len=-1;
4734     ;;
4735
4736   cygwin* | mingw* | cegcc*)
4737     # On Win9x/ME, this test blows up -- it succeeds, but takes
4738     # about 5 minutes as the teststring grows exponentially.
4739     # Worse, since 9x/ME are not pre-emptively multitasking,
4740     # you end up with a "frozen" computer, even though with patience
4741     # the test eventually succeeds (with a max line length of 256k).
4742     # Instead, let's just punt: use the minimum linelength reported by
4743     # all of the supported platforms: 8192 (on NT/2K/XP).
4744     lt_cv_sys_max_cmd_len=8192;
4745     ;;
4746
4747   amigaos*)
4748     # On AmigaOS with pdksh, this test takes hours, literally.
4749     # So we just punt and use a minimum line length of 8192.
4750     lt_cv_sys_max_cmd_len=8192;
4751     ;;
4752
4753   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4754     # This has been around since 386BSD, at least.  Likely further.
4755     if test -x /sbin/sysctl; then
4756       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4757     elif test -x /usr/sbin/sysctl; then
4758       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4759     else
4760       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4761     fi
4762     # And add a safety zone
4763     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4764     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4765     ;;
4766
4767   interix*)
4768     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4769     lt_cv_sys_max_cmd_len=196608
4770     ;;
4771
4772   osf*)
4773     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4774     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4775     # nice to cause kernel panics so lets avoid the loop below.
4776     # First set a reasonable default.
4777     lt_cv_sys_max_cmd_len=16384
4778     #
4779     if test -x /sbin/sysconfig; then
4780       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4781         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4782       esac
4783     fi
4784     ;;
4785   sco3.2v5*)
4786     lt_cv_sys_max_cmd_len=102400
4787     ;;
4788   sysv5* | sco5v6* | sysv4.2uw2*)
4789     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4790     if test -n "$kargmax"; then
4791       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4792     else
4793       lt_cv_sys_max_cmd_len=32768
4794     fi
4795     ;;
4796   *)
4797     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4798     if test -n "$lt_cv_sys_max_cmd_len"; then
4799       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4800       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4801     else
4802       # Make teststring a little bigger before we do anything with it.
4803       # a 1K string should be a reasonable start.
4804       for i in 1 2 3 4 5 6 7 8 ; do
4805         teststring=$teststring$teststring
4806       done
4807       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4808       # If test is not a shell built-in, we'll probably end up computing a
4809       # maximum length that is only half of the actual maximum length, but
4810       # we can't tell.
4811       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4812                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4813               test $i != 17 # 1/2 MB should be enough
4814       do
4815         i=`expr $i + 1`
4816         teststring=$teststring$teststring
4817       done
4818       # Only check the string length outside the loop.
4819       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4820       teststring=
4821       # Add a significant safety factor because C++ compilers can tack on
4822       # massive amounts of additional arguments before passing them to the
4823       # linker.  It appears as though 1/2 is a usable value.
4824       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4825     fi
4826     ;;
4827   esac
4828
4829 fi
4830
4831 if test -n $lt_cv_sys_max_cmd_len ; then
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4833 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4834 else
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4836 $as_echo "none" >&6; }
4837 fi
4838 max_cmd_len=$lt_cv_sys_max_cmd_len
4839
4840
4841
4842
4843
4844
4845 : ${CP="cp -f"}
4846 : ${MV="mv -f"}
4847 : ${RM="rm -f"}
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4850 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4851 # Try some XSI features
4852 xsi_shell=no
4853 ( _lt_dummy="a/b/c"
4854   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4855       = c,a/b,, \
4856     && eval 'test $(( 1 + 1 )) -eq 2 \
4857     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4858   && xsi_shell=yes
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4860 $as_echo "$xsi_shell" >&6; }
4861
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4864 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4865 lt_shell_append=no
4866 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4867     >/dev/null 2>&1 \
4868   && lt_shell_append=yes
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4870 $as_echo "$lt_shell_append" >&6; }
4871
4872
4873 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4874   lt_unset=unset
4875 else
4876   lt_unset=false
4877 fi
4878
4879
4880
4881
4882
4883 # test EBCDIC or ASCII
4884 case `echo X|tr X '\101'` in
4885  A) # ASCII based system
4886     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4887   lt_SP2NL='tr \040 \012'
4888   lt_NL2SP='tr \015\012 \040\040'
4889   ;;
4890  *) # EBCDIC based system
4891   lt_SP2NL='tr \100 \n'
4892   lt_NL2SP='tr \r\n \100\100'
4893   ;;
4894 esac
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4905 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4906 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   lt_cv_ld_reload_flag='-r'
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4912 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4913 reload_flag=$lt_cv_ld_reload_flag
4914 case $reload_flag in
4915 "" | " "*) ;;
4916 *) reload_flag=" $reload_flag" ;;
4917 esac
4918 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4919 case $host_os in
4920   darwin*)
4921     if test "$GCC" = yes; then
4922       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4923     else
4924       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4925     fi
4926     ;;
4927 esac
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 if test -n "$ac_tool_prefix"; then
4938   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4939 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   if test -n "$OBJDUMP"; then
4946   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953     for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960   done
4961 IFS=$as_save_IFS
4962
4963 fi
4964 fi
4965 OBJDUMP=$ac_cv_prog_OBJDUMP
4966 if test -n "$OBJDUMP"; then
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4968 $as_echo "$OBJDUMP" >&6; }
4969 else
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4972 fi
4973
4974
4975 fi
4976 if test -z "$ac_cv_prog_OBJDUMP"; then
4977   ac_ct_OBJDUMP=$OBJDUMP
4978   # Extract the first word of "objdump", so it can be a program name with args.
4979 set dummy objdump; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   if test -n "$ac_ct_OBJDUMP"; then
4986   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000   done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5006 if test -n "$ac_ct_OBJDUMP"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5008 $as_echo "$ac_ct_OBJDUMP" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014   if test "x$ac_ct_OBJDUMP" = x; then
5015     OBJDUMP="false"
5016   else
5017     case $cross_compiling:$ac_tool_warned in
5018 yes:)
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5021 ac_tool_warned=yes ;;
5022 esac
5023     OBJDUMP=$ac_ct_OBJDUMP
5024   fi
5025 else
5026   OBJDUMP="$ac_cv_prog_OBJDUMP"
5027 fi
5028
5029 test -z "$OBJDUMP" && OBJDUMP=objdump
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5037 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5038 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   lt_cv_file_magic_cmd='$MAGIC_CMD'
5042 lt_cv_file_magic_test_file=
5043 lt_cv_deplibs_check_method='unknown'
5044 # Need to set the preceding variable on all platforms that support
5045 # interlibrary dependencies.
5046 # 'none' -- dependencies not supported.
5047 # `unknown' -- same as none, but documents that we really don't know.
5048 # 'pass_all' -- all dependencies passed with no checks.
5049 # 'test_compile' -- check by making test program.
5050 # 'file_magic [[regex]]' -- check by looking for files in library path
5051 # which responds to the $file_magic_cmd with a given extended regex.
5052 # If you have `file' or equivalent on your system and you're not sure
5053 # whether `pass_all' will *always* work, you probably want this one.
5054
5055 case $host_os in
5056 aix[4-9]*)
5057   lt_cv_deplibs_check_method=pass_all
5058   ;;
5059
5060 beos*)
5061   lt_cv_deplibs_check_method=pass_all
5062   ;;
5063
5064 bsdi[45]*)
5065   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5066   lt_cv_file_magic_cmd='/usr/bin/file -L'
5067   lt_cv_file_magic_test_file=/shlib/libc.so
5068   ;;
5069
5070 cygwin*)
5071   # func_win32_libid is a shell function defined in ltmain.sh
5072   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5073   lt_cv_file_magic_cmd='func_win32_libid'
5074   ;;
5075
5076 mingw* | pw32*)
5077   # Base MSYS/MinGW do not provide the 'file' command needed by
5078   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5079   # unless we find 'file', for example because we are cross-compiling.
5080   if ( file / ) >/dev/null 2>&1; then
5081     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5082     lt_cv_file_magic_cmd='func_win32_libid'
5083   else
5084     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5085     lt_cv_file_magic_cmd='$OBJDUMP -f'
5086   fi
5087   ;;
5088
5089 cegcc)
5090   # use the weaker test based on 'objdump'. See mingw*.
5091   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5092   lt_cv_file_magic_cmd='$OBJDUMP -f'
5093   ;;
5094
5095 darwin* | rhapsody*)
5096   lt_cv_deplibs_check_method=pass_all
5097   ;;
5098
5099 freebsd* | dragonfly*)
5100   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5101     case $host_cpu in
5102     i*86 )
5103       # Not sure whether the presence of OpenBSD here was a mistake.
5104       # Let's accept both of them until this is cleared up.
5105       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5106       lt_cv_file_magic_cmd=/usr/bin/file
5107       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5108       ;;
5109     esac
5110   else
5111     lt_cv_deplibs_check_method=pass_all
5112   fi
5113   ;;
5114
5115 gnu*)
5116   lt_cv_deplibs_check_method=pass_all
5117   ;;
5118
5119 hpux10.20* | hpux11*)
5120   lt_cv_file_magic_cmd=/usr/bin/file
5121   case $host_cpu in
5122   ia64*)
5123     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5124     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5125     ;;
5126   hppa*64*)
5127     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5128     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5129     ;;
5130   *)
5131     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5132     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5133     ;;
5134   esac
5135   ;;
5136
5137 interix[3-9]*)
5138   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5139   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5140   ;;
5141
5142 irix5* | irix6* | nonstopux*)
5143   case $LD in
5144   *-32|*"-32 ") libmagic=32-bit;;
5145   *-n32|*"-n32 ") libmagic=N32;;
5146   *-64|*"-64 ") libmagic=64-bit;;
5147   *) libmagic=never-match;;
5148   esac
5149   lt_cv_deplibs_check_method=pass_all
5150   ;;
5151
5152 # This must be Linux ELF.
5153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 netbsd* | netbsdelf*-gnu)
5158   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5160   else
5161     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5162   fi
5163   ;;
5164
5165 newos6*)
5166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5167   lt_cv_file_magic_cmd=/usr/bin/file
5168   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5169   ;;
5170
5171 *nto* | *qnx*)
5172   lt_cv_deplibs_check_method=pass_all
5173   ;;
5174
5175 openbsd*)
5176   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5178   else
5179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5180   fi
5181   ;;
5182
5183 osf3* | osf4* | osf5*)
5184   lt_cv_deplibs_check_method=pass_all
5185   ;;
5186
5187 rdos*)
5188   lt_cv_deplibs_check_method=pass_all
5189   ;;
5190
5191 solaris*)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 sysv4 | sysv4.3*)
5200   case $host_vendor in
5201   motorola)
5202     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]'
5203     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5204     ;;
5205   ncr)
5206     lt_cv_deplibs_check_method=pass_all
5207     ;;
5208   sequent)
5209     lt_cv_file_magic_cmd='/bin/file'
5210     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5211     ;;
5212   sni)
5213     lt_cv_file_magic_cmd='/bin/file'
5214     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5215     lt_cv_file_magic_test_file=/lib/libc.so
5216     ;;
5217   siemens)
5218     lt_cv_deplibs_check_method=pass_all
5219     ;;
5220   pc)
5221     lt_cv_deplibs_check_method=pass_all
5222     ;;
5223   esac
5224   ;;
5225
5226 tpf*)
5227   lt_cv_deplibs_check_method=pass_all
5228   ;;
5229 esac
5230
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5233 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5234 file_magic_cmd=$lt_cv_file_magic_cmd
5235 deplibs_check_method=$lt_cv_deplibs_check_method
5236 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249 if test -n "$ac_tool_prefix"; then
5250   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}ar; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_AR+set}" = set; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$AR"; then
5258   ac_cv_prog_AR="$AR" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267     ac_cv_prog_AR="${ac_tool_prefix}ar"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 AR=$ac_cv_prog_AR
5278 if test -n "$AR"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5280 $as_echo "$AR" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287 fi
5288 if test -z "$ac_cv_prog_AR"; then
5289   ac_ct_AR=$AR
5290   # Extract the first word of "ar", so it can be a program name with args.
5291 set dummy ar; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$ac_ct_AR"; then
5298   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307     ac_cv_prog_ac_ct_AR="ar"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5318 if test -n "$ac_ct_AR"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5320 $as_echo "$ac_ct_AR" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326   if test "x$ac_ct_AR" = x; then
5327     AR="false"
5328   else
5329     case $cross_compiling:$ac_tool_warned in
5330 yes:)
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5334 esac
5335     AR=$ac_ct_AR
5336   fi
5337 else
5338   AR="$ac_cv_prog_AR"
5339 fi
5340
5341 test -z "$AR" && AR=ar
5342 test -z "$AR_FLAGS" && AR_FLAGS=cru
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 if test -n "$ac_tool_prefix"; then
5355   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}strip; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_STRIP+set}" = set; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   if test -n "$STRIP"; then
5363   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_exec_ext in '' $ac_executable_extensions; do
5371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377   done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 STRIP=$ac_cv_prog_STRIP
5383 if test -n "$STRIP"; then
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5385 $as_echo "$STRIP" >&6; }
5386 else
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_STRIP"; then
5394   ac_ct_STRIP=$STRIP
5395   # Extract the first word of "strip", so it can be a program name with args.
5396 set dummy strip; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   if test -n "$ac_ct_STRIP"; then
5403   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410     for ac_exec_ext in '' $ac_executable_extensions; do
5411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412     ac_cv_prog_ac_ct_STRIP="strip"
5413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417   done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5423 if test -n "$ac_ct_STRIP"; then
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5425 $as_echo "$ac_ct_STRIP" >&6; }
5426 else
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431   if test "x$ac_ct_STRIP" = x; then
5432     STRIP=":"
5433   else
5434     case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440     STRIP=$ac_ct_STRIP
5441   fi
5442 else
5443   STRIP="$ac_cv_prog_STRIP"
5444 fi
5445
5446 test -z "$STRIP" && STRIP=:
5447
5448
5449
5450
5451
5452
5453 if test -n "$ac_tool_prefix"; then
5454   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if test -n "$RANLIB"; then
5462   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469     for ac_exec_ext in '' $ac_executable_extensions; do
5470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476   done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 RANLIB=$ac_cv_prog_RANLIB
5482 if test -n "$RANLIB"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5484 $as_echo "$RANLIB" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 fi
5492 if test -z "$ac_cv_prog_RANLIB"; then
5493   ac_ct_RANLIB=$RANLIB
5494   # Extract the first word of "ranlib", so it can be a program name with args.
5495 set dummy ranlib; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$ac_ct_RANLIB"; then
5502   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511     ac_cv_prog_ac_ct_RANLIB="ranlib"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5522 if test -n "$ac_ct_RANLIB"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5524 $as_echo "$ac_ct_RANLIB" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530   if test "x$ac_ct_RANLIB" = x; then
5531     RANLIB=":"
5532   else
5533     case $cross_compiling:$ac_tool_warned in
5534 yes:)
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537 ac_tool_warned=yes ;;
5538 esac
5539     RANLIB=$ac_ct_RANLIB
5540   fi
5541 else
5542   RANLIB="$ac_cv_prog_RANLIB"
5543 fi
5544
5545 test -z "$RANLIB" && RANLIB=:
5546
5547
5548
5549
5550
5551
5552 # Determine commands to create old-style static archives.
5553 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5554 old_postinstall_cmds='chmod 644 $oldlib'
5555 old_postuninstall_cmds=
5556
5557 if test -n "$RANLIB"; then
5558   case $host_os in
5559   openbsd*)
5560     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5561     ;;
5562   *)
5563     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5564     ;;
5565   esac
5566   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5567 fi
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 # If no C compiler was specified, use CC.
5603 LTCC=${LTCC-"$CC"}
5604
5605 # If no C compiler flags were specified, use CFLAGS.
5606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5607
5608 # Allow CC to be a program name with arguments.
5609 compiler=$CC
5610
5611
5612 # Check for command to grab the raw symbol name followed by C symbol from nm.
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5614 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5615 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618
5619 # These are sane defaults that work on at least a few old systems.
5620 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5621
5622 # Character class describing NM global symbol codes.
5623 symcode='[BCDEGRST]'
5624
5625 # Regexp to match symbols that can be accessed directly from C.
5626 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5627
5628 # Define system-specific variables.
5629 case $host_os in
5630 aix*)
5631   symcode='[BCDT]'
5632   ;;
5633 cygwin* | mingw* | pw32* | cegcc*)
5634   symcode='[ABCDGISTW]'
5635   ;;
5636 hpux*)
5637   if test "$host_cpu" = ia64; then
5638     symcode='[ABCDEGRST]'
5639   fi
5640   ;;
5641 irix* | nonstopux*)
5642   symcode='[BCDEGRST]'
5643   ;;
5644 osf*)
5645   symcode='[BCDEGQRST]'
5646   ;;
5647 solaris*)
5648   symcode='[BDRT]'
5649   ;;
5650 sco3.2v5*)
5651   symcode='[DT]'
5652   ;;
5653 sysv4.2uw2*)
5654   symcode='[DT]'
5655   ;;
5656 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5657   symcode='[ABDT]'
5658   ;;
5659 sysv4)
5660   symcode='[DFNSTU]'
5661   ;;
5662 esac
5663
5664 # If we're using GNU nm, then use its standard symbol codes.
5665 case `$NM -V 2>&1` in
5666 *GNU* | *'with BFD'*)
5667   symcode='[ABCDGIRSTW]' ;;
5668 esac
5669
5670 # Transform an extracted symbol line into a proper C declaration.
5671 # Some systems (esp. on ia64) link data and code symbols differently,
5672 # so use this general approach.
5673 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5674
5675 # Transform an extracted symbol line into symbol name and symbol address
5676 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5677 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'"
5678
5679 # Handle CRLF in mingw tool chain
5680 opt_cr=
5681 case $build_os in
5682 mingw*)
5683   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5684   ;;
5685 esac
5686
5687 # Try without a prefix underscore, then with it.
5688 for ac_symprfx in "" "_"; do
5689
5690   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5691   symxfrm="\\1 $ac_symprfx\\2 \\2"
5692
5693   # Write the raw and C identifiers.
5694   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5695     # Fake it for dumpbin and say T for any non-static function
5696     # and D for any global variable.
5697     # Also find C++ and __fastcall symbols from MSVC++,
5698     # which start with @ or ?.
5699     lt_cv_sys_global_symbol_pipe="$AWK '"\
5700 "     {last_section=section; section=\$ 3};"\
5701 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5702 "     \$ 0!~/External *\|/{next};"\
5703 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5704 "     {if(hide[section]) next};"\
5705 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5706 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5707 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5708 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5709 "     ' prfx=^$ac_symprfx"
5710   else
5711     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5712   fi
5713
5714   # Check to see that the pipe works correctly.
5715   pipe_works=no
5716
5717   rm -f conftest*
5718   cat > conftest.$ac_ext <<_LT_EOF
5719 #ifdef __cplusplus
5720 extern "C" {
5721 #endif
5722 char nm_test_var;
5723 void nm_test_func(void);
5724 void nm_test_func(void){}
5725 #ifdef __cplusplus
5726 }
5727 #endif
5728 int main(){nm_test_var='a';nm_test_func();return(0);}
5729 _LT_EOF
5730
5731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5732   (eval $ac_compile) 2>&5
5733   ac_status=$?
5734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735   test $ac_status = 0; }; then
5736     # Now try to grab the symbols.
5737     nlist=conftest.nm
5738     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5739   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5740   ac_status=$?
5741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742   test $ac_status = 0; } && test -s "$nlist"; then
5743       # Try sorting and uniquifying the output.
5744       if sort "$nlist" | uniq > "$nlist"T; then
5745         mv -f "$nlist"T "$nlist"
5746       else
5747         rm -f "$nlist"T
5748       fi
5749
5750       # Make sure that we snagged all the symbols we need.
5751       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5752         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5753           cat <<_LT_EOF > conftest.$ac_ext
5754 #ifdef __cplusplus
5755 extern "C" {
5756 #endif
5757
5758 _LT_EOF
5759           # Now generate the symbol file.
5760           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5761
5762           cat <<_LT_EOF >> conftest.$ac_ext
5763
5764 /* The mapping between symbol names and symbols.  */
5765 const struct {
5766   const char *name;
5767   void       *address;
5768 }
5769 lt__PROGRAM__LTX_preloaded_symbols[] =
5770 {
5771   { "@PROGRAM@", (void *) 0 },
5772 _LT_EOF
5773           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5774           cat <<\_LT_EOF >> conftest.$ac_ext
5775   {0, (void *) 0}
5776 };
5777
5778 /* This works around a problem in FreeBSD linker */
5779 #ifdef FREEBSD_WORKAROUND
5780 static const void *lt_preloaded_setup() {
5781   return lt__PROGRAM__LTX_preloaded_symbols;
5782 }
5783 #endif
5784
5785 #ifdef __cplusplus
5786 }
5787 #endif
5788 _LT_EOF
5789           # Now try linking the two files.
5790           mv conftest.$ac_objext conftstm.$ac_objext
5791           lt_save_LIBS="$LIBS"
5792           lt_save_CFLAGS="$CFLAGS"
5793           LIBS="conftstm.$ac_objext"
5794           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5795           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5796   (eval $ac_link) 2>&5
5797   ac_status=$?
5798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5800             pipe_works=yes
5801           fi
5802           LIBS="$lt_save_LIBS"
5803           CFLAGS="$lt_save_CFLAGS"
5804         else
5805           echo "cannot find nm_test_func in $nlist" >&5
5806         fi
5807       else
5808         echo "cannot find nm_test_var in $nlist" >&5
5809       fi
5810     else
5811       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5812     fi
5813   else
5814     echo "$progname: failed program was:" >&5
5815     cat conftest.$ac_ext >&5
5816   fi
5817   rm -rf conftest* conftst*
5818
5819   # Do not use the global_symbol_pipe unless it works.
5820   if test "$pipe_works" = yes; then
5821     break
5822   else
5823     lt_cv_sys_global_symbol_pipe=
5824   fi
5825 done
5826
5827 fi
5828
5829 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5830   lt_cv_sys_global_symbol_to_cdecl=
5831 fi
5832 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5834 $as_echo "failed" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5837 $as_echo "ok" >&6; }
5838 fi
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 # Check whether --enable-libtool-lock was given.
5863 if test "${enable_libtool_lock+set}" = set; then :
5864   enableval=$enable_libtool_lock;
5865 fi
5866
5867 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5868
5869 # Some flags need to be propagated to the compiler or linker for good
5870 # libtool support.
5871 case $host in
5872 ia64-*-hpux*)
5873   # Find out which ABI we are using.
5874   echo 'int i;' > conftest.$ac_ext
5875   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5876   (eval $ac_compile) 2>&5
5877   ac_status=$?
5878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879   test $ac_status = 0; }; then
5880     case `/usr/bin/file conftest.$ac_objext` in
5881       *ELF-32*)
5882         HPUX_IA64_MODE="32"
5883         ;;
5884       *ELF-64*)
5885         HPUX_IA64_MODE="64"
5886         ;;
5887     esac
5888   fi
5889   rm -rf conftest*
5890   ;;
5891 *-*-irix6*)
5892   # Find out which ABI we are using.
5893   echo '#line 5893 "configure"' > conftest.$ac_ext
5894   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5895   (eval $ac_compile) 2>&5
5896   ac_status=$?
5897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898   test $ac_status = 0; }; then
5899     if test "$lt_cv_prog_gnu_ld" = yes; then
5900       case `/usr/bin/file conftest.$ac_objext` in
5901         *32-bit*)
5902           LD="${LD-ld} -melf32bsmip"
5903           ;;
5904         *N32*)
5905           LD="${LD-ld} -melf32bmipn32"
5906           ;;
5907         *64-bit*)
5908           LD="${LD-ld} -melf64bmip"
5909         ;;
5910       esac
5911     else
5912       case `/usr/bin/file conftest.$ac_objext` in
5913         *32-bit*)
5914           LD="${LD-ld} -32"
5915           ;;
5916         *N32*)
5917           LD="${LD-ld} -n32"
5918           ;;
5919         *64-bit*)
5920           LD="${LD-ld} -64"
5921           ;;
5922       esac
5923     fi
5924   fi
5925   rm -rf conftest*
5926   ;;
5927
5928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5929 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5930   # Find out which ABI we are using.
5931   echo 'int i;' > conftest.$ac_ext
5932   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5933   (eval $ac_compile) 2>&5
5934   ac_status=$?
5935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5936   test $ac_status = 0; }; then
5937     case `/usr/bin/file conftest.o` in
5938       *32-bit*)
5939         case $host in
5940           x86_64-*kfreebsd*-gnu)
5941             LD="${LD-ld} -m elf_i386_fbsd"
5942             ;;
5943           x86_64-*linux*)
5944             LD="${LD-ld} -m elf_i386"
5945             ;;
5946           ppc64-*linux*|powerpc64-*linux*)
5947             LD="${LD-ld} -m elf32ppclinux"
5948             ;;
5949           s390x-*linux*)
5950             LD="${LD-ld} -m elf_s390"
5951             ;;
5952           sparc64-*linux*)
5953             LD="${LD-ld} -m elf32_sparc"
5954             ;;
5955         esac
5956         ;;
5957       *64-bit*)
5958         case $host in
5959           x86_64-*kfreebsd*-gnu)
5960             LD="${LD-ld} -m elf_x86_64_fbsd"
5961             ;;
5962           x86_64-*linux*)
5963             LD="${LD-ld} -m elf_x86_64"
5964             ;;
5965           ppc*-*linux*|powerpc*-*linux*)
5966             LD="${LD-ld} -m elf64ppc"
5967             ;;
5968           s390*-*linux*|s390*-*tpf*)
5969             LD="${LD-ld} -m elf64_s390"
5970             ;;
5971           sparc*-*linux*)
5972             LD="${LD-ld} -m elf64_sparc"
5973             ;;
5974         esac
5975         ;;
5976     esac
5977   fi
5978   rm -rf conftest*
5979   ;;
5980
5981 *-*-sco3.2v5*)
5982   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5983   SAVE_CFLAGS="$CFLAGS"
5984   CFLAGS="$CFLAGS -belf"
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5986 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5987 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h.  */
5998
5999 int
6000 main ()
6001 {
6002
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_link "$LINENO"; then :
6008   lt_cv_cc_needs_belf=yes
6009 else
6010   lt_cv_cc_needs_belf=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext \
6013     conftest$ac_exeext conftest.$ac_ext
6014      ac_ext=c
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6022 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6023   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6024     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6025     CFLAGS="$SAVE_CFLAGS"
6026   fi
6027   ;;
6028 sparc*-*solaris*)
6029   # Find out which ABI we are using.
6030   echo 'int i;' > conftest.$ac_ext
6031   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6032   (eval $ac_compile) 2>&5
6033   ac_status=$?
6034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035   test $ac_status = 0; }; then
6036     case `/usr/bin/file conftest.o` in
6037     *64-bit*)
6038       case $lt_cv_prog_gnu_ld in
6039       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6040       *)
6041         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6042           LD="${LD-ld} -64"
6043         fi
6044         ;;
6045       esac
6046       ;;
6047     esac
6048   fi
6049   rm -rf conftest*
6050   ;;
6051 esac
6052
6053 need_locks="$enable_libtool_lock"
6054
6055
6056   case $host_os in
6057     rhapsody* | darwin*)
6058     if test -n "$ac_tool_prefix"; then
6059   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6060 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6064   $as_echo_n "(cached) " >&6
6065 else
6066   if test -n "$DSYMUTIL"; then
6067   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_exec_ext in '' $ac_executable_extensions; do
6075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078     break 2
6079   fi
6080 done
6081   done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6087 if test -n "$DSYMUTIL"; then
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6089 $as_echo "$DSYMUTIL" >&6; }
6090 else
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 fi
6097 if test -z "$ac_cv_prog_DSYMUTIL"; then
6098   ac_ct_DSYMUTIL=$DSYMUTIL
6099   # Extract the first word of "dsymutil", so it can be a program name with args.
6100 set dummy dsymutil; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106   if test -n "$ac_ct_DSYMUTIL"; then
6107   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_exec_ext in '' $ac_executable_extensions; do
6115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121   done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6127 if test -n "$ac_ct_DSYMUTIL"; then
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6129 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6130 else
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135   if test "x$ac_ct_DSYMUTIL" = x; then
6136     DSYMUTIL=":"
6137   else
6138     case $cross_compiling:$ac_tool_warned in
6139 yes:)
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142 ac_tool_warned=yes ;;
6143 esac
6144     DSYMUTIL=$ac_ct_DSYMUTIL
6145   fi
6146 else
6147   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6148 fi
6149
6150     if test -n "$ac_tool_prefix"; then
6151   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   if test -n "$NMEDIT"; then
6159   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 NMEDIT=$ac_cv_prog_NMEDIT
6179 if test -n "$NMEDIT"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6181 $as_echo "$NMEDIT" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_NMEDIT"; then
6190   ac_ct_NMEDIT=$NMEDIT
6191   # Extract the first word of "nmedit", so it can be a program name with args.
6192 set dummy nmedit; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   if test -n "$ac_ct_NMEDIT"; then
6199   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6219 if test -n "$ac_ct_NMEDIT"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6221 $as_echo "$ac_ct_NMEDIT" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227   if test "x$ac_ct_NMEDIT" = x; then
6228     NMEDIT=":"
6229   else
6230     case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     NMEDIT=$ac_ct_NMEDIT
6237   fi
6238 else
6239   NMEDIT="$ac_cv_prog_NMEDIT"
6240 fi
6241
6242     if test -n "$ac_tool_prefix"; then
6243   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if test "${ac_cv_prog_LIPO+set}" = set; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   if test -n "$LIPO"; then
6251   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258     for ac_exec_ext in '' $ac_executable_extensions; do
6259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265   done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 LIPO=$ac_cv_prog_LIPO
6271 if test -n "$LIPO"; then
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6273 $as_echo "$LIPO" >&6; }
6274 else
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_LIPO"; then
6282   ac_ct_LIPO=$LIPO
6283   # Extract the first word of "lipo", so it can be a program name with args.
6284 set dummy lipo; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -n "$ac_ct_LIPO"; then
6291   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300     ac_cv_prog_ac_ct_LIPO="lipo"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6311 if test -n "$ac_ct_LIPO"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6313 $as_echo "$ac_ct_LIPO" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319   if test "x$ac_ct_LIPO" = x; then
6320     LIPO=":"
6321   else
6322     case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6327 esac
6328     LIPO=$ac_ct_LIPO
6329   fi
6330 else
6331   LIPO="$ac_cv_prog_LIPO"
6332 fi
6333
6334     if test -n "$ac_tool_prefix"; then
6335   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6336 set dummy ${ac_tool_prefix}otool; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$OTOOL"; then
6343   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 OTOOL=$ac_cv_prog_OTOOL
6363 if test -n "$OTOOL"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6365 $as_echo "$OTOOL" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372 fi
6373 if test -z "$ac_cv_prog_OTOOL"; then
6374   ac_ct_OTOOL=$OTOOL
6375   # Extract the first word of "otool", so it can be a program name with args.
6376 set dummy otool; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   if test -n "$ac_ct_OTOOL"; then
6383   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388   IFS=$as_save_IFS
6389   test -z "$as_dir" && as_dir=.
6390     for ac_exec_ext in '' $ac_executable_extensions; do
6391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392     ac_cv_prog_ac_ct_OTOOL="otool"
6393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394     break 2
6395   fi
6396 done
6397   done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6403 if test -n "$ac_ct_OTOOL"; then
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6405 $as_echo "$ac_ct_OTOOL" >&6; }
6406 else
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411   if test "x$ac_ct_OTOOL" = x; then
6412     OTOOL=":"
6413   else
6414     case $cross_compiling:$ac_tool_warned in
6415 yes:)
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418 ac_tool_warned=yes ;;
6419 esac
6420     OTOOL=$ac_ct_OTOOL
6421   fi
6422 else
6423   OTOOL="$ac_cv_prog_OTOOL"
6424 fi
6425
6426     if test -n "$ac_tool_prefix"; then
6427   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$OTOOL64"; then
6435   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 OTOOL64=$ac_cv_prog_OTOOL64
6455 if test -n "$OTOOL64"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6457 $as_echo "$OTOOL64" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464 fi
6465 if test -z "$ac_cv_prog_OTOOL64"; then
6466   ac_ct_OTOOL64=$OTOOL64
6467   # Extract the first word of "otool64", so it can be a program name with args.
6468 set dummy otool64; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$ac_ct_OTOOL64"; then
6475   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484     ac_cv_prog_ac_ct_OTOOL64="otool64"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6495 if test -n "$ac_ct_OTOOL64"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6497 $as_echo "$ac_ct_OTOOL64" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503   if test "x$ac_ct_OTOOL64" = x; then
6504     OTOOL64=":"
6505   else
6506     case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512     OTOOL64=$ac_ct_OTOOL64
6513   fi
6514 else
6515   OTOOL64="$ac_cv_prog_OTOOL64"
6516 fi
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6545 $as_echo_n "checking for -single_module linker flag... " >&6; }
6546 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   lt_cv_apple_cc_single_mod=no
6550       if test -z "${LT_MULTI_MODULE}"; then
6551         # By default we will add the -single_module flag. You can override
6552         # by either setting the environment variable LT_MULTI_MODULE
6553         # non-empty at configure time, or by adding -multi_module to the
6554         # link flags.
6555         rm -rf libconftest.dylib*
6556         echo "int foo(void){return 1;}" > conftest.c
6557         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6558 -dynamiclib -Wl,-single_module conftest.c" >&5
6559         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6560           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6561         _lt_result=$?
6562         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6563           lt_cv_apple_cc_single_mod=yes
6564         else
6565           cat conftest.err >&5
6566         fi
6567         rm -rf libconftest.dylib*
6568         rm -f conftest.*
6569       fi
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6572 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6574 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6575 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   lt_cv_ld_exported_symbols_list=no
6579       save_LDFLAGS=$LDFLAGS
6580       echo "_main" > conftest.sym
6581       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6582       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h.  */
6584
6585 int
6586 main ()
6587 {
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_link "$LINENO"; then :
6594   lt_cv_ld_exported_symbols_list=yes
6595 else
6596   lt_cv_ld_exported_symbols_list=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext \
6599     conftest$ac_exeext conftest.$ac_ext
6600         LDFLAGS="$save_LDFLAGS"
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6604 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6605     case $host_os in
6606     rhapsody* | darwin1.[012])
6607       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6608     darwin1.*)
6609       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6610     darwin*) # darwin 5.x on
6611       # if running on 10.5 or later, the deployment target defaults
6612       # to the OS version, if on x86, and 10.4, the deployment
6613       # target defaults to 10.4. Don't you love it?
6614       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6615         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6616           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6617         10.[012]*)
6618           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6619         10.*)
6620           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6621       esac
6622     ;;
6623   esac
6624     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6625       _lt_dar_single_mod='$single_module'
6626     fi
6627     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6628       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6629     else
6630       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6631     fi
6632     if test "$DSYMUTIL" != ":"; then
6633       _lt_dsymutil='~$DSYMUTIL $lib || :'
6634     else
6635       _lt_dsymutil=
6636     fi
6637     ;;
6638   esac
6639
6640 ac_ext=c
6641 ac_cpp='$CPP $CPPFLAGS'
6642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6647 # On Suns, sometimes $CPP names a directory.
6648 if test -n "$CPP" && test -d "$CPP"; then
6649   CPP=
6650 fi
6651 if test -z "$CPP"; then
6652   if test "${ac_cv_prog_CPP+set}" = set; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655       # Double quotes because CPP needs to be expanded
6656     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6657     do
6658       ac_preproc_ok=false
6659 for ac_c_preproc_warn_flag in '' yes
6660 do
6661   # Use a header file that comes with gcc, so configuring glibc
6662   # with a fresh cross-compiler works.
6663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6664   # <limits.h> exists even on freestanding compilers.
6665   # On the NeXT, cc -E runs the code through the compiler's parser,
6666   # not just through cpp. "Syntax error" is here to catch this case.
6667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h.  */
6669 #ifdef __STDC__
6670 # include <limits.h>
6671 #else
6672 # include <assert.h>
6673 #endif
6674                      Syntax error
6675 _ACEOF
6676 if ac_fn_c_try_cpp "$LINENO"; then :
6677
6678 else
6679   # Broken: fails on valid input.
6680 continue
6681 fi
6682 rm -f conftest.err conftest.i conftest.$ac_ext
6683
6684   # OK, works on sane cases.  Now check whether nonexistent headers
6685   # can be detected and how.
6686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h.  */
6688 #include <ac_nonexistent.h>
6689 _ACEOF
6690 if ac_fn_c_try_cpp "$LINENO"; then :
6691   # Broken: success on invalid input.
6692 continue
6693 else
6694   # Passes both tests.
6695 ac_preproc_ok=:
6696 break
6697 fi
6698 rm -f conftest.err conftest.i conftest.$ac_ext
6699
6700 done
6701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6702 rm -f conftest.i conftest.err conftest.$ac_ext
6703 if $ac_preproc_ok; then :
6704   break
6705 fi
6706
6707     done
6708     ac_cv_prog_CPP=$CPP
6709
6710 fi
6711   CPP=$ac_cv_prog_CPP
6712 else
6713   ac_cv_prog_CPP=$CPP
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6716 $as_echo "$CPP" >&6; }
6717 ac_preproc_ok=false
6718 for ac_c_preproc_warn_flag in '' yes
6719 do
6720   # Use a header file that comes with gcc, so configuring glibc
6721   # with a fresh cross-compiler works.
6722   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6723   # <limits.h> exists even on freestanding compilers.
6724   # On the NeXT, cc -E runs the code through the compiler's parser,
6725   # not just through cpp. "Syntax error" is here to catch this case.
6726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728 #ifdef __STDC__
6729 # include <limits.h>
6730 #else
6731 # include <assert.h>
6732 #endif
6733                      Syntax error
6734 _ACEOF
6735 if ac_fn_c_try_cpp "$LINENO"; then :
6736
6737 else
6738   # Broken: fails on valid input.
6739 continue
6740 fi
6741 rm -f conftest.err conftest.i conftest.$ac_ext
6742
6743   # OK, works on sane cases.  Now check whether nonexistent headers
6744   # can be detected and how.
6745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747 #include <ac_nonexistent.h>
6748 _ACEOF
6749 if ac_fn_c_try_cpp "$LINENO"; then :
6750   # Broken: success on invalid input.
6751 continue
6752 else
6753   # Passes both tests.
6754 ac_preproc_ok=:
6755 break
6756 fi
6757 rm -f conftest.err conftest.i conftest.$ac_ext
6758
6759 done
6760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6761 rm -f conftest.i conftest.err conftest.$ac_ext
6762 if $ac_preproc_ok; then :
6763
6764 else
6765   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6767 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6768 See \`config.log' for more details" "$LINENO" 5 ; }
6769 fi
6770
6771 ac_ext=c
6772 ac_cpp='$CPP $CPPFLAGS'
6773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6779 $as_echo_n "checking for ANSI C header files... " >&6; }
6780 if test "${ac_cv_header_stdc+set}" = set; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h.  */
6785 #include <stdlib.h>
6786 #include <stdarg.h>
6787 #include <string.h>
6788 #include <float.h>
6789
6790 int
6791 main ()
6792 {
6793
6794   ;
6795   return 0;
6796 }
6797 _ACEOF
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799   ac_cv_header_stdc=yes
6800 else
6801   ac_cv_header_stdc=no
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804
6805 if test $ac_cv_header_stdc = yes; then
6806   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 #include <string.h>
6810
6811 _ACEOF
6812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6813   $EGREP "memchr" >/dev/null 2>&1; then :
6814
6815 else
6816   ac_cv_header_stdc=no
6817 fi
6818 rm -f conftest*
6819
6820 fi
6821
6822 if test $ac_cv_header_stdc = yes; then
6823   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h.  */
6826 #include <stdlib.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830   $EGREP "free" >/dev/null 2>&1; then :
6831
6832 else
6833   ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest*
6836
6837 fi
6838
6839 if test $ac_cv_header_stdc = yes; then
6840   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6841   if test "$cross_compiling" = yes; then :
6842   :
6843 else
6844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h.  */
6846 #include <ctype.h>
6847 #include <stdlib.h>
6848 #if ((' ' & 0x0FF) == 0x020)
6849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6851 #else
6852 # define ISLOWER(c) \
6853                    (('a' <= (c) && (c) <= 'i') \
6854                      || ('j' <= (c) && (c) <= 'r') \
6855                      || ('s' <= (c) && (c) <= 'z'))
6856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6857 #endif
6858
6859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6860 int
6861 main ()
6862 {
6863   int i;
6864   for (i = 0; i < 256; i++)
6865     if (XOR (islower (i), ISLOWER (i))
6866         || toupper (i) != TOUPPER (i))
6867       return 2;
6868   return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_run "$LINENO"; then :
6872
6873 else
6874   ac_cv_header_stdc=no
6875 fi
6876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6877   conftest.$ac_objext conftest.beam conftest.$ac_ext
6878 fi
6879
6880 fi
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6883 $as_echo "$ac_cv_header_stdc" >&6; }
6884 if test $ac_cv_header_stdc = yes; then
6885
6886 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6887
6888 fi
6889
6890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6891 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6892                   inttypes.h stdint.h unistd.h
6893 do :
6894   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6895 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6896 "
6897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6898   cat >>confdefs.h <<_ACEOF
6899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6900 _ACEOF
6901
6902 fi
6903
6904 done
6905
6906
6907 for ac_header in dlfcn.h
6908 do :
6909   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6910 "
6911 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6912   cat >>confdefs.h <<_ACEOF
6913 #define HAVE_DLFCN_H 1
6914 _ACEOF
6915
6916 fi
6917
6918 done
6919
6920
6921
6922 # Set options
6923 enable_win32_dll=yes
6924
6925 case $host in
6926 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6927   if test -n "$ac_tool_prefix"; then
6928   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}as; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_prog_AS+set}" = set; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   if test -n "$AS"; then
6936   ac_cv_prog_AS="$AS" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943     for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_prog_AS="${ac_tool_prefix}as"
6946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950   done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 AS=$ac_cv_prog_AS
6956 if test -n "$AS"; then
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6958 $as_echo "$AS" >&6; }
6959 else
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964
6965 fi
6966 if test -z "$ac_cv_prog_AS"; then
6967   ac_ct_AS=$AS
6968   # Extract the first word of "as", so it can be a program name with args.
6969 set dummy as; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   if test -n "$ac_ct_AS"; then
6976   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983     for ac_exec_ext in '' $ac_executable_extensions; do
6984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985     ac_cv_prog_ac_ct_AS="as"
6986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990   done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6996 if test -n "$ac_ct_AS"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6998 $as_echo "$ac_ct_AS" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004   if test "x$ac_ct_AS" = x; then
7005     AS="false"
7006   else
7007     case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013     AS=$ac_ct_AS
7014   fi
7015 else
7016   AS="$ac_cv_prog_AS"
7017 fi
7018
7019   if test -n "$ac_tool_prefix"; then
7020   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   if test -n "$DLLTOOL"; then
7028   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035     for ac_exec_ext in '' $ac_executable_extensions; do
7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042   done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 DLLTOOL=$ac_cv_prog_DLLTOOL
7048 if test -n "$DLLTOOL"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7050 $as_echo "$DLLTOOL" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_DLLTOOL"; then
7059   ac_ct_DLLTOOL=$DLLTOOL
7060   # Extract the first word of "dlltool", so it can be a program name with args.
7061 set dummy dlltool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   if test -n "$ac_ct_DLLTOOL"; then
7068   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075     for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082   done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7088 if test -n "$ac_ct_DLLTOOL"; then
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7090 $as_echo "$ac_ct_DLLTOOL" >&6; }
7091 else
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096   if test "x$ac_ct_DLLTOOL" = x; then
7097     DLLTOOL="false"
7098   else
7099     case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     DLLTOOL=$ac_ct_DLLTOOL
7106   fi
7107 else
7108   DLLTOOL="$ac_cv_prog_DLLTOOL"
7109 fi
7110
7111   if test -n "$ac_tool_prefix"; then
7112   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$OBJDUMP"; then
7120   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 OBJDUMP=$ac_cv_prog_OBJDUMP
7140 if test -n "$OBJDUMP"; then
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7142 $as_echo "$OBJDUMP" >&6; }
7143 else
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149 fi
7150 if test -z "$ac_cv_prog_OBJDUMP"; then
7151   ac_ct_OBJDUMP=$OBJDUMP
7152   # Extract the first word of "objdump", so it can be a program name with args.
7153 set dummy objdump; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$ac_ct_OBJDUMP"; then
7160   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7180 if test -n "$ac_ct_OBJDUMP"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7182 $as_echo "$ac_ct_OBJDUMP" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188   if test "x$ac_ct_OBJDUMP" = x; then
7189     OBJDUMP="false"
7190   else
7191     case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197     OBJDUMP=$ac_ct_OBJDUMP
7198   fi
7199 else
7200   OBJDUMP="$ac_cv_prog_OBJDUMP"
7201 fi
7202
7203   ;;
7204 esac
7205
7206 test -z "$AS" && AS=as
7207
7208
7209
7210
7211
7212 test -z "$DLLTOOL" && DLLTOOL=dlltool
7213
7214
7215
7216
7217
7218 test -z "$OBJDUMP" && OBJDUMP=objdump
7219
7220
7221
7222
7223
7224
7225
7226         enable_dlopen=no
7227
7228
7229
7230             # Check whether --enable-shared was given.
7231 if test "${enable_shared+set}" = set; then :
7232   enableval=$enable_shared; p=${PACKAGE-default}
7233     case $enableval in
7234     yes) enable_shared=yes ;;
7235     no) enable_shared=no ;;
7236     *)
7237       enable_shared=no
7238       # Look at the argument we got.  We use all the common list separators.
7239       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7240       for pkg in $enableval; do
7241         IFS="$lt_save_ifs"
7242         if test "X$pkg" = "X$p"; then
7243           enable_shared=yes
7244         fi
7245       done
7246       IFS="$lt_save_ifs"
7247       ;;
7248     esac
7249 else
7250   enable_shared=yes
7251 fi
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261   # Check whether --enable-static was given.
7262 if test "${enable_static+set}" = set; then :
7263   enableval=$enable_static; p=${PACKAGE-default}
7264     case $enableval in
7265     yes) enable_static=yes ;;
7266     no) enable_static=no ;;
7267     *)
7268      enable_static=no
7269       # Look at the argument we got.  We use all the common list separators.
7270       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271       for pkg in $enableval; do
7272         IFS="$lt_save_ifs"
7273         if test "X$pkg" = "X$p"; then
7274           enable_static=yes
7275         fi
7276       done
7277       IFS="$lt_save_ifs"
7278       ;;
7279     esac
7280 else
7281   enable_static=yes
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 # Check whether --with-pic was given.
7294 if test "${with_pic+set}" = set; then :
7295   withval=$with_pic; pic_mode="$withval"
7296 else
7297   pic_mode=default
7298 fi
7299
7300
7301 test -z "$pic_mode" && pic_mode=default
7302
7303
7304
7305
7306
7307
7308
7309   # Check whether --enable-fast-install was given.
7310 if test "${enable_fast_install+set}" = set; then :
7311   enableval=$enable_fast_install; p=${PACKAGE-default}
7312     case $enableval in
7313     yes) enable_fast_install=yes ;;
7314     no) enable_fast_install=no ;;
7315     *)
7316       enable_fast_install=no
7317       # Look at the argument we got.  We use all the common list separators.
7318       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7319       for pkg in $enableval; do
7320         IFS="$lt_save_ifs"
7321         if test "X$pkg" = "X$p"; then
7322           enable_fast_install=yes
7323         fi
7324       done
7325       IFS="$lt_save_ifs"
7326       ;;
7327     esac
7328 else
7329   enable_fast_install=yes
7330 fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 # This can be used to rebuild libtool when needed
7343 LIBTOOL_DEPS="$ltmain"
7344
7345 # Always use our own libtool.
7346 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 test -z "$LN_S" && LN_S="ln -s"
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387 if test -n "${ZSH_VERSION+set}" ; then
7388    setopt NO_GLOB_SUBST
7389 fi
7390
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7392 $as_echo_n "checking for objdir... " >&6; }
7393 if test "${lt_cv_objdir+set}" = set; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   rm -f .libs 2>/dev/null
7397 mkdir .libs 2>/dev/null
7398 if test -d .libs; then
7399   lt_cv_objdir=.libs
7400 else
7401   # MS-DOS does not allow filenames that begin with a dot.
7402   lt_cv_objdir=_libs
7403 fi
7404 rmdir .libs 2>/dev/null
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7407 $as_echo "$lt_cv_objdir" >&6; }
7408 objdir=$lt_cv_objdir
7409
7410
7411
7412
7413
7414 cat >>confdefs.h <<_ACEOF
7415 #define LT_OBJDIR "$lt_cv_objdir/"
7416 _ACEOF
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 case $host_os in
7435 aix3*)
7436   # AIX sometimes has problems with the GCC collect2 program.  For some
7437   # reason, if we set the COLLECT_NAMES environment variable, the problems
7438   # vanish in a puff of smoke.
7439   if test "X${COLLECT_NAMES+set}" != Xset; then
7440     COLLECT_NAMES=
7441     export COLLECT_NAMES
7442   fi
7443   ;;
7444 esac
7445
7446 # Sed substitution that helps us do robust quoting.  It backslashifies
7447 # metacharacters that are still active within double-quoted strings.
7448 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7449
7450 # Same as above, but do not quote variable references.
7451 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7452
7453 # Sed substitution to delay expansion of an escaped shell variable in a
7454 # double_quote_subst'ed string.
7455 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7456
7457 # Sed substitution to delay expansion of an escaped single quote.
7458 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7459
7460 # Sed substitution to avoid accidental globbing in evaled expressions
7461 no_glob_subst='s/\*/\\\*/g'
7462
7463 # Global variables:
7464 ofile=libtool
7465 can_build_shared=yes
7466
7467 # All known linkers require a `.a' archive for static linking (except MSVC,
7468 # which needs '.lib').
7469 libext=a
7470
7471 with_gnu_ld="$lt_cv_prog_gnu_ld"
7472
7473 old_CC="$CC"
7474 old_CFLAGS="$CFLAGS"
7475
7476 # Set sane defaults for various variables
7477 test -z "$CC" && CC=cc
7478 test -z "$LTCC" && LTCC=$CC
7479 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7480 test -z "$LD" && LD=ld
7481 test -z "$ac_objext" && ac_objext=o
7482
7483 for cc_temp in $compiler""; do
7484   case $cc_temp in
7485     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7486     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7487     \-*) ;;
7488     *) break;;
7489   esac
7490 done
7491 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7492
7493
7494 # Only perform the check for file, if the check method requires it
7495 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7496 case $deplibs_check_method in
7497 file_magic*)
7498   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7500 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7502   $as_echo_n "(cached) " >&6
7503 else
7504   case $MAGIC_CMD in
7505 [\\/*] |  ?:[\\/]*)
7506   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7507   ;;
7508 *)
7509   lt_save_MAGIC_CMD="$MAGIC_CMD"
7510   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7511   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7512   for ac_dir in $ac_dummy; do
7513     IFS="$lt_save_ifs"
7514     test -z "$ac_dir" && ac_dir=.
7515     if test -f $ac_dir/${ac_tool_prefix}file; then
7516       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7517       if test -n "$file_magic_test_file"; then
7518         case $deplibs_check_method in
7519         "file_magic "*)
7520           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7521           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7523             $EGREP "$file_magic_regex" > /dev/null; then
7524             :
7525           else
7526             cat <<_LT_EOF 1>&2
7527
7528 *** Warning: the command libtool uses to detect shared libraries,
7529 *** $file_magic_cmd, produces output that libtool cannot recognize.
7530 *** The result is that libtool may fail to recognize shared libraries
7531 *** as such.  This will affect the creation of libtool libraries that
7532 *** depend on shared libraries, but programs linked with such libtool
7533 *** libraries will work regardless of this problem.  Nevertheless, you
7534 *** may want to report the problem to your system manager and/or to
7535 *** bug-libtool@gnu.org
7536
7537 _LT_EOF
7538           fi ;;
7539         esac
7540       fi
7541       break
7542     fi
7543   done
7544   IFS="$lt_save_ifs"
7545   MAGIC_CMD="$lt_save_MAGIC_CMD"
7546   ;;
7547 esac
7548 fi
7549
7550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551 if test -n "$MAGIC_CMD"; then
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7553 $as_echo "$MAGIC_CMD" >&6; }
7554 else
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558
7559
7560
7561
7562
7563 if test -z "$lt_cv_path_MAGIC_CMD"; then
7564   if test -n "$ac_tool_prefix"; then
7565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7566 $as_echo_n "checking for file... " >&6; }
7567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   case $MAGIC_CMD in
7571 [\\/*] |  ?:[\\/]*)
7572   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7573   ;;
7574 *)
7575   lt_save_MAGIC_CMD="$MAGIC_CMD"
7576   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7577   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7578   for ac_dir in $ac_dummy; do
7579     IFS="$lt_save_ifs"
7580     test -z "$ac_dir" && ac_dir=.
7581     if test -f $ac_dir/file; then
7582       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7583       if test -n "$file_magic_test_file"; then
7584         case $deplibs_check_method in
7585         "file_magic "*)
7586           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7587           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7588           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7589             $EGREP "$file_magic_regex" > /dev/null; then
7590             :
7591           else
7592             cat <<_LT_EOF 1>&2
7593
7594 *** Warning: the command libtool uses to detect shared libraries,
7595 *** $file_magic_cmd, produces output that libtool cannot recognize.
7596 *** The result is that libtool may fail to recognize shared libraries
7597 *** as such.  This will affect the creation of libtool libraries that
7598 *** depend on shared libraries, but programs linked with such libtool
7599 *** libraries will work regardless of this problem.  Nevertheless, you
7600 *** may want to report the problem to your system manager and/or to
7601 *** bug-libtool@gnu.org
7602
7603 _LT_EOF
7604           fi ;;
7605         esac
7606       fi
7607       break
7608     fi
7609   done
7610   IFS="$lt_save_ifs"
7611   MAGIC_CMD="$lt_save_MAGIC_CMD"
7612   ;;
7613 esac
7614 fi
7615
7616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617 if test -n "$MAGIC_CMD"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7619 $as_echo "$MAGIC_CMD" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625
7626   else
7627     MAGIC_CMD=:
7628   fi
7629 fi
7630
7631   fi
7632   ;;
7633 esac
7634
7635 # Use C for the default configuration in the libtool script
7636
7637 lt_save_CC="$CC"
7638 ac_ext=c
7639 ac_cpp='$CPP $CPPFLAGS'
7640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643
7644
7645 # Source file extension for C test sources.
7646 ac_ext=c
7647
7648 # Object file extension for compiled C test sources.
7649 objext=o
7650 objext=$objext
7651
7652 # Code to be used in simple compile tests
7653 lt_simple_compile_test_code="int some_variable = 0;"
7654
7655 # Code to be used in simple link tests
7656 lt_simple_link_test_code='int main(){return(0);}'
7657
7658
7659
7660
7661
7662
7663
7664 # If no C compiler was specified, use CC.
7665 LTCC=${LTCC-"$CC"}
7666
7667 # If no C compiler flags were specified, use CFLAGS.
7668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7669
7670 # Allow CC to be a program name with arguments.
7671 compiler=$CC
7672
7673 # Save the default compiler, since it gets overwritten when the other
7674 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7675 compiler_DEFAULT=$CC
7676
7677 # save warnings/boilerplate of simple test code
7678 ac_outfile=conftest.$ac_objext
7679 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7681 _lt_compiler_boilerplate=`cat conftest.err`
7682 $RM conftest*
7683
7684 ac_outfile=conftest.$ac_objext
7685 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7687 _lt_linker_boilerplate=`cat conftest.err`
7688 $RM -r conftest*
7689
7690
7691 ## CAVEAT EMPTOR:
7692 ## There is no encapsulation within the following macros, do not change
7693 ## the running order or otherwise move them around unless you know exactly
7694 ## what you are doing...
7695 if test -n "$compiler"; then
7696
7697 lt_prog_compiler_no_builtin_flag=
7698
7699 if test "$GCC" = yes; then
7700   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7701
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   lt_cv_prog_compiler_rtti_exceptions=no
7708    ac_outfile=conftest.$ac_objext
7709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710    lt_compiler_flag="-fno-rtti -fno-exceptions"
7711    # Insert the option either (1) after the last *FLAGS variable, or
7712    # (2) before a word containing "conftest.", or (3) at the end.
7713    # Note that $ac_compile itself does not contain backslashes and begins
7714    # with a dollar sign (not a hyphen), so the echo should work correctly.
7715    # The option is referenced via a variable to avoid confusing sed.
7716    lt_compile=`echo "$ac_compile" | $SED \
7717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719    -e 's:$: $lt_compiler_flag:'`
7720    (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
7721    (eval "$lt_compile" 2>conftest.err)
7722    ac_status=$?
7723    cat conftest.err >&5
7724    echo "$as_me:7724: \$? = $ac_status" >&5
7725    if (exit $ac_status) && test -s "$ac_outfile"; then
7726      # The compiler can only warn and ignore the option if not recognized
7727      # So say no if there are warnings other than the usual output.
7728      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731        lt_cv_prog_compiler_rtti_exceptions=yes
7732      fi
7733    fi
7734    $RM conftest*
7735
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7739
7740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7742 else
7743     :
7744 fi
7745
7746 fi
7747
7748
7749
7750
7751
7752
7753   lt_prog_compiler_wl=
7754 lt_prog_compiler_pic=
7755 lt_prog_compiler_static=
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7758 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7759
7760   if test "$GCC" = yes; then
7761     lt_prog_compiler_wl='-Wl,'
7762     lt_prog_compiler_static='-static'
7763
7764     case $host_os in
7765       aix*)
7766       # All AIX code is PIC.
7767       if test "$host_cpu" = ia64; then
7768         # AIX 5 now supports IA64 processor
7769         lt_prog_compiler_static='-Bstatic'
7770       fi
7771       ;;
7772
7773     amigaos*)
7774       case $host_cpu in
7775       powerpc)
7776             # see comment about AmigaOS4 .so support
7777             lt_prog_compiler_pic='-fPIC'
7778         ;;
7779       m68k)
7780             # FIXME: we need at least 68020 code to build shared libraries, but
7781             # adding the `-m68020' flag to GCC prevents building anything better,
7782             # like `-m68040'.
7783             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7784         ;;
7785       esac
7786       ;;
7787
7788     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7789       # PIC is the default for these OSes.
7790       ;;
7791
7792     mingw* | cygwin* | pw32* | os2* | cegcc*)
7793       # This hack is so that the source file can tell whether it is being
7794       # built for inclusion in a dll (and should export symbols for example).
7795       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7796       # (--disable-auto-import) libraries
7797       lt_prog_compiler_pic='-DDLL_EXPORT'
7798       ;;
7799
7800     darwin* | rhapsody*)
7801       # PIC is the default on this platform
7802       # Common symbols not allowed in MH_DYLIB files
7803       lt_prog_compiler_pic='-fno-common'
7804       ;;
7805
7806     hpux*)
7807       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7808       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7809       # sets the default TLS model and affects inlining.
7810       case $host_cpu in
7811       hppa*64*)
7812         # +Z the default
7813         ;;
7814       *)
7815         lt_prog_compiler_pic='-fPIC'
7816         ;;
7817       esac
7818       ;;
7819
7820     interix[3-9]*)
7821       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7822       # Instead, we relocate shared libraries at runtime.
7823       ;;
7824
7825     msdosdjgpp*)
7826       # Just because we use GCC doesn't mean we suddenly get shared libraries
7827       # on systems that don't support them.
7828       lt_prog_compiler_can_build_shared=no
7829       enable_shared=no
7830       ;;
7831
7832     *nto* | *qnx*)
7833       # QNX uses GNU C++, but need to define -shared option too, otherwise
7834       # it will coredump.
7835       lt_prog_compiler_pic='-fPIC -shared'
7836       ;;
7837
7838     sysv4*MP*)
7839       if test -d /usr/nec; then
7840         lt_prog_compiler_pic=-Kconform_pic
7841       fi
7842       ;;
7843
7844     *)
7845       lt_prog_compiler_pic='-fPIC'
7846       ;;
7847     esac
7848   else
7849     # PORTME Check for flag to pass linker flags through the system compiler.
7850     case $host_os in
7851     aix*)
7852       lt_prog_compiler_wl='-Wl,'
7853       if test "$host_cpu" = ia64; then
7854         # AIX 5 now supports IA64 processor
7855         lt_prog_compiler_static='-Bstatic'
7856       else
7857         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7858       fi
7859       ;;
7860
7861     mingw* | cygwin* | pw32* | os2* | cegcc*)
7862       # This hack is so that the source file can tell whether it is being
7863       # built for inclusion in a dll (and should export symbols for example).
7864       lt_prog_compiler_pic='-DDLL_EXPORT'
7865       ;;
7866
7867     hpux9* | hpux10* | hpux11*)
7868       lt_prog_compiler_wl='-Wl,'
7869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7870       # not for PA HP-UX.
7871       case $host_cpu in
7872       hppa*64*|ia64*)
7873         # +Z the default
7874         ;;
7875       *)
7876         lt_prog_compiler_pic='+Z'
7877         ;;
7878       esac
7879       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7880       lt_prog_compiler_static='${wl}-a ${wl}archive'
7881       ;;
7882
7883     irix5* | irix6* | nonstopux*)
7884       lt_prog_compiler_wl='-Wl,'
7885       # PIC (with -KPIC) is the default.
7886       lt_prog_compiler_static='-non_shared'
7887       ;;
7888
7889     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7890       case $cc_basename in
7891       # old Intel for x86_64 which still supported -KPIC.
7892       ecc*)
7893         lt_prog_compiler_wl='-Wl,'
7894         lt_prog_compiler_pic='-KPIC'
7895         lt_prog_compiler_static='-static'
7896         ;;
7897       # icc used to be incompatible with GCC.
7898       # ICC 10 doesn't accept -KPIC any more.
7899       icc* | ifort*)
7900         lt_prog_compiler_wl='-Wl,'
7901         lt_prog_compiler_pic='-fPIC'
7902         lt_prog_compiler_static='-static'
7903         ;;
7904       # Lahey Fortran 8.1.
7905       lf95*)
7906         lt_prog_compiler_wl='-Wl,'
7907         lt_prog_compiler_pic='--shared'
7908         lt_prog_compiler_static='--static'
7909         ;;
7910       pgcc* | pgf77* | pgf90* | pgf95*)
7911         # Portland Group compilers (*not* the Pentium gcc compiler,
7912         # which looks to be a dead project)
7913         lt_prog_compiler_wl='-Wl,'
7914         lt_prog_compiler_pic='-fpic'
7915         lt_prog_compiler_static='-Bstatic'
7916         ;;
7917       ccc*)
7918         lt_prog_compiler_wl='-Wl,'
7919         # All Alpha code is PIC.
7920         lt_prog_compiler_static='-non_shared'
7921         ;;
7922       xl*)
7923         # IBM XL C 8.0/Fortran 10.1 on PPC
7924         lt_prog_compiler_wl='-Wl,'
7925         lt_prog_compiler_pic='-qpic'
7926         lt_prog_compiler_static='-qstaticlink'
7927         ;;
7928       *)
7929         case `$CC -V 2>&1 | sed 5q` in
7930         *Sun\ C*)
7931           # Sun C 5.9
7932           lt_prog_compiler_pic='-KPIC'
7933           lt_prog_compiler_static='-Bstatic'
7934           lt_prog_compiler_wl='-Wl,'
7935           ;;
7936         *Sun\ F*)
7937           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7938           lt_prog_compiler_pic='-KPIC'
7939           lt_prog_compiler_static='-Bstatic'
7940           lt_prog_compiler_wl=''
7941           ;;
7942         esac
7943         ;;
7944       esac
7945       ;;
7946
7947     newsos6)
7948       lt_prog_compiler_pic='-KPIC'
7949       lt_prog_compiler_static='-Bstatic'
7950       ;;
7951
7952     *nto* | *qnx*)
7953       # QNX uses GNU C++, but need to define -shared option too, otherwise
7954       # it will coredump.
7955       lt_prog_compiler_pic='-fPIC -shared'
7956       ;;
7957
7958     osf3* | osf4* | osf5*)
7959       lt_prog_compiler_wl='-Wl,'
7960       # All OSF/1 code is PIC.
7961       lt_prog_compiler_static='-non_shared'
7962       ;;
7963
7964     rdos*)
7965       lt_prog_compiler_static='-non_shared'
7966       ;;
7967
7968     solaris*)
7969       lt_prog_compiler_pic='-KPIC'
7970       lt_prog_compiler_static='-Bstatic'
7971       case $cc_basename in
7972       f77* | f90* | f95*)
7973         lt_prog_compiler_wl='-Qoption ld ';;
7974       *)
7975         lt_prog_compiler_wl='-Wl,';;
7976       esac
7977       ;;
7978
7979     sunos4*)
7980       lt_prog_compiler_wl='-Qoption ld '
7981       lt_prog_compiler_pic='-PIC'
7982       lt_prog_compiler_static='-Bstatic'
7983       ;;
7984
7985     sysv4 | sysv4.2uw2* | sysv4.3*)
7986       lt_prog_compiler_wl='-Wl,'
7987       lt_prog_compiler_pic='-KPIC'
7988       lt_prog_compiler_static='-Bstatic'
7989       ;;
7990
7991     sysv4*MP*)
7992       if test -d /usr/nec ;then
7993         lt_prog_compiler_pic='-Kconform_pic'
7994         lt_prog_compiler_static='-Bstatic'
7995       fi
7996       ;;
7997
7998     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7999       lt_prog_compiler_wl='-Wl,'
8000       lt_prog_compiler_pic='-KPIC'
8001       lt_prog_compiler_static='-Bstatic'
8002       ;;
8003
8004     unicos*)
8005       lt_prog_compiler_wl='-Wl,'
8006       lt_prog_compiler_can_build_shared=no
8007       ;;
8008
8009     uts4*)
8010       lt_prog_compiler_pic='-pic'
8011       lt_prog_compiler_static='-Bstatic'
8012       ;;
8013
8014     *)
8015       lt_prog_compiler_can_build_shared=no
8016       ;;
8017     esac
8018   fi
8019
8020 case $host_os in
8021   # For platforms which do not support PIC, -DPIC is meaningless:
8022   *djgpp*)
8023     lt_prog_compiler_pic=
8024     ;;
8025   *)
8026     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8027     ;;
8028 esac
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8030 $as_echo "$lt_prog_compiler_pic" >&6; }
8031
8032
8033
8034
8035
8036
8037 #
8038 # Check to make sure the PIC flag actually works.
8039 #
8040 if test -n "$lt_prog_compiler_pic"; then
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8042 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8043 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   lt_cv_prog_compiler_pic_works=no
8047    ac_outfile=conftest.$ac_objext
8048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8049    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8050    # Insert the option either (1) after the last *FLAGS variable, or
8051    # (2) before a word containing "conftest.", or (3) at the end.
8052    # Note that $ac_compile itself does not contain backslashes and begins
8053    # with a dollar sign (not a hyphen), so the echo should work correctly.
8054    # The option is referenced via a variable to avoid confusing sed.
8055    lt_compile=`echo "$ac_compile" | $SED \
8056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8058    -e 's:$: $lt_compiler_flag:'`
8059    (eval echo "\"\$as_me:8059: $lt_compile\"" >&5)
8060    (eval "$lt_compile" 2>conftest.err)
8061    ac_status=$?
8062    cat conftest.err >&5
8063    echo "$as_me:8063: \$? = $ac_status" >&5
8064    if (exit $ac_status) && test -s "$ac_outfile"; then
8065      # The compiler can only warn and ignore the option if not recognized
8066      # So say no if there are warnings other than the usual output.
8067      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8070        lt_cv_prog_compiler_pic_works=yes
8071      fi
8072    fi
8073    $RM conftest*
8074
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8077 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8078
8079 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8080     case $lt_prog_compiler_pic in
8081      "" | " "*) ;;
8082      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8083      esac
8084 else
8085     lt_prog_compiler_pic=
8086      lt_prog_compiler_can_build_shared=no
8087 fi
8088
8089 fi
8090
8091
8092
8093
8094
8095
8096 #
8097 # Check to make sure the static flag actually works.
8098 #
8099 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8101 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8102 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8103   $as_echo_n "(cached) " >&6
8104 else
8105   lt_cv_prog_compiler_static_works=no
8106    save_LDFLAGS="$LDFLAGS"
8107    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8108    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8109    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8110      # The linker can only warn and ignore the option if not recognized
8111      # So say no if there are warnings
8112      if test -s conftest.err; then
8113        # Append any errors to the config.log.
8114        cat conftest.err 1>&5
8115        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8116        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117        if diff conftest.exp conftest.er2 >/dev/null; then
8118          lt_cv_prog_compiler_static_works=yes
8119        fi
8120      else
8121        lt_cv_prog_compiler_static_works=yes
8122      fi
8123    fi
8124    $RM -r conftest*
8125    LDFLAGS="$save_LDFLAGS"
8126
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8129 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8130
8131 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8132     :
8133 else
8134     lt_prog_compiler_static=
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8145 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   lt_cv_prog_compiler_c_o=no
8149    $RM -r conftest 2>/dev/null
8150    mkdir conftest
8151    cd conftest
8152    mkdir out
8153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8154
8155    lt_compiler_flag="-o out/conftest2.$ac_objext"
8156    # Insert the option either (1) after the last *FLAGS variable, or
8157    # (2) before a word containing "conftest.", or (3) at the end.
8158    # Note that $ac_compile itself does not contain backslashes and begins
8159    # with a dollar sign (not a hyphen), so the echo should work correctly.
8160    lt_compile=`echo "$ac_compile" | $SED \
8161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8163    -e 's:$: $lt_compiler_flag:'`
8164    (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
8165    (eval "$lt_compile" 2>out/conftest.err)
8166    ac_status=$?
8167    cat out/conftest.err >&5
8168    echo "$as_me:8168: \$? = $ac_status" >&5
8169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8170    then
8171      # The compiler can only warn and ignore the option if not recognized
8172      # So say no if there are warnings
8173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8174      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8175      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8176        lt_cv_prog_compiler_c_o=yes
8177      fi
8178    fi
8179    chmod u+w . 2>&5
8180    $RM conftest*
8181    # SGI C++ compiler will create directory out/ii_files/ for
8182    # template instantiation
8183    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8184    $RM out/* && rmdir out
8185    cd ..
8186    $RM -r conftest
8187    $RM conftest*
8188
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8192
8193
8194
8195
8196
8197
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8199 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8200 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   lt_cv_prog_compiler_c_o=no
8204    $RM -r conftest 2>/dev/null
8205    mkdir conftest
8206    cd conftest
8207    mkdir out
8208    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8209
8210    lt_compiler_flag="-o out/conftest2.$ac_objext"
8211    # Insert the option either (1) after the last *FLAGS variable, or
8212    # (2) before a word containing "conftest.", or (3) at the end.
8213    # Note that $ac_compile itself does not contain backslashes and begins
8214    # with a dollar sign (not a hyphen), so the echo should work correctly.
8215    lt_compile=`echo "$ac_compile" | $SED \
8216    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218    -e 's:$: $lt_compiler_flag:'`
8219    (eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
8220    (eval "$lt_compile" 2>out/conftest.err)
8221    ac_status=$?
8222    cat out/conftest.err >&5
8223    echo "$as_me:8223: \$? = $ac_status" >&5
8224    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8225    then
8226      # The compiler can only warn and ignore the option if not recognized
8227      # So say no if there are warnings
8228      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8229      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8230      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8231        lt_cv_prog_compiler_c_o=yes
8232      fi
8233    fi
8234    chmod u+w . 2>&5
8235    $RM conftest*
8236    # SGI C++ compiler will create directory out/ii_files/ for
8237    # template instantiation
8238    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8239    $RM out/* && rmdir out
8240    cd ..
8241    $RM -r conftest
8242    $RM conftest*
8243
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8246 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8247
8248
8249
8250
8251 hard_links="nottested"
8252 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8253   # do not overwrite the value of need_locks provided by the user
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8255 $as_echo_n "checking if we can lock with hard links... " >&6; }
8256   hard_links=yes
8257   $RM conftest*
8258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8259   touch conftest.a
8260   ln conftest.a conftest.b 2>&5 || hard_links=no
8261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8263 $as_echo "$hard_links" >&6; }
8264   if test "$hard_links" = no; then
8265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8266 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8267     need_locks=warn
8268   fi
8269 else
8270   need_locks=no
8271 fi
8272
8273
8274
8275
8276
8277
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8279 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8280
8281   runpath_var=
8282   allow_undefined_flag=
8283   always_export_symbols=no
8284   archive_cmds=
8285   archive_expsym_cmds=
8286   compiler_needs_object=no
8287   enable_shared_with_static_runtimes=no
8288   export_dynamic_flag_spec=
8289   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8290   hardcode_automatic=no
8291   hardcode_direct=no
8292   hardcode_direct_absolute=no
8293   hardcode_libdir_flag_spec=
8294   hardcode_libdir_flag_spec_ld=
8295   hardcode_libdir_separator=
8296   hardcode_minus_L=no
8297   hardcode_shlibpath_var=unsupported
8298   inherit_rpath=no
8299   link_all_deplibs=unknown
8300   module_cmds=
8301   module_expsym_cmds=
8302   old_archive_from_new_cmds=
8303   old_archive_from_expsyms_cmds=
8304   thread_safe_flag_spec=
8305   whole_archive_flag_spec=
8306   # include_expsyms should be a list of space-separated symbols to be *always*
8307   # included in the symbol list
8308   include_expsyms=
8309   # exclude_expsyms can be an extended regexp of symbols to exclude
8310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8312   # as well as any symbol that contains `d'.
8313   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8315   # platforms (ab)use it in PIC code, but their linkers get confused if
8316   # the symbol is explicitly referenced.  Since portable code cannot
8317   # rely on this symbol name, it's probably fine to never include it in
8318   # preloaded symbol tables.
8319   # Exclude shared library initialization/finalization symbols.
8320   extract_expsyms_cmds=
8321
8322   case $host_os in
8323   cygwin* | mingw* | pw32* | cegcc*)
8324     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8325     # When not using gcc, we currently assume that we are using
8326     # Microsoft Visual C++.
8327     if test "$GCC" != yes; then
8328       with_gnu_ld=no
8329     fi
8330     ;;
8331   interix*)
8332     # we just hope/assume this is gcc and not c89 (= MSVC++)
8333     with_gnu_ld=yes
8334     ;;
8335   openbsd*)
8336     with_gnu_ld=no
8337     ;;
8338   linux* | k*bsd*-gnu)
8339     link_all_deplibs=no
8340     ;;
8341   esac
8342
8343   ld_shlibs=yes
8344   if test "$with_gnu_ld" = yes; then
8345     # If archive_cmds runs LD, not CC, wlarc should be empty
8346     wlarc='${wl}'
8347
8348     # Set some defaults for GNU ld with shared library support. These
8349     # are reset later if shared libraries are not supported. Putting them
8350     # here allows them to be overridden if necessary.
8351     runpath_var=LD_RUN_PATH
8352     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8353     export_dynamic_flag_spec='${wl}--export-dynamic'
8354     # ancient GNU ld didn't support --whole-archive et. al.
8355     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8356       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8357     else
8358       whole_archive_flag_spec=
8359     fi
8360     supports_anon_versioning=no
8361     case `$LD -v 2>&1` in
8362       *GNU\ gold*) supports_anon_versioning=yes ;;
8363       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8364       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8365       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8366       *\ 2.11.*) ;; # other 2.11 versions
8367       *) supports_anon_versioning=yes ;;
8368     esac
8369
8370     # See if GNU ld supports shared libraries.
8371     case $host_os in
8372     aix[3-9]*)
8373       # On AIX/PPC, the GNU linker is very broken
8374       if test "$host_cpu" != ia64; then
8375         ld_shlibs=no
8376         cat <<_LT_EOF 1>&2
8377
8378 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8379 *** to be unable to reliably create shared libraries on AIX.
8380 *** Therefore, libtool is disabling shared libraries support.  If you
8381 *** really care for shared libraries, you may want to modify your PATH
8382 *** so that a non-GNU linker is found, and then restart.
8383
8384 _LT_EOF
8385       fi
8386       ;;
8387
8388     amigaos*)
8389       case $host_cpu in
8390       powerpc)
8391             # see comment about AmigaOS4 .so support
8392             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393             archive_expsym_cmds=''
8394         ;;
8395       m68k)
8396             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)'
8397             hardcode_libdir_flag_spec='-L$libdir'
8398             hardcode_minus_L=yes
8399         ;;
8400       esac
8401       ;;
8402
8403     beos*)
8404       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8405         allow_undefined_flag=unsupported
8406         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8407         # support --undefined.  This deserves some investigation.  FIXME
8408         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409       else
8410         ld_shlibs=no
8411       fi
8412       ;;
8413
8414     cygwin* | mingw* | pw32* | cegcc*)
8415       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8416       # as there is no search path for DLLs.
8417       hardcode_libdir_flag_spec='-L$libdir'
8418       allow_undefined_flag=unsupported
8419       always_export_symbols=no
8420       enable_shared_with_static_runtimes=yes
8421       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8422
8423       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8424         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8425         # If the export-symbols file already is a .def file (1st line
8426         # is EXPORTS), use it as is; otherwise, prepend...
8427         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8428           cp $export_symbols $output_objdir/$soname.def;
8429         else
8430           echo EXPORTS > $output_objdir/$soname.def;
8431           cat $export_symbols >> $output_objdir/$soname.def;
8432         fi~
8433         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8434       else
8435         ld_shlibs=no
8436       fi
8437       ;;
8438
8439     interix[3-9]*)
8440       hardcode_direct=no
8441       hardcode_shlibpath_var=no
8442       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8443       export_dynamic_flag_spec='${wl}-E'
8444       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8445       # Instead, shared libraries are loaded at an image base (0x10000000 by
8446       # default) and relocated if they conflict, which is a slow very memory
8447       # consuming and fragmenting process.  To avoid this, we pick a random,
8448       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8449       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8450       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8451       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'
8452       ;;
8453
8454     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8455       tmp_diet=no
8456       if test "$host_os" = linux-dietlibc; then
8457         case $cc_basename in
8458           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8459         esac
8460       fi
8461       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8462          && test "$tmp_diet" = no
8463       then
8464         tmp_addflag=
8465         tmp_sharedflag='-shared'
8466         case $cc_basename,$host_cpu in
8467         pgcc*)                          # Portland Group C compiler
8468           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8469           tmp_addflag=' $pic_flag'
8470           ;;
8471         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8472           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8473           tmp_addflag=' $pic_flag -Mnomain' ;;
8474         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8475           tmp_addflag=' -i_dynamic' ;;
8476         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8477           tmp_addflag=' -i_dynamic -nofor_main' ;;
8478         ifc* | ifort*)                  # Intel Fortran compiler
8479           tmp_addflag=' -nofor_main' ;;
8480         lf95*)                          # Lahey Fortran 8.1
8481           whole_archive_flag_spec=
8482           tmp_sharedflag='--shared' ;;
8483         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8484           tmp_sharedflag='-qmkshrobj'
8485           tmp_addflag= ;;
8486         esac
8487         case `$CC -V 2>&1 | sed 5q` in
8488         *Sun\ C*)                       # Sun C 5.9
8489           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8490           compiler_needs_object=yes
8491           tmp_sharedflag='-G' ;;
8492         *Sun\ F*)                       # Sun Fortran 8.3
8493           tmp_sharedflag='-G' ;;
8494         esac
8495         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496
8497         if test "x$supports_anon_versioning" = xyes; then
8498           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8499             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8500             echo "local: *; };" >> $output_objdir/$libname.ver~
8501             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8502         fi
8503
8504         case $cc_basename in
8505         xlf*)
8506           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8507           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8508           hardcode_libdir_flag_spec=
8509           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8510           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8511           if test "x$supports_anon_versioning" = xyes; then
8512             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8513               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8514               echo "local: *; };" >> $output_objdir/$libname.ver~
8515               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8516           fi
8517           ;;
8518         esac
8519       else
8520         ld_shlibs=no
8521       fi
8522       ;;
8523
8524     netbsd* | netbsdelf*-gnu)
8525       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8526         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8527         wlarc=
8528       else
8529         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531       fi
8532       ;;
8533
8534     solaris*)
8535       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8536         ld_shlibs=no
8537         cat <<_LT_EOF 1>&2
8538
8539 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8540 *** create shared libraries on Solaris systems.  Therefore, libtool
8541 *** is disabling shared libraries support.  We urge you to upgrade GNU
8542 *** binutils to release 2.9.1 or newer.  Another option is to modify
8543 *** your PATH or compiler configuration so that the native linker is
8544 *** used, and then restart.
8545
8546 _LT_EOF
8547       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8548         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550       else
8551         ld_shlibs=no
8552       fi
8553       ;;
8554
8555     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8556       case `$LD -v 2>&1` in
8557         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8558         ld_shlibs=no
8559         cat <<_LT_EOF 1>&2
8560
8561 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8562 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8563 *** is disabling shared libraries support.  We urge you to upgrade GNU
8564 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8565 *** your PATH or compiler configuration so that the native linker is
8566 *** used, and then restart.
8567
8568 _LT_EOF
8569         ;;
8570         *)
8571           # For security reasons, it is highly recommended that you always
8572           # use absolute paths for naming shared libraries, and exclude the
8573           # DT_RUNPATH tag from executables and libraries.  But doing so
8574           # requires that you compile everything twice, which is a pain.
8575           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8576             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8577             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8579           else
8580             ld_shlibs=no
8581           fi
8582         ;;
8583       esac
8584       ;;
8585
8586     sunos4*)
8587       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8588       wlarc=
8589       hardcode_direct=yes
8590       hardcode_shlibpath_var=no
8591       ;;
8592
8593     *)
8594       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597       else
8598         ld_shlibs=no
8599       fi
8600       ;;
8601     esac
8602
8603     if test "$ld_shlibs" = no; then
8604       runpath_var=
8605       hardcode_libdir_flag_spec=
8606       export_dynamic_flag_spec=
8607       whole_archive_flag_spec=
8608     fi
8609   else
8610     # PORTME fill in a description of your system's linker (not GNU ld)
8611     case $host_os in
8612     aix3*)
8613       allow_undefined_flag=unsupported
8614       always_export_symbols=yes
8615       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'
8616       # Note: this linker hardcodes the directories in LIBPATH if there
8617       # are no directories specified by -L.
8618       hardcode_minus_L=yes
8619       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8620         # Neither direct hardcoding nor static linking is supported with a
8621         # broken collect2.
8622         hardcode_direct=unsupported
8623       fi
8624       ;;
8625
8626     aix[4-9]*)
8627       if test "$host_cpu" = ia64; then
8628         # On IA64, the linker does run time linking by default, so we don't
8629         # have to do anything special.
8630         aix_use_runtimelinking=no
8631         exp_sym_flag='-Bexport'
8632         no_entry_flag=""
8633       else
8634         # If we're using GNU nm, then we don't want the "-C" option.
8635         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8636         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8637           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8638         else
8639           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'
8640         fi
8641         aix_use_runtimelinking=no
8642
8643         # Test if we are trying to use run time linking or normal
8644         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8645         # need to do runtime linking.
8646         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8647           for ld_flag in $LDFLAGS; do
8648           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8649             aix_use_runtimelinking=yes
8650             break
8651           fi
8652           done
8653           ;;
8654         esac
8655
8656         exp_sym_flag='-bexport'
8657         no_entry_flag='-bnoentry'
8658       fi
8659
8660       # When large executables or shared objects are built, AIX ld can
8661       # have problems creating the table of contents.  If linking a library
8662       # or program results in "error TOC overflow" add -mminimal-toc to
8663       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8664       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8665
8666       archive_cmds=''
8667       hardcode_direct=yes
8668       hardcode_direct_absolute=yes
8669       hardcode_libdir_separator=':'
8670       link_all_deplibs=yes
8671       file_list_spec='${wl}-f,'
8672
8673       if test "$GCC" = yes; then
8674         case $host_os in aix4.[012]|aix4.[012].*)
8675         # We only want to do this on AIX 4.2 and lower, the check
8676         # below for broken collect2 doesn't work under 4.3+
8677           collect2name=`${CC} -print-prog-name=collect2`
8678           if test -f "$collect2name" &&
8679            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8680           then
8681           # We have reworked collect2
8682           :
8683           else
8684           # We have old collect2
8685           hardcode_direct=unsupported
8686           # It fails to find uninstalled libraries when the uninstalled
8687           # path is not listed in the libpath.  Setting hardcode_minus_L
8688           # to unsupported forces relinking
8689           hardcode_minus_L=yes
8690           hardcode_libdir_flag_spec='-L$libdir'
8691           hardcode_libdir_separator=
8692           fi
8693           ;;
8694         esac
8695         shared_flag='-shared'
8696         if test "$aix_use_runtimelinking" = yes; then
8697           shared_flag="$shared_flag "'${wl}-G'
8698         fi
8699         link_all_deplibs=no
8700       else
8701         # not using gcc
8702         if test "$host_cpu" = ia64; then
8703         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8704         # chokes on -Wl,-G. The following line is correct:
8705           shared_flag='-G'
8706         else
8707           if test "$aix_use_runtimelinking" = yes; then
8708             shared_flag='${wl}-G'
8709           else
8710             shared_flag='${wl}-bM:SRE'
8711           fi
8712         fi
8713       fi
8714
8715       export_dynamic_flag_spec='${wl}-bexpall'
8716       # It seems that -bexpall does not export symbols beginning with
8717       # underscore (_), so it is better to generate a list of symbols to export.
8718       always_export_symbols=yes
8719       if test "$aix_use_runtimelinking" = yes; then
8720         # Warning - without using the other runtime loading flags (-brtl),
8721         # -berok will link without error, but may produce a broken library.
8722         allow_undefined_flag='-berok'
8723         # Determine the default libpath from the value encoded in an
8724         # empty executable.
8725         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h.  */
8727
8728 int
8729 main ()
8730 {
8731
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"; then :
8737
8738 lt_aix_libpath_sed='
8739     /Import File Strings/,/^$/ {
8740         /^0/ {
8741             s/^0  *\(.*\)$/\1/
8742             p
8743         }
8744     }'
8745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8746 # Check for a 64-bit object if we didn't find anything.
8747 if test -z "$aix_libpath"; then
8748   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8749 fi
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext \
8752     conftest$ac_exeext conftest.$ac_ext
8753 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8754
8755         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8756         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8757       else
8758         if test "$host_cpu" = ia64; then
8759           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8760           allow_undefined_flag="-z nodefs"
8761           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"
8762         else
8763          # Determine the default libpath from the value encoded in an
8764          # empty executable.
8765          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h.  */
8767
8768 int
8769 main ()
8770 {
8771
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"; then :
8777
8778 lt_aix_libpath_sed='
8779     /Import File Strings/,/^$/ {
8780         /^0/ {
8781             s/^0  *\(.*\)$/\1/
8782             p
8783         }
8784     }'
8785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8786 # Check for a 64-bit object if we didn't find anything.
8787 if test -z "$aix_libpath"; then
8788   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8789 fi
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext \
8792     conftest$ac_exeext conftest.$ac_ext
8793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8794
8795          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8796           # Warning - without using the other run time loading flags,
8797           # -berok will link without error, but may produce a broken library.
8798           no_undefined_flag=' ${wl}-bernotok'
8799           allow_undefined_flag=' ${wl}-berok'
8800           # Exported symbols can be pulled into shared objects from archives
8801           whole_archive_flag_spec='$convenience'
8802           archive_cmds_need_lc=yes
8803           # This is similar to how AIX traditionally builds its shared libraries.
8804           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'
8805         fi
8806       fi
8807       ;;
8808
8809     amigaos*)
8810       case $host_cpu in
8811       powerpc)
8812             # see comment about AmigaOS4 .so support
8813             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814             archive_expsym_cmds=''
8815         ;;
8816       m68k)
8817             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)'
8818             hardcode_libdir_flag_spec='-L$libdir'
8819             hardcode_minus_L=yes
8820         ;;
8821       esac
8822       ;;
8823
8824     bsdi[45]*)
8825       export_dynamic_flag_spec=-rdynamic
8826       ;;
8827
8828     cygwin* | mingw* | pw32* | cegcc*)
8829       # When not using gcc, we currently assume that we are using
8830       # Microsoft Visual C++.
8831       # hardcode_libdir_flag_spec is actually meaningless, as there is
8832       # no search path for DLLs.
8833       hardcode_libdir_flag_spec=' '
8834       allow_undefined_flag=unsupported
8835       # Tell ltmain to make .lib files, not .a files.
8836       libext=lib
8837       # Tell ltmain to make .dll files, not .so files.
8838       shrext_cmds=".dll"
8839       # FIXME: Setting linknames here is a bad hack.
8840       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8841       # The linker will automatically build a .lib file if we build a DLL.
8842       old_archive_from_new_cmds='true'
8843       # FIXME: Should let the user specify the lib program.
8844       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8845       fix_srcfile_path='`cygpath -w "$srcfile"`'
8846       enable_shared_with_static_runtimes=yes
8847       ;;
8848
8849     darwin* | rhapsody*)
8850
8851
8852   archive_cmds_need_lc=no
8853   hardcode_direct=no
8854   hardcode_automatic=yes
8855   hardcode_shlibpath_var=unsupported
8856   whole_archive_flag_spec=''
8857   link_all_deplibs=yes
8858   allow_undefined_flag="$_lt_dar_allow_undefined"
8859   case $cc_basename in
8860      ifort*) _lt_dar_can_shared=yes ;;
8861      *) _lt_dar_can_shared=$GCC ;;
8862   esac
8863   if test "$_lt_dar_can_shared" = "yes"; then
8864     output_verbose_link_cmd=echo
8865     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8866     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8867     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}"
8868     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}"
8869
8870   else
8871   ld_shlibs=no
8872   fi
8873
8874       ;;
8875
8876     dgux*)
8877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878       hardcode_libdir_flag_spec='-L$libdir'
8879       hardcode_shlibpath_var=no
8880       ;;
8881
8882     freebsd1*)
8883       ld_shlibs=no
8884       ;;
8885
8886     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8887     # support.  Future versions do this automatically, but an explicit c++rt0.o
8888     # does not break anything, and helps significantly (at the cost of a little
8889     # extra space).
8890     freebsd2.2*)
8891       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8892       hardcode_libdir_flag_spec='-R$libdir'
8893       hardcode_direct=yes
8894       hardcode_shlibpath_var=no
8895       ;;
8896
8897     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8898     freebsd2*)
8899       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900       hardcode_direct=yes
8901       hardcode_minus_L=yes
8902       hardcode_shlibpath_var=no
8903       ;;
8904
8905     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8906     freebsd* | dragonfly*)
8907       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8908       hardcode_libdir_flag_spec='-R$libdir'
8909       hardcode_direct=yes
8910       hardcode_shlibpath_var=no
8911       ;;
8912
8913     hpux9*)
8914       if test "$GCC" = yes; then
8915         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8916       else
8917         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'
8918       fi
8919       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8920       hardcode_libdir_separator=:
8921       hardcode_direct=yes
8922
8923       # hardcode_minus_L: Not really in the search PATH,
8924       # but as the default location of the library.
8925       hardcode_minus_L=yes
8926       export_dynamic_flag_spec='${wl}-E'
8927       ;;
8928
8929     hpux10*)
8930       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8931         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8932       else
8933         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8934       fi
8935       if test "$with_gnu_ld" = no; then
8936         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8937         hardcode_libdir_flag_spec_ld='+b $libdir'
8938         hardcode_libdir_separator=:
8939         hardcode_direct=yes
8940         hardcode_direct_absolute=yes
8941         export_dynamic_flag_spec='${wl}-E'
8942         # hardcode_minus_L: Not really in the search PATH,
8943         # but as the default location of the library.
8944         hardcode_minus_L=yes
8945       fi
8946       ;;
8947
8948     hpux11*)
8949       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8950         case $host_cpu in
8951         hppa*64*)
8952           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953           ;;
8954         ia64*)
8955           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8956           ;;
8957         *)
8958           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8959           ;;
8960         esac
8961       else
8962         case $host_cpu in
8963         hppa*64*)
8964           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965           ;;
8966         ia64*)
8967           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8968           ;;
8969         *)
8970           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8971           ;;
8972         esac
8973       fi
8974       if test "$with_gnu_ld" = no; then
8975         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8976         hardcode_libdir_separator=:
8977
8978         case $host_cpu in
8979         hppa*64*|ia64*)
8980           hardcode_direct=no
8981           hardcode_shlibpath_var=no
8982           ;;
8983         *)
8984           hardcode_direct=yes
8985           hardcode_direct_absolute=yes
8986           export_dynamic_flag_spec='${wl}-E'
8987
8988           # hardcode_minus_L: Not really in the search PATH,
8989           # but as the default location of the library.
8990           hardcode_minus_L=yes
8991           ;;
8992         esac
8993       fi
8994       ;;
8995
8996     irix5* | irix6* | nonstopux*)
8997       if test "$GCC" = yes; then
8998         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8999         # Try to use the -exported_symbol ld option, if it does not
9000         # work, assume that -exports_file does not work either and
9001         # implicitly export all symbols.
9002         save_LDFLAGS="$LDFLAGS"
9003         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9004         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h.  */
9006 int foo(void) {}
9007 _ACEOF
9008 if ac_fn_c_try_link "$LINENO"; then :
9009   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9010
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext \
9013     conftest$ac_exeext conftest.$ac_ext
9014         LDFLAGS="$save_LDFLAGS"
9015       else
9016         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9017         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9018       fi
9019       archive_cmds_need_lc='no'
9020       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9021       hardcode_libdir_separator=:
9022       inherit_rpath=yes
9023       link_all_deplibs=yes
9024       ;;
9025
9026     netbsd* | netbsdelf*-gnu)
9027       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9028         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9029       else
9030         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9031       fi
9032       hardcode_libdir_flag_spec='-R$libdir'
9033       hardcode_direct=yes
9034       hardcode_shlibpath_var=no
9035       ;;
9036
9037     newsos6)
9038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039       hardcode_direct=yes
9040       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041       hardcode_libdir_separator=:
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     *nto* | *qnx*)
9046       ;;
9047
9048     openbsd*)
9049       if test -f /usr/libexec/ld.so; then
9050         hardcode_direct=yes
9051         hardcode_shlibpath_var=no
9052         hardcode_direct_absolute=yes
9053         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9054           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9055           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9056           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9057           export_dynamic_flag_spec='${wl}-E'
9058         else
9059           case $host_os in
9060            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9061              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062              hardcode_libdir_flag_spec='-R$libdir'
9063              ;;
9064            *)
9065              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9066              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9067              ;;
9068           esac
9069         fi
9070       else
9071         ld_shlibs=no
9072       fi
9073       ;;
9074
9075     os2*)
9076       hardcode_libdir_flag_spec='-L$libdir'
9077       hardcode_minus_L=yes
9078       allow_undefined_flag=unsupported
9079       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'
9080       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9081       ;;
9082
9083     osf3*)
9084       if test "$GCC" = yes; then
9085         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9086         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9087       else
9088         allow_undefined_flag=' -expect_unresolved \*'
9089         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9090       fi
9091       archive_cmds_need_lc='no'
9092       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9093       hardcode_libdir_separator=:
9094       ;;
9095
9096     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9097       if test "$GCC" = yes; then
9098         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9099         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9100         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101       else
9102         allow_undefined_flag=' -expect_unresolved \*'
9103         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9104         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~
9105         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9106
9107         # Both c and cxx compiler support -rpath directly
9108         hardcode_libdir_flag_spec='-rpath $libdir'
9109       fi
9110       archive_cmds_need_lc='no'
9111       hardcode_libdir_separator=:
9112       ;;
9113
9114     solaris*)
9115       no_undefined_flag=' -z defs'
9116       if test "$GCC" = yes; then
9117         wlarc='${wl}'
9118         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9119         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9120           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9121       else
9122         case `$CC -V 2>&1` in
9123         *"Compilers 5.0"*)
9124           wlarc=''
9125           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9127           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9128           ;;
9129         *)
9130           wlarc='${wl}'
9131           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9132           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9133           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9134           ;;
9135         esac
9136       fi
9137       hardcode_libdir_flag_spec='-R$libdir'
9138       hardcode_shlibpath_var=no
9139       case $host_os in
9140       solaris2.[0-5] | solaris2.[0-5].*) ;;
9141       *)
9142         # The compiler driver will combine and reorder linker options,
9143         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9144         # but is careful enough not to reorder.
9145         # Supported since Solaris 2.6 (maybe 2.5.1?)
9146         if test "$GCC" = yes; then
9147           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9148         else
9149           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9150         fi
9151         ;;
9152       esac
9153       link_all_deplibs=yes
9154       ;;
9155
9156     sunos4*)
9157       if test "x$host_vendor" = xsequent; then
9158         # Use $CC to link under sequent, because it throws in some extra .o
9159         # files that make .init and .fini sections work.
9160         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9161       else
9162         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9163       fi
9164       hardcode_libdir_flag_spec='-L$libdir'
9165       hardcode_direct=yes
9166       hardcode_minus_L=yes
9167       hardcode_shlibpath_var=no
9168       ;;
9169
9170     sysv4)
9171       case $host_vendor in
9172         sni)
9173           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174           hardcode_direct=yes # is this really true???
9175         ;;
9176         siemens)
9177           ## LD is ld it makes a PLAMLIB
9178           ## CC just makes a GrossModule.
9179           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9180           reload_cmds='$CC -r -o $output$reload_objs'
9181           hardcode_direct=no
9182         ;;
9183         motorola)
9184           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9185           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9186         ;;
9187       esac
9188       runpath_var='LD_RUN_PATH'
9189       hardcode_shlibpath_var=no
9190       ;;
9191
9192     sysv4.3*)
9193       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194       hardcode_shlibpath_var=no
9195       export_dynamic_flag_spec='-Bexport'
9196       ;;
9197
9198     sysv4*MP*)
9199       if test -d /usr/nec; then
9200         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9201         hardcode_shlibpath_var=no
9202         runpath_var=LD_RUN_PATH
9203         hardcode_runpath_var=yes
9204         ld_shlibs=yes
9205       fi
9206       ;;
9207
9208     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9209       no_undefined_flag='${wl}-z,text'
9210       archive_cmds_need_lc=no
9211       hardcode_shlibpath_var=no
9212       runpath_var='LD_RUN_PATH'
9213
9214       if test "$GCC" = yes; then
9215         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9216         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9217       else
9218         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9219         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9220       fi
9221       ;;
9222
9223     sysv5* | sco3.2v5* | sco5v6*)
9224       # Note: We can NOT use -z defs as we might desire, because we do not
9225       # link with -lc, and that would cause any symbols used from libc to
9226       # always be unresolved, which means just about no library would
9227       # ever link correctly.  If we're not using GNU ld we use -z text
9228       # though, which does catch some bad symbols but isn't as heavy-handed
9229       # as -z defs.
9230       no_undefined_flag='${wl}-z,text'
9231       allow_undefined_flag='${wl}-z,nodefs'
9232       archive_cmds_need_lc=no
9233       hardcode_shlibpath_var=no
9234       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9235       hardcode_libdir_separator=':'
9236       link_all_deplibs=yes
9237       export_dynamic_flag_spec='${wl}-Bexport'
9238       runpath_var='LD_RUN_PATH'
9239
9240       if test "$GCC" = yes; then
9241         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9242         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9243       else
9244         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9245         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9246       fi
9247       ;;
9248
9249     uts4*)
9250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251       hardcode_libdir_flag_spec='-L$libdir'
9252       hardcode_shlibpath_var=no
9253       ;;
9254
9255     *)
9256       ld_shlibs=no
9257       ;;
9258     esac
9259
9260     if test x$host_vendor = xsni; then
9261       case $host in
9262       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9263         export_dynamic_flag_spec='${wl}-Blargedynsym'
9264         ;;
9265       esac
9266     fi
9267   fi
9268
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9270 $as_echo "$ld_shlibs" >&6; }
9271 test "$ld_shlibs" = no && can_build_shared=no
9272
9273 with_gnu_ld=$with_gnu_ld
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289 #
9290 # Do we need to explicitly link libc?
9291 #
9292 case "x$archive_cmds_need_lc" in
9293 x|xyes)
9294   # Assume -lc should be added
9295   archive_cmds_need_lc=yes
9296
9297   if test "$enable_shared" = yes && test "$GCC" = yes; then
9298     case $archive_cmds in
9299     *'~'*)
9300       # FIXME: we may have to deal with multi-command sequences.
9301       ;;
9302     '$CC '*)
9303       # Test whether the compiler implicitly links with -lc since on some
9304       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9305       # to ld, don't add -lc before -lgcc.
9306       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9307 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9308       $RM conftest*
9309       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310
9311       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9312   (eval $ac_compile) 2>&5
9313   ac_status=$?
9314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9315   test $ac_status = 0; } 2>conftest.err; then
9316         soname=conftest
9317         lib=conftest
9318         libobjs=conftest.$ac_objext
9319         deplibs=
9320         wl=$lt_prog_compiler_wl
9321         pic_flag=$lt_prog_compiler_pic
9322         compiler_flags=-v
9323         linker_flags=-v
9324         verstring=
9325         output_objdir=.
9326         libname=conftest
9327         lt_save_allow_undefined_flag=$allow_undefined_flag
9328         allow_undefined_flag=
9329         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9330   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9331   ac_status=$?
9332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333   test $ac_status = 0; }
9334         then
9335           archive_cmds_need_lc=no
9336         else
9337           archive_cmds_need_lc=yes
9338         fi
9339         allow_undefined_flag=$lt_save_allow_undefined_flag
9340       else
9341         cat conftest.err 1>&5
9342       fi
9343       $RM conftest*
9344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9345 $as_echo "$archive_cmds_need_lc" >&6; }
9346       ;;
9347     esac
9348   fi
9349   ;;
9350 esac
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9509 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9510
9511 if test "$GCC" = yes; then
9512   case $host_os in
9513     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9514     *) lt_awk_arg="/^libraries:/" ;;
9515   esac
9516   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9517   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9518     # if the path contains ";" then we assume it to be the separator
9519     # otherwise default to the standard path separator (i.e. ":") - it is
9520     # assumed that no part of a normal pathname contains ";" but that should
9521     # okay in the real world where ";" in dirpaths is itself problematic.
9522     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9523   else
9524     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9525   fi
9526   # Ok, now we have the path, separated by spaces, we can step through it
9527   # and add multilib dir if necessary.
9528   lt_tmp_lt_search_path_spec=
9529   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9530   for lt_sys_path in $lt_search_path_spec; do
9531     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9532       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9533     else
9534       test -d "$lt_sys_path" && \
9535         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9536     fi
9537   done
9538   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9539 BEGIN {RS=" "; FS="/|\n";} {
9540   lt_foo="";
9541   lt_count=0;
9542   for (lt_i = NF; lt_i > 0; lt_i--) {
9543     if ($lt_i != "" && $lt_i != ".") {
9544       if ($lt_i == "..") {
9545         lt_count++;
9546       } else {
9547         if (lt_count == 0) {
9548           lt_foo="/" $lt_i lt_foo;
9549         } else {
9550           lt_count--;
9551         }
9552       }
9553     }
9554   }
9555   if (lt_foo != "") { lt_freq[lt_foo]++; }
9556   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9557 }'`
9558   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9559 else
9560   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9561 fi
9562 library_names_spec=
9563 libname_spec='lib$name'
9564 soname_spec=
9565 shrext_cmds=".so"
9566 postinstall_cmds=
9567 postuninstall_cmds=
9568 finish_cmds=
9569 finish_eval=
9570 shlibpath_var=
9571 shlibpath_overrides_runpath=unknown
9572 version_type=none
9573 dynamic_linker="$host_os ld.so"
9574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9575 need_lib_prefix=unknown
9576 hardcode_into_libs=no
9577
9578 # when you set need_version to no, make sure it does not cause -set_version
9579 # flags to be left without arguments
9580 need_version=unknown
9581
9582 case $host_os in
9583 aix3*)
9584   version_type=linux
9585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9586   shlibpath_var=LIBPATH
9587
9588   # AIX 3 has no versioning support, so we append a major version to the name.
9589   soname_spec='${libname}${release}${shared_ext}$major'
9590   ;;
9591
9592 aix[4-9]*)
9593   version_type=linux
9594   need_lib_prefix=no
9595   need_version=no
9596   hardcode_into_libs=yes
9597   if test "$host_cpu" = ia64; then
9598     # AIX 5 supports IA64
9599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9600     shlibpath_var=LD_LIBRARY_PATH
9601   else
9602     # With GCC up to 2.95.x, collect2 would create an import file
9603     # for dependence libraries.  The import file would start with
9604     # the line `#! .'.  This would cause the generated library to
9605     # depend on `.', always an invalid library.  This was fixed in
9606     # development snapshots of GCC prior to 3.0.
9607     case $host_os in
9608       aix4 | aix4.[01] | aix4.[01].*)
9609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9610            echo ' yes '
9611            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9612         :
9613       else
9614         can_build_shared=no
9615       fi
9616       ;;
9617     esac
9618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9619     # soname into executable. Probably we can add versioning support to
9620     # collect2, so additional links can be useful in future.
9621     if test "$aix_use_runtimelinking" = yes; then
9622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9623       # instead of lib<name>.a to let people know that these are not
9624       # typical AIX shared libraries.
9625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626     else
9627       # We preserve .a as extension for shared libraries through AIX4.2
9628       # and later when we are not doing run time linking.
9629       library_names_spec='${libname}${release}.a $libname.a'
9630       soname_spec='${libname}${release}${shared_ext}$major'
9631     fi
9632     shlibpath_var=LIBPATH
9633   fi
9634   ;;
9635
9636 amigaos*)
9637   case $host_cpu in
9638   powerpc)
9639     # Since July 2007 AmigaOS4 officially supports .so libraries.
9640     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642     ;;
9643   m68k)
9644     library_names_spec='$libname.ixlibrary $libname.a'
9645     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9646     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9647     ;;
9648   esac
9649   ;;
9650
9651 beos*)
9652   library_names_spec='${libname}${shared_ext}'
9653   dynamic_linker="$host_os ld.so"
9654   shlibpath_var=LIBRARY_PATH
9655   ;;
9656
9657 bsdi[45]*)
9658   version_type=linux
9659   need_version=no
9660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661   soname_spec='${libname}${release}${shared_ext}$major'
9662   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9663   shlibpath_var=LD_LIBRARY_PATH
9664   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9665   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9666   # the default ld.so.conf also contains /usr/contrib/lib and
9667   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9668   # libtool to hard-code these into programs
9669   ;;
9670
9671 cygwin* | mingw* | pw32* | cegcc*)
9672   version_type=windows
9673   shrext_cmds=".dll"
9674   need_version=no
9675   need_lib_prefix=no
9676
9677   case $GCC,$host_os in
9678   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9679     library_names_spec='$libname.dll.a'
9680     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9681     postinstall_cmds='base_file=`basename \${file}`~
9682       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9683       dldir=$destdir/`dirname \$dlpath`~
9684       test -d \$dldir || mkdir -p \$dldir~
9685       $install_prog $dir/$dlname \$dldir/$dlname~
9686       chmod a+x \$dldir/$dlname~
9687       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9688         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9689       fi'
9690     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9691       dlpath=$dir/\$dldll~
9692        $RM \$dlpath'
9693     shlibpath_overrides_runpath=yes
9694
9695     case $host_os in
9696     cygwin*)
9697       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9698       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9699       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9700       ;;
9701     mingw* | cegcc*)
9702       # MinGW DLLs use traditional 'lib' prefix
9703       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9704       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9705       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9706         # It is most probably a Windows format PATH printed by
9707         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9708         # path with ; separators, and with drive letters. We can handle the
9709         # drive letters (cygwin fileutils understands them), so leave them,
9710         # especially as we might pass files found there to a mingw objdump,
9711         # which wouldn't understand a cygwinified path. Ahh.
9712         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9713       else
9714         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9715       fi
9716       ;;
9717     pw32*)
9718       # pw32 DLLs use 'pw' prefix rather than 'lib'
9719       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9720       ;;
9721     esac
9722     ;;
9723
9724   *)
9725     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9726     ;;
9727   esac
9728   dynamic_linker='Win32 ld.exe'
9729   # FIXME: first we should search . and the directory the executable is in
9730   shlibpath_var=PATH
9731   ;;
9732
9733 darwin* | rhapsody*)
9734   dynamic_linker="$host_os dyld"
9735   version_type=darwin
9736   need_lib_prefix=no
9737   need_version=no
9738   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9739   soname_spec='${libname}${release}${major}$shared_ext'
9740   shlibpath_overrides_runpath=yes
9741   shlibpath_var=DYLD_LIBRARY_PATH
9742   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9743
9744   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9745   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9746   ;;
9747
9748 dgux*)
9749   version_type=linux
9750   need_lib_prefix=no
9751   need_version=no
9752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9753   soname_spec='${libname}${release}${shared_ext}$major'
9754   shlibpath_var=LD_LIBRARY_PATH
9755   ;;
9756
9757 freebsd1*)
9758   dynamic_linker=no
9759   ;;
9760
9761 freebsd* | dragonfly*)
9762   # DragonFly does not have aout.  When/if they implement a new
9763   # versioning mechanism, adjust this.
9764   if test -x /usr/bin/objformat; then
9765     objformat=`/usr/bin/objformat`
9766   else
9767     case $host_os in
9768     freebsd[123]*) objformat=aout ;;
9769     *) objformat=elf ;;
9770     esac
9771   fi
9772   version_type=freebsd-$objformat
9773   case $version_type in
9774     freebsd-elf*)
9775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776       need_version=no
9777       need_lib_prefix=no
9778       ;;
9779     freebsd-*)
9780       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9781       need_version=yes
9782       ;;
9783   esac
9784   shlibpath_var=LD_LIBRARY_PATH
9785   case $host_os in
9786   freebsd2*)
9787     shlibpath_overrides_runpath=yes
9788     ;;
9789   freebsd3.[01]* | freebsdelf3.[01]*)
9790     shlibpath_overrides_runpath=yes
9791     hardcode_into_libs=yes
9792     ;;
9793   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9794   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9795     shlibpath_overrides_runpath=no
9796     hardcode_into_libs=yes
9797     ;;
9798   *) # from 4.6 on, and DragonFly
9799     shlibpath_overrides_runpath=yes
9800     hardcode_into_libs=yes
9801     ;;
9802   esac
9803   ;;
9804
9805 gnu*)
9806   version_type=linux
9807   need_lib_prefix=no
9808   need_version=no
9809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9810   soname_spec='${libname}${release}${shared_ext}$major'
9811   shlibpath_var=LD_LIBRARY_PATH
9812   hardcode_into_libs=yes
9813   ;;
9814
9815 hpux9* | hpux10* | hpux11*)
9816   # Give a soname corresponding to the major version so that dld.sl refuses to
9817   # link against other versions.
9818   version_type=sunos
9819   need_lib_prefix=no
9820   need_version=no
9821   case $host_cpu in
9822   ia64*)
9823     shrext_cmds='.so'
9824     hardcode_into_libs=yes
9825     dynamic_linker="$host_os dld.so"
9826     shlibpath_var=LD_LIBRARY_PATH
9827     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829     soname_spec='${libname}${release}${shared_ext}$major'
9830     if test "X$HPUX_IA64_MODE" = X32; then
9831       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9832     else
9833       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9834     fi
9835     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9836     ;;
9837   hppa*64*)
9838     shrext_cmds='.sl'
9839     hardcode_into_libs=yes
9840     dynamic_linker="$host_os dld.sl"
9841     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9842     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844     soname_spec='${libname}${release}${shared_ext}$major'
9845     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9846     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9847     ;;
9848   *)
9849     shrext_cmds='.sl'
9850     dynamic_linker="$host_os dld.sl"
9851     shlibpath_var=SHLIB_PATH
9852     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854     soname_spec='${libname}${release}${shared_ext}$major'
9855     ;;
9856   esac
9857   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9858   postinstall_cmds='chmod 555 $lib'
9859   ;;
9860
9861 interix[3-9]*)
9862   version_type=linux
9863   need_lib_prefix=no
9864   need_version=no
9865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9866   soname_spec='${libname}${release}${shared_ext}$major'
9867   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9868   shlibpath_var=LD_LIBRARY_PATH
9869   shlibpath_overrides_runpath=no
9870   hardcode_into_libs=yes
9871   ;;
9872
9873 irix5* | irix6* | nonstopux*)
9874   case $host_os in
9875     nonstopux*) version_type=nonstopux ;;
9876     *)
9877         if test "$lt_cv_prog_gnu_ld" = yes; then
9878                 version_type=linux
9879         else
9880                 version_type=irix
9881         fi ;;
9882   esac
9883   need_lib_prefix=no
9884   need_version=no
9885   soname_spec='${libname}${release}${shared_ext}$major'
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9887   case $host_os in
9888   irix5* | nonstopux*)
9889     libsuff= shlibsuff=
9890     ;;
9891   *)
9892     case $LD in # libtool.m4 will add one of these switches to LD
9893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9894       libsuff= shlibsuff= libmagic=32-bit;;
9895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9896       libsuff=32 shlibsuff=N32 libmagic=N32;;
9897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9898       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9899     *) libsuff= shlibsuff= libmagic=never-match;;
9900     esac
9901     ;;
9902   esac
9903   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9904   shlibpath_overrides_runpath=no
9905   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9906   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9907   hardcode_into_libs=yes
9908   ;;
9909
9910 # No shared lib support for Linux oldld, aout, or coff.
9911 linux*oldld* | linux*aout* | linux*coff*)
9912   dynamic_linker=no
9913   ;;
9914
9915 # This must be Linux ELF.
9916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9917   version_type=linux
9918   need_lib_prefix=no
9919   need_version=no
9920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921   soname_spec='${libname}${release}${shared_ext}$major'
9922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9923   shlibpath_var=LD_LIBRARY_PATH
9924   shlibpath_overrides_runpath=no
9925   # Some binutils ld are patched to set DT_RUNPATH
9926   save_LDFLAGS=$LDFLAGS
9927   save_libdir=$libdir
9928   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9929        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h.  */
9932
9933 int
9934 main ()
9935 {
9936
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9943   shlibpath_overrides_runpath=yes
9944 fi
9945 fi
9946 rm -f core conftest.err conftest.$ac_objext \
9947     conftest$ac_exeext conftest.$ac_ext
9948   LDFLAGS=$save_LDFLAGS
9949   libdir=$save_libdir
9950
9951   # This implies no fast_install, which is unacceptable.
9952   # Some rework will be needed to allow for fast_install
9953   # before this can be enabled.
9954   hardcode_into_libs=yes
9955
9956   # Append ld.so.conf contents to the search path
9957   if test -f /etc/ld.so.conf; then
9958     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9959     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9960   fi
9961
9962   # We used to test for /lib/ld.so.1 and disable shared libraries on
9963   # powerpc, because MkLinux only supported shared libraries with the
9964   # GNU dynamic linker.  Since this was broken with cross compilers,
9965   # most powerpc-linux boxes support dynamic linking these days and
9966   # people can always --disable-shared, the test was removed, and we
9967   # assume the GNU/Linux dynamic linker is in use.
9968   dynamic_linker='GNU/Linux ld.so'
9969   ;;
9970
9971 netbsdelf*-gnu)
9972   version_type=linux
9973   need_lib_prefix=no
9974   need_version=no
9975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9976   soname_spec='${libname}${release}${shared_ext}$major'
9977   shlibpath_var=LD_LIBRARY_PATH
9978   shlibpath_overrides_runpath=no
9979   hardcode_into_libs=yes
9980   dynamic_linker='NetBSD ld.elf_so'
9981   ;;
9982
9983 netbsd*)
9984   version_type=sunos
9985   need_lib_prefix=no
9986   need_version=no
9987   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9989     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9990     dynamic_linker='NetBSD (a.out) ld.so'
9991   else
9992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9993     soname_spec='${libname}${release}${shared_ext}$major'
9994     dynamic_linker='NetBSD ld.elf_so'
9995   fi
9996   shlibpath_var=LD_LIBRARY_PATH
9997   shlibpath_overrides_runpath=yes
9998   hardcode_into_libs=yes
9999   ;;
10000
10001 newsos6)
10002   version_type=linux
10003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004   shlibpath_var=LD_LIBRARY_PATH
10005   shlibpath_overrides_runpath=yes
10006   ;;
10007
10008 *nto* | *qnx*)
10009   version_type=qnx
10010   need_lib_prefix=no
10011   need_version=no
10012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013   soname_spec='${libname}${release}${shared_ext}$major'
10014   shlibpath_var=LD_LIBRARY_PATH
10015   shlibpath_overrides_runpath=no
10016   hardcode_into_libs=yes
10017   dynamic_linker='ldqnx.so'
10018   ;;
10019
10020 openbsd*)
10021   version_type=sunos
10022   sys_lib_dlsearch_path_spec="/usr/lib"
10023   need_lib_prefix=no
10024   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10025   case $host_os in
10026     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10027     *)                          need_version=no  ;;
10028   esac
10029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10031   shlibpath_var=LD_LIBRARY_PATH
10032   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10033     case $host_os in
10034       openbsd2.[89] | openbsd2.[89].*)
10035         shlibpath_overrides_runpath=no
10036         ;;
10037       *)
10038         shlibpath_overrides_runpath=yes
10039         ;;
10040       esac
10041   else
10042     shlibpath_overrides_runpath=yes
10043   fi
10044   ;;
10045
10046 os2*)
10047   libname_spec='$name'
10048   shrext_cmds=".dll"
10049   need_lib_prefix=no
10050   library_names_spec='$libname${shared_ext} $libname.a'
10051   dynamic_linker='OS/2 ld.exe'
10052   shlibpath_var=LIBPATH
10053   ;;
10054
10055 osf3* | osf4* | osf5*)
10056   version_type=osf
10057   need_lib_prefix=no
10058   need_version=no
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   shlibpath_var=LD_LIBRARY_PATH
10062   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10063   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10064   ;;
10065
10066 rdos*)
10067   dynamic_linker=no
10068   ;;
10069
10070 solaris*)
10071   version_type=linux
10072   need_lib_prefix=no
10073   need_version=no
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   shlibpath_var=LD_LIBRARY_PATH
10077   shlibpath_overrides_runpath=yes
10078   hardcode_into_libs=yes
10079   # ldd complains unless libraries are executable
10080   postinstall_cmds='chmod +x $lib'
10081   ;;
10082
10083 sunos4*)
10084   version_type=sunos
10085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10087   shlibpath_var=LD_LIBRARY_PATH
10088   shlibpath_overrides_runpath=yes
10089   if test "$with_gnu_ld" = yes; then
10090     need_lib_prefix=no
10091   fi
10092   need_version=yes
10093   ;;
10094
10095 sysv4 | sysv4.3*)
10096   version_type=linux
10097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098   soname_spec='${libname}${release}${shared_ext}$major'
10099   shlibpath_var=LD_LIBRARY_PATH
10100   case $host_vendor in
10101     sni)
10102       shlibpath_overrides_runpath=no
10103       need_lib_prefix=no
10104       runpath_var=LD_RUN_PATH
10105       ;;
10106     siemens)
10107       need_lib_prefix=no
10108       ;;
10109     motorola)
10110       need_lib_prefix=no
10111       need_version=no
10112       shlibpath_overrides_runpath=no
10113       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10114       ;;
10115   esac
10116   ;;
10117
10118 sysv4*MP*)
10119   if test -d /usr/nec ;then
10120     version_type=linux
10121     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10122     soname_spec='$libname${shared_ext}.$major'
10123     shlibpath_var=LD_LIBRARY_PATH
10124   fi
10125   ;;
10126
10127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10128   version_type=freebsd-elf
10129   need_lib_prefix=no
10130   need_version=no
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10132   soname_spec='${libname}${release}${shared_ext}$major'
10133   shlibpath_var=LD_LIBRARY_PATH
10134   shlibpath_overrides_runpath=yes
10135   hardcode_into_libs=yes
10136   if test "$with_gnu_ld" = yes; then
10137     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10138   else
10139     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10140     case $host_os in
10141       sco3.2v5*)
10142         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10143         ;;
10144     esac
10145   fi
10146   sys_lib_dlsearch_path_spec='/usr/lib'
10147   ;;
10148
10149 tpf*)
10150   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10151   version_type=linux
10152   need_lib_prefix=no
10153   need_version=no
10154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155   shlibpath_var=LD_LIBRARY_PATH
10156   shlibpath_overrides_runpath=no
10157   hardcode_into_libs=yes
10158   ;;
10159
10160 uts4*)
10161   version_type=linux
10162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163   soname_spec='${libname}${release}${shared_ext}$major'
10164   shlibpath_var=LD_LIBRARY_PATH
10165   ;;
10166
10167 *)
10168   dynamic_linker=no
10169   ;;
10170 esac
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10172 $as_echo "$dynamic_linker" >&6; }
10173 test "$dynamic_linker" = no && can_build_shared=no
10174
10175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10176 if test "$GCC" = yes; then
10177   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10178 fi
10179
10180 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10181   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10182 fi
10183 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10184   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10185 fi
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10274 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10275 hardcode_action=
10276 if test -n "$hardcode_libdir_flag_spec" ||
10277    test -n "$runpath_var" ||
10278    test "X$hardcode_automatic" = "Xyes" ; then
10279
10280   # We can hardcode non-existent directories.
10281   if test "$hardcode_direct" != no &&
10282      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10283      # have to relink, otherwise we might link with an installed library
10284      # when we should be linking with a yet-to-be-installed one
10285      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10286      test "$hardcode_minus_L" != no; then
10287     # Linking always hardcodes the temporary library directory.
10288     hardcode_action=relink
10289   else
10290     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10291     hardcode_action=immediate
10292   fi
10293 else
10294   # We cannot hardcode anything, or else we can only hardcode existing
10295   # directories.
10296   hardcode_action=unsupported
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10299 $as_echo "$hardcode_action" >&6; }
10300
10301 if test "$hardcode_action" = relink ||
10302    test "$inherit_rpath" = yes; then
10303   # Fast installation is not supported
10304   enable_fast_install=no
10305 elif test "$shlibpath_overrides_runpath" = yes ||
10306      test "$enable_shared" = no; then
10307   # Fast installation is not necessary
10308   enable_fast_install=needless
10309 fi
10310
10311
10312
10313
10314
10315
10316   if test "x$enable_dlopen" != xyes; then
10317   enable_dlopen=unknown
10318   enable_dlopen_self=unknown
10319   enable_dlopen_self_static=unknown
10320 else
10321   lt_cv_dlopen=no
10322   lt_cv_dlopen_libs=
10323
10324   case $host_os in
10325   beos*)
10326     lt_cv_dlopen="load_add_on"
10327     lt_cv_dlopen_libs=
10328     lt_cv_dlopen_self=yes
10329     ;;
10330
10331   mingw* | pw32* | cegcc*)
10332     lt_cv_dlopen="LoadLibrary"
10333     lt_cv_dlopen_libs=
10334     ;;
10335
10336   cygwin*)
10337     lt_cv_dlopen="dlopen"
10338     lt_cv_dlopen_libs=
10339     ;;
10340
10341   darwin*)
10342   # if libdl is installed we need to link against it
10343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10346   $as_echo_n "(cached) " >&6
10347 else
10348   ac_check_lib_save_LIBS=$LIBS
10349 LIBS="-ldl  $LIBS"
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h.  */
10352
10353 /* Override any GCC internal prototype to avoid an error.
10354    Use char because int might match the return type of a GCC
10355    builtin and then its argument prototype would still apply.  */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 char dlopen ();
10360 int
10361 main ()
10362 {
10363 return dlopen ();
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369   ac_cv_lib_dl_dlopen=yes
10370 else
10371   ac_cv_lib_dl_dlopen=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374     conftest$ac_exeext conftest.$ac_ext
10375 LIBS=$ac_check_lib_save_LIBS
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10379 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10381 else
10382
10383     lt_cv_dlopen="dyld"
10384     lt_cv_dlopen_libs=
10385     lt_cv_dlopen_self=yes
10386
10387 fi
10388
10389     ;;
10390
10391   *)
10392     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10393 if test "x$ac_cv_func_shl_load" = x""yes; then :
10394   lt_cv_dlopen="shl_load"
10395 else
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10397 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10398 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10399   $as_echo_n "(cached) " >&6
10400 else
10401   ac_check_lib_save_LIBS=$LIBS
10402 LIBS="-ldld  $LIBS"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 /* Override any GCC internal prototype to avoid an error.
10407    Use char because int might match the return type of a GCC
10408    builtin and then its argument prototype would still apply.  */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char shl_load ();
10413 int
10414 main ()
10415 {
10416 return shl_load ();
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   ac_cv_lib_dld_shl_load=yes
10423 else
10424   ac_cv_lib_dld_shl_load=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428 LIBS=$ac_check_lib_save_LIBS
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10431 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10432 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10433   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10434 else
10435   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10436 if test "x$ac_cv_func_dlopen" = x""yes; then :
10437   lt_cv_dlopen="dlopen"
10438 else
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10440 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-ldl  $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h.  */
10448
10449 /* Override any GCC internal prototype to avoid an error.
10450    Use char because int might match the return type of a GCC
10451    builtin and then its argument prototype would still apply.  */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char dlopen ();
10456 int
10457 main ()
10458 {
10459 return dlopen ();
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465   ac_cv_lib_dl_dlopen=yes
10466 else
10467   ac_cv_lib_dl_dlopen=no
10468 fi
10469 rm -f core conftest.err conftest.$ac_objext \
10470     conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10472 fi
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10474 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10475 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10476   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10477 else
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10479 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10480 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10481   $as_echo_n "(cached) " >&6
10482 else
10483   ac_check_lib_save_LIBS=$LIBS
10484 LIBS="-lsvld  $LIBS"
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h.  */
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489    Use char because int might match the return type of a GCC
10490    builtin and then its argument prototype would still apply.  */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char dlopen ();
10495 int
10496 main ()
10497 {
10498 return dlopen ();
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_link "$LINENO"; then :
10504   ac_cv_lib_svld_dlopen=yes
10505 else
10506   ac_cv_lib_svld_dlopen=no
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext \
10509     conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10511 fi
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10513 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10514 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10516 else
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10518 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10519 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10520   $as_echo_n "(cached) " >&6
10521 else
10522   ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-ldld  $LIBS"
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h.  */
10526
10527 /* Override any GCC internal prototype to avoid an error.
10528    Use char because int might match the return type of a GCC
10529    builtin and then its argument prototype would still apply.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char dld_link ();
10534 int
10535 main ()
10536 {
10537 return dld_link ();
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 if ac_fn_c_try_link "$LINENO"; then :
10543   ac_cv_lib_dld_dld_link=yes
10544 else
10545   ac_cv_lib_dld_dld_link=no
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext \
10548     conftest$ac_exeext conftest.$ac_ext
10549 LIBS=$ac_check_lib_save_LIBS
10550 fi
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10552 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10553 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10554   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10555 fi
10556
10557
10558 fi
10559
10560
10561 fi
10562
10563
10564 fi
10565
10566
10567 fi
10568
10569
10570 fi
10571
10572     ;;
10573   esac
10574
10575   if test "x$lt_cv_dlopen" != xno; then
10576     enable_dlopen=yes
10577   else
10578     enable_dlopen=no
10579   fi
10580
10581   case $lt_cv_dlopen in
10582   dlopen)
10583     save_CPPFLAGS="$CPPFLAGS"
10584     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10585
10586     save_LDFLAGS="$LDFLAGS"
10587     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10588
10589     save_LIBS="$LIBS"
10590     LIBS="$lt_cv_dlopen_libs $LIBS"
10591
10592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10593 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10594 if test "${lt_cv_dlopen_self+set}" = set; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597           if test "$cross_compiling" = yes; then :
10598   lt_cv_dlopen_self=cross
10599 else
10600   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10601   lt_status=$lt_dlunknown
10602   cat > conftest.$ac_ext <<_LT_EOF
10603 #line 10603 "configure"
10604 #include "confdefs.h"
10605
10606 #if HAVE_DLFCN_H
10607 #include <dlfcn.h>
10608 #endif
10609
10610 #include <stdio.h>
10611
10612 #ifdef RTLD_GLOBAL
10613 #  define LT_DLGLOBAL           RTLD_GLOBAL
10614 #else
10615 #  ifdef DL_GLOBAL
10616 #    define LT_DLGLOBAL         DL_GLOBAL
10617 #  else
10618 #    define LT_DLGLOBAL         0
10619 #  endif
10620 #endif
10621
10622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10623    find out it does not work in some platform. */
10624 #ifndef LT_DLLAZY_OR_NOW
10625 #  ifdef RTLD_LAZY
10626 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10627 #  else
10628 #    ifdef DL_LAZY
10629 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10630 #    else
10631 #      ifdef RTLD_NOW
10632 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10633 #      else
10634 #        ifdef DL_NOW
10635 #          define LT_DLLAZY_OR_NOW      DL_NOW
10636 #        else
10637 #          define LT_DLLAZY_OR_NOW      0
10638 #        endif
10639 #      endif
10640 #    endif
10641 #  endif
10642 #endif
10643
10644 void fnord() { int i=42;}
10645 int main ()
10646 {
10647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648   int status = $lt_dlunknown;
10649
10650   if (self)
10651     {
10652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654       /* dlclose (self); */
10655     }
10656   else
10657     puts (dlerror ());
10658
10659   return status;
10660 }
10661 _LT_EOF
10662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10663   (eval $ac_link) 2>&5
10664   ac_status=$?
10665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10666   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10667     (./conftest; exit; ) >&5 2>/dev/null
10668     lt_status=$?
10669     case x$lt_status in
10670       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10671       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10672       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10673     esac
10674   else :
10675     # compilation failed
10676     lt_cv_dlopen_self=no
10677   fi
10678 fi
10679 rm -fr conftest*
10680
10681
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10684 $as_echo "$lt_cv_dlopen_self" >&6; }
10685
10686     if test "x$lt_cv_dlopen_self" = xyes; then
10687       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10689 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10690 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10691   $as_echo_n "(cached) " >&6
10692 else
10693           if test "$cross_compiling" = yes; then :
10694   lt_cv_dlopen_self_static=cross
10695 else
10696   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10697   lt_status=$lt_dlunknown
10698   cat > conftest.$ac_ext <<_LT_EOF
10699 #line 10699 "configure"
10700 #include "confdefs.h"
10701
10702 #if HAVE_DLFCN_H
10703 #include <dlfcn.h>
10704 #endif
10705
10706 #include <stdio.h>
10707
10708 #ifdef RTLD_GLOBAL
10709 #  define LT_DLGLOBAL           RTLD_GLOBAL
10710 #else
10711 #  ifdef DL_GLOBAL
10712 #    define LT_DLGLOBAL         DL_GLOBAL
10713 #  else
10714 #    define LT_DLGLOBAL         0
10715 #  endif
10716 #endif
10717
10718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10719    find out it does not work in some platform. */
10720 #ifndef LT_DLLAZY_OR_NOW
10721 #  ifdef RTLD_LAZY
10722 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10723 #  else
10724 #    ifdef DL_LAZY
10725 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10726 #    else
10727 #      ifdef RTLD_NOW
10728 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10729 #      else
10730 #        ifdef DL_NOW
10731 #          define LT_DLLAZY_OR_NOW      DL_NOW
10732 #        else
10733 #          define LT_DLLAZY_OR_NOW      0
10734 #        endif
10735 #      endif
10736 #    endif
10737 #  endif
10738 #endif
10739
10740 void fnord() { int i=42;}
10741 int main ()
10742 {
10743   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10744   int status = $lt_dlunknown;
10745
10746   if (self)
10747     {
10748       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10749       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10750       /* dlclose (self); */
10751     }
10752   else
10753     puts (dlerror ());
10754
10755   return status;
10756 }
10757 _LT_EOF
10758   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10759   (eval $ac_link) 2>&5
10760   ac_status=$?
10761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10763     (./conftest; exit; ) >&5 2>/dev/null
10764     lt_status=$?
10765     case x$lt_status in
10766       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10767       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10768       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10769     esac
10770   else :
10771     # compilation failed
10772     lt_cv_dlopen_self_static=no
10773   fi
10774 fi
10775 rm -fr conftest*
10776
10777
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10780 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10781     fi
10782
10783     CPPFLAGS="$save_CPPFLAGS"
10784     LDFLAGS="$save_LDFLAGS"
10785     LIBS="$save_LIBS"
10786     ;;
10787   esac
10788
10789   case $lt_cv_dlopen_self in
10790   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10791   *) enable_dlopen_self=unknown ;;
10792   esac
10793
10794   case $lt_cv_dlopen_self_static in
10795   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10796   *) enable_dlopen_self_static=unknown ;;
10797   esac
10798 fi
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 striplib=
10817 old_striplib=
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10819 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10820 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10821   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10822   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10824 $as_echo "yes" >&6; }
10825 else
10826 # FIXME - insert some real tests, host_os isn't really good enough
10827   case $host_os in
10828   darwin*)
10829     if test -n "$STRIP" ; then
10830       striplib="$STRIP -x"
10831       old_striplib="$STRIP -S"
10832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10833 $as_echo "yes" >&6; }
10834     else
10835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10837     fi
10838     ;;
10839   *)
10840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842     ;;
10843   esac
10844 fi
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857   # Report which library types will actually be built
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10859 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10861 $as_echo "$can_build_shared" >&6; }
10862
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10864 $as_echo_n "checking whether to build shared libraries... " >&6; }
10865   test "$can_build_shared" = "no" && enable_shared=no
10866
10867   # On AIX, shared libraries and static libraries use the same namespace, and
10868   # are all built from PIC.
10869   case $host_os in
10870   aix3*)
10871     test "$enable_shared" = yes && enable_static=no
10872     if test -n "$RANLIB"; then
10873       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10874       postinstall_cmds='$RANLIB $lib'
10875     fi
10876     ;;
10877
10878   aix[4-9]*)
10879     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10880       test "$enable_shared" = yes && enable_static=no
10881     fi
10882     ;;
10883   esac
10884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10885 $as_echo "$enable_shared" >&6; }
10886
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10888 $as_echo_n "checking whether to build static libraries... " >&6; }
10889   # Make sure either enable_shared or enable_static is yes.
10890   test "$enable_shared" = yes || enable_static=yes
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10892 $as_echo "$enable_static" >&6; }
10893
10894
10895
10896
10897 fi
10898 ac_ext=c
10899 ac_cpp='$CPP $CPPFLAGS'
10900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10903
10904 CC="$lt_save_CC"
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918         ac_config_commands="$ac_config_commands libtool"
10919
10920
10921
10922
10923 # Only expand once:
10924
10925
10926
10927 # Checks for programs.
10928
10929
10930
10931
10932
10933
10934
10935 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10936         if test -n "$ac_tool_prefix"; then
10937   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10938 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   case $PKG_CONFIG in
10945   [\\/]* | ?:[\\/]*)
10946   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10947   ;;
10948   *)
10949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10951 do
10952   IFS=$as_save_IFS
10953   test -z "$as_dir" && as_dir=.
10954     for ac_exec_ext in '' $ac_executable_extensions; do
10955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958     break 2
10959   fi
10960 done
10961   done
10962 IFS=$as_save_IFS
10963
10964   ;;
10965 esac
10966 fi
10967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10968 if test -n "$PKG_CONFIG"; then
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10970 $as_echo "$PKG_CONFIG" >&6; }
10971 else
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10974 fi
10975
10976
10977 fi
10978 if test -z "$ac_cv_path_PKG_CONFIG"; then
10979   ac_pt_PKG_CONFIG=$PKG_CONFIG
10980   # Extract the first word of "pkg-config", so it can be a program name with args.
10981 set dummy pkg-config; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   case $ac_pt_PKG_CONFIG in
10988   [\\/]* | ?:[\\/]*)
10989   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10990   ;;
10991   *)
10992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995   IFS=$as_save_IFS
10996   test -z "$as_dir" && as_dir=.
10997     for ac_exec_ext in '' $ac_executable_extensions; do
10998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001     break 2
11002   fi
11003 done
11004   done
11005 IFS=$as_save_IFS
11006
11007   ;;
11008 esac
11009 fi
11010 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11011 if test -n "$ac_pt_PKG_CONFIG"; then
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11013 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11014 else
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11017 fi
11018
11019   if test "x$ac_pt_PKG_CONFIG" = x; then
11020     PKG_CONFIG=""
11021   else
11022     case $cross_compiling:$ac_tool_warned in
11023 yes:)
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11026 ac_tool_warned=yes ;;
11027 esac
11028     PKG_CONFIG=$ac_pt_PKG_CONFIG
11029   fi
11030 else
11031   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11032 fi
11033
11034 fi
11035 if test -n "$PKG_CONFIG"; then
11036         _pkg_min_version=0.23
11037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11038 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11039         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11040                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11041 $as_echo "yes" >&6; }
11042         else
11043                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045                 PKG_CONFIG=""
11046         fi
11047 fi
11048 ac_ext=c
11049 ac_cpp='$CPP $CPPFLAGS'
11050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11053 if test -n "$ac_tool_prefix"; then
11054   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if test "${ac_cv_prog_CC+set}" = set; then :
11059   $as_echo_n "(cached) " >&6
11060 else
11061   if test -n "$CC"; then
11062   ac_cv_prog_CC="$CC" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11066 do
11067   IFS=$as_save_IFS
11068   test -z "$as_dir" && as_dir=.
11069     for ac_exec_ext in '' $ac_executable_extensions; do
11070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073     break 2
11074   fi
11075 done
11076   done
11077 IFS=$as_save_IFS
11078
11079 fi
11080 fi
11081 CC=$ac_cv_prog_CC
11082 if test -n "$CC"; then
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11084 $as_echo "$CC" >&6; }
11085 else
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11088 fi
11089
11090
11091 fi
11092 if test -z "$ac_cv_prog_CC"; then
11093   ac_ct_CC=$CC
11094   # Extract the first word of "gcc", so it can be a program name with args.
11095 set dummy gcc; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11099   $as_echo_n "(cached) " >&6
11100 else
11101   if test -n "$ac_ct_CC"; then
11102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107   IFS=$as_save_IFS
11108   test -z "$as_dir" && as_dir=.
11109     for ac_exec_ext in '' $ac_executable_extensions; do
11110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111     ac_cv_prog_ac_ct_CC="gcc"
11112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113     break 2
11114   fi
11115 done
11116   done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11122 if test -n "$ac_ct_CC"; then
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11124 $as_echo "$ac_ct_CC" >&6; }
11125 else
11126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130   if test "x$ac_ct_CC" = x; then
11131     CC=""
11132   else
11133     case $cross_compiling:$ac_tool_warned in
11134 yes:)
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11137 ac_tool_warned=yes ;;
11138 esac
11139     CC=$ac_ct_CC
11140   fi
11141 else
11142   CC="$ac_cv_prog_CC"
11143 fi
11144
11145 if test -z "$CC"; then
11146           if test -n "$ac_tool_prefix"; then
11147     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11148 set dummy ${ac_tool_prefix}cc; ac_word=$2
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150 $as_echo_n "checking for $ac_word... " >&6; }
11151 if test "${ac_cv_prog_CC+set}" = set; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   if test -n "$CC"; then
11155   ac_cv_prog_CC="$CC" # Let the user override the test.
11156 else
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160   IFS=$as_save_IFS
11161   test -z "$as_dir" && as_dir=.
11162     for ac_exec_ext in '' $ac_executable_extensions; do
11163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164     ac_cv_prog_CC="${ac_tool_prefix}cc"
11165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166     break 2
11167   fi
11168 done
11169   done
11170 IFS=$as_save_IFS
11171
11172 fi
11173 fi
11174 CC=$ac_cv_prog_CC
11175 if test -n "$CC"; then
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11177 $as_echo "$CC" >&6; }
11178 else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181 fi
11182
11183
11184   fi
11185 fi
11186 if test -z "$CC"; then
11187   # Extract the first word of "cc", so it can be a program name with args.
11188 set dummy cc; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if test "${ac_cv_prog_CC+set}" = set; then :
11192   $as_echo_n "(cached) " >&6
11193 else
11194   if test -n "$CC"; then
11195   ac_cv_prog_CC="$CC" # Let the user override the test.
11196 else
11197   ac_prog_rejected=no
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201   IFS=$as_save_IFS
11202   test -z "$as_dir" && as_dir=.
11203     for ac_exec_ext in '' $ac_executable_extensions; do
11204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11206        ac_prog_rejected=yes
11207        continue
11208      fi
11209     ac_cv_prog_CC="cc"
11210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211     break 2
11212   fi
11213 done
11214   done
11215 IFS=$as_save_IFS
11216
11217 if test $ac_prog_rejected = yes; then
11218   # We found a bogon in the path, so make sure we never use it.
11219   set dummy $ac_cv_prog_CC
11220   shift
11221   if test $# != 0; then
11222     # We chose a different compiler from the bogus one.
11223     # However, it has the same basename, so the bogon will be chosen
11224     # first if we set CC to just the basename; use the full file name.
11225     shift
11226     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11227   fi
11228 fi
11229 fi
11230 fi
11231 CC=$ac_cv_prog_CC
11232 if test -n "$CC"; then
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11234 $as_echo "$CC" >&6; }
11235 else
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238 fi
11239
11240
11241 fi
11242 if test -z "$CC"; then
11243   if test -n "$ac_tool_prefix"; then
11244   for ac_prog in cl.exe
11245   do
11246     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if test "${ac_cv_prog_CC+set}" = set; then :
11251   $as_echo_n "(cached) " >&6
11252 else
11253   if test -n "$CC"; then
11254   ac_cv_prog_CC="$CC" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259   IFS=$as_save_IFS
11260   test -z "$as_dir" && as_dir=.
11261     for ac_exec_ext in '' $ac_executable_extensions; do
11262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11263     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265     break 2
11266   fi
11267 done
11268   done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 CC=$ac_cv_prog_CC
11274 if test -n "$CC"; then
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11276 $as_echo "$CC" >&6; }
11277 else
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283     test -n "$CC" && break
11284   done
11285 fi
11286 if test -z "$CC"; then
11287   ac_ct_CC=$CC
11288   for ac_prog in cl.exe
11289 do
11290   # Extract the first word of "$ac_prog", so it can be a program name with args.
11291 set dummy $ac_prog; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297   if test -n "$ac_ct_CC"; then
11298   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11307     ac_cv_prog_ac_ct_CC="$ac_prog"
11308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11318 if test -n "$ac_ct_CC"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11320 $as_echo "$ac_ct_CC" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326
11327   test -n "$ac_ct_CC" && break
11328 done
11329
11330   if test "x$ac_ct_CC" = x; then
11331     CC=""
11332   else
11333     case $cross_compiling:$ac_tool_warned in
11334 yes:)
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11337 ac_tool_warned=yes ;;
11338 esac
11339     CC=$ac_ct_CC
11340   fi
11341 fi
11342
11343 fi
11344
11345
11346 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11348 as_fn_error $? "no acceptable C compiler found in \$PATH
11349 See \`config.log' for more details" "$LINENO" 5 ; }
11350
11351 # Provide some information about the compiler.
11352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11353 set X $ac_compile
11354 ac_compiler=$2
11355 for ac_option in --version -v -V -qversion; do
11356   { { ac_try="$ac_compiler $ac_option >&5"
11357 case "(($ac_try" in
11358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359   *) ac_try_echo=$ac_try;;
11360 esac
11361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11362 $as_echo "$ac_try_echo"; } >&5
11363   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11364   ac_status=$?
11365   if test -s conftest.err; then
11366     sed '10a\
11367 ... rest of stderr output deleted ...
11368          10q' conftest.err >conftest.er1
11369     cat conftest.er1 >&5
11370   fi
11371   rm -f conftest.er1 conftest.err
11372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373   test $ac_status = 0; }
11374 done
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11377 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11378 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h.  */
11383
11384 int
11385 main ()
11386 {
11387 #ifndef __GNUC__
11388        choke me
11389 #endif
11390
11391   ;
11392   return 0;
11393 }
11394 _ACEOF
11395 if ac_fn_c_try_compile "$LINENO"; then :
11396   ac_compiler_gnu=yes
11397 else
11398   ac_compiler_gnu=no
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11402
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11405 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11406 if test $ac_compiler_gnu = yes; then
11407   GCC=yes
11408 else
11409   GCC=
11410 fi
11411 ac_test_CFLAGS=${CFLAGS+set}
11412 ac_save_CFLAGS=$CFLAGS
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11414 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11415 if test "${ac_cv_prog_cc_g+set}" = set; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   ac_save_c_werror_flag=$ac_c_werror_flag
11419    ac_c_werror_flag=yes
11420    ac_cv_prog_cc_g=no
11421    CFLAGS="-g"
11422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h.  */
11424
11425 int
11426 main ()
11427 {
11428
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_c_try_compile "$LINENO"; then :
11434   ac_cv_prog_cc_g=yes
11435 else
11436   CFLAGS=""
11437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h.  */
11439
11440 int
11441 main ()
11442 {
11443
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_compile "$LINENO"; then :
11449
11450 else
11451   ac_c_werror_flag=$ac_save_c_werror_flag
11452          CFLAGS="-g"
11453          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h.  */
11455
11456 int
11457 main ()
11458 {
11459
11460   ;
11461   return 0;
11462 }
11463 _ACEOF
11464 if ac_fn_c_try_compile "$LINENO"; then :
11465   ac_cv_prog_cc_g=yes
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472    ac_c_werror_flag=$ac_save_c_werror_flag
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11475 $as_echo "$ac_cv_prog_cc_g" >&6; }
11476 if test "$ac_test_CFLAGS" = set; then
11477   CFLAGS=$ac_save_CFLAGS
11478 elif test $ac_cv_prog_cc_g = yes; then
11479   if test "$GCC" = yes; then
11480     CFLAGS="-g -O2"
11481   else
11482     CFLAGS="-g"
11483   fi
11484 else
11485   if test "$GCC" = yes; then
11486     CFLAGS="-O2"
11487   else
11488     CFLAGS=
11489   fi
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11492 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11493 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   ac_cv_prog_cc_c89=no
11497 ac_save_CC=$CC
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h.  */
11500 #include <stdarg.h>
11501 #include <stdio.h>
11502 #include <sys/types.h>
11503 #include <sys/stat.h>
11504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11505 struct buf { int x; };
11506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11507 static char *e (p, i)
11508      char **p;
11509      int i;
11510 {
11511   return p[i];
11512 }
11513 static char *f (char * (*g) (char **, int), char **p, ...)
11514 {
11515   char *s;
11516   va_list v;
11517   va_start (v,p);
11518   s = g (p, va_arg (v,int));
11519   va_end (v);
11520   return s;
11521 }
11522
11523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11524    function prototypes and stuff, but not '\xHH' hex character constants.
11525    These don't provoke an error unfortunately, instead are silently treated
11526    as 'x'.  The following induces an error, until -std is added to get
11527    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11528    array size at least.  It's necessary to write '\x00'==0 to get something
11529    that's true only with -std.  */
11530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11531
11532 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11533    inside strings and character constants.  */
11534 #define FOO(x) 'x'
11535 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11536
11537 int test (int i, double x);
11538 struct s1 {int (*f) (int a);};
11539 struct s2 {int (*f) (double a);};
11540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11541 int argc;
11542 char **argv;
11543 int
11544 main ()
11545 {
11546 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11552         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11553 do
11554   CC="$ac_save_CC $ac_arg"
11555   if ac_fn_c_try_compile "$LINENO"; then :
11556   ac_cv_prog_cc_c89=$ac_arg
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext
11559   test "x$ac_cv_prog_cc_c89" != "xno" && break
11560 done
11561 rm -f conftest.$ac_ext
11562 CC=$ac_save_CC
11563
11564 fi
11565 # AC_CACHE_VAL
11566 case "x$ac_cv_prog_cc_c89" in
11567   x)
11568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11569 $as_echo "none needed" >&6; } ;;
11570   xno)
11571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11572 $as_echo "unsupported" >&6; } ;;
11573   *)
11574     CC="$CC $ac_cv_prog_cc_c89"
11575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11576 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11577 esac
11578 if test "x$ac_cv_prog_cc_c89" != xno; then :
11579
11580 fi
11581
11582 ac_ext=c
11583 ac_cpp='$CPP $CPPFLAGS'
11584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11587
11588 depcc="$CC"   am_compiler_list=
11589
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11591 $as_echo_n "checking dependency style of $depcc... " >&6; }
11592 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11596   # We make a subdir and do the tests there.  Otherwise we can end up
11597   # making bogus files that we don't know about and never remove.  For
11598   # instance it was reported that on HP-UX the gcc test will end up
11599   # making a dummy file named `D' -- because `-MD' means `put the output
11600   # in D'.
11601   mkdir conftest.dir
11602   # Copy depcomp to subdir because otherwise we won't find it if we're
11603   # using a relative directory.
11604   cp "$am_depcomp" conftest.dir
11605   cd conftest.dir
11606   # We will build objects and dependencies in a subdirectory because
11607   # it helps to detect inapplicable dependency modes.  For instance
11608   # both Tru64's cc and ICC support -MD to output dependencies as a
11609   # side effect of compilation, but ICC will put the dependencies in
11610   # the current directory while Tru64 will put them in the object
11611   # directory.
11612   mkdir sub
11613
11614   am_cv_CC_dependencies_compiler_type=none
11615   if test "$am_compiler_list" = ""; then
11616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11617   fi
11618   am__universal=false
11619   case " $depcc " in #(
11620      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11621      esac
11622
11623   for depmode in $am_compiler_list; do
11624     # Setup a source with many dependencies, because some compilers
11625     # like to wrap large dependency lists on column 80 (with \), and
11626     # we should not choose a depcomp mode which is confused by this.
11627     #
11628     # We need to recreate these files for each test, as the compiler may
11629     # overwrite some of them when testing with obscure command lines.
11630     # This happens at least with the AIX C compiler.
11631     : > sub/conftest.c
11632     for i in 1 2 3 4 5 6; do
11633       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11634       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11635       # Solaris 8's {/usr,}/bin/sh.
11636       touch sub/conftst$i.h
11637     done
11638     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11639
11640     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11641     # mode.  It turns out that the SunPro C++ compiler does not properly
11642     # handle `-M -o', and we need to detect this.  Also, some Intel
11643     # versions had trouble with output in subdirs
11644     am__obj=sub/conftest.${OBJEXT-o}
11645     am__minus_obj="-o $am__obj"
11646     case $depmode in
11647     gcc)
11648       # This depmode causes a compiler race in universal mode.
11649       test "$am__universal" = false || continue
11650       ;;
11651     nosideeffect)
11652       # after this tag, mechanisms are not by side-effect, so they'll
11653       # only be used when explicitly requested
11654       if test "x$enable_dependency_tracking" = xyes; then
11655         continue
11656       else
11657         break
11658       fi
11659       ;;
11660     msvisualcpp | msvcmsys)
11661       # This compiler won't grok `-c -o', but also, the minuso test has
11662       # not run yet.  These depmodes are late enough in the game, and
11663       # so weak that their functioning should not be impacted.
11664       am__obj=conftest.${OBJEXT-o}
11665       am__minus_obj=
11666       ;;
11667     none) break ;;
11668     esac
11669     if depmode=$depmode \
11670        source=sub/conftest.c object=$am__obj \
11671        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11672        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11673          >/dev/null 2>conftest.err &&
11674        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11675        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11676        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11677        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11678       # icc doesn't choke on unknown options, it will just issue warnings
11679       # or remarks (even with -Werror).  So we grep stderr for any message
11680       # that says an option was ignored or not supported.
11681       # When given -MP, icc 7.0 and 7.1 complain thusly:
11682       #   icc: Command line warning: ignoring option '-M'; no argument required
11683       # The diagnosis changed in icc 8.0:
11684       #   icc: Command line remark: option '-MP' not supported
11685       if (grep 'ignoring option' conftest.err ||
11686           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11687         am_cv_CC_dependencies_compiler_type=$depmode
11688         break
11689       fi
11690     fi
11691   done
11692
11693   cd ..
11694   rm -rf conftest.dir
11695 else
11696   am_cv_CC_dependencies_compiler_type=none
11697 fi
11698
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11703
11704  if
11705   test "x$enable_dependency_tracking" != xno \
11706   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11707   am__fastdepCC_TRUE=
11708   am__fastdepCC_FALSE='#'
11709 else
11710   am__fastdepCC_TRUE='#'
11711   am__fastdepCC_FALSE=
11712 fi
11713
11714
11715 if test "x$CC" != xcc; then
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11717 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11718 else
11719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11720 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11721 fi
11722 set dummy $CC; ac_cc=`$as_echo "$2" |
11723                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11724 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h.  */
11729
11730 int
11731 main ()
11732 {
11733
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 # Make sure it works both with $CC and with simple cc.
11739 # We do the test twice because some compilers refuse to overwrite an
11740 # existing .o file with -o, though they will create one.
11741 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11742 rm -f conftest2.*
11743 if { { case "(($ac_try" in
11744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745   *) ac_try_echo=$ac_try;;
11746 esac
11747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11748 $as_echo "$ac_try_echo"; } >&5
11749   (eval "$ac_try") 2>&5
11750   ac_status=$?
11751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752   test $ac_status = 0; } &&
11753    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755   *) ac_try_echo=$ac_try;;
11756 esac
11757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11758 $as_echo "$ac_try_echo"; } >&5
11759   (eval "$ac_try") 2>&5
11760   ac_status=$?
11761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11762   test $ac_status = 0; };
11763 then
11764   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11765   if test "x$CC" != xcc; then
11766     # Test first that cc exists at all.
11767     if { ac_try='cc -c conftest.$ac_ext >&5'
11768   { { case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11773 $as_echo "$ac_try_echo"; } >&5
11774   (eval "$ac_try") 2>&5
11775   ac_status=$?
11776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11777   test $ac_status = 0; }; }; then
11778       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11779       rm -f conftest2.*
11780       if { { case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11785 $as_echo "$ac_try_echo"; } >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789   test $ac_status = 0; } &&
11790          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11795 $as_echo "$ac_try_echo"; } >&5
11796   (eval "$ac_try") 2>&5
11797   ac_status=$?
11798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799   test $ac_status = 0; };
11800       then
11801         # cc works too.
11802         :
11803       else
11804         # cc exists but doesn't like -o.
11805         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11806       fi
11807     fi
11808   fi
11809 else
11810   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11811 fi
11812 rm -f core conftest*
11813
11814 fi
11815 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11817 $as_echo "yes" >&6; }
11818 else
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821
11822 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11823
11824 fi
11825
11826 # FIXME: we rely on the cache variable name because
11827 # there is no other way.
11828 set dummy $CC
11829 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11830 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11831 if test "$am_t" != yes; then
11832    # Losing compiler, so override with the script.
11833    # FIXME: It is wrong to rewrite CC.
11834    # But if we don't then we get into trouble of one sort or another.
11835    # A longer-term fix would be to have automake use am__CC in this case,
11836    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11837    CC="$am_aux_dir/compile $CC"
11838 fi
11839
11840
11841 # Extract the first word of "valac", so it can be a program name with args.
11842 set dummy valac; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if test "${ac_cv_path_VALAC+set}" = set; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   case $VALAC in
11849   [\\/]* | ?:[\\/]*)
11850   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
11851   ;;
11852   *)
11853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11855 do
11856   IFS=$as_save_IFS
11857   test -z "$as_dir" && as_dir=.
11858     for ac_exec_ext in '' $ac_executable_extensions; do
11859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
11861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862     break 2
11863   fi
11864 done
11865   done
11866 IFS=$as_save_IFS
11867
11868   ;;
11869 esac
11870 fi
11871 VALAC=$ac_cv_path_VALAC
11872 if test -n "$VALAC"; then
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
11874 $as_echo "$VALAC" >&6; }
11875 else
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878 fi
11879
11880
11881  if test -z "$VALAC"; then :
11882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
11883 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
11884 else
11885   if test -n "0.9"; then :
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
11887 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
11888        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
11889        as_arg_v1=0.9
11890 as_arg_v2="$am__vala_version"
11891 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11892 case $? in #(
11893   1) :
11894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11895 $as_echo "yes" >&6; } ;; #(
11896   0) :
11897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; } ;; #(
11899   2) :
11900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5  ;; #(
11903   *) :
11904      ;;
11905 esac
11906 fi
11907 fi
11908
11909
11910 # Platform checks
11911
11912
11913 case "$host" in
11914   *-*-mingw*)
11915     win32=yes
11916     macos=no
11917     linux=no
11918     SERVER_IPC_MODULE="msrpc-glib2-1.0"
11919     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
11920
11921 pkg_failed=no
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
11923 $as_echo_n "checking for GTK... " >&6; }
11924
11925 if test -n "$GTK_CFLAGS"; then
11926     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
11927  elif test -n "$PKG_CONFIG"; then
11928     if test -n "$PKG_CONFIG" && \
11929     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
11930   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
11931   ac_status=$?
11932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933   test $ac_status = 0; }; then
11934   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
11935                       test "x$?" != "x0" && pkg_failed=yes
11936 else
11937   pkg_failed=yes
11938 fi
11939  else
11940     pkg_failed=untried
11941 fi
11942 if test -n "$GTK_LIBS"; then
11943     pkg_cv_GTK_LIBS="$GTK_LIBS"
11944  elif test -n "$PKG_CONFIG"; then
11945     if test -n "$PKG_CONFIG" && \
11946     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
11947   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
11948   ac_status=$?
11949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11950   test $ac_status = 0; }; then
11951   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
11952                       test "x$?" != "x0" && pkg_failed=yes
11953 else
11954   pkg_failed=yes
11955 fi
11956  else
11957     pkg_failed=untried
11958 fi
11959
11960
11961
11962 if test $pkg_failed = yes; then
11963         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965
11966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11967         _pkg_short_errors_supported=yes
11968 else
11969         _pkg_short_errors_supported=no
11970 fi
11971         if test $_pkg_short_errors_supported = yes; then
11972                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
11973         else
11974                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
11975         fi
11976         # Put the nasty error message in config.log where it belongs
11977         echo "$GTK_PKG_ERRORS" >&5
11978
11979         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
11980
11981 $GTK_PKG_ERRORS
11982
11983 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11984 installed software in a non-standard prefix.
11985
11986 Alternatively, you may set the environment variables GTK_CFLAGS
11987 and GTK_LIBS to avoid the need to call pkg-config.
11988 See the pkg-config man page for more details." "$LINENO" 5
11989 elif test $pkg_failed = untried; then
11990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11994 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11995 is in your PATH or set the PKG_CONFIG environment variable to the full
11996 path to pkg-config.
11997
11998 Alternatively, you may set the environment variables GTK_CFLAGS
11999 and GTK_LIBS to avoid the need to call pkg-config.
12000 See the pkg-config man page for more details.
12001
12002 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12003 See \`config.log' for more details" "$LINENO" 5 ; }
12004 else
12005         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12006         GTK_LIBS=$pkg_cv_GTK_LIBS
12007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12008 $as_echo "yes" >&6; }
12009         GTK_VERSION="gtk+-2.0"
12010
12011 fi
12012     ;;
12013
12014   *darwin*)
12015     win32=no
12016     macos=yes
12017     linux=no
12018
12019     # We require dbus-glib for the client library even if we are using GDBus
12020     # in the server. The reason we can't always use dbus-glib in the server is
12021     # because Vala drops support for it, but as it ships with DBus there is very
12022     # little danger of it being dropped by distros any time soon.
12023     CLIENT_IPC_MODULE="dbus-glib-1"
12024         SERVER_IPC_MODULE="dbus-glib-1"
12025
12026
12027 pkg_failed=no
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
12029 $as_echo_n "checking for MAC... " >&6; }
12030
12031 if test -n "$MAC_CFLAGS"; then
12032     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
12033  elif test -n "$PKG_CONFIG"; then
12034     if test -n "$PKG_CONFIG" && \
12035     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12036         \""; } >&5
12037   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12038         ") 2>&5
12039   ac_status=$?
12040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12041   test $ac_status = 0; }; then
12042   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
12043         " 2>/dev/null`
12044                       test "x$?" != "x0" && pkg_failed=yes
12045 else
12046   pkg_failed=yes
12047 fi
12048  else
12049     pkg_failed=untried
12050 fi
12051 if test -n "$MAC_LIBS"; then
12052     pkg_cv_MAC_LIBS="$MAC_LIBS"
12053  elif test -n "$PKG_CONFIG"; then
12054     if test -n "$PKG_CONFIG" && \
12055     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12056         \""; } >&5
12057   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12058         ") 2>&5
12059   ac_status=$?
12060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12061   test $ac_status = 0; }; then
12062   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
12063         " 2>/dev/null`
12064                       test "x$?" != "x0" && pkg_failed=yes
12065 else
12066   pkg_failed=yes
12067 fi
12068  else
12069     pkg_failed=untried
12070 fi
12071
12072
12073
12074 if test $pkg_failed = yes; then
12075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077
12078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12079         _pkg_short_errors_supported=yes
12080 else
12081         _pkg_short_errors_supported=no
12082 fi
12083         if test $_pkg_short_errors_supported = yes; then
12084                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12085         " 2>&1`
12086         else
12087                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12088         " 2>&1`
12089         fi
12090         # Put the nasty error message in config.log where it belongs
12091         echo "$MAC_PKG_ERRORS" >&5
12092
12093         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
12094         ) were not met:
12095
12096 $MAC_PKG_ERRORS
12097
12098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12099 installed software in a non-standard prefix.
12100
12101 Alternatively, you may set the environment variables MAC_CFLAGS
12102 and MAC_LIBS to avoid the need to call pkg-config.
12103 See the pkg-config man page for more details." "$LINENO" 5
12104 elif test $pkg_failed = untried; then
12105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12107         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12109 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12110 is in your PATH or set the PKG_CONFIG environment variable to the full
12111 path to pkg-config.
12112
12113 Alternatively, you may set the environment variables MAC_CFLAGS
12114 and MAC_LIBS to avoid the need to call pkg-config.
12115 See the pkg-config man page for more details.
12116
12117 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12118 See \`config.log' for more details" "$LINENO" 5 ; }
12119 else
12120         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
12121         MAC_LIBS=$pkg_cv_MAC_LIBS
12122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12123 $as_echo "yes" >&6; }
12124
12125 fi
12126
12127 # TODO: Move to GTK+-3
12128 #            [gtk+-3.0 >= 2.0],
12129 #            [GTK_VERSION="gtk+-3.0"]
12130
12131 pkg_failed=no
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12133 $as_echo_n "checking for GTK... " >&6; }
12134
12135 if test -n "$GTK_CFLAGS"; then
12136     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12137  elif test -n "$PKG_CONFIG"; then
12138     if test -n "$PKG_CONFIG" && \
12139     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12140   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12141   ac_status=$?
12142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12143   test $ac_status = 0; }; then
12144   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12145                       test "x$?" != "x0" && pkg_failed=yes
12146 else
12147   pkg_failed=yes
12148 fi
12149  else
12150     pkg_failed=untried
12151 fi
12152 if test -n "$GTK_LIBS"; then
12153     pkg_cv_GTK_LIBS="$GTK_LIBS"
12154  elif test -n "$PKG_CONFIG"; then
12155     if test -n "$PKG_CONFIG" && \
12156     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12157   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12158   ac_status=$?
12159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160   test $ac_status = 0; }; then
12161   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12162                       test "x$?" != "x0" && pkg_failed=yes
12163 else
12164   pkg_failed=yes
12165 fi
12166  else
12167     pkg_failed=untried
12168 fi
12169
12170
12171
12172 if test $pkg_failed = yes; then
12173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175
12176 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12177         _pkg_short_errors_supported=yes
12178 else
12179         _pkg_short_errors_supported=no
12180 fi
12181         if test $_pkg_short_errors_supported = yes; then
12182                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12183         else
12184                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12185         fi
12186         # Put the nasty error message in config.log where it belongs
12187         echo "$GTK_PKG_ERRORS" >&5
12188
12189         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12190
12191 $GTK_PKG_ERRORS
12192
12193 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12194 installed software in a non-standard prefix.
12195
12196 Alternatively, you may set the environment variables GTK_CFLAGS
12197 and GTK_LIBS to avoid the need to call pkg-config.
12198 See the pkg-config man page for more details." "$LINENO" 5
12199 elif test $pkg_failed = untried; then
12200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12204 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12205 is in your PATH or set the PKG_CONFIG environment variable to the full
12206 path to pkg-config.
12207
12208 Alternatively, you may set the environment variables GTK_CFLAGS
12209 and GTK_LIBS to avoid the need to call pkg-config.
12210 See the pkg-config man page for more details.
12211
12212 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12213 See \`config.log' for more details" "$LINENO" 5 ; }
12214 else
12215         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12216         GTK_LIBS=$pkg_cv_GTK_LIBS
12217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12218 $as_echo "yes" >&6; }
12219         GTK_VERSION="gtk+-2.0"
12220
12221 fi
12222
12223     ;;
12224   *)
12225     macos=no
12226     win32=no
12227     linux=yes
12228
12229     # We require dbus-glib for the client library even if we are using GDBus
12230     # in the server. The reason we can't always use dbus-glib in the server is
12231     # because Vala drops support for it, but as it ships with DBus there is very
12232     # little danger of it being dropped by distros any time soon.
12233     CLIENT_IPC_MODULE="dbus-glib-1"
12234
12235 pkg_failed=no
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
12237 $as_echo_n "checking for GDBUS... " >&6; }
12238
12239 if test -n "$GDBUS_CFLAGS"; then
12240     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
12241  elif test -n "$PKG_CONFIG"; then
12242     if test -n "$PKG_CONFIG" && \
12243     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12244   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12245   ac_status=$?
12246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12247   test $ac_status = 0; }; then
12248   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12249                       test "x$?" != "x0" && pkg_failed=yes
12250 else
12251   pkg_failed=yes
12252 fi
12253  else
12254     pkg_failed=untried
12255 fi
12256 if test -n "$GDBUS_LIBS"; then
12257     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
12258  elif test -n "$PKG_CONFIG"; then
12259     if test -n "$PKG_CONFIG" && \
12260     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12261   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12262   ac_status=$?
12263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12264   test $ac_status = 0; }; then
12265   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12266                       test "x$?" != "x0" && pkg_failed=yes
12267 else
12268   pkg_failed=yes
12269 fi
12270  else
12271     pkg_failed=untried
12272 fi
12273
12274
12275
12276 if test $pkg_failed = yes; then
12277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279
12280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12281         _pkg_short_errors_supported=yes
12282 else
12283         _pkg_short_errors_supported=no
12284 fi
12285         if test $_pkg_short_errors_supported = yes; then
12286                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12287         else
12288                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12289         fi
12290         # Put the nasty error message in config.log where it belongs
12291         echo "$GDBUS_PKG_ERRORS" >&5
12292
12293         SERVER_IPC_MODULE="dbus-glib-1"
12294
12295 elif test $pkg_failed = untried; then
12296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298         SERVER_IPC_MODULE="dbus-glib-1"
12299
12300 else
12301         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
12302         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
12303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12304 $as_echo "yes" >&6; }
12305         SERVER_IPC_MODULE="gio-2.0"
12306 fi
12307 # TODO: Move to GTK+-3
12308 #            [gtk+-3.0 >= 2.0],
12309 #            [GTK_VERSION="gtk+-3.0"]
12310
12311 pkg_failed=no
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12313 $as_echo_n "checking for GTK... " >&6; }
12314
12315 if test -n "$GTK_CFLAGS"; then
12316     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12317  elif test -n "$PKG_CONFIG"; then
12318     if test -n "$PKG_CONFIG" && \
12319     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12320   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12321   ac_status=$?
12322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12323   test $ac_status = 0; }; then
12324   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12325                       test "x$?" != "x0" && pkg_failed=yes
12326 else
12327   pkg_failed=yes
12328 fi
12329  else
12330     pkg_failed=untried
12331 fi
12332 if test -n "$GTK_LIBS"; then
12333     pkg_cv_GTK_LIBS="$GTK_LIBS"
12334  elif test -n "$PKG_CONFIG"; then
12335     if test -n "$PKG_CONFIG" && \
12336     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12337   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12338   ac_status=$?
12339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340   test $ac_status = 0; }; then
12341   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12342                       test "x$?" != "x0" && pkg_failed=yes
12343 else
12344   pkg_failed=yes
12345 fi
12346  else
12347     pkg_failed=untried
12348 fi
12349
12350
12351
12352 if test $pkg_failed = yes; then
12353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355
12356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12357         _pkg_short_errors_supported=yes
12358 else
12359         _pkg_short_errors_supported=no
12360 fi
12361         if test $_pkg_short_errors_supported = yes; then
12362                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12363         else
12364                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12365         fi
12366         # Put the nasty error message in config.log where it belongs
12367         echo "$GTK_PKG_ERRORS" >&5
12368
12369         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12370
12371 $GTK_PKG_ERRORS
12372
12373 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12374 installed software in a non-standard prefix.
12375
12376 Alternatively, you may set the environment variables GTK_CFLAGS
12377 and GTK_LIBS to avoid the need to call pkg-config.
12378 See the pkg-config man page for more details." "$LINENO" 5
12379 elif test $pkg_failed = untried; then
12380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12384 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12385 is in your PATH or set the PKG_CONFIG environment variable to the full
12386 path to pkg-config.
12387
12388 Alternatively, you may set the environment variables GTK_CFLAGS
12389 and GTK_LIBS to avoid the need to call pkg-config.
12390 See the pkg-config man page for more details.
12391
12392 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12393 See \`config.log' for more details" "$LINENO" 5 ; }
12394 else
12395         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12396         GTK_LIBS=$pkg_cv_GTK_LIBS
12397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; }
12399         GTK_VERSION="gtk+-2.0"
12400
12401 fi
12402
12403     ;;
12404 esac
12405
12406  if test "$linux" = "yes"; then
12407   OS_LINUX_TRUE=
12408   OS_LINUX_FALSE='#'
12409 else
12410   OS_LINUX_TRUE='#'
12411   OS_LINUX_FALSE=
12412 fi
12413
12414  if test "$win32" = "yes"; then
12415   OS_WIN32_TRUE=
12416   OS_WIN32_FALSE='#'
12417 else
12418   OS_WIN32_TRUE='#'
12419   OS_WIN32_FALSE=
12420 fi
12421
12422  if test "$macos" = "yes"; then
12423   OS_MACOS_TRUE=
12424   OS_MACOS_FALSE='#'
12425 else
12426   OS_MACOS_TRUE='#'
12427   OS_MACOS_FALSE=
12428 fi
12429
12430
12431  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
12432   IPC_MSRPC_TRUE=
12433   IPC_MSRPC_FALSE='#'
12434 else
12435   IPC_MSRPC_TRUE='#'
12436   IPC_MSRPC_FALSE=
12437 fi
12438
12439  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
12440   IPC_DBUS_TRUE=
12441   IPC_DBUS_FALSE='#'
12442 else
12443   IPC_DBUS_TRUE='#'
12444   IPC_DBUS_FALSE=
12445 fi
12446
12447  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
12448   IPC_DBUS_GLIB_TRUE=
12449   IPC_DBUS_GLIB_FALSE='#'
12450 else
12451   IPC_DBUS_GLIB_TRUE='#'
12452   IPC_DBUS_GLIB_FALSE=
12453 fi
12454
12455  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
12456   IPC_GDBUS_TRUE=
12457   IPC_GDBUS_FALSE='#'
12458 else
12459   IPC_GDBUS_TRUE='#'
12460   IPC_GDBUS_FALSE=
12461 fi
12462
12463
12464 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
12465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
12466 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
12467   vala_version=`$VALAC --version | sed 's/Vala  *//'`
12468   as_arg_v1=0.12.2
12469 as_arg_v2="$vala_version"
12470 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12471 case $? in #(
12472   1) :
12473     vala_supports_dbus_glib="no" ;; #(
12474   0) :
12475     vala_supports_dbus_glib="no" ;; #(
12476   2) :
12477     vala_supports_dbus_glib="yes" ;; #(
12478   *) :
12479      ;;
12480 esac
12481
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
12483 $as_echo "$vala_supports_dbus_glib" >&6; }
12484   if test "$vala_supports_dbus_glib" = "no"; then
12485     as_fn_error $? "
12486 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
12487 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
12488   fi
12489 fi
12490
12491 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
12492   # MS RPC utilities
12493
12494   pkg_config_args="msrpc-mingw-1.0"
12495
12496
12497
12498
12499
12500
12501
12502
12503 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12504         if test -n "$ac_tool_prefix"; then
12505   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12506 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12510   $as_echo_n "(cached) " >&6
12511 else
12512   case $PKG_CONFIG in
12513   [\\/]* | ?:[\\/]*)
12514   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12515   ;;
12516   *)
12517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12519 do
12520   IFS=$as_save_IFS
12521   test -z "$as_dir" && as_dir=.
12522     for ac_exec_ext in '' $ac_executable_extensions; do
12523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526     break 2
12527   fi
12528 done
12529   done
12530 IFS=$as_save_IFS
12531
12532   ;;
12533 esac
12534 fi
12535 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12536 if test -n "$PKG_CONFIG"; then
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12538 $as_echo "$PKG_CONFIG" >&6; }
12539 else
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543
12544
12545 fi
12546 if test -z "$ac_cv_path_PKG_CONFIG"; then
12547   ac_pt_PKG_CONFIG=$PKG_CONFIG
12548   # Extract the first word of "pkg-config", so it can be a program name with args.
12549 set dummy pkg-config; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   case $ac_pt_PKG_CONFIG in
12556   [\\/]* | ?:[\\/]*)
12557   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12558   ;;
12559   *)
12560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $PATH
12562 do
12563   IFS=$as_save_IFS
12564   test -z "$as_dir" && as_dir=.
12565     for ac_exec_ext in '' $ac_executable_extensions; do
12566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12567     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569     break 2
12570   fi
12571 done
12572   done
12573 IFS=$as_save_IFS
12574
12575   ;;
12576 esac
12577 fi
12578 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12579 if test -n "$ac_pt_PKG_CONFIG"; then
12580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12581 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12582 else
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12585 fi
12586
12587   if test "x$ac_pt_PKG_CONFIG" = x; then
12588     PKG_CONFIG=""
12589   else
12590     case $cross_compiling:$ac_tool_warned in
12591 yes:)
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12594 ac_tool_warned=yes ;;
12595 esac
12596     PKG_CONFIG=$ac_pt_PKG_CONFIG
12597   fi
12598 else
12599   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12600 fi
12601
12602 fi
12603 if test -n "$PKG_CONFIG"; then
12604         _pkg_min_version=0.16
12605         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12606 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12607         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12608                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12609 $as_echo "yes" >&6; }
12610         else
12611                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613                 PKG_CONFIG=""
12614         fi
12615 fi
12616
12617   no_msrpc=""
12618
12619   if test "x$PKG_CONFIG" = x ; then
12620     no_msrpc=yes
12621     PKG_CONFIG=no
12622   fi
12623
12624   min_msrpc_mingw_version=0.1.0
12625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
12626 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
12627
12628   if test x$PKG_CONFIG != xno ; then
12629     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12630       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
12631     fi
12632
12633     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
12634       :
12635     else
12636       no_msrpc=yes
12637     fi
12638   fi
12639
12640   if test x"$no_msrpc" = x ; then
12641     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
12642     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
12643     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
12644   fi
12645
12646   if test "x$no_msrpc" = x ; then
12647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649      :
12650   else
12651      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653      if test "$PKG_CONFIG" = "no" ; then
12654        echo "*** A new enough version of pkg-config was not found."
12655        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
12656      else
12657        echo "not found"
12658      fi
12659      MSRPC_CFLAGS=""
12660      MSRPC_LIBS=""
12661      MIDL_WRAPPER=""
12662      as_fn_error $? "
12663 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
12664   fi
12665
12666
12667
12668
12669
12670   # Extract the first word of "midl", so it can be a program name with args.
12671 set dummy midl; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if test "${ac_cv_path_MIDL+set}" = set; then :
12675   $as_echo_n "(cached) " >&6
12676 else
12677   case $MIDL in
12678   [\\/]* | ?:[\\/]*)
12679   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
12680   ;;
12681   *)
12682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
12684 do
12685   IFS=$as_save_IFS
12686   test -z "$as_dir" && as_dir=.
12687     for ac_exec_ext in '' $ac_executable_extensions; do
12688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12689     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
12690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691     break 2
12692   fi
12693 done
12694   done
12695 IFS=$as_save_IFS
12696
12697   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
12698   ;;
12699 esac
12700 fi
12701 MIDL=$ac_cv_path_MIDL
12702 if test -n "$MIDL"; then
12703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
12704 $as_echo "$MIDL" >&6; }
12705 else
12706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711   if test "$MIDL" = "no"; then
12712      as_fn_error $? "
12713 *** Could not find the Microsoft interface compiler MIDL.EXE.
12714 *** This program is available as part of the MS Windows SDK, in
12715 *** the Win32 Development Tools package. If it is not in the PATH
12716 *** or its default location you may set the 'MIDL' environment
12717 *** variable to point to its location and rerun configure." "$LINENO" 5
12718   fi
12719 fi
12720
12721 if test "$win32" = "yes"; then
12722   # Other Windows-specific tools
12723
12724   # LIB.EXE from MSVC to build an MSVC-compatible import library.
12725   # Extract the first word of "lib", so it can be a program name with args.
12726 set dummy lib; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if test "${ac_cv_path_MSVC_LIB+set}" = set; then :
12730   $as_echo_n "(cached) " >&6
12731 else
12732   case $MSVC_LIB in
12733   [\\/]* | ?:[\\/]*)
12734   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
12735   ;;
12736   *)
12737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 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
12739 do
12740   IFS=$as_save_IFS
12741   test -z "$as_dir" && as_dir=.
12742     for ac_exec_ext in '' $ac_executable_extensions; do
12743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12744     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
12745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746     break 2
12747   fi
12748 done
12749   done
12750 IFS=$as_save_IFS
12751
12752   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
12753   ;;
12754 esac
12755 fi
12756 MSVC_LIB=$ac_cv_path_MSVC_LIB
12757 if test -n "$MSVC_LIB"; then
12758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
12759 $as_echo "$MSVC_LIB" >&6; }
12760 else
12761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12763 fi
12764
12765
12766
12767   if test "$MSVC_LIB" = "no"; then
12768      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12769 *** Could not find the Microsoft 'LIB.EXE' program. This is required
12770 *** to build the Visual C import library for libmoonshot. Use the
12771 *** MSVC_LIB environment variable to pass its location if this is
12772 *** outside the PATH." >&5
12773 $as_echo "$as_me: WARNING:
12774 *** Could not find the Microsoft 'LIB.EXE' program. This is required
12775 *** to build the Visual C import library for libmoonshot. Use the
12776 *** MSVC_LIB environment variable to pass its location if this is
12777 *** outside the PATH." >&2;}
12778   fi
12779
12780
12781   # ImageMagick for the 'make icons' target. Note that
12782   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
12783   # Extract the first word of "convert", so it can be a program name with args.
12784 set dummy convert; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if test "${ac_cv_path_IMAGEMAGICK_CONVERT+set}" = set; then :
12788   $as_echo_n "(cached) " >&6
12789 else
12790   case $IMAGEMAGICK_CONVERT in
12791   [\\/]* | ?:[\\/]*)
12792   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
12793   ;;
12794   *)
12795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
12797 do
12798   IFS=$as_save_IFS
12799   test -z "$as_dir" && as_dir=.
12800     for ac_exec_ext in '' $ac_executable_extensions; do
12801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12802     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
12803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804     break 2
12805   fi
12806 done
12807   done
12808 IFS=$as_save_IFS
12809
12810   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
12811   ;;
12812 esac
12813 fi
12814 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
12815 if test -n "$IMAGEMAGICK_CONVERT"; then
12816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
12817 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
12818 else
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821 fi
12822
12823
12824
12825   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
12826      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12827 *** Could not find ImageMagick convert.exe. This is required for the
12828 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
12829 *** variable to pass its location if this is outside the PATH." >&5
12830 $as_echo "$as_me: WARNING:
12831 *** Could not find ImageMagick convert.exe. This is required for the
12832 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
12833 *** variable to pass its location if this is outside the PATH." >&2;}
12834   fi
12835
12836
12837   # Windows Installer XML tools
12838   # Extract the first word of "candle", so it can be a program name with args.
12839 set dummy candle; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if test "${ac_cv_path_WIX_CANDLE+set}" = set; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   case $WIX_CANDLE in
12846   [\\/]* | ?:[\\/]*)
12847   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
12848   ;;
12849   *)
12850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 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
12852 do
12853   IFS=$as_save_IFS
12854   test -z "$as_dir" && as_dir=.
12855     for ac_exec_ext in '' $ac_executable_extensions; do
12856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
12858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859     break 2
12860   fi
12861 done
12862   done
12863 IFS=$as_save_IFS
12864
12865   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
12866   ;;
12867 esac
12868 fi
12869 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
12870 if test -n "$WIX_CANDLE"; then
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
12872 $as_echo "$WIX_CANDLE" >&6; }
12873 else
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877
12878
12879   # Extract the first word of "light", so it can be a program name with args.
12880 set dummy light; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if test "${ac_cv_path_WIX_LIGHT+set}" = set; then :
12884   $as_echo_n "(cached) " >&6
12885 else
12886   case $WIX_LIGHT in
12887   [\\/]* | ?:[\\/]*)
12888   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
12889   ;;
12890   *)
12891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 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
12893 do
12894   IFS=$as_save_IFS
12895   test -z "$as_dir" && as_dir=.
12896     for ac_exec_ext in '' $ac_executable_extensions; do
12897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
12899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900     break 2
12901   fi
12902 done
12903   done
12904 IFS=$as_save_IFS
12905
12906   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
12907   ;;
12908 esac
12909 fi
12910 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
12911 if test -n "$WIX_LIGHT"; then
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
12913 $as_echo "$WIX_LIGHT" >&6; }
12914 else
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918
12919
12920
12921   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
12922      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12923 *** Could not find the Windows Installer XML tools. These are required
12924 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
12925 *** environment variables to pass their locations if they are outside
12926 *** the PATH." >&5
12927 $as_echo "$as_me: WARNING:
12928 *** Could not find the Windows Installer XML tools. These are required
12929 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
12930 *** environment variables to pass their locations if they are outside
12931 *** the PATH." >&2;}
12932   fi
12933 fi
12934
12935 if test "$linux" = "yes"; then
12936   # Extract the first word of "update-mime-database", so it can be a program name with args.
12937 set dummy update-mime-database; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
12941   $as_echo_n "(cached) " >&6
12942 else
12943   case $UPDATE_MIME_DATABASE in
12944   [\\/]* | ?:[\\/]*)
12945   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
12946   ;;
12947   *)
12948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951   IFS=$as_save_IFS
12952   test -z "$as_dir" && as_dir=.
12953     for ac_exec_ext in '' $ac_executable_extensions; do
12954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
12956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957     break 2
12958   fi
12959 done
12960   done
12961 IFS=$as_save_IFS
12962
12963   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
12964   ;;
12965 esac
12966 fi
12967 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
12968 if test -n "$UPDATE_MIME_DATABASE"; then
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
12970 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
12971 else
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12974 fi
12975
12976
12977   if test "$UPDATE_MIME_DATABASE" = "no"; then
12978     as_fn_error $? "
12979 *** Could not find the Freedesktop.org  mime database update tool.
12980 *** Web provisioning files could not be automatically installed." "$LINENO" 5
12981   fi
12982   # Extract the first word of "update-desktop-database", so it can be a program name with args.
12983 set dummy update-desktop-database; ac_word=$2
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if test "${ac_cv_path_UPDATE_DESKTOP_DATABASE+set}" = set; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   case $UPDATE_DESKTOP_DATABASE in
12990   [\\/]* | ?:[\\/]*)
12991   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
12992   ;;
12993   *)
12994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999     for ac_exec_ext in '' $ac_executable_extensions; do
13000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13001     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003     break 2
13004   fi
13005 done
13006   done
13007 IFS=$as_save_IFS
13008
13009   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
13010   ;;
13011 esac
13012 fi
13013 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
13014 if test -n "$UPDATE_DESKTOP_DATABASE"; then
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
13016 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
13017 else
13018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020 fi
13021
13022
13023   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
13024     as_fn_error $? "
13025 *** Could not find the Freedesktop.org desktop entry database update
13026 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
13027   fi
13028 fi
13029
13030 MOONSHOT_APP="$bindir/moonshot"
13031 MOONSHOT_WEBP="$bindir/moonshot-webp"
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043 # Dependencies
13044
13045 pkg_failed=no
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
13047 $as_echo_n "checking for moonshot... " >&6; }
13048
13049 if test -n "$moonshot_CFLAGS"; then
13050     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
13051  elif test -n "$PKG_CONFIG"; then
13052     if test -n "$PKG_CONFIG" && \
13053     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13054         atk >= 1.20
13055         glib-2.0 >= 2.22
13056         gobject-2.0 >= 2.22
13057         \$GTK_VERSION
13058         gee-1.0 >= 0.5
13059         \$SERVER_IPC_MODULE
13060                 \$MAC
13061 \""; } >&5
13062   ($PKG_CONFIG --exists --print-errors "
13063         atk >= 1.20
13064         glib-2.0 >= 2.22
13065         gobject-2.0 >= 2.22
13066         $GTK_VERSION
13067         gee-1.0 >= 0.5
13068         $SERVER_IPC_MODULE
13069                 $MAC
13070 ") 2>&5
13071   ac_status=$?
13072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073   test $ac_status = 0; }; then
13074   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
13075         atk >= 1.20
13076         glib-2.0 >= 2.22
13077         gobject-2.0 >= 2.22
13078         $GTK_VERSION
13079         gee-1.0 >= 0.5
13080         $SERVER_IPC_MODULE
13081                 $MAC
13082 " 2>/dev/null`
13083                       test "x$?" != "x0" && pkg_failed=yes
13084 else
13085   pkg_failed=yes
13086 fi
13087  else
13088     pkg_failed=untried
13089 fi
13090 if test -n "$moonshot_LIBS"; then
13091     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
13092  elif test -n "$PKG_CONFIG"; then
13093     if test -n "$PKG_CONFIG" && \
13094     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13095         atk >= 1.20
13096         glib-2.0 >= 2.22
13097         gobject-2.0 >= 2.22
13098         \$GTK_VERSION
13099         gee-1.0 >= 0.5
13100         \$SERVER_IPC_MODULE
13101                 \$MAC
13102 \""; } >&5
13103   ($PKG_CONFIG --exists --print-errors "
13104         atk >= 1.20
13105         glib-2.0 >= 2.22
13106         gobject-2.0 >= 2.22
13107         $GTK_VERSION
13108         gee-1.0 >= 0.5
13109         $SERVER_IPC_MODULE
13110                 $MAC
13111 ") 2>&5
13112   ac_status=$?
13113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114   test $ac_status = 0; }; then
13115   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
13116         atk >= 1.20
13117         glib-2.0 >= 2.22
13118         gobject-2.0 >= 2.22
13119         $GTK_VERSION
13120         gee-1.0 >= 0.5
13121         $SERVER_IPC_MODULE
13122                 $MAC
13123 " 2>/dev/null`
13124                       test "x$?" != "x0" && pkg_failed=yes
13125 else
13126   pkg_failed=yes
13127 fi
13128  else
13129     pkg_failed=untried
13130 fi
13131
13132
13133
13134 if test $pkg_failed = yes; then
13135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137
13138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13139         _pkg_short_errors_supported=yes
13140 else
13141         _pkg_short_errors_supported=no
13142 fi
13143         if test $_pkg_short_errors_supported = yes; then
13144                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13145         atk >= 1.20
13146         glib-2.0 >= 2.22
13147         gobject-2.0 >= 2.22
13148         $GTK_VERSION
13149         gee-1.0 >= 0.5
13150         $SERVER_IPC_MODULE
13151                 $MAC
13152 " 2>&1`
13153         else
13154                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13155         atk >= 1.20
13156         glib-2.0 >= 2.22
13157         gobject-2.0 >= 2.22
13158         $GTK_VERSION
13159         gee-1.0 >= 0.5
13160         $SERVER_IPC_MODULE
13161                 $MAC
13162 " 2>&1`
13163         fi
13164         # Put the nasty error message in config.log where it belongs
13165         echo "$moonshot_PKG_ERRORS" >&5
13166
13167         as_fn_error $? "Package requirements (
13168         atk >= 1.20
13169         glib-2.0 >= 2.22
13170         gobject-2.0 >= 2.22
13171         $GTK_VERSION
13172         gee-1.0 >= 0.5
13173         $SERVER_IPC_MODULE
13174                 $MAC
13175 ) were not met:
13176
13177 $moonshot_PKG_ERRORS
13178
13179 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13180 installed software in a non-standard prefix.
13181
13182 Alternatively, you may set the environment variables moonshot_CFLAGS
13183 and moonshot_LIBS to avoid the need to call pkg-config.
13184 See the pkg-config man page for more details." "$LINENO" 5
13185 elif test $pkg_failed = untried; then
13186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13188         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13190 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13191 is in your PATH or set the PKG_CONFIG environment variable to the full
13192 path to pkg-config.
13193
13194 Alternatively, you may set the environment variables moonshot_CFLAGS
13195 and moonshot_LIBS to avoid the need to call pkg-config.
13196 See the pkg-config man page for more details.
13197
13198 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13199 See \`config.log' for more details" "$LINENO" 5 ; }
13200 else
13201         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
13202         moonshot_LIBS=$pkg_cv_moonshot_LIBS
13203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13204 $as_echo "yes" >&6; }
13205
13206 fi
13207
13208
13209 pkg_failed=no
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
13211 $as_echo_n "checking for libmoonshot... " >&6; }
13212
13213 if test -n "$libmoonshot_CFLAGS"; then
13214     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
13215  elif test -n "$PKG_CONFIG"; then
13216     if test -n "$PKG_CONFIG" && \
13217     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13218         \$CLIENT_IPC_MODULE
13219 \""; } >&5
13220   ($PKG_CONFIG --exists --print-errors "
13221         $CLIENT_IPC_MODULE
13222 ") 2>&5
13223   ac_status=$?
13224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13225   test $ac_status = 0; }; then
13226   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
13227         $CLIENT_IPC_MODULE
13228 " 2>/dev/null`
13229                       test "x$?" != "x0" && pkg_failed=yes
13230 else
13231   pkg_failed=yes
13232 fi
13233  else
13234     pkg_failed=untried
13235 fi
13236 if test -n "$libmoonshot_LIBS"; then
13237     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
13238  elif test -n "$PKG_CONFIG"; then
13239     if test -n "$PKG_CONFIG" && \
13240     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13241         \$CLIENT_IPC_MODULE
13242 \""; } >&5
13243   ($PKG_CONFIG --exists --print-errors "
13244         $CLIENT_IPC_MODULE
13245 ") 2>&5
13246   ac_status=$?
13247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13248   test $ac_status = 0; }; then
13249   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
13250         $CLIENT_IPC_MODULE
13251 " 2>/dev/null`
13252                       test "x$?" != "x0" && pkg_failed=yes
13253 else
13254   pkg_failed=yes
13255 fi
13256  else
13257     pkg_failed=untried
13258 fi
13259
13260
13261
13262 if test $pkg_failed = yes; then
13263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265
13266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13267         _pkg_short_errors_supported=yes
13268 else
13269         _pkg_short_errors_supported=no
13270 fi
13271         if test $_pkg_short_errors_supported = yes; then
13272                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13273         $CLIENT_IPC_MODULE
13274 " 2>&1`
13275         else
13276                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13277         $CLIENT_IPC_MODULE
13278 " 2>&1`
13279         fi
13280         # Put the nasty error message in config.log where it belongs
13281         echo "$libmoonshot_PKG_ERRORS" >&5
13282
13283         as_fn_error $? "Package requirements (
13284         $CLIENT_IPC_MODULE
13285 ) were not met:
13286
13287 $libmoonshot_PKG_ERRORS
13288
13289 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13290 installed software in a non-standard prefix.
13291
13292 Alternatively, you may set the environment variables libmoonshot_CFLAGS
13293 and libmoonshot_LIBS to avoid the need to call pkg-config.
13294 See the pkg-config man page for more details." "$LINENO" 5
13295 elif test $pkg_failed = untried; then
13296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13298         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13300 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13301 is in your PATH or set the PKG_CONFIG environment variable to the full
13302 path to pkg-config.
13303
13304 Alternatively, you may set the environment variables libmoonshot_CFLAGS
13305 and libmoonshot_LIBS to avoid the need to call pkg-config.
13306 See the pkg-config man page for more details.
13307
13308 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13309 See \`config.log' for more details" "$LINENO" 5 ; }
13310 else
13311         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
13312         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
13313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13314 $as_echo "yes" >&6; }
13315
13316 fi
13317
13318 # i18n stuff
13319
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13321 $as_echo_n "checking whether NLS is requested... " >&6; }
13322     # Check whether --enable-nls was given.
13323 if test "${enable_nls+set}" = set; then :
13324   enableval=$enable_nls; USE_NLS=$enableval
13325 else
13326   USE_NLS=yes
13327 fi
13328
13329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13330 $as_echo "$USE_NLS" >&6; }
13331
13332
13333
13334
13335       GETTEXT_MACRO_VERSION=0.18
13336
13337
13338
13339
13340 # Prepare PATH_SEPARATOR.
13341 # The user is always right.
13342 if test "${PATH_SEPARATOR+set}" != set; then
13343   echo "#! /bin/sh" >conf$$.sh
13344   echo  "exit 0"   >>conf$$.sh
13345   chmod +x conf$$.sh
13346   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13347     PATH_SEPARATOR=';'
13348   else
13349     PATH_SEPARATOR=:
13350   fi
13351   rm -f conf$$.sh
13352 fi
13353
13354 # Find out how to test for executable files. Don't use a zero-byte file,
13355 # as systems may use methods other than mode bits to determine executability.
13356 cat >conf$$.file <<_ASEOF
13357 #! /bin/sh
13358 exit 0
13359 _ASEOF
13360 chmod +x conf$$.file
13361 if test -x conf$$.file >/dev/null 2>&1; then
13362   ac_executable_p="test -x"
13363 else
13364   ac_executable_p="test -f"
13365 fi
13366 rm -f conf$$.file
13367
13368 # Extract the first word of "msgfmt", so it can be a program name with args.
13369 set dummy msgfmt; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13373   $as_echo_n "(cached) " >&6
13374 else
13375   case "$MSGFMT" in
13376   [\\/]* | ?:[\\/]*)
13377     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13378     ;;
13379   *)
13380     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13381     for ac_dir in $PATH; do
13382       IFS="$ac_save_IFS"
13383       test -z "$ac_dir" && ac_dir=.
13384       for ac_exec_ext in '' $ac_executable_extensions; do
13385         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13386           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13387           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13388      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13389             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13390             break 2
13391           fi
13392         fi
13393       done
13394     done
13395     IFS="$ac_save_IFS"
13396   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13397     ;;
13398 esac
13399 fi
13400 MSGFMT="$ac_cv_path_MSGFMT"
13401 if test "$MSGFMT" != ":"; then
13402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13403 $as_echo "$MSGFMT" >&6; }
13404 else
13405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13407 fi
13408
13409   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13410 set dummy gmsgfmt; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   case $GMSGFMT in
13417   [\\/]* | ?:[\\/]*)
13418   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13419   ;;
13420   *)
13421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424   IFS=$as_save_IFS
13425   test -z "$as_dir" && as_dir=.
13426     for ac_exec_ext in '' $ac_executable_extensions; do
13427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13428     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13430     break 2
13431   fi
13432 done
13433   done
13434 IFS=$as_save_IFS
13435
13436   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13437   ;;
13438 esac
13439 fi
13440 GMSGFMT=$ac_cv_path_GMSGFMT
13441 if test -n "$GMSGFMT"; then
13442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13443 $as_echo "$GMSGFMT" >&6; }
13444 else
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13447 fi
13448
13449
13450
13451     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13452     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13453     *) MSGFMT_015=$MSGFMT ;;
13454   esac
13455
13456   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13457     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13458     *) GMSGFMT_015=$GMSGFMT ;;
13459   esac
13460
13461
13462
13463 # Prepare PATH_SEPARATOR.
13464 # The user is always right.
13465 if test "${PATH_SEPARATOR+set}" != set; then
13466   echo "#! /bin/sh" >conf$$.sh
13467   echo  "exit 0"   >>conf$$.sh
13468   chmod +x conf$$.sh
13469   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13470     PATH_SEPARATOR=';'
13471   else
13472     PATH_SEPARATOR=:
13473   fi
13474   rm -f conf$$.sh
13475 fi
13476
13477 # Find out how to test for executable files. Don't use a zero-byte file,
13478 # as systems may use methods other than mode bits to determine executability.
13479 cat >conf$$.file <<_ASEOF
13480 #! /bin/sh
13481 exit 0
13482 _ASEOF
13483 chmod +x conf$$.file
13484 if test -x conf$$.file >/dev/null 2>&1; then
13485   ac_executable_p="test -x"
13486 else
13487   ac_executable_p="test -f"
13488 fi
13489 rm -f conf$$.file
13490
13491 # Extract the first word of "xgettext", so it can be a program name with args.
13492 set dummy xgettext; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13496   $as_echo_n "(cached) " >&6
13497 else
13498   case "$XGETTEXT" in
13499   [\\/]* | ?:[\\/]*)
13500     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13501     ;;
13502   *)
13503     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13504     for ac_dir in $PATH; do
13505       IFS="$ac_save_IFS"
13506       test -z "$ac_dir" && ac_dir=.
13507       for ac_exec_ext in '' $ac_executable_extensions; do
13508         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13509           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13510           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13511      (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
13512             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13513             break 2
13514           fi
13515         fi
13516       done
13517     done
13518     IFS="$ac_save_IFS"
13519   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13520     ;;
13521 esac
13522 fi
13523 XGETTEXT="$ac_cv_path_XGETTEXT"
13524 if test "$XGETTEXT" != ":"; then
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13526 $as_echo "$XGETTEXT" >&6; }
13527 else
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13530 fi
13531
13532     rm -f messages.po
13533
13534     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13535     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13536     *) XGETTEXT_015=$XGETTEXT ;;
13537   esac
13538
13539
13540
13541 # Prepare PATH_SEPARATOR.
13542 # The user is always right.
13543 if test "${PATH_SEPARATOR+set}" != set; then
13544   echo "#! /bin/sh" >conf$$.sh
13545   echo  "exit 0"   >>conf$$.sh
13546   chmod +x conf$$.sh
13547   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13548     PATH_SEPARATOR=';'
13549   else
13550     PATH_SEPARATOR=:
13551   fi
13552   rm -f conf$$.sh
13553 fi
13554
13555 # Find out how to test for executable files. Don't use a zero-byte file,
13556 # as systems may use methods other than mode bits to determine executability.
13557 cat >conf$$.file <<_ASEOF
13558 #! /bin/sh
13559 exit 0
13560 _ASEOF
13561 chmod +x conf$$.file
13562 if test -x conf$$.file >/dev/null 2>&1; then
13563   ac_executable_p="test -x"
13564 else
13565   ac_executable_p="test -f"
13566 fi
13567 rm -f conf$$.file
13568
13569 # Extract the first word of "msgmerge", so it can be a program name with args.
13570 set dummy msgmerge; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   case "$MSGMERGE" in
13577   [\\/]* | ?:[\\/]*)
13578     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13579     ;;
13580   *)
13581     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13582     for ac_dir in $PATH; do
13583       IFS="$ac_save_IFS"
13584       test -z "$ac_dir" && ac_dir=.
13585       for ac_exec_ext in '' $ac_executable_extensions; do
13586         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13587           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13588           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13589             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13590             break 2
13591           fi
13592         fi
13593       done
13594     done
13595     IFS="$ac_save_IFS"
13596   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13597     ;;
13598 esac
13599 fi
13600 MSGMERGE="$ac_cv_path_MSGMERGE"
13601 if test "$MSGMERGE" != ":"; then
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13603 $as_echo "$MSGMERGE" >&6; }
13604 else
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13607 fi
13608
13609
13610         test -n "$localedir" || localedir='${datadir}/locale'
13611
13612
13613     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13614
13615
13616   ac_config_commands="$ac_config_commands po-directories"
13617
13618
13619
13620       if test "X$prefix" = "XNONE"; then
13621     acl_final_prefix="$ac_default_prefix"
13622   else
13623     acl_final_prefix="$prefix"
13624   fi
13625   if test "X$exec_prefix" = "XNONE"; then
13626     acl_final_exec_prefix='${prefix}'
13627   else
13628     acl_final_exec_prefix="$exec_prefix"
13629   fi
13630   acl_save_prefix="$prefix"
13631   prefix="$acl_final_prefix"
13632   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13633   prefix="$acl_save_prefix"
13634
13635
13636 # Check whether --with-gnu-ld was given.
13637 if test "${with_gnu_ld+set}" = set; then :
13638   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13639 else
13640   with_gnu_ld=no
13641 fi
13642
13643 # Prepare PATH_SEPARATOR.
13644 # The user is always right.
13645 if test "${PATH_SEPARATOR+set}" != set; then
13646   echo "#! /bin/sh" >conf$$.sh
13647   echo  "exit 0"   >>conf$$.sh
13648   chmod +x conf$$.sh
13649   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13650     PATH_SEPARATOR=';'
13651   else
13652     PATH_SEPARATOR=:
13653   fi
13654   rm -f conf$$.sh
13655 fi
13656 ac_prog=ld
13657 if test "$GCC" = yes; then
13658   # Check if gcc -print-prog-name=ld gives a path.
13659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13660 $as_echo_n "checking for ld used by GCC... " >&6; }
13661   case $host in
13662   *-*-mingw*)
13663     # gcc leaves a trailing carriage return which upsets mingw
13664     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13665   *)
13666     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13667   esac
13668   case $ac_prog in
13669     # Accept absolute paths.
13670     [\\/]* | [A-Za-z]:[\\/]*)
13671       re_direlt='/[^/][^/]*/\.\./'
13672       # Canonicalize the path of ld
13673       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13674       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13675         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13676       done
13677       test -z "$LD" && LD="$ac_prog"
13678       ;;
13679   "")
13680     # If it fails, then pretend we aren't using GCC.
13681     ac_prog=ld
13682     ;;
13683   *)
13684     # If it is relative, then search for the first ld in PATH.
13685     with_gnu_ld=unknown
13686     ;;
13687   esac
13688 elif test "$with_gnu_ld" = yes; then
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13690 $as_echo_n "checking for GNU ld... " >&6; }
13691 else
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13693 $as_echo_n "checking for non-GNU ld... " >&6; }
13694 fi
13695 if test "${acl_cv_path_LD+set}" = set; then :
13696   $as_echo_n "(cached) " >&6
13697 else
13698   if test -z "$LD"; then
13699   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13700   for ac_dir in $PATH; do
13701     test -z "$ac_dir" && ac_dir=.
13702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13703       acl_cv_path_LD="$ac_dir/$ac_prog"
13704       # Check to see if the program is GNU ld.  I'd rather use --version,
13705       # but apparently some GNU ld's only accept -v.
13706       # Break only if it was the GNU/non-GNU ld that we prefer.
13707       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13708       *GNU* | *'with BFD'*)
13709         test "$with_gnu_ld" != no && break ;;
13710       *)
13711         test "$with_gnu_ld" != yes && break ;;
13712       esac
13713     fi
13714   done
13715   IFS="$ac_save_ifs"
13716 else
13717   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13718 fi
13719 fi
13720
13721 LD="$acl_cv_path_LD"
13722 if test -n "$LD"; then
13723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13724 $as_echo "$LD" >&6; }
13725 else
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13728 fi
13729 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13731 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13732 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13733   $as_echo_n "(cached) " >&6
13734 else
13735   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13736 case `$LD -v 2>&1 </dev/null` in
13737 *GNU* | *'with BFD'*)
13738   acl_cv_prog_gnu_ld=yes ;;
13739 *)
13740   acl_cv_prog_gnu_ld=no ;;
13741 esac
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13744 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13745 with_gnu_ld=$acl_cv_prog_gnu_ld
13746
13747
13748
13749
13750                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13751 $as_echo_n "checking for shared library run path origin... " >&6; }
13752 if test "${acl_cv_rpath+set}" = set; then :
13753   $as_echo_n "(cached) " >&6
13754 else
13755
13756     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13757     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13758     . ./conftest.sh
13759     rm -f ./conftest.sh
13760     acl_cv_rpath=done
13761
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13764 $as_echo "$acl_cv_rpath" >&6; }
13765   wl="$acl_cv_wl"
13766   acl_libext="$acl_cv_libext"
13767   acl_shlibext="$acl_cv_shlibext"
13768   acl_libname_spec="$acl_cv_libname_spec"
13769   acl_library_names_spec="$acl_cv_library_names_spec"
13770   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13771   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13772   acl_hardcode_direct="$acl_cv_hardcode_direct"
13773   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13774     # Check whether --enable-rpath was given.
13775 if test "${enable_rpath+set}" = set; then :
13776   enableval=$enable_rpath; :
13777 else
13778   enable_rpath=yes
13779 fi
13780
13781
13782
13783
13784   acl_libdirstem=lib
13785   acl_libdirstem2=
13786   case "$host_os" in
13787     solaris*)
13788                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13789 $as_echo_n "checking for 64-bit host... " >&6; }
13790 if test "${gl_cv_solaris_64bit+set}" = set; then :
13791   $as_echo_n "(cached) " >&6
13792 else
13793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h.  */
13795
13796 #ifdef _LP64
13797 sixtyfour bits
13798 #endif
13799
13800 _ACEOF
13801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13802   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13803   gl_cv_solaris_64bit=yes
13804 else
13805   gl_cv_solaris_64bit=no
13806 fi
13807 rm -f conftest*
13808
13809
13810 fi
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13812 $as_echo "$gl_cv_solaris_64bit" >&6; }
13813       if test $gl_cv_solaris_64bit = yes; then
13814         acl_libdirstem=lib/64
13815         case "$host_cpu" in
13816           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13817           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13818         esac
13819       fi
13820       ;;
13821     *)
13822       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13823       if test -n "$searchpath"; then
13824         acl_save_IFS="${IFS=    }"; IFS=":"
13825         for searchdir in $searchpath; do
13826           if test -d "$searchdir"; then
13827             case "$searchdir" in
13828               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13829               */../ | */.. )
13830                 # Better ignore directories of this form. They are misleading.
13831                 ;;
13832               *) searchdir=`cd "$searchdir" && pwd`
13833                  case "$searchdir" in
13834                    */lib64 ) acl_libdirstem=lib64 ;;
13835                  esac ;;
13836             esac
13837           fi
13838         done
13839         IFS="$acl_save_IFS"
13840       fi
13841       ;;
13842   esac
13843   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856     use_additional=yes
13857
13858   acl_save_prefix="$prefix"
13859   prefix="$acl_final_prefix"
13860   acl_save_exec_prefix="$exec_prefix"
13861   exec_prefix="$acl_final_exec_prefix"
13862
13863     eval additional_includedir=\"$includedir\"
13864     eval additional_libdir=\"$libdir\"
13865
13866   exec_prefix="$acl_save_exec_prefix"
13867   prefix="$acl_save_prefix"
13868
13869
13870 # Check whether --with-libiconv-prefix was given.
13871 if test "${with_libiconv_prefix+set}" = set; then :
13872   withval=$with_libiconv_prefix;
13873     if test "X$withval" = "Xno"; then
13874       use_additional=no
13875     else
13876       if test "X$withval" = "X"; then
13877
13878   acl_save_prefix="$prefix"
13879   prefix="$acl_final_prefix"
13880   acl_save_exec_prefix="$exec_prefix"
13881   exec_prefix="$acl_final_exec_prefix"
13882
13883           eval additional_includedir=\"$includedir\"
13884           eval additional_libdir=\"$libdir\"
13885
13886   exec_prefix="$acl_save_exec_prefix"
13887   prefix="$acl_save_prefix"
13888
13889       else
13890         additional_includedir="$withval/include"
13891         additional_libdir="$withval/$acl_libdirstem"
13892         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13893            && ! test -d "$withval/$acl_libdirstem"; then
13894           additional_libdir="$withval/$acl_libdirstem2"
13895         fi
13896       fi
13897     fi
13898
13899 fi
13900
13901       LIBICONV=
13902   LTLIBICONV=
13903   INCICONV=
13904   LIBICONV_PREFIX=
13905       HAVE_LIBICONV=
13906   rpathdirs=
13907   ltrpathdirs=
13908   names_already_handled=
13909   names_next_round='iconv '
13910   while test -n "$names_next_round"; do
13911     names_this_round="$names_next_round"
13912     names_next_round=
13913     for name in $names_this_round; do
13914       already_handled=
13915       for n in $names_already_handled; do
13916         if test "$n" = "$name"; then
13917           already_handled=yes
13918           break
13919         fi
13920       done
13921       if test -z "$already_handled"; then
13922         names_already_handled="$names_already_handled $name"
13923                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13924         eval value=\"\$HAVE_LIB$uppername\"
13925         if test -n "$value"; then
13926           if test "$value" = yes; then
13927             eval value=\"\$LIB$uppername\"
13928             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13929             eval value=\"\$LTLIB$uppername\"
13930             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13931           else
13932                                     :
13933           fi
13934         else
13935                               found_dir=
13936           found_la=
13937           found_so=
13938           found_a=
13939           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13940           if test -n "$acl_shlibext"; then
13941             shrext=".$acl_shlibext"             # typically: shrext=.so
13942           else
13943             shrext=
13944           fi
13945           if test $use_additional = yes; then
13946             dir="$additional_libdir"
13947                                     if test -n "$acl_shlibext"; then
13948               if test -f "$dir/$libname$shrext"; then
13949                 found_dir="$dir"
13950                 found_so="$dir/$libname$shrext"
13951               else
13952                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13953                   ver=`(cd "$dir" && \
13954                         for f in "$libname$shrext".*; do echo "$f"; done \
13955                         | sed -e "s,^$libname$shrext\\\\.,," \
13956                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13957                         | sed 1q ) 2>/dev/null`
13958                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13959                     found_dir="$dir"
13960                     found_so="$dir/$libname$shrext.$ver"
13961                   fi
13962                 else
13963                   eval library_names=\"$acl_library_names_spec\"
13964                   for f in $library_names; do
13965                     if test -f "$dir/$f"; then
13966                       found_dir="$dir"
13967                       found_so="$dir/$f"
13968                       break
13969                     fi
13970                   done
13971                 fi
13972               fi
13973             fi
13974                         if test "X$found_dir" = "X"; then
13975               if test -f "$dir/$libname.$acl_libext"; then
13976                 found_dir="$dir"
13977                 found_a="$dir/$libname.$acl_libext"
13978               fi
13979             fi
13980             if test "X$found_dir" != "X"; then
13981               if test -f "$dir/$libname.la"; then
13982                 found_la="$dir/$libname.la"
13983               fi
13984             fi
13985           fi
13986           if test "X$found_dir" = "X"; then
13987             for x in $LDFLAGS $LTLIBICONV; do
13988
13989   acl_save_prefix="$prefix"
13990   prefix="$acl_final_prefix"
13991   acl_save_exec_prefix="$exec_prefix"
13992   exec_prefix="$acl_final_exec_prefix"
13993   eval x=\"$x\"
13994   exec_prefix="$acl_save_exec_prefix"
13995   prefix="$acl_save_prefix"
13996
13997               case "$x" in
13998                 -L*)
13999                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14000                                     if test -n "$acl_shlibext"; then
14001                     if test -f "$dir/$libname$shrext"; then
14002                       found_dir="$dir"
14003                       found_so="$dir/$libname$shrext"
14004                     else
14005                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14006                         ver=`(cd "$dir" && \
14007                               for f in "$libname$shrext".*; do echo "$f"; done \
14008                               | sed -e "s,^$libname$shrext\\\\.,," \
14009                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14010                               | sed 1q ) 2>/dev/null`
14011                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14012                           found_dir="$dir"
14013                           found_so="$dir/$libname$shrext.$ver"
14014                         fi
14015                       else
14016                         eval library_names=\"$acl_library_names_spec\"
14017                         for f in $library_names; do
14018                           if test -f "$dir/$f"; then
14019                             found_dir="$dir"
14020                             found_so="$dir/$f"
14021                             break
14022                           fi
14023                         done
14024                       fi
14025                     fi
14026                   fi
14027                                     if test "X$found_dir" = "X"; then
14028                     if test -f "$dir/$libname.$acl_libext"; then
14029                       found_dir="$dir"
14030                       found_a="$dir/$libname.$acl_libext"
14031                     fi
14032                   fi
14033                   if test "X$found_dir" != "X"; then
14034                     if test -f "$dir/$libname.la"; then
14035                       found_la="$dir/$libname.la"
14036                     fi
14037                   fi
14038                   ;;
14039               esac
14040               if test "X$found_dir" != "X"; then
14041                 break
14042               fi
14043             done
14044           fi
14045           if test "X$found_dir" != "X"; then
14046                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14047             if test "X$found_so" != "X"; then
14048                                                         if test "$enable_rpath" = no \
14049                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14050                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14051                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14052               else
14053                                                                                 haveit=
14054                 for x in $ltrpathdirs; do
14055                   if test "X$x" = "X$found_dir"; then
14056                     haveit=yes
14057                     break
14058                   fi
14059                 done
14060                 if test -z "$haveit"; then
14061                   ltrpathdirs="$ltrpathdirs $found_dir"
14062                 fi
14063                                 if test "$acl_hardcode_direct" = yes; then
14064                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14065                 else
14066                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14067                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14068                                                             haveit=
14069                     for x in $rpathdirs; do
14070                       if test "X$x" = "X$found_dir"; then
14071                         haveit=yes
14072                         break
14073                       fi
14074                     done
14075                     if test -z "$haveit"; then
14076                       rpathdirs="$rpathdirs $found_dir"
14077                     fi
14078                   else
14079                                                                                 haveit=
14080                     for x in $LDFLAGS $LIBICONV; do
14081
14082   acl_save_prefix="$prefix"
14083   prefix="$acl_final_prefix"
14084   acl_save_exec_prefix="$exec_prefix"
14085   exec_prefix="$acl_final_exec_prefix"
14086   eval x=\"$x\"
14087   exec_prefix="$acl_save_exec_prefix"
14088   prefix="$acl_save_prefix"
14089
14090                       if test "X$x" = "X-L$found_dir"; then
14091                         haveit=yes
14092                         break
14093                       fi
14094                     done
14095                     if test -z "$haveit"; then
14096                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14097                     fi
14098                     if test "$acl_hardcode_minus_L" != no; then
14099                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14100                     else
14101                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14102                     fi
14103                   fi
14104                 fi
14105               fi
14106             else
14107               if test "X$found_a" != "X"; then
14108                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14109               else
14110                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14111               fi
14112             fi
14113                         additional_includedir=
14114             case "$found_dir" in
14115               */$acl_libdirstem | */$acl_libdirstem/)
14116                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14117                 if test "$name" = 'iconv'; then
14118                   LIBICONV_PREFIX="$basedir"
14119                 fi
14120                 additional_includedir="$basedir/include"
14121                 ;;
14122               */$acl_libdirstem2 | */$acl_libdirstem2/)
14123                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14124                 if test "$name" = 'iconv'; then
14125                   LIBICONV_PREFIX="$basedir"
14126                 fi
14127                 additional_includedir="$basedir/include"
14128                 ;;
14129             esac
14130             if test "X$additional_includedir" != "X"; then
14131                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14132                 haveit=
14133                 if test "X$additional_includedir" = "X/usr/local/include"; then
14134                   if test -n "$GCC"; then
14135                     case $host_os in
14136                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14137                     esac
14138                   fi
14139                 fi
14140                 if test -z "$haveit"; then
14141                   for x in $CPPFLAGS $INCICONV; do
14142
14143   acl_save_prefix="$prefix"
14144   prefix="$acl_final_prefix"
14145   acl_save_exec_prefix="$exec_prefix"
14146   exec_prefix="$acl_final_exec_prefix"
14147   eval x=\"$x\"
14148   exec_prefix="$acl_save_exec_prefix"
14149   prefix="$acl_save_prefix"
14150
14151                     if test "X$x" = "X-I$additional_includedir"; then
14152                       haveit=yes
14153                       break
14154                     fi
14155                   done
14156                   if test -z "$haveit"; then
14157                     if test -d "$additional_includedir"; then
14158                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14159                     fi
14160                   fi
14161                 fi
14162               fi
14163             fi
14164                         if test -n "$found_la"; then
14165                                                         save_libdir="$libdir"
14166               case "$found_la" in
14167                 */* | *\\*) . "$found_la" ;;
14168                 *) . "./$found_la" ;;
14169               esac
14170               libdir="$save_libdir"
14171                             for dep in $dependency_libs; do
14172                 case "$dep" in
14173                   -L*)
14174                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14175                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14176                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14177                       haveit=
14178                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14179                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14180                         if test -n "$GCC"; then
14181                           case $host_os in
14182                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14183                           esac
14184                         fi
14185                       fi
14186                       if test -z "$haveit"; then
14187                         haveit=
14188                         for x in $LDFLAGS $LIBICONV; do
14189
14190   acl_save_prefix="$prefix"
14191   prefix="$acl_final_prefix"
14192   acl_save_exec_prefix="$exec_prefix"
14193   exec_prefix="$acl_final_exec_prefix"
14194   eval x=\"$x\"
14195   exec_prefix="$acl_save_exec_prefix"
14196   prefix="$acl_save_prefix"
14197
14198                           if test "X$x" = "X-L$additional_libdir"; then
14199                             haveit=yes
14200                             break
14201                           fi
14202                         done
14203                         if test -z "$haveit"; then
14204                           if test -d "$additional_libdir"; then
14205                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14206                           fi
14207                         fi
14208                         haveit=
14209                         for x in $LDFLAGS $LTLIBICONV; do
14210
14211   acl_save_prefix="$prefix"
14212   prefix="$acl_final_prefix"
14213   acl_save_exec_prefix="$exec_prefix"
14214   exec_prefix="$acl_final_exec_prefix"
14215   eval x=\"$x\"
14216   exec_prefix="$acl_save_exec_prefix"
14217   prefix="$acl_save_prefix"
14218
14219                           if test "X$x" = "X-L$additional_libdir"; then
14220                             haveit=yes
14221                             break
14222                           fi
14223                         done
14224                         if test -z "$haveit"; then
14225                           if test -d "$additional_libdir"; then
14226                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14227                           fi
14228                         fi
14229                       fi
14230                     fi
14231                     ;;
14232                   -R*)
14233                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14234                     if test "$enable_rpath" != no; then
14235                                                                   haveit=
14236                       for x in $rpathdirs; do
14237                         if test "X$x" = "X$dir"; then
14238                           haveit=yes
14239                           break
14240                         fi
14241                       done
14242                       if test -z "$haveit"; then
14243                         rpathdirs="$rpathdirs $dir"
14244                       fi
14245                                                                   haveit=
14246                       for x in $ltrpathdirs; do
14247                         if test "X$x" = "X$dir"; then
14248                           haveit=yes
14249                           break
14250                         fi
14251                       done
14252                       if test -z "$haveit"; then
14253                         ltrpathdirs="$ltrpathdirs $dir"
14254                       fi
14255                     fi
14256                     ;;
14257                   -l*)
14258                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14259                     ;;
14260                   *.la)
14261                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14262                     ;;
14263                   *)
14264                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14265                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14266                     ;;
14267                 esac
14268               done
14269             fi
14270           else
14271                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14272             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14273           fi
14274         fi
14275       fi
14276     done
14277   done
14278   if test "X$rpathdirs" != "X"; then
14279     if test -n "$acl_hardcode_libdir_separator"; then
14280                         alldirs=
14281       for found_dir in $rpathdirs; do
14282         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14283       done
14284             acl_save_libdir="$libdir"
14285       libdir="$alldirs"
14286       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14287       libdir="$acl_save_libdir"
14288       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14289     else
14290             for found_dir in $rpathdirs; do
14291         acl_save_libdir="$libdir"
14292         libdir="$found_dir"
14293         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14294         libdir="$acl_save_libdir"
14295         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14296       done
14297     fi
14298   fi
14299   if test "X$ltrpathdirs" != "X"; then
14300             for found_dir in $ltrpathdirs; do
14301       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14302     done
14303   fi
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14336 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14337 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
14338   $as_echo_n "(cached) " >&6
14339 else
14340   gt_save_LIBS="$LIBS"
14341      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14342      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h.  */
14344 #include <CoreFoundation/CFPreferences.h>
14345 int
14346 main ()
14347 {
14348 CFPreferencesCopyAppValue(NULL, NULL)
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354   gt_cv_func_CFPreferencesCopyAppValue=yes
14355 else
14356   gt_cv_func_CFPreferencesCopyAppValue=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext \
14359     conftest$ac_exeext conftest.$ac_ext
14360      LIBS="$gt_save_LIBS"
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14363 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14364   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14365
14366 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14367
14368   fi
14369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14370 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14371 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
14372   $as_echo_n "(cached) " >&6
14373 else
14374   gt_save_LIBS="$LIBS"
14375      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14376      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h.  */
14378 #include <CoreFoundation/CFLocale.h>
14379 int
14380 main ()
14381 {
14382 CFLocaleCopyCurrent();
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 if ac_fn_c_try_link "$LINENO"; then :
14388   gt_cv_func_CFLocaleCopyCurrent=yes
14389 else
14390   gt_cv_func_CFLocaleCopyCurrent=no
14391 fi
14392 rm -f core conftest.err conftest.$ac_objext \
14393     conftest$ac_exeext conftest.$ac_ext
14394      LIBS="$gt_save_LIBS"
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14397 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14398   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14399
14400 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14401
14402   fi
14403   INTL_MACOSX_LIBS=
14404   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14405     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14406   fi
14407
14408
14409
14410
14411
14412
14413   LIBINTL=
14414   LTLIBINTL=
14415   POSUB=
14416
14417     case " $gt_needs " in
14418     *" need-formatstring-macros "*) gt_api_version=3 ;;
14419     *" need-ngettext "*) gt_api_version=2 ;;
14420     *) gt_api_version=1 ;;
14421   esac
14422   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14423   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14424
14425     if test "$USE_NLS" = "yes"; then
14426     gt_use_preinstalled_gnugettext=no
14427
14428
14429         if test $gt_api_version -ge 3; then
14430           gt_revision_test_code='
14431 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14432 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14433 #endif
14434 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14435 '
14436         else
14437           gt_revision_test_code=
14438         fi
14439         if test $gt_api_version -ge 2; then
14440           gt_expression_test_code=' + * ngettext ("", "", 0)'
14441         else
14442           gt_expression_test_code=
14443         fi
14444
14445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14446 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14447 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
14448   $as_echo_n "(cached) " >&6
14449 else
14450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h.  */
14452 #include <libintl.h>
14453 $gt_revision_test_code
14454 extern int _nl_msg_cat_cntr;
14455 extern int *_nl_domain_bindings;
14456 int
14457 main ()
14458 {
14459 bindtextdomain ("", "");
14460 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_link "$LINENO"; then :
14466   eval "$gt_func_gnugettext_libc=yes"
14467 else
14468   eval "$gt_func_gnugettext_libc=no"
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext \
14471     conftest$ac_exeext conftest.$ac_ext
14472 fi
14473 eval ac_res=\$$gt_func_gnugettext_libc
14474                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14475 $as_echo "$ac_res" >&6; }
14476
14477         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14478
14479
14480
14481
14482
14483           am_save_CPPFLAGS="$CPPFLAGS"
14484
14485   for element in $INCICONV; do
14486     haveit=
14487     for x in $CPPFLAGS; do
14488
14489   acl_save_prefix="$prefix"
14490   prefix="$acl_final_prefix"
14491   acl_save_exec_prefix="$exec_prefix"
14492   exec_prefix="$acl_final_exec_prefix"
14493   eval x=\"$x\"
14494   exec_prefix="$acl_save_exec_prefix"
14495   prefix="$acl_save_prefix"
14496
14497       if test "X$x" = "X$element"; then
14498         haveit=yes
14499         break
14500       fi
14501     done
14502     if test -z "$haveit"; then
14503       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14504     fi
14505   done
14506
14507
14508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14509 $as_echo_n "checking for iconv... " >&6; }
14510 if test "${am_cv_func_iconv+set}" = set; then :
14511   $as_echo_n "(cached) " >&6
14512 else
14513
14514     am_cv_func_iconv="no, consider installing GNU libiconv"
14515     am_cv_lib_iconv=no
14516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h.  */
14518 #include <stdlib.h>
14519 #include <iconv.h>
14520 int
14521 main ()
14522 {
14523 iconv_t cd = iconv_open("","");
14524        iconv(cd,NULL,NULL,NULL,NULL);
14525        iconv_close(cd);
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 if ac_fn_c_try_link "$LINENO"; then :
14531   am_cv_func_iconv=yes
14532 fi
14533 rm -f core conftest.err conftest.$ac_objext \
14534     conftest$ac_exeext conftest.$ac_ext
14535     if test "$am_cv_func_iconv" != yes; then
14536       am_save_LIBS="$LIBS"
14537       LIBS="$LIBS $LIBICONV"
14538       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h.  */
14540 #include <stdlib.h>
14541 #include <iconv.h>
14542 int
14543 main ()
14544 {
14545 iconv_t cd = iconv_open("","");
14546          iconv(cd,NULL,NULL,NULL,NULL);
14547          iconv_close(cd);
14548   ;
14549   return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"; then :
14553   am_cv_lib_iconv=yes
14554         am_cv_func_iconv=yes
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext \
14557     conftest$ac_exeext conftest.$ac_ext
14558       LIBS="$am_save_LIBS"
14559     fi
14560
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14563 $as_echo "$am_cv_func_iconv" >&6; }
14564   if test "$am_cv_func_iconv" = yes; then
14565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14566 $as_echo_n "checking for working iconv... " >&6; }
14567 if test "${am_cv_func_iconv_works+set}" = set; then :
14568   $as_echo_n "(cached) " >&6
14569 else
14570
14571             am_save_LIBS="$LIBS"
14572       if test $am_cv_lib_iconv = yes; then
14573         LIBS="$LIBS $LIBICONV"
14574       fi
14575       if test "$cross_compiling" = yes; then :
14576   case "$host_os" in
14577            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14578            *)            am_cv_func_iconv_works="guessing yes" ;;
14579          esac
14580 else
14581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h.  */
14583
14584 #include <iconv.h>
14585 #include <string.h>
14586 int main ()
14587 {
14588   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14589      returns.  */
14590   {
14591     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14592     if (cd_utf8_to_88591 != (iconv_t)(-1))
14593       {
14594         static const char input[] = "\342\202\254"; /* EURO SIGN */
14595         char buf[10];
14596         const char *inptr = input;
14597         size_t inbytesleft = strlen (input);
14598         char *outptr = buf;
14599         size_t outbytesleft = sizeof (buf);
14600         size_t res = iconv (cd_utf8_to_88591,
14601                             (char **) &inptr, &inbytesleft,
14602                             &outptr, &outbytesleft);
14603         if (res == 0)
14604           return 1;
14605       }
14606   }
14607   /* Test against Solaris 10 bug: Failures are not distinguishable from
14608      successful returns.  */
14609   {
14610     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14611     if (cd_ascii_to_88591 != (iconv_t)(-1))
14612       {
14613         static const char input[] = "\263";
14614         char buf[10];
14615         const char *inptr = input;
14616         size_t inbytesleft = strlen (input);
14617         char *outptr = buf;
14618         size_t outbytesleft = sizeof (buf);
14619         size_t res = iconv (cd_ascii_to_88591,
14620                             (char **) &inptr, &inbytesleft,
14621                             &outptr, &outbytesleft);
14622         if (res == 0)
14623           return 1;
14624       }
14625   }
14626 #if 0 /* This bug could be worked around by the caller.  */
14627   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14628   {
14629     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14630     if (cd_88591_to_utf8 != (iconv_t)(-1))
14631       {
14632         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14633         char buf[50];
14634         const char *inptr = input;
14635         size_t inbytesleft = strlen (input);
14636         char *outptr = buf;
14637         size_t outbytesleft = sizeof (buf);
14638         size_t res = iconv (cd_88591_to_utf8,
14639                             (char **) &inptr, &inbytesleft,
14640                             &outptr, &outbytesleft);
14641         if ((int)res > 0)
14642           return 1;
14643       }
14644   }
14645 #endif
14646   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14647      provided.  */
14648   if (/* Try standardized names.  */
14649       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14650       /* Try IRIX, OSF/1 names.  */
14651       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14652       /* Try AIX names.  */
14653       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14654       /* Try HP-UX names.  */
14655       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14656     return 1;
14657   return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_c_try_run "$LINENO"; then :
14661   am_cv_func_iconv_works=yes
14662 else
14663   am_cv_func_iconv_works=no
14664 fi
14665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14666   conftest.$ac_objext conftest.beam conftest.$ac_ext
14667 fi
14668
14669       LIBS="$am_save_LIBS"
14670
14671 fi
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14673 $as_echo "$am_cv_func_iconv_works" >&6; }
14674     case "$am_cv_func_iconv_works" in
14675       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14676       *)   am_func_iconv=yes ;;
14677     esac
14678   else
14679     am_func_iconv=no am_cv_lib_iconv=no
14680   fi
14681   if test "$am_func_iconv" = yes; then
14682
14683 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14684
14685   fi
14686   if test "$am_cv_lib_iconv" = yes; then
14687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14688 $as_echo_n "checking how to link with libiconv... " >&6; }
14689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14690 $as_echo "$LIBICONV" >&6; }
14691   else
14692             CPPFLAGS="$am_save_CPPFLAGS"
14693     LIBICONV=
14694     LTLIBICONV=
14695   fi
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707     use_additional=yes
14708
14709   acl_save_prefix="$prefix"
14710   prefix="$acl_final_prefix"
14711   acl_save_exec_prefix="$exec_prefix"
14712   exec_prefix="$acl_final_exec_prefix"
14713
14714     eval additional_includedir=\"$includedir\"
14715     eval additional_libdir=\"$libdir\"
14716
14717   exec_prefix="$acl_save_exec_prefix"
14718   prefix="$acl_save_prefix"
14719
14720
14721 # Check whether --with-libintl-prefix was given.
14722 if test "${with_libintl_prefix+set}" = set; then :
14723   withval=$with_libintl_prefix;
14724     if test "X$withval" = "Xno"; then
14725       use_additional=no
14726     else
14727       if test "X$withval" = "X"; then
14728
14729   acl_save_prefix="$prefix"
14730   prefix="$acl_final_prefix"
14731   acl_save_exec_prefix="$exec_prefix"
14732   exec_prefix="$acl_final_exec_prefix"
14733
14734           eval additional_includedir=\"$includedir\"
14735           eval additional_libdir=\"$libdir\"
14736
14737   exec_prefix="$acl_save_exec_prefix"
14738   prefix="$acl_save_prefix"
14739
14740       else
14741         additional_includedir="$withval/include"
14742         additional_libdir="$withval/$acl_libdirstem"
14743         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14744            && ! test -d "$withval/$acl_libdirstem"; then
14745           additional_libdir="$withval/$acl_libdirstem2"
14746         fi
14747       fi
14748     fi
14749
14750 fi
14751
14752       LIBINTL=
14753   LTLIBINTL=
14754   INCINTL=
14755   LIBINTL_PREFIX=
14756       HAVE_LIBINTL=
14757   rpathdirs=
14758   ltrpathdirs=
14759   names_already_handled=
14760   names_next_round='intl '
14761   while test -n "$names_next_round"; do
14762     names_this_round="$names_next_round"
14763     names_next_round=
14764     for name in $names_this_round; do
14765       already_handled=
14766       for n in $names_already_handled; do
14767         if test "$n" = "$name"; then
14768           already_handled=yes
14769           break
14770         fi
14771       done
14772       if test -z "$already_handled"; then
14773         names_already_handled="$names_already_handled $name"
14774                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14775         eval value=\"\$HAVE_LIB$uppername\"
14776         if test -n "$value"; then
14777           if test "$value" = yes; then
14778             eval value=\"\$LIB$uppername\"
14779             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14780             eval value=\"\$LTLIB$uppername\"
14781             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14782           else
14783                                     :
14784           fi
14785         else
14786                               found_dir=
14787           found_la=
14788           found_so=
14789           found_a=
14790           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14791           if test -n "$acl_shlibext"; then
14792             shrext=".$acl_shlibext"             # typically: shrext=.so
14793           else
14794             shrext=
14795           fi
14796           if test $use_additional = yes; then
14797             dir="$additional_libdir"
14798                                     if test -n "$acl_shlibext"; then
14799               if test -f "$dir/$libname$shrext"; then
14800                 found_dir="$dir"
14801                 found_so="$dir/$libname$shrext"
14802               else
14803                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14804                   ver=`(cd "$dir" && \
14805                         for f in "$libname$shrext".*; do echo "$f"; done \
14806                         | sed -e "s,^$libname$shrext\\\\.,," \
14807                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14808                         | sed 1q ) 2>/dev/null`
14809                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14810                     found_dir="$dir"
14811                     found_so="$dir/$libname$shrext.$ver"
14812                   fi
14813                 else
14814                   eval library_names=\"$acl_library_names_spec\"
14815                   for f in $library_names; do
14816                     if test -f "$dir/$f"; then
14817                       found_dir="$dir"
14818                       found_so="$dir/$f"
14819                       break
14820                     fi
14821                   done
14822                 fi
14823               fi
14824             fi
14825                         if test "X$found_dir" = "X"; then
14826               if test -f "$dir/$libname.$acl_libext"; then
14827                 found_dir="$dir"
14828                 found_a="$dir/$libname.$acl_libext"
14829               fi
14830             fi
14831             if test "X$found_dir" != "X"; then
14832               if test -f "$dir/$libname.la"; then
14833                 found_la="$dir/$libname.la"
14834               fi
14835             fi
14836           fi
14837           if test "X$found_dir" = "X"; then
14838             for x in $LDFLAGS $LTLIBINTL; do
14839
14840   acl_save_prefix="$prefix"
14841   prefix="$acl_final_prefix"
14842   acl_save_exec_prefix="$exec_prefix"
14843   exec_prefix="$acl_final_exec_prefix"
14844   eval x=\"$x\"
14845   exec_prefix="$acl_save_exec_prefix"
14846   prefix="$acl_save_prefix"
14847
14848               case "$x" in
14849                 -L*)
14850                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14851                                     if test -n "$acl_shlibext"; then
14852                     if test -f "$dir/$libname$shrext"; then
14853                       found_dir="$dir"
14854                       found_so="$dir/$libname$shrext"
14855                     else
14856                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14857                         ver=`(cd "$dir" && \
14858                               for f in "$libname$shrext".*; do echo "$f"; done \
14859                               | sed -e "s,^$libname$shrext\\\\.,," \
14860                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14861                               | sed 1q ) 2>/dev/null`
14862                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14863                           found_dir="$dir"
14864                           found_so="$dir/$libname$shrext.$ver"
14865                         fi
14866                       else
14867                         eval library_names=\"$acl_library_names_spec\"
14868                         for f in $library_names; do
14869                           if test -f "$dir/$f"; then
14870                             found_dir="$dir"
14871                             found_so="$dir/$f"
14872                             break
14873                           fi
14874                         done
14875                       fi
14876                     fi
14877                   fi
14878                                     if test "X$found_dir" = "X"; then
14879                     if test -f "$dir/$libname.$acl_libext"; then
14880                       found_dir="$dir"
14881                       found_a="$dir/$libname.$acl_libext"
14882                     fi
14883                   fi
14884                   if test "X$found_dir" != "X"; then
14885                     if test -f "$dir/$libname.la"; then
14886                       found_la="$dir/$libname.la"
14887                     fi
14888                   fi
14889                   ;;
14890               esac
14891               if test "X$found_dir" != "X"; then
14892                 break
14893               fi
14894             done
14895           fi
14896           if test "X$found_dir" != "X"; then
14897                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14898             if test "X$found_so" != "X"; then
14899                                                         if test "$enable_rpath" = no \
14900                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14901                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14902                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14903               else
14904                                                                                 haveit=
14905                 for x in $ltrpathdirs; do
14906                   if test "X$x" = "X$found_dir"; then
14907                     haveit=yes
14908                     break
14909                   fi
14910                 done
14911                 if test -z "$haveit"; then
14912                   ltrpathdirs="$ltrpathdirs $found_dir"
14913                 fi
14914                                 if test "$acl_hardcode_direct" = yes; then
14915                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14916                 else
14917                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14918                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14919                                                             haveit=
14920                     for x in $rpathdirs; do
14921                       if test "X$x" = "X$found_dir"; then
14922                         haveit=yes
14923                         break
14924                       fi
14925                     done
14926                     if test -z "$haveit"; then
14927                       rpathdirs="$rpathdirs $found_dir"
14928                     fi
14929                   else
14930                                                                                 haveit=
14931                     for x in $LDFLAGS $LIBINTL; do
14932
14933   acl_save_prefix="$prefix"
14934   prefix="$acl_final_prefix"
14935   acl_save_exec_prefix="$exec_prefix"
14936   exec_prefix="$acl_final_exec_prefix"
14937   eval x=\"$x\"
14938   exec_prefix="$acl_save_exec_prefix"
14939   prefix="$acl_save_prefix"
14940
14941                       if test "X$x" = "X-L$found_dir"; then
14942                         haveit=yes
14943                         break
14944                       fi
14945                     done
14946                     if test -z "$haveit"; then
14947                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14948                     fi
14949                     if test "$acl_hardcode_minus_L" != no; then
14950                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14951                     else
14952                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14953                     fi
14954                   fi
14955                 fi
14956               fi
14957             else
14958               if test "X$found_a" != "X"; then
14959                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14960               else
14961                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14962               fi
14963             fi
14964                         additional_includedir=
14965             case "$found_dir" in
14966               */$acl_libdirstem | */$acl_libdirstem/)
14967                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14968                 if test "$name" = 'intl'; then
14969                   LIBINTL_PREFIX="$basedir"
14970                 fi
14971                 additional_includedir="$basedir/include"
14972                 ;;
14973               */$acl_libdirstem2 | */$acl_libdirstem2/)
14974                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14975                 if test "$name" = 'intl'; then
14976                   LIBINTL_PREFIX="$basedir"
14977                 fi
14978                 additional_includedir="$basedir/include"
14979                 ;;
14980             esac
14981             if test "X$additional_includedir" != "X"; then
14982                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14983                 haveit=
14984                 if test "X$additional_includedir" = "X/usr/local/include"; then
14985                   if test -n "$GCC"; then
14986                     case $host_os in
14987                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14988                     esac
14989                   fi
14990                 fi
14991                 if test -z "$haveit"; then
14992                   for x in $CPPFLAGS $INCINTL; do
14993
14994   acl_save_prefix="$prefix"
14995   prefix="$acl_final_prefix"
14996   acl_save_exec_prefix="$exec_prefix"
14997   exec_prefix="$acl_final_exec_prefix"
14998   eval x=\"$x\"
14999   exec_prefix="$acl_save_exec_prefix"
15000   prefix="$acl_save_prefix"
15001
15002                     if test "X$x" = "X-I$additional_includedir"; then
15003                       haveit=yes
15004                       break
15005                     fi
15006                   done
15007                   if test -z "$haveit"; then
15008                     if test -d "$additional_includedir"; then
15009                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15010                     fi
15011                   fi
15012                 fi
15013               fi
15014             fi
15015                         if test -n "$found_la"; then
15016                                                         save_libdir="$libdir"
15017               case "$found_la" in
15018                 */* | *\\*) . "$found_la" ;;
15019                 *) . "./$found_la" ;;
15020               esac
15021               libdir="$save_libdir"
15022                             for dep in $dependency_libs; do
15023                 case "$dep" in
15024                   -L*)
15025                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15026                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15027                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15028                       haveit=
15029                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15030                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15031                         if test -n "$GCC"; then
15032                           case $host_os in
15033                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15034                           esac
15035                         fi
15036                       fi
15037                       if test -z "$haveit"; then
15038                         haveit=
15039                         for x in $LDFLAGS $LIBINTL; do
15040
15041   acl_save_prefix="$prefix"
15042   prefix="$acl_final_prefix"
15043   acl_save_exec_prefix="$exec_prefix"
15044   exec_prefix="$acl_final_exec_prefix"
15045   eval x=\"$x\"
15046   exec_prefix="$acl_save_exec_prefix"
15047   prefix="$acl_save_prefix"
15048
15049                           if test "X$x" = "X-L$additional_libdir"; then
15050                             haveit=yes
15051                             break
15052                           fi
15053                         done
15054                         if test -z "$haveit"; then
15055                           if test -d "$additional_libdir"; then
15056                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15057                           fi
15058                         fi
15059                         haveit=
15060                         for x in $LDFLAGS $LTLIBINTL; do
15061
15062   acl_save_prefix="$prefix"
15063   prefix="$acl_final_prefix"
15064   acl_save_exec_prefix="$exec_prefix"
15065   exec_prefix="$acl_final_exec_prefix"
15066   eval x=\"$x\"
15067   exec_prefix="$acl_save_exec_prefix"
15068   prefix="$acl_save_prefix"
15069
15070                           if test "X$x" = "X-L$additional_libdir"; then
15071                             haveit=yes
15072                             break
15073                           fi
15074                         done
15075                         if test -z "$haveit"; then
15076                           if test -d "$additional_libdir"; then
15077                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15078                           fi
15079                         fi
15080                       fi
15081                     fi
15082                     ;;
15083                   -R*)
15084                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15085                     if test "$enable_rpath" != no; then
15086                                                                   haveit=
15087                       for x in $rpathdirs; do
15088                         if test "X$x" = "X$dir"; then
15089                           haveit=yes
15090                           break
15091                         fi
15092                       done
15093                       if test -z "$haveit"; then
15094                         rpathdirs="$rpathdirs $dir"
15095                       fi
15096                                                                   haveit=
15097                       for x in $ltrpathdirs; do
15098                         if test "X$x" = "X$dir"; then
15099                           haveit=yes
15100                           break
15101                         fi
15102                       done
15103                       if test -z "$haveit"; then
15104                         ltrpathdirs="$ltrpathdirs $dir"
15105                       fi
15106                     fi
15107                     ;;
15108                   -l*)
15109                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15110                     ;;
15111                   *.la)
15112                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15113                     ;;
15114                   *)
15115                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15116                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15117                     ;;
15118                 esac
15119               done
15120             fi
15121           else
15122                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15123             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15124           fi
15125         fi
15126       fi
15127     done
15128   done
15129   if test "X$rpathdirs" != "X"; then
15130     if test -n "$acl_hardcode_libdir_separator"; then
15131                         alldirs=
15132       for found_dir in $rpathdirs; do
15133         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15134       done
15135             acl_save_libdir="$libdir"
15136       libdir="$alldirs"
15137       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15138       libdir="$acl_save_libdir"
15139       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15140     else
15141             for found_dir in $rpathdirs; do
15142         acl_save_libdir="$libdir"
15143         libdir="$found_dir"
15144         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15145         libdir="$acl_save_libdir"
15146         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15147       done
15148     fi
15149   fi
15150   if test "X$ltrpathdirs" != "X"; then
15151             for found_dir in $ltrpathdirs; do
15152       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15153     done
15154   fi
15155
15156
15157
15158
15159
15160
15161           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15162 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15163 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
15164   $as_echo_n "(cached) " >&6
15165 else
15166   gt_save_CPPFLAGS="$CPPFLAGS"
15167             CPPFLAGS="$CPPFLAGS $INCINTL"
15168             gt_save_LIBS="$LIBS"
15169             LIBS="$LIBS $LIBINTL"
15170                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h.  */
15172 #include <libintl.h>
15173 $gt_revision_test_code
15174 extern int _nl_msg_cat_cntr;
15175 extern
15176 #ifdef __cplusplus
15177 "C"
15178 #endif
15179 const char *_nl_expand_alias (const char *);
15180 int
15181 main ()
15182 {
15183 bindtextdomain ("", "");
15184 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 if ac_fn_c_try_link "$LINENO"; then :
15190   eval "$gt_func_gnugettext_libintl=yes"
15191 else
15192   eval "$gt_func_gnugettext_libintl=no"
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext \
15195     conftest$ac_exeext conftest.$ac_ext
15196                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15197               LIBS="$LIBS $LIBICONV"
15198               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h.  */
15200 #include <libintl.h>
15201 $gt_revision_test_code
15202 extern int _nl_msg_cat_cntr;
15203 extern
15204 #ifdef __cplusplus
15205 "C"
15206 #endif
15207 const char *_nl_expand_alias (const char *);
15208 int
15209 main ()
15210 {
15211 bindtextdomain ("", "");
15212 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15213   ;
15214   return 0;
15215 }
15216 _ACEOF
15217 if ac_fn_c_try_link "$LINENO"; then :
15218   LIBINTL="$LIBINTL $LIBICONV"
15219                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15220                 eval "$gt_func_gnugettext_libintl=yes"
15221
15222 fi
15223 rm -f core conftest.err conftest.$ac_objext \
15224     conftest$ac_exeext conftest.$ac_ext
15225             fi
15226             CPPFLAGS="$gt_save_CPPFLAGS"
15227             LIBS="$gt_save_LIBS"
15228 fi
15229 eval ac_res=\$$gt_func_gnugettext_libintl
15230                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15231 $as_echo "$ac_res" >&6; }
15232         fi
15233
15234                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15235            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15236                 && test "$PACKAGE" != gettext-runtime \
15237                 && test "$PACKAGE" != gettext-tools; }; then
15238           gt_use_preinstalled_gnugettext=yes
15239         else
15240                     LIBINTL=
15241           LTLIBINTL=
15242           INCINTL=
15243         fi
15244
15245
15246
15247     if test -n "$INTL_MACOSX_LIBS"; then
15248       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15249          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15250                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15251         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15252       fi
15253     fi
15254
15255     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15256        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15257
15258 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15259
15260     else
15261       USE_NLS=no
15262     fi
15263   fi
15264
15265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15266 $as_echo_n "checking whether to use NLS... " >&6; }
15267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15268 $as_echo "$USE_NLS" >&6; }
15269   if test "$USE_NLS" = "yes"; then
15270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15271 $as_echo_n "checking where the gettext function comes from... " >&6; }
15272     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15273       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15274         gt_source="external libintl"
15275       else
15276         gt_source="libc"
15277       fi
15278     else
15279       gt_source="included intl directory"
15280     fi
15281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15282 $as_echo "$gt_source" >&6; }
15283   fi
15284
15285   if test "$USE_NLS" = "yes"; then
15286
15287     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15288       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15290 $as_echo_n "checking how to link with libintl... " >&6; }
15291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15292 $as_echo "$LIBINTL" >&6; }
15293
15294   for element in $INCINTL; do
15295     haveit=
15296     for x in $CPPFLAGS; do
15297
15298   acl_save_prefix="$prefix"
15299   prefix="$acl_final_prefix"
15300   acl_save_exec_prefix="$exec_prefix"
15301   exec_prefix="$acl_final_exec_prefix"
15302   eval x=\"$x\"
15303   exec_prefix="$acl_save_exec_prefix"
15304   prefix="$acl_save_prefix"
15305
15306       if test "X$x" = "X$element"; then
15307         haveit=yes
15308         break
15309       fi
15310     done
15311     if test -z "$haveit"; then
15312       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15313     fi
15314   done
15315
15316       fi
15317
15318
15319 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15320
15321
15322 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15323
15324     fi
15325
15326         POSUB=po
15327   fi
15328
15329
15330
15331     INTLLIBS="$LIBINTL"
15332
15333
15334
15335
15336
15337
15338
15339
15340 GETTEXT_PACKAGE=PACKAGE_TARNAME
15341
15342
15343 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
15344
15345
15346 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
15347
15348
15349 cat >confcache <<\_ACEOF
15350 # This file is a shell script that caches the results of configure
15351 # tests run on this system so they can be shared between configure
15352 # scripts and configure runs, see configure's option --config-cache.
15353 # It is not useful on other systems.  If it contains results you don't
15354 # want to keep, you may remove or edit it.
15355 #
15356 # config.status only pays attention to the cache file if you give it
15357 # the --recheck option to rerun configure.
15358 #
15359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15361 # following values.
15362
15363 _ACEOF
15364
15365 # The following way of writing the cache mishandles newlines in values,
15366 # but we know of no workaround that is simple, portable, and efficient.
15367 # So, we kill variables containing newlines.
15368 # Ultrix sh set writes to stderr and can't be redirected directly,
15369 # and sets the high bit in the cache file unless we assign to the vars.
15370 (
15371   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15372     eval ac_val=\$$ac_var
15373     case $ac_val in #(
15374     *${as_nl}*)
15375       case $ac_var in #(
15376       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15378       esac
15379       case $ac_var in #(
15380       _ | IFS | as_nl) ;; #(
15381       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15382       *) { eval $ac_var=; unset $ac_var;} ;;
15383       esac ;;
15384     esac
15385   done
15386
15387   (set) 2>&1 |
15388     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15389     *${as_nl}ac_space=\ *)
15390       # `set' does not quote correctly, so add quotes: double-quote
15391       # substitution turns \\\\ into \\, and sed turns \\ into \.
15392       sed -n \
15393         "s/'/'\\\\''/g;
15394           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15395       ;; #(
15396     *)
15397       # `set' quotes correctly as required by POSIX, so do not add quotes.
15398       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15399       ;;
15400     esac |
15401     sort
15402 ) |
15403   sed '
15404      /^ac_cv_env_/b end
15405      t clear
15406      :clear
15407      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15408      t end
15409      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15410      :end' >>confcache
15411 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15412   if test -w "$cache_file"; then
15413     test "x$cache_file" != "x/dev/null" &&
15414       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15415 $as_echo "$as_me: updating cache $cache_file" >&6;}
15416     cat confcache >$cache_file
15417   else
15418     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15419 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15420   fi
15421 fi
15422 rm -f confcache
15423
15424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15425 # Let make expand exec_prefix.
15426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15427
15428 DEFS=-DHAVE_CONFIG_H
15429
15430 ac_libobjs=
15431 ac_ltlibobjs=
15432 U=
15433 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15434   # 1. Remove the extension, and $U if already installed.
15435   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15436   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15437   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15438   #    will be set to the directory where LIBOBJS objects are built.
15439   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15440   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15441 done
15442 LIBOBJS=$ac_libobjs
15443
15444 LTLIBOBJS=$ac_ltlibobjs
15445
15446
15447  if test -n "$EXEEXT"; then
15448   am__EXEEXT_TRUE=
15449   am__EXEEXT_FALSE='#'
15450 else
15451   am__EXEEXT_TRUE='#'
15452   am__EXEEXT_FALSE=
15453 fi
15454
15455 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15456   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15458 fi
15459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15460   as_fn_error $? "conditional \"AMDEP\" was never defined.
15461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15462 fi
15463 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15464   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15466 fi
15467 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15468   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15470 fi
15471 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
15472   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
15473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474 fi
15475 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15476   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15478 fi
15479 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
15480   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
15481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15482 fi
15483 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
15484   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
15485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15486 fi
15487 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
15488   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
15489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15490 fi
15491 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
15492   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
15493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15494 fi
15495 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
15496   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
15497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15498 fi
15499
15500 : ${CONFIG_STATUS=./config.status}
15501 ac_write_fail=0
15502 ac_clean_files_save=$ac_clean_files
15503 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15505 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15506 as_write_fail=0
15507 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15508 #! $SHELL
15509 # Generated by $as_me.
15510 # Run this file to recreate the current configuration.
15511 # Compiler output produced by configure, useful for debugging
15512 # configure, is in config.log if it exists.
15513
15514 debug=false
15515 ac_cs_recheck=false
15516 ac_cs_silent=false
15517
15518 SHELL=\${CONFIG_SHELL-$SHELL}
15519 export SHELL
15520 _ASEOF
15521 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15522 ## -------------------- ##
15523 ## M4sh Initialization. ##
15524 ## -------------------- ##
15525
15526 # Be more Bourne compatible
15527 DUALCASE=1; export DUALCASE # for MKS sh
15528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15529   emulate sh
15530   NULLCMD=:
15531   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15532   # is contrary to our usage.  Disable this feature.
15533   alias -g '${1+"$@"}'='"$@"'
15534   setopt NO_GLOB_SUBST
15535 else
15536   case `(set -o) 2>/dev/null` in #(
15537   *posix*) :
15538     set -o posix ;; #(
15539   *) :
15540      ;;
15541 esac
15542 fi
15543
15544
15545 as_nl='
15546 '
15547 export as_nl
15548 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15549 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15550 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15552 # Prefer a ksh shell builtin over an external printf program on Solaris,
15553 # but without wasting forks for bash or zsh.
15554 if test -z "$BASH_VERSION$ZSH_VERSION" \
15555     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15556   as_echo='print -r --'
15557   as_echo_n='print -rn --'
15558 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15559   as_echo='printf %s\n'
15560   as_echo_n='printf %s'
15561 else
15562   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15563     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15564     as_echo_n='/usr/ucb/echo -n'
15565   else
15566     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15567     as_echo_n_body='eval
15568       arg=$1;
15569       case $arg in #(
15570       *"$as_nl"*)
15571         expr "X$arg" : "X\\(.*\\)$as_nl";
15572         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15573       esac;
15574       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15575     '
15576     export as_echo_n_body
15577     as_echo_n='sh -c $as_echo_n_body as_echo'
15578   fi
15579   export as_echo_body
15580   as_echo='sh -c $as_echo_body as_echo'
15581 fi
15582
15583 # The user is always right.
15584 if test "${PATH_SEPARATOR+set}" != set; then
15585   PATH_SEPARATOR=:
15586   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15587     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15588       PATH_SEPARATOR=';'
15589   }
15590 fi
15591
15592
15593 # IFS
15594 # We need space, tab and new line, in precisely that order.  Quoting is
15595 # there to prevent editors from complaining about space-tab.
15596 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15597 # splitting by setting IFS to empty value.)
15598 IFS=" ""        $as_nl"
15599
15600 # Find who we are.  Look in the path if we contain no directory separator.
15601 case $0 in #((
15602   *[\\/]* ) as_myself=$0 ;;
15603   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15605 do
15606   IFS=$as_save_IFS
15607   test -z "$as_dir" && as_dir=.
15608     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15609   done
15610 IFS=$as_save_IFS
15611
15612      ;;
15613 esac
15614 # We did not find ourselves, most probably we were run as `sh COMMAND'
15615 # in which case we are not to be found in the path.
15616 if test "x$as_myself" = x; then
15617   as_myself=$0
15618 fi
15619 if test ! -f "$as_myself"; then
15620   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15621   exit 1
15622 fi
15623
15624 # Unset variables that we do not need and which cause bugs (e.g. in
15625 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15626 # suppresses any "Segmentation fault" message there.  '((' could
15627 # trigger a bug in pdksh 5.2.14.
15628 for as_var in BASH_ENV ENV MAIL MAILPATH
15629 do eval test x\${$as_var+set} = xset \
15630   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15631 done
15632 PS1='$ '
15633 PS2='> '
15634 PS4='+ '
15635
15636 # NLS nuisances.
15637 LC_ALL=C
15638 export LC_ALL
15639 LANGUAGE=C
15640 export LANGUAGE
15641
15642 # CDPATH.
15643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15644
15645
15646 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15647 # ----------------------------------------
15648 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15649 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15650 # script with STATUS, using 1 if that was 0.
15651 as_fn_error ()
15652 {
15653   as_status=$1; test $as_status -eq 0 && as_status=1
15654   if test "$4"; then
15655     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15656     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15657   fi
15658   $as_echo "$as_me: error: $2" >&2
15659   as_fn_exit $as_status
15660 } # as_fn_error
15661
15662
15663 # as_fn_set_status STATUS
15664 # -----------------------
15665 # Set $? to STATUS, without forking.
15666 as_fn_set_status ()
15667 {
15668   return $1
15669 } # as_fn_set_status
15670
15671 # as_fn_exit STATUS
15672 # -----------------
15673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15674 as_fn_exit ()
15675 {
15676   set +e
15677   as_fn_set_status $1
15678   exit $1
15679 } # as_fn_exit
15680
15681 # as_fn_unset VAR
15682 # ---------------
15683 # Portably unset VAR.
15684 as_fn_unset ()
15685 {
15686   { eval $1=; unset $1;}
15687 }
15688 as_unset=as_fn_unset
15689 # as_fn_append VAR VALUE
15690 # ----------------------
15691 # Append the text in VALUE to the end of the definition contained in VAR. Take
15692 # advantage of any shell optimizations that allow amortized linear growth over
15693 # repeated appends, instead of the typical quadratic growth present in naive
15694 # implementations.
15695 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15696   eval 'as_fn_append ()
15697   {
15698     eval $1+=\$2
15699   }'
15700 else
15701   as_fn_append ()
15702   {
15703     eval $1=\$$1\$2
15704   }
15705 fi # as_fn_append
15706
15707 # as_fn_arith ARG...
15708 # ------------------
15709 # Perform arithmetic evaluation on the ARGs, and store the result in the
15710 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15711 # must be portable across $(()) and expr.
15712 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15713   eval 'as_fn_arith ()
15714   {
15715     as_val=$(( $* ))
15716   }'
15717 else
15718   as_fn_arith ()
15719   {
15720     as_val=`expr "$@" || test $? -eq 1`
15721   }
15722 fi # as_fn_arith
15723
15724
15725 if expr a : '\(a\)' >/dev/null 2>&1 &&
15726    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15727   as_expr=expr
15728 else
15729   as_expr=false
15730 fi
15731
15732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15733   as_basename=basename
15734 else
15735   as_basename=false
15736 fi
15737
15738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15739   as_dirname=dirname
15740 else
15741   as_dirname=false
15742 fi
15743
15744 as_me=`$as_basename -- "$0" ||
15745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15746          X"$0" : 'X\(//\)$' \| \
15747          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15748 $as_echo X/"$0" |
15749     sed '/^.*\/\([^/][^/]*\)\/*$/{
15750             s//\1/
15751             q
15752           }
15753           /^X\/\(\/\/\)$/{
15754             s//\1/
15755             q
15756           }
15757           /^X\/\(\/\).*/{
15758             s//\1/
15759             q
15760           }
15761           s/.*/./; q'`
15762
15763 # Avoid depending upon Character Ranges.
15764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15767 as_cr_digits='0123456789'
15768 as_cr_alnum=$as_cr_Letters$as_cr_digits
15769
15770 ECHO_C= ECHO_N= ECHO_T=
15771 case `echo -n x` in #(((((
15772 -n*)
15773   case `echo 'xy\c'` in
15774   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15775   xy)  ECHO_C='\c';;
15776   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15777        ECHO_T=' ';;
15778   esac;;
15779 *)
15780   ECHO_N='-n';;
15781 esac
15782
15783 rm -f conf$$ conf$$.exe conf$$.file
15784 if test -d conf$$.dir; then
15785   rm -f conf$$.dir/conf$$.file
15786 else
15787   rm -f conf$$.dir
15788   mkdir conf$$.dir 2>/dev/null
15789 fi
15790 if (echo >conf$$.file) 2>/dev/null; then
15791   if ln -s conf$$.file conf$$ 2>/dev/null; then
15792     as_ln_s='ln -s'
15793     # ... but there are two gotchas:
15794     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15795     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15796     # In both cases, we have to default to `cp -p'.
15797     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15798       as_ln_s='cp -p'
15799   elif ln conf$$.file conf$$ 2>/dev/null; then
15800     as_ln_s=ln
15801   else
15802     as_ln_s='cp -p'
15803   fi
15804 else
15805   as_ln_s='cp -p'
15806 fi
15807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15808 rmdir conf$$.dir 2>/dev/null
15809
15810
15811 # as_fn_mkdir_p
15812 # -------------
15813 # Create "$as_dir" as a directory, including parents if necessary.
15814 as_fn_mkdir_p ()
15815 {
15816
15817   case $as_dir in #(
15818   -*) as_dir=./$as_dir;;
15819   esac
15820   test -d "$as_dir" || eval $as_mkdir_p || {
15821     as_dirs=
15822     while :; do
15823       case $as_dir in #(
15824       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15825       *) as_qdir=$as_dir;;
15826       esac
15827       as_dirs="'$as_qdir' $as_dirs"
15828       as_dir=`$as_dirname -- "$as_dir" ||
15829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15830          X"$as_dir" : 'X\(//\)[^/]' \| \
15831          X"$as_dir" : 'X\(//\)$' \| \
15832          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15833 $as_echo X"$as_dir" |
15834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15835             s//\1/
15836             q
15837           }
15838           /^X\(\/\/\)[^/].*/{
15839             s//\1/
15840             q
15841           }
15842           /^X\(\/\/\)$/{
15843             s//\1/
15844             q
15845           }
15846           /^X\(\/\).*/{
15847             s//\1/
15848             q
15849           }
15850           s/.*/./; q'`
15851       test -d "$as_dir" && break
15852     done
15853     test -z "$as_dirs" || eval "mkdir $as_dirs"
15854   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15855
15856
15857 } # as_fn_mkdir_p
15858 if mkdir -p . 2>/dev/null; then
15859   as_mkdir_p='mkdir -p "$as_dir"'
15860 else
15861   test -d ./-p && rmdir ./-p
15862   as_mkdir_p=false
15863 fi
15864
15865 if test -x / >/dev/null 2>&1; then
15866   as_test_x='test -x'
15867 else
15868   if ls -dL / >/dev/null 2>&1; then
15869     as_ls_L_option=L
15870   else
15871     as_ls_L_option=
15872   fi
15873   as_test_x='
15874     eval sh -c '\''
15875       if test -d "$1"; then
15876         test -d "$1/.";
15877       else
15878         case $1 in #(
15879         -*)set "./$1";;
15880         esac;
15881         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15882         ???[sx]*):;;*)false;;esac;fi
15883     '\'' sh
15884   '
15885 fi
15886 as_executable_p=$as_test_x
15887
15888 # Sed expression to map a string onto a valid CPP name.
15889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15890
15891 # Sed expression to map a string onto a valid variable name.
15892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15893
15894
15895 exec 6>&1
15896 ## ----------------------------------- ##
15897 ## Main body of $CONFIG_STATUS script. ##
15898 ## ----------------------------------- ##
15899 _ASEOF
15900 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15901
15902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15903 # Save the log message, to keep $0 and so on meaningful, and to
15904 # report actual input values of CONFIG_FILES etc. instead of their
15905 # values after options handling.
15906 ac_log="
15907 This file was extended by Moonshot-ui $as_me 0.1, which was
15908 generated by GNU Autoconf 2.67.  Invocation command line was
15909
15910   CONFIG_FILES    = $CONFIG_FILES
15911   CONFIG_HEADERS  = $CONFIG_HEADERS
15912   CONFIG_LINKS    = $CONFIG_LINKS
15913   CONFIG_COMMANDS = $CONFIG_COMMANDS
15914   $ $0 $@
15915
15916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15917 "
15918
15919 _ACEOF
15920
15921 case $ac_config_files in *"
15922 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15923 esac
15924
15925 case $ac_config_headers in *"
15926 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15927 esac
15928
15929
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 # Files that config.status was made for.
15932 config_files="$ac_config_files"
15933 config_headers="$ac_config_headers"
15934 config_commands="$ac_config_commands"
15935
15936 _ACEOF
15937
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 ac_cs_usage="\
15940 \`$as_me' instantiates files and other configuration actions
15941 from templates according to the current configuration.  Unless the files
15942 and actions are specified as TAGs, all are instantiated by default.
15943
15944 Usage: $0 [OPTION]... [TAG]...
15945
15946   -h, --help       print this help, then exit
15947   -V, --version    print version number and configuration settings, then exit
15948       --config     print configuration, then exit
15949   -q, --quiet, --silent
15950                    do not print progress messages
15951   -d, --debug      don't remove temporary files
15952       --recheck    update $as_me by reconfiguring in the same conditions
15953       --file=FILE[:TEMPLATE]
15954                    instantiate the configuration file FILE
15955       --header=FILE[:TEMPLATE]
15956                    instantiate the configuration header FILE
15957
15958 Configuration files:
15959 $config_files
15960
15961 Configuration headers:
15962 $config_headers
15963
15964 Configuration commands:
15965 $config_commands
15966
15967 Report bugs to <moonshot-community@jiscmail.ac.uk>.
15968 Moonshot-ui home page: <http://www.project-moonshot.org/>."
15969
15970 _ACEOF
15971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15973 ac_cs_version="\\
15974 Moonshot-ui config.status 0.1
15975 configured by $0, generated by GNU Autoconf 2.67,
15976   with options \\"\$ac_cs_config\\"
15977
15978 Copyright (C) 2010 Free Software Foundation, Inc.
15979 This config.status script is free software; the Free Software Foundation
15980 gives unlimited permission to copy, distribute and modify it."
15981
15982 ac_pwd='$ac_pwd'
15983 srcdir='$srcdir'
15984 INSTALL='$INSTALL'
15985 MKDIR_P='$MKDIR_P'
15986 AWK='$AWK'
15987 test -n "\$AWK" || AWK=awk
15988 _ACEOF
15989
15990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15991 # The default lists apply if the user does not specify any file.
15992 ac_need_defaults=:
15993 while test $# != 0
15994 do
15995   case $1 in
15996   --*=?*)
15997     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15998     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15999     ac_shift=:
16000     ;;
16001   --*=)
16002     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16003     ac_optarg=
16004     ac_shift=:
16005     ;;
16006   *)
16007     ac_option=$1
16008     ac_optarg=$2
16009     ac_shift=shift
16010     ;;
16011   esac
16012
16013   case $ac_option in
16014   # Handling of the options.
16015   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16016     ac_cs_recheck=: ;;
16017   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16018     $as_echo "$ac_cs_version"; exit ;;
16019   --config | --confi | --conf | --con | --co | --c )
16020     $as_echo "$ac_cs_config"; exit ;;
16021   --debug | --debu | --deb | --de | --d | -d )
16022     debug=: ;;
16023   --file | --fil | --fi | --f )
16024     $ac_shift
16025     case $ac_optarg in
16026     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16027     '') as_fn_error $? "missing file argument" ;;
16028     esac
16029     as_fn_append CONFIG_FILES " '$ac_optarg'"
16030     ac_need_defaults=false;;
16031   --header | --heade | --head | --hea )
16032     $ac_shift
16033     case $ac_optarg in
16034     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16035     esac
16036     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16037     ac_need_defaults=false;;
16038   --he | --h)
16039     # Conflict between --help and --header
16040     as_fn_error $? "ambiguous option: \`$1'
16041 Try \`$0 --help' for more information.";;
16042   --help | --hel | -h )
16043     $as_echo "$ac_cs_usage"; exit ;;
16044   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16045   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16046     ac_cs_silent=: ;;
16047
16048   # This is an error.
16049   -*) as_fn_error $? "unrecognized option: \`$1'
16050 Try \`$0 --help' for more information." ;;
16051
16052   *) as_fn_append ac_config_targets " $1"
16053      ac_need_defaults=false ;;
16054
16055   esac
16056   shift
16057 done
16058
16059 ac_configure_extra_args=
16060
16061 if $ac_cs_silent; then
16062   exec 6>/dev/null
16063   ac_configure_extra_args="$ac_configure_extra_args --silent"
16064 fi
16065
16066 _ACEOF
16067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16068 if \$ac_cs_recheck; then
16069   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16070   shift
16071   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16072   CONFIG_SHELL='$SHELL'
16073   export CONFIG_SHELL
16074   exec "\$@"
16075 fi
16076
16077 _ACEOF
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 exec 5>>config.log
16080 {
16081   echo
16082   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16083 ## Running $as_me. ##
16084 _ASBOX
16085   $as_echo "$ac_log"
16086 } >&5
16087
16088 _ACEOF
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16090 #
16091 # INIT-COMMANDS
16092 #
16093 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16094
16095
16096 # The HP-UX ksh and POSIX shell print the target directory to stdout
16097 # if CDPATH is set.
16098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16099
16100 sed_quote_subst='$sed_quote_subst'
16101 double_quote_subst='$double_quote_subst'
16102 delay_variable_subst='$delay_variable_subst'
16103 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16104 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16105 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16106 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16107 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16108 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16109 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16110 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16111 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16112 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16113 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16114 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16115 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16116 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16117 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16118 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16119 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16120 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16121 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16122 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16123 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16124 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16125 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16126 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16127 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16128 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16129 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16130 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16131 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16132 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16133 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16134 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16135 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16136 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16137 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16138 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16139 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16140 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16141 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16142 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16143 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16144 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16145 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16146 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16147 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16148 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16149 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16150 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16151 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16152 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16153 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16154 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16155 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16156 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16157 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16158 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16159 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16160 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16161 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16162 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16163 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16164 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16165 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16166 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16167 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16168 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16169 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16170 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16171 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16172 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16173 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16174 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16175 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16176 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16177 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16178 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16179 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16180 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16181 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16182 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16183 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16184 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16185 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16186 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16187 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16188 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16189 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16190 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16191 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16192 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16193 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16194 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16195 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16196 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16197 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16198 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16199 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16200 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16201 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16202 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16203 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16204 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16205 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16206 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16207 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16208 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16209 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16210 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16211 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16212 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16213 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16214 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16215 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16216 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16217 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16218 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16219 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16220 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16221 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16222 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16223
16224 LTCC='$LTCC'
16225 LTCFLAGS='$LTCFLAGS'
16226 compiler='$compiler_DEFAULT'
16227
16228 # Quote evaled strings.
16229 for var in SED \
16230 GREP \
16231 EGREP \
16232 FGREP \
16233 LD \
16234 NM \
16235 LN_S \
16236 lt_SP2NL \
16237 lt_NL2SP \
16238 reload_flag \
16239 deplibs_check_method \
16240 file_magic_cmd \
16241 AR \
16242 AR_FLAGS \
16243 STRIP \
16244 RANLIB \
16245 CC \
16246 CFLAGS \
16247 compiler \
16248 lt_cv_sys_global_symbol_pipe \
16249 lt_cv_sys_global_symbol_to_cdecl \
16250 lt_cv_sys_global_symbol_to_c_name_address \
16251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16252 SHELL \
16253 ECHO \
16254 lt_prog_compiler_no_builtin_flag \
16255 lt_prog_compiler_wl \
16256 lt_prog_compiler_pic \
16257 lt_prog_compiler_static \
16258 lt_cv_prog_compiler_c_o \
16259 need_locks \
16260 DSYMUTIL \
16261 NMEDIT \
16262 LIPO \
16263 OTOOL \
16264 OTOOL64 \
16265 shrext_cmds \
16266 export_dynamic_flag_spec \
16267 whole_archive_flag_spec \
16268 compiler_needs_object \
16269 with_gnu_ld \
16270 allow_undefined_flag \
16271 no_undefined_flag \
16272 hardcode_libdir_flag_spec \
16273 hardcode_libdir_flag_spec_ld \
16274 hardcode_libdir_separator \
16275 fix_srcfile_path \
16276 exclude_expsyms \
16277 include_expsyms \
16278 file_list_spec \
16279 variables_saved_for_relink \
16280 libname_spec \
16281 library_names_spec \
16282 soname_spec \
16283 finish_eval \
16284 old_striplib \
16285 striplib; do
16286     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16287     *[\\\\\\\`\\"\\\$]*)
16288       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16289       ;;
16290     *)
16291       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16292       ;;
16293     esac
16294 done
16295
16296 # Double-quote double-evaled strings.
16297 for var in reload_cmds \
16298 old_postinstall_cmds \
16299 old_postuninstall_cmds \
16300 old_archive_cmds \
16301 extract_expsyms_cmds \
16302 old_archive_from_new_cmds \
16303 old_archive_from_expsyms_cmds \
16304 archive_cmds \
16305 archive_expsym_cmds \
16306 module_cmds \
16307 module_expsym_cmds \
16308 export_symbols_cmds \
16309 prelink_cmds \
16310 postinstall_cmds \
16311 postuninstall_cmds \
16312 finish_cmds \
16313 sys_lib_search_path_spec \
16314 sys_lib_dlsearch_path_spec; do
16315     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16316     *[\\\\\\\`\\"\\\$]*)
16317       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16318       ;;
16319     *)
16320       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16321       ;;
16322     esac
16323 done
16324
16325 # Fix-up fallback echo if it was mangled by the above quoting rules.
16326 case \$lt_ECHO in
16327 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16328   ;;
16329 esac
16330
16331 ac_aux_dir='$ac_aux_dir'
16332 xsi_shell='$xsi_shell'
16333 lt_shell_append='$lt_shell_append'
16334
16335 # See if we are running on zsh, and set the options which allow our
16336 # commands through without removal of \ escapes INIT.
16337 if test -n "\${ZSH_VERSION+set}" ; then
16338    setopt NO_GLOB_SUBST
16339 fi
16340
16341
16342     PACKAGE='$PACKAGE'
16343     VERSION='$VERSION'
16344     TIMESTAMP='$TIMESTAMP'
16345     RM='$RM'
16346     ofile='$ofile'
16347
16348
16349
16350 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16351     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16352     # from automake < 1.5.
16353     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16354     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16355     LINGUAS="${LINGUAS-%UNSET%}"
16356
16357
16358 _ACEOF
16359
16360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16361
16362 # Handling of arguments.
16363 for ac_config_target in $ac_config_targets
16364 do
16365   case $ac_config_target in
16366     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16367     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16368     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16369     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16370     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16371     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16372     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
16373     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
16374     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
16375
16376   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16377   esac
16378 done
16379
16380
16381 # If the user did not use the arguments to specify the items to instantiate,
16382 # then the envvar interface is used.  Set only those that are not.
16383 # We use the long form for the default assignment because of an extremely
16384 # bizarre bug on SunOS 4.1.3.
16385 if $ac_need_defaults; then
16386   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16387   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16388   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16389 fi
16390
16391 # Have a temporary directory for convenience.  Make it in the build tree
16392 # simply because there is no reason against having it here, and in addition,
16393 # creating and moving files from /tmp can sometimes cause problems.
16394 # Hook for its removal unless debugging.
16395 # Note that there is a small window in which the directory will not be cleaned:
16396 # after its creation but before its name has been assigned to `$tmp'.
16397 $debug ||
16398 {
16399   tmp=
16400   trap 'exit_status=$?
16401   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16402 ' 0
16403   trap 'as_fn_exit 1' 1 2 13 15
16404 }
16405 # Create a (secure) tmp directory for tmp files.
16406
16407 {
16408   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16409   test -n "$tmp" && test -d "$tmp"
16410 }  ||
16411 {
16412   tmp=./conf$$-$RANDOM
16413   (umask 077 && mkdir "$tmp")
16414 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16415
16416 # Set up the scripts for CONFIG_FILES section.
16417 # No need to generate them if there are no CONFIG_FILES.
16418 # This happens for instance with `./config.status config.h'.
16419 if test -n "$CONFIG_FILES"; then
16420
16421
16422 ac_cr=`echo X | tr X '\015'`
16423 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16424 # But we know of no other shell where ac_cr would be empty at this
16425 # point, so we can use a bashism as a fallback.
16426 if test "x$ac_cr" = x; then
16427   eval ac_cr=\$\'\\r\'
16428 fi
16429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16431   ac_cs_awk_cr='\\r'
16432 else
16433   ac_cs_awk_cr=$ac_cr
16434 fi
16435
16436 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16437 _ACEOF
16438
16439
16440 {
16441   echo "cat >conf$$subs.awk <<_ACEOF" &&
16442   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16443   echo "_ACEOF"
16444 } >conf$$subs.sh ||
16445   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16447 ac_delim='%!_!# '
16448 for ac_last_try in false false false false false :; do
16449   . ./conf$$subs.sh ||
16450     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16451
16452   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16453   if test $ac_delim_n = $ac_delim_num; then
16454     break
16455   elif $ac_last_try; then
16456     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16457   else
16458     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16459   fi
16460 done
16461 rm -f conf$$subs.sh
16462
16463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16465 _ACEOF
16466 sed -n '
16467 h
16468 s/^/S["/; s/!.*/"]=/
16469 p
16470 g
16471 s/^[^!]*!//
16472 :repl
16473 t repl
16474 s/'"$ac_delim"'$//
16475 t delim
16476 :nl
16477 h
16478 s/\(.\{148\}\)..*/\1/
16479 t more1
16480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16481 p
16482 n
16483 b repl
16484 :more1
16485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16486 p
16487 g
16488 s/.\{148\}//
16489 t nl
16490 :delim
16491 h
16492 s/\(.\{148\}\)..*/\1/
16493 t more2
16494 s/["\\]/\\&/g; s/^/"/; s/$/"/
16495 p
16496 b
16497 :more2
16498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16499 p
16500 g
16501 s/.\{148\}//
16502 t delim
16503 ' <conf$$subs.awk | sed '
16504 /^[^""]/{
16505   N
16506   s/\n//
16507 }
16508 ' >>$CONFIG_STATUS || ac_write_fail=1
16509 rm -f conf$$subs.awk
16510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16511 _ACAWK
16512 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16513   for (key in S) S_is_set[key] = 1
16514   FS = "\a"
16515
16516 }
16517 {
16518   line = $ 0
16519   nfields = split(line, field, "@")
16520   substed = 0
16521   len = length(field[1])
16522   for (i = 2; i < nfields; i++) {
16523     key = field[i]
16524     keylen = length(key)
16525     if (S_is_set[key]) {
16526       value = S[key]
16527       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16528       len += length(value) + length(field[++i])
16529       substed = 1
16530     } else
16531       len += 1 + keylen
16532   }
16533
16534   print line
16535 }
16536
16537 _ACAWK
16538 _ACEOF
16539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16541   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16542 else
16543   cat
16544 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16545   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16546 _ACEOF
16547
16548 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16549 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16550 # trailing colons and then remove the whole line if VPATH becomes empty
16551 # (actually we leave an empty line to preserve line numbers).
16552 if test "x$srcdir" = x.; then
16553   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16554 h
16555 s///
16556 s/^/:/
16557 s/[      ]*$/:/
16558 s/:\$(srcdir):/:/g
16559 s/:\${srcdir}:/:/g
16560 s/:@srcdir@:/:/g
16561 s/^:*//
16562 s/:*$//
16563 x
16564 s/\(=[   ]*\).*/\1/
16565 G
16566 s/\n//
16567 s/^[^=]*=[       ]*$//
16568 }'
16569 fi
16570
16571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16572 fi # test -n "$CONFIG_FILES"
16573
16574 # Set up the scripts for CONFIG_HEADERS section.
16575 # No need to generate them if there are no CONFIG_HEADERS.
16576 # This happens for instance with `./config.status Makefile'.
16577 if test -n "$CONFIG_HEADERS"; then
16578 cat >"$tmp/defines.awk" <<\_ACAWK ||
16579 BEGIN {
16580 _ACEOF
16581
16582 # Transform confdefs.h into an awk script `defines.awk', embedded as
16583 # here-document in config.status, that substitutes the proper values into
16584 # config.h.in to produce config.h.
16585
16586 # Create a delimiter string that does not exist in confdefs.h, to ease
16587 # handling of long lines.
16588 ac_delim='%!_!# '
16589 for ac_last_try in false false :; do
16590   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16591   if test -z "$ac_t"; then
16592     break
16593   elif $ac_last_try; then
16594     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16595   else
16596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16597   fi
16598 done
16599
16600 # For the awk script, D is an array of macro values keyed by name,
16601 # likewise P contains macro parameters if any.  Preserve backslash
16602 # newline sequences.
16603
16604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16605 sed -n '
16606 s/.\{148\}/&'"$ac_delim"'/g
16607 t rset
16608 :rset
16609 s/^[     ]*#[    ]*define[       ][      ]*/ /
16610 t def
16611 d
16612 :def
16613 s/\\$//
16614 t bsnl
16615 s/["\\]/\\&/g
16616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16617 D["\1"]=" \3"/p
16618 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16619 d
16620 :bsnl
16621 s/["\\]/\\&/g
16622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16623 D["\1"]=" \3\\\\\\n"\\/p
16624 t cont
16625 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16626 t cont
16627 d
16628 :cont
16629 n
16630 s/.\{148\}/&'"$ac_delim"'/g
16631 t clear
16632 :clear
16633 s/\\$//
16634 t bsnlc
16635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16636 d
16637 :bsnlc
16638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16639 b cont
16640 ' <confdefs.h | sed '
16641 s/'"$ac_delim"'/"\\\
16642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16643
16644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16645   for (key in D) D_is_set[key] = 1
16646   FS = "\a"
16647 }
16648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16649   line = \$ 0
16650   split(line, arg, " ")
16651   if (arg[1] == "#") {
16652     defundef = arg[2]
16653     mac1 = arg[3]
16654   } else {
16655     defundef = substr(arg[1], 2)
16656     mac1 = arg[2]
16657   }
16658   split(mac1, mac2, "(") #)
16659   macro = mac2[1]
16660   prefix = substr(line, 1, index(line, defundef) - 1)
16661   if (D_is_set[macro]) {
16662     # Preserve the white space surrounding the "#".
16663     print prefix "define", macro P[macro] D[macro]
16664     next
16665   } else {
16666     # Replace #undef with comments.  This is necessary, for example,
16667     # in the case of _POSIX_SOURCE, which is predefined and required
16668     # on some systems where configure will not decide to define it.
16669     if (defundef == "undef") {
16670       print "/*", prefix defundef, macro, "*/"
16671       next
16672     }
16673   }
16674 }
16675 { print }
16676 _ACAWK
16677 _ACEOF
16678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16679   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16680 fi # test -n "$CONFIG_HEADERS"
16681
16682
16683 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16684 shift
16685 for ac_tag
16686 do
16687   case $ac_tag in
16688   :[FHLC]) ac_mode=$ac_tag; continue;;
16689   esac
16690   case $ac_mode$ac_tag in
16691   :[FHL]*:*);;
16692   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16693   :[FH]-) ac_tag=-:-;;
16694   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16695   esac
16696   ac_save_IFS=$IFS
16697   IFS=:
16698   set x $ac_tag
16699   IFS=$ac_save_IFS
16700   shift
16701   ac_file=$1
16702   shift
16703
16704   case $ac_mode in
16705   :L) ac_source=$1;;
16706   :[FH])
16707     ac_file_inputs=
16708     for ac_f
16709     do
16710       case $ac_f in
16711       -) ac_f="$tmp/stdin";;
16712       *) # Look for the file first in the build tree, then in the source tree
16713          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16714          # because $ac_f cannot contain `:'.
16715          test -f "$ac_f" ||
16716            case $ac_f in
16717            [\\/$]*) false;;
16718            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16719            esac ||
16720            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16721       esac
16722       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16723       as_fn_append ac_file_inputs " '$ac_f'"
16724     done
16725
16726     # Let's still pretend it is `configure' which instantiates (i.e., don't
16727     # use $as_me), people would be surprised to read:
16728     #    /* config.h.  Generated by config.status.  */
16729     configure_input='Generated from '`
16730           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16731         `' by configure.'
16732     if test x"$ac_file" != x-; then
16733       configure_input="$ac_file.  $configure_input"
16734       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16735 $as_echo "$as_me: creating $ac_file" >&6;}
16736     fi
16737     # Neutralize special characters interpreted by sed in replacement strings.
16738     case $configure_input in #(
16739     *\&* | *\|* | *\\* )
16740        ac_sed_conf_input=`$as_echo "$configure_input" |
16741        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16742     *) ac_sed_conf_input=$configure_input;;
16743     esac
16744
16745     case $ac_tag in
16746     *:-:* | *:-) cat >"$tmp/stdin" \
16747       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16748     esac
16749     ;;
16750   esac
16751
16752   ac_dir=`$as_dirname -- "$ac_file" ||
16753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16754          X"$ac_file" : 'X\(//\)[^/]' \| \
16755          X"$ac_file" : 'X\(//\)$' \| \
16756          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16757 $as_echo X"$ac_file" |
16758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16759             s//\1/
16760             q
16761           }
16762           /^X\(\/\/\)[^/].*/{
16763             s//\1/
16764             q
16765           }
16766           /^X\(\/\/\)$/{
16767             s//\1/
16768             q
16769           }
16770           /^X\(\/\).*/{
16771             s//\1/
16772             q
16773           }
16774           s/.*/./; q'`
16775   as_dir="$ac_dir"; as_fn_mkdir_p
16776   ac_builddir=.
16777
16778 case "$ac_dir" in
16779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16780 *)
16781   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16782   # A ".." for each directory in $ac_dir_suffix.
16783   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16784   case $ac_top_builddir_sub in
16785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16787   esac ;;
16788 esac
16789 ac_abs_top_builddir=$ac_pwd
16790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16791 # for backward compatibility:
16792 ac_top_builddir=$ac_top_build_prefix
16793
16794 case $srcdir in
16795   .)  # We are building in place.
16796     ac_srcdir=.
16797     ac_top_srcdir=$ac_top_builddir_sub
16798     ac_abs_top_srcdir=$ac_pwd ;;
16799   [\\/]* | ?:[\\/]* )  # Absolute name.
16800     ac_srcdir=$srcdir$ac_dir_suffix;
16801     ac_top_srcdir=$srcdir
16802     ac_abs_top_srcdir=$srcdir ;;
16803   *) # Relative name.
16804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16805     ac_top_srcdir=$ac_top_build_prefix$srcdir
16806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16807 esac
16808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16809
16810
16811   case $ac_mode in
16812   :F)
16813   #
16814   # CONFIG_FILE
16815   #
16816
16817   case $INSTALL in
16818   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16819   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16820   esac
16821   ac_MKDIR_P=$MKDIR_P
16822   case $MKDIR_P in
16823   [\\/$]* | ?:[\\/]* ) ;;
16824   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16825   esac
16826 _ACEOF
16827
16828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16829 # If the template does not know about datarootdir, expand it.
16830 # FIXME: This hack should be removed a few years after 2.60.
16831 ac_datarootdir_hack=; ac_datarootdir_seen=
16832 ac_sed_dataroot='
16833 /datarootdir/ {
16834   p
16835   q
16836 }
16837 /@datadir@/p
16838 /@docdir@/p
16839 /@infodir@/p
16840 /@localedir@/p
16841 /@mandir@/p'
16842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16843 *datarootdir*) ac_datarootdir_seen=yes;;
16844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16847 _ACEOF
16848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16849   ac_datarootdir_hack='
16850   s&@datadir@&$datadir&g
16851   s&@docdir@&$docdir&g
16852   s&@infodir@&$infodir&g
16853   s&@localedir@&$localedir&g
16854   s&@mandir@&$mandir&g
16855   s&\\\${datarootdir}&$datarootdir&g' ;;
16856 esac
16857 _ACEOF
16858
16859 # Neutralize VPATH when `$srcdir' = `.'.
16860 # Shell code in configure.ac might set extrasub.
16861 # FIXME: do we really want to maintain this feature?
16862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16863 ac_sed_extra="$ac_vpsub
16864 $extrasub
16865 _ACEOF
16866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16867 :t
16868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16869 s|@configure_input@|$ac_sed_conf_input|;t t
16870 s&@top_builddir@&$ac_top_builddir_sub&;t t
16871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16872 s&@srcdir@&$ac_srcdir&;t t
16873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16874 s&@top_srcdir@&$ac_top_srcdir&;t t
16875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16876 s&@builddir@&$ac_builddir&;t t
16877 s&@abs_builddir@&$ac_abs_builddir&;t t
16878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16879 s&@INSTALL@&$ac_INSTALL&;t t
16880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16881 $ac_datarootdir_hack
16882 "
16883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16884   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16885
16886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16887   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16888   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16889   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16890 which seems to be undefined.  Please make sure it is defined" >&5
16891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16892 which seems to be undefined.  Please make sure it is defined" >&2;}
16893
16894   rm -f "$tmp/stdin"
16895   case $ac_file in
16896   -) cat "$tmp/out" && rm -f "$tmp/out";;
16897   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16898   esac \
16899   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16900  ;;
16901   :H)
16902   #
16903   # CONFIG_HEADER
16904   #
16905   if test x"$ac_file" != x-; then
16906     {
16907       $as_echo "/* $configure_input  */" \
16908       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16909     } >"$tmp/config.h" \
16910       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16911     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16912       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16913 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16914     else
16915       rm -f "$ac_file"
16916       mv "$tmp/config.h" "$ac_file" \
16917         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16918     fi
16919   else
16920     $as_echo "/* $configure_input  */" \
16921       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16922       || as_fn_error $? "could not create -" "$LINENO" 5
16923   fi
16924 # Compute "$ac_file"'s index in $config_headers.
16925 _am_arg="$ac_file"
16926 _am_stamp_count=1
16927 for _am_header in $config_headers :; do
16928   case $_am_header in
16929     $_am_arg | $_am_arg:* )
16930       break ;;
16931     * )
16932       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16933   esac
16934 done
16935 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16936 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16937          X"$_am_arg" : 'X\(//\)[^/]' \| \
16938          X"$_am_arg" : 'X\(//\)$' \| \
16939          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16940 $as_echo X"$_am_arg" |
16941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16942             s//\1/
16943             q
16944           }
16945           /^X\(\/\/\)[^/].*/{
16946             s//\1/
16947             q
16948           }
16949           /^X\(\/\/\)$/{
16950             s//\1/
16951             q
16952           }
16953           /^X\(\/\).*/{
16954             s//\1/
16955             q
16956           }
16957           s/.*/./; q'`/stamp-h$_am_stamp_count
16958  ;;
16959
16960   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16961 $as_echo "$as_me: executing $ac_file commands" >&6;}
16962  ;;
16963   esac
16964
16965
16966   case $ac_file$ac_mode in
16967     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16968   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16969   # are listed without --file.  Let's play safe and only enable the eval
16970   # if we detect the quoting.
16971   case $CONFIG_FILES in
16972   *\'*) eval set x "$CONFIG_FILES" ;;
16973   *)   set x $CONFIG_FILES ;;
16974   esac
16975   shift
16976   for mf
16977   do
16978     # Strip MF so we end up with the name of the file.
16979     mf=`echo "$mf" | sed -e 's/:.*$//'`
16980     # Check whether this is an Automake generated Makefile or not.
16981     # We used to match only the files named `Makefile.in', but
16982     # some people rename them; so instead we look at the file content.
16983     # Grep'ing the first line is not enough: some people post-process
16984     # each Makefile.in and add a new line on top of each file to say so.
16985     # Grep'ing the whole file is not good either: AIX grep has a line
16986     # limit of 2048, but all sed's we know have understand at least 4000.
16987     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16988       dirpart=`$as_dirname -- "$mf" ||
16989 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990          X"$mf" : 'X\(//\)[^/]' \| \
16991          X"$mf" : 'X\(//\)$' \| \
16992          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16993 $as_echo X"$mf" |
16994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995             s//\1/
16996             q
16997           }
16998           /^X\(\/\/\)[^/].*/{
16999             s//\1/
17000             q
17001           }
17002           /^X\(\/\/\)$/{
17003             s//\1/
17004             q
17005           }
17006           /^X\(\/\).*/{
17007             s//\1/
17008             q
17009           }
17010           s/.*/./; q'`
17011     else
17012       continue
17013     fi
17014     # Extract the definition of DEPDIR, am__include, and am__quote
17015     # from the Makefile without running `make'.
17016     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17017     test -z "$DEPDIR" && continue
17018     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17019     test -z "am__include" && continue
17020     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17021     # When using ansi2knr, U may be empty or an underscore; expand it
17022     U=`sed -n 's/^U = //p' < "$mf"`
17023     # Find all dependency output files, they are included files with
17024     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17025     # simplest approach to changing $(DEPDIR) to its actual value in the
17026     # expansion.
17027     for file in `sed -n "
17028       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17029          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17030       # Make sure the directory exists.
17031       test -f "$dirpart/$file" && continue
17032       fdir=`$as_dirname -- "$file" ||
17033 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17034          X"$file" : 'X\(//\)[^/]' \| \
17035          X"$file" : 'X\(//\)$' \| \
17036          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17037 $as_echo X"$file" |
17038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17039             s//\1/
17040             q
17041           }
17042           /^X\(\/\/\)[^/].*/{
17043             s//\1/
17044             q
17045           }
17046           /^X\(\/\/\)$/{
17047             s//\1/
17048             q
17049           }
17050           /^X\(\/\).*/{
17051             s//\1/
17052             q
17053           }
17054           s/.*/./; q'`
17055       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17056       # echo "creating $dirpart/$file"
17057       echo '# dummy' > "$dirpart/$file"
17058     done
17059   done
17060 }
17061  ;;
17062     "libtool":C)
17063
17064     # See if we are running on zsh, and set the options which allow our
17065     # commands through without removal of \ escapes.
17066     if test -n "${ZSH_VERSION+set}" ; then
17067       setopt NO_GLOB_SUBST
17068     fi
17069
17070     cfgfile="${ofile}T"
17071     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17072     $RM "$cfgfile"
17073
17074     cat <<_LT_EOF >> "$cfgfile"
17075 #! $SHELL
17076
17077 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17078 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17081 #
17082 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17083 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17084 #   Written by Gordon Matzigkeit, 1996
17085 #
17086 #   This file is part of GNU Libtool.
17087 #
17088 # GNU Libtool is free software; you can redistribute it and/or
17089 # modify it under the terms of the GNU General Public License as
17090 # published by the Free Software Foundation; either version 2 of
17091 # the License, or (at your option) any later version.
17092 #
17093 # As a special exception to the GNU General Public License,
17094 # if you distribute this file as part of a program or library that
17095 # is built using GNU Libtool, you may include this file under the
17096 # same distribution terms that you use for the rest of that program.
17097 #
17098 # GNU Libtool is distributed in the hope that it will be useful,
17099 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17101 # GNU General Public License for more details.
17102 #
17103 # You should have received a copy of the GNU General Public License
17104 # along with GNU Libtool; see the file COPYING.  If not, a copy
17105 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17106 # obtained by writing to the Free Software Foundation, Inc.,
17107 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17108
17109
17110 # The names of the tagged configurations supported by this script.
17111 available_tags=""
17112
17113 # ### BEGIN LIBTOOL CONFIG
17114
17115 # Which release of libtool.m4 was used?
17116 macro_version=$macro_version
17117 macro_revision=$macro_revision
17118
17119 # Assembler program.
17120 AS=$AS
17121
17122 # DLL creation program.
17123 DLLTOOL=$DLLTOOL
17124
17125 # Object dumper program.
17126 OBJDUMP=$OBJDUMP
17127
17128 # Whether or not to build shared libraries.
17129 build_libtool_libs=$enable_shared
17130
17131 # Whether or not to build static libraries.
17132 build_old_libs=$enable_static
17133
17134 # What type of objects to build.
17135 pic_mode=$pic_mode
17136
17137 # Whether or not to optimize for fast installation.
17138 fast_install=$enable_fast_install
17139
17140 # The host system.
17141 host_alias=$host_alias
17142 host=$host
17143 host_os=$host_os
17144
17145 # The build system.
17146 build_alias=$build_alias
17147 build=$build
17148 build_os=$build_os
17149
17150 # A sed program that does not truncate output.
17151 SED=$lt_SED
17152
17153 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17154 Xsed="\$SED -e 1s/^X//"
17155
17156 # A grep program that handles long lines.
17157 GREP=$lt_GREP
17158
17159 # An ERE matcher.
17160 EGREP=$lt_EGREP
17161
17162 # A literal string matcher.
17163 FGREP=$lt_FGREP
17164
17165 # A BSD- or MS-compatible name lister.
17166 NM=$lt_NM
17167
17168 # Whether we need soft or hard links.
17169 LN_S=$lt_LN_S
17170
17171 # What is the maximum length of a command?
17172 max_cmd_len=$max_cmd_len
17173
17174 # Object file suffix (normally "o").
17175 objext=$ac_objext
17176
17177 # Executable file suffix (normally "").
17178 exeext=$exeext
17179
17180 # whether the shell understands "unset".
17181 lt_unset=$lt_unset
17182
17183 # turn spaces into newlines.
17184 SP2NL=$lt_lt_SP2NL
17185
17186 # turn newlines into spaces.
17187 NL2SP=$lt_lt_NL2SP
17188
17189 # How to create reloadable object files.
17190 reload_flag=$lt_reload_flag
17191 reload_cmds=$lt_reload_cmds
17192
17193 # Method to check whether dependent libraries are shared objects.
17194 deplibs_check_method=$lt_deplibs_check_method
17195
17196 # Command to use when deplibs_check_method == "file_magic".
17197 file_magic_cmd=$lt_file_magic_cmd
17198
17199 # The archiver.
17200 AR=$lt_AR
17201 AR_FLAGS=$lt_AR_FLAGS
17202
17203 # A symbol stripping program.
17204 STRIP=$lt_STRIP
17205
17206 # Commands used to install an old-style archive.
17207 RANLIB=$lt_RANLIB
17208 old_postinstall_cmds=$lt_old_postinstall_cmds
17209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17210
17211 # A C compiler.
17212 LTCC=$lt_CC
17213
17214 # LTCC compiler flags.
17215 LTCFLAGS=$lt_CFLAGS
17216
17217 # Take the output of nm and produce a listing of raw symbols and C names.
17218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17219
17220 # Transform the output of nm in a proper C declaration.
17221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17222
17223 # Transform the output of nm in a C name address pair.
17224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17225
17226 # Transform the output of nm in a C name address pair when lib prefix is needed.
17227 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17228
17229 # The name of the directory that contains temporary libtool files.
17230 objdir=$objdir
17231
17232 # Shell to use when invoking shell scripts.
17233 SHELL=$lt_SHELL
17234
17235 # An echo program that does not interpret backslashes.
17236 ECHO=$lt_ECHO
17237
17238 # Used to examine libraries when file_magic_cmd begins with "file".
17239 MAGIC_CMD=$MAGIC_CMD
17240
17241 # Must we lock files when doing compilation?
17242 need_locks=$lt_need_locks
17243
17244 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17245 DSYMUTIL=$lt_DSYMUTIL
17246
17247 # Tool to change global to local symbols on Mac OS X.
17248 NMEDIT=$lt_NMEDIT
17249
17250 # Tool to manipulate fat objects and archives on Mac OS X.
17251 LIPO=$lt_LIPO
17252
17253 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17254 OTOOL=$lt_OTOOL
17255
17256 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17257 OTOOL64=$lt_OTOOL64
17258
17259 # Old archive suffix (normally "a").
17260 libext=$libext
17261
17262 # Shared library suffix (normally ".so").
17263 shrext_cmds=$lt_shrext_cmds
17264
17265 # The commands to extract the exported symbol list from a shared archive.
17266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17267
17268 # Variables whose values should be saved in libtool wrapper scripts and
17269 # restored at link time.
17270 variables_saved_for_relink=$lt_variables_saved_for_relink
17271
17272 # Do we need the "lib" prefix for modules?
17273 need_lib_prefix=$need_lib_prefix
17274
17275 # Do we need a version for libraries?
17276 need_version=$need_version
17277
17278 # Library versioning type.
17279 version_type=$version_type
17280
17281 # Shared library runtime path variable.
17282 runpath_var=$runpath_var
17283
17284 # Shared library path variable.
17285 shlibpath_var=$shlibpath_var
17286
17287 # Is shlibpath searched before the hard-coded library search path?
17288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17289
17290 # Format of library name prefix.
17291 libname_spec=$lt_libname_spec
17292
17293 # List of archive names.  First name is the real one, the rest are links.
17294 # The last name is the one that the linker finds with -lNAME
17295 library_names_spec=$lt_library_names_spec
17296
17297 # The coded name of the library, if different from the real name.
17298 soname_spec=$lt_soname_spec
17299
17300 # Command to use after installation of a shared archive.
17301 postinstall_cmds=$lt_postinstall_cmds
17302
17303 # Command to use after uninstallation of a shared archive.
17304 postuninstall_cmds=$lt_postuninstall_cmds
17305
17306 # Commands used to finish a libtool library installation in a directory.
17307 finish_cmds=$lt_finish_cmds
17308
17309 # As "finish_cmds", except a single script fragment to be evaled but
17310 # not shown.
17311 finish_eval=$lt_finish_eval
17312
17313 # Whether we should hardcode library paths into libraries.
17314 hardcode_into_libs=$hardcode_into_libs
17315
17316 # Compile-time system search path for libraries.
17317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17318
17319 # Run-time system search path for libraries.
17320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17321
17322 # Whether dlopen is supported.
17323 dlopen_support=$enable_dlopen
17324
17325 # Whether dlopen of programs is supported.
17326 dlopen_self=$enable_dlopen_self
17327
17328 # Whether dlopen of statically linked programs is supported.
17329 dlopen_self_static=$enable_dlopen_self_static
17330
17331 # Commands to strip libraries.
17332 old_striplib=$lt_old_striplib
17333 striplib=$lt_striplib
17334
17335
17336 # The linker used to build libraries.
17337 LD=$lt_LD
17338
17339 # Commands used to build an old-style archive.
17340 old_archive_cmds=$lt_old_archive_cmds
17341
17342 # A language specific compiler.
17343 CC=$lt_compiler
17344
17345 # Is the compiler the GNU compiler?
17346 with_gcc=$GCC
17347
17348 # Compiler flag to turn off builtin functions.
17349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17350
17351 # How to pass a linker flag through the compiler.
17352 wl=$lt_lt_prog_compiler_wl
17353
17354 # Additional compiler flags for building library objects.
17355 pic_flag=$lt_lt_prog_compiler_pic
17356
17357 # Compiler flag to prevent dynamic linking.
17358 link_static_flag=$lt_lt_prog_compiler_static
17359
17360 # Does compiler simultaneously support -c and -o options?
17361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17362
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc
17365
17366 # Whether or not to disallow shared libs when runtime libs are static.
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17368
17369 # Compiler flag to allow reflexive dlopens.
17370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17371
17372 # Compiler flag to generate shared objects directly from archives.
17373 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17374
17375 # Whether the compiler copes with passing no objects directly.
17376 compiler_needs_object=$lt_compiler_needs_object
17377
17378 # Create an old-style archive from a shared archive.
17379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17380
17381 # Create a temporary old-style archive to link instead of a shared archive.
17382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17383
17384 # Commands used to build a shared archive.
17385 archive_cmds=$lt_archive_cmds
17386 archive_expsym_cmds=$lt_archive_expsym_cmds
17387
17388 # Commands used to build a loadable module if different from building
17389 # a shared archive.
17390 module_cmds=$lt_module_cmds
17391 module_expsym_cmds=$lt_module_expsym_cmds
17392
17393 # Whether we are building with GNU ld or not.
17394 with_gnu_ld=$lt_with_gnu_ld
17395
17396 # Flag that allows shared libraries with undefined symbols to be built.
17397 allow_undefined_flag=$lt_allow_undefined_flag
17398
17399 # Flag that enforces no undefined symbols.
17400 no_undefined_flag=$lt_no_undefined_flag
17401
17402 # Flag to hardcode \$libdir into a binary during linking.
17403 # This must work even if \$libdir does not exist
17404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17405
17406 # If ld is used when linking, flag to hardcode \$libdir into a binary
17407 # during linking.  This must work even if \$libdir does not exist.
17408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17409
17410 # Whether we need a single "-rpath" flag with a separated argument.
17411 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17412
17413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17414 # DIR into the resulting binary.
17415 hardcode_direct=$hardcode_direct
17416
17417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17418 # DIR into the resulting binary and the resulting library dependency is
17419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17420 # library is relocated.
17421 hardcode_direct_absolute=$hardcode_direct_absolute
17422
17423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17424 # into the resulting binary.
17425 hardcode_minus_L=$hardcode_minus_L
17426
17427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17428 # into the resulting binary.
17429 hardcode_shlibpath_var=$hardcode_shlibpath_var
17430
17431 # Set to "yes" if building a shared library automatically hardcodes DIR
17432 # into the library and all subsequent libraries and executables linked
17433 # against it.
17434 hardcode_automatic=$hardcode_automatic
17435
17436 # Set to yes if linker adds runtime paths of dependent libraries
17437 # to runtime path list.
17438 inherit_rpath=$inherit_rpath
17439
17440 # Whether libtool must link a program against all its dependency libraries.
17441 link_all_deplibs=$link_all_deplibs
17442
17443 # Fix the shell variable \$srcfile for the compiler.
17444 fix_srcfile_path=$lt_fix_srcfile_path
17445
17446 # Set to "yes" if exported symbols are required.
17447 always_export_symbols=$always_export_symbols
17448
17449 # The commands to list exported symbols.
17450 export_symbols_cmds=$lt_export_symbols_cmds
17451
17452 # Symbols that should not be listed in the preloaded symbols.
17453 exclude_expsyms=$lt_exclude_expsyms
17454
17455 # Symbols that must always be exported.
17456 include_expsyms=$lt_include_expsyms
17457
17458 # Commands necessary for linking programs (against libraries) with templates.
17459 prelink_cmds=$lt_prelink_cmds
17460
17461 # Specify filename containing input files.
17462 file_list_spec=$lt_file_list_spec
17463
17464 # How to hardcode a shared library path into an executable.
17465 hardcode_action=$hardcode_action
17466
17467 # ### END LIBTOOL CONFIG
17468
17469 _LT_EOF
17470
17471   case $host_os in
17472   aix3*)
17473     cat <<\_LT_EOF >> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program.  For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17478   COLLECT_NAMES=
17479   export COLLECT_NAMES
17480 fi
17481 _LT_EOF
17482     ;;
17483   esac
17484
17485
17486 ltmain="$ac_aux_dir/ltmain.sh"
17487
17488
17489   # We use sed instead of cat because bash on DJGPP gets confused if
17490   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17491   # text mode, it properly converts lines to CR/LF.  This bash problem
17492   # is reportedly fixed, but why not run on old versions too?
17493   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494     || (rm -f "$cfgfile"; exit 1)
17495
17496   case $xsi_shell in
17497   yes)
17498     cat << \_LT_EOF >> "$cfgfile"
17499
17500 # func_dirname file append nondir_replacement
17501 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17502 # otherwise set result to NONDIR_REPLACEMENT.
17503 func_dirname ()
17504 {
17505   case ${1} in
17506     */*) func_dirname_result="${1%/*}${2}" ;;
17507     *  ) func_dirname_result="${3}" ;;
17508   esac
17509 }
17510
17511 # func_basename file
17512 func_basename ()
17513 {
17514   func_basename_result="${1##*/}"
17515 }
17516
17517 # func_dirname_and_basename file append nondir_replacement
17518 # perform func_basename and func_dirname in a single function
17519 # call:
17520 #   dirname:  Compute the dirname of FILE.  If nonempty,
17521 #             add APPEND to the result, otherwise set result
17522 #             to NONDIR_REPLACEMENT.
17523 #             value returned in "$func_dirname_result"
17524 #   basename: Compute filename of FILE.
17525 #             value retuned in "$func_basename_result"
17526 # Implementation must be kept synchronized with func_dirname
17527 # and func_basename. For efficiency, we do not delegate to
17528 # those functions but instead duplicate the functionality here.
17529 func_dirname_and_basename ()
17530 {
17531   case ${1} in
17532     */*) func_dirname_result="${1%/*}${2}" ;;
17533     *  ) func_dirname_result="${3}" ;;
17534   esac
17535   func_basename_result="${1##*/}"
17536 }
17537
17538 # func_stripname prefix suffix name
17539 # strip PREFIX and SUFFIX off of NAME.
17540 # PREFIX and SUFFIX must not contain globbing or regex special
17541 # characters, hashes, percent signs, but SUFFIX may contain a leading
17542 # dot (in which case that matches only a dot).
17543 func_stripname ()
17544 {
17545   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546   # positional parameters, so assign one to ordinary parameter first.
17547   func_stripname_result=${3}
17548   func_stripname_result=${func_stripname_result#"${1}"}
17549   func_stripname_result=${func_stripname_result%"${2}"}
17550 }
17551
17552 # func_opt_split
17553 func_opt_split ()
17554 {
17555   func_opt_split_opt=${1%%=*}
17556   func_opt_split_arg=${1#*=}
17557 }
17558
17559 # func_lo2o object
17560 func_lo2o ()
17561 {
17562   case ${1} in
17563     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17564     *)    func_lo2o_result=${1} ;;
17565   esac
17566 }
17567
17568 # func_xform libobj-or-source
17569 func_xform ()
17570 {
17571   func_xform_result=${1%.*}.lo
17572 }
17573
17574 # func_arith arithmetic-term...
17575 func_arith ()
17576 {
17577   func_arith_result=$(( $* ))
17578 }
17579
17580 # func_len string
17581 # STRING may not start with a hyphen.
17582 func_len ()
17583 {
17584   func_len_result=${#1}
17585 }
17586
17587 _LT_EOF
17588     ;;
17589   *) # Bourne compatible functions.
17590     cat << \_LT_EOF >> "$cfgfile"
17591
17592 # func_dirname file append nondir_replacement
17593 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17594 # otherwise set result to NONDIR_REPLACEMENT.
17595 func_dirname ()
17596 {
17597   # Extract subdirectory from the argument.
17598   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17599   if test "X$func_dirname_result" = "X${1}"; then
17600     func_dirname_result="${3}"
17601   else
17602     func_dirname_result="$func_dirname_result${2}"
17603   fi
17604 }
17605
17606 # func_basename file
17607 func_basename ()
17608 {
17609   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17610 }
17611
17612
17613 # func_stripname prefix suffix name
17614 # strip PREFIX and SUFFIX off of NAME.
17615 # PREFIX and SUFFIX must not contain globbing or regex special
17616 # characters, hashes, percent signs, but SUFFIX may contain a leading
17617 # dot (in which case that matches only a dot).
17618 # func_strip_suffix prefix name
17619 func_stripname ()
17620 {
17621   case ${2} in
17622     .*) func_stripname_result=`$ECHO "X${3}" \
17623            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17624     *)  func_stripname_result=`$ECHO "X${3}" \
17625            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17626   esac
17627 }
17628
17629 # sed scripts:
17630 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17631 my_sed_long_arg='1s/^-[^=]*=//'
17632
17633 # func_opt_split
17634 func_opt_split ()
17635 {
17636   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17637   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17638 }
17639
17640 # func_lo2o object
17641 func_lo2o ()
17642 {
17643   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17644 }
17645
17646 # func_xform libobj-or-source
17647 func_xform ()
17648 {
17649   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17650 }
17651
17652 # func_arith arithmetic-term...
17653 func_arith ()
17654 {
17655   func_arith_result=`expr "$@"`
17656 }
17657
17658 # func_len string
17659 # STRING may not start with a hyphen.
17660 func_len ()
17661 {
17662   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17663 }
17664
17665 _LT_EOF
17666 esac
17667
17668 case $lt_shell_append in
17669   yes)
17670     cat << \_LT_EOF >> "$cfgfile"
17671
17672 # func_append var value
17673 # Append VALUE to the end of shell variable VAR.
17674 func_append ()
17675 {
17676   eval "$1+=\$2"
17677 }
17678 _LT_EOF
17679     ;;
17680   *)
17681     cat << \_LT_EOF >> "$cfgfile"
17682
17683 # func_append var value
17684 # Append VALUE to the end of shell variable VAR.
17685 func_append ()
17686 {
17687   eval "$1=\$$1\$2"
17688 }
17689
17690 _LT_EOF
17691     ;;
17692   esac
17693
17694
17695   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17696     || (rm -f "$cfgfile"; exit 1)
17697
17698   mv -f "$cfgfile" "$ofile" ||
17699     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17700   chmod +x "$ofile"
17701
17702  ;;
17703     "po-directories":C)
17704     for ac_file in $CONFIG_FILES; do
17705       # Support "outfile[:infile[:infile...]]"
17706       case "$ac_file" in
17707         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17708       esac
17709       # PO directories have a Makefile.in generated from Makefile.in.in.
17710       case "$ac_file" in */Makefile.in)
17711         # Adjust a relative srcdir.
17712         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17713         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17714         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17715         # In autoconf-2.13 it is called $ac_given_srcdir.
17716         # In autoconf-2.50 it is called $srcdir.
17717         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17718         case "$ac_given_srcdir" in
17719           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17720           /*) top_srcdir="$ac_given_srcdir" ;;
17721           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17722         esac
17723         # Treat a directory as a PO directory if and only if it has a
17724         # POTFILES.in file. This allows packages to have multiple PO
17725         # directories under different names or in different locations.
17726         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17727           rm -f "$ac_dir/POTFILES"
17728           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17729           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17730           POMAKEFILEDEPS="POTFILES.in"
17731           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17732           # on $ac_dir but don't depend on user-specified configuration
17733           # parameters.
17734           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17735             # The LINGUAS file contains the set of available languages.
17736             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17737               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17738             fi
17739             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17740             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17741             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17742             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17743           else
17744             # The set of available languages was given in configure.in.
17745             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17746             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17747           fi
17748           # Compute POFILES
17749           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17750           # Compute UPDATEPOFILES
17751           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17752           # Compute DUMMYPOFILES
17753           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17754           # Compute GMOFILES
17755           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17756           case "$ac_given_srcdir" in
17757             .) srcdirpre= ;;
17758             *) srcdirpre='$(srcdir)/' ;;
17759           esac
17760           POFILES=
17761           UPDATEPOFILES=
17762           DUMMYPOFILES=
17763           GMOFILES=
17764           for lang in $ALL_LINGUAS; do
17765             POFILES="$POFILES $srcdirpre$lang.po"
17766             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17767             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17768             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17769           done
17770           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17771           # environment variable.
17772           INST_LINGUAS=
17773           if test -n "$ALL_LINGUAS"; then
17774             for presentlang in $ALL_LINGUAS; do
17775               useit=no
17776               if test "%UNSET%" != "$LINGUAS"; then
17777                 desiredlanguages="$LINGUAS"
17778               else
17779                 desiredlanguages="$ALL_LINGUAS"
17780               fi
17781               for desiredlang in $desiredlanguages; do
17782                 # Use the presentlang catalog if desiredlang is
17783                 #   a. equal to presentlang, or
17784                 #   b. a variant of presentlang (because in this case,
17785                 #      presentlang can be used as a fallback for messages
17786                 #      which are not translated in the desiredlang catalog).
17787                 case "$desiredlang" in
17788                   "$presentlang"*) useit=yes;;
17789                 esac
17790               done
17791               if test $useit = yes; then
17792                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17793               fi
17794             done
17795           fi
17796           CATALOGS=
17797           if test -n "$INST_LINGUAS"; then
17798             for lang in $INST_LINGUAS; do
17799               CATALOGS="$CATALOGS $lang.gmo"
17800             done
17801           fi
17802           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17803           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"
17804           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17805             if test -f "$f"; then
17806               case "$f" in
17807                 *.orig | *.bak | *~) ;;
17808                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17809               esac
17810             fi
17811           done
17812         fi
17813         ;;
17814       esac
17815     done ;;
17816
17817   esac
17818 done # for ac_tag
17819
17820
17821 as_fn_exit 0
17822 _ACEOF
17823 ac_clean_files=$ac_clean_files_save
17824
17825 test $ac_write_fail = 0 ||
17826   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17827
17828
17829 # configure is writing to config.log, and then calls config.status.
17830 # config.status does its own redirection, appending to config.log.
17831 # Unfortunately, on DOS this fails, as config.log is still kept open
17832 # by configure, so config.status won't be able to write to it; its
17833 # output is simply discarded.  So we exec the FD to /dev/null,
17834 # effectively closing config.log, so it can be properly (re)opened and
17835 # appended to by config.status.  When coming back to configure, we
17836 # need to make the FD available again.
17837 if test "$no_create" != yes; then
17838   ac_cs_success=:
17839   ac_config_status_args=
17840   test "$silent" = yes &&
17841     ac_config_status_args="$ac_config_status_args --quiet"
17842   exec 5>/dev/null
17843   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17844   exec 5>>config.log
17845   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17846   # would make configure fail if this is the last instruction.
17847   $ac_cs_success || as_fn_exit 1
17848 fi
17849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17851 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17852 fi
17853