Merge remote-tracking branch 'origin/master' into debian
[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=''
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 MAC_LIBS
860 MAC_CFLAGS
861 GDBUS_LIBS
862 GDBUS_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 GDBUS_CFLAGS
1013 GDBUS_LIBS
1014 MAC_CFLAGS
1015 MAC_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   GDBUS_CFLAGS
1683               C compiler flags for GDBUS, overriding pkg-config
1684   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1685   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1686   MAC_LIBS    linker flags for MAC, 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 _ACEOF
1701 ac_status=$?
1702 fi
1703
1704 if test "$ac_init_help" = "recursive"; then
1705   # If there are subdirs, report their specific --help.
1706   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707     test -d "$ac_dir" ||
1708       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709       continue
1710     ac_builddir=.
1711
1712 case "$ac_dir" in
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *)
1715   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716   # A ".." for each directory in $ac_dir_suffix.
1717   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718   case $ac_top_builddir_sub in
1719   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721   esac ;;
1722 esac
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1727
1728 case $srcdir in
1729   .)  # We are building in place.
1730     ac_srcdir=.
1731     ac_top_srcdir=$ac_top_builddir_sub
1732     ac_abs_top_srcdir=$ac_pwd ;;
1733   [\\/]* | ?:[\\/]* )  # Absolute name.
1734     ac_srcdir=$srcdir$ac_dir_suffix;
1735     ac_top_srcdir=$srcdir
1736     ac_abs_top_srcdir=$srcdir ;;
1737   *) # Relative name.
1738     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739     ac_top_srcdir=$ac_top_build_prefix$srcdir
1740     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 esac
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743
1744     cd "$ac_dir" || { ac_status=$?; continue; }
1745     # Check for guested configure.
1746     if test -f "$ac_srcdir/configure.gnu"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749     elif test -f "$ac_srcdir/configure"; then
1750       echo &&
1751       $SHELL "$ac_srcdir/configure" --help=recursive
1752     else
1753       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754     fi || ac_status=$?
1755     cd "$ac_pwd" || { ac_status=$?; break; }
1756   done
1757 fi
1758
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1761   cat <<\_ACEOF
1762 Moonshot-ui configure 0.1
1763 generated by GNU Autoconf 2.67
1764
1765 Copyright (C) 2010 Free Software Foundation, Inc.
1766 This configure script is free software; the Free Software Foundation
1767 gives unlimited permission to copy, distribute and modify it.
1768 _ACEOF
1769   exit
1770 fi
1771
1772 ## ------------------------ ##
1773 ## Autoconf initialization. ##
1774 ## ------------------------ ##
1775
1776 # ac_fn_c_try_compile LINENO
1777 # --------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_compile ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   rm -f conftest.$ac_objext
1783   if { { ac_try="$ac_compile"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_compile") 2>conftest.err
1791   ac_status=$?
1792   if test -s conftest.err; then
1793     grep -v '^ *+' conftest.err >conftest.er1
1794     cat conftest.er1 >&5
1795     mv -f conftest.er1 conftest.err
1796   fi
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; } && {
1799          test -z "$ac_c_werror_flag" ||
1800          test ! -s conftest.err
1801        } && test -s conftest.$ac_objext; then :
1802   ac_retval=0
1803 else
1804   $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807         ac_retval=1
1808 fi
1809   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_compile
1813
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_link ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   rm -f conftest.$ac_objext conftest$ac_exeext
1821   if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_link") 2>conftest.err
1829   ac_status=$?
1830   if test -s conftest.err; then
1831     grep -v '^ *+' conftest.err >conftest.er1
1832     cat conftest.er1 >&5
1833     mv -f conftest.er1 conftest.err
1834   fi
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; } && {
1837          test -z "$ac_c_werror_flag" ||
1838          test ! -s conftest.err
1839        } && test -s conftest$ac_exeext && {
1840          test "$cross_compiling" = yes ||
1841          $as_test_x conftest$ac_exeext
1842        }; then :
1843   ac_retval=0
1844 else
1845   $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848         ac_retval=1
1849 fi
1850   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852   # interfere with the next link command; also delete a directory that is
1853   # left behind by Apple's compiler.  We do this before executing the actions.
1854   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856   as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_link
1859
1860 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists and can be compiled using the include files in
1863 # INCLUDES, setting the cache variable VAR accordingly.
1864 ac_fn_c_check_header_compile ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval "test \"\${$3+set}\"" = set; then :
1870   $as_echo_n "(cached) " >&6
1871 else
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 $4
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878   eval "$3=yes"
1879 else
1880   eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889 } # ac_fn_c_check_header_compile
1890
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900   *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905   ac_status=$?
1906   if test -s conftest.err; then
1907     grep -v '^ *+' conftest.err >conftest.er1
1908     cat conftest.er1 >&5
1909     mv -f conftest.er1 conftest.err
1910   fi
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } > conftest.i && {
1913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914          test ! -s conftest.err
1915        }; then :
1916   ac_retval=0
1917 else
1918   $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921     ac_retval=1
1922 fi
1923   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924   as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_cpp
1927
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1931 # that executables *can* be run.
1932 ac_fn_c_try_run ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_link") 2>&5
1943   ac_status=$?
1944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1946   { { case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_try") 2>&5
1953   ac_status=$?
1954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955   test $ac_status = 0; }; }; then :
1956   ac_retval=0
1957 else
1958   $as_echo "$as_me: program exited with status $ac_status" >&5
1959        $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962        ac_retval=$ac_status
1963 fi
1964   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966   as_fn_set_status $ac_retval
1967
1968 } # ac_fn_c_try_run
1969
1970 # ac_fn_c_check_func LINENO FUNC VAR
1971 # ----------------------------------
1972 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1973 ac_fn_c_check_func ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979   $as_echo_n "(cached) " >&6
1980 else
1981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1985 #define $2 innocuous_$2
1986
1987 /* System header to define __stub macros and hopefully few prototypes,
1988     which can conflict with char $2 (); below.
1989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990     <limits.h> exists even on freestanding compilers.  */
1991
1992 #ifdef __STDC__
1993 # include <limits.h>
1994 #else
1995 # include <assert.h>
1996 #endif
1997
1998 #undef $2
1999
2000 /* Override any GCC internal prototype to avoid an error.
2001    Use char because int might match the return type of a GCC
2002    builtin and then its argument prototype would still apply.  */
2003 #ifdef __cplusplus
2004 extern "C"
2005 #endif
2006 char $2 ();
2007 /* The GNU C library defines this for functions which it implements
2008     to always fail with ENOSYS.  Some functions are actually named
2009     something starting with __ and the normal name is an alias.  */
2010 #if defined __stub_$2 || defined __stub___$2
2011 choke me
2012 #endif
2013
2014 int
2015 main ()
2016 {
2017 return $2 ();
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_link "$LINENO"; then :
2023   eval "$3=yes"
2024 else
2025   eval "$3=no"
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext \
2028     conftest$ac_exeext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034
2035 } # ac_fn_c_check_func
2036 cat >config.log <<_ACEOF
2037 This file contains any messages produced by compilers while
2038 running configure, to aid debugging if configure makes a mistake.
2039
2040 It was created by Moonshot-ui $as_me 0.1, which was
2041 generated by GNU Autoconf 2.67.  Invocation command line was
2042
2043   $ $0 $@
2044
2045 _ACEOF
2046 exec 5>>config.log
2047 {
2048 cat <<_ASUNAME
2049 ## --------- ##
2050 ## Platform. ##
2051 ## --------- ##
2052
2053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2058
2059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2060 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2061
2062 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2063 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2065 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2066 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2067 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2068 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2069
2070 _ASUNAME
2071
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077     $as_echo "PATH: $as_dir"
2078   done
2079 IFS=$as_save_IFS
2080
2081 } >&5
2082
2083 cat >&5 <<_ACEOF
2084
2085
2086 ## ----------- ##
2087 ## Core tests. ##
2088 ## ----------- ##
2089
2090 _ACEOF
2091
2092
2093 # Keep a trace of the command line.
2094 # Strip out --no-create and --no-recursion so they do not pile up.
2095 # Strip out --silent because we don't want to record it for future runs.
2096 # Also quote any args containing shell meta-characters.
2097 # Make two passes to allow for proper duplicate-argument suppression.
2098 ac_configure_args=
2099 ac_configure_args0=
2100 ac_configure_args1=
2101 ac_must_keep_next=false
2102 for ac_pass in 1 2
2103 do
2104   for ac_arg
2105   do
2106     case $ac_arg in
2107     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2108     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2109     | -silent | --silent | --silen | --sile | --sil)
2110       continue ;;
2111     *\'*)
2112       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2113     esac
2114     case $ac_pass in
2115     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2116     2)
2117       as_fn_append ac_configure_args1 " '$ac_arg'"
2118       if test $ac_must_keep_next = true; then
2119         ac_must_keep_next=false # Got value, back to normal.
2120       else
2121         case $ac_arg in
2122           *=* | --config-cache | -C | -disable-* | --disable-* \
2123           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2124           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2125           | -with-* | --with-* | -without-* | --without-* | --x)
2126             case "$ac_configure_args0 " in
2127               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2128             esac
2129             ;;
2130           -* ) ac_must_keep_next=true ;;
2131         esac
2132       fi
2133       as_fn_append ac_configure_args " '$ac_arg'"
2134       ;;
2135     esac
2136   done
2137 done
2138 { ac_configure_args0=; unset ac_configure_args0;}
2139 { ac_configure_args1=; unset ac_configure_args1;}
2140
2141 # When interrupted or exit'd, cleanup temporary files, and complete
2142 # config.log.  We remove comments because anyway the quotes in there
2143 # would cause problems or look ugly.
2144 # WARNING: Use '\'' to represent an apostrophe within the trap.
2145 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2146 trap 'exit_status=$?
2147   # Save into config.log some information that might help in debugging.
2148   {
2149     echo
2150
2151     $as_echo "## ---------------- ##
2152 ## Cache variables. ##
2153 ## ---------------- ##"
2154     echo
2155     # The following way of writing the cache mishandles newlines in values,
2156 (
2157   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2158     eval ac_val=\$$ac_var
2159     case $ac_val in #(
2160     *${as_nl}*)
2161       case $ac_var in #(
2162       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2164       esac
2165       case $ac_var in #(
2166       _ | IFS | as_nl) ;; #(
2167       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2168       *) { eval $ac_var=; unset $ac_var;} ;;
2169       esac ;;
2170     esac
2171   done
2172   (set) 2>&1 |
2173     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2174     *${as_nl}ac_space=\ *)
2175       sed -n \
2176         "s/'\''/'\''\\\\'\'''\''/g;
2177           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2178       ;; #(
2179     *)
2180       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2181       ;;
2182     esac |
2183     sort
2184 )
2185     echo
2186
2187     $as_echo "## ----------------- ##
2188 ## Output variables. ##
2189 ## ----------------- ##"
2190     echo
2191     for ac_var in $ac_subst_vars
2192     do
2193       eval ac_val=\$$ac_var
2194       case $ac_val in
2195       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196       esac
2197       $as_echo "$ac_var='\''$ac_val'\''"
2198     done | sort
2199     echo
2200
2201     if test -n "$ac_subst_files"; then
2202       $as_echo "## ------------------- ##
2203 ## File substitutions. ##
2204 ## ------------------- ##"
2205       echo
2206       for ac_var in $ac_subst_files
2207       do
2208         eval ac_val=\$$ac_var
2209         case $ac_val in
2210         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211         esac
2212         $as_echo "$ac_var='\''$ac_val'\''"
2213       done | sort
2214       echo
2215     fi
2216
2217     if test -s confdefs.h; then
2218       $as_echo "## ----------- ##
2219 ## confdefs.h. ##
2220 ## ----------- ##"
2221       echo
2222       cat confdefs.h
2223       echo
2224     fi
2225     test "$ac_signal" != 0 &&
2226       $as_echo "$as_me: caught signal $ac_signal"
2227     $as_echo "$as_me: exit $exit_status"
2228   } >&5
2229   rm -f core *.core core.conftest.* &&
2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231     exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 $as_echo "/* confdefs.h */" > confdefs.h
2242
2243 # Predefined preprocessor variables.
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_URL "$PACKAGE_URL"
2267 _ACEOF
2268
2269
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2272 ac_site_file1=NONE
2273 ac_site_file2=NONE
2274 if test -n "$CONFIG_SITE"; then
2275   # We do not want a PATH search for config.site.
2276   case $CONFIG_SITE in #((
2277     -*)  ac_site_file1=./$CONFIG_SITE;;
2278     */*) ac_site_file1=$CONFIG_SITE;;
2279     *)   ac_site_file1=./$CONFIG_SITE;;
2280   esac
2281 elif test "x$prefix" != xNONE; then
2282   ac_site_file1=$prefix/share/config.site
2283   ac_site_file2=$prefix/etc/config.site
2284 else
2285   ac_site_file1=$ac_default_prefix/share/config.site
2286   ac_site_file2=$ac_default_prefix/etc/config.site
2287 fi
2288 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289 do
2290   test "x$ac_site_file" = xNONE && continue
2291   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2292     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2294     sed 's/^/| /' "$ac_site_file" >&5
2295     . "$ac_site_file" \
2296       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 as_fn_error $? "failed to load site script $ac_site_file
2299 See \`config.log' for more details" "$LINENO" 5 ; }
2300   fi
2301 done
2302
2303 if test -r "$cache_file"; then
2304   # Some versions of bash will fail to source /dev/null (special files
2305   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2306   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2307     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2308 $as_echo "$as_me: loading cache $cache_file" >&6;}
2309     case $cache_file in
2310       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2311       *)                      . "./$cache_file";;
2312     esac
2313   fi
2314 else
2315   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2316 $as_echo "$as_me: creating cache $cache_file" >&6;}
2317   >$cache_file
2318 fi
2319
2320 gt_needs="$gt_needs "
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326   eval ac_new_set=\$ac_env_${ac_var}_set
2327   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328   eval ac_new_val=\$ac_env_${ac_var}_value
2329   case $ac_old_set,$ac_new_set in
2330     set,)
2331       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333       ac_cache_corrupted=: ;;
2334     ,set)
2335       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337       ac_cache_corrupted=: ;;
2338     ,);;
2339     *)
2340       if test "x$ac_old_val" != "x$ac_new_val"; then
2341         # differences in whitespace do not lead to failure.
2342         ac_old_val_w=`echo x $ac_old_val`
2343         ac_new_val_w=`echo x $ac_new_val`
2344         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347           ac_cache_corrupted=:
2348         else
2349           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351           eval $ac_var=\$ac_old_val
2352         fi
2353         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2354 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2355         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2357       fi;;
2358   esac
2359   # Pass precious variables to config.status.
2360   if test "$ac_new_set" = set; then
2361     case $ac_new_val in
2362     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363     *) ac_arg=$ac_var=$ac_new_val ;;
2364     esac
2365     case " $ac_configure_args " in
2366       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2367       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368     esac
2369   fi
2370 done
2371 if $ac_cache_corrupted; then
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
2390 ac_config_headers="$ac_config_headers config.h"
2391
2392
2393
2394 ac_aux_dir=
2395 for ac_dir in build-aux "$srcdir"/build-aux; do
2396   if test -f "$ac_dir/install-sh"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/install-sh -c"
2399     break
2400   elif test -f "$ac_dir/install.sh"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/install.sh -c"
2403     break
2404   elif test -f "$ac_dir/shtool"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/shtool install -c"
2407     break
2408   fi
2409 done
2410 if test -z "$ac_aux_dir"; then
2411   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2412 fi
2413
2414 # These three variables are undocumented and unsupported,
2415 # and are intended to be withdrawn in a future Autoconf release.
2416 # They can cause serious problems if a builder's source tree is in a directory
2417 # whose full name contains unusual characters.
2418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2420 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2421
2422
2423
2424 am__api_version='1.11'
2425
2426 # Find a good install program.  We prefer a C program (faster),
2427 # so one script is as good as another.  But avoid the broken or
2428 # incompatible versions:
2429 # SysV /etc/install, /usr/sbin/install
2430 # SunOS /usr/etc/install
2431 # IRIX /sbin/install
2432 # AIX /bin/install
2433 # AmigaOS /C/install, which installs bootblocks on floppy discs
2434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2437 # OS/2's system install, which has a completely different semantic
2438 # ./install, which can be erroneously created by make from ./install.sh.
2439 # Reject install programs that cannot install multiple files.
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then :
2444   $as_echo_n "(cached) " >&6
2445 else
2446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451     # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in #((
2453   ./ | .// | /[cC]/* | \
2454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2456   /usr/ucb/* ) ;;
2457   *)
2458     # OSF1 and SCO ODT 3.0 have their own names for install.
2459     # Don't use installbsd from OSF since it installs stuff as root
2460     # by default.
2461     for ac_prog in ginstall scoinst install; do
2462       for ac_exec_ext in '' $ac_executable_extensions; do
2463         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2464           if test $ac_prog = install &&
2465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466             # AIX install.  It has an incompatible calling convention.
2467             :
2468           elif test $ac_prog = install &&
2469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470             # program-specific install script used by HP pwplus--don't use.
2471             :
2472           else
2473             rm -rf conftest.one conftest.two conftest.dir
2474             echo one > conftest.one
2475             echo two > conftest.two
2476             mkdir conftest.dir
2477             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2478               test -s conftest.one && test -s conftest.two &&
2479               test -s conftest.dir/conftest.one &&
2480               test -s conftest.dir/conftest.two
2481             then
2482               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2483               break 3
2484             fi
2485           fi
2486         fi
2487       done
2488     done
2489     ;;
2490 esac
2491
2492   done
2493 IFS=$as_save_IFS
2494
2495 rm -rf conftest.one conftest.two conftest.dir
2496
2497 fi
2498   if test "${ac_cv_path_install+set}" = set; then
2499     INSTALL=$ac_cv_path_install
2500   else
2501     # As a last resort, use the slow shell script.  Don't cache a
2502     # value for INSTALL within a source directory, because that will
2503     # break other packages using the cache if that directory is
2504     # removed, or if the value is a relative name.
2505     INSTALL=$ac_install_sh
2506   fi
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2509 $as_echo "$INSTALL" >&6; }
2510
2511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2512 # It thinks the first close brace ends the variable substitution.
2513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514
2515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516
2517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2520 $as_echo_n "checking whether build environment is sane... " >&6; }
2521 # Just in case
2522 sleep 1
2523 echo timestamp > conftest.file
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name.  Accept space and tab only in the latter.
2526 am_lf='
2527 '
2528 case `pwd` in
2529   *[\\\"\#\$\&\'\`$am_lf]*)
2530     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2531 esac
2532 case $srcdir in
2533   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2534     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2535 esac
2536
2537 # Do `set' in a subshell so we don't clobber the current shell's
2538 # arguments.  Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2541 # directory).
2542 if (
2543    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2544    if test "$*" = "X"; then
2545       # -L didn't work.
2546       set X `ls -t "$srcdir/configure" conftest.file`
2547    fi
2548    rm -f conftest.file
2549    if test "$*" != "X $srcdir/configure conftest.file" \
2550       && test "$*" != "X conftest.file $srcdir/configure"; then
2551
2552       # If neither matched, then we have a broken ls.  This can happen
2553       # if, for instance, CONFIG_SHELL is bash and it inherits a
2554       # broken ls alias from the environment.  This has actually
2555       # happened.  Such a system could not be considered "sane".
2556       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2557 alias in your environment" "$LINENO" 5
2558    fi
2559
2560    test "$2" = conftest.file
2561    )
2562 then
2563    # Ok.
2564    :
2565 else
2566    as_fn_error $? "newly created file is older than distributed files!
2567 Check your system clock" "$LINENO" 5
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 test "$program_prefix" != NONE &&
2572   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2573 # Use a double $ so make ignores it.
2574 test "$program_suffix" != NONE &&
2575   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2576 # Double any \ or $.
2577 # By default was `s,x,x', remove it if useless.
2578 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2579 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2580
2581 # expand $ac_aux_dir to an absolute path
2582 am_aux_dir=`cd $ac_aux_dir && pwd`
2583
2584 if test x"${MISSING+set}" != xset; then
2585   case $am_aux_dir in
2586   *\ * | *\     *)
2587     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2588   *)
2589     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2590   esac
2591 fi
2592 # Use eval to expand $SHELL
2593 if eval "$MISSING --run true"; then
2594   am_missing_run="$MISSING --run "
2595 else
2596   am_missing_run=
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2598 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2599 fi
2600
2601 if test x"${install_sh}" != xset; then
2602   case $am_aux_dir in
2603   *\ * | *\     *)
2604     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2605   *)
2606     install_sh="\${SHELL} $am_aux_dir/install-sh"
2607   esac
2608 fi
2609
2610 # Installed binaries are usually stripped using `strip' when the user
2611 # run `make install-strip'.  However `strip' might not be the right
2612 # tool to use in cross-compilation environments, therefore Automake
2613 # will honor the `STRIP' environment variable to overrule this program.
2614 if test "$cross_compiling" != no; then
2615   if test -n "$ac_tool_prefix"; then
2616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}strip; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_STRIP+set}" = set; then :
2621   $as_echo_n "(cached) " >&6
2622 else
2623   if test -n "$STRIP"; then
2624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631     for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638   done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 STRIP=$ac_cv_prog_STRIP
2644 if test -n "$STRIP"; then
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2646 $as_echo "$STRIP" >&6; }
2647 else
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652
2653 fi
2654 if test -z "$ac_cv_prog_STRIP"; then
2655   ac_ct_STRIP=$STRIP
2656   # Extract the first word of "strip", so it can be a program name with args.
2657 set dummy strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$ac_ct_STRIP"; then
2664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_ac_ct_STRIP="strip"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2686 $as_echo "$ac_ct_STRIP" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692   if test "x$ac_ct_STRIP" = x; then
2693     STRIP=":"
2694   else
2695     case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701     STRIP=$ac_ct_STRIP
2702   fi
2703 else
2704   STRIP="$ac_cv_prog_STRIP"
2705 fi
2706
2707 fi
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2711 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2712 if test -z "$MKDIR_P"; then
2713   if test "${ac_cv_path_mkdir+set}" = set; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2718 do
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721     for ac_prog in mkdir gmkdir; do
2722          for ac_exec_ext in '' $ac_executable_extensions; do
2723            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2724            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2725              'mkdir (GNU coreutils) '* | \
2726              'mkdir (coreutils) '* | \
2727              'mkdir (fileutils) '4.1*)
2728                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2729                break 3;;
2730            esac
2731          done
2732        done
2733   done
2734 IFS=$as_save_IFS
2735
2736 fi
2737
2738   test -d ./--version && rmdir ./--version
2739   if test "${ac_cv_path_mkdir+set}" = set; then
2740     MKDIR_P="$ac_cv_path_mkdir -p"
2741   else
2742     # As a last resort, use the slow shell script.  Don't cache a
2743     # value for MKDIR_P within a source directory, because that will
2744     # break other packages using the cache if that directory is
2745     # removed, or if the value is a relative name.
2746     MKDIR_P="$ac_install_sh -d"
2747   fi
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2750 $as_echo "$MKDIR_P" >&6; }
2751
2752 mkdir_p="$MKDIR_P"
2753 case $mkdir_p in
2754   [\\/$]* | ?:[\\/]*) ;;
2755   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2756 esac
2757
2758 for ac_prog in gawk mawk nawk awk
2759 do
2760   # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_AWK+set}" = set; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$AWK"; then
2768   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_AWK="$ac_prog"
2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782   done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 AWK=$ac_cv_prog_AWK
2788 if test -n "$AWK"; then
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2791 else
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797   test -n "$AWK" && break
2798 done
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802 set x ${MAKE-make}
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   cat >conftest.make <<\_ACEOF
2808 SHELL = /bin/sh
2809 all:
2810         @echo '@@@%%%=$(MAKE)=@@@%%%'
2811 _ACEOF
2812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814   *@@@%%%=?*=@@@%%%*)
2815     eval ac_cv_prog_make_${ac_make}_set=yes;;
2816   *)
2817     eval ac_cv_prog_make_${ac_make}_set=no;;
2818 esac
2819 rm -f conftest.make
2820 fi
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2824   SET_MAKE=
2825 else
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828   SET_MAKE="MAKE=${MAKE-make}"
2829 fi
2830
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2834   am__leading_dot=.
2835 else
2836   am__leading_dot=_
2837 fi
2838 rmdir .tst 2>/dev/null
2839
2840 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2841   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2842   # is not polluted with repeated "-I."
2843   am__isrc=' -I$(srcdir)'
2844   # test to see if srcdir already configured
2845   if test -f $srcdir/config.status; then
2846     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2847   fi
2848 fi
2849
2850 # test whether we have cygpath
2851 if test -z "$CYGPATH_W"; then
2852   if (cygpath --version) >/dev/null 2>/dev/null; then
2853     CYGPATH_W='cygpath -w'
2854   else
2855     CYGPATH_W=echo
2856   fi
2857 fi
2858
2859
2860 # Define the identity of the package.
2861  PACKAGE='moonshot-ui'
2862  VERSION='0.1'
2863
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE "$PACKAGE"
2867 _ACEOF
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define VERSION "$VERSION"
2872 _ACEOF
2873
2874 # Some tools Automake needs.
2875
2876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877
2878
2879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880
2881
2882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883
2884
2885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886
2887
2888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889
2890 # We need awk for the "check" target.  The system "awk" is bad on
2891 # some platforms.
2892 # Always define AMTAR for backward compatibility.
2893
2894 AMTAR=${AMTAR-"${am_missing_run}tar"}
2895
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2898 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2899 # Loop over all known methods to create a tar archive until one works.
2900 _am_tools='gnutar  pax cpio none'
2901 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2902 # Do not fold the above two line into one, because Tru64 sh and
2903 # Solaris sh will not grok spaces in the rhs of `-'.
2904 for _am_tool in $_am_tools
2905 do
2906   case $_am_tool in
2907   gnutar)
2908     for _am_tar in tar gnutar gtar;
2909     do
2910       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2911    ($_am_tar --version) >&5 2>&5
2912    ac_status=$?
2913    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914    (exit $ac_status); } && break
2915     done
2916     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2917     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2918     am__untar="$_am_tar -xf -"
2919     ;;
2920   plaintar)
2921     # Must skip GNU tar: if it does not support --format= it doesn't create
2922     # ustar tarball either.
2923     (tar --version) >/dev/null 2>&1 && continue
2924     am__tar='tar chf - "$$tardir"'
2925     am__tar_='tar chf - "$tardir"'
2926     am__untar='tar xf -'
2927     ;;
2928   pax)
2929     am__tar='pax -L -x pax -w "$$tardir"'
2930     am__tar_='pax -L -x pax -w "$tardir"'
2931     am__untar='pax -r'
2932     ;;
2933   cpio)
2934     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2935     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2936     am__untar='cpio -i -H pax -d'
2937     ;;
2938   none)
2939     am__tar=false
2940     am__tar_=false
2941     am__untar=false
2942     ;;
2943   esac
2944
2945   # If the value was cached, stop now.  We just wanted to have am__tar
2946   # and am__untar set.
2947   test -n "${am_cv_prog_tar_pax}" && break
2948
2949   # tar/untar a dummy directory, and stop if the command works
2950   rm -rf conftest.dir
2951   mkdir conftest.dir
2952   echo GrepMe > conftest.dir/file
2953   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2954    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2955    ac_status=$?
2956    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957    (exit $ac_status); }
2958   rm -rf conftest.dir
2959   if test -s conftest.tar; then
2960     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2961    ($am__untar <conftest.tar) >&5 2>&5
2962    ac_status=$?
2963    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964    (exit $ac_status); }
2965     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2966   fi
2967 done
2968 rm -rf conftest.dir
2969
2970 if test "${am_cv_prog_tar_pax+set}" = set; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   am_cv_prog_tar_pax=$_am_tool
2974 fi
2975
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2977 $as_echo "$am_cv_prog_tar_pax" >&6; }
2978
2979
2980
2981
2982
2983 # Check whether --enable-silent-rules was given.
2984 if test "${enable_silent_rules+set}" = set; then :
2985   enableval=$enable_silent_rules;
2986 fi
2987
2988 case $enable_silent_rules in
2989 yes) AM_DEFAULT_VERBOSITY=0;;
2990 no)  AM_DEFAULT_VERBOSITY=1;;
2991 *)   AM_DEFAULT_VERBOSITY=0;;
2992 esac
2993 AM_BACKSLASH='\'
2994
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
2997 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2998     # Check whether --enable-maintainer-mode was given.
2999 if test "${enable_maintainer_mode+set}" = set; then :
3000   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3001 else
3002   USE_MAINTAINER_MODE=yes
3003 fi
3004
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3006 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3007    if test $USE_MAINTAINER_MODE = yes; then
3008   MAINTAINER_MODE_TRUE=
3009   MAINTAINER_MODE_FALSE='#'
3010 else
3011   MAINTAINER_MODE_TRUE='#'
3012   MAINTAINER_MODE_FALSE=
3013 fi
3014
3015   MAINT=$MAINTAINER_MODE_TRUE
3016
3017
3018
3019
3020 case `pwd` in
3021   *\ * | *\     *)
3022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3023 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3024 esac
3025
3026
3027
3028 macro_version='2.2.6b'
3029 macro_revision='1.3017'
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043 ltmain="$ac_aux_dir/ltmain.sh"
3044
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3047   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if test "${ac_cv_build+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   ac_build_alias=$build_alias
3055 test "x$ac_build_alias" = x &&
3056   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x &&
3058   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3066 *-*-*) ;;
3067 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3068 esac
3069 build=$ac_cv_build
3070 ac_save_IFS=$IFS; IFS='-'
3071 set x $ac_cv_build
3072 shift
3073 build_cpu=$1
3074 build_vendor=$2
3075 shift; shift
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3078 build_os=$*
3079 IFS=$ac_save_IFS
3080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3081
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if test "${ac_cv_host+set}" = set; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test "x$host_alias" = x; then
3089   ac_cv_host=$ac_cv_build
3090 else
3091   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3093 fi
3094
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3098 case $ac_cv_host in
3099 *-*-*) ;;
3100 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3101 esac
3102 host=$ac_cv_host
3103 ac_save_IFS=$IFS; IFS='-'
3104 set x $ac_cv_host
3105 shift
3106 host_cpu=$1
3107 host_vendor=$2
3108 shift; shift
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3111 host_os=$*
3112 IFS=$ac_save_IFS
3113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3114
3115
3116 DEPDIR="${am__leading_dot}deps"
3117
3118 ac_config_commands="$ac_config_commands depfiles"
3119
3120
3121 am_make=${MAKE-make}
3122 cat > confinc << 'END'
3123 am__doit:
3124         @echo this is the am__doit target
3125 .PHONY: am__doit
3126 END
3127 # If we don't find an include directive, just comment out the code.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3129 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3130 am__include="#"
3131 am__quote=
3132 _am_result=none
3133 # First try GNU make style include.
3134 echo "include confinc" > confmf
3135 # Ignore all kinds of additional output from `make'.
3136 case `$am_make -s -f confmf 2> /dev/null` in #(
3137 *the\ am__doit\ target*)
3138   am__include=include
3139   am__quote=
3140   _am_result=GNU
3141   ;;
3142 esac
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145    echo '.include "confinc"' > confmf
3146    case `$am_make -s -f confmf 2> /dev/null` in #(
3147    *the\ am__doit\ target*)
3148      am__include=.include
3149      am__quote="\""
3150      _am_result=BSD
3151      ;;
3152    esac
3153 fi
3154
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3157 $as_echo "$_am_result" >&6; }
3158 rm -f confinc confmf
3159
3160 # Check whether --enable-dependency-tracking was given.
3161 if test "${enable_dependency_tracking+set}" = set; then :
3162   enableval=$enable_dependency_tracking;
3163 fi
3164
3165 if test "x$enable_dependency_tracking" != xno; then
3166   am_depcomp="$ac_aux_dir/depcomp"
3167   AMDEPBACKSLASH='\'
3168 fi
3169  if test "x$enable_dependency_tracking" != xno; then
3170   AMDEP_TRUE=
3171   AMDEP_FALSE='#'
3172 else
3173   AMDEP_TRUE='#'
3174   AMDEP_FALSE=
3175 fi
3176
3177
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183 if test -n "$ac_tool_prefix"; then
3184   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$CC"; then
3192   ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 fi
3222 if test -z "$ac_cv_prog_CC"; then
3223   ac_ct_CC=$CC
3224   # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   if test -n "$ac_ct_CC"; then
3232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239     for ac_exec_ext in '' $ac_executable_extensions; do
3240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241     ac_cv_prog_ac_ct_CC="gcc"
3242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246   done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260   if test "x$ac_ct_CC" = x; then
3261     CC=""
3262   else
3263     case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3268 esac
3269     CC=$ac_ct_CC
3270   fi
3271 else
3272   CC="$ac_cv_prog_CC"
3273 fi
3274
3275 if test -z "$CC"; then
3276           if test -n "$ac_tool_prefix"; then
3277     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292     for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     ac_cv_prog_CC="${ac_tool_prefix}cc"
3295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299   done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314   fi
3315 fi
3316 if test -z "$CC"; then
3317   # Extract the first word of "cc", so it can be a program name with args.
3318 set dummy cc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_prog_CC+set}" = set; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   if test -n "$CC"; then
3325   ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327   ac_prog_rejected=no
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3336        ac_prog_rejected=yes
3337        continue
3338      fi
3339     ac_cv_prog_CC="cc"
3340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344   done
3345 IFS=$as_save_IFS
3346
3347 if test $ac_prog_rejected = yes; then
3348   # We found a bogon in the path, so make sure we never use it.
3349   set dummy $ac_cv_prog_CC
3350   shift
3351   if test $# != 0; then
3352     # We chose a different compiler from the bogus one.
3353     # However, it has the same basename, so the bogon will be chosen
3354     # first if we set CC to just the basename; use the full file name.
3355     shift
3356     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3357   fi
3358 fi
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$CC"; then
3373   if test -n "$ac_tool_prefix"; then
3374   for ac_prog in cl.exe
3375   do
3376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$CC"; then
3384   ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413     test -n "$CC" && break
3414   done
3415 fi
3416 if test -z "$CC"; then
3417   ac_ct_CC=$CC
3418   for ac_prog in cl.exe
3419 do
3420   # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$ac_ct_CC"; then
3428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437     ac_cv_prog_ac_ct_CC="$ac_prog"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457   test -n "$ac_ct_CC" && break
3458 done
3459
3460   if test "x$ac_ct_CC" = x; then
3461     CC=""
3462   else
3463     case $cross_compiling:$ac_tool_warned in
3464 yes:)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467 ac_tool_warned=yes ;;
3468 esac
3469     CC=$ac_ct_CC
3470   fi
3471 fi
3472
3473 fi
3474
3475
3476 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "no acceptable C compiler found in \$PATH
3479 See \`config.log' for more details" "$LINENO" 5 ; }
3480
3481 # Provide some information about the compiler.
3482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3483 set X $ac_compile
3484 ac_compiler=$2
3485 for ac_option in --version -v -V -qversion; do
3486   { { ac_try="$ac_compiler $ac_option >&5"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494   ac_status=$?
3495   if test -s conftest.err; then
3496     sed '10a\
3497 ... rest of stderr output deleted ...
3498          10q' conftest.err >conftest.er1
3499     cat conftest.er1 >&5
3500   fi
3501   rm -f conftest.er1 conftest.err
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }
3504 done
3505
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 ac_clean_files_save=$ac_clean_files
3518 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3519 # Try to create an executable without -o first, disregard a.out.
3520 # It will help us diagnose broken compilers, and finding out an intuition
3521 # of exeext.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3523 $as_echo_n "checking whether the C compiler works... " >&6; }
3524 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3525
3526 # The possible output files:
3527 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3528
3529 ac_rmfiles=
3530 for ac_file in $ac_files
3531 do
3532   case $ac_file in
3533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3535   esac
3536 done
3537 rm -f $ac_rmfiles
3538
3539 if { { ac_try="$ac_link_default"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_link_default") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3551 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3552 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3553 # so that the user can short-circuit this test for compilers unknown to
3554 # Autoconf.
3555 for ac_file in $ac_files ''
3556 do
3557   test -f "$ac_file" || continue
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3560         ;;
3561     [ab].out )
3562         # We found the default executable, but exeext='' is most
3563         # certainly right.
3564         break;;
3565     *.* )
3566         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3567         then :; else
3568            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569         fi
3570         # We set ac_cv_exeext here because the later test for it is not
3571         # safe: cross compilers may not add the suffix if given an `-o'
3572         # argument, so we may need to know it at that point already.
3573         # Even if this section looks crufty: it has the advantage of
3574         # actually working.
3575         break;;
3576     * )
3577         break;;
3578   esac
3579 done
3580 test "$ac_cv_exeext" = no && ac_cv_exeext=
3581
3582 else
3583   ac_file=''
3584 fi
3585 if test -z "$ac_file"; then :
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error 77 "C compiler cannot create executables
3594 See \`config.log' for more details" "$LINENO" 5 ; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3600 $as_echo_n "checking for C compiler default output file name... " >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3602 $as_echo "$ac_file" >&6; }
3603 ac_exeext=$ac_cv_exeext
3604
3605 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3606 ac_clean_files=$ac_clean_files_save
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_link") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 # `rm'.
3624 for ac_file in conftest.exe conftest conftest.*; do
3625   test -f "$ac_file" || continue
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629           break;;
3630     * ) break;;
3631   esac
3632 done
3633 else
3634   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details" "$LINENO" 5 ; }
3638 fi
3639 rm -f conftest conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3642
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648 #include <stdio.h>
3649 int
3650 main ()
3651 {
3652 FILE *f = fopen ("conftest.out", "w");
3653  return ferror (f) || fclose (f) != 0;
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 ac_clean_files="$ac_clean_files conftest.out"
3660 # Check that the compiler produces executables we can run.  If not, either
3661 # the compiler is broken, or we cross compile.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3663 $as_echo_n "checking whether we are cross compiling... " >&6; }
3664 if test "$cross_compiling" != yes; then
3665   { { ac_try="$ac_link"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672   (eval "$ac_link") 2>&5
3673   ac_status=$?
3674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675   test $ac_status = 0; }
3676   if { ac_try='./conftest$ac_cv_exeext'
3677   { { case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_try") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; }; then
3687     cross_compiling=no
3688   else
3689     if test "$cross_compiling" = maybe; then
3690         cross_compiling=yes
3691     else
3692         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot run C compiled programs.
3695 If you meant to cross compile, use \`--host'.
3696 See \`config.log' for more details" "$LINENO" 5 ; }
3697     fi
3698   fi
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3701 $as_echo "$cross_compiling" >&6; }
3702
3703 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3704 ac_clean_files=$ac_clean_files_save
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3706 $as_echo_n "checking for suffix of object files... " >&6; }
3707 if test "${ac_cv_objext+set}" = set; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712
3713 int
3714 main ()
3715 {
3716
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.o conftest.obj
3722 if { { ac_try="$ac_compile"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729   (eval "$ac_compile") 2>&5
3730   ac_status=$?
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }; then :
3733   for ac_file in conftest.o conftest.obj conftest.*; do
3734   test -f "$ac_file" || continue;
3735   case $ac_file in
3736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3737     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3738        break;;
3739   esac
3740 done
3741 else
3742   $as_echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details" "$LINENO" 5 ; }
3749 fi
3750 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3753 $as_echo "$ac_cv_objext" >&6; }
3754 OBJEXT=$ac_cv_objext
3755 ac_objext=$OBJEXT
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3757 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3758 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767 #ifndef __GNUC__
3768        choke me
3769 #endif
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776   ac_compiler_gnu=yes
3777 else
3778   ac_compiler_gnu=no
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3782
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786 if test $ac_compiler_gnu = yes; then
3787   GCC=yes
3788 else
3789   GCC=
3790 fi
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3795 if test "${ac_cv_prog_cc_g+set}" = set; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   ac_save_c_werror_flag=$ac_c_werror_flag
3799    ac_c_werror_flag=yes
3800    ac_cv_prog_cc_g=no
3801    CFLAGS="-g"
3802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h.  */
3804
3805 int
3806 main ()
3807 {
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814   ac_cv_prog_cc_g=yes
3815 else
3816   CFLAGS=""
3817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829
3830 else
3831   ac_c_werror_flag=$ac_save_c_werror_flag
3832          CFLAGS="-g"
3833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845   ac_cv_prog_cc_g=yes
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852    ac_c_werror_flag=$ac_save_c_werror_flag
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3855 $as_echo "$ac_cv_prog_cc_g" >&6; }
3856 if test "$ac_test_CFLAGS" = set; then
3857   CFLAGS=$ac_save_CFLAGS
3858 elif test $ac_cv_prog_cc_g = yes; then
3859   if test "$GCC" = yes; then
3860     CFLAGS="-g -O2"
3861   else
3862     CFLAGS="-g"
3863   fi
3864 else
3865   if test "$GCC" = yes; then
3866     CFLAGS="-O2"
3867   else
3868     CFLAGS=
3869   fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3873 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   ac_cv_prog_cc_c89=no
3877 ac_save_CC=$CC
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <stdarg.h>
3881 #include <stdio.h>
3882 #include <sys/types.h>
3883 #include <sys/stat.h>
3884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3885 struct buf { int x; };
3886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3887 static char *e (p, i)
3888      char **p;
3889      int i;
3890 {
3891   return p[i];
3892 }
3893 static char *f (char * (*g) (char **, int), char **p, ...)
3894 {
3895   char *s;
3896   va_list v;
3897   va_start (v,p);
3898   s = g (p, va_arg (v,int));
3899   va_end (v);
3900   return s;
3901 }
3902
3903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3904    function prototypes and stuff, but not '\xHH' hex character constants.
3905    These don't provoke an error unfortunately, instead are silently treated
3906    as 'x'.  The following induces an error, until -std is added to get
3907    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3908    array size at least.  It's necessary to write '\x00'==0 to get something
3909    that's true only with -std.  */
3910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3911
3912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3913    inside strings and character constants.  */
3914 #define FOO(x) 'x'
3915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3916
3917 int test (int i, double x);
3918 struct s1 {int (*f) (int a);};
3919 struct s2 {int (*f) (double a);};
3920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3921 int argc;
3922 char **argv;
3923 int
3924 main ()
3925 {
3926 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3932         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3933 do
3934   CC="$ac_save_CC $ac_arg"
3935   if ac_fn_c_try_compile "$LINENO"; then :
3936   ac_cv_prog_cc_c89=$ac_arg
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext
3939   test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943
3944 fi
3945 # AC_CACHE_VAL
3946 case "x$ac_cv_prog_cc_c89" in
3947   x)
3948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3949 $as_echo "none needed" >&6; } ;;
3950   xno)
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3952 $as_echo "unsupported" >&6; } ;;
3953   *)
3954     CC="$CC $ac_cv_prog_cc_c89"
3955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 esac
3958 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959
3960 fi
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 depcc="$CC"   am_compiler_list=
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3971 $as_echo_n "checking dependency style of $depcc... " >&6; }
3972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3976   # We make a subdir and do the tests there.  Otherwise we can end up
3977   # making bogus files that we don't know about and never remove.  For
3978   # instance it was reported that on HP-UX the gcc test will end up
3979   # making a dummy file named `D' -- because `-MD' means `put the output
3980   # in D'.
3981   mkdir conftest.dir
3982   # Copy depcomp to subdir because otherwise we won't find it if we're
3983   # using a relative directory.
3984   cp "$am_depcomp" conftest.dir
3985   cd conftest.dir
3986   # We will build objects and dependencies in a subdirectory because
3987   # it helps to detect inapplicable dependency modes.  For instance
3988   # both Tru64's cc and ICC support -MD to output dependencies as a
3989   # side effect of compilation, but ICC will put the dependencies in
3990   # the current directory while Tru64 will put them in the object
3991   # directory.
3992   mkdir sub
3993
3994   am_cv_CC_dependencies_compiler_type=none
3995   if test "$am_compiler_list" = ""; then
3996      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3997   fi
3998   am__universal=false
3999   case " $depcc " in #(
4000      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4001      esac
4002
4003   for depmode in $am_compiler_list; do
4004     # Setup a source with many dependencies, because some compilers
4005     # like to wrap large dependency lists on column 80 (with \), and
4006     # we should not choose a depcomp mode which is confused by this.
4007     #
4008     # We need to recreate these files for each test, as the compiler may
4009     # overwrite some of them when testing with obscure command lines.
4010     # This happens at least with the AIX C compiler.
4011     : > sub/conftest.c
4012     for i in 1 2 3 4 5 6; do
4013       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4014       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4015       # Solaris 8's {/usr,}/bin/sh.
4016       touch sub/conftst$i.h
4017     done
4018     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4019
4020     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4021     # mode.  It turns out that the SunPro C++ compiler does not properly
4022     # handle `-M -o', and we need to detect this.  Also, some Intel
4023     # versions had trouble with output in subdirs
4024     am__obj=sub/conftest.${OBJEXT-o}
4025     am__minus_obj="-o $am__obj"
4026     case $depmode in
4027     gcc)
4028       # This depmode causes a compiler race in universal mode.
4029       test "$am__universal" = false || continue
4030       ;;
4031     nosideeffect)
4032       # after this tag, mechanisms are not by side-effect, so they'll
4033       # only be used when explicitly requested
4034       if test "x$enable_dependency_tracking" = xyes; then
4035         continue
4036       else
4037         break
4038       fi
4039       ;;
4040     msvisualcpp | msvcmsys)
4041       # This compiler won't grok `-c -o', but also, the minuso test has
4042       # not run yet.  These depmodes are late enough in the game, and
4043       # so weak that their functioning should not be impacted.
4044       am__obj=conftest.${OBJEXT-o}
4045       am__minus_obj=
4046       ;;
4047     none) break ;;
4048     esac
4049     if depmode=$depmode \
4050        source=sub/conftest.c object=$am__obj \
4051        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4052        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4053          >/dev/null 2>conftest.err &&
4054        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4055        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4056        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4057        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4058       # icc doesn't choke on unknown options, it will just issue warnings
4059       # or remarks (even with -Werror).  So we grep stderr for any message
4060       # that says an option was ignored or not supported.
4061       # When given -MP, icc 7.0 and 7.1 complain thusly:
4062       #   icc: Command line warning: ignoring option '-M'; no argument required
4063       # The diagnosis changed in icc 8.0:
4064       #   icc: Command line remark: option '-MP' not supported
4065       if (grep 'ignoring option' conftest.err ||
4066           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4067         am_cv_CC_dependencies_compiler_type=$depmode
4068         break
4069       fi
4070     fi
4071   done
4072
4073   cd ..
4074   rm -rf conftest.dir
4075 else
4076   am_cv_CC_dependencies_compiler_type=none
4077 fi
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4081 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4083
4084  if
4085   test "x$enable_dependency_tracking" != xno \
4086   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4087   am__fastdepCC_TRUE=
4088   am__fastdepCC_FALSE='#'
4089 else
4090   am__fastdepCC_TRUE='#'
4091   am__fastdepCC_FALSE=
4092 fi
4093
4094
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4097 if test "${ac_cv_path_SED+set}" = set; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4101      for ac_i in 1 2 3 4 5 6 7; do
4102        ac_script="$ac_script$as_nl$ac_script"
4103      done
4104      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4105      { ac_script=; unset ac_script;}
4106      if test -z "$SED"; then
4107   ac_path_SED_found=false
4108   # Loop through the user's path and test for each of PROGNAME-LIST
4109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114     for ac_prog in sed gsed; do
4115     for ac_exec_ext in '' $ac_executable_extensions; do
4116       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4117       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4118 # Check for GNU ac_path_SED and select it if it is found.
4119   # Check for GNU $ac_path_SED
4120 case `"$ac_path_SED" --version 2>&1` in
4121 *GNU*)
4122   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4123 *)
4124   ac_count=0
4125   $as_echo_n 0123456789 >"conftest.in"
4126   while :
4127   do
4128     cat "conftest.in" "conftest.in" >"conftest.tmp"
4129     mv "conftest.tmp" "conftest.in"
4130     cp "conftest.in" "conftest.nl"
4131     $as_echo '' >> "conftest.nl"
4132     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134     as_fn_arith $ac_count + 1 && ac_count=$as_val
4135     if test $ac_count -gt ${ac_path_SED_max-0}; then
4136       # Best one so far, save it but keep looking for a better one
4137       ac_cv_path_SED="$ac_path_SED"
4138       ac_path_SED_max=$ac_count
4139     fi
4140     # 10*(2^10) chars as input seems more than enough
4141     test $ac_count -gt 10 && break
4142   done
4143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144 esac
4145
4146       $ac_path_SED_found && break 3
4147     done
4148   done
4149   done
4150 IFS=$as_save_IFS
4151   if test -z "$ac_cv_path_SED"; then
4152     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4153   fi
4154 else
4155   ac_cv_path_SED=$SED
4156 fi
4157
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4160 $as_echo "$ac_cv_path_SED" >&6; }
4161  SED="$ac_cv_path_SED"
4162   rm -f conftest.sed
4163
4164 test -z "$SED" && SED=sed
4165 Xsed="$SED -e 1s/^X//"
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4178 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4179 if test "${ac_cv_path_GREP+set}" = set; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   if test -z "$GREP"; then
4183   ac_path_GREP_found=false
4184   # Loop through the user's path and test for each of PROGNAME-LIST
4185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_prog in grep ggrep; do
4191     for ac_exec_ext in '' $ac_executable_extensions; do
4192       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4193       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4194 # Check for GNU ac_path_GREP and select it if it is found.
4195   # Check for GNU $ac_path_GREP
4196 case `"$ac_path_GREP" --version 2>&1` in
4197 *GNU*)
4198   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4199 *)
4200   ac_count=0
4201   $as_echo_n 0123456789 >"conftest.in"
4202   while :
4203   do
4204     cat "conftest.in" "conftest.in" >"conftest.tmp"
4205     mv "conftest.tmp" "conftest.in"
4206     cp "conftest.in" "conftest.nl"
4207     $as_echo 'GREP' >> "conftest.nl"
4208     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210     as_fn_arith $ac_count + 1 && ac_count=$as_val
4211     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4212       # Best one so far, save it but keep looking for a better one
4213       ac_cv_path_GREP="$ac_path_GREP"
4214       ac_path_GREP_max=$ac_count
4215     fi
4216     # 10*(2^10) chars as input seems more than enough
4217     test $ac_count -gt 10 && break
4218   done
4219   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 esac
4221
4222       $ac_path_GREP_found && break 3
4223     done
4224   done
4225   done
4226 IFS=$as_save_IFS
4227   if test -z "$ac_cv_path_GREP"; then
4228     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4229   fi
4230 else
4231   ac_cv_path_GREP=$GREP
4232 fi
4233
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4236 $as_echo "$ac_cv_path_GREP" >&6; }
4237  GREP="$ac_cv_path_GREP"
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4241 $as_echo_n "checking for egrep... " >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4246    then ac_cv_path_EGREP="$GREP -E"
4247    else
4248      if test -z "$EGREP"; then
4249   ac_path_EGREP_found=false
4250   # Loop through the user's path and test for each of PROGNAME-LIST
4251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256     for ac_prog in egrep; do
4257     for ac_exec_ext in '' $ac_executable_extensions; do
4258       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4259       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4260 # Check for GNU ac_path_EGREP and select it if it is found.
4261   # Check for GNU $ac_path_EGREP
4262 case `"$ac_path_EGREP" --version 2>&1` in
4263 *GNU*)
4264   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4265 *)
4266   ac_count=0
4267   $as_echo_n 0123456789 >"conftest.in"
4268   while :
4269   do
4270     cat "conftest.in" "conftest.in" >"conftest.tmp"
4271     mv "conftest.tmp" "conftest.in"
4272     cp "conftest.in" "conftest.nl"
4273     $as_echo 'EGREP' >> "conftest.nl"
4274     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276     as_fn_arith $ac_count + 1 && ac_count=$as_val
4277     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4278       # Best one so far, save it but keep looking for a better one
4279       ac_cv_path_EGREP="$ac_path_EGREP"
4280       ac_path_EGREP_max=$ac_count
4281     fi
4282     # 10*(2^10) chars as input seems more than enough
4283     test $ac_count -gt 10 && break
4284   done
4285   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4287
4288       $ac_path_EGREP_found && break 3
4289     done
4290   done
4291   done
4292 IFS=$as_save_IFS
4293   if test -z "$ac_cv_path_EGREP"; then
4294     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295   fi
4296 else
4297   ac_cv_path_EGREP=$EGREP
4298 fi
4299
4300    fi
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4303 $as_echo "$ac_cv_path_EGREP" >&6; }
4304  EGREP="$ac_cv_path_EGREP"
4305
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4308 $as_echo_n "checking for fgrep... " >&6; }
4309 if test "${ac_cv_path_FGREP+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4313    then ac_cv_path_FGREP="$GREP -F"
4314    else
4315      if test -z "$FGREP"; then
4316   ac_path_FGREP_found=false
4317   # Loop through the user's path and test for each of PROGNAME-LIST
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323     for ac_prog in fgrep; do
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4326       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4327 # Check for GNU ac_path_FGREP and select it if it is found.
4328   # Check for GNU $ac_path_FGREP
4329 case `"$ac_path_FGREP" --version 2>&1` in
4330 *GNU*)
4331   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4332 *)
4333   ac_count=0
4334   $as_echo_n 0123456789 >"conftest.in"
4335   while :
4336   do
4337     cat "conftest.in" "conftest.in" >"conftest.tmp"
4338     mv "conftest.tmp" "conftest.in"
4339     cp "conftest.in" "conftest.nl"
4340     $as_echo 'FGREP' >> "conftest.nl"
4341     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343     as_fn_arith $ac_count + 1 && ac_count=$as_val
4344     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4345       # Best one so far, save it but keep looking for a better one
4346       ac_cv_path_FGREP="$ac_path_FGREP"
4347       ac_path_FGREP_max=$ac_count
4348     fi
4349     # 10*(2^10) chars as input seems more than enough
4350     test $ac_count -gt 10 && break
4351   done
4352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 esac
4354
4355       $ac_path_FGREP_found && break 3
4356     done
4357   done
4358   done
4359 IFS=$as_save_IFS
4360   if test -z "$ac_cv_path_FGREP"; then
4361     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362   fi
4363 else
4364   ac_cv_path_FGREP=$FGREP
4365 fi
4366
4367    fi
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4370 $as_echo "$ac_cv_path_FGREP" >&6; }
4371  FGREP="$ac_cv_path_FGREP"
4372
4373
4374 test -z "$GREP" && GREP=grep
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394 # Check whether --with-gnu-ld was given.
4395 if test "${with_gnu_ld+set}" = set; then :
4396   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4397 else
4398   with_gnu_ld=no
4399 fi
4400
4401 ac_prog=ld
4402 if test "$GCC" = yes; then
4403   # Check if gcc -print-prog-name=ld gives a path.
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4405 $as_echo_n "checking for ld used by $CC... " >&6; }
4406   case $host in
4407   *-*-mingw*)
4408     # gcc leaves a trailing carriage return which upsets mingw
4409     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4410   *)
4411     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4412   esac
4413   case $ac_prog in
4414     # Accept absolute paths.
4415     [\\/]* | ?:[\\/]*)
4416       re_direlt='/[^/][^/]*/\.\./'
4417       # Canonicalize the pathname of ld
4418       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4419       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4420         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4421       done
4422       test -z "$LD" && LD="$ac_prog"
4423       ;;
4424   "")
4425     # If it fails, then pretend we aren't using GCC.
4426     ac_prog=ld
4427     ;;
4428   *)
4429     # If it is relative, then search for the first ld in PATH.
4430     with_gnu_ld=unknown
4431     ;;
4432   esac
4433 elif test "$with_gnu_ld" = yes; then
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4435 $as_echo_n "checking for GNU ld... " >&6; }
4436 else
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4438 $as_echo_n "checking for non-GNU ld... " >&6; }
4439 fi
4440 if test "${lt_cv_path_LD+set}" = set; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   if test -z "$LD"; then
4444   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4445   for ac_dir in $PATH; do
4446     IFS="$lt_save_ifs"
4447     test -z "$ac_dir" && ac_dir=.
4448     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4449       lt_cv_path_LD="$ac_dir/$ac_prog"
4450       # Check to see if the program is GNU ld.  I'd rather use --version,
4451       # but apparently some variants of GNU ld only accept -v.
4452       # Break only if it was the GNU/non-GNU ld that we prefer.
4453       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4454       *GNU* | *'with BFD'*)
4455         test "$with_gnu_ld" != no && break
4456         ;;
4457       *)
4458         test "$with_gnu_ld" != yes && break
4459         ;;
4460       esac
4461     fi
4462   done
4463   IFS="$lt_save_ifs"
4464 else
4465   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4466 fi
4467 fi
4468
4469 LD="$lt_cv_path_LD"
4470 if test -n "$LD"; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4472 $as_echo "$LD" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4479 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4480 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4484 case `$LD -v 2>&1 </dev/null` in
4485 *GNU* | *'with BFD'*)
4486   lt_cv_prog_gnu_ld=yes
4487   ;;
4488 *)
4489   lt_cv_prog_gnu_ld=no
4490   ;;
4491 esac
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4494 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4495 with_gnu_ld=$lt_cv_prog_gnu_ld
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4506 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4507 if test "${lt_cv_path_NM+set}" = set; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   if test -n "$NM"; then
4511   # Let the user override the test.
4512   lt_cv_path_NM="$NM"
4513 else
4514   lt_nm_to_check="${ac_tool_prefix}nm"
4515   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4516     lt_nm_to_check="$lt_nm_to_check nm"
4517   fi
4518   for lt_tmp_nm in $lt_nm_to_check; do
4519     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4520     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4521       IFS="$lt_save_ifs"
4522       test -z "$ac_dir" && ac_dir=.
4523       tmp_nm="$ac_dir/$lt_tmp_nm"
4524       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4525         # Check to see if the nm accepts a BSD-compat flag.
4526         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4527         #   nm: unknown option "B" ignored
4528         # Tru64's nm complains that /dev/null is an invalid object file
4529         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4530         */dev/null* | *'Invalid file or object type'*)
4531           lt_cv_path_NM="$tmp_nm -B"
4532           break
4533           ;;
4534         *)
4535           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4536           */dev/null*)
4537             lt_cv_path_NM="$tmp_nm -p"
4538             break
4539             ;;
4540           *)
4541             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4542             continue # so that we can try to find one that supports BSD flags
4543             ;;
4544           esac
4545           ;;
4546         esac
4547       fi
4548     done
4549     IFS="$lt_save_ifs"
4550   done
4551   : ${lt_cv_path_NM=no}
4552 fi
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4555 $as_echo "$lt_cv_path_NM" >&6; }
4556 if test "$lt_cv_path_NM" != "no"; then
4557   NM="$lt_cv_path_NM"
4558 else
4559   # Didn't find any BSD compatible name lister, look for dumpbin.
4560   if test -n "$ac_tool_prefix"; then
4561   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4562   do
4563     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -n "$DUMPBIN"; then
4571   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585   done
4586 IFS=$as_save_IFS
4587
4588 fi
4589 fi
4590 DUMPBIN=$ac_cv_prog_DUMPBIN
4591 if test -n "$DUMPBIN"; then
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4593 $as_echo "$DUMPBIN" >&6; }
4594 else
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4597 fi
4598
4599
4600     test -n "$DUMPBIN" && break
4601   done
4602 fi
4603 if test -z "$DUMPBIN"; then
4604   ac_ct_DUMPBIN=$DUMPBIN
4605   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4606 do
4607   # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -n "$ac_ct_DUMPBIN"; then
4615   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629   done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4635 if test -n "$ac_ct_DUMPBIN"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4637 $as_echo "$ac_ct_DUMPBIN" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644   test -n "$ac_ct_DUMPBIN" && break
4645 done
4646
4647   if test "x$ac_ct_DUMPBIN" = x; then
4648     DUMPBIN=":"
4649   else
4650     case $cross_compiling:$ac_tool_warned in
4651 yes:)
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4654 ac_tool_warned=yes ;;
4655 esac
4656     DUMPBIN=$ac_ct_DUMPBIN
4657   fi
4658 fi
4659
4660
4661   if test "$DUMPBIN" != ":"; then
4662     NM="$DUMPBIN"
4663   fi
4664 fi
4665 test -z "$NM" && NM=nm
4666
4667
4668
4669
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4673 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4674 if test "${lt_cv_nm_interface+set}" = set; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677   lt_cv_nm_interface="BSD nm"
4678   echo "int some_variable = 0;" > conftest.$ac_ext
4679   (eval echo "\"\$as_me:4679: $ac_compile\"" >&5)
4680   (eval "$ac_compile" 2>conftest.err)
4681   cat conftest.err >&5
4682   (eval echo "\"\$as_me:4682: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4683   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4684   cat conftest.err >&5
4685   (eval echo "\"\$as_me:4685: output\"" >&5)
4686   cat conftest.out >&5
4687   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4688     lt_cv_nm_interface="MS dumpbin"
4689   fi
4690   rm -f conftest*
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4693 $as_echo "$lt_cv_nm_interface" >&6; }
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4696 $as_echo_n "checking whether ln -s works... " >&6; }
4697 LN_S=$as_ln_s
4698 if test "$LN_S" = "ln -s"; then
4699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700 $as_echo "yes" >&6; }
4701 else
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4703 $as_echo "no, using $LN_S" >&6; }
4704 fi
4705
4706 # find the maximum length of command line arguments
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4708 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4709 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4710   $as_echo_n "(cached) " >&6
4711 else
4712     i=0
4713   teststring="ABCD"
4714
4715   case $build_os in
4716   msdosdjgpp*)
4717     # On DJGPP, this test can blow up pretty badly due to problems in libc
4718     # (any single argument exceeding 2000 bytes causes a buffer overrun
4719     # during glob expansion).  Even if it were fixed, the result of this
4720     # check would be larger than it should be.
4721     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4722     ;;
4723
4724   gnu*)
4725     # Under GNU Hurd, this test is not required because there is
4726     # no limit to the length of command line arguments.
4727     # Libtool will interpret -1 as no limit whatsoever
4728     lt_cv_sys_max_cmd_len=-1;
4729     ;;
4730
4731   cygwin* | mingw* | cegcc*)
4732     # On Win9x/ME, this test blows up -- it succeeds, but takes
4733     # about 5 minutes as the teststring grows exponentially.
4734     # Worse, since 9x/ME are not pre-emptively multitasking,
4735     # you end up with a "frozen" computer, even though with patience
4736     # the test eventually succeeds (with a max line length of 256k).
4737     # Instead, let's just punt: use the minimum linelength reported by
4738     # all of the supported platforms: 8192 (on NT/2K/XP).
4739     lt_cv_sys_max_cmd_len=8192;
4740     ;;
4741
4742   amigaos*)
4743     # On AmigaOS with pdksh, this test takes hours, literally.
4744     # So we just punt and use a minimum line length of 8192.
4745     lt_cv_sys_max_cmd_len=8192;
4746     ;;
4747
4748   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4749     # This has been around since 386BSD, at least.  Likely further.
4750     if test -x /sbin/sysctl; then
4751       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4752     elif test -x /usr/sbin/sysctl; then
4753       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4754     else
4755       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4756     fi
4757     # And add a safety zone
4758     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4759     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4760     ;;
4761
4762   interix*)
4763     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4764     lt_cv_sys_max_cmd_len=196608
4765     ;;
4766
4767   osf*)
4768     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4769     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4770     # nice to cause kernel panics so lets avoid the loop below.
4771     # First set a reasonable default.
4772     lt_cv_sys_max_cmd_len=16384
4773     #
4774     if test -x /sbin/sysconfig; then
4775       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4776         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4777       esac
4778     fi
4779     ;;
4780   sco3.2v5*)
4781     lt_cv_sys_max_cmd_len=102400
4782     ;;
4783   sysv5* | sco5v6* | sysv4.2uw2*)
4784     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4785     if test -n "$kargmax"; then
4786       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4787     else
4788       lt_cv_sys_max_cmd_len=32768
4789     fi
4790     ;;
4791   *)
4792     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4793     if test -n "$lt_cv_sys_max_cmd_len"; then
4794       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4795       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4796     else
4797       # Make teststring a little bigger before we do anything with it.
4798       # a 1K string should be a reasonable start.
4799       for i in 1 2 3 4 5 6 7 8 ; do
4800         teststring=$teststring$teststring
4801       done
4802       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4803       # If test is not a shell built-in, we'll probably end up computing a
4804       # maximum length that is only half of the actual maximum length, but
4805       # we can't tell.
4806       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4807                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4808               test $i != 17 # 1/2 MB should be enough
4809       do
4810         i=`expr $i + 1`
4811         teststring=$teststring$teststring
4812       done
4813       # Only check the string length outside the loop.
4814       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4815       teststring=
4816       # Add a significant safety factor because C++ compilers can tack on
4817       # massive amounts of additional arguments before passing them to the
4818       # linker.  It appears as though 1/2 is a usable value.
4819       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4820     fi
4821     ;;
4822   esac
4823
4824 fi
4825
4826 if test -n $lt_cv_sys_max_cmd_len ; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4828 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4831 $as_echo "none" >&6; }
4832 fi
4833 max_cmd_len=$lt_cv_sys_max_cmd_len
4834
4835
4836
4837
4838
4839
4840 : ${CP="cp -f"}
4841 : ${MV="mv -f"}
4842 : ${RM="rm -f"}
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4845 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4846 # Try some XSI features
4847 xsi_shell=no
4848 ( _lt_dummy="a/b/c"
4849   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4850       = c,a/b,, \
4851     && eval 'test $(( 1 + 1 )) -eq 2 \
4852     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4853   && xsi_shell=yes
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4855 $as_echo "$xsi_shell" >&6; }
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4859 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4860 lt_shell_append=no
4861 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4862     >/dev/null 2>&1 \
4863   && lt_shell_append=yes
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4865 $as_echo "$lt_shell_append" >&6; }
4866
4867
4868 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4869   lt_unset=unset
4870 else
4871   lt_unset=false
4872 fi
4873
4874
4875
4876
4877
4878 # test EBCDIC or ASCII
4879 case `echo X|tr X '\101'` in
4880  A) # ASCII based system
4881     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4882   lt_SP2NL='tr \040 \012'
4883   lt_NL2SP='tr \015\012 \040\040'
4884   ;;
4885  *) # EBCDIC based system
4886   lt_SP2NL='tr \100 \n'
4887   lt_NL2SP='tr \r\n \100\100'
4888   ;;
4889 esac
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4900 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4901 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   lt_cv_ld_reload_flag='-r'
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4907 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4908 reload_flag=$lt_cv_ld_reload_flag
4909 case $reload_flag in
4910 "" | " "*) ;;
4911 *) reload_flag=" $reload_flag" ;;
4912 esac
4913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4914 case $host_os in
4915   darwin*)
4916     if test "$GCC" = yes; then
4917       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4918     else
4919       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920     fi
4921     ;;
4922 esac
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 if test -n "$ac_tool_prefix"; then
4933   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   if test -n "$OBJDUMP"; then
4941   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 OBJDUMP=$ac_cv_prog_OBJDUMP
4961 if test -n "$OBJDUMP"; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4963 $as_echo "$OBJDUMP" >&6; }
4964 else
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969
4970 fi
4971 if test -z "$ac_cv_prog_OBJDUMP"; then
4972   ac_ct_OBJDUMP=$OBJDUMP
4973   # Extract the first word of "objdump", so it can be a program name with args.
4974 set dummy objdump; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   if test -n "$ac_ct_OBJDUMP"; then
4981   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988     for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995   done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5001 if test -n "$ac_ct_OBJDUMP"; then
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5003 $as_echo "$ac_ct_OBJDUMP" >&6; }
5004 else
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009   if test "x$ac_ct_OBJDUMP" = x; then
5010     OBJDUMP="false"
5011   else
5012     case $cross_compiling:$ac_tool_warned in
5013 yes:)
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016 ac_tool_warned=yes ;;
5017 esac
5018     OBJDUMP=$ac_ct_OBJDUMP
5019   fi
5020 else
5021   OBJDUMP="$ac_cv_prog_OBJDUMP"
5022 fi
5023
5024 test -z "$OBJDUMP" && OBJDUMP=objdump
5025
5026
5027
5028
5029
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5032 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5033 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   lt_cv_file_magic_cmd='$MAGIC_CMD'
5037 lt_cv_file_magic_test_file=
5038 lt_cv_deplibs_check_method='unknown'
5039 # Need to set the preceding variable on all platforms that support
5040 # interlibrary dependencies.
5041 # 'none' -- dependencies not supported.
5042 # `unknown' -- same as none, but documents that we really don't know.
5043 # 'pass_all' -- all dependencies passed with no checks.
5044 # 'test_compile' -- check by making test program.
5045 # 'file_magic [[regex]]' -- check by looking for files in library path
5046 # which responds to the $file_magic_cmd with a given extended regex.
5047 # If you have `file' or equivalent on your system and you're not sure
5048 # whether `pass_all' will *always* work, you probably want this one.
5049
5050 case $host_os in
5051 aix[4-9]*)
5052   lt_cv_deplibs_check_method=pass_all
5053   ;;
5054
5055 beos*)
5056   lt_cv_deplibs_check_method=pass_all
5057   ;;
5058
5059 bsdi[45]*)
5060   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5061   lt_cv_file_magic_cmd='/usr/bin/file -L'
5062   lt_cv_file_magic_test_file=/shlib/libc.so
5063   ;;
5064
5065 cygwin*)
5066   # func_win32_libid is a shell function defined in ltmain.sh
5067   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5068   lt_cv_file_magic_cmd='func_win32_libid'
5069   ;;
5070
5071 mingw* | pw32*)
5072   # Base MSYS/MinGW do not provide the 'file' command needed by
5073   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5074   # unless we find 'file', for example because we are cross-compiling.
5075   if ( file / ) >/dev/null 2>&1; then
5076     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5077     lt_cv_file_magic_cmd='func_win32_libid'
5078   else
5079     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5080     lt_cv_file_magic_cmd='$OBJDUMP -f'
5081   fi
5082   ;;
5083
5084 cegcc)
5085   # use the weaker test based on 'objdump'. See mingw*.
5086   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5087   lt_cv_file_magic_cmd='$OBJDUMP -f'
5088   ;;
5089
5090 darwin* | rhapsody*)
5091   lt_cv_deplibs_check_method=pass_all
5092   ;;
5093
5094 freebsd* | dragonfly*)
5095   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5096     case $host_cpu in
5097     i*86 )
5098       # Not sure whether the presence of OpenBSD here was a mistake.
5099       # Let's accept both of them until this is cleared up.
5100       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5101       lt_cv_file_magic_cmd=/usr/bin/file
5102       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5103       ;;
5104     esac
5105   else
5106     lt_cv_deplibs_check_method=pass_all
5107   fi
5108   ;;
5109
5110 gnu*)
5111   lt_cv_deplibs_check_method=pass_all
5112   ;;
5113
5114 hpux10.20* | hpux11*)
5115   lt_cv_file_magic_cmd=/usr/bin/file
5116   case $host_cpu in
5117   ia64*)
5118     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5119     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5120     ;;
5121   hppa*64*)
5122     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]'
5123     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5124     ;;
5125   *)
5126     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5127     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5128     ;;
5129   esac
5130   ;;
5131
5132 interix[3-9]*)
5133   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5134   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5135   ;;
5136
5137 irix5* | irix6* | nonstopux*)
5138   case $LD in
5139   *-32|*"-32 ") libmagic=32-bit;;
5140   *-n32|*"-n32 ") libmagic=N32;;
5141   *-64|*"-64 ") libmagic=64-bit;;
5142   *) libmagic=never-match;;
5143   esac
5144   lt_cv_deplibs_check_method=pass_all
5145   ;;
5146
5147 # This must be Linux ELF.
5148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5149   lt_cv_deplibs_check_method=pass_all
5150   ;;
5151
5152 netbsd* | netbsdelf*-gnu)
5153   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5154     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5155   else
5156     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5157   fi
5158   ;;
5159
5160 newos6*)
5161   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5162   lt_cv_file_magic_cmd=/usr/bin/file
5163   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5164   ;;
5165
5166 *nto* | *qnx*)
5167   lt_cv_deplibs_check_method=pass_all
5168   ;;
5169
5170 openbsd*)
5171   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5172     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5173   else
5174     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5175   fi
5176   ;;
5177
5178 osf3* | osf4* | osf5*)
5179   lt_cv_deplibs_check_method=pass_all
5180   ;;
5181
5182 rdos*)
5183   lt_cv_deplibs_check_method=pass_all
5184   ;;
5185
5186 solaris*)
5187   lt_cv_deplibs_check_method=pass_all
5188   ;;
5189
5190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5191   lt_cv_deplibs_check_method=pass_all
5192   ;;
5193
5194 sysv4 | sysv4.3*)
5195   case $host_vendor in
5196   motorola)
5197     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]'
5198     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5199     ;;
5200   ncr)
5201     lt_cv_deplibs_check_method=pass_all
5202     ;;
5203   sequent)
5204     lt_cv_file_magic_cmd='/bin/file'
5205     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5206     ;;
5207   sni)
5208     lt_cv_file_magic_cmd='/bin/file'
5209     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5210     lt_cv_file_magic_test_file=/lib/libc.so
5211     ;;
5212   siemens)
5213     lt_cv_deplibs_check_method=pass_all
5214     ;;
5215   pc)
5216     lt_cv_deplibs_check_method=pass_all
5217     ;;
5218   esac
5219   ;;
5220
5221 tpf*)
5222   lt_cv_deplibs_check_method=pass_all
5223   ;;
5224 esac
5225
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5228 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5229 file_magic_cmd=$lt_cv_file_magic_cmd
5230 deplibs_check_method=$lt_cv_deplibs_check_method
5231 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 if test -n "$ac_tool_prefix"; then
5245   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}ar; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_AR+set}" = set; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -n "$AR"; then
5253   ac_cv_prog_AR="$AR" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262     ac_cv_prog_AR="${ac_tool_prefix}ar"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 AR=$ac_cv_prog_AR
5273 if test -n "$AR"; then
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5275 $as_echo "$AR" >&6; }
5276 else
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_AR"; then
5284   ac_ct_AR=$AR
5285   # Extract the first word of "ar", so it can be a program name with args.
5286 set dummy ar; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   if test -n "$ac_ct_AR"; then
5293   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300     for ac_exec_ext in '' $ac_executable_extensions; do
5301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302     ac_cv_prog_ac_ct_AR="ar"
5303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307   done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5313 if test -n "$ac_ct_AR"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5315 $as_echo "$ac_ct_AR" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321   if test "x$ac_ct_AR" = x; then
5322     AR="false"
5323   else
5324     case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330     AR=$ac_ct_AR
5331   fi
5332 else
5333   AR="$ac_cv_prog_AR"
5334 fi
5335
5336 test -z "$AR" && AR=ar
5337 test -z "$AR_FLAGS" && AR_FLAGS=cru
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349 if test -n "$ac_tool_prefix"; then
5350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}strip; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_STRIP+set}" = set; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -n "$STRIP"; then
5358   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 STRIP=$ac_cv_prog_STRIP
5378 if test -n "$STRIP"; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5380 $as_echo "$STRIP" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387 fi
5388 if test -z "$ac_cv_prog_STRIP"; then
5389   ac_ct_STRIP=$STRIP
5390   # Extract the first word of "strip", so it can be a program name with args.
5391 set dummy strip; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -n "$ac_ct_STRIP"; then
5398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405     for ac_exec_ext in '' $ac_executable_extensions; do
5406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407     ac_cv_prog_ac_ct_STRIP="strip"
5408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5418 if test -n "$ac_ct_STRIP"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5420 $as_echo "$ac_ct_STRIP" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426   if test "x$ac_ct_STRIP" = x; then
5427     STRIP=":"
5428   else
5429     case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435     STRIP=$ac_ct_STRIP
5436   fi
5437 else
5438   STRIP="$ac_cv_prog_STRIP"
5439 fi
5440
5441 test -z "$STRIP" && STRIP=:
5442
5443
5444
5445
5446
5447
5448 if test -n "$ac_tool_prefix"; then
5449   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   if test -n "$RANLIB"; then
5457   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 RANLIB=$ac_cv_prog_RANLIB
5477 if test -n "$RANLIB"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5479 $as_echo "$RANLIB" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 fi
5487 if test -z "$ac_cv_prog_RANLIB"; then
5488   ac_ct_RANLIB=$RANLIB
5489   # Extract the first word of "ranlib", so it can be a program name with args.
5490 set dummy ranlib; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   if test -n "$ac_ct_RANLIB"; then
5497   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502   IFS=$as_save_IFS
5503   test -z "$as_dir" && as_dir=.
5504     for ac_exec_ext in '' $ac_executable_extensions; do
5505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506     ac_cv_prog_ac_ct_RANLIB="ranlib"
5507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508     break 2
5509   fi
5510 done
5511   done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5517 if test -n "$ac_ct_RANLIB"; then
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5519 $as_echo "$ac_ct_RANLIB" >&6; }
5520 else
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525   if test "x$ac_ct_RANLIB" = x; then
5526     RANLIB=":"
5527   else
5528     case $cross_compiling:$ac_tool_warned in
5529 yes:)
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5532 ac_tool_warned=yes ;;
5533 esac
5534     RANLIB=$ac_ct_RANLIB
5535   fi
5536 else
5537   RANLIB="$ac_cv_prog_RANLIB"
5538 fi
5539
5540 test -z "$RANLIB" && RANLIB=:
5541
5542
5543
5544
5545
5546
5547 # Determine commands to create old-style static archives.
5548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5549 old_postinstall_cmds='chmod 644 $oldlib'
5550 old_postuninstall_cmds=
5551
5552 if test -n "$RANLIB"; then
5553   case $host_os in
5554   openbsd*)
5555     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5556     ;;
5557   *)
5558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5559     ;;
5560   esac
5561   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5562 fi
5563
5564
5565
5566
5567
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 # If no C compiler was specified, use CC.
5598 LTCC=${LTCC-"$CC"}
5599
5600 # If no C compiler flags were specified, use CFLAGS.
5601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5602
5603 # Allow CC to be a program name with arguments.
5604 compiler=$CC
5605
5606
5607 # Check for command to grab the raw symbol name followed by C symbol from nm.
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5609 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5610 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613
5614 # These are sane defaults that work on at least a few old systems.
5615 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5616
5617 # Character class describing NM global symbol codes.
5618 symcode='[BCDEGRST]'
5619
5620 # Regexp to match symbols that can be accessed directly from C.
5621 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5622
5623 # Define system-specific variables.
5624 case $host_os in
5625 aix*)
5626   symcode='[BCDT]'
5627   ;;
5628 cygwin* | mingw* | pw32* | cegcc*)
5629   symcode='[ABCDGISTW]'
5630   ;;
5631 hpux*)
5632   if test "$host_cpu" = ia64; then
5633     symcode='[ABCDEGRST]'
5634   fi
5635   ;;
5636 irix* | nonstopux*)
5637   symcode='[BCDEGRST]'
5638   ;;
5639 osf*)
5640   symcode='[BCDEGQRST]'
5641   ;;
5642 solaris*)
5643   symcode='[BDRT]'
5644   ;;
5645 sco3.2v5*)
5646   symcode='[DT]'
5647   ;;
5648 sysv4.2uw2*)
5649   symcode='[DT]'
5650   ;;
5651 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5652   symcode='[ABDT]'
5653   ;;
5654 sysv4)
5655   symcode='[DFNSTU]'
5656   ;;
5657 esac
5658
5659 # If we're using GNU nm, then use its standard symbol codes.
5660 case `$NM -V 2>&1` in
5661 *GNU* | *'with BFD'*)
5662   symcode='[ABCDGIRSTW]' ;;
5663 esac
5664
5665 # Transform an extracted symbol line into a proper C declaration.
5666 # Some systems (esp. on ia64) link data and code symbols differently,
5667 # so use this general approach.
5668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5669
5670 # Transform an extracted symbol line into symbol name and symbol address
5671 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5672 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'"
5673
5674 # Handle CRLF in mingw tool chain
5675 opt_cr=
5676 case $build_os in
5677 mingw*)
5678   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5679   ;;
5680 esac
5681
5682 # Try without a prefix underscore, then with it.
5683 for ac_symprfx in "" "_"; do
5684
5685   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5686   symxfrm="\\1 $ac_symprfx\\2 \\2"
5687
5688   # Write the raw and C identifiers.
5689   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5690     # Fake it for dumpbin and say T for any non-static function
5691     # and D for any global variable.
5692     # Also find C++ and __fastcall symbols from MSVC++,
5693     # which start with @ or ?.
5694     lt_cv_sys_global_symbol_pipe="$AWK '"\
5695 "     {last_section=section; section=\$ 3};"\
5696 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5697 "     \$ 0!~/External *\|/{next};"\
5698 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5699 "     {if(hide[section]) next};"\
5700 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5701 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5702 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5703 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5704 "     ' prfx=^$ac_symprfx"
5705   else
5706     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5707   fi
5708
5709   # Check to see that the pipe works correctly.
5710   pipe_works=no
5711
5712   rm -f conftest*
5713   cat > conftest.$ac_ext <<_LT_EOF
5714 #ifdef __cplusplus
5715 extern "C" {
5716 #endif
5717 char nm_test_var;
5718 void nm_test_func(void);
5719 void nm_test_func(void){}
5720 #ifdef __cplusplus
5721 }
5722 #endif
5723 int main(){nm_test_var='a';nm_test_func();return(0);}
5724 _LT_EOF
5725
5726   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5727   (eval $ac_compile) 2>&5
5728   ac_status=$?
5729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730   test $ac_status = 0; }; then
5731     # Now try to grab the symbols.
5732     nlist=conftest.nm
5733     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5734   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5735   ac_status=$?
5736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737   test $ac_status = 0; } && test -s "$nlist"; then
5738       # Try sorting and uniquifying the output.
5739       if sort "$nlist" | uniq > "$nlist"T; then
5740         mv -f "$nlist"T "$nlist"
5741       else
5742         rm -f "$nlist"T
5743       fi
5744
5745       # Make sure that we snagged all the symbols we need.
5746       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5747         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5748           cat <<_LT_EOF > conftest.$ac_ext
5749 #ifdef __cplusplus
5750 extern "C" {
5751 #endif
5752
5753 _LT_EOF
5754           # Now generate the symbol file.
5755           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5756
5757           cat <<_LT_EOF >> conftest.$ac_ext
5758
5759 /* The mapping between symbol names and symbols.  */
5760 const struct {
5761   const char *name;
5762   void       *address;
5763 }
5764 lt__PROGRAM__LTX_preloaded_symbols[] =
5765 {
5766   { "@PROGRAM@", (void *) 0 },
5767 _LT_EOF
5768           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5769           cat <<\_LT_EOF >> conftest.$ac_ext
5770   {0, (void *) 0}
5771 };
5772
5773 /* This works around a problem in FreeBSD linker */
5774 #ifdef FREEBSD_WORKAROUND
5775 static const void *lt_preloaded_setup() {
5776   return lt__PROGRAM__LTX_preloaded_symbols;
5777 }
5778 #endif
5779
5780 #ifdef __cplusplus
5781 }
5782 #endif
5783 _LT_EOF
5784           # Now try linking the two files.
5785           mv conftest.$ac_objext conftstm.$ac_objext
5786           lt_save_LIBS="$LIBS"
5787           lt_save_CFLAGS="$CFLAGS"
5788           LIBS="conftstm.$ac_objext"
5789           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5790           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5791   (eval $ac_link) 2>&5
5792   ac_status=$?
5793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5795             pipe_works=yes
5796           fi
5797           LIBS="$lt_save_LIBS"
5798           CFLAGS="$lt_save_CFLAGS"
5799         else
5800           echo "cannot find nm_test_func in $nlist" >&5
5801         fi
5802       else
5803         echo "cannot find nm_test_var in $nlist" >&5
5804       fi
5805     else
5806       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5807     fi
5808   else
5809     echo "$progname: failed program was:" >&5
5810     cat conftest.$ac_ext >&5
5811   fi
5812   rm -rf conftest* conftst*
5813
5814   # Do not use the global_symbol_pipe unless it works.
5815   if test "$pipe_works" = yes; then
5816     break
5817   else
5818     lt_cv_sys_global_symbol_pipe=
5819   fi
5820 done
5821
5822 fi
5823
5824 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5825   lt_cv_sys_global_symbol_to_cdecl=
5826 fi
5827 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5829 $as_echo "failed" >&6; }
5830 else
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5832 $as_echo "ok" >&6; }
5833 fi
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 # Check whether --enable-libtool-lock was given.
5858 if test "${enable_libtool_lock+set}" = set; then :
5859   enableval=$enable_libtool_lock;
5860 fi
5861
5862 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5863
5864 # Some flags need to be propagated to the compiler or linker for good
5865 # libtool support.
5866 case $host in
5867 ia64-*-hpux*)
5868   # Find out which ABI we are using.
5869   echo 'int i;' > conftest.$ac_ext
5870   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871   (eval $ac_compile) 2>&5
5872   ac_status=$?
5873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874   test $ac_status = 0; }; then
5875     case `/usr/bin/file conftest.$ac_objext` in
5876       *ELF-32*)
5877         HPUX_IA64_MODE="32"
5878         ;;
5879       *ELF-64*)
5880         HPUX_IA64_MODE="64"
5881         ;;
5882     esac
5883   fi
5884   rm -rf conftest*
5885   ;;
5886 *-*-irix6*)
5887   # Find out which ABI we are using.
5888   echo '#line 5888 "configure"' > conftest.$ac_ext
5889   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5890   (eval $ac_compile) 2>&5
5891   ac_status=$?
5892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893   test $ac_status = 0; }; then
5894     if test "$lt_cv_prog_gnu_ld" = yes; then
5895       case `/usr/bin/file conftest.$ac_objext` in
5896         *32-bit*)
5897           LD="${LD-ld} -melf32bsmip"
5898           ;;
5899         *N32*)
5900           LD="${LD-ld} -melf32bmipn32"
5901           ;;
5902         *64-bit*)
5903           LD="${LD-ld} -melf64bmip"
5904         ;;
5905       esac
5906     else
5907       case `/usr/bin/file conftest.$ac_objext` in
5908         *32-bit*)
5909           LD="${LD-ld} -32"
5910           ;;
5911         *N32*)
5912           LD="${LD-ld} -n32"
5913           ;;
5914         *64-bit*)
5915           LD="${LD-ld} -64"
5916           ;;
5917       esac
5918     fi
5919   fi
5920   rm -rf conftest*
5921   ;;
5922
5923 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5924 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5925   # Find out which ABI we are using.
5926   echo 'int i;' > conftest.$ac_ext
5927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5928   (eval $ac_compile) 2>&5
5929   ac_status=$?
5930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931   test $ac_status = 0; }; then
5932     case `/usr/bin/file conftest.o` in
5933       *32-bit*)
5934         case $host in
5935           x86_64-*kfreebsd*-gnu)
5936             LD="${LD-ld} -m elf_i386_fbsd"
5937             ;;
5938           x86_64-*linux*)
5939             LD="${LD-ld} -m elf_i386"
5940             ;;
5941           ppc64-*linux*|powerpc64-*linux*)
5942             LD="${LD-ld} -m elf32ppclinux"
5943             ;;
5944           s390x-*linux*)
5945             LD="${LD-ld} -m elf_s390"
5946             ;;
5947           sparc64-*linux*)
5948             LD="${LD-ld} -m elf32_sparc"
5949             ;;
5950         esac
5951         ;;
5952       *64-bit*)
5953         case $host in
5954           x86_64-*kfreebsd*-gnu)
5955             LD="${LD-ld} -m elf_x86_64_fbsd"
5956             ;;
5957           x86_64-*linux*)
5958             LD="${LD-ld} -m elf_x86_64"
5959             ;;
5960           ppc*-*linux*|powerpc*-*linux*)
5961             LD="${LD-ld} -m elf64ppc"
5962             ;;
5963           s390*-*linux*|s390*-*tpf*)
5964             LD="${LD-ld} -m elf64_s390"
5965             ;;
5966           sparc*-*linux*)
5967             LD="${LD-ld} -m elf64_sparc"
5968             ;;
5969         esac
5970         ;;
5971     esac
5972   fi
5973   rm -rf conftest*
5974   ;;
5975
5976 *-*-sco3.2v5*)
5977   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5978   SAVE_CFLAGS="$CFLAGS"
5979   CFLAGS="$CFLAGS -belf"
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5981 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5982 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   ac_ext=c
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990
5991      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h.  */
5993
5994 int
5995 main ()
5996 {
5997
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_link "$LINENO"; then :
6003   lt_cv_cc_needs_belf=yes
6004 else
6005   lt_cv_cc_needs_belf=no
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext \
6008     conftest$ac_exeext conftest.$ac_ext
6009      ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6017 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6018   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6019     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6020     CFLAGS="$SAVE_CFLAGS"
6021   fi
6022   ;;
6023 sparc*-*solaris*)
6024   # Find out which ABI we are using.
6025   echo 'int i;' > conftest.$ac_ext
6026   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6027   (eval $ac_compile) 2>&5
6028   ac_status=$?
6029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030   test $ac_status = 0; }; then
6031     case `/usr/bin/file conftest.o` in
6032     *64-bit*)
6033       case $lt_cv_prog_gnu_ld in
6034       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6035       *)
6036         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6037           LD="${LD-ld} -64"
6038         fi
6039         ;;
6040       esac
6041       ;;
6042     esac
6043   fi
6044   rm -rf conftest*
6045   ;;
6046 esac
6047
6048 need_locks="$enable_libtool_lock"
6049
6050
6051   case $host_os in
6052     rhapsody* | darwin*)
6053     if test -n "$ac_tool_prefix"; then
6054   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$DSYMUTIL"; then
6062   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069     for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076   done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6082 if test -n "$DSYMUTIL"; then
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6084 $as_echo "$DSYMUTIL" >&6; }
6085 else
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090
6091 fi
6092 if test -z "$ac_cv_prog_DSYMUTIL"; then
6093   ac_ct_DSYMUTIL=$DSYMUTIL
6094   # Extract the first word of "dsymutil", so it can be a program name with args.
6095 set dummy dsymutil; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   if test -n "$ac_ct_DSYMUTIL"; then
6102   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116   done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6122 if test -n "$ac_ct_DSYMUTIL"; then
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6124 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6125 else
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130   if test "x$ac_ct_DSYMUTIL" = x; then
6131     DSYMUTIL=":"
6132   else
6133     case $cross_compiling:$ac_tool_warned in
6134 yes:)
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6137 ac_tool_warned=yes ;;
6138 esac
6139     DSYMUTIL=$ac_ct_DSYMUTIL
6140   fi
6141 else
6142   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6143 fi
6144
6145     if test -n "$ac_tool_prefix"; then
6146   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6147 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if test -n "$NMEDIT"; then
6154   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161     for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168   done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 NMEDIT=$ac_cv_prog_NMEDIT
6174 if test -n "$NMEDIT"; then
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6176 $as_echo "$NMEDIT" >&6; }
6177 else
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181
6182
6183 fi
6184 if test -z "$ac_cv_prog_NMEDIT"; then
6185   ac_ct_NMEDIT=$NMEDIT
6186   # Extract the first word of "nmedit", so it can be a program name with args.
6187 set dummy nmedit; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$ac_ct_NMEDIT"; then
6194   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6214 if test -n "$ac_ct_NMEDIT"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6216 $as_echo "$ac_ct_NMEDIT" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222   if test "x$ac_ct_NMEDIT" = x; then
6223     NMEDIT=":"
6224   else
6225     case $cross_compiling:$ac_tool_warned in
6226 yes:)
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6229 ac_tool_warned=yes ;;
6230 esac
6231     NMEDIT=$ac_ct_NMEDIT
6232   fi
6233 else
6234   NMEDIT="$ac_cv_prog_NMEDIT"
6235 fi
6236
6237     if test -n "$ac_tool_prefix"; then
6238   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_LIPO+set}" = set; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   if test -n "$LIPO"; then
6246   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253     for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260   done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 LIPO=$ac_cv_prog_LIPO
6266 if test -n "$LIPO"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6268 $as_echo "$LIPO" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274
6275 fi
6276 if test -z "$ac_cv_prog_LIPO"; then
6277   ac_ct_LIPO=$LIPO
6278   # Extract the first word of "lipo", so it can be a program name with args.
6279 set dummy lipo; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   if test -n "$ac_ct_LIPO"; then
6286   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_prog_ac_ct_LIPO="lipo"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6306 if test -n "$ac_ct_LIPO"; then
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6308 $as_echo "$ac_ct_LIPO" >&6; }
6309 else
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314   if test "x$ac_ct_LIPO" = x; then
6315     LIPO=":"
6316   else
6317     case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6322 esac
6323     LIPO=$ac_ct_LIPO
6324   fi
6325 else
6326   LIPO="$ac_cv_prog_LIPO"
6327 fi
6328
6329     if test -n "$ac_tool_prefix"; then
6330   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6331 set dummy ${ac_tool_prefix}otool; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -n "$OTOOL"; then
6338   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352   done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 OTOOL=$ac_cv_prog_OTOOL
6358 if test -n "$OTOOL"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6360 $as_echo "$OTOOL" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366
6367 fi
6368 if test -z "$ac_cv_prog_OTOOL"; then
6369   ac_ct_OTOOL=$OTOOL
6370   # Extract the first word of "otool", so it can be a program name with args.
6371 set dummy otool; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   if test -n "$ac_ct_OTOOL"; then
6378   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385     for ac_exec_ext in '' $ac_executable_extensions; do
6386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387     ac_cv_prog_ac_ct_OTOOL="otool"
6388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392   done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6398 if test -n "$ac_ct_OTOOL"; then
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6400 $as_echo "$ac_ct_OTOOL" >&6; }
6401 else
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406   if test "x$ac_ct_OTOOL" = x; then
6407     OTOOL=":"
6408   else
6409     case $cross_compiling:$ac_tool_warned in
6410 yes:)
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413 ac_tool_warned=yes ;;
6414 esac
6415     OTOOL=$ac_ct_OTOOL
6416   fi
6417 else
6418   OTOOL="$ac_cv_prog_OTOOL"
6419 fi
6420
6421     if test -n "$ac_tool_prefix"; then
6422   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6423 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6427   $as_echo_n "(cached) " >&6
6428 else
6429   if test -n "$OTOOL64"; then
6430   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435   IFS=$as_save_IFS
6436   test -z "$as_dir" && as_dir=.
6437     for ac_exec_ext in '' $ac_executable_extensions; do
6438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441     break 2
6442   fi
6443 done
6444   done
6445 IFS=$as_save_IFS
6446
6447 fi
6448 fi
6449 OTOOL64=$ac_cv_prog_OTOOL64
6450 if test -n "$OTOOL64"; then
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6452 $as_echo "$OTOOL64" >&6; }
6453 else
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6456 fi
6457
6458
6459 fi
6460 if test -z "$ac_cv_prog_OTOOL64"; then
6461   ac_ct_OTOOL64=$OTOOL64
6462   # Extract the first word of "otool64", so it can be a program name with args.
6463 set dummy otool64; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   if test -n "$ac_ct_OTOOL64"; then
6470   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477     for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_prog_ac_ct_OTOOL64="otool64"
6480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484   done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6490 if test -n "$ac_ct_OTOOL64"; then
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6492 $as_echo "$ac_ct_OTOOL64" >&6; }
6493 else
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498   if test "x$ac_ct_OTOOL64" = x; then
6499     OTOOL64=":"
6500   else
6501     case $cross_compiling:$ac_tool_warned in
6502 yes:)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6505 ac_tool_warned=yes ;;
6506 esac
6507     OTOOL64=$ac_ct_OTOOL64
6508   fi
6509 else
6510   OTOOL64="$ac_cv_prog_OTOOL64"
6511 fi
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6540 $as_echo_n "checking for -single_module linker flag... " >&6; }
6541 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   lt_cv_apple_cc_single_mod=no
6545       if test -z "${LT_MULTI_MODULE}"; then
6546         # By default we will add the -single_module flag. You can override
6547         # by either setting the environment variable LT_MULTI_MODULE
6548         # non-empty at configure time, or by adding -multi_module to the
6549         # link flags.
6550         rm -rf libconftest.dylib*
6551         echo "int foo(void){return 1;}" > conftest.c
6552         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6553 -dynamiclib -Wl,-single_module conftest.c" >&5
6554         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6555           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6556         _lt_result=$?
6557         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6558           lt_cv_apple_cc_single_mod=yes
6559         else
6560           cat conftest.err >&5
6561         fi
6562         rm -rf libconftest.dylib*
6563         rm -f conftest.*
6564       fi
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6567 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6569 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6570 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   lt_cv_ld_exported_symbols_list=no
6574       save_LDFLAGS=$LDFLAGS
6575       echo "_main" > conftest.sym
6576       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6577       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h.  */
6579
6580 int
6581 main ()
6582 {
6583
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589   lt_cv_ld_exported_symbols_list=yes
6590 else
6591   lt_cv_ld_exported_symbols_list=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext \
6594     conftest$ac_exeext conftest.$ac_ext
6595         LDFLAGS="$save_LDFLAGS"
6596
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6599 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6600     case $host_os in
6601     rhapsody* | darwin1.[012])
6602       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6603     darwin1.*)
6604       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6605     darwin*) # darwin 5.x on
6606       # if running on 10.5 or later, the deployment target defaults
6607       # to the OS version, if on x86, and 10.4, the deployment
6608       # target defaults to 10.4. Don't you love it?
6609       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6610         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6611           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6612         10.[012]*)
6613           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6614         10.*)
6615           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6616       esac
6617     ;;
6618   esac
6619     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6620       _lt_dar_single_mod='$single_module'
6621     fi
6622     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6623       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6624     else
6625       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6626     fi
6627     if test "$DSYMUTIL" != ":"; then
6628       _lt_dsymutil='~$DSYMUTIL $lib || :'
6629     else
6630       _lt_dsymutil=
6631     fi
6632     ;;
6633   esac
6634
6635 ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6641 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6642 # On Suns, sometimes $CPP names a directory.
6643 if test -n "$CPP" && test -d "$CPP"; then
6644   CPP=
6645 fi
6646 if test -z "$CPP"; then
6647   if test "${ac_cv_prog_CPP+set}" = set; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650       # Double quotes because CPP needs to be expanded
6651     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6652     do
6653       ac_preproc_ok=false
6654 for ac_c_preproc_warn_flag in '' yes
6655 do
6656   # Use a header file that comes with gcc, so configuring glibc
6657   # with a fresh cross-compiler works.
6658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6659   # <limits.h> exists even on freestanding compilers.
6660   # On the NeXT, cc -E runs the code through the compiler's parser,
6661   # not just through cpp. "Syntax error" is here to catch this case.
6662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h.  */
6664 #ifdef __STDC__
6665 # include <limits.h>
6666 #else
6667 # include <assert.h>
6668 #endif
6669                      Syntax error
6670 _ACEOF
6671 if ac_fn_c_try_cpp "$LINENO"; then :
6672
6673 else
6674   # Broken: fails on valid input.
6675 continue
6676 fi
6677 rm -f conftest.err conftest.i conftest.$ac_ext
6678
6679   # OK, works on sane cases.  Now check whether nonexistent headers
6680   # can be detected and how.
6681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h.  */
6683 #include <ac_nonexistent.h>
6684 _ACEOF
6685 if ac_fn_c_try_cpp "$LINENO"; then :
6686   # Broken: success on invalid input.
6687 continue
6688 else
6689   # Passes both tests.
6690 ac_preproc_ok=:
6691 break
6692 fi
6693 rm -f conftest.err conftest.i conftest.$ac_ext
6694
6695 done
6696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697 rm -f conftest.i conftest.err conftest.$ac_ext
6698 if $ac_preproc_ok; then :
6699   break
6700 fi
6701
6702     done
6703     ac_cv_prog_CPP=$CPP
6704
6705 fi
6706   CPP=$ac_cv_prog_CPP
6707 else
6708   ac_cv_prog_CPP=$CPP
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6711 $as_echo "$CPP" >&6; }
6712 ac_preproc_ok=false
6713 for ac_c_preproc_warn_flag in '' yes
6714 do
6715   # Use a header file that comes with gcc, so configuring glibc
6716   # with a fresh cross-compiler works.
6717   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718   # <limits.h> exists even on freestanding compilers.
6719   # On the NeXT, cc -E runs the code through the compiler's parser,
6720   # not just through cpp. "Syntax error" is here to catch this case.
6721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h.  */
6723 #ifdef __STDC__
6724 # include <limits.h>
6725 #else
6726 # include <assert.h>
6727 #endif
6728                      Syntax error
6729 _ACEOF
6730 if ac_fn_c_try_cpp "$LINENO"; then :
6731
6732 else
6733   # Broken: fails on valid input.
6734 continue
6735 fi
6736 rm -f conftest.err conftest.i conftest.$ac_ext
6737
6738   # OK, works on sane cases.  Now check whether nonexistent headers
6739   # can be detected and how.
6740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h.  */
6742 #include <ac_nonexistent.h>
6743 _ACEOF
6744 if ac_fn_c_try_cpp "$LINENO"; then :
6745   # Broken: success on invalid input.
6746 continue
6747 else
6748   # Passes both tests.
6749 ac_preproc_ok=:
6750 break
6751 fi
6752 rm -f conftest.err conftest.i conftest.$ac_ext
6753
6754 done
6755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756 rm -f conftest.i conftest.err conftest.$ac_ext
6757 if $ac_preproc_ok; then :
6758
6759 else
6760   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6763 See \`config.log' for more details" "$LINENO" 5 ; }
6764 fi
6765
6766 ac_ext=c
6767 ac_cpp='$CPP $CPPFLAGS'
6768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6774 $as_echo_n "checking for ANSI C header files... " >&6; }
6775 if test "${ac_cv_header_stdc+set}" = set; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h.  */
6780 #include <stdlib.h>
6781 #include <stdarg.h>
6782 #include <string.h>
6783 #include <float.h>
6784
6785 int
6786 main ()
6787 {
6788
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794   ac_cv_header_stdc=yes
6795 else
6796   ac_cv_header_stdc=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799
6800 if test $ac_cv_header_stdc = yes; then
6801   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h.  */
6804 #include <string.h>
6805
6806 _ACEOF
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808   $EGREP "memchr" >/dev/null 2>&1; then :
6809
6810 else
6811   ac_cv_header_stdc=no
6812 fi
6813 rm -f conftest*
6814
6815 fi
6816
6817 if test $ac_cv_header_stdc = yes; then
6818   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h.  */
6821 #include <stdlib.h>
6822
6823 _ACEOF
6824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825   $EGREP "free" >/dev/null 2>&1; then :
6826
6827 else
6828   ac_cv_header_stdc=no
6829 fi
6830 rm -f conftest*
6831
6832 fi
6833
6834 if test $ac_cv_header_stdc = yes; then
6835   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6836   if test "$cross_compiling" = yes; then :
6837   :
6838 else
6839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h.  */
6841 #include <ctype.h>
6842 #include <stdlib.h>
6843 #if ((' ' & 0x0FF) == 0x020)
6844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6846 #else
6847 # define ISLOWER(c) \
6848                    (('a' <= (c) && (c) <= 'i') \
6849                      || ('j' <= (c) && (c) <= 'r') \
6850                      || ('s' <= (c) && (c) <= 'z'))
6851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6852 #endif
6853
6854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6855 int
6856 main ()
6857 {
6858   int i;
6859   for (i = 0; i < 256; i++)
6860     if (XOR (islower (i), ISLOWER (i))
6861         || toupper (i) != TOUPPER (i))
6862       return 2;
6863   return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_run "$LINENO"; then :
6867
6868 else
6869   ac_cv_header_stdc=no
6870 fi
6871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6872   conftest.$ac_objext conftest.beam conftest.$ac_ext
6873 fi
6874
6875 fi
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6878 $as_echo "$ac_cv_header_stdc" >&6; }
6879 if test $ac_cv_header_stdc = yes; then
6880
6881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6882
6883 fi
6884
6885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6887                   inttypes.h stdint.h unistd.h
6888 do :
6889   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6891 "
6892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6893   cat >>confdefs.h <<_ACEOF
6894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 _ACEOF
6896
6897 fi
6898
6899 done
6900
6901
6902 for ac_header in dlfcn.h
6903 do :
6904   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6905 "
6906 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6907   cat >>confdefs.h <<_ACEOF
6908 #define HAVE_DLFCN_H 1
6909 _ACEOF
6910
6911 fi
6912
6913 done
6914
6915
6916
6917 # Set options
6918 enable_win32_dll=yes
6919
6920 case $host in
6921 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6922   if test -n "$ac_tool_prefix"; then
6923   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}as; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_AS+set}" = set; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$AS"; then
6931   ac_cv_prog_AS="$AS" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_prog_AS="${ac_tool_prefix}as"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 AS=$ac_cv_prog_AS
6951 if test -n "$AS"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6953 $as_echo "$AS" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959
6960 fi
6961 if test -z "$ac_cv_prog_AS"; then
6962   ac_ct_AS=$AS
6963   # Extract the first word of "as", so it can be a program name with args.
6964 set dummy as; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   if test -n "$ac_ct_AS"; then
6971   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980     ac_cv_prog_ac_ct_AS="as"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985   done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6991 if test -n "$ac_ct_AS"; then
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6993 $as_echo "$ac_ct_AS" >&6; }
6994 else
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999   if test "x$ac_ct_AS" = x; then
7000     AS="false"
7001   else
7002     case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008     AS=$ac_ct_AS
7009   fi
7010 else
7011   AS="$ac_cv_prog_AS"
7012 fi
7013
7014   if test -n "$ac_tool_prefix"; then
7015   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   if test -n "$DLLTOOL"; then
7023   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030     for ac_exec_ext in '' $ac_executable_extensions; do
7031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034     break 2
7035   fi
7036 done
7037   done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 DLLTOOL=$ac_cv_prog_DLLTOOL
7043 if test -n "$DLLTOOL"; then
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7045 $as_echo "$DLLTOOL" >&6; }
7046 else
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051
7052 fi
7053 if test -z "$ac_cv_prog_DLLTOOL"; then
7054   ac_ct_DLLTOOL=$DLLTOOL
7055   # Extract the first word of "dlltool", so it can be a program name with args.
7056 set dummy dlltool; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   if test -n "$ac_ct_DLLTOOL"; then
7063   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7083 if test -n "$ac_ct_DLLTOOL"; then
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7085 $as_echo "$ac_ct_DLLTOOL" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091   if test "x$ac_ct_DLLTOOL" = x; then
7092     DLLTOOL="false"
7093   else
7094     case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100     DLLTOOL=$ac_ct_DLLTOOL
7101   fi
7102 else
7103   DLLTOOL="$ac_cv_prog_DLLTOOL"
7104 fi
7105
7106   if test -n "$ac_tool_prefix"; then
7107   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   if test -n "$OBJDUMP"; then
7115   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122     for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129   done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 OBJDUMP=$ac_cv_prog_OBJDUMP
7135 if test -n "$OBJDUMP"; then
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7137 $as_echo "$OBJDUMP" >&6; }
7138 else
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143
7144 fi
7145 if test -z "$ac_cv_prog_OBJDUMP"; then
7146   ac_ct_OBJDUMP=$OBJDUMP
7147   # Extract the first word of "objdump", so it can be a program name with args.
7148 set dummy objdump; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7152   $as_echo_n "(cached) " >&6
7153 else
7154   if test -n "$ac_ct_OBJDUMP"; then
7155   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162     for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169   done
7170 IFS=$as_save_IFS
7171
7172 fi
7173 fi
7174 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7175 if test -n "$ac_ct_OBJDUMP"; then
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7177 $as_echo "$ac_ct_OBJDUMP" >&6; }
7178 else
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181 fi
7182
7183   if test "x$ac_ct_OBJDUMP" = x; then
7184     OBJDUMP="false"
7185   else
7186     case $cross_compiling:$ac_tool_warned in
7187 yes:)
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192     OBJDUMP=$ac_ct_OBJDUMP
7193   fi
7194 else
7195   OBJDUMP="$ac_cv_prog_OBJDUMP"
7196 fi
7197
7198   ;;
7199 esac
7200
7201 test -z "$AS" && AS=as
7202
7203
7204
7205
7206
7207 test -z "$DLLTOOL" && DLLTOOL=dlltool
7208
7209
7210
7211
7212
7213 test -z "$OBJDUMP" && OBJDUMP=objdump
7214
7215
7216
7217
7218
7219
7220
7221         enable_dlopen=no
7222
7223
7224
7225             # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227   enableval=$enable_shared; p=${PACKAGE-default}
7228     case $enableval in
7229     yes) enable_shared=yes ;;
7230     no) enable_shared=no ;;
7231     *)
7232       enable_shared=no
7233       # Look at the argument we got.  We use all the common list separators.
7234       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7235       for pkg in $enableval; do
7236         IFS="$lt_save_ifs"
7237         if test "X$pkg" = "X$p"; then
7238           enable_shared=yes
7239         fi
7240       done
7241       IFS="$lt_save_ifs"
7242       ;;
7243     esac
7244 else
7245   enable_shared=yes
7246 fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256   # Check whether --enable-static was given.
7257 if test "${enable_static+set}" = set; then :
7258   enableval=$enable_static; p=${PACKAGE-default}
7259     case $enableval in
7260     yes) enable_static=yes ;;
7261     no) enable_static=no ;;
7262     *)
7263      enable_static=no
7264       # Look at the argument we got.  We use all the common list separators.
7265       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7266       for pkg in $enableval; do
7267         IFS="$lt_save_ifs"
7268         if test "X$pkg" = "X$p"; then
7269           enable_static=yes
7270         fi
7271       done
7272       IFS="$lt_save_ifs"
7273       ;;
7274     esac
7275 else
7276   enable_static=yes
7277 fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288 # Check whether --with-pic was given.
7289 if test "${with_pic+set}" = set; then :
7290   withval=$with_pic; pic_mode="$withval"
7291 else
7292   pic_mode=default
7293 fi
7294
7295
7296 test -z "$pic_mode" && pic_mode=default
7297
7298
7299
7300
7301
7302
7303
7304   # Check whether --enable-fast-install was given.
7305 if test "${enable_fast_install+set}" = set; then :
7306   enableval=$enable_fast_install; p=${PACKAGE-default}
7307     case $enableval in
7308     yes) enable_fast_install=yes ;;
7309     no) enable_fast_install=no ;;
7310     *)
7311       enable_fast_install=no
7312       # Look at the argument we got.  We use all the common list separators.
7313       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7314       for pkg in $enableval; do
7315         IFS="$lt_save_ifs"
7316         if test "X$pkg" = "X$p"; then
7317           enable_fast_install=yes
7318         fi
7319       done
7320       IFS="$lt_save_ifs"
7321       ;;
7322     esac
7323 else
7324   enable_fast_install=yes
7325 fi
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337 # This can be used to rebuild libtool when needed
7338 LIBTOOL_DEPS="$ltmain"
7339
7340 # Always use our own libtool.
7341 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367 test -z "$LN_S" && LN_S="ln -s"
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382 if test -n "${ZSH_VERSION+set}" ; then
7383    setopt NO_GLOB_SUBST
7384 fi
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7387 $as_echo_n "checking for objdir... " >&6; }
7388 if test "${lt_cv_objdir+set}" = set; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   rm -f .libs 2>/dev/null
7392 mkdir .libs 2>/dev/null
7393 if test -d .libs; then
7394   lt_cv_objdir=.libs
7395 else
7396   # MS-DOS does not allow filenames that begin with a dot.
7397   lt_cv_objdir=_libs
7398 fi
7399 rmdir .libs 2>/dev/null
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7402 $as_echo "$lt_cv_objdir" >&6; }
7403 objdir=$lt_cv_objdir
7404
7405
7406
7407
7408
7409 cat >>confdefs.h <<_ACEOF
7410 #define LT_OBJDIR "$lt_cv_objdir/"
7411 _ACEOF
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 case $host_os in
7430 aix3*)
7431   # AIX sometimes has problems with the GCC collect2 program.  For some
7432   # reason, if we set the COLLECT_NAMES environment variable, the problems
7433   # vanish in a puff of smoke.
7434   if test "X${COLLECT_NAMES+set}" != Xset; then
7435     COLLECT_NAMES=
7436     export COLLECT_NAMES
7437   fi
7438   ;;
7439 esac
7440
7441 # Sed substitution that helps us do robust quoting.  It backslashifies
7442 # metacharacters that are still active within double-quoted strings.
7443 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7444
7445 # Same as above, but do not quote variable references.
7446 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7447
7448 # Sed substitution to delay expansion of an escaped shell variable in a
7449 # double_quote_subst'ed string.
7450 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7451
7452 # Sed substitution to delay expansion of an escaped single quote.
7453 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7454
7455 # Sed substitution to avoid accidental globbing in evaled expressions
7456 no_glob_subst='s/\*/\\\*/g'
7457
7458 # Global variables:
7459 ofile=libtool
7460 can_build_shared=yes
7461
7462 # All known linkers require a `.a' archive for static linking (except MSVC,
7463 # which needs '.lib').
7464 libext=a
7465
7466 with_gnu_ld="$lt_cv_prog_gnu_ld"
7467
7468 old_CC="$CC"
7469 old_CFLAGS="$CFLAGS"
7470
7471 # Set sane defaults for various variables
7472 test -z "$CC" && CC=cc
7473 test -z "$LTCC" && LTCC=$CC
7474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7475 test -z "$LD" && LD=ld
7476 test -z "$ac_objext" && ac_objext=o
7477
7478 for cc_temp in $compiler""; do
7479   case $cc_temp in
7480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7482     \-*) ;;
7483     *) break;;
7484   esac
7485 done
7486 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7487
7488
7489 # Only perform the check for file, if the check method requires it
7490 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7491 case $deplibs_check_method in
7492 file_magic*)
7493   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7495 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   case $MAGIC_CMD in
7500 [\\/*] |  ?:[\\/]*)
7501   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7502   ;;
7503 *)
7504   lt_save_MAGIC_CMD="$MAGIC_CMD"
7505   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7506   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7507   for ac_dir in $ac_dummy; do
7508     IFS="$lt_save_ifs"
7509     test -z "$ac_dir" && ac_dir=.
7510     if test -f $ac_dir/${ac_tool_prefix}file; then
7511       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7512       if test -n "$file_magic_test_file"; then
7513         case $deplibs_check_method in
7514         "file_magic "*)
7515           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7516           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7517           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7518             $EGREP "$file_magic_regex" > /dev/null; then
7519             :
7520           else
7521             cat <<_LT_EOF 1>&2
7522
7523 *** Warning: the command libtool uses to detect shared libraries,
7524 *** $file_magic_cmd, produces output that libtool cannot recognize.
7525 *** The result is that libtool may fail to recognize shared libraries
7526 *** as such.  This will affect the creation of libtool libraries that
7527 *** depend on shared libraries, but programs linked with such libtool
7528 *** libraries will work regardless of this problem.  Nevertheless, you
7529 *** may want to report the problem to your system manager and/or to
7530 *** bug-libtool@gnu.org
7531
7532 _LT_EOF
7533           fi ;;
7534         esac
7535       fi
7536       break
7537     fi
7538   done
7539   IFS="$lt_save_ifs"
7540   MAGIC_CMD="$lt_save_MAGIC_CMD"
7541   ;;
7542 esac
7543 fi
7544
7545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7546 if test -n "$MAGIC_CMD"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7548 $as_echo "$MAGIC_CMD" >&6; }
7549 else
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554
7555
7556
7557
7558 if test -z "$lt_cv_path_MAGIC_CMD"; then
7559   if test -n "$ac_tool_prefix"; then
7560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7561 $as_echo_n "checking for file... " >&6; }
7562 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   case $MAGIC_CMD in
7566 [\\/*] |  ?:[\\/]*)
7567   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7568   ;;
7569 *)
7570   lt_save_MAGIC_CMD="$MAGIC_CMD"
7571   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7572   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7573   for ac_dir in $ac_dummy; do
7574     IFS="$lt_save_ifs"
7575     test -z "$ac_dir" && ac_dir=.
7576     if test -f $ac_dir/file; then
7577       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7578       if test -n "$file_magic_test_file"; then
7579         case $deplibs_check_method in
7580         "file_magic "*)
7581           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7582           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7583           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7584             $EGREP "$file_magic_regex" > /dev/null; then
7585             :
7586           else
7587             cat <<_LT_EOF 1>&2
7588
7589 *** Warning: the command libtool uses to detect shared libraries,
7590 *** $file_magic_cmd, produces output that libtool cannot recognize.
7591 *** The result is that libtool may fail to recognize shared libraries
7592 *** as such.  This will affect the creation of libtool libraries that
7593 *** depend on shared libraries, but programs linked with such libtool
7594 *** libraries will work regardless of this problem.  Nevertheless, you
7595 *** may want to report the problem to your system manager and/or to
7596 *** bug-libtool@gnu.org
7597
7598 _LT_EOF
7599           fi ;;
7600         esac
7601       fi
7602       break
7603     fi
7604   done
7605   IFS="$lt_save_ifs"
7606   MAGIC_CMD="$lt_save_MAGIC_CMD"
7607   ;;
7608 esac
7609 fi
7610
7611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612 if test -n "$MAGIC_CMD"; then
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7614 $as_echo "$MAGIC_CMD" >&6; }
7615 else
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620
7621   else
7622     MAGIC_CMD=:
7623   fi
7624 fi
7625
7626   fi
7627   ;;
7628 esac
7629
7630 # Use C for the default configuration in the libtool script
7631
7632 lt_save_CC="$CC"
7633 ac_ext=c
7634 ac_cpp='$CPP $CPPFLAGS'
7635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638
7639
7640 # Source file extension for C test sources.
7641 ac_ext=c
7642
7643 # Object file extension for compiled C test sources.
7644 objext=o
7645 objext=$objext
7646
7647 # Code to be used in simple compile tests
7648 lt_simple_compile_test_code="int some_variable = 0;"
7649
7650 # Code to be used in simple link tests
7651 lt_simple_link_test_code='int main(){return(0);}'
7652
7653
7654
7655
7656
7657
7658
7659 # If no C compiler was specified, use CC.
7660 LTCC=${LTCC-"$CC"}
7661
7662 # If no C compiler flags were specified, use CFLAGS.
7663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7664
7665 # Allow CC to be a program name with arguments.
7666 compiler=$CC
7667
7668 # Save the default compiler, since it gets overwritten when the other
7669 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7670 compiler_DEFAULT=$CC
7671
7672 # save warnings/boilerplate of simple test code
7673 ac_outfile=conftest.$ac_objext
7674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7676 _lt_compiler_boilerplate=`cat conftest.err`
7677 $RM conftest*
7678
7679 ac_outfile=conftest.$ac_objext
7680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7682 _lt_linker_boilerplate=`cat conftest.err`
7683 $RM -r conftest*
7684
7685
7686 ## CAVEAT EMPTOR:
7687 ## There is no encapsulation within the following macros, do not change
7688 ## the running order or otherwise move them around unless you know exactly
7689 ## what you are doing...
7690 if test -n "$compiler"; then
7691
7692 lt_prog_compiler_no_builtin_flag=
7693
7694 if test "$GCC" = yes; then
7695   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7696
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7698 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7699 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   lt_cv_prog_compiler_rtti_exceptions=no
7703    ac_outfile=conftest.$ac_objext
7704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7705    lt_compiler_flag="-fno-rtti -fno-exceptions"
7706    # Insert the option either (1) after the last *FLAGS variable, or
7707    # (2) before a word containing "conftest.", or (3) at the end.
7708    # Note that $ac_compile itself does not contain backslashes and begins
7709    # with a dollar sign (not a hyphen), so the echo should work correctly.
7710    # The option is referenced via a variable to avoid confusing sed.
7711    lt_compile=`echo "$ac_compile" | $SED \
7712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714    -e 's:$: $lt_compiler_flag:'`
7715    (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716    (eval "$lt_compile" 2>conftest.err)
7717    ac_status=$?
7718    cat conftest.err >&5
7719    echo "$as_me:7719: \$? = $ac_status" >&5
7720    if (exit $ac_status) && test -s "$ac_outfile"; then
7721      # The compiler can only warn and ignore the option if not recognized
7722      # So say no if there are warnings other than the usual output.
7723      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7726        lt_cv_prog_compiler_rtti_exceptions=yes
7727      fi
7728    fi
7729    $RM conftest*
7730
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7733 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7734
7735 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7736     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7737 else
7738     :
7739 fi
7740
7741 fi
7742
7743
7744
7745
7746
7747
7748   lt_prog_compiler_wl=
7749 lt_prog_compiler_pic=
7750 lt_prog_compiler_static=
7751
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7753 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7754
7755   if test "$GCC" = yes; then
7756     lt_prog_compiler_wl='-Wl,'
7757     lt_prog_compiler_static='-static'
7758
7759     case $host_os in
7760       aix*)
7761       # All AIX code is PIC.
7762       if test "$host_cpu" = ia64; then
7763         # AIX 5 now supports IA64 processor
7764         lt_prog_compiler_static='-Bstatic'
7765       fi
7766       ;;
7767
7768     amigaos*)
7769       case $host_cpu in
7770       powerpc)
7771             # see comment about AmigaOS4 .so support
7772             lt_prog_compiler_pic='-fPIC'
7773         ;;
7774       m68k)
7775             # FIXME: we need at least 68020 code to build shared libraries, but
7776             # adding the `-m68020' flag to GCC prevents building anything better,
7777             # like `-m68040'.
7778             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7779         ;;
7780       esac
7781       ;;
7782
7783     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7784       # PIC is the default for these OSes.
7785       ;;
7786
7787     mingw* | cygwin* | pw32* | os2* | cegcc*)
7788       # This hack is so that the source file can tell whether it is being
7789       # built for inclusion in a dll (and should export symbols for example).
7790       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7791       # (--disable-auto-import) libraries
7792       lt_prog_compiler_pic='-DDLL_EXPORT'
7793       ;;
7794
7795     darwin* | rhapsody*)
7796       # PIC is the default on this platform
7797       # Common symbols not allowed in MH_DYLIB files
7798       lt_prog_compiler_pic='-fno-common'
7799       ;;
7800
7801     hpux*)
7802       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7803       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7804       # sets the default TLS model and affects inlining.
7805       case $host_cpu in
7806       hppa*64*)
7807         # +Z the default
7808         ;;
7809       *)
7810         lt_prog_compiler_pic='-fPIC'
7811         ;;
7812       esac
7813       ;;
7814
7815     interix[3-9]*)
7816       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7817       # Instead, we relocate shared libraries at runtime.
7818       ;;
7819
7820     msdosdjgpp*)
7821       # Just because we use GCC doesn't mean we suddenly get shared libraries
7822       # on systems that don't support them.
7823       lt_prog_compiler_can_build_shared=no
7824       enable_shared=no
7825       ;;
7826
7827     *nto* | *qnx*)
7828       # QNX uses GNU C++, but need to define -shared option too, otherwise
7829       # it will coredump.
7830       lt_prog_compiler_pic='-fPIC -shared'
7831       ;;
7832
7833     sysv4*MP*)
7834       if test -d /usr/nec; then
7835         lt_prog_compiler_pic=-Kconform_pic
7836       fi
7837       ;;
7838
7839     *)
7840       lt_prog_compiler_pic='-fPIC'
7841       ;;
7842     esac
7843   else
7844     # PORTME Check for flag to pass linker flags through the system compiler.
7845     case $host_os in
7846     aix*)
7847       lt_prog_compiler_wl='-Wl,'
7848       if test "$host_cpu" = ia64; then
7849         # AIX 5 now supports IA64 processor
7850         lt_prog_compiler_static='-Bstatic'
7851       else
7852         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7853       fi
7854       ;;
7855
7856     mingw* | cygwin* | pw32* | os2* | cegcc*)
7857       # This hack is so that the source file can tell whether it is being
7858       # built for inclusion in a dll (and should export symbols for example).
7859       lt_prog_compiler_pic='-DDLL_EXPORT'
7860       ;;
7861
7862     hpux9* | hpux10* | hpux11*)
7863       lt_prog_compiler_wl='-Wl,'
7864       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7865       # not for PA HP-UX.
7866       case $host_cpu in
7867       hppa*64*|ia64*)
7868         # +Z the default
7869         ;;
7870       *)
7871         lt_prog_compiler_pic='+Z'
7872         ;;
7873       esac
7874       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7875       lt_prog_compiler_static='${wl}-a ${wl}archive'
7876       ;;
7877
7878     irix5* | irix6* | nonstopux*)
7879       lt_prog_compiler_wl='-Wl,'
7880       # PIC (with -KPIC) is the default.
7881       lt_prog_compiler_static='-non_shared'
7882       ;;
7883
7884     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7885       case $cc_basename in
7886       # old Intel for x86_64 which still supported -KPIC.
7887       ecc*)
7888         lt_prog_compiler_wl='-Wl,'
7889         lt_prog_compiler_pic='-KPIC'
7890         lt_prog_compiler_static='-static'
7891         ;;
7892       # icc used to be incompatible with GCC.
7893       # ICC 10 doesn't accept -KPIC any more.
7894       icc* | ifort*)
7895         lt_prog_compiler_wl='-Wl,'
7896         lt_prog_compiler_pic='-fPIC'
7897         lt_prog_compiler_static='-static'
7898         ;;
7899       # Lahey Fortran 8.1.
7900       lf95*)
7901         lt_prog_compiler_wl='-Wl,'
7902         lt_prog_compiler_pic='--shared'
7903         lt_prog_compiler_static='--static'
7904         ;;
7905       pgcc* | pgf77* | pgf90* | pgf95*)
7906         # Portland Group compilers (*not* the Pentium gcc compiler,
7907         # which looks to be a dead project)
7908         lt_prog_compiler_wl='-Wl,'
7909         lt_prog_compiler_pic='-fpic'
7910         lt_prog_compiler_static='-Bstatic'
7911         ;;
7912       ccc*)
7913         lt_prog_compiler_wl='-Wl,'
7914         # All Alpha code is PIC.
7915         lt_prog_compiler_static='-non_shared'
7916         ;;
7917       xl*)
7918         # IBM XL C 8.0/Fortran 10.1 on PPC
7919         lt_prog_compiler_wl='-Wl,'
7920         lt_prog_compiler_pic='-qpic'
7921         lt_prog_compiler_static='-qstaticlink'
7922         ;;
7923       *)
7924         case `$CC -V 2>&1 | sed 5q` in
7925         *Sun\ C*)
7926           # Sun C 5.9
7927           lt_prog_compiler_pic='-KPIC'
7928           lt_prog_compiler_static='-Bstatic'
7929           lt_prog_compiler_wl='-Wl,'
7930           ;;
7931         *Sun\ F*)
7932           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7933           lt_prog_compiler_pic='-KPIC'
7934           lt_prog_compiler_static='-Bstatic'
7935           lt_prog_compiler_wl=''
7936           ;;
7937         esac
7938         ;;
7939       esac
7940       ;;
7941
7942     newsos6)
7943       lt_prog_compiler_pic='-KPIC'
7944       lt_prog_compiler_static='-Bstatic'
7945       ;;
7946
7947     *nto* | *qnx*)
7948       # QNX uses GNU C++, but need to define -shared option too, otherwise
7949       # it will coredump.
7950       lt_prog_compiler_pic='-fPIC -shared'
7951       ;;
7952
7953     osf3* | osf4* | osf5*)
7954       lt_prog_compiler_wl='-Wl,'
7955       # All OSF/1 code is PIC.
7956       lt_prog_compiler_static='-non_shared'
7957       ;;
7958
7959     rdos*)
7960       lt_prog_compiler_static='-non_shared'
7961       ;;
7962
7963     solaris*)
7964       lt_prog_compiler_pic='-KPIC'
7965       lt_prog_compiler_static='-Bstatic'
7966       case $cc_basename in
7967       f77* | f90* | f95*)
7968         lt_prog_compiler_wl='-Qoption ld ';;
7969       *)
7970         lt_prog_compiler_wl='-Wl,';;
7971       esac
7972       ;;
7973
7974     sunos4*)
7975       lt_prog_compiler_wl='-Qoption ld '
7976       lt_prog_compiler_pic='-PIC'
7977       lt_prog_compiler_static='-Bstatic'
7978       ;;
7979
7980     sysv4 | sysv4.2uw2* | sysv4.3*)
7981       lt_prog_compiler_wl='-Wl,'
7982       lt_prog_compiler_pic='-KPIC'
7983       lt_prog_compiler_static='-Bstatic'
7984       ;;
7985
7986     sysv4*MP*)
7987       if test -d /usr/nec ;then
7988         lt_prog_compiler_pic='-Kconform_pic'
7989         lt_prog_compiler_static='-Bstatic'
7990       fi
7991       ;;
7992
7993     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7994       lt_prog_compiler_wl='-Wl,'
7995       lt_prog_compiler_pic='-KPIC'
7996       lt_prog_compiler_static='-Bstatic'
7997       ;;
7998
7999     unicos*)
8000       lt_prog_compiler_wl='-Wl,'
8001       lt_prog_compiler_can_build_shared=no
8002       ;;
8003
8004     uts4*)
8005       lt_prog_compiler_pic='-pic'
8006       lt_prog_compiler_static='-Bstatic'
8007       ;;
8008
8009     *)
8010       lt_prog_compiler_can_build_shared=no
8011       ;;
8012     esac
8013   fi
8014
8015 case $host_os in
8016   # For platforms which do not support PIC, -DPIC is meaningless:
8017   *djgpp*)
8018     lt_prog_compiler_pic=
8019     ;;
8020   *)
8021     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8022     ;;
8023 esac
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8025 $as_echo "$lt_prog_compiler_pic" >&6; }
8026
8027
8028
8029
8030
8031
8032 #
8033 # Check to make sure the PIC flag actually works.
8034 #
8035 if test -n "$lt_prog_compiler_pic"; then
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8037 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8038 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   lt_cv_prog_compiler_pic_works=no
8042    ac_outfile=conftest.$ac_objext
8043    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8045    # Insert the option either (1) after the last *FLAGS variable, or
8046    # (2) before a word containing "conftest.", or (3) at the end.
8047    # Note that $ac_compile itself does not contain backslashes and begins
8048    # with a dollar sign (not a hyphen), so the echo should work correctly.
8049    # The option is referenced via a variable to avoid confusing sed.
8050    lt_compile=`echo "$ac_compile" | $SED \
8051    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053    -e 's:$: $lt_compiler_flag:'`
8054    (eval echo "\"\$as_me:8054: $lt_compile\"" >&5)
8055    (eval "$lt_compile" 2>conftest.err)
8056    ac_status=$?
8057    cat conftest.err >&5
8058    echo "$as_me:8058: \$? = $ac_status" >&5
8059    if (exit $ac_status) && test -s "$ac_outfile"; then
8060      # The compiler can only warn and ignore the option if not recognized
8061      # So say no if there are warnings other than the usual output.
8062      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8063      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8064      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8065        lt_cv_prog_compiler_pic_works=yes
8066      fi
8067    fi
8068    $RM conftest*
8069
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8072 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8073
8074 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8075     case $lt_prog_compiler_pic in
8076      "" | " "*) ;;
8077      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8078      esac
8079 else
8080     lt_prog_compiler_pic=
8081      lt_prog_compiler_can_build_shared=no
8082 fi
8083
8084 fi
8085
8086
8087
8088
8089
8090
8091 #
8092 # Check to make sure the static flag actually works.
8093 #
8094 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8096 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8097 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8098   $as_echo_n "(cached) " >&6
8099 else
8100   lt_cv_prog_compiler_static_works=no
8101    save_LDFLAGS="$LDFLAGS"
8102    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8103    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8104    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8105      # The linker can only warn and ignore the option if not recognized
8106      # So say no if there are warnings
8107      if test -s conftest.err; then
8108        # Append any errors to the config.log.
8109        cat conftest.err 1>&5
8110        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8111        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112        if diff conftest.exp conftest.er2 >/dev/null; then
8113          lt_cv_prog_compiler_static_works=yes
8114        fi
8115      else
8116        lt_cv_prog_compiler_static_works=yes
8117      fi
8118    fi
8119    $RM -r conftest*
8120    LDFLAGS="$save_LDFLAGS"
8121
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8124 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8125
8126 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8127     :
8128 else
8129     lt_prog_compiler_static=
8130 fi
8131
8132
8133
8134
8135
8136
8137
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8140 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8141   $as_echo_n "(cached) " >&6
8142 else
8143   lt_cv_prog_compiler_c_o=no
8144    $RM -r conftest 2>/dev/null
8145    mkdir conftest
8146    cd conftest
8147    mkdir out
8148    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8149
8150    lt_compiler_flag="-o out/conftest2.$ac_objext"
8151    # Insert the option either (1) after the last *FLAGS variable, or
8152    # (2) before a word containing "conftest.", or (3) at the end.
8153    # Note that $ac_compile itself does not contain backslashes and begins
8154    # with a dollar sign (not a hyphen), so the echo should work correctly.
8155    lt_compile=`echo "$ac_compile" | $SED \
8156    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8158    -e 's:$: $lt_compiler_flag:'`
8159    (eval echo "\"\$as_me:8159: $lt_compile\"" >&5)
8160    (eval "$lt_compile" 2>out/conftest.err)
8161    ac_status=$?
8162    cat out/conftest.err >&5
8163    echo "$as_me:8163: \$? = $ac_status" >&5
8164    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8165    then
8166      # The compiler can only warn and ignore the option if not recognized
8167      # So say no if there are warnings
8168      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8169      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8170      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8171        lt_cv_prog_compiler_c_o=yes
8172      fi
8173    fi
8174    chmod u+w . 2>&5
8175    $RM conftest*
8176    # SGI C++ compiler will create directory out/ii_files/ for
8177    # template instantiation
8178    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8179    $RM out/* && rmdir out
8180    cd ..
8181    $RM -r conftest
8182    $RM conftest*
8183
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8186 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8187
8188
8189
8190
8191
8192
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8195 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   lt_cv_prog_compiler_c_o=no
8199    $RM -r conftest 2>/dev/null
8200    mkdir conftest
8201    cd conftest
8202    mkdir out
8203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8204
8205    lt_compiler_flag="-o out/conftest2.$ac_objext"
8206    # Insert the option either (1) after the last *FLAGS variable, or
8207    # (2) before a word containing "conftest.", or (3) at the end.
8208    # Note that $ac_compile itself does not contain backslashes and begins
8209    # with a dollar sign (not a hyphen), so the echo should work correctly.
8210    lt_compile=`echo "$ac_compile" | $SED \
8211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8213    -e 's:$: $lt_compiler_flag:'`
8214    (eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
8215    (eval "$lt_compile" 2>out/conftest.err)
8216    ac_status=$?
8217    cat out/conftest.err >&5
8218    echo "$as_me:8218: \$? = $ac_status" >&5
8219    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8220    then
8221      # The compiler can only warn and ignore the option if not recognized
8222      # So say no if there are warnings
8223      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8224      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8225      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8226        lt_cv_prog_compiler_c_o=yes
8227      fi
8228    fi
8229    chmod u+w . 2>&5
8230    $RM conftest*
8231    # SGI C++ compiler will create directory out/ii_files/ for
8232    # template instantiation
8233    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8234    $RM out/* && rmdir out
8235    cd ..
8236    $RM -r conftest
8237    $RM conftest*
8238
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8242
8243
8244
8245
8246 hard_links="nottested"
8247 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8248   # do not overwrite the value of need_locks provided by the user
8249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8250 $as_echo_n "checking if we can lock with hard links... " >&6; }
8251   hard_links=yes
8252   $RM conftest*
8253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8254   touch conftest.a
8255   ln conftest.a conftest.b 2>&5 || hard_links=no
8256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8258 $as_echo "$hard_links" >&6; }
8259   if test "$hard_links" = no; then
8260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8262     need_locks=warn
8263   fi
8264 else
8265   need_locks=no
8266 fi
8267
8268
8269
8270
8271
8272
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8274 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8275
8276   runpath_var=
8277   allow_undefined_flag=
8278   always_export_symbols=no
8279   archive_cmds=
8280   archive_expsym_cmds=
8281   compiler_needs_object=no
8282   enable_shared_with_static_runtimes=no
8283   export_dynamic_flag_spec=
8284   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8285   hardcode_automatic=no
8286   hardcode_direct=no
8287   hardcode_direct_absolute=no
8288   hardcode_libdir_flag_spec=
8289   hardcode_libdir_flag_spec_ld=
8290   hardcode_libdir_separator=
8291   hardcode_minus_L=no
8292   hardcode_shlibpath_var=unsupported
8293   inherit_rpath=no
8294   link_all_deplibs=unknown
8295   module_cmds=
8296   module_expsym_cmds=
8297   old_archive_from_new_cmds=
8298   old_archive_from_expsyms_cmds=
8299   thread_safe_flag_spec=
8300   whole_archive_flag_spec=
8301   # include_expsyms should be a list of space-separated symbols to be *always*
8302   # included in the symbol list
8303   include_expsyms=
8304   # exclude_expsyms can be an extended regexp of symbols to exclude
8305   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8306   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8307   # as well as any symbol that contains `d'.
8308   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8309   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8310   # platforms (ab)use it in PIC code, but their linkers get confused if
8311   # the symbol is explicitly referenced.  Since portable code cannot
8312   # rely on this symbol name, it's probably fine to never include it in
8313   # preloaded symbol tables.
8314   # Exclude shared library initialization/finalization symbols.
8315   extract_expsyms_cmds=
8316
8317   case $host_os in
8318   cygwin* | mingw* | pw32* | cegcc*)
8319     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8320     # When not using gcc, we currently assume that we are using
8321     # Microsoft Visual C++.
8322     if test "$GCC" != yes; then
8323       with_gnu_ld=no
8324     fi
8325     ;;
8326   interix*)
8327     # we just hope/assume this is gcc and not c89 (= MSVC++)
8328     with_gnu_ld=yes
8329     ;;
8330   openbsd*)
8331     with_gnu_ld=no
8332     ;;
8333   linux* | k*bsd*-gnu)
8334     link_all_deplibs=no
8335     ;;
8336   esac
8337
8338   ld_shlibs=yes
8339   if test "$with_gnu_ld" = yes; then
8340     # If archive_cmds runs LD, not CC, wlarc should be empty
8341     wlarc='${wl}'
8342
8343     # Set some defaults for GNU ld with shared library support. These
8344     # are reset later if shared libraries are not supported. Putting them
8345     # here allows them to be overridden if necessary.
8346     runpath_var=LD_RUN_PATH
8347     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8348     export_dynamic_flag_spec='${wl}--export-dynamic'
8349     # ancient GNU ld didn't support --whole-archive et. al.
8350     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8351       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8352     else
8353       whole_archive_flag_spec=
8354     fi
8355     supports_anon_versioning=no
8356     case `$LD -v 2>&1` in
8357       *GNU\ gold*) supports_anon_versioning=yes ;;
8358       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8359       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8360       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8361       *\ 2.11.*) ;; # other 2.11 versions
8362       *) supports_anon_versioning=yes ;;
8363     esac
8364
8365     # See if GNU ld supports shared libraries.
8366     case $host_os in
8367     aix[3-9]*)
8368       # On AIX/PPC, the GNU linker is very broken
8369       if test "$host_cpu" != ia64; then
8370         ld_shlibs=no
8371         cat <<_LT_EOF 1>&2
8372
8373 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8374 *** to be unable to reliably create shared libraries on AIX.
8375 *** Therefore, libtool is disabling shared libraries support.  If you
8376 *** really care for shared libraries, you may want to modify your PATH
8377 *** so that a non-GNU linker is found, and then restart.
8378
8379 _LT_EOF
8380       fi
8381       ;;
8382
8383     amigaos*)
8384       case $host_cpu in
8385       powerpc)
8386             # see comment about AmigaOS4 .so support
8387             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388             archive_expsym_cmds=''
8389         ;;
8390       m68k)
8391             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)'
8392             hardcode_libdir_flag_spec='-L$libdir'
8393             hardcode_minus_L=yes
8394         ;;
8395       esac
8396       ;;
8397
8398     beos*)
8399       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8400         allow_undefined_flag=unsupported
8401         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8402         # support --undefined.  This deserves some investigation.  FIXME
8403         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404       else
8405         ld_shlibs=no
8406       fi
8407       ;;
8408
8409     cygwin* | mingw* | pw32* | cegcc*)
8410       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8411       # as there is no search path for DLLs.
8412       hardcode_libdir_flag_spec='-L$libdir'
8413       allow_undefined_flag=unsupported
8414       always_export_symbols=no
8415       enable_shared_with_static_runtimes=yes
8416       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8417
8418       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8419         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8420         # If the export-symbols file already is a .def file (1st line
8421         # is EXPORTS), use it as is; otherwise, prepend...
8422         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8423           cp $export_symbols $output_objdir/$soname.def;
8424         else
8425           echo EXPORTS > $output_objdir/$soname.def;
8426           cat $export_symbols >> $output_objdir/$soname.def;
8427         fi~
8428         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8429       else
8430         ld_shlibs=no
8431       fi
8432       ;;
8433
8434     interix[3-9]*)
8435       hardcode_direct=no
8436       hardcode_shlibpath_var=no
8437       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8438       export_dynamic_flag_spec='${wl}-E'
8439       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8440       # Instead, shared libraries are loaded at an image base (0x10000000 by
8441       # default) and relocated if they conflict, which is a slow very memory
8442       # consuming and fragmenting process.  To avoid this, we pick a random,
8443       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8444       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8445       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8446       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'
8447       ;;
8448
8449     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8450       tmp_diet=no
8451       if test "$host_os" = linux-dietlibc; then
8452         case $cc_basename in
8453           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8454         esac
8455       fi
8456       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8457          && test "$tmp_diet" = no
8458       then
8459         tmp_addflag=
8460         tmp_sharedflag='-shared'
8461         case $cc_basename,$host_cpu in
8462         pgcc*)                          # Portland Group C compiler
8463           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'
8464           tmp_addflag=' $pic_flag'
8465           ;;
8466         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8467           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'
8468           tmp_addflag=' $pic_flag -Mnomain' ;;
8469         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8470           tmp_addflag=' -i_dynamic' ;;
8471         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8472           tmp_addflag=' -i_dynamic -nofor_main' ;;
8473         ifc* | ifort*)                  # Intel Fortran compiler
8474           tmp_addflag=' -nofor_main' ;;
8475         lf95*)                          # Lahey Fortran 8.1
8476           whole_archive_flag_spec=
8477           tmp_sharedflag='--shared' ;;
8478         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8479           tmp_sharedflag='-qmkshrobj'
8480           tmp_addflag= ;;
8481         esac
8482         case `$CC -V 2>&1 | sed 5q` in
8483         *Sun\ C*)                       # Sun C 5.9
8484           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'
8485           compiler_needs_object=yes
8486           tmp_sharedflag='-G' ;;
8487         *Sun\ F*)                       # Sun Fortran 8.3
8488           tmp_sharedflag='-G' ;;
8489         esac
8490         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491
8492         if test "x$supports_anon_versioning" = xyes; then
8493           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8494             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8495             echo "local: *; };" >> $output_objdir/$libname.ver~
8496             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8497         fi
8498
8499         case $cc_basename in
8500         xlf*)
8501           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8502           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8503           hardcode_libdir_flag_spec=
8504           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8505           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8506           if test "x$supports_anon_versioning" = xyes; then
8507             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8508               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8509               echo "local: *; };" >> $output_objdir/$libname.ver~
8510               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8511           fi
8512           ;;
8513         esac
8514       else
8515         ld_shlibs=no
8516       fi
8517       ;;
8518
8519     netbsd* | netbsdelf*-gnu)
8520       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8521         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8522         wlarc=
8523       else
8524         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8526       fi
8527       ;;
8528
8529     solaris*)
8530       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8531         ld_shlibs=no
8532         cat <<_LT_EOF 1>&2
8533
8534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8535 *** create shared libraries on Solaris systems.  Therefore, libtool
8536 *** is disabling shared libraries support.  We urge you to upgrade GNU
8537 *** binutils to release 2.9.1 or newer.  Another option is to modify
8538 *** your PATH or compiler configuration so that the native linker is
8539 *** used, and then restart.
8540
8541 _LT_EOF
8542       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8543         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8545       else
8546         ld_shlibs=no
8547       fi
8548       ;;
8549
8550     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8551       case `$LD -v 2>&1` in
8552         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8553         ld_shlibs=no
8554         cat <<_LT_EOF 1>&2
8555
8556 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8557 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8558 *** is disabling shared libraries support.  We urge you to upgrade GNU
8559 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8560 *** your PATH or compiler configuration so that the native linker is
8561 *** used, and then restart.
8562
8563 _LT_EOF
8564         ;;
8565         *)
8566           # For security reasons, it is highly recommended that you always
8567           # use absolute paths for naming shared libraries, and exclude the
8568           # DT_RUNPATH tag from executables and libraries.  But doing so
8569           # requires that you compile everything twice, which is a pain.
8570           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8571             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8572             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8574           else
8575             ld_shlibs=no
8576           fi
8577         ;;
8578       esac
8579       ;;
8580
8581     sunos4*)
8582       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8583       wlarc=
8584       hardcode_direct=yes
8585       hardcode_shlibpath_var=no
8586       ;;
8587
8588     *)
8589       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8592       else
8593         ld_shlibs=no
8594       fi
8595       ;;
8596     esac
8597
8598     if test "$ld_shlibs" = no; then
8599       runpath_var=
8600       hardcode_libdir_flag_spec=
8601       export_dynamic_flag_spec=
8602       whole_archive_flag_spec=
8603     fi
8604   else
8605     # PORTME fill in a description of your system's linker (not GNU ld)
8606     case $host_os in
8607     aix3*)
8608       allow_undefined_flag=unsupported
8609       always_export_symbols=yes
8610       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'
8611       # Note: this linker hardcodes the directories in LIBPATH if there
8612       # are no directories specified by -L.
8613       hardcode_minus_L=yes
8614       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8615         # Neither direct hardcoding nor static linking is supported with a
8616         # broken collect2.
8617         hardcode_direct=unsupported
8618       fi
8619       ;;
8620
8621     aix[4-9]*)
8622       if test "$host_cpu" = ia64; then
8623         # On IA64, the linker does run time linking by default, so we don't
8624         # have to do anything special.
8625         aix_use_runtimelinking=no
8626         exp_sym_flag='-Bexport'
8627         no_entry_flag=""
8628       else
8629         # If we're using GNU nm, then we don't want the "-C" option.
8630         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8631         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8632           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'
8633         else
8634           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'
8635         fi
8636         aix_use_runtimelinking=no
8637
8638         # Test if we are trying to use run time linking or normal
8639         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8640         # need to do runtime linking.
8641         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8642           for ld_flag in $LDFLAGS; do
8643           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8644             aix_use_runtimelinking=yes
8645             break
8646           fi
8647           done
8648           ;;
8649         esac
8650
8651         exp_sym_flag='-bexport'
8652         no_entry_flag='-bnoentry'
8653       fi
8654
8655       # When large executables or shared objects are built, AIX ld can
8656       # have problems creating the table of contents.  If linking a library
8657       # or program results in "error TOC overflow" add -mminimal-toc to
8658       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8659       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8660
8661       archive_cmds=''
8662       hardcode_direct=yes
8663       hardcode_direct_absolute=yes
8664       hardcode_libdir_separator=':'
8665       link_all_deplibs=yes
8666       file_list_spec='${wl}-f,'
8667
8668       if test "$GCC" = yes; then
8669         case $host_os in aix4.[012]|aix4.[012].*)
8670         # We only want to do this on AIX 4.2 and lower, the check
8671         # below for broken collect2 doesn't work under 4.3+
8672           collect2name=`${CC} -print-prog-name=collect2`
8673           if test -f "$collect2name" &&
8674            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8675           then
8676           # We have reworked collect2
8677           :
8678           else
8679           # We have old collect2
8680           hardcode_direct=unsupported
8681           # It fails to find uninstalled libraries when the uninstalled
8682           # path is not listed in the libpath.  Setting hardcode_minus_L
8683           # to unsupported forces relinking
8684           hardcode_minus_L=yes
8685           hardcode_libdir_flag_spec='-L$libdir'
8686           hardcode_libdir_separator=
8687           fi
8688           ;;
8689         esac
8690         shared_flag='-shared'
8691         if test "$aix_use_runtimelinking" = yes; then
8692           shared_flag="$shared_flag "'${wl}-G'
8693         fi
8694         link_all_deplibs=no
8695       else
8696         # not using gcc
8697         if test "$host_cpu" = ia64; then
8698         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8699         # chokes on -Wl,-G. The following line is correct:
8700           shared_flag='-G'
8701         else
8702           if test "$aix_use_runtimelinking" = yes; then
8703             shared_flag='${wl}-G'
8704           else
8705             shared_flag='${wl}-bM:SRE'
8706           fi
8707         fi
8708       fi
8709
8710       export_dynamic_flag_spec='${wl}-bexpall'
8711       # It seems that -bexpall does not export symbols beginning with
8712       # underscore (_), so it is better to generate a list of symbols to export.
8713       always_export_symbols=yes
8714       if test "$aix_use_runtimelinking" = yes; then
8715         # Warning - without using the other runtime loading flags (-brtl),
8716         # -berok will link without error, but may produce a broken library.
8717         allow_undefined_flag='-berok'
8718         # Determine the default libpath from the value encoded in an
8719         # empty executable.
8720         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722
8723 int
8724 main ()
8725 {
8726
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732
8733 lt_aix_libpath_sed='
8734     /Import File Strings/,/^$/ {
8735         /^0/ {
8736             s/^0  *\(.*\)$/\1/
8737             p
8738         }
8739     }'
8740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8741 # Check for a 64-bit object if we didn't find anything.
8742 if test -z "$aix_libpath"; then
8743   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8744 fi
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747     conftest$ac_exeext conftest.$ac_ext
8748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8749
8750         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8751         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"
8752       else
8753         if test "$host_cpu" = ia64; then
8754           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8755           allow_undefined_flag="-z nodefs"
8756           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"
8757         else
8758          # Determine the default libpath from the value encoded in an
8759          # empty executable.
8760          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h.  */
8762
8763 int
8764 main ()
8765 {
8766
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772
8773 lt_aix_libpath_sed='
8774     /Import File Strings/,/^$/ {
8775         /^0/ {
8776             s/^0  *\(.*\)$/\1/
8777             p
8778         }
8779     }'
8780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8781 # Check for a 64-bit object if we didn't find anything.
8782 if test -z "$aix_libpath"; then
8783   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8784 fi
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext \
8787     conftest$ac_exeext conftest.$ac_ext
8788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8789
8790          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8791           # Warning - without using the other run time loading flags,
8792           # -berok will link without error, but may produce a broken library.
8793           no_undefined_flag=' ${wl}-bernotok'
8794           allow_undefined_flag=' ${wl}-berok'
8795           # Exported symbols can be pulled into shared objects from archives
8796           whole_archive_flag_spec='$convenience'
8797           archive_cmds_need_lc=yes
8798           # This is similar to how AIX traditionally builds its shared libraries.
8799           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'
8800         fi
8801       fi
8802       ;;
8803
8804     amigaos*)
8805       case $host_cpu in
8806       powerpc)
8807             # see comment about AmigaOS4 .so support
8808             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809             archive_expsym_cmds=''
8810         ;;
8811       m68k)
8812             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)'
8813             hardcode_libdir_flag_spec='-L$libdir'
8814             hardcode_minus_L=yes
8815         ;;
8816       esac
8817       ;;
8818
8819     bsdi[45]*)
8820       export_dynamic_flag_spec=-rdynamic
8821       ;;
8822
8823     cygwin* | mingw* | pw32* | cegcc*)
8824       # When not using gcc, we currently assume that we are using
8825       # Microsoft Visual C++.
8826       # hardcode_libdir_flag_spec is actually meaningless, as there is
8827       # no search path for DLLs.
8828       hardcode_libdir_flag_spec=' '
8829       allow_undefined_flag=unsupported
8830       # Tell ltmain to make .lib files, not .a files.
8831       libext=lib
8832       # Tell ltmain to make .dll files, not .so files.
8833       shrext_cmds=".dll"
8834       # FIXME: Setting linknames here is a bad hack.
8835       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8836       # The linker will automatically build a .lib file if we build a DLL.
8837       old_archive_from_new_cmds='true'
8838       # FIXME: Should let the user specify the lib program.
8839       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8840       fix_srcfile_path='`cygpath -w "$srcfile"`'
8841       enable_shared_with_static_runtimes=yes
8842       ;;
8843
8844     darwin* | rhapsody*)
8845
8846
8847   archive_cmds_need_lc=no
8848   hardcode_direct=no
8849   hardcode_automatic=yes
8850   hardcode_shlibpath_var=unsupported
8851   whole_archive_flag_spec=''
8852   link_all_deplibs=yes
8853   allow_undefined_flag="$_lt_dar_allow_undefined"
8854   case $cc_basename in
8855      ifort*) _lt_dar_can_shared=yes ;;
8856      *) _lt_dar_can_shared=$GCC ;;
8857   esac
8858   if test "$_lt_dar_can_shared" = "yes"; then
8859     output_verbose_link_cmd=echo
8860     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8861     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8862     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}"
8863     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}"
8864
8865   else
8866   ld_shlibs=no
8867   fi
8868
8869       ;;
8870
8871     dgux*)
8872       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873       hardcode_libdir_flag_spec='-L$libdir'
8874       hardcode_shlibpath_var=no
8875       ;;
8876
8877     freebsd1*)
8878       ld_shlibs=no
8879       ;;
8880
8881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8882     # support.  Future versions do this automatically, but an explicit c++rt0.o
8883     # does not break anything, and helps significantly (at the cost of a little
8884     # extra space).
8885     freebsd2.2*)
8886       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8887       hardcode_libdir_flag_spec='-R$libdir'
8888       hardcode_direct=yes
8889       hardcode_shlibpath_var=no
8890       ;;
8891
8892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8893     freebsd2*)
8894       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895       hardcode_direct=yes
8896       hardcode_minus_L=yes
8897       hardcode_shlibpath_var=no
8898       ;;
8899
8900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8901     freebsd* | dragonfly*)
8902       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8903       hardcode_libdir_flag_spec='-R$libdir'
8904       hardcode_direct=yes
8905       hardcode_shlibpath_var=no
8906       ;;
8907
8908     hpux9*)
8909       if test "$GCC" = yes; then
8910         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'
8911       else
8912         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'
8913       fi
8914       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8915       hardcode_libdir_separator=:
8916       hardcode_direct=yes
8917
8918       # hardcode_minus_L: Not really in the search PATH,
8919       # but as the default location of the library.
8920       hardcode_minus_L=yes
8921       export_dynamic_flag_spec='${wl}-E'
8922       ;;
8923
8924     hpux10*)
8925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8926         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927       else
8928         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8929       fi
8930       if test "$with_gnu_ld" = no; then
8931         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932         hardcode_libdir_flag_spec_ld='+b $libdir'
8933         hardcode_libdir_separator=:
8934         hardcode_direct=yes
8935         hardcode_direct_absolute=yes
8936         export_dynamic_flag_spec='${wl}-E'
8937         # hardcode_minus_L: Not really in the search PATH,
8938         # but as the default location of the library.
8939         hardcode_minus_L=yes
8940       fi
8941       ;;
8942
8943     hpux11*)
8944       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8945         case $host_cpu in
8946         hppa*64*)
8947           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948           ;;
8949         ia64*)
8950           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8951           ;;
8952         *)
8953           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954           ;;
8955         esac
8956       else
8957         case $host_cpu in
8958         hppa*64*)
8959           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960           ;;
8961         ia64*)
8962           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8963           ;;
8964         *)
8965           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8966           ;;
8967         esac
8968       fi
8969       if test "$with_gnu_ld" = no; then
8970         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8971         hardcode_libdir_separator=:
8972
8973         case $host_cpu in
8974         hppa*64*|ia64*)
8975           hardcode_direct=no
8976           hardcode_shlibpath_var=no
8977           ;;
8978         *)
8979           hardcode_direct=yes
8980           hardcode_direct_absolute=yes
8981           export_dynamic_flag_spec='${wl}-E'
8982
8983           # hardcode_minus_L: Not really in the search PATH,
8984           # but as the default location of the library.
8985           hardcode_minus_L=yes
8986           ;;
8987         esac
8988       fi
8989       ;;
8990
8991     irix5* | irix6* | nonstopux*)
8992       if test "$GCC" = yes; then
8993         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'
8994         # Try to use the -exported_symbol ld option, if it does not
8995         # work, assume that -exports_file does not work either and
8996         # implicitly export all symbols.
8997         save_LDFLAGS="$LDFLAGS"
8998         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8999         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h.  */
9001 int foo(void) {}
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"; then :
9004   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'
9005
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext \
9008     conftest$ac_exeext conftest.$ac_ext
9009         LDFLAGS="$save_LDFLAGS"
9010       else
9011         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'
9012         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'
9013       fi
9014       archive_cmds_need_lc='no'
9015       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016       hardcode_libdir_separator=:
9017       inherit_rpath=yes
9018       link_all_deplibs=yes
9019       ;;
9020
9021     netbsd* | netbsdelf*-gnu)
9022       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9023         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9024       else
9025         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9026       fi
9027       hardcode_libdir_flag_spec='-R$libdir'
9028       hardcode_direct=yes
9029       hardcode_shlibpath_var=no
9030       ;;
9031
9032     newsos6)
9033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034       hardcode_direct=yes
9035       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9036       hardcode_libdir_separator=:
9037       hardcode_shlibpath_var=no
9038       ;;
9039
9040     *nto* | *qnx*)
9041       ;;
9042
9043     openbsd*)
9044       if test -f /usr/libexec/ld.so; then
9045         hardcode_direct=yes
9046         hardcode_shlibpath_var=no
9047         hardcode_direct_absolute=yes
9048         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9049           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9050           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9051           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9052           export_dynamic_flag_spec='${wl}-E'
9053         else
9054           case $host_os in
9055            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9056              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9057              hardcode_libdir_flag_spec='-R$libdir'
9058              ;;
9059            *)
9060              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9061              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9062              ;;
9063           esac
9064         fi
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     os2*)
9071       hardcode_libdir_flag_spec='-L$libdir'
9072       hardcode_minus_L=yes
9073       allow_undefined_flag=unsupported
9074       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'
9075       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9076       ;;
9077
9078     osf3*)
9079       if test "$GCC" = yes; then
9080         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9081         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'
9082       else
9083         allow_undefined_flag=' -expect_unresolved \*'
9084         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'
9085       fi
9086       archive_cmds_need_lc='no'
9087       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9088       hardcode_libdir_separator=:
9089       ;;
9090
9091     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9092       if test "$GCC" = yes; then
9093         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9094         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'
9095         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9096       else
9097         allow_undefined_flag=' -expect_unresolved \*'
9098         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'
9099         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~
9100         $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'
9101
9102         # Both c and cxx compiler support -rpath directly
9103         hardcode_libdir_flag_spec='-rpath $libdir'
9104       fi
9105       archive_cmds_need_lc='no'
9106       hardcode_libdir_separator=:
9107       ;;
9108
9109     solaris*)
9110       no_undefined_flag=' -z defs'
9111       if test "$GCC" = yes; then
9112         wlarc='${wl}'
9113         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9115           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9116       else
9117         case `$CC -V 2>&1` in
9118         *"Compilers 5.0"*)
9119           wlarc=''
9120           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9121           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9122           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9123           ;;
9124         *)
9125           wlarc='${wl}'
9126           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9127           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9128           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9129           ;;
9130         esac
9131       fi
9132       hardcode_libdir_flag_spec='-R$libdir'
9133       hardcode_shlibpath_var=no
9134       case $host_os in
9135       solaris2.[0-5] | solaris2.[0-5].*) ;;
9136       *)
9137         # The compiler driver will combine and reorder linker options,
9138         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9139         # but is careful enough not to reorder.
9140         # Supported since Solaris 2.6 (maybe 2.5.1?)
9141         if test "$GCC" = yes; then
9142           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9143         else
9144           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9145         fi
9146         ;;
9147       esac
9148       link_all_deplibs=yes
9149       ;;
9150
9151     sunos4*)
9152       if test "x$host_vendor" = xsequent; then
9153         # Use $CC to link under sequent, because it throws in some extra .o
9154         # files that make .init and .fini sections work.
9155         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9156       else
9157         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9158       fi
9159       hardcode_libdir_flag_spec='-L$libdir'
9160       hardcode_direct=yes
9161       hardcode_minus_L=yes
9162       hardcode_shlibpath_var=no
9163       ;;
9164
9165     sysv4)
9166       case $host_vendor in
9167         sni)
9168           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169           hardcode_direct=yes # is this really true???
9170         ;;
9171         siemens)
9172           ## LD is ld it makes a PLAMLIB
9173           ## CC just makes a GrossModule.
9174           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9175           reload_cmds='$CC -r -o $output$reload_objs'
9176           hardcode_direct=no
9177         ;;
9178         motorola)
9179           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9181         ;;
9182       esac
9183       runpath_var='LD_RUN_PATH'
9184       hardcode_shlibpath_var=no
9185       ;;
9186
9187     sysv4.3*)
9188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189       hardcode_shlibpath_var=no
9190       export_dynamic_flag_spec='-Bexport'
9191       ;;
9192
9193     sysv4*MP*)
9194       if test -d /usr/nec; then
9195         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196         hardcode_shlibpath_var=no
9197         runpath_var=LD_RUN_PATH
9198         hardcode_runpath_var=yes
9199         ld_shlibs=yes
9200       fi
9201       ;;
9202
9203     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9204       no_undefined_flag='${wl}-z,text'
9205       archive_cmds_need_lc=no
9206       hardcode_shlibpath_var=no
9207       runpath_var='LD_RUN_PATH'
9208
9209       if test "$GCC" = yes; then
9210         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9211         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9212       else
9213         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9214         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215       fi
9216       ;;
9217
9218     sysv5* | sco3.2v5* | sco5v6*)
9219       # Note: We can NOT use -z defs as we might desire, because we do not
9220       # link with -lc, and that would cause any symbols used from libc to
9221       # always be unresolved, which means just about no library would
9222       # ever link correctly.  If we're not using GNU ld we use -z text
9223       # though, which does catch some bad symbols but isn't as heavy-handed
9224       # as -z defs.
9225       no_undefined_flag='${wl}-z,text'
9226       allow_undefined_flag='${wl}-z,nodefs'
9227       archive_cmds_need_lc=no
9228       hardcode_shlibpath_var=no
9229       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9230       hardcode_libdir_separator=':'
9231       link_all_deplibs=yes
9232       export_dynamic_flag_spec='${wl}-Bexport'
9233       runpath_var='LD_RUN_PATH'
9234
9235       if test "$GCC" = yes; then
9236         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238       else
9239         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9240         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241       fi
9242       ;;
9243
9244     uts4*)
9245       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9246       hardcode_libdir_flag_spec='-L$libdir'
9247       hardcode_shlibpath_var=no
9248       ;;
9249
9250     *)
9251       ld_shlibs=no
9252       ;;
9253     esac
9254
9255     if test x$host_vendor = xsni; then
9256       case $host in
9257       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9258         export_dynamic_flag_spec='${wl}-Blargedynsym'
9259         ;;
9260       esac
9261     fi
9262   fi
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9265 $as_echo "$ld_shlibs" >&6; }
9266 test "$ld_shlibs" = no && can_build_shared=no
9267
9268 with_gnu_ld=$with_gnu_ld
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 #
9285 # Do we need to explicitly link libc?
9286 #
9287 case "x$archive_cmds_need_lc" in
9288 x|xyes)
9289   # Assume -lc should be added
9290   archive_cmds_need_lc=yes
9291
9292   if test "$enable_shared" = yes && test "$GCC" = yes; then
9293     case $archive_cmds in
9294     *'~'*)
9295       # FIXME: we may have to deal with multi-command sequences.
9296       ;;
9297     '$CC '*)
9298       # Test whether the compiler implicitly links with -lc since on some
9299       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9300       # to ld, don't add -lc before -lgcc.
9301       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9302 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9303       $RM conftest*
9304       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305
9306       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9307   (eval $ac_compile) 2>&5
9308   ac_status=$?
9309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9310   test $ac_status = 0; } 2>conftest.err; then
9311         soname=conftest
9312         lib=conftest
9313         libobjs=conftest.$ac_objext
9314         deplibs=
9315         wl=$lt_prog_compiler_wl
9316         pic_flag=$lt_prog_compiler_pic
9317         compiler_flags=-v
9318         linker_flags=-v
9319         verstring=
9320         output_objdir=.
9321         libname=conftest
9322         lt_save_allow_undefined_flag=$allow_undefined_flag
9323         allow_undefined_flag=
9324         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9325   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9326   ac_status=$?
9327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9328   test $ac_status = 0; }
9329         then
9330           archive_cmds_need_lc=no
9331         else
9332           archive_cmds_need_lc=yes
9333         fi
9334         allow_undefined_flag=$lt_save_allow_undefined_flag
9335       else
9336         cat conftest.err 1>&5
9337       fi
9338       $RM conftest*
9339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9340 $as_echo "$archive_cmds_need_lc" >&6; }
9341       ;;
9342     esac
9343   fi
9344   ;;
9345 esac
9346
9347
9348
9349
9350
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9504 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9505
9506 if test "$GCC" = yes; then
9507   case $host_os in
9508     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9509     *) lt_awk_arg="/^libraries:/" ;;
9510   esac
9511   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9512   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9513     # if the path contains ";" then we assume it to be the separator
9514     # otherwise default to the standard path separator (i.e. ":") - it is
9515     # assumed that no part of a normal pathname contains ";" but that should
9516     # okay in the real world where ";" in dirpaths is itself problematic.
9517     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9518   else
9519     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9520   fi
9521   # Ok, now we have the path, separated by spaces, we can step through it
9522   # and add multilib dir if necessary.
9523   lt_tmp_lt_search_path_spec=
9524   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9525   for lt_sys_path in $lt_search_path_spec; do
9526     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9527       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9528     else
9529       test -d "$lt_sys_path" && \
9530         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9531     fi
9532   done
9533   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9534 BEGIN {RS=" "; FS="/|\n";} {
9535   lt_foo="";
9536   lt_count=0;
9537   for (lt_i = NF; lt_i > 0; lt_i--) {
9538     if ($lt_i != "" && $lt_i != ".") {
9539       if ($lt_i == "..") {
9540         lt_count++;
9541       } else {
9542         if (lt_count == 0) {
9543           lt_foo="/" $lt_i lt_foo;
9544         } else {
9545           lt_count--;
9546         }
9547       }
9548     }
9549   }
9550   if (lt_foo != "") { lt_freq[lt_foo]++; }
9551   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9552 }'`
9553   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9554 else
9555   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9556 fi
9557 library_names_spec=
9558 libname_spec='lib$name'
9559 soname_spec=
9560 shrext_cmds=".so"
9561 postinstall_cmds=
9562 postuninstall_cmds=
9563 finish_cmds=
9564 finish_eval=
9565 shlibpath_var=
9566 shlibpath_overrides_runpath=unknown
9567 version_type=none
9568 dynamic_linker="$host_os ld.so"
9569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9570 need_lib_prefix=unknown
9571 hardcode_into_libs=no
9572
9573 # when you set need_version to no, make sure it does not cause -set_version
9574 # flags to be left without arguments
9575 need_version=unknown
9576
9577 case $host_os in
9578 aix3*)
9579   version_type=linux
9580   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9581   shlibpath_var=LIBPATH
9582
9583   # AIX 3 has no versioning support, so we append a major version to the name.
9584   soname_spec='${libname}${release}${shared_ext}$major'
9585   ;;
9586
9587 aix[4-9]*)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   hardcode_into_libs=yes
9592   if test "$host_cpu" = ia64; then
9593     # AIX 5 supports IA64
9594     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9595     shlibpath_var=LD_LIBRARY_PATH
9596   else
9597     # With GCC up to 2.95.x, collect2 would create an import file
9598     # for dependence libraries.  The import file would start with
9599     # the line `#! .'.  This would cause the generated library to
9600     # depend on `.', always an invalid library.  This was fixed in
9601     # development snapshots of GCC prior to 3.0.
9602     case $host_os in
9603       aix4 | aix4.[01] | aix4.[01].*)
9604       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9605            echo ' yes '
9606            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9607         :
9608       else
9609         can_build_shared=no
9610       fi
9611       ;;
9612     esac
9613     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9614     # soname into executable. Probably we can add versioning support to
9615     # collect2, so additional links can be useful in future.
9616     if test "$aix_use_runtimelinking" = yes; then
9617       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9618       # instead of lib<name>.a to let people know that these are not
9619       # typical AIX shared libraries.
9620       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621     else
9622       # We preserve .a as extension for shared libraries through AIX4.2
9623       # and later when we are not doing run time linking.
9624       library_names_spec='${libname}${release}.a $libname.a'
9625       soname_spec='${libname}${release}${shared_ext}$major'
9626     fi
9627     shlibpath_var=LIBPATH
9628   fi
9629   ;;
9630
9631 amigaos*)
9632   case $host_cpu in
9633   powerpc)
9634     # Since July 2007 AmigaOS4 officially supports .so libraries.
9635     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637     ;;
9638   m68k)
9639     library_names_spec='$libname.ixlibrary $libname.a'
9640     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9641     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'
9642     ;;
9643   esac
9644   ;;
9645
9646 beos*)
9647   library_names_spec='${libname}${shared_ext}'
9648   dynamic_linker="$host_os ld.so"
9649   shlibpath_var=LIBRARY_PATH
9650   ;;
9651
9652 bsdi[45]*)
9653   version_type=linux
9654   need_version=no
9655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656   soname_spec='${libname}${release}${shared_ext}$major'
9657   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9660   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9661   # the default ld.so.conf also contains /usr/contrib/lib and
9662   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9663   # libtool to hard-code these into programs
9664   ;;
9665
9666 cygwin* | mingw* | pw32* | cegcc*)
9667   version_type=windows
9668   shrext_cmds=".dll"
9669   need_version=no
9670   need_lib_prefix=no
9671
9672   case $GCC,$host_os in
9673   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9674     library_names_spec='$libname.dll.a'
9675     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9676     postinstall_cmds='base_file=`basename \${file}`~
9677       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9678       dldir=$destdir/`dirname \$dlpath`~
9679       test -d \$dldir || mkdir -p \$dldir~
9680       $install_prog $dir/$dlname \$dldir/$dlname~
9681       chmod a+x \$dldir/$dlname~
9682       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9683         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9684       fi'
9685     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9686       dlpath=$dir/\$dldll~
9687        $RM \$dlpath'
9688     shlibpath_overrides_runpath=yes
9689
9690     case $host_os in
9691     cygwin*)
9692       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9693       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9694       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9695       ;;
9696     mingw* | cegcc*)
9697       # MinGW DLLs use traditional 'lib' prefix
9698       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9699       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9700       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9701         # It is most probably a Windows format PATH printed by
9702         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9703         # path with ; separators, and with drive letters. We can handle the
9704         # drive letters (cygwin fileutils understands them), so leave them,
9705         # especially as we might pass files found there to a mingw objdump,
9706         # which wouldn't understand a cygwinified path. Ahh.
9707         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9708       else
9709         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9710       fi
9711       ;;
9712     pw32*)
9713       # pw32 DLLs use 'pw' prefix rather than 'lib'
9714       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9715       ;;
9716     esac
9717     ;;
9718
9719   *)
9720     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9721     ;;
9722   esac
9723   dynamic_linker='Win32 ld.exe'
9724   # FIXME: first we should search . and the directory the executable is in
9725   shlibpath_var=PATH
9726   ;;
9727
9728 darwin* | rhapsody*)
9729   dynamic_linker="$host_os dyld"
9730   version_type=darwin
9731   need_lib_prefix=no
9732   need_version=no
9733   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9734   soname_spec='${libname}${release}${major}$shared_ext'
9735   shlibpath_overrides_runpath=yes
9736   shlibpath_var=DYLD_LIBRARY_PATH
9737   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9738
9739   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9740   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9741   ;;
9742
9743 dgux*)
9744   version_type=linux
9745   need_lib_prefix=no
9746   need_version=no
9747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9748   soname_spec='${libname}${release}${shared_ext}$major'
9749   shlibpath_var=LD_LIBRARY_PATH
9750   ;;
9751
9752 freebsd1*)
9753   dynamic_linker=no
9754   ;;
9755
9756 freebsd* | dragonfly*)
9757   # DragonFly does not have aout.  When/if they implement a new
9758   # versioning mechanism, adjust this.
9759   if test -x /usr/bin/objformat; then
9760     objformat=`/usr/bin/objformat`
9761   else
9762     case $host_os in
9763     freebsd[123]*) objformat=aout ;;
9764     *) objformat=elf ;;
9765     esac
9766   fi
9767   version_type=freebsd-$objformat
9768   case $version_type in
9769     freebsd-elf*)
9770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9771       need_version=no
9772       need_lib_prefix=no
9773       ;;
9774     freebsd-*)
9775       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9776       need_version=yes
9777       ;;
9778   esac
9779   shlibpath_var=LD_LIBRARY_PATH
9780   case $host_os in
9781   freebsd2*)
9782     shlibpath_overrides_runpath=yes
9783     ;;
9784   freebsd3.[01]* | freebsdelf3.[01]*)
9785     shlibpath_overrides_runpath=yes
9786     hardcode_into_libs=yes
9787     ;;
9788   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9789   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9790     shlibpath_overrides_runpath=no
9791     hardcode_into_libs=yes
9792     ;;
9793   *) # from 4.6 on, and DragonFly
9794     shlibpath_overrides_runpath=yes
9795     hardcode_into_libs=yes
9796     ;;
9797   esac
9798   ;;
9799
9800 gnu*)
9801   version_type=linux
9802   need_lib_prefix=no
9803   need_version=no
9804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9805   soname_spec='${libname}${release}${shared_ext}$major'
9806   shlibpath_var=LD_LIBRARY_PATH
9807   hardcode_into_libs=yes
9808   ;;
9809
9810 hpux9* | hpux10* | hpux11*)
9811   # Give a soname corresponding to the major version so that dld.sl refuses to
9812   # link against other versions.
9813   version_type=sunos
9814   need_lib_prefix=no
9815   need_version=no
9816   case $host_cpu in
9817   ia64*)
9818     shrext_cmds='.so'
9819     hardcode_into_libs=yes
9820     dynamic_linker="$host_os dld.so"
9821     shlibpath_var=LD_LIBRARY_PATH
9822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824     soname_spec='${libname}${release}${shared_ext}$major'
9825     if test "X$HPUX_IA64_MODE" = X32; then
9826       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9827     else
9828       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9829     fi
9830     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9831     ;;
9832   hppa*64*)
9833     shrext_cmds='.sl'
9834     hardcode_into_libs=yes
9835     dynamic_linker="$host_os dld.sl"
9836     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9837     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839     soname_spec='${libname}${release}${shared_ext}$major'
9840     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9841     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9842     ;;
9843   *)
9844     shrext_cmds='.sl'
9845     dynamic_linker="$host_os dld.sl"
9846     shlibpath_var=SHLIB_PATH
9847     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849     soname_spec='${libname}${release}${shared_ext}$major'
9850     ;;
9851   esac
9852   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9853   postinstall_cmds='chmod 555 $lib'
9854   ;;
9855
9856 interix[3-9]*)
9857   version_type=linux
9858   need_lib_prefix=no
9859   need_version=no
9860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9863   shlibpath_var=LD_LIBRARY_PATH
9864   shlibpath_overrides_runpath=no
9865   hardcode_into_libs=yes
9866   ;;
9867
9868 irix5* | irix6* | nonstopux*)
9869   case $host_os in
9870     nonstopux*) version_type=nonstopux ;;
9871     *)
9872         if test "$lt_cv_prog_gnu_ld" = yes; then
9873                 version_type=linux
9874         else
9875                 version_type=irix
9876         fi ;;
9877   esac
9878   need_lib_prefix=no
9879   need_version=no
9880   soname_spec='${libname}${release}${shared_ext}$major'
9881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9882   case $host_os in
9883   irix5* | nonstopux*)
9884     libsuff= shlibsuff=
9885     ;;
9886   *)
9887     case $LD in # libtool.m4 will add one of these switches to LD
9888     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9889       libsuff= shlibsuff= libmagic=32-bit;;
9890     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9891       libsuff=32 shlibsuff=N32 libmagic=N32;;
9892     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9893       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9894     *) libsuff= shlibsuff= libmagic=never-match;;
9895     esac
9896     ;;
9897   esac
9898   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9899   shlibpath_overrides_runpath=no
9900   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9901   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9902   hardcode_into_libs=yes
9903   ;;
9904
9905 # No shared lib support for Linux oldld, aout, or coff.
9906 linux*oldld* | linux*aout* | linux*coff*)
9907   dynamic_linker=no
9908   ;;
9909
9910 # This must be Linux ELF.
9911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9912   version_type=linux
9913   need_lib_prefix=no
9914   need_version=no
9915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9918   shlibpath_var=LD_LIBRARY_PATH
9919   shlibpath_overrides_runpath=no
9920   # Some binutils ld are patched to set DT_RUNPATH
9921   save_LDFLAGS=$LDFLAGS
9922   save_libdir=$libdir
9923   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9924        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h.  */
9927
9928 int
9929 main ()
9930 {
9931
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"; then :
9937   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9938   shlibpath_overrides_runpath=yes
9939 fi
9940 fi
9941 rm -f core conftest.err conftest.$ac_objext \
9942     conftest$ac_exeext conftest.$ac_ext
9943   LDFLAGS=$save_LDFLAGS
9944   libdir=$save_libdir
9945
9946   # This implies no fast_install, which is unacceptable.
9947   # Some rework will be needed to allow for fast_install
9948   # before this can be enabled.
9949   hardcode_into_libs=yes
9950
9951   # Append ld.so.conf contents to the search path
9952   if test -f /etc/ld.so.conf; then
9953     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' ' '`
9954     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9955   fi
9956
9957   # We used to test for /lib/ld.so.1 and disable shared libraries on
9958   # powerpc, because MkLinux only supported shared libraries with the
9959   # GNU dynamic linker.  Since this was broken with cross compilers,
9960   # most powerpc-linux boxes support dynamic linking these days and
9961   # people can always --disable-shared, the test was removed, and we
9962   # assume the GNU/Linux dynamic linker is in use.
9963   dynamic_linker='GNU/Linux ld.so'
9964   ;;
9965
9966 netbsdelf*-gnu)
9967   version_type=linux
9968   need_lib_prefix=no
9969   need_version=no
9970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9971   soname_spec='${libname}${release}${shared_ext}$major'
9972   shlibpath_var=LD_LIBRARY_PATH
9973   shlibpath_overrides_runpath=no
9974   hardcode_into_libs=yes
9975   dynamic_linker='NetBSD ld.elf_so'
9976   ;;
9977
9978 netbsd*)
9979   version_type=sunos
9980   need_lib_prefix=no
9981   need_version=no
9982   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9985     dynamic_linker='NetBSD (a.out) ld.so'
9986   else
9987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9988     soname_spec='${libname}${release}${shared_ext}$major'
9989     dynamic_linker='NetBSD ld.elf_so'
9990   fi
9991   shlibpath_var=LD_LIBRARY_PATH
9992   shlibpath_overrides_runpath=yes
9993   hardcode_into_libs=yes
9994   ;;
9995
9996 newsos6)
9997   version_type=linux
9998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999   shlibpath_var=LD_LIBRARY_PATH
10000   shlibpath_overrides_runpath=yes
10001   ;;
10002
10003 *nto* | *qnx*)
10004   version_type=qnx
10005   need_lib_prefix=no
10006   need_version=no
10007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008   soname_spec='${libname}${release}${shared_ext}$major'
10009   shlibpath_var=LD_LIBRARY_PATH
10010   shlibpath_overrides_runpath=no
10011   hardcode_into_libs=yes
10012   dynamic_linker='ldqnx.so'
10013   ;;
10014
10015 openbsd*)
10016   version_type=sunos
10017   sys_lib_dlsearch_path_spec="/usr/lib"
10018   need_lib_prefix=no
10019   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10020   case $host_os in
10021     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10022     *)                          need_version=no  ;;
10023   esac
10024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10026   shlibpath_var=LD_LIBRARY_PATH
10027   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10028     case $host_os in
10029       openbsd2.[89] | openbsd2.[89].*)
10030         shlibpath_overrides_runpath=no
10031         ;;
10032       *)
10033         shlibpath_overrides_runpath=yes
10034         ;;
10035       esac
10036   else
10037     shlibpath_overrides_runpath=yes
10038   fi
10039   ;;
10040
10041 os2*)
10042   libname_spec='$name'
10043   shrext_cmds=".dll"
10044   need_lib_prefix=no
10045   library_names_spec='$libname${shared_ext} $libname.a'
10046   dynamic_linker='OS/2 ld.exe'
10047   shlibpath_var=LIBPATH
10048   ;;
10049
10050 osf3* | osf4* | osf5*)
10051   version_type=osf
10052   need_lib_prefix=no
10053   need_version=no
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056   shlibpath_var=LD_LIBRARY_PATH
10057   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10058   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10059   ;;
10060
10061 rdos*)
10062   dynamic_linker=no
10063   ;;
10064
10065 solaris*)
10066   version_type=linux
10067   need_lib_prefix=no
10068   need_version=no
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070   soname_spec='${libname}${release}${shared_ext}$major'
10071   shlibpath_var=LD_LIBRARY_PATH
10072   shlibpath_overrides_runpath=yes
10073   hardcode_into_libs=yes
10074   # ldd complains unless libraries are executable
10075   postinstall_cmds='chmod +x $lib'
10076   ;;
10077
10078 sunos4*)
10079   version_type=sunos
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10081   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   shlibpath_overrides_runpath=yes
10084   if test "$with_gnu_ld" = yes; then
10085     need_lib_prefix=no
10086   fi
10087   need_version=yes
10088   ;;
10089
10090 sysv4 | sysv4.3*)
10091   version_type=linux
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093   soname_spec='${libname}${release}${shared_ext}$major'
10094   shlibpath_var=LD_LIBRARY_PATH
10095   case $host_vendor in
10096     sni)
10097       shlibpath_overrides_runpath=no
10098       need_lib_prefix=no
10099       runpath_var=LD_RUN_PATH
10100       ;;
10101     siemens)
10102       need_lib_prefix=no
10103       ;;
10104     motorola)
10105       need_lib_prefix=no
10106       need_version=no
10107       shlibpath_overrides_runpath=no
10108       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10109       ;;
10110   esac
10111   ;;
10112
10113 sysv4*MP*)
10114   if test -d /usr/nec ;then
10115     version_type=linux
10116     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10117     soname_spec='$libname${shared_ext}.$major'
10118     shlibpath_var=LD_LIBRARY_PATH
10119   fi
10120   ;;
10121
10122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10123   version_type=freebsd-elf
10124   need_lib_prefix=no
10125   need_version=no
10126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10127   soname_spec='${libname}${release}${shared_ext}$major'
10128   shlibpath_var=LD_LIBRARY_PATH
10129   shlibpath_overrides_runpath=yes
10130   hardcode_into_libs=yes
10131   if test "$with_gnu_ld" = yes; then
10132     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10133   else
10134     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10135     case $host_os in
10136       sco3.2v5*)
10137         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10138         ;;
10139     esac
10140   fi
10141   sys_lib_dlsearch_path_spec='/usr/lib'
10142   ;;
10143
10144 tpf*)
10145   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10146   version_type=linux
10147   need_lib_prefix=no
10148   need_version=no
10149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150   shlibpath_var=LD_LIBRARY_PATH
10151   shlibpath_overrides_runpath=no
10152   hardcode_into_libs=yes
10153   ;;
10154
10155 uts4*)
10156   version_type=linux
10157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158   soname_spec='${libname}${release}${shared_ext}$major'
10159   shlibpath_var=LD_LIBRARY_PATH
10160   ;;
10161
10162 *)
10163   dynamic_linker=no
10164   ;;
10165 esac
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10167 $as_echo "$dynamic_linker" >&6; }
10168 test "$dynamic_linker" = no && can_build_shared=no
10169
10170 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10171 if test "$GCC" = yes; then
10172   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10173 fi
10174
10175 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10176   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10177 fi
10178 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10179   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10180 fi
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10269 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10270 hardcode_action=
10271 if test -n "$hardcode_libdir_flag_spec" ||
10272    test -n "$runpath_var" ||
10273    test "X$hardcode_automatic" = "Xyes" ; then
10274
10275   # We can hardcode non-existent directories.
10276   if test "$hardcode_direct" != no &&
10277      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10278      # have to relink, otherwise we might link with an installed library
10279      # when we should be linking with a yet-to-be-installed one
10280      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10281      test "$hardcode_minus_L" != no; then
10282     # Linking always hardcodes the temporary library directory.
10283     hardcode_action=relink
10284   else
10285     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10286     hardcode_action=immediate
10287   fi
10288 else
10289   # We cannot hardcode anything, or else we can only hardcode existing
10290   # directories.
10291   hardcode_action=unsupported
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10294 $as_echo "$hardcode_action" >&6; }
10295
10296 if test "$hardcode_action" = relink ||
10297    test "$inherit_rpath" = yes; then
10298   # Fast installation is not supported
10299   enable_fast_install=no
10300 elif test "$shlibpath_overrides_runpath" = yes ||
10301      test "$enable_shared" = no; then
10302   # Fast installation is not necessary
10303   enable_fast_install=needless
10304 fi
10305
10306
10307
10308
10309
10310
10311   if test "x$enable_dlopen" != xyes; then
10312   enable_dlopen=unknown
10313   enable_dlopen_self=unknown
10314   enable_dlopen_self_static=unknown
10315 else
10316   lt_cv_dlopen=no
10317   lt_cv_dlopen_libs=
10318
10319   case $host_os in
10320   beos*)
10321     lt_cv_dlopen="load_add_on"
10322     lt_cv_dlopen_libs=
10323     lt_cv_dlopen_self=yes
10324     ;;
10325
10326   mingw* | pw32* | cegcc*)
10327     lt_cv_dlopen="LoadLibrary"
10328     lt_cv_dlopen_libs=
10329     ;;
10330
10331   cygwin*)
10332     lt_cv_dlopen="dlopen"
10333     lt_cv_dlopen_libs=
10334     ;;
10335
10336   darwin*)
10337   # if libdl is installed we need to link against it
10338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10341   $as_echo_n "(cached) " >&6
10342 else
10343   ac_check_lib_save_LIBS=$LIBS
10344 LIBS="-ldl  $LIBS"
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h.  */
10347
10348 /* Override any GCC internal prototype to avoid an error.
10349    Use char because int might match the return type of a GCC
10350    builtin and then its argument prototype would still apply.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 char dlopen ();
10355 int
10356 main ()
10357 {
10358 return dlopen ();
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_c_try_link "$LINENO"; then :
10364   ac_cv_lib_dl_dlopen=yes
10365 else
10366   ac_cv_lib_dl_dlopen=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369     conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_lib_save_LIBS
10371 fi
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10374 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10376 else
10377
10378     lt_cv_dlopen="dyld"
10379     lt_cv_dlopen_libs=
10380     lt_cv_dlopen_self=yes
10381
10382 fi
10383
10384     ;;
10385
10386   *)
10387     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10388 if test "x$ac_cv_func_shl_load" = x""yes; then :
10389   lt_cv_dlopen="shl_load"
10390 else
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10392 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-ldld  $LIBS"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h.  */
10400
10401 /* Override any GCC internal prototype to avoid an error.
10402    Use char because int might match the return type of a GCC
10403    builtin and then its argument prototype would still apply.  */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char shl_load ();
10408 int
10409 main ()
10410 {
10411 return shl_load ();
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10417   ac_cv_lib_dld_shl_load=yes
10418 else
10419   ac_cv_lib_dld_shl_load=no
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext \
10422     conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10426 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10427 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10428   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10429 else
10430   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10431 if test "x$ac_cv_func_dlopen" = x""yes; then :
10432   lt_cv_dlopen="dlopen"
10433 else
10434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   ac_check_lib_save_LIBS=$LIBS
10440 LIBS="-ldl  $LIBS"
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h.  */
10443
10444 /* Override any GCC internal prototype to avoid an error.
10445    Use char because int might match the return type of a GCC
10446    builtin and then its argument prototype would still apply.  */
10447 #ifdef __cplusplus
10448 extern "C"
10449 #endif
10450 char dlopen ();
10451 int
10452 main ()
10453 {
10454 return dlopen ();
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460   ac_cv_lib_dl_dlopen=yes
10461 else
10462   ac_cv_lib_dl_dlopen=no
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465     conftest$ac_exeext conftest.$ac_ext
10466 LIBS=$ac_check_lib_save_LIBS
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10469 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10470 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10471   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10472 else
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10474 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10475 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10476   $as_echo_n "(cached) " >&6
10477 else
10478   ac_check_lib_save_LIBS=$LIBS
10479 LIBS="-lsvld  $LIBS"
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h.  */
10482
10483 /* Override any GCC internal prototype to avoid an error.
10484    Use char because int might match the return type of a GCC
10485    builtin and then its argument prototype would still apply.  */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 char dlopen ();
10490 int
10491 main ()
10492 {
10493 return dlopen ();
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 if ac_fn_c_try_link "$LINENO"; then :
10499   ac_cv_lib_svld_dlopen=yes
10500 else
10501   ac_cv_lib_svld_dlopen=no
10502 fi
10503 rm -f core conftest.err conftest.$ac_objext \
10504     conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10508 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10509 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10511 else
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10513 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10515   $as_echo_n "(cached) " >&6
10516 else
10517   ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-ldld  $LIBS"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h.  */
10521
10522 /* Override any GCC internal prototype to avoid an error.
10523    Use char because int might match the return type of a GCC
10524    builtin and then its argument prototype would still apply.  */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 char dld_link ();
10529 int
10530 main ()
10531 {
10532 return dld_link ();
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"; then :
10538   ac_cv_lib_dld_dld_link=yes
10539 else
10540   ac_cv_lib_dld_dld_link=no
10541 fi
10542 rm -f core conftest.err conftest.$ac_objext \
10543     conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10547 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10548 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10549   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10550 fi
10551
10552
10553 fi
10554
10555
10556 fi
10557
10558
10559 fi
10560
10561
10562 fi
10563
10564
10565 fi
10566
10567     ;;
10568   esac
10569
10570   if test "x$lt_cv_dlopen" != xno; then
10571     enable_dlopen=yes
10572   else
10573     enable_dlopen=no
10574   fi
10575
10576   case $lt_cv_dlopen in
10577   dlopen)
10578     save_CPPFLAGS="$CPPFLAGS"
10579     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10580
10581     save_LDFLAGS="$LDFLAGS"
10582     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10583
10584     save_LIBS="$LIBS"
10585     LIBS="$lt_cv_dlopen_libs $LIBS"
10586
10587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10588 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10589 if test "${lt_cv_dlopen_self+set}" = set; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592           if test "$cross_compiling" = yes; then :
10593   lt_cv_dlopen_self=cross
10594 else
10595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10596   lt_status=$lt_dlunknown
10597   cat > conftest.$ac_ext <<_LT_EOF
10598 #line 10598 "configure"
10599 #include "confdefs.h"
10600
10601 #if HAVE_DLFCN_H
10602 #include <dlfcn.h>
10603 #endif
10604
10605 #include <stdio.h>
10606
10607 #ifdef RTLD_GLOBAL
10608 #  define LT_DLGLOBAL           RTLD_GLOBAL
10609 #else
10610 #  ifdef DL_GLOBAL
10611 #    define LT_DLGLOBAL         DL_GLOBAL
10612 #  else
10613 #    define LT_DLGLOBAL         0
10614 #  endif
10615 #endif
10616
10617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10618    find out it does not work in some platform. */
10619 #ifndef LT_DLLAZY_OR_NOW
10620 #  ifdef RTLD_LAZY
10621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10622 #  else
10623 #    ifdef DL_LAZY
10624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10625 #    else
10626 #      ifdef RTLD_NOW
10627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10628 #      else
10629 #        ifdef DL_NOW
10630 #          define LT_DLLAZY_OR_NOW      DL_NOW
10631 #        else
10632 #          define LT_DLLAZY_OR_NOW      0
10633 #        endif
10634 #      endif
10635 #    endif
10636 #  endif
10637 #endif
10638
10639 void fnord() { int i=42;}
10640 int main ()
10641 {
10642   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10643   int status = $lt_dlunknown;
10644
10645   if (self)
10646     {
10647       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10648       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10649       /* dlclose (self); */
10650     }
10651   else
10652     puts (dlerror ());
10653
10654   return status;
10655 }
10656 _LT_EOF
10657   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10658   (eval $ac_link) 2>&5
10659   ac_status=$?
10660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10661   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10662     (./conftest; exit; ) >&5 2>/dev/null
10663     lt_status=$?
10664     case x$lt_status in
10665       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10666       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10667       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10668     esac
10669   else :
10670     # compilation failed
10671     lt_cv_dlopen_self=no
10672   fi
10673 fi
10674 rm -fr conftest*
10675
10676
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10679 $as_echo "$lt_cv_dlopen_self" >&6; }
10680
10681     if test "x$lt_cv_dlopen_self" = xyes; then
10682       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10684 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10685 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688           if test "$cross_compiling" = yes; then :
10689   lt_cv_dlopen_self_static=cross
10690 else
10691   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10692   lt_status=$lt_dlunknown
10693   cat > conftest.$ac_ext <<_LT_EOF
10694 #line 10694 "configure"
10695 #include "confdefs.h"
10696
10697 #if HAVE_DLFCN_H
10698 #include <dlfcn.h>
10699 #endif
10700
10701 #include <stdio.h>
10702
10703 #ifdef RTLD_GLOBAL
10704 #  define LT_DLGLOBAL           RTLD_GLOBAL
10705 #else
10706 #  ifdef DL_GLOBAL
10707 #    define LT_DLGLOBAL         DL_GLOBAL
10708 #  else
10709 #    define LT_DLGLOBAL         0
10710 #  endif
10711 #endif
10712
10713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10714    find out it does not work in some platform. */
10715 #ifndef LT_DLLAZY_OR_NOW
10716 #  ifdef RTLD_LAZY
10717 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10718 #  else
10719 #    ifdef DL_LAZY
10720 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10721 #    else
10722 #      ifdef RTLD_NOW
10723 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10724 #      else
10725 #        ifdef DL_NOW
10726 #          define LT_DLLAZY_OR_NOW      DL_NOW
10727 #        else
10728 #          define LT_DLLAZY_OR_NOW      0
10729 #        endif
10730 #      endif
10731 #    endif
10732 #  endif
10733 #endif
10734
10735 void fnord() { int i=42;}
10736 int main ()
10737 {
10738   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10739   int status = $lt_dlunknown;
10740
10741   if (self)
10742     {
10743       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10744       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10745       /* dlclose (self); */
10746     }
10747   else
10748     puts (dlerror ());
10749
10750   return status;
10751 }
10752 _LT_EOF
10753   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10754   (eval $ac_link) 2>&5
10755   ac_status=$?
10756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10757   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10758     (./conftest; exit; ) >&5 2>/dev/null
10759     lt_status=$?
10760     case x$lt_status in
10761       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10762       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10763       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10764     esac
10765   else :
10766     # compilation failed
10767     lt_cv_dlopen_self_static=no
10768   fi
10769 fi
10770 rm -fr conftest*
10771
10772
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10775 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10776     fi
10777
10778     CPPFLAGS="$save_CPPFLAGS"
10779     LDFLAGS="$save_LDFLAGS"
10780     LIBS="$save_LIBS"
10781     ;;
10782   esac
10783
10784   case $lt_cv_dlopen_self in
10785   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10786   *) enable_dlopen_self=unknown ;;
10787   esac
10788
10789   case $lt_cv_dlopen_self_static in
10790   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10791   *) enable_dlopen_self_static=unknown ;;
10792   esac
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811 striplib=
10812 old_striplib=
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10814 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10815 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10816   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10817   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819 $as_echo "yes" >&6; }
10820 else
10821 # FIXME - insert some real tests, host_os isn't really good enough
10822   case $host_os in
10823   darwin*)
10824     if test -n "$STRIP" ; then
10825       striplib="$STRIP -x"
10826       old_striplib="$STRIP -S"
10827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; }
10829     else
10830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10832     fi
10833     ;;
10834   *)
10835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10837     ;;
10838   esac
10839 fi
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852   # Report which library types will actually be built
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10854 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10856 $as_echo "$can_build_shared" >&6; }
10857
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10859 $as_echo_n "checking whether to build shared libraries... " >&6; }
10860   test "$can_build_shared" = "no" && enable_shared=no
10861
10862   # On AIX, shared libraries and static libraries use the same namespace, and
10863   # are all built from PIC.
10864   case $host_os in
10865   aix3*)
10866     test "$enable_shared" = yes && enable_static=no
10867     if test -n "$RANLIB"; then
10868       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10869       postinstall_cmds='$RANLIB $lib'
10870     fi
10871     ;;
10872
10873   aix[4-9]*)
10874     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10875       test "$enable_shared" = yes && enable_static=no
10876     fi
10877     ;;
10878   esac
10879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10880 $as_echo "$enable_shared" >&6; }
10881
10882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10883 $as_echo_n "checking whether to build static libraries... " >&6; }
10884   # Make sure either enable_shared or enable_static is yes.
10885   test "$enable_shared" = yes || enable_static=yes
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10887 $as_echo "$enable_static" >&6; }
10888
10889
10890
10891
10892 fi
10893 ac_ext=c
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10898
10899 CC="$lt_save_CC"
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913         ac_config_commands="$ac_config_commands libtool"
10914
10915
10916
10917
10918 # Only expand once:
10919
10920
10921
10922 # Checks for programs.
10923
10924
10925
10926
10927
10928
10929
10930 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10931         if test -n "$ac_tool_prefix"; then
10932   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10933 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   case $PKG_CONFIG in
10940   [\\/]* | ?:[\\/]*)
10941   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10942   ;;
10943   *)
10944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10946 do
10947   IFS=$as_save_IFS
10948   test -z "$as_dir" && as_dir=.
10949     for ac_exec_ext in '' $ac_executable_extensions; do
10950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953     break 2
10954   fi
10955 done
10956   done
10957 IFS=$as_save_IFS
10958
10959   ;;
10960 esac
10961 fi
10962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10963 if test -n "$PKG_CONFIG"; then
10964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10965 $as_echo "$PKG_CONFIG" >&6; }
10966 else
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 fi
10970
10971
10972 fi
10973 if test -z "$ac_cv_path_PKG_CONFIG"; then
10974   ac_pt_PKG_CONFIG=$PKG_CONFIG
10975   # Extract the first word of "pkg-config", so it can be a program name with args.
10976 set dummy pkg-config; ac_word=$2
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978 $as_echo_n "checking for $ac_word... " >&6; }
10979 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10980   $as_echo_n "(cached) " >&6
10981 else
10982   case $ac_pt_PKG_CONFIG in
10983   [\\/]* | ?:[\\/]*)
10984   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10985   ;;
10986   *)
10987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988 for as_dir in $PATH
10989 do
10990   IFS=$as_save_IFS
10991   test -z "$as_dir" && as_dir=.
10992     for ac_exec_ext in '' $ac_executable_extensions; do
10993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996     break 2
10997   fi
10998 done
10999   done
11000 IFS=$as_save_IFS
11001
11002   ;;
11003 esac
11004 fi
11005 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11006 if test -n "$ac_pt_PKG_CONFIG"; then
11007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11008 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11009 else
11010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012 fi
11013
11014   if test "x$ac_pt_PKG_CONFIG" = x; then
11015     PKG_CONFIG=""
11016   else
11017     case $cross_compiling:$ac_tool_warned in
11018 yes:)
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11021 ac_tool_warned=yes ;;
11022 esac
11023     PKG_CONFIG=$ac_pt_PKG_CONFIG
11024   fi
11025 else
11026   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11027 fi
11028
11029 fi
11030 if test -n "$PKG_CONFIG"; then
11031         _pkg_min_version=0.23
11032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11033 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11034         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11035                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 $as_echo "yes" >&6; }
11037         else
11038                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040                 PKG_CONFIG=""
11041         fi
11042 fi
11043 ac_ext=c
11044 ac_cpp='$CPP $CPPFLAGS'
11045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11048 if test -n "$ac_tool_prefix"; then
11049   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if test "${ac_cv_prog_CC+set}" = set; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056   if test -n "$CC"; then
11057   ac_cv_prog_CC="$CC" # Let the user override the test.
11058 else
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11061 do
11062   IFS=$as_save_IFS
11063   test -z "$as_dir" && as_dir=.
11064     for ac_exec_ext in '' $ac_executable_extensions; do
11065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11066     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068     break 2
11069   fi
11070 done
11071   done
11072 IFS=$as_save_IFS
11073
11074 fi
11075 fi
11076 CC=$ac_cv_prog_CC
11077 if test -n "$CC"; then
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11079 $as_echo "$CC" >&6; }
11080 else
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083 fi
11084
11085
11086 fi
11087 if test -z "$ac_cv_prog_CC"; then
11088   ac_ct_CC=$CC
11089   # Extract the first word of "gcc", so it can be a program name with args.
11090 set dummy gcc; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096   if test -n "$ac_ct_CC"; then
11097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102   IFS=$as_save_IFS
11103   test -z "$as_dir" && as_dir=.
11104     for ac_exec_ext in '' $ac_executable_extensions; do
11105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106     ac_cv_prog_ac_ct_CC="gcc"
11107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108     break 2
11109   fi
11110 done
11111   done
11112 IFS=$as_save_IFS
11113
11114 fi
11115 fi
11116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11117 if test -n "$ac_ct_CC"; then
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11119 $as_echo "$ac_ct_CC" >&6; }
11120 else
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125   if test "x$ac_ct_CC" = x; then
11126     CC=""
11127   else
11128     case $cross_compiling:$ac_tool_warned in
11129 yes:)
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11132 ac_tool_warned=yes ;;
11133 esac
11134     CC=$ac_ct_CC
11135   fi
11136 else
11137   CC="$ac_cv_prog_CC"
11138 fi
11139
11140 if test -z "$CC"; then
11141           if test -n "$ac_tool_prefix"; then
11142     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11143 set dummy ${ac_tool_prefix}cc; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if test "${ac_cv_prog_CC+set}" = set; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   if test -n "$CC"; then
11150   ac_cv_prog_CC="$CC" # Let the user override the test.
11151 else
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11154 do
11155   IFS=$as_save_IFS
11156   test -z "$as_dir" && as_dir=.
11157     for ac_exec_ext in '' $ac_executable_extensions; do
11158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159     ac_cv_prog_CC="${ac_tool_prefix}cc"
11160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161     break 2
11162   fi
11163 done
11164   done
11165 IFS=$as_save_IFS
11166
11167 fi
11168 fi
11169 CC=$ac_cv_prog_CC
11170 if test -n "$CC"; then
11171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11172 $as_echo "$CC" >&6; }
11173 else
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11176 fi
11177
11178
11179   fi
11180 fi
11181 if test -z "$CC"; then
11182   # Extract the first word of "cc", so it can be a program name with args.
11183 set dummy cc; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_CC+set}" = set; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   if test -n "$CC"; then
11190   ac_cv_prog_CC="$CC" # Let the user override the test.
11191 else
11192   ac_prog_rejected=no
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11195 do
11196   IFS=$as_save_IFS
11197   test -z "$as_dir" && as_dir=.
11198     for ac_exec_ext in '' $ac_executable_extensions; do
11199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11200     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11201        ac_prog_rejected=yes
11202        continue
11203      fi
11204     ac_cv_prog_CC="cc"
11205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206     break 2
11207   fi
11208 done
11209   done
11210 IFS=$as_save_IFS
11211
11212 if test $ac_prog_rejected = yes; then
11213   # We found a bogon in the path, so make sure we never use it.
11214   set dummy $ac_cv_prog_CC
11215   shift
11216   if test $# != 0; then
11217     # We chose a different compiler from the bogus one.
11218     # However, it has the same basename, so the bogon will be chosen
11219     # first if we set CC to just the basename; use the full file name.
11220     shift
11221     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11222   fi
11223 fi
11224 fi
11225 fi
11226 CC=$ac_cv_prog_CC
11227 if test -n "$CC"; then
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11229 $as_echo "$CC" >&6; }
11230 else
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 fi
11234
11235
11236 fi
11237 if test -z "$CC"; then
11238   if test -n "$ac_tool_prefix"; then
11239   for ac_prog in cl.exe
11240   do
11241     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if test "${ac_cv_prog_CC+set}" = set; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   if test -n "$CC"; then
11249   ac_cv_prog_CC="$CC" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254   IFS=$as_save_IFS
11255   test -z "$as_dir" && as_dir=.
11256     for ac_exec_ext in '' $ac_executable_extensions; do
11257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260     break 2
11261   fi
11262 done
11263   done
11264 IFS=$as_save_IFS
11265
11266 fi
11267 fi
11268 CC=$ac_cv_prog_CC
11269 if test -n "$CC"; then
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11271 $as_echo "$CC" >&6; }
11272 else
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276
11277
11278     test -n "$CC" && break
11279   done
11280 fi
11281 if test -z "$CC"; then
11282   ac_ct_CC=$CC
11283   for ac_prog in cl.exe
11284 do
11285   # Extract the first word of "$ac_prog", so it can be a program name with args.
11286 set dummy $ac_prog; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   if test -n "$ac_ct_CC"; then
11293   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11294 else
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11297 do
11298   IFS=$as_save_IFS
11299   test -z "$as_dir" && as_dir=.
11300     for ac_exec_ext in '' $ac_executable_extensions; do
11301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302     ac_cv_prog_ac_ct_CC="$ac_prog"
11303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304     break 2
11305   fi
11306 done
11307   done
11308 IFS=$as_save_IFS
11309
11310 fi
11311 fi
11312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11313 if test -n "$ac_ct_CC"; then
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11315 $as_echo "$ac_ct_CC" >&6; }
11316 else
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 fi
11320
11321
11322   test -n "$ac_ct_CC" && break
11323 done
11324
11325   if test "x$ac_ct_CC" = x; then
11326     CC=""
11327   else
11328     case $cross_compiling:$ac_tool_warned in
11329 yes:)
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332 ac_tool_warned=yes ;;
11333 esac
11334     CC=$ac_ct_CC
11335   fi
11336 fi
11337
11338 fi
11339
11340
11341 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11343 as_fn_error $? "no acceptable C compiler found in \$PATH
11344 See \`config.log' for more details" "$LINENO" 5 ; }
11345
11346 # Provide some information about the compiler.
11347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11348 set X $ac_compile
11349 ac_compiler=$2
11350 for ac_option in --version -v -V -qversion; do
11351   { { ac_try="$ac_compiler $ac_option >&5"
11352 case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11357 $as_echo "$ac_try_echo"; } >&5
11358   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11359   ac_status=$?
11360   if test -s conftest.err; then
11361     sed '10a\
11362 ... rest of stderr output deleted ...
11363          10q' conftest.err >conftest.er1
11364     cat conftest.er1 >&5
11365   fi
11366   rm -f conftest.er1 conftest.err
11367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11368   test $ac_status = 0; }
11369 done
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11373 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11374   $as_echo_n "(cached) " >&6
11375 else
11376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h.  */
11378
11379 int
11380 main ()
11381 {
11382 #ifndef __GNUC__
11383        choke me
11384 #endif
11385
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_compile "$LINENO"; then :
11391   ac_compiler_gnu=yes
11392 else
11393   ac_compiler_gnu=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11397
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11401 if test $ac_compiler_gnu = yes; then
11402   GCC=yes
11403 else
11404   GCC=
11405 fi
11406 ac_test_CFLAGS=${CFLAGS+set}
11407 ac_save_CFLAGS=$CFLAGS
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11410 if test "${ac_cv_prog_cc_g+set}" = set; then :
11411   $as_echo_n "(cached) " >&6
11412 else
11413   ac_save_c_werror_flag=$ac_c_werror_flag
11414    ac_c_werror_flag=yes
11415    ac_cv_prog_cc_g=no
11416    CFLAGS="-g"
11417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h.  */
11419
11420 int
11421 main ()
11422 {
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_compile "$LINENO"; then :
11429   ac_cv_prog_cc_g=yes
11430 else
11431   CFLAGS=""
11432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h.  */
11434
11435 int
11436 main ()
11437 {
11438
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_compile "$LINENO"; then :
11444
11445 else
11446   ac_c_werror_flag=$ac_save_c_werror_flag
11447          CFLAGS="-g"
11448          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h.  */
11450
11451 int
11452 main ()
11453 {
11454
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_compile "$LINENO"; then :
11460   ac_cv_prog_cc_g=yes
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467    ac_c_werror_flag=$ac_save_c_werror_flag
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11470 $as_echo "$ac_cv_prog_cc_g" >&6; }
11471 if test "$ac_test_CFLAGS" = set; then
11472   CFLAGS=$ac_save_CFLAGS
11473 elif test $ac_cv_prog_cc_g = yes; then
11474   if test "$GCC" = yes; then
11475     CFLAGS="-g -O2"
11476   else
11477     CFLAGS="-g"
11478   fi
11479 else
11480   if test "$GCC" = yes; then
11481     CFLAGS="-O2"
11482   else
11483     CFLAGS=
11484   fi
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11488 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11489   $as_echo_n "(cached) " >&6
11490 else
11491   ac_cv_prog_cc_c89=no
11492 ac_save_CC=$CC
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h.  */
11495 #include <stdarg.h>
11496 #include <stdio.h>
11497 #include <sys/types.h>
11498 #include <sys/stat.h>
11499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11500 struct buf { int x; };
11501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11502 static char *e (p, i)
11503      char **p;
11504      int i;
11505 {
11506   return p[i];
11507 }
11508 static char *f (char * (*g) (char **, int), char **p, ...)
11509 {
11510   char *s;
11511   va_list v;
11512   va_start (v,p);
11513   s = g (p, va_arg (v,int));
11514   va_end (v);
11515   return s;
11516 }
11517
11518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11519    function prototypes and stuff, but not '\xHH' hex character constants.
11520    These don't provoke an error unfortunately, instead are silently treated
11521    as 'x'.  The following induces an error, until -std is added to get
11522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11523    array size at least.  It's necessary to write '\x00'==0 to get something
11524    that's true only with -std.  */
11525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11526
11527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11528    inside strings and character constants.  */
11529 #define FOO(x) 'x'
11530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11531
11532 int test (int i, double x);
11533 struct s1 {int (*f) (int a);};
11534 struct s2 {int (*f) (double a);};
11535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11536 int argc;
11537 char **argv;
11538 int
11539 main ()
11540 {
11541 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11547         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11548 do
11549   CC="$ac_save_CC $ac_arg"
11550   if ac_fn_c_try_compile "$LINENO"; then :
11551   ac_cv_prog_cc_c89=$ac_arg
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext
11554   test "x$ac_cv_prog_cc_c89" != "xno" && break
11555 done
11556 rm -f conftest.$ac_ext
11557 CC=$ac_save_CC
11558
11559 fi
11560 # AC_CACHE_VAL
11561 case "x$ac_cv_prog_cc_c89" in
11562   x)
11563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11564 $as_echo "none needed" >&6; } ;;
11565   xno)
11566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11567 $as_echo "unsupported" >&6; } ;;
11568   *)
11569     CC="$CC $ac_cv_prog_cc_c89"
11570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11571 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11572 esac
11573 if test "x$ac_cv_prog_cc_c89" != xno; then :
11574
11575 fi
11576
11577 ac_ext=c
11578 ac_cpp='$CPP $CPPFLAGS'
11579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11582
11583 depcc="$CC"   am_compiler_list=
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11586 $as_echo_n "checking dependency style of $depcc... " >&6; }
11587 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11591   # We make a subdir and do the tests there.  Otherwise we can end up
11592   # making bogus files that we don't know about and never remove.  For
11593   # instance it was reported that on HP-UX the gcc test will end up
11594   # making a dummy file named `D' -- because `-MD' means `put the output
11595   # in D'.
11596   mkdir conftest.dir
11597   # Copy depcomp to subdir because otherwise we won't find it if we're
11598   # using a relative directory.
11599   cp "$am_depcomp" conftest.dir
11600   cd conftest.dir
11601   # We will build objects and dependencies in a subdirectory because
11602   # it helps to detect inapplicable dependency modes.  For instance
11603   # both Tru64's cc and ICC support -MD to output dependencies as a
11604   # side effect of compilation, but ICC will put the dependencies in
11605   # the current directory while Tru64 will put them in the object
11606   # directory.
11607   mkdir sub
11608
11609   am_cv_CC_dependencies_compiler_type=none
11610   if test "$am_compiler_list" = ""; then
11611      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11612   fi
11613   am__universal=false
11614   case " $depcc " in #(
11615      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11616      esac
11617
11618   for depmode in $am_compiler_list; do
11619     # Setup a source with many dependencies, because some compilers
11620     # like to wrap large dependency lists on column 80 (with \), and
11621     # we should not choose a depcomp mode which is confused by this.
11622     #
11623     # We need to recreate these files for each test, as the compiler may
11624     # overwrite some of them when testing with obscure command lines.
11625     # This happens at least with the AIX C compiler.
11626     : > sub/conftest.c
11627     for i in 1 2 3 4 5 6; do
11628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11629       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11630       # Solaris 8's {/usr,}/bin/sh.
11631       touch sub/conftst$i.h
11632     done
11633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11634
11635     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11636     # mode.  It turns out that the SunPro C++ compiler does not properly
11637     # handle `-M -o', and we need to detect this.  Also, some Intel
11638     # versions had trouble with output in subdirs
11639     am__obj=sub/conftest.${OBJEXT-o}
11640     am__minus_obj="-o $am__obj"
11641     case $depmode in
11642     gcc)
11643       # This depmode causes a compiler race in universal mode.
11644       test "$am__universal" = false || continue
11645       ;;
11646     nosideeffect)
11647       # after this tag, mechanisms are not by side-effect, so they'll
11648       # only be used when explicitly requested
11649       if test "x$enable_dependency_tracking" = xyes; then
11650         continue
11651       else
11652         break
11653       fi
11654       ;;
11655     msvisualcpp | msvcmsys)
11656       # This compiler won't grok `-c -o', but also, the minuso test has
11657       # not run yet.  These depmodes are late enough in the game, and
11658       # so weak that their functioning should not be impacted.
11659       am__obj=conftest.${OBJEXT-o}
11660       am__minus_obj=
11661       ;;
11662     none) break ;;
11663     esac
11664     if depmode=$depmode \
11665        source=sub/conftest.c object=$am__obj \
11666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11667        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11668          >/dev/null 2>conftest.err &&
11669        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11671        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11673       # icc doesn't choke on unknown options, it will just issue warnings
11674       # or remarks (even with -Werror).  So we grep stderr for any message
11675       # that says an option was ignored or not supported.
11676       # When given -MP, icc 7.0 and 7.1 complain thusly:
11677       #   icc: Command line warning: ignoring option '-M'; no argument required
11678       # The diagnosis changed in icc 8.0:
11679       #   icc: Command line remark: option '-MP' not supported
11680       if (grep 'ignoring option' conftest.err ||
11681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11682         am_cv_CC_dependencies_compiler_type=$depmode
11683         break
11684       fi
11685     fi
11686   done
11687
11688   cd ..
11689   rm -rf conftest.dir
11690 else
11691   am_cv_CC_dependencies_compiler_type=none
11692 fi
11693
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11696 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11698
11699  if
11700   test "x$enable_dependency_tracking" != xno \
11701   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11702   am__fastdepCC_TRUE=
11703   am__fastdepCC_FALSE='#'
11704 else
11705   am__fastdepCC_TRUE='#'
11706   am__fastdepCC_FALSE=
11707 fi
11708
11709
11710 if test "x$CC" != xcc; then
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11712 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11713 else
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11715 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11716 fi
11717 set dummy $CC; ac_cc=`$as_echo "$2" |
11718                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 int
11726 main ()
11727 {
11728
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 # Make sure it works both with $CC and with simple cc.
11734 # We do the test twice because some compilers refuse to overwrite an
11735 # existing .o file with -o, though they will create one.
11736 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11737 rm -f conftest2.*
11738 if { { case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11743 $as_echo "$ac_try_echo"; } >&5
11744   (eval "$ac_try") 2>&5
11745   ac_status=$?
11746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747   test $ac_status = 0; } &&
11748    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750   *) ac_try_echo=$ac_try;;
11751 esac
11752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11753 $as_echo "$ac_try_echo"; } >&5
11754   (eval "$ac_try") 2>&5
11755   ac_status=$?
11756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757   test $ac_status = 0; };
11758 then
11759   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11760   if test "x$CC" != xcc; then
11761     # Test first that cc exists at all.
11762     if { ac_try='cc -c conftest.$ac_ext >&5'
11763   { { case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11768 $as_echo "$ac_try_echo"; } >&5
11769   (eval "$ac_try") 2>&5
11770   ac_status=$?
11771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772   test $ac_status = 0; }; }; then
11773       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11774       rm -f conftest2.*
11775       if { { case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11780 $as_echo "$ac_try_echo"; } >&5
11781   (eval "$ac_try") 2>&5
11782   ac_status=$?
11783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784   test $ac_status = 0; } &&
11785          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11790 $as_echo "$ac_try_echo"; } >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794   test $ac_status = 0; };
11795       then
11796         # cc works too.
11797         :
11798       else
11799         # cc exists but doesn't like -o.
11800         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11801       fi
11802     fi
11803   fi
11804 else
11805   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11806 fi
11807 rm -f core conftest*
11808
11809 fi
11810 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11812 $as_echo "yes" >&6; }
11813 else
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816
11817 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11818
11819 fi
11820
11821 # FIXME: we rely on the cache variable name because
11822 # there is no other way.
11823 set dummy $CC
11824 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11825 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11826 if test "$am_t" != yes; then
11827    # Losing compiler, so override with the script.
11828    # FIXME: It is wrong to rewrite CC.
11829    # But if we don't then we get into trouble of one sort or another.
11830    # A longer-term fix would be to have automake use am__CC in this case,
11831    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11832    CC="$am_aux_dir/compile $CC"
11833 fi
11834
11835
11836 # Extract the first word of "valac", so it can be a program name with args.
11837 set dummy valac; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if test "${ac_cv_path_VALAC+set}" = set; then :
11841   $as_echo_n "(cached) " >&6
11842 else
11843   case $VALAC in
11844   [\\/]* | ?:[\\/]*)
11845   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
11846   ;;
11847   *)
11848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11850 do
11851   IFS=$as_save_IFS
11852   test -z "$as_dir" && as_dir=.
11853     for ac_exec_ext in '' $ac_executable_extensions; do
11854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11855     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
11856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857     break 2
11858   fi
11859 done
11860   done
11861 IFS=$as_save_IFS
11862
11863   ;;
11864 esac
11865 fi
11866 VALAC=$ac_cv_path_VALAC
11867 if test -n "$VALAC"; then
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
11869 $as_echo "$VALAC" >&6; }
11870 else
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 fi
11874
11875
11876  if test -z "$VALAC"; then :
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
11878 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
11879 else
11880   if test -n "0.9"; then :
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
11882 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
11883        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
11884        as_arg_v1=0.9
11885 as_arg_v2="$am__vala_version"
11886 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11887 case $? in #(
11888   1) :
11889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11890 $as_echo "yes" >&6; } ;; #(
11891   0) :
11892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; } ;; #(
11894   2) :
11895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5  ;; #(
11898   *) :
11899      ;;
11900 esac
11901 fi
11902 fi
11903
11904
11905 # Platform checks
11906
11907
11908 case "$host" in
11909   *-*-mingw*)
11910     win32=yes
11911     macos=no
11912     linux=no
11913     SERVER_IPC_MODULE="msrpc-glib2-1.0"
11914     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
11915
11916 pkg_failed=no
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
11918 $as_echo_n "checking for GTK... " >&6; }
11919
11920 if test -n "$GTK_CFLAGS"; then
11921     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
11922  elif test -n "$PKG_CONFIG"; then
11923     if test -n "$PKG_CONFIG" && \
11924     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
11925   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
11926   ac_status=$?
11927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928   test $ac_status = 0; }; then
11929   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
11930                       test "x$?" != "x0" && pkg_failed=yes
11931 else
11932   pkg_failed=yes
11933 fi
11934  else
11935     pkg_failed=untried
11936 fi
11937 if test -n "$GTK_LIBS"; then
11938     pkg_cv_GTK_LIBS="$GTK_LIBS"
11939  elif test -n "$PKG_CONFIG"; then
11940     if test -n "$PKG_CONFIG" && \
11941     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
11942   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
11943   ac_status=$?
11944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945   test $ac_status = 0; }; then
11946   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
11947                       test "x$?" != "x0" && pkg_failed=yes
11948 else
11949   pkg_failed=yes
11950 fi
11951  else
11952     pkg_failed=untried
11953 fi
11954
11955
11956
11957 if test $pkg_failed = yes; then
11958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960
11961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11962         _pkg_short_errors_supported=yes
11963 else
11964         _pkg_short_errors_supported=no
11965 fi
11966         if test $_pkg_short_errors_supported = yes; then
11967                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
11968         else
11969                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
11970         fi
11971         # Put the nasty error message in config.log where it belongs
11972         echo "$GTK_PKG_ERRORS" >&5
11973
11974         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
11975
11976 $GTK_PKG_ERRORS
11977
11978 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11979 installed software in a non-standard prefix.
11980
11981 Alternatively, you may set the environment variables GTK_CFLAGS
11982 and GTK_LIBS to avoid the need to call pkg-config.
11983 See the pkg-config man page for more details." "$LINENO" 5
11984 elif test $pkg_failed = untried; then
11985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11989 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11990 is in your PATH or set the PKG_CONFIG environment variable to the full
11991 path to pkg-config.
11992
11993 Alternatively, you may set the environment variables GTK_CFLAGS
11994 and GTK_LIBS to avoid the need to call pkg-config.
11995 See the pkg-config man page for more details.
11996
11997 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11998 See \`config.log' for more details" "$LINENO" 5 ; }
11999 else
12000         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12001         GTK_LIBS=$pkg_cv_GTK_LIBS
12002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12003 $as_echo "yes" >&6; }
12004         GTK_VERSION="gtk+-2.0"
12005
12006 fi
12007     ;;
12008
12009   *darwin*)
12010     win32=no
12011     macos=yes
12012     linux=no
12013
12014     # We require dbus-glib for the client library even if we are using GDBus
12015     # in the server. The reason we can't always use dbus-glib in the server is
12016     # because Vala drops support for it, but as it ships with DBus there is very
12017     # little danger of it being dropped by distros any time soon.
12018     CLIENT_IPC_MODULE="dbus-glib-1"
12019
12020 pkg_failed=no
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
12022 $as_echo_n "checking for GDBUS... " >&6; }
12023
12024 if test -n "$GDBUS_CFLAGS"; then
12025     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
12026  elif test -n "$PKG_CONFIG"; then
12027     if test -n "$PKG_CONFIG" && \
12028     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12029   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12030   ac_status=$?
12031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032   test $ac_status = 0; }; then
12033   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12034                       test "x$?" != "x0" && pkg_failed=yes
12035 else
12036   pkg_failed=yes
12037 fi
12038  else
12039     pkg_failed=untried
12040 fi
12041 if test -n "$GDBUS_LIBS"; then
12042     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
12043  elif test -n "$PKG_CONFIG"; then
12044     if test -n "$PKG_CONFIG" && \
12045     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12046   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12047   ac_status=$?
12048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049   test $ac_status = 0; }; then
12050   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12051                       test "x$?" != "x0" && pkg_failed=yes
12052 else
12053   pkg_failed=yes
12054 fi
12055  else
12056     pkg_failed=untried
12057 fi
12058
12059
12060
12061 if test $pkg_failed = yes; then
12062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12064
12065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12066         _pkg_short_errors_supported=yes
12067 else
12068         _pkg_short_errors_supported=no
12069 fi
12070         if test $_pkg_short_errors_supported = yes; then
12071                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12072         else
12073                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12074         fi
12075         # Put the nasty error message in config.log where it belongs
12076         echo "$GDBUS_PKG_ERRORS" >&5
12077
12078         SERVER_IPC_MODULE="dbus-glib-1"
12079
12080 elif test $pkg_failed = untried; then
12081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083         SERVER_IPC_MODULE="dbus-glib-1"
12084
12085 else
12086         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
12087         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
12088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; }
12090         SERVER_IPC_MODULE="gio-2.0"
12091 fi
12092
12093
12094 pkg_failed=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
12096 $as_echo_n "checking for MAC... " >&6; }
12097
12098 if test -n "$MAC_CFLAGS"; then
12099     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
12100  elif test -n "$PKG_CONFIG"; then
12101     if test -n "$PKG_CONFIG" && \
12102     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12103         \""; } >&5
12104   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12105         ") 2>&5
12106   ac_status=$?
12107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108   test $ac_status = 0; }; then
12109   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
12110         " 2>/dev/null`
12111                       test "x$?" != "x0" && pkg_failed=yes
12112 else
12113   pkg_failed=yes
12114 fi
12115  else
12116     pkg_failed=untried
12117 fi
12118 if test -n "$MAC_LIBS"; then
12119     pkg_cv_MAC_LIBS="$MAC_LIBS"
12120  elif test -n "$PKG_CONFIG"; then
12121     if test -n "$PKG_CONFIG" && \
12122     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12123         \""; } >&5
12124   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12125         ") 2>&5
12126   ac_status=$?
12127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12128   test $ac_status = 0; }; then
12129   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
12130         " 2>/dev/null`
12131                       test "x$?" != "x0" && pkg_failed=yes
12132 else
12133   pkg_failed=yes
12134 fi
12135  else
12136     pkg_failed=untried
12137 fi
12138
12139
12140
12141 if test $pkg_failed = yes; then
12142         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144
12145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12146         _pkg_short_errors_supported=yes
12147 else
12148         _pkg_short_errors_supported=no
12149 fi
12150         if test $_pkg_short_errors_supported = yes; then
12151                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12152         " 2>&1`
12153         else
12154                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12155         " 2>&1`
12156         fi
12157         # Put the nasty error message in config.log where it belongs
12158         echo "$MAC_PKG_ERRORS" >&5
12159
12160         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
12161         ) were not met:
12162
12163 $MAC_PKG_ERRORS
12164
12165 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12166 installed software in a non-standard prefix.
12167
12168 Alternatively, you may set the environment variables MAC_CFLAGS
12169 and MAC_LIBS to avoid the need to call pkg-config.
12170 See the pkg-config man page for more details." "$LINENO" 5
12171 elif test $pkg_failed = untried; then
12172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12174         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12176 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12177 is in your PATH or set the PKG_CONFIG environment variable to the full
12178 path to pkg-config.
12179
12180 Alternatively, you may set the environment variables MAC_CFLAGS
12181 and MAC_LIBS to avoid the need to call pkg-config.
12182 See the pkg-config man page for more details.
12183
12184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12185 See \`config.log' for more details" "$LINENO" 5 ; }
12186 else
12187         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
12188         MAC_LIBS=$pkg_cv_MAC_LIBS
12189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12190 $as_echo "yes" >&6; }
12191
12192 fi
12193
12194 # TODO: Move to GTK+-3
12195 #            [gtk+-3.0 >= 2.0],
12196 #            [GTK_VERSION="gtk+-3.0"]
12197
12198 pkg_failed=no
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12200 $as_echo_n "checking for GTK... " >&6; }
12201
12202 if test -n "$GTK_CFLAGS"; then
12203     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12204  elif test -n "$PKG_CONFIG"; then
12205     if test -n "$PKG_CONFIG" && \
12206     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12207   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12208   ac_status=$?
12209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210   test $ac_status = 0; }; then
12211   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12212                       test "x$?" != "x0" && pkg_failed=yes
12213 else
12214   pkg_failed=yes
12215 fi
12216  else
12217     pkg_failed=untried
12218 fi
12219 if test -n "$GTK_LIBS"; then
12220     pkg_cv_GTK_LIBS="$GTK_LIBS"
12221  elif test -n "$PKG_CONFIG"; then
12222     if test -n "$PKG_CONFIG" && \
12223     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12224   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12225   ac_status=$?
12226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12227   test $ac_status = 0; }; then
12228   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12229                       test "x$?" != "x0" && pkg_failed=yes
12230 else
12231   pkg_failed=yes
12232 fi
12233  else
12234     pkg_failed=untried
12235 fi
12236
12237
12238
12239 if test $pkg_failed = yes; then
12240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12242
12243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12244         _pkg_short_errors_supported=yes
12245 else
12246         _pkg_short_errors_supported=no
12247 fi
12248         if test $_pkg_short_errors_supported = yes; then
12249                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12250         else
12251                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12252         fi
12253         # Put the nasty error message in config.log where it belongs
12254         echo "$GTK_PKG_ERRORS" >&5
12255
12256         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12257
12258 $GTK_PKG_ERRORS
12259
12260 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12261 installed software in a non-standard prefix.
12262
12263 Alternatively, you may set the environment variables GTK_CFLAGS
12264 and GTK_LIBS to avoid the need to call pkg-config.
12265 See the pkg-config man page for more details." "$LINENO" 5
12266 elif test $pkg_failed = untried; then
12267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12271 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12272 is in your PATH or set the PKG_CONFIG environment variable to the full
12273 path to pkg-config.
12274
12275 Alternatively, you may set the environment variables GTK_CFLAGS
12276 and GTK_LIBS to avoid the need to call pkg-config.
12277 See the pkg-config man page for more details.
12278
12279 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12280 See \`config.log' for more details" "$LINENO" 5 ; }
12281 else
12282         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12283         GTK_LIBS=$pkg_cv_GTK_LIBS
12284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286         GTK_VERSION="gtk+-2.0"
12287
12288 fi
12289
12290     ;;
12291   *)
12292     macos=no
12293     win32=no
12294     linux=yes
12295
12296     # We require dbus-glib for the client library even if we are using GDBus
12297     # in the server. The reason we can't always use dbus-glib in the server is
12298     # because Vala drops support for it, but as it ships with DBus there is very
12299     # little danger of it being dropped by distros any time soon.
12300     CLIENT_IPC_MODULE="dbus-glib-1"
12301
12302 pkg_failed=no
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
12304 $as_echo_n "checking for GDBUS... " >&6; }
12305
12306 if test -n "$GDBUS_CFLAGS"; then
12307     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
12308  elif test -n "$PKG_CONFIG"; then
12309     if test -n "$PKG_CONFIG" && \
12310     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12311   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12312   ac_status=$?
12313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12314   test $ac_status = 0; }; then
12315   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12316                       test "x$?" != "x0" && pkg_failed=yes
12317 else
12318   pkg_failed=yes
12319 fi
12320  else
12321     pkg_failed=untried
12322 fi
12323 if test -n "$GDBUS_LIBS"; then
12324     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
12325  elif test -n "$PKG_CONFIG"; then
12326     if test -n "$PKG_CONFIG" && \
12327     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12328   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12329   ac_status=$?
12330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12331   test $ac_status = 0; }; then
12332   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12333                       test "x$?" != "x0" && pkg_failed=yes
12334 else
12335   pkg_failed=yes
12336 fi
12337  else
12338     pkg_failed=untried
12339 fi
12340
12341
12342
12343 if test $pkg_failed = yes; then
12344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346
12347 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12348         _pkg_short_errors_supported=yes
12349 else
12350         _pkg_short_errors_supported=no
12351 fi
12352         if test $_pkg_short_errors_supported = yes; then
12353                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12354         else
12355                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12356         fi
12357         # Put the nasty error message in config.log where it belongs
12358         echo "$GDBUS_PKG_ERRORS" >&5
12359
12360         SERVER_IPC_MODULE="dbus-glib-1"
12361
12362 elif test $pkg_failed = untried; then
12363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12365         SERVER_IPC_MODULE="dbus-glib-1"
12366
12367 else
12368         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
12369         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
12370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12372         SERVER_IPC_MODULE="gio-2.0"
12373 fi
12374 # TODO: Move to GTK+-3
12375 #            [gtk+-3.0 >= 2.0],
12376 #            [GTK_VERSION="gtk+-3.0"]
12377
12378 pkg_failed=no
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12380 $as_echo_n "checking for GTK... " >&6; }
12381
12382 if test -n "$GTK_CFLAGS"; then
12383     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12384  elif test -n "$PKG_CONFIG"; then
12385     if test -n "$PKG_CONFIG" && \
12386     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12387   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12388   ac_status=$?
12389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12390   test $ac_status = 0; }; then
12391   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12392                       test "x$?" != "x0" && pkg_failed=yes
12393 else
12394   pkg_failed=yes
12395 fi
12396  else
12397     pkg_failed=untried
12398 fi
12399 if test -n "$GTK_LIBS"; then
12400     pkg_cv_GTK_LIBS="$GTK_LIBS"
12401  elif test -n "$PKG_CONFIG"; then
12402     if test -n "$PKG_CONFIG" && \
12403     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12404   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12405   ac_status=$?
12406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407   test $ac_status = 0; }; then
12408   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12409                       test "x$?" != "x0" && pkg_failed=yes
12410 else
12411   pkg_failed=yes
12412 fi
12413  else
12414     pkg_failed=untried
12415 fi
12416
12417
12418
12419 if test $pkg_failed = yes; then
12420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12422
12423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12424         _pkg_short_errors_supported=yes
12425 else
12426         _pkg_short_errors_supported=no
12427 fi
12428         if test $_pkg_short_errors_supported = yes; then
12429                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12430         else
12431                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12432         fi
12433         # Put the nasty error message in config.log where it belongs
12434         echo "$GTK_PKG_ERRORS" >&5
12435
12436         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12437
12438 $GTK_PKG_ERRORS
12439
12440 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12441 installed software in a non-standard prefix.
12442
12443 Alternatively, you may set the environment variables GTK_CFLAGS
12444 and GTK_LIBS to avoid the need to call pkg-config.
12445 See the pkg-config man page for more details." "$LINENO" 5
12446 elif test $pkg_failed = untried; then
12447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12451 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12452 is in your PATH or set the PKG_CONFIG environment variable to the full
12453 path to pkg-config.
12454
12455 Alternatively, you may set the environment variables GTK_CFLAGS
12456 and GTK_LIBS to avoid the need to call pkg-config.
12457 See the pkg-config man page for more details.
12458
12459 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12460 See \`config.log' for more details" "$LINENO" 5 ; }
12461 else
12462         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12463         GTK_LIBS=$pkg_cv_GTK_LIBS
12464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466         GTK_VERSION="gtk+-2.0"
12467
12468 fi
12469
12470     ;;
12471 esac
12472
12473  if test "$linux" = "yes"; then
12474   OS_LINUX_TRUE=
12475   OS_LINUX_FALSE='#'
12476 else
12477   OS_LINUX_TRUE='#'
12478   OS_LINUX_FALSE=
12479 fi
12480
12481  if test "$win32" = "yes"; then
12482   OS_WIN32_TRUE=
12483   OS_WIN32_FALSE='#'
12484 else
12485   OS_WIN32_TRUE='#'
12486   OS_WIN32_FALSE=
12487 fi
12488
12489  if test "$macos" = "yes"; then
12490   OS_MACOS_TRUE=
12491   OS_MACOS_FALSE='#'
12492 else
12493   OS_MACOS_TRUE='#'
12494   OS_MACOS_FALSE=
12495 fi
12496
12497
12498  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
12499   IPC_MSRPC_TRUE=
12500   IPC_MSRPC_FALSE='#'
12501 else
12502   IPC_MSRPC_TRUE='#'
12503   IPC_MSRPC_FALSE=
12504 fi
12505
12506  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
12507   IPC_DBUS_TRUE=
12508   IPC_DBUS_FALSE='#'
12509 else
12510   IPC_DBUS_TRUE='#'
12511   IPC_DBUS_FALSE=
12512 fi
12513
12514  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
12515   IPC_DBUS_GLIB_TRUE=
12516   IPC_DBUS_GLIB_FALSE='#'
12517 else
12518   IPC_DBUS_GLIB_TRUE='#'
12519   IPC_DBUS_GLIB_FALSE=
12520 fi
12521
12522  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
12523   IPC_GDBUS_TRUE=
12524   IPC_GDBUS_FALSE='#'
12525 else
12526   IPC_GDBUS_TRUE='#'
12527   IPC_GDBUS_FALSE=
12528 fi
12529
12530
12531 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
12533 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
12534   vala_version=`$VALAC --version | sed 's/Vala  *//'`
12535   as_arg_v1=0.12.1
12536 as_arg_v2="$vala_version"
12537 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12538 case $? in #(
12539   1) :
12540     vala_supports_dbus_glib="no" ;; #(
12541   0) :
12542     vala_supports_dbus_glib="no" ;; #(
12543   2) :
12544     vala_supports_dbus_glib="yes" ;; #(
12545   *) :
12546      ;;
12547 esac
12548
12549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
12550 $as_echo "$vala_supports_dbus_glib" >&6; }
12551   if test "$vala_supports_dbus_glib" = "no"; then
12552     as_fn_error $? "
12553 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
12554 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
12555   fi
12556 fi
12557
12558 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
12559   # MS RPC utilities
12560
12561   pkg_config_args="msrpc-mingw-1.0"
12562
12563
12564
12565
12566
12567
12568
12569
12570 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12571         if test -n "$ac_tool_prefix"; then
12572   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12573 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12577   $as_echo_n "(cached) " >&6
12578 else
12579   case $PKG_CONFIG in
12580   [\\/]* | ?:[\\/]*)
12581   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12582   ;;
12583   *)
12584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12586 do
12587   IFS=$as_save_IFS
12588   test -z "$as_dir" && as_dir=.
12589     for ac_exec_ext in '' $ac_executable_extensions; do
12590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593     break 2
12594   fi
12595 done
12596   done
12597 IFS=$as_save_IFS
12598
12599   ;;
12600 esac
12601 fi
12602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12603 if test -n "$PKG_CONFIG"; then
12604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12605 $as_echo "$PKG_CONFIG" >&6; }
12606 else
12607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612 fi
12613 if test -z "$ac_cv_path_PKG_CONFIG"; then
12614   ac_pt_PKG_CONFIG=$PKG_CONFIG
12615   # Extract the first word of "pkg-config", so it can be a program name with args.
12616 set dummy pkg-config; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618 $as_echo_n "checking for $ac_word... " >&6; }
12619 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   case $ac_pt_PKG_CONFIG in
12623   [\\/]* | ?:[\\/]*)
12624   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12625   ;;
12626   *)
12627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12629 do
12630   IFS=$as_save_IFS
12631   test -z "$as_dir" && as_dir=.
12632     for ac_exec_ext in '' $ac_executable_extensions; do
12633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12634     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636     break 2
12637   fi
12638 done
12639   done
12640 IFS=$as_save_IFS
12641
12642   ;;
12643 esac
12644 fi
12645 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12646 if test -n "$ac_pt_PKG_CONFIG"; then
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12648 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12649 else
12650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 fi
12653
12654   if test "x$ac_pt_PKG_CONFIG" = x; then
12655     PKG_CONFIG=""
12656   else
12657     case $cross_compiling:$ac_tool_warned in
12658 yes:)
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12661 ac_tool_warned=yes ;;
12662 esac
12663     PKG_CONFIG=$ac_pt_PKG_CONFIG
12664   fi
12665 else
12666   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12667 fi
12668
12669 fi
12670 if test -n "$PKG_CONFIG"; then
12671         _pkg_min_version=0.16
12672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12673 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12674         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12675                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12676 $as_echo "yes" >&6; }
12677         else
12678                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680                 PKG_CONFIG=""
12681         fi
12682 fi
12683
12684   no_msrpc=""
12685
12686   if test "x$PKG_CONFIG" = x ; then
12687     no_msrpc=yes
12688     PKG_CONFIG=no
12689   fi
12690
12691   min_msrpc_mingw_version=0.1.0
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
12693 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
12694
12695   if test x$PKG_CONFIG != xno ; then
12696     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12697       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
12698     fi
12699
12700     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
12701       :
12702     else
12703       no_msrpc=yes
12704     fi
12705   fi
12706
12707   if test x"$no_msrpc" = x ; then
12708     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
12709     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
12710     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
12711   fi
12712
12713   if test "x$no_msrpc" = x ; then
12714      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12716      :
12717   else
12718      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720      if test "$PKG_CONFIG" = "no" ; then
12721        echo "*** A new enough version of pkg-config was not found."
12722        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
12723      else
12724        echo "not found"
12725      fi
12726      MSRPC_CFLAGS=""
12727      MSRPC_LIBS=""
12728      MIDL_WRAPPER=""
12729      as_fn_error $? "
12730 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
12731   fi
12732
12733
12734
12735
12736
12737   # Extract the first word of "midl", so it can be a program name with args.
12738 set dummy midl; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if test "${ac_cv_path_MIDL+set}" = set; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   case $MIDL in
12745   [\\/]* | ?:[\\/]*)
12746   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
12747   ;;
12748   *)
12749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
12751 do
12752   IFS=$as_save_IFS
12753   test -z "$as_dir" && as_dir=.
12754     for ac_exec_ext in '' $ac_executable_extensions; do
12755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12756     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
12757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758     break 2
12759   fi
12760 done
12761   done
12762 IFS=$as_save_IFS
12763
12764   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
12765   ;;
12766 esac
12767 fi
12768 MIDL=$ac_cv_path_MIDL
12769 if test -n "$MIDL"; then
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
12771 $as_echo "$MIDL" >&6; }
12772 else
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12775 fi
12776
12777
12778   if test "$MIDL" = "no"; then
12779      as_fn_error $? "
12780 *** Could not find the Microsoft interface compiler MIDL.EXE.
12781 *** This program is available as part of the MS Windows SDK, in
12782 *** the Win32 Development Tools package. If it is not in the PATH
12783 *** or its default location you may set the 'MIDL' environment
12784 *** variable to point to its location and rerun configure." "$LINENO" 5
12785   fi
12786 fi
12787
12788 if test "$win32" = "yes"; then
12789   # Other Windows-specific tools
12790
12791   # LIB.EXE from MSVC to build an MSVC-compatible import library.
12792   # Extract the first word of "lib", so it can be a program name with args.
12793 set dummy lib; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if test "${ac_cv_path_MSVC_LIB+set}" = set; then :
12797   $as_echo_n "(cached) " >&6
12798 else
12799   case $MSVC_LIB in
12800   [\\/]* | ?:[\\/]*)
12801   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
12802   ;;
12803   *)
12804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 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
12806 do
12807   IFS=$as_save_IFS
12808   test -z "$as_dir" && as_dir=.
12809     for ac_exec_ext in '' $ac_executable_extensions; do
12810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
12812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813     break 2
12814   fi
12815 done
12816   done
12817 IFS=$as_save_IFS
12818
12819   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
12820   ;;
12821 esac
12822 fi
12823 MSVC_LIB=$ac_cv_path_MSVC_LIB
12824 if test -n "$MSVC_LIB"; then
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
12826 $as_echo "$MSVC_LIB" >&6; }
12827 else
12828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831
12832
12833
12834   if test "$MSVC_LIB" = "no"; then
12835      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12836 *** Could not find the Microsoft 'LIB.EXE' program. This is required
12837 *** to build the Visual C import library for libmoonshot. Use the
12838 *** MSVC_LIB environment variable to pass its location if this is
12839 *** outside the PATH." >&5
12840 $as_echo "$as_me: WARNING:
12841 *** Could not find the Microsoft 'LIB.EXE' program. This is required
12842 *** to build the Visual C import library for libmoonshot. Use the
12843 *** MSVC_LIB environment variable to pass its location if this is
12844 *** outside the PATH." >&2;}
12845   fi
12846
12847
12848   # ImageMagick for the 'make icons' target. Note that
12849   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
12850   # Extract the first word of "convert", so it can be a program name with args.
12851 set dummy convert; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if test "${ac_cv_path_IMAGEMAGICK_CONVERT+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   case $IMAGEMAGICK_CONVERT in
12858   [\\/]* | ?:[\\/]*)
12859   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
12860   ;;
12861   *)
12862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
12864 do
12865   IFS=$as_save_IFS
12866   test -z "$as_dir" && as_dir=.
12867     for ac_exec_ext in '' $ac_executable_extensions; do
12868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12869     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
12870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871     break 2
12872   fi
12873 done
12874   done
12875 IFS=$as_save_IFS
12876
12877   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
12878   ;;
12879 esac
12880 fi
12881 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
12882 if test -n "$IMAGEMAGICK_CONVERT"; then
12883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
12884 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
12885 else
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12888 fi
12889
12890
12891
12892   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
12893      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12894 *** Could not find ImageMagick convert.exe. This is required for the
12895 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
12896 *** variable to pass its location if this is outside the PATH." >&5
12897 $as_echo "$as_me: WARNING:
12898 *** Could not find ImageMagick convert.exe. This is required for the
12899 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
12900 *** variable to pass its location if this is outside the PATH." >&2;}
12901   fi
12902
12903
12904   # Windows Installer XML tools
12905   # Extract the first word of "candle", so it can be a program name with args.
12906 set dummy candle; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if test "${ac_cv_path_WIX_CANDLE+set}" = set; then :
12910   $as_echo_n "(cached) " >&6
12911 else
12912   case $WIX_CANDLE in
12913   [\\/]* | ?:[\\/]*)
12914   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
12915   ;;
12916   *)
12917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 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
12919 do
12920   IFS=$as_save_IFS
12921   test -z "$as_dir" && as_dir=.
12922     for ac_exec_ext in '' $ac_executable_extensions; do
12923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12924     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
12925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926     break 2
12927   fi
12928 done
12929   done
12930 IFS=$as_save_IFS
12931
12932   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
12933   ;;
12934 esac
12935 fi
12936 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
12937 if test -n "$WIX_CANDLE"; then
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
12939 $as_echo "$WIX_CANDLE" >&6; }
12940 else
12941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 fi
12944
12945
12946   # Extract the first word of "light", so it can be a program name with args.
12947 set dummy light; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_path_WIX_LIGHT+set}" = set; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   case $WIX_LIGHT in
12954   [\\/]* | ?:[\\/]*)
12955   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
12956   ;;
12957   *)
12958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 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
12960 do
12961   IFS=$as_save_IFS
12962   test -z "$as_dir" && as_dir=.
12963     for ac_exec_ext in '' $ac_executable_extensions; do
12964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12965     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
12966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967     break 2
12968   fi
12969 done
12970   done
12971 IFS=$as_save_IFS
12972
12973   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
12974   ;;
12975 esac
12976 fi
12977 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
12978 if test -n "$WIX_LIGHT"; then
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
12980 $as_echo "$WIX_LIGHT" >&6; }
12981 else
12982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984 fi
12985
12986
12987
12988   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
12989      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12990 *** Could not find the Windows Installer XML tools. These are required
12991 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
12992 *** environment variables to pass their locations if they are outside
12993 *** the PATH." >&5
12994 $as_echo "$as_me: WARNING:
12995 *** Could not find the Windows Installer XML tools. These are required
12996 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
12997 *** environment variables to pass their locations if they are outside
12998 *** the PATH." >&2;}
12999   fi
13000 fi
13001
13002 if test "$linux" = "yes"; then
13003   # Extract the first word of "update-mime-database", so it can be a program name with args.
13004 set dummy update-mime-database; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
13008   $as_echo_n "(cached) " >&6
13009 else
13010   case $UPDATE_MIME_DATABASE in
13011   [\\/]* | ?:[\\/]*)
13012   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13013   ;;
13014   *)
13015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018   IFS=$as_save_IFS
13019   test -z "$as_dir" && as_dir=.
13020     for ac_exec_ext in '' $ac_executable_extensions; do
13021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024     break 2
13025   fi
13026 done
13027   done
13028 IFS=$as_save_IFS
13029
13030   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
13031   ;;
13032 esac
13033 fi
13034 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
13035 if test -n "$UPDATE_MIME_DATABASE"; then
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
13037 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
13038 else
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13041 fi
13042
13043
13044   if test "$UPDATE_MIME_DATABASE" = "no"; then
13045     as_fn_error $? "
13046 *** Could not find the Freedesktop.org  mime database update tool.
13047 *** Web provisioning files could not be automatically installed." "$LINENO" 5
13048   fi
13049   # Extract the first word of "update-desktop-database", so it can be a program name with args.
13050 set dummy update-desktop-database; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if test "${ac_cv_path_UPDATE_DESKTOP_DATABASE+set}" = set; then :
13054   $as_echo_n "(cached) " >&6
13055 else
13056   case $UPDATE_DESKTOP_DATABASE in
13057   [\\/]* | ?:[\\/]*)
13058   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
13059   ;;
13060   *)
13061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13063 do
13064   IFS=$as_save_IFS
13065   test -z "$as_dir" && as_dir=.
13066     for ac_exec_ext in '' $ac_executable_extensions; do
13067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070     break 2
13071   fi
13072 done
13073   done
13074 IFS=$as_save_IFS
13075
13076   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
13077   ;;
13078 esac
13079 fi
13080 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
13081 if test -n "$UPDATE_DESKTOP_DATABASE"; then
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
13083 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
13084 else
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087 fi
13088
13089
13090   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
13091     as_fn_error $? "
13092 *** Could not find the Freedesktop.org desktop entry database update
13093 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
13094   fi
13095 fi
13096
13097 MOONSHOT_APP="$bindir/moonshot"
13098 MOONSHOT_WEBP="$bindir/moonshot-webp"
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110 # Dependencies
13111
13112 pkg_failed=no
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
13114 $as_echo_n "checking for moonshot... " >&6; }
13115
13116 if test -n "$moonshot_CFLAGS"; then
13117     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
13118  elif test -n "$PKG_CONFIG"; then
13119     if test -n "$PKG_CONFIG" && \
13120     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13121         atk >= 1.20
13122         glib-2.0 >= 2.22
13123         gobject-2.0 >= 2.22
13124         \$GTK_VERSION
13125         gee-1.0 >= 0.5
13126         \$SERVER_IPC_MODULE
13127                 \$MAC
13128 \""; } >&5
13129   ($PKG_CONFIG --exists --print-errors "
13130         atk >= 1.20
13131         glib-2.0 >= 2.22
13132         gobject-2.0 >= 2.22
13133         $GTK_VERSION
13134         gee-1.0 >= 0.5
13135         $SERVER_IPC_MODULE
13136                 $MAC
13137 ") 2>&5
13138   ac_status=$?
13139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140   test $ac_status = 0; }; then
13141   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
13142         atk >= 1.20
13143         glib-2.0 >= 2.22
13144         gobject-2.0 >= 2.22
13145         $GTK_VERSION
13146         gee-1.0 >= 0.5
13147         $SERVER_IPC_MODULE
13148                 $MAC
13149 " 2>/dev/null`
13150                       test "x$?" != "x0" && pkg_failed=yes
13151 else
13152   pkg_failed=yes
13153 fi
13154  else
13155     pkg_failed=untried
13156 fi
13157 if test -n "$moonshot_LIBS"; then
13158     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
13159  elif test -n "$PKG_CONFIG"; then
13160     if test -n "$PKG_CONFIG" && \
13161     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13162         atk >= 1.20
13163         glib-2.0 >= 2.22
13164         gobject-2.0 >= 2.22
13165         \$GTK_VERSION
13166         gee-1.0 >= 0.5
13167         \$SERVER_IPC_MODULE
13168                 \$MAC
13169 \""; } >&5
13170   ($PKG_CONFIG --exists --print-errors "
13171         atk >= 1.20
13172         glib-2.0 >= 2.22
13173         gobject-2.0 >= 2.22
13174         $GTK_VERSION
13175         gee-1.0 >= 0.5
13176         $SERVER_IPC_MODULE
13177                 $MAC
13178 ") 2>&5
13179   ac_status=$?
13180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13181   test $ac_status = 0; }; then
13182   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
13183         atk >= 1.20
13184         glib-2.0 >= 2.22
13185         gobject-2.0 >= 2.22
13186         $GTK_VERSION
13187         gee-1.0 >= 0.5
13188         $SERVER_IPC_MODULE
13189                 $MAC
13190 " 2>/dev/null`
13191                       test "x$?" != "x0" && pkg_failed=yes
13192 else
13193   pkg_failed=yes
13194 fi
13195  else
13196     pkg_failed=untried
13197 fi
13198
13199
13200
13201 if test $pkg_failed = yes; then
13202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204
13205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13206         _pkg_short_errors_supported=yes
13207 else
13208         _pkg_short_errors_supported=no
13209 fi
13210         if test $_pkg_short_errors_supported = yes; then
13211                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13212         atk >= 1.20
13213         glib-2.0 >= 2.22
13214         gobject-2.0 >= 2.22
13215         $GTK_VERSION
13216         gee-1.0 >= 0.5
13217         $SERVER_IPC_MODULE
13218                 $MAC
13219 " 2>&1`
13220         else
13221                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13222         atk >= 1.20
13223         glib-2.0 >= 2.22
13224         gobject-2.0 >= 2.22
13225         $GTK_VERSION
13226         gee-1.0 >= 0.5
13227         $SERVER_IPC_MODULE
13228                 $MAC
13229 " 2>&1`
13230         fi
13231         # Put the nasty error message in config.log where it belongs
13232         echo "$moonshot_PKG_ERRORS" >&5
13233
13234         as_fn_error $? "Package requirements (
13235         atk >= 1.20
13236         glib-2.0 >= 2.22
13237         gobject-2.0 >= 2.22
13238         $GTK_VERSION
13239         gee-1.0 >= 0.5
13240         $SERVER_IPC_MODULE
13241                 $MAC
13242 ) were not met:
13243
13244 $moonshot_PKG_ERRORS
13245
13246 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13247 installed software in a non-standard prefix.
13248
13249 Alternatively, you may set the environment variables moonshot_CFLAGS
13250 and moonshot_LIBS to avoid the need to call pkg-config.
13251 See the pkg-config man page for more details." "$LINENO" 5
13252 elif test $pkg_failed = untried; then
13253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13257 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13258 is in your PATH or set the PKG_CONFIG environment variable to the full
13259 path to pkg-config.
13260
13261 Alternatively, you may set the environment variables moonshot_CFLAGS
13262 and moonshot_LIBS to avoid the need to call pkg-config.
13263 See the pkg-config man page for more details.
13264
13265 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13266 See \`config.log' for more details" "$LINENO" 5 ; }
13267 else
13268         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
13269         moonshot_LIBS=$pkg_cv_moonshot_LIBS
13270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13271 $as_echo "yes" >&6; }
13272
13273 fi
13274
13275
13276 pkg_failed=no
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
13278 $as_echo_n "checking for libmoonshot... " >&6; }
13279
13280 if test -n "$libmoonshot_CFLAGS"; then
13281     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
13282  elif test -n "$PKG_CONFIG"; then
13283     if test -n "$PKG_CONFIG" && \
13284     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13285         \$CLIENT_IPC_MODULE
13286 \""; } >&5
13287   ($PKG_CONFIG --exists --print-errors "
13288         $CLIENT_IPC_MODULE
13289 ") 2>&5
13290   ac_status=$?
13291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13292   test $ac_status = 0; }; then
13293   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
13294         $CLIENT_IPC_MODULE
13295 " 2>/dev/null`
13296                       test "x$?" != "x0" && pkg_failed=yes
13297 else
13298   pkg_failed=yes
13299 fi
13300  else
13301     pkg_failed=untried
13302 fi
13303 if test -n "$libmoonshot_LIBS"; then
13304     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
13305  elif test -n "$PKG_CONFIG"; then
13306     if test -n "$PKG_CONFIG" && \
13307     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13308         \$CLIENT_IPC_MODULE
13309 \""; } >&5
13310   ($PKG_CONFIG --exists --print-errors "
13311         $CLIENT_IPC_MODULE
13312 ") 2>&5
13313   ac_status=$?
13314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315   test $ac_status = 0; }; then
13316   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
13317         $CLIENT_IPC_MODULE
13318 " 2>/dev/null`
13319                       test "x$?" != "x0" && pkg_failed=yes
13320 else
13321   pkg_failed=yes
13322 fi
13323  else
13324     pkg_failed=untried
13325 fi
13326
13327
13328
13329 if test $pkg_failed = yes; then
13330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332
13333 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13334         _pkg_short_errors_supported=yes
13335 else
13336         _pkg_short_errors_supported=no
13337 fi
13338         if test $_pkg_short_errors_supported = yes; then
13339                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13340         $CLIENT_IPC_MODULE
13341 " 2>&1`
13342         else
13343                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13344         $CLIENT_IPC_MODULE
13345 " 2>&1`
13346         fi
13347         # Put the nasty error message in config.log where it belongs
13348         echo "$libmoonshot_PKG_ERRORS" >&5
13349
13350         as_fn_error $? "Package requirements (
13351         $CLIENT_IPC_MODULE
13352 ) were not met:
13353
13354 $libmoonshot_PKG_ERRORS
13355
13356 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13357 installed software in a non-standard prefix.
13358
13359 Alternatively, you may set the environment variables libmoonshot_CFLAGS
13360 and libmoonshot_LIBS to avoid the need to call pkg-config.
13361 See the pkg-config man page for more details." "$LINENO" 5
13362 elif test $pkg_failed = untried; then
13363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13365         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13367 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13368 is in your PATH or set the PKG_CONFIG environment variable to the full
13369 path to pkg-config.
13370
13371 Alternatively, you may set the environment variables libmoonshot_CFLAGS
13372 and libmoonshot_LIBS to avoid the need to call pkg-config.
13373 See the pkg-config man page for more details.
13374
13375 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13376 See \`config.log' for more details" "$LINENO" 5 ; }
13377 else
13378         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
13379         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
13380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13381 $as_echo "yes" >&6; }
13382
13383 fi
13384
13385 # i18n stuff
13386
13387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13388 $as_echo_n "checking whether NLS is requested... " >&6; }
13389     # Check whether --enable-nls was given.
13390 if test "${enable_nls+set}" = set; then :
13391   enableval=$enable_nls; USE_NLS=$enableval
13392 else
13393   USE_NLS=yes
13394 fi
13395
13396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13397 $as_echo "$USE_NLS" >&6; }
13398
13399
13400
13401
13402       GETTEXT_MACRO_VERSION=0.18
13403
13404
13405
13406
13407 # Prepare PATH_SEPARATOR.
13408 # The user is always right.
13409 if test "${PATH_SEPARATOR+set}" != set; then
13410   echo "#! /bin/sh" >conf$$.sh
13411   echo  "exit 0"   >>conf$$.sh
13412   chmod +x conf$$.sh
13413   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13414     PATH_SEPARATOR=';'
13415   else
13416     PATH_SEPARATOR=:
13417   fi
13418   rm -f conf$$.sh
13419 fi
13420
13421 # Find out how to test for executable files. Don't use a zero-byte file,
13422 # as systems may use methods other than mode bits to determine executability.
13423 cat >conf$$.file <<_ASEOF
13424 #! /bin/sh
13425 exit 0
13426 _ASEOF
13427 chmod +x conf$$.file
13428 if test -x conf$$.file >/dev/null 2>&1; then
13429   ac_executable_p="test -x"
13430 else
13431   ac_executable_p="test -f"
13432 fi
13433 rm -f conf$$.file
13434
13435 # Extract the first word of "msgfmt", so it can be a program name with args.
13436 set dummy msgfmt; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13440   $as_echo_n "(cached) " >&6
13441 else
13442   case "$MSGFMT" in
13443   [\\/]* | ?:[\\/]*)
13444     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13445     ;;
13446   *)
13447     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13448     for ac_dir in $PATH; do
13449       IFS="$ac_save_IFS"
13450       test -z "$ac_dir" && ac_dir=.
13451       for ac_exec_ext in '' $ac_executable_extensions; do
13452         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13453           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13454           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13455      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13456             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13457             break 2
13458           fi
13459         fi
13460       done
13461     done
13462     IFS="$ac_save_IFS"
13463   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13464     ;;
13465 esac
13466 fi
13467 MSGFMT="$ac_cv_path_MSGFMT"
13468 if test "$MSGFMT" != ":"; then
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13470 $as_echo "$MSGFMT" >&6; }
13471 else
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474 fi
13475
13476   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13477 set dummy gmsgfmt; ac_word=$2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13479 $as_echo_n "checking for $ac_word... " >&6; }
13480 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   case $GMSGFMT in
13484   [\\/]* | ?:[\\/]*)
13485   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13486   ;;
13487   *)
13488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13490 do
13491   IFS=$as_save_IFS
13492   test -z "$as_dir" && as_dir=.
13493     for ac_exec_ext in '' $ac_executable_extensions; do
13494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13495     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497     break 2
13498   fi
13499 done
13500   done
13501 IFS=$as_save_IFS
13502
13503   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13504   ;;
13505 esac
13506 fi
13507 GMSGFMT=$ac_cv_path_GMSGFMT
13508 if test -n "$GMSGFMT"; then
13509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13510 $as_echo "$GMSGFMT" >&6; }
13511 else
13512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13514 fi
13515
13516
13517
13518     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13519     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13520     *) MSGFMT_015=$MSGFMT ;;
13521   esac
13522
13523   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13524     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13525     *) GMSGFMT_015=$GMSGFMT ;;
13526   esac
13527
13528
13529
13530 # Prepare PATH_SEPARATOR.
13531 # The user is always right.
13532 if test "${PATH_SEPARATOR+set}" != set; then
13533   echo "#! /bin/sh" >conf$$.sh
13534   echo  "exit 0"   >>conf$$.sh
13535   chmod +x conf$$.sh
13536   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13537     PATH_SEPARATOR=';'
13538   else
13539     PATH_SEPARATOR=:
13540   fi
13541   rm -f conf$$.sh
13542 fi
13543
13544 # Find out how to test for executable files. Don't use a zero-byte file,
13545 # as systems may use methods other than mode bits to determine executability.
13546 cat >conf$$.file <<_ASEOF
13547 #! /bin/sh
13548 exit 0
13549 _ASEOF
13550 chmod +x conf$$.file
13551 if test -x conf$$.file >/dev/null 2>&1; then
13552   ac_executable_p="test -x"
13553 else
13554   ac_executable_p="test -f"
13555 fi
13556 rm -f conf$$.file
13557
13558 # Extract the first word of "xgettext", so it can be a program name with args.
13559 set dummy xgettext; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   case "$XGETTEXT" in
13566   [\\/]* | ?:[\\/]*)
13567     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13568     ;;
13569   *)
13570     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13571     for ac_dir in $PATH; do
13572       IFS="$ac_save_IFS"
13573       test -z "$ac_dir" && ac_dir=.
13574       for ac_exec_ext in '' $ac_executable_extensions; do
13575         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13576           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13577           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13578      (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
13579             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13580             break 2
13581           fi
13582         fi
13583       done
13584     done
13585     IFS="$ac_save_IFS"
13586   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13587     ;;
13588 esac
13589 fi
13590 XGETTEXT="$ac_cv_path_XGETTEXT"
13591 if test "$XGETTEXT" != ":"; then
13592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13593 $as_echo "$XGETTEXT" >&6; }
13594 else
13595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 fi
13598
13599     rm -f messages.po
13600
13601     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13602     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13603     *) XGETTEXT_015=$XGETTEXT ;;
13604   esac
13605
13606
13607
13608 # Prepare PATH_SEPARATOR.
13609 # The user is always right.
13610 if test "${PATH_SEPARATOR+set}" != set; then
13611   echo "#! /bin/sh" >conf$$.sh
13612   echo  "exit 0"   >>conf$$.sh
13613   chmod +x conf$$.sh
13614   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13615     PATH_SEPARATOR=';'
13616   else
13617     PATH_SEPARATOR=:
13618   fi
13619   rm -f conf$$.sh
13620 fi
13621
13622 # Find out how to test for executable files. Don't use a zero-byte file,
13623 # as systems may use methods other than mode bits to determine executability.
13624 cat >conf$$.file <<_ASEOF
13625 #! /bin/sh
13626 exit 0
13627 _ASEOF
13628 chmod +x conf$$.file
13629 if test -x conf$$.file >/dev/null 2>&1; then
13630   ac_executable_p="test -x"
13631 else
13632   ac_executable_p="test -f"
13633 fi
13634 rm -f conf$$.file
13635
13636 # Extract the first word of "msgmerge", so it can be a program name with args.
13637 set dummy msgmerge; ac_word=$2
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13641   $as_echo_n "(cached) " >&6
13642 else
13643   case "$MSGMERGE" in
13644   [\\/]* | ?:[\\/]*)
13645     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13646     ;;
13647   *)
13648     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13649     for ac_dir in $PATH; do
13650       IFS="$ac_save_IFS"
13651       test -z "$ac_dir" && ac_dir=.
13652       for ac_exec_ext in '' $ac_executable_extensions; do
13653         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13654           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13655           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13656             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13657             break 2
13658           fi
13659         fi
13660       done
13661     done
13662     IFS="$ac_save_IFS"
13663   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13664     ;;
13665 esac
13666 fi
13667 MSGMERGE="$ac_cv_path_MSGMERGE"
13668 if test "$MSGMERGE" != ":"; then
13669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13670 $as_echo "$MSGMERGE" >&6; }
13671 else
13672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673 $as_echo "no" >&6; }
13674 fi
13675
13676
13677         test -n "$localedir" || localedir='${datadir}/locale'
13678
13679
13680     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13681
13682
13683   ac_config_commands="$ac_config_commands po-directories"
13684
13685
13686
13687       if test "X$prefix" = "XNONE"; then
13688     acl_final_prefix="$ac_default_prefix"
13689   else
13690     acl_final_prefix="$prefix"
13691   fi
13692   if test "X$exec_prefix" = "XNONE"; then
13693     acl_final_exec_prefix='${prefix}'
13694   else
13695     acl_final_exec_prefix="$exec_prefix"
13696   fi
13697   acl_save_prefix="$prefix"
13698   prefix="$acl_final_prefix"
13699   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13700   prefix="$acl_save_prefix"
13701
13702
13703 # Check whether --with-gnu-ld was given.
13704 if test "${with_gnu_ld+set}" = set; then :
13705   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13706 else
13707   with_gnu_ld=no
13708 fi
13709
13710 # Prepare PATH_SEPARATOR.
13711 # The user is always right.
13712 if test "${PATH_SEPARATOR+set}" != set; then
13713   echo "#! /bin/sh" >conf$$.sh
13714   echo  "exit 0"   >>conf$$.sh
13715   chmod +x conf$$.sh
13716   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13717     PATH_SEPARATOR=';'
13718   else
13719     PATH_SEPARATOR=:
13720   fi
13721   rm -f conf$$.sh
13722 fi
13723 ac_prog=ld
13724 if test "$GCC" = yes; then
13725   # Check if gcc -print-prog-name=ld gives a path.
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13727 $as_echo_n "checking for ld used by GCC... " >&6; }
13728   case $host in
13729   *-*-mingw*)
13730     # gcc leaves a trailing carriage return which upsets mingw
13731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13732   *)
13733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13734   esac
13735   case $ac_prog in
13736     # Accept absolute paths.
13737     [\\/]* | [A-Za-z]:[\\/]*)
13738       re_direlt='/[^/][^/]*/\.\./'
13739       # Canonicalize the path of ld
13740       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13741       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13742         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13743       done
13744       test -z "$LD" && LD="$ac_prog"
13745       ;;
13746   "")
13747     # If it fails, then pretend we aren't using GCC.
13748     ac_prog=ld
13749     ;;
13750   *)
13751     # If it is relative, then search for the first ld in PATH.
13752     with_gnu_ld=unknown
13753     ;;
13754   esac
13755 elif test "$with_gnu_ld" = yes; then
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13757 $as_echo_n "checking for GNU ld... " >&6; }
13758 else
13759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13760 $as_echo_n "checking for non-GNU ld... " >&6; }
13761 fi
13762 if test "${acl_cv_path_LD+set}" = set; then :
13763   $as_echo_n "(cached) " >&6
13764 else
13765   if test -z "$LD"; then
13766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13767   for ac_dir in $PATH; do
13768     test -z "$ac_dir" && ac_dir=.
13769     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13770       acl_cv_path_LD="$ac_dir/$ac_prog"
13771       # Check to see if the program is GNU ld.  I'd rather use --version,
13772       # but apparently some GNU ld's only accept -v.
13773       # Break only if it was the GNU/non-GNU ld that we prefer.
13774       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13775       *GNU* | *'with BFD'*)
13776         test "$with_gnu_ld" != no && break ;;
13777       *)
13778         test "$with_gnu_ld" != yes && break ;;
13779       esac
13780     fi
13781   done
13782   IFS="$ac_save_ifs"
13783 else
13784   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13785 fi
13786 fi
13787
13788 LD="$acl_cv_path_LD"
13789 if test -n "$LD"; then
13790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13791 $as_echo "$LD" >&6; }
13792 else
13793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13795 fi
13796 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13798 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13799 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13803 case `$LD -v 2>&1 </dev/null` in
13804 *GNU* | *'with BFD'*)
13805   acl_cv_prog_gnu_ld=yes ;;
13806 *)
13807   acl_cv_prog_gnu_ld=no ;;
13808 esac
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13811 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13812 with_gnu_ld=$acl_cv_prog_gnu_ld
13813
13814
13815
13816
13817                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13818 $as_echo_n "checking for shared library run path origin... " >&6; }
13819 if test "${acl_cv_rpath+set}" = set; then :
13820   $as_echo_n "(cached) " >&6
13821 else
13822
13823     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13824     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13825     . ./conftest.sh
13826     rm -f ./conftest.sh
13827     acl_cv_rpath=done
13828
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13831 $as_echo "$acl_cv_rpath" >&6; }
13832   wl="$acl_cv_wl"
13833   acl_libext="$acl_cv_libext"
13834   acl_shlibext="$acl_cv_shlibext"
13835   acl_libname_spec="$acl_cv_libname_spec"
13836   acl_library_names_spec="$acl_cv_library_names_spec"
13837   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13838   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13839   acl_hardcode_direct="$acl_cv_hardcode_direct"
13840   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13841     # Check whether --enable-rpath was given.
13842 if test "${enable_rpath+set}" = set; then :
13843   enableval=$enable_rpath; :
13844 else
13845   enable_rpath=yes
13846 fi
13847
13848
13849
13850
13851   acl_libdirstem=lib
13852   acl_libdirstem2=
13853   case "$host_os" in
13854     solaris*)
13855                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13856 $as_echo_n "checking for 64-bit host... " >&6; }
13857 if test "${gl_cv_solaris_64bit+set}" = set; then :
13858   $as_echo_n "(cached) " >&6
13859 else
13860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h.  */
13862
13863 #ifdef _LP64
13864 sixtyfour bits
13865 #endif
13866
13867 _ACEOF
13868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13869   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13870   gl_cv_solaris_64bit=yes
13871 else
13872   gl_cv_solaris_64bit=no
13873 fi
13874 rm -f conftest*
13875
13876
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13879 $as_echo "$gl_cv_solaris_64bit" >&6; }
13880       if test $gl_cv_solaris_64bit = yes; then
13881         acl_libdirstem=lib/64
13882         case "$host_cpu" in
13883           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13884           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13885         esac
13886       fi
13887       ;;
13888     *)
13889       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13890       if test -n "$searchpath"; then
13891         acl_save_IFS="${IFS=    }"; IFS=":"
13892         for searchdir in $searchpath; do
13893           if test -d "$searchdir"; then
13894             case "$searchdir" in
13895               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13896               */../ | */.. )
13897                 # Better ignore directories of this form. They are misleading.
13898                 ;;
13899               *) searchdir=`cd "$searchdir" && pwd`
13900                  case "$searchdir" in
13901                    */lib64 ) acl_libdirstem=lib64 ;;
13902                  esac ;;
13903             esac
13904           fi
13905         done
13906         IFS="$acl_save_IFS"
13907       fi
13908       ;;
13909   esac
13910   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923     use_additional=yes
13924
13925   acl_save_prefix="$prefix"
13926   prefix="$acl_final_prefix"
13927   acl_save_exec_prefix="$exec_prefix"
13928   exec_prefix="$acl_final_exec_prefix"
13929
13930     eval additional_includedir=\"$includedir\"
13931     eval additional_libdir=\"$libdir\"
13932
13933   exec_prefix="$acl_save_exec_prefix"
13934   prefix="$acl_save_prefix"
13935
13936
13937 # Check whether --with-libiconv-prefix was given.
13938 if test "${with_libiconv_prefix+set}" = set; then :
13939   withval=$with_libiconv_prefix;
13940     if test "X$withval" = "Xno"; then
13941       use_additional=no
13942     else
13943       if test "X$withval" = "X"; then
13944
13945   acl_save_prefix="$prefix"
13946   prefix="$acl_final_prefix"
13947   acl_save_exec_prefix="$exec_prefix"
13948   exec_prefix="$acl_final_exec_prefix"
13949
13950           eval additional_includedir=\"$includedir\"
13951           eval additional_libdir=\"$libdir\"
13952
13953   exec_prefix="$acl_save_exec_prefix"
13954   prefix="$acl_save_prefix"
13955
13956       else
13957         additional_includedir="$withval/include"
13958         additional_libdir="$withval/$acl_libdirstem"
13959         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13960            && ! test -d "$withval/$acl_libdirstem"; then
13961           additional_libdir="$withval/$acl_libdirstem2"
13962         fi
13963       fi
13964     fi
13965
13966 fi
13967
13968       LIBICONV=
13969   LTLIBICONV=
13970   INCICONV=
13971   LIBICONV_PREFIX=
13972       HAVE_LIBICONV=
13973   rpathdirs=
13974   ltrpathdirs=
13975   names_already_handled=
13976   names_next_round='iconv '
13977   while test -n "$names_next_round"; do
13978     names_this_round="$names_next_round"
13979     names_next_round=
13980     for name in $names_this_round; do
13981       already_handled=
13982       for n in $names_already_handled; do
13983         if test "$n" = "$name"; then
13984           already_handled=yes
13985           break
13986         fi
13987       done
13988       if test -z "$already_handled"; then
13989         names_already_handled="$names_already_handled $name"
13990                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13991         eval value=\"\$HAVE_LIB$uppername\"
13992         if test -n "$value"; then
13993           if test "$value" = yes; then
13994             eval value=\"\$LIB$uppername\"
13995             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13996             eval value=\"\$LTLIB$uppername\"
13997             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13998           else
13999                                     :
14000           fi
14001         else
14002                               found_dir=
14003           found_la=
14004           found_so=
14005           found_a=
14006           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14007           if test -n "$acl_shlibext"; then
14008             shrext=".$acl_shlibext"             # typically: shrext=.so
14009           else
14010             shrext=
14011           fi
14012           if test $use_additional = yes; then
14013             dir="$additional_libdir"
14014                                     if test -n "$acl_shlibext"; then
14015               if test -f "$dir/$libname$shrext"; then
14016                 found_dir="$dir"
14017                 found_so="$dir/$libname$shrext"
14018               else
14019                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14020                   ver=`(cd "$dir" && \
14021                         for f in "$libname$shrext".*; do echo "$f"; done \
14022                         | sed -e "s,^$libname$shrext\\\\.,," \
14023                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14024                         | sed 1q ) 2>/dev/null`
14025                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14026                     found_dir="$dir"
14027                     found_so="$dir/$libname$shrext.$ver"
14028                   fi
14029                 else
14030                   eval library_names=\"$acl_library_names_spec\"
14031                   for f in $library_names; do
14032                     if test -f "$dir/$f"; then
14033                       found_dir="$dir"
14034                       found_so="$dir/$f"
14035                       break
14036                     fi
14037                   done
14038                 fi
14039               fi
14040             fi
14041                         if test "X$found_dir" = "X"; then
14042               if test -f "$dir/$libname.$acl_libext"; then
14043                 found_dir="$dir"
14044                 found_a="$dir/$libname.$acl_libext"
14045               fi
14046             fi
14047             if test "X$found_dir" != "X"; then
14048               if test -f "$dir/$libname.la"; then
14049                 found_la="$dir/$libname.la"
14050               fi
14051             fi
14052           fi
14053           if test "X$found_dir" = "X"; then
14054             for x in $LDFLAGS $LTLIBICONV; do
14055
14056   acl_save_prefix="$prefix"
14057   prefix="$acl_final_prefix"
14058   acl_save_exec_prefix="$exec_prefix"
14059   exec_prefix="$acl_final_exec_prefix"
14060   eval x=\"$x\"
14061   exec_prefix="$acl_save_exec_prefix"
14062   prefix="$acl_save_prefix"
14063
14064               case "$x" in
14065                 -L*)
14066                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14067                                     if test -n "$acl_shlibext"; then
14068                     if test -f "$dir/$libname$shrext"; then
14069                       found_dir="$dir"
14070                       found_so="$dir/$libname$shrext"
14071                     else
14072                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14073                         ver=`(cd "$dir" && \
14074                               for f in "$libname$shrext".*; do echo "$f"; done \
14075                               | sed -e "s,^$libname$shrext\\\\.,," \
14076                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14077                               | sed 1q ) 2>/dev/null`
14078                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14079                           found_dir="$dir"
14080                           found_so="$dir/$libname$shrext.$ver"
14081                         fi
14082                       else
14083                         eval library_names=\"$acl_library_names_spec\"
14084                         for f in $library_names; do
14085                           if test -f "$dir/$f"; then
14086                             found_dir="$dir"
14087                             found_so="$dir/$f"
14088                             break
14089                           fi
14090                         done
14091                       fi
14092                     fi
14093                   fi
14094                                     if test "X$found_dir" = "X"; then
14095                     if test -f "$dir/$libname.$acl_libext"; then
14096                       found_dir="$dir"
14097                       found_a="$dir/$libname.$acl_libext"
14098                     fi
14099                   fi
14100                   if test "X$found_dir" != "X"; then
14101                     if test -f "$dir/$libname.la"; then
14102                       found_la="$dir/$libname.la"
14103                     fi
14104                   fi
14105                   ;;
14106               esac
14107               if test "X$found_dir" != "X"; then
14108                 break
14109               fi
14110             done
14111           fi
14112           if test "X$found_dir" != "X"; then
14113                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14114             if test "X$found_so" != "X"; then
14115                                                         if test "$enable_rpath" = no \
14116                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14117                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14118                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14119               else
14120                                                                                 haveit=
14121                 for x in $ltrpathdirs; do
14122                   if test "X$x" = "X$found_dir"; then
14123                     haveit=yes
14124                     break
14125                   fi
14126                 done
14127                 if test -z "$haveit"; then
14128                   ltrpathdirs="$ltrpathdirs $found_dir"
14129                 fi
14130                                 if test "$acl_hardcode_direct" = yes; then
14131                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14132                 else
14133                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14134                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14135                                                             haveit=
14136                     for x in $rpathdirs; do
14137                       if test "X$x" = "X$found_dir"; then
14138                         haveit=yes
14139                         break
14140                       fi
14141                     done
14142                     if test -z "$haveit"; then
14143                       rpathdirs="$rpathdirs $found_dir"
14144                     fi
14145                   else
14146                                                                                 haveit=
14147                     for x in $LDFLAGS $LIBICONV; do
14148
14149   acl_save_prefix="$prefix"
14150   prefix="$acl_final_prefix"
14151   acl_save_exec_prefix="$exec_prefix"
14152   exec_prefix="$acl_final_exec_prefix"
14153   eval x=\"$x\"
14154   exec_prefix="$acl_save_exec_prefix"
14155   prefix="$acl_save_prefix"
14156
14157                       if test "X$x" = "X-L$found_dir"; then
14158                         haveit=yes
14159                         break
14160                       fi
14161                     done
14162                     if test -z "$haveit"; then
14163                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14164                     fi
14165                     if test "$acl_hardcode_minus_L" != no; then
14166                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14167                     else
14168                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14169                     fi
14170                   fi
14171                 fi
14172               fi
14173             else
14174               if test "X$found_a" != "X"; then
14175                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14176               else
14177                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14178               fi
14179             fi
14180                         additional_includedir=
14181             case "$found_dir" in
14182               */$acl_libdirstem | */$acl_libdirstem/)
14183                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14184                 if test "$name" = 'iconv'; then
14185                   LIBICONV_PREFIX="$basedir"
14186                 fi
14187                 additional_includedir="$basedir/include"
14188                 ;;
14189               */$acl_libdirstem2 | */$acl_libdirstem2/)
14190                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14191                 if test "$name" = 'iconv'; then
14192                   LIBICONV_PREFIX="$basedir"
14193                 fi
14194                 additional_includedir="$basedir/include"
14195                 ;;
14196             esac
14197             if test "X$additional_includedir" != "X"; then
14198                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14199                 haveit=
14200                 if test "X$additional_includedir" = "X/usr/local/include"; then
14201                   if test -n "$GCC"; then
14202                     case $host_os in
14203                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14204                     esac
14205                   fi
14206                 fi
14207                 if test -z "$haveit"; then
14208                   for x in $CPPFLAGS $INCICONV; do
14209
14210   acl_save_prefix="$prefix"
14211   prefix="$acl_final_prefix"
14212   acl_save_exec_prefix="$exec_prefix"
14213   exec_prefix="$acl_final_exec_prefix"
14214   eval x=\"$x\"
14215   exec_prefix="$acl_save_exec_prefix"
14216   prefix="$acl_save_prefix"
14217
14218                     if test "X$x" = "X-I$additional_includedir"; then
14219                       haveit=yes
14220                       break
14221                     fi
14222                   done
14223                   if test -z "$haveit"; then
14224                     if test -d "$additional_includedir"; then
14225                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14226                     fi
14227                   fi
14228                 fi
14229               fi
14230             fi
14231                         if test -n "$found_la"; then
14232                                                         save_libdir="$libdir"
14233               case "$found_la" in
14234                 */* | *\\*) . "$found_la" ;;
14235                 *) . "./$found_la" ;;
14236               esac
14237               libdir="$save_libdir"
14238                             for dep in $dependency_libs; do
14239                 case "$dep" in
14240                   -L*)
14241                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14242                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14243                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14244                       haveit=
14245                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14246                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14247                         if test -n "$GCC"; then
14248                           case $host_os in
14249                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14250                           esac
14251                         fi
14252                       fi
14253                       if test -z "$haveit"; then
14254                         haveit=
14255                         for x in $LDFLAGS $LIBICONV; do
14256
14257   acl_save_prefix="$prefix"
14258   prefix="$acl_final_prefix"
14259   acl_save_exec_prefix="$exec_prefix"
14260   exec_prefix="$acl_final_exec_prefix"
14261   eval x=\"$x\"
14262   exec_prefix="$acl_save_exec_prefix"
14263   prefix="$acl_save_prefix"
14264
14265                           if test "X$x" = "X-L$additional_libdir"; then
14266                             haveit=yes
14267                             break
14268                           fi
14269                         done
14270                         if test -z "$haveit"; then
14271                           if test -d "$additional_libdir"; then
14272                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14273                           fi
14274                         fi
14275                         haveit=
14276                         for x in $LDFLAGS $LTLIBICONV; do
14277
14278   acl_save_prefix="$prefix"
14279   prefix="$acl_final_prefix"
14280   acl_save_exec_prefix="$exec_prefix"
14281   exec_prefix="$acl_final_exec_prefix"
14282   eval x=\"$x\"
14283   exec_prefix="$acl_save_exec_prefix"
14284   prefix="$acl_save_prefix"
14285
14286                           if test "X$x" = "X-L$additional_libdir"; then
14287                             haveit=yes
14288                             break
14289                           fi
14290                         done
14291                         if test -z "$haveit"; then
14292                           if test -d "$additional_libdir"; then
14293                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14294                           fi
14295                         fi
14296                       fi
14297                     fi
14298                     ;;
14299                   -R*)
14300                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14301                     if test "$enable_rpath" != no; then
14302                                                                   haveit=
14303                       for x in $rpathdirs; do
14304                         if test "X$x" = "X$dir"; then
14305                           haveit=yes
14306                           break
14307                         fi
14308                       done
14309                       if test -z "$haveit"; then
14310                         rpathdirs="$rpathdirs $dir"
14311                       fi
14312                                                                   haveit=
14313                       for x in $ltrpathdirs; do
14314                         if test "X$x" = "X$dir"; then
14315                           haveit=yes
14316                           break
14317                         fi
14318                       done
14319                       if test -z "$haveit"; then
14320                         ltrpathdirs="$ltrpathdirs $dir"
14321                       fi
14322                     fi
14323                     ;;
14324                   -l*)
14325                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14326                     ;;
14327                   *.la)
14328                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14329                     ;;
14330                   *)
14331                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14332                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14333                     ;;
14334                 esac
14335               done
14336             fi
14337           else
14338                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14339             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14340           fi
14341         fi
14342       fi
14343     done
14344   done
14345   if test "X$rpathdirs" != "X"; then
14346     if test -n "$acl_hardcode_libdir_separator"; then
14347                         alldirs=
14348       for found_dir in $rpathdirs; do
14349         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14350       done
14351             acl_save_libdir="$libdir"
14352       libdir="$alldirs"
14353       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14354       libdir="$acl_save_libdir"
14355       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14356     else
14357             for found_dir in $rpathdirs; do
14358         acl_save_libdir="$libdir"
14359         libdir="$found_dir"
14360         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14361         libdir="$acl_save_libdir"
14362         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14363       done
14364     fi
14365   fi
14366   if test "X$ltrpathdirs" != "X"; then
14367             for found_dir in $ltrpathdirs; do
14368       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14369     done
14370   fi
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14403 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14404 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
14405   $as_echo_n "(cached) " >&6
14406 else
14407   gt_save_LIBS="$LIBS"
14408      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14409      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h.  */
14411 #include <CoreFoundation/CFPreferences.h>
14412 int
14413 main ()
14414 {
14415 CFPreferencesCopyAppValue(NULL, NULL)
14416   ;
14417   return 0;
14418 }
14419 _ACEOF
14420 if ac_fn_c_try_link "$LINENO"; then :
14421   gt_cv_func_CFPreferencesCopyAppValue=yes
14422 else
14423   gt_cv_func_CFPreferencesCopyAppValue=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext \
14426     conftest$ac_exeext conftest.$ac_ext
14427      LIBS="$gt_save_LIBS"
14428 fi
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14430 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14431   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14432
14433 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14434
14435   fi
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14437 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14438 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   gt_save_LIBS="$LIBS"
14442      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14443      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h.  */
14445 #include <CoreFoundation/CFLocale.h>
14446 int
14447 main ()
14448 {
14449 CFLocaleCopyCurrent();
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_link "$LINENO"; then :
14455   gt_cv_func_CFLocaleCopyCurrent=yes
14456 else
14457   gt_cv_func_CFLocaleCopyCurrent=no
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext \
14460     conftest$ac_exeext conftest.$ac_ext
14461      LIBS="$gt_save_LIBS"
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14464 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14465   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14466
14467 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14468
14469   fi
14470   INTL_MACOSX_LIBS=
14471   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14472     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14473   fi
14474
14475
14476
14477
14478
14479
14480   LIBINTL=
14481   LTLIBINTL=
14482   POSUB=
14483
14484     case " $gt_needs " in
14485     *" need-formatstring-macros "*) gt_api_version=3 ;;
14486     *" need-ngettext "*) gt_api_version=2 ;;
14487     *) gt_api_version=1 ;;
14488   esac
14489   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14490   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14491
14492     if test "$USE_NLS" = "yes"; then
14493     gt_use_preinstalled_gnugettext=no
14494
14495
14496         if test $gt_api_version -ge 3; then
14497           gt_revision_test_code='
14498 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14499 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14500 #endif
14501 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14502 '
14503         else
14504           gt_revision_test_code=
14505         fi
14506         if test $gt_api_version -ge 2; then
14507           gt_expression_test_code=' + * ngettext ("", "", 0)'
14508         else
14509           gt_expression_test_code=
14510         fi
14511
14512         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14513 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14514 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
14515   $as_echo_n "(cached) " >&6
14516 else
14517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h.  */
14519 #include <libintl.h>
14520 $gt_revision_test_code
14521 extern int _nl_msg_cat_cntr;
14522 extern int *_nl_domain_bindings;
14523 int
14524 main ()
14525 {
14526 bindtextdomain ("", "");
14527 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 if ac_fn_c_try_link "$LINENO"; then :
14533   eval "$gt_func_gnugettext_libc=yes"
14534 else
14535   eval "$gt_func_gnugettext_libc=no"
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext \
14538     conftest$ac_exeext conftest.$ac_ext
14539 fi
14540 eval ac_res=\$$gt_func_gnugettext_libc
14541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14542 $as_echo "$ac_res" >&6; }
14543
14544         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14545
14546
14547
14548
14549
14550           am_save_CPPFLAGS="$CPPFLAGS"
14551
14552   for element in $INCICONV; do
14553     haveit=
14554     for x in $CPPFLAGS; do
14555
14556   acl_save_prefix="$prefix"
14557   prefix="$acl_final_prefix"
14558   acl_save_exec_prefix="$exec_prefix"
14559   exec_prefix="$acl_final_exec_prefix"
14560   eval x=\"$x\"
14561   exec_prefix="$acl_save_exec_prefix"
14562   prefix="$acl_save_prefix"
14563
14564       if test "X$x" = "X$element"; then
14565         haveit=yes
14566         break
14567       fi
14568     done
14569     if test -z "$haveit"; then
14570       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14571     fi
14572   done
14573
14574
14575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14576 $as_echo_n "checking for iconv... " >&6; }
14577 if test "${am_cv_func_iconv+set}" = set; then :
14578   $as_echo_n "(cached) " >&6
14579 else
14580
14581     am_cv_func_iconv="no, consider installing GNU libiconv"
14582     am_cv_lib_iconv=no
14583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h.  */
14585 #include <stdlib.h>
14586 #include <iconv.h>
14587 int
14588 main ()
14589 {
14590 iconv_t cd = iconv_open("","");
14591        iconv(cd,NULL,NULL,NULL,NULL);
14592        iconv_close(cd);
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_link "$LINENO"; then :
14598   am_cv_func_iconv=yes
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext \
14601     conftest$ac_exeext conftest.$ac_ext
14602     if test "$am_cv_func_iconv" != yes; then
14603       am_save_LIBS="$LIBS"
14604       LIBS="$LIBS $LIBICONV"
14605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h.  */
14607 #include <stdlib.h>
14608 #include <iconv.h>
14609 int
14610 main ()
14611 {
14612 iconv_t cd = iconv_open("","");
14613          iconv(cd,NULL,NULL,NULL,NULL);
14614          iconv_close(cd);
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620   am_cv_lib_iconv=yes
14621         am_cv_func_iconv=yes
14622 fi
14623 rm -f core conftest.err conftest.$ac_objext \
14624     conftest$ac_exeext conftest.$ac_ext
14625       LIBS="$am_save_LIBS"
14626     fi
14627
14628 fi
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14630 $as_echo "$am_cv_func_iconv" >&6; }
14631   if test "$am_cv_func_iconv" = yes; then
14632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14633 $as_echo_n "checking for working iconv... " >&6; }
14634 if test "${am_cv_func_iconv_works+set}" = set; then :
14635   $as_echo_n "(cached) " >&6
14636 else
14637
14638             am_save_LIBS="$LIBS"
14639       if test $am_cv_lib_iconv = yes; then
14640         LIBS="$LIBS $LIBICONV"
14641       fi
14642       if test "$cross_compiling" = yes; then :
14643   case "$host_os" in
14644            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14645            *)            am_cv_func_iconv_works="guessing yes" ;;
14646          esac
14647 else
14648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h.  */
14650
14651 #include <iconv.h>
14652 #include <string.h>
14653 int main ()
14654 {
14655   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14656      returns.  */
14657   {
14658     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14659     if (cd_utf8_to_88591 != (iconv_t)(-1))
14660       {
14661         static const char input[] = "\342\202\254"; /* EURO SIGN */
14662         char buf[10];
14663         const char *inptr = input;
14664         size_t inbytesleft = strlen (input);
14665         char *outptr = buf;
14666         size_t outbytesleft = sizeof (buf);
14667         size_t res = iconv (cd_utf8_to_88591,
14668                             (char **) &inptr, &inbytesleft,
14669                             &outptr, &outbytesleft);
14670         if (res == 0)
14671           return 1;
14672       }
14673   }
14674   /* Test against Solaris 10 bug: Failures are not distinguishable from
14675      successful returns.  */
14676   {
14677     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14678     if (cd_ascii_to_88591 != (iconv_t)(-1))
14679       {
14680         static const char input[] = "\263";
14681         char buf[10];
14682         const char *inptr = input;
14683         size_t inbytesleft = strlen (input);
14684         char *outptr = buf;
14685         size_t outbytesleft = sizeof (buf);
14686         size_t res = iconv (cd_ascii_to_88591,
14687                             (char **) &inptr, &inbytesleft,
14688                             &outptr, &outbytesleft);
14689         if (res == 0)
14690           return 1;
14691       }
14692   }
14693 #if 0 /* This bug could be worked around by the caller.  */
14694   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14695   {
14696     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14697     if (cd_88591_to_utf8 != (iconv_t)(-1))
14698       {
14699         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14700         char buf[50];
14701         const char *inptr = input;
14702         size_t inbytesleft = strlen (input);
14703         char *outptr = buf;
14704         size_t outbytesleft = sizeof (buf);
14705         size_t res = iconv (cd_88591_to_utf8,
14706                             (char **) &inptr, &inbytesleft,
14707                             &outptr, &outbytesleft);
14708         if ((int)res > 0)
14709           return 1;
14710       }
14711   }
14712 #endif
14713   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14714      provided.  */
14715   if (/* Try standardized names.  */
14716       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14717       /* Try IRIX, OSF/1 names.  */
14718       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14719       /* Try AIX names.  */
14720       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14721       /* Try HP-UX names.  */
14722       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14723     return 1;
14724   return 0;
14725 }
14726 _ACEOF
14727 if ac_fn_c_try_run "$LINENO"; then :
14728   am_cv_func_iconv_works=yes
14729 else
14730   am_cv_func_iconv_works=no
14731 fi
14732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14733   conftest.$ac_objext conftest.beam conftest.$ac_ext
14734 fi
14735
14736       LIBS="$am_save_LIBS"
14737
14738 fi
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14740 $as_echo "$am_cv_func_iconv_works" >&6; }
14741     case "$am_cv_func_iconv_works" in
14742       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14743       *)   am_func_iconv=yes ;;
14744     esac
14745   else
14746     am_func_iconv=no am_cv_lib_iconv=no
14747   fi
14748   if test "$am_func_iconv" = yes; then
14749
14750 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14751
14752   fi
14753   if test "$am_cv_lib_iconv" = yes; then
14754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14755 $as_echo_n "checking how to link with libiconv... " >&6; }
14756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14757 $as_echo "$LIBICONV" >&6; }
14758   else
14759             CPPFLAGS="$am_save_CPPFLAGS"
14760     LIBICONV=
14761     LTLIBICONV=
14762   fi
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774     use_additional=yes
14775
14776   acl_save_prefix="$prefix"
14777   prefix="$acl_final_prefix"
14778   acl_save_exec_prefix="$exec_prefix"
14779   exec_prefix="$acl_final_exec_prefix"
14780
14781     eval additional_includedir=\"$includedir\"
14782     eval additional_libdir=\"$libdir\"
14783
14784   exec_prefix="$acl_save_exec_prefix"
14785   prefix="$acl_save_prefix"
14786
14787
14788 # Check whether --with-libintl-prefix was given.
14789 if test "${with_libintl_prefix+set}" = set; then :
14790   withval=$with_libintl_prefix;
14791     if test "X$withval" = "Xno"; then
14792       use_additional=no
14793     else
14794       if test "X$withval" = "X"; then
14795
14796   acl_save_prefix="$prefix"
14797   prefix="$acl_final_prefix"
14798   acl_save_exec_prefix="$exec_prefix"
14799   exec_prefix="$acl_final_exec_prefix"
14800
14801           eval additional_includedir=\"$includedir\"
14802           eval additional_libdir=\"$libdir\"
14803
14804   exec_prefix="$acl_save_exec_prefix"
14805   prefix="$acl_save_prefix"
14806
14807       else
14808         additional_includedir="$withval/include"
14809         additional_libdir="$withval/$acl_libdirstem"
14810         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14811            && ! test -d "$withval/$acl_libdirstem"; then
14812           additional_libdir="$withval/$acl_libdirstem2"
14813         fi
14814       fi
14815     fi
14816
14817 fi
14818
14819       LIBINTL=
14820   LTLIBINTL=
14821   INCINTL=
14822   LIBINTL_PREFIX=
14823       HAVE_LIBINTL=
14824   rpathdirs=
14825   ltrpathdirs=
14826   names_already_handled=
14827   names_next_round='intl '
14828   while test -n "$names_next_round"; do
14829     names_this_round="$names_next_round"
14830     names_next_round=
14831     for name in $names_this_round; do
14832       already_handled=
14833       for n in $names_already_handled; do
14834         if test "$n" = "$name"; then
14835           already_handled=yes
14836           break
14837         fi
14838       done
14839       if test -z "$already_handled"; then
14840         names_already_handled="$names_already_handled $name"
14841                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14842         eval value=\"\$HAVE_LIB$uppername\"
14843         if test -n "$value"; then
14844           if test "$value" = yes; then
14845             eval value=\"\$LIB$uppername\"
14846             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14847             eval value=\"\$LTLIB$uppername\"
14848             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14849           else
14850                                     :
14851           fi
14852         else
14853                               found_dir=
14854           found_la=
14855           found_so=
14856           found_a=
14857           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14858           if test -n "$acl_shlibext"; then
14859             shrext=".$acl_shlibext"             # typically: shrext=.so
14860           else
14861             shrext=
14862           fi
14863           if test $use_additional = yes; then
14864             dir="$additional_libdir"
14865                                     if test -n "$acl_shlibext"; then
14866               if test -f "$dir/$libname$shrext"; then
14867                 found_dir="$dir"
14868                 found_so="$dir/$libname$shrext"
14869               else
14870                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14871                   ver=`(cd "$dir" && \
14872                         for f in "$libname$shrext".*; do echo "$f"; done \
14873                         | sed -e "s,^$libname$shrext\\\\.,," \
14874                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14875                         | sed 1q ) 2>/dev/null`
14876                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14877                     found_dir="$dir"
14878                     found_so="$dir/$libname$shrext.$ver"
14879                   fi
14880                 else
14881                   eval library_names=\"$acl_library_names_spec\"
14882                   for f in $library_names; do
14883                     if test -f "$dir/$f"; then
14884                       found_dir="$dir"
14885                       found_so="$dir/$f"
14886                       break
14887                     fi
14888                   done
14889                 fi
14890               fi
14891             fi
14892                         if test "X$found_dir" = "X"; then
14893               if test -f "$dir/$libname.$acl_libext"; then
14894                 found_dir="$dir"
14895                 found_a="$dir/$libname.$acl_libext"
14896               fi
14897             fi
14898             if test "X$found_dir" != "X"; then
14899               if test -f "$dir/$libname.la"; then
14900                 found_la="$dir/$libname.la"
14901               fi
14902             fi
14903           fi
14904           if test "X$found_dir" = "X"; then
14905             for x in $LDFLAGS $LTLIBINTL; do
14906
14907   acl_save_prefix="$prefix"
14908   prefix="$acl_final_prefix"
14909   acl_save_exec_prefix="$exec_prefix"
14910   exec_prefix="$acl_final_exec_prefix"
14911   eval x=\"$x\"
14912   exec_prefix="$acl_save_exec_prefix"
14913   prefix="$acl_save_prefix"
14914
14915               case "$x" in
14916                 -L*)
14917                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14918                                     if test -n "$acl_shlibext"; then
14919                     if test -f "$dir/$libname$shrext"; then
14920                       found_dir="$dir"
14921                       found_so="$dir/$libname$shrext"
14922                     else
14923                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14924                         ver=`(cd "$dir" && \
14925                               for f in "$libname$shrext".*; do echo "$f"; done \
14926                               | sed -e "s,^$libname$shrext\\\\.,," \
14927                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14928                               | sed 1q ) 2>/dev/null`
14929                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14930                           found_dir="$dir"
14931                           found_so="$dir/$libname$shrext.$ver"
14932                         fi
14933                       else
14934                         eval library_names=\"$acl_library_names_spec\"
14935                         for f in $library_names; do
14936                           if test -f "$dir/$f"; then
14937                             found_dir="$dir"
14938                             found_so="$dir/$f"
14939                             break
14940                           fi
14941                         done
14942                       fi
14943                     fi
14944                   fi
14945                                     if test "X$found_dir" = "X"; then
14946                     if test -f "$dir/$libname.$acl_libext"; then
14947                       found_dir="$dir"
14948                       found_a="$dir/$libname.$acl_libext"
14949                     fi
14950                   fi
14951                   if test "X$found_dir" != "X"; then
14952                     if test -f "$dir/$libname.la"; then
14953                       found_la="$dir/$libname.la"
14954                     fi
14955                   fi
14956                   ;;
14957               esac
14958               if test "X$found_dir" != "X"; then
14959                 break
14960               fi
14961             done
14962           fi
14963           if test "X$found_dir" != "X"; then
14964                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14965             if test "X$found_so" != "X"; then
14966                                                         if test "$enable_rpath" = no \
14967                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14968                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14969                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14970               else
14971                                                                                 haveit=
14972                 for x in $ltrpathdirs; do
14973                   if test "X$x" = "X$found_dir"; then
14974                     haveit=yes
14975                     break
14976                   fi
14977                 done
14978                 if test -z "$haveit"; then
14979                   ltrpathdirs="$ltrpathdirs $found_dir"
14980                 fi
14981                                 if test "$acl_hardcode_direct" = yes; then
14982                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14983                 else
14984                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14985                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14986                                                             haveit=
14987                     for x in $rpathdirs; do
14988                       if test "X$x" = "X$found_dir"; then
14989                         haveit=yes
14990                         break
14991                       fi
14992                     done
14993                     if test -z "$haveit"; then
14994                       rpathdirs="$rpathdirs $found_dir"
14995                     fi
14996                   else
14997                                                                                 haveit=
14998                     for x in $LDFLAGS $LIBINTL; do
14999
15000   acl_save_prefix="$prefix"
15001   prefix="$acl_final_prefix"
15002   acl_save_exec_prefix="$exec_prefix"
15003   exec_prefix="$acl_final_exec_prefix"
15004   eval x=\"$x\"
15005   exec_prefix="$acl_save_exec_prefix"
15006   prefix="$acl_save_prefix"
15007
15008                       if test "X$x" = "X-L$found_dir"; then
15009                         haveit=yes
15010                         break
15011                       fi
15012                     done
15013                     if test -z "$haveit"; then
15014                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15015                     fi
15016                     if test "$acl_hardcode_minus_L" != no; then
15017                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15018                     else
15019                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15020                     fi
15021                   fi
15022                 fi
15023               fi
15024             else
15025               if test "X$found_a" != "X"; then
15026                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15027               else
15028                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15029               fi
15030             fi
15031                         additional_includedir=
15032             case "$found_dir" in
15033               */$acl_libdirstem | */$acl_libdirstem/)
15034                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15035                 if test "$name" = 'intl'; then
15036                   LIBINTL_PREFIX="$basedir"
15037                 fi
15038                 additional_includedir="$basedir/include"
15039                 ;;
15040               */$acl_libdirstem2 | */$acl_libdirstem2/)
15041                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15042                 if test "$name" = 'intl'; then
15043                   LIBINTL_PREFIX="$basedir"
15044                 fi
15045                 additional_includedir="$basedir/include"
15046                 ;;
15047             esac
15048             if test "X$additional_includedir" != "X"; then
15049                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15050                 haveit=
15051                 if test "X$additional_includedir" = "X/usr/local/include"; then
15052                   if test -n "$GCC"; then
15053                     case $host_os in
15054                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15055                     esac
15056                   fi
15057                 fi
15058                 if test -z "$haveit"; then
15059                   for x in $CPPFLAGS $INCINTL; do
15060
15061   acl_save_prefix="$prefix"
15062   prefix="$acl_final_prefix"
15063   acl_save_exec_prefix="$exec_prefix"
15064   exec_prefix="$acl_final_exec_prefix"
15065   eval x=\"$x\"
15066   exec_prefix="$acl_save_exec_prefix"
15067   prefix="$acl_save_prefix"
15068
15069                     if test "X$x" = "X-I$additional_includedir"; then
15070                       haveit=yes
15071                       break
15072                     fi
15073                   done
15074                   if test -z "$haveit"; then
15075                     if test -d "$additional_includedir"; then
15076                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15077                     fi
15078                   fi
15079                 fi
15080               fi
15081             fi
15082                         if test -n "$found_la"; then
15083                                                         save_libdir="$libdir"
15084               case "$found_la" in
15085                 */* | *\\*) . "$found_la" ;;
15086                 *) . "./$found_la" ;;
15087               esac
15088               libdir="$save_libdir"
15089                             for dep in $dependency_libs; do
15090                 case "$dep" in
15091                   -L*)
15092                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15093                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15094                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15095                       haveit=
15096                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15097                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15098                         if test -n "$GCC"; then
15099                           case $host_os in
15100                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15101                           esac
15102                         fi
15103                       fi
15104                       if test -z "$haveit"; then
15105                         haveit=
15106                         for x in $LDFLAGS $LIBINTL; do
15107
15108   acl_save_prefix="$prefix"
15109   prefix="$acl_final_prefix"
15110   acl_save_exec_prefix="$exec_prefix"
15111   exec_prefix="$acl_final_exec_prefix"
15112   eval x=\"$x\"
15113   exec_prefix="$acl_save_exec_prefix"
15114   prefix="$acl_save_prefix"
15115
15116                           if test "X$x" = "X-L$additional_libdir"; then
15117                             haveit=yes
15118                             break
15119                           fi
15120                         done
15121                         if test -z "$haveit"; then
15122                           if test -d "$additional_libdir"; then
15123                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15124                           fi
15125                         fi
15126                         haveit=
15127                         for x in $LDFLAGS $LTLIBINTL; do
15128
15129   acl_save_prefix="$prefix"
15130   prefix="$acl_final_prefix"
15131   acl_save_exec_prefix="$exec_prefix"
15132   exec_prefix="$acl_final_exec_prefix"
15133   eval x=\"$x\"
15134   exec_prefix="$acl_save_exec_prefix"
15135   prefix="$acl_save_prefix"
15136
15137                           if test "X$x" = "X-L$additional_libdir"; then
15138                             haveit=yes
15139                             break
15140                           fi
15141                         done
15142                         if test -z "$haveit"; then
15143                           if test -d "$additional_libdir"; then
15144                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15145                           fi
15146                         fi
15147                       fi
15148                     fi
15149                     ;;
15150                   -R*)
15151                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15152                     if test "$enable_rpath" != no; then
15153                                                                   haveit=
15154                       for x in $rpathdirs; do
15155                         if test "X$x" = "X$dir"; then
15156                           haveit=yes
15157                           break
15158                         fi
15159                       done
15160                       if test -z "$haveit"; then
15161                         rpathdirs="$rpathdirs $dir"
15162                       fi
15163                                                                   haveit=
15164                       for x in $ltrpathdirs; do
15165                         if test "X$x" = "X$dir"; then
15166                           haveit=yes
15167                           break
15168                         fi
15169                       done
15170                       if test -z "$haveit"; then
15171                         ltrpathdirs="$ltrpathdirs $dir"
15172                       fi
15173                     fi
15174                     ;;
15175                   -l*)
15176                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15177                     ;;
15178                   *.la)
15179                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15180                     ;;
15181                   *)
15182                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15183                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15184                     ;;
15185                 esac
15186               done
15187             fi
15188           else
15189                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15190             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15191           fi
15192         fi
15193       fi
15194     done
15195   done
15196   if test "X$rpathdirs" != "X"; then
15197     if test -n "$acl_hardcode_libdir_separator"; then
15198                         alldirs=
15199       for found_dir in $rpathdirs; do
15200         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15201       done
15202             acl_save_libdir="$libdir"
15203       libdir="$alldirs"
15204       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15205       libdir="$acl_save_libdir"
15206       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15207     else
15208             for found_dir in $rpathdirs; do
15209         acl_save_libdir="$libdir"
15210         libdir="$found_dir"
15211         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15212         libdir="$acl_save_libdir"
15213         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15214       done
15215     fi
15216   fi
15217   if test "X$ltrpathdirs" != "X"; then
15218             for found_dir in $ltrpathdirs; do
15219       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15220     done
15221   fi
15222
15223
15224
15225
15226
15227
15228           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15229 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15230 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
15231   $as_echo_n "(cached) " >&6
15232 else
15233   gt_save_CPPFLAGS="$CPPFLAGS"
15234             CPPFLAGS="$CPPFLAGS $INCINTL"
15235             gt_save_LIBS="$LIBS"
15236             LIBS="$LIBS $LIBINTL"
15237                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h.  */
15239 #include <libintl.h>
15240 $gt_revision_test_code
15241 extern int _nl_msg_cat_cntr;
15242 extern
15243 #ifdef __cplusplus
15244 "C"
15245 #endif
15246 const char *_nl_expand_alias (const char *);
15247 int
15248 main ()
15249 {
15250 bindtextdomain ("", "");
15251 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15252   ;
15253   return 0;
15254 }
15255 _ACEOF
15256 if ac_fn_c_try_link "$LINENO"; then :
15257   eval "$gt_func_gnugettext_libintl=yes"
15258 else
15259   eval "$gt_func_gnugettext_libintl=no"
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext \
15262     conftest$ac_exeext conftest.$ac_ext
15263                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15264               LIBS="$LIBS $LIBICONV"
15265               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h.  */
15267 #include <libintl.h>
15268 $gt_revision_test_code
15269 extern int _nl_msg_cat_cntr;
15270 extern
15271 #ifdef __cplusplus
15272 "C"
15273 #endif
15274 const char *_nl_expand_alias (const char *);
15275 int
15276 main ()
15277 {
15278 bindtextdomain ("", "");
15279 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 if ac_fn_c_try_link "$LINENO"; then :
15285   LIBINTL="$LIBINTL $LIBICONV"
15286                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15287                 eval "$gt_func_gnugettext_libintl=yes"
15288
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291     conftest$ac_exeext conftest.$ac_ext
15292             fi
15293             CPPFLAGS="$gt_save_CPPFLAGS"
15294             LIBS="$gt_save_LIBS"
15295 fi
15296 eval ac_res=\$$gt_func_gnugettext_libintl
15297                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15298 $as_echo "$ac_res" >&6; }
15299         fi
15300
15301                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15302            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15303                 && test "$PACKAGE" != gettext-runtime \
15304                 && test "$PACKAGE" != gettext-tools; }; then
15305           gt_use_preinstalled_gnugettext=yes
15306         else
15307                     LIBINTL=
15308           LTLIBINTL=
15309           INCINTL=
15310         fi
15311
15312
15313
15314     if test -n "$INTL_MACOSX_LIBS"; then
15315       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15316          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15317                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15318         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15319       fi
15320     fi
15321
15322     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15323        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15324
15325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15326
15327     else
15328       USE_NLS=no
15329     fi
15330   fi
15331
15332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15333 $as_echo_n "checking whether to use NLS... " >&6; }
15334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15335 $as_echo "$USE_NLS" >&6; }
15336   if test "$USE_NLS" = "yes"; then
15337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15338 $as_echo_n "checking where the gettext function comes from... " >&6; }
15339     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15340       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15341         gt_source="external libintl"
15342       else
15343         gt_source="libc"
15344       fi
15345     else
15346       gt_source="included intl directory"
15347     fi
15348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15349 $as_echo "$gt_source" >&6; }
15350   fi
15351
15352   if test "$USE_NLS" = "yes"; then
15353
15354     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15355       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15357 $as_echo_n "checking how to link with libintl... " >&6; }
15358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15359 $as_echo "$LIBINTL" >&6; }
15360
15361   for element in $INCINTL; do
15362     haveit=
15363     for x in $CPPFLAGS; do
15364
15365   acl_save_prefix="$prefix"
15366   prefix="$acl_final_prefix"
15367   acl_save_exec_prefix="$exec_prefix"
15368   exec_prefix="$acl_final_exec_prefix"
15369   eval x=\"$x\"
15370   exec_prefix="$acl_save_exec_prefix"
15371   prefix="$acl_save_prefix"
15372
15373       if test "X$x" = "X$element"; then
15374         haveit=yes
15375         break
15376       fi
15377     done
15378     if test -z "$haveit"; then
15379       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15380     fi
15381   done
15382
15383       fi
15384
15385
15386 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15387
15388
15389 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15390
15391     fi
15392
15393         POSUB=po
15394   fi
15395
15396
15397
15398     INTLLIBS="$LIBINTL"
15399
15400
15401
15402
15403
15404
15405
15406
15407 GETTEXT_PACKAGE=PACKAGE_TARNAME
15408
15409
15410 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
15411
15412
15413 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
15414
15415
15416 cat >confcache <<\_ACEOF
15417 # This file is a shell script that caches the results of configure
15418 # tests run on this system so they can be shared between configure
15419 # scripts and configure runs, see configure's option --config-cache.
15420 # It is not useful on other systems.  If it contains results you don't
15421 # want to keep, you may remove or edit it.
15422 #
15423 # config.status only pays attention to the cache file if you give it
15424 # the --recheck option to rerun configure.
15425 #
15426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15428 # following values.
15429
15430 _ACEOF
15431
15432 # The following way of writing the cache mishandles newlines in values,
15433 # but we know of no workaround that is simple, portable, and efficient.
15434 # So, we kill variables containing newlines.
15435 # Ultrix sh set writes to stderr and can't be redirected directly,
15436 # and sets the high bit in the cache file unless we assign to the vars.
15437 (
15438   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15439     eval ac_val=\$$ac_var
15440     case $ac_val in #(
15441     *${as_nl}*)
15442       case $ac_var in #(
15443       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15444 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15445       esac
15446       case $ac_var in #(
15447       _ | IFS | as_nl) ;; #(
15448       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15449       *) { eval $ac_var=; unset $ac_var;} ;;
15450       esac ;;
15451     esac
15452   done
15453
15454   (set) 2>&1 |
15455     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15456     *${as_nl}ac_space=\ *)
15457       # `set' does not quote correctly, so add quotes: double-quote
15458       # substitution turns \\\\ into \\, and sed turns \\ into \.
15459       sed -n \
15460         "s/'/'\\\\''/g;
15461           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15462       ;; #(
15463     *)
15464       # `set' quotes correctly as required by POSIX, so do not add quotes.
15465       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15466       ;;
15467     esac |
15468     sort
15469 ) |
15470   sed '
15471      /^ac_cv_env_/b end
15472      t clear
15473      :clear
15474      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15475      t end
15476      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15477      :end' >>confcache
15478 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15479   if test -w "$cache_file"; then
15480     test "x$cache_file" != "x/dev/null" &&
15481       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15482 $as_echo "$as_me: updating cache $cache_file" >&6;}
15483     cat confcache >$cache_file
15484   else
15485     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15486 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15487   fi
15488 fi
15489 rm -f confcache
15490
15491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15492 # Let make expand exec_prefix.
15493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15494
15495 DEFS=-DHAVE_CONFIG_H
15496
15497 ac_libobjs=
15498 ac_ltlibobjs=
15499 U=
15500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15501   # 1. Remove the extension, and $U if already installed.
15502   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15503   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15504   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15505   #    will be set to the directory where LIBOBJS objects are built.
15506   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15507   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15508 done
15509 LIBOBJS=$ac_libobjs
15510
15511 LTLIBOBJS=$ac_ltlibobjs
15512
15513
15514  if test -n "$EXEEXT"; then
15515   am__EXEEXT_TRUE=
15516   am__EXEEXT_FALSE='#'
15517 else
15518   am__EXEEXT_TRUE='#'
15519   am__EXEEXT_FALSE=
15520 fi
15521
15522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15523   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15525 fi
15526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15527   as_fn_error $? "conditional \"AMDEP\" was never defined.
15528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15529 fi
15530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15531   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15533 fi
15534 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15535   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15537 fi
15538 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
15539   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
15540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15541 fi
15542 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15543   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15545 fi
15546 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
15547   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
15548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15549 fi
15550 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
15551   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
15552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15553 fi
15554 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
15555   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
15556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15557 fi
15558 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
15559   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
15560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15561 fi
15562 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
15563   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
15564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565 fi
15566
15567 : ${CONFIG_STATUS=./config.status}
15568 ac_write_fail=0
15569 ac_clean_files_save=$ac_clean_files
15570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15572 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15573 as_write_fail=0
15574 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15575 #! $SHELL
15576 # Generated by $as_me.
15577 # Run this file to recreate the current configuration.
15578 # Compiler output produced by configure, useful for debugging
15579 # configure, is in config.log if it exists.
15580
15581 debug=false
15582 ac_cs_recheck=false
15583 ac_cs_silent=false
15584
15585 SHELL=\${CONFIG_SHELL-$SHELL}
15586 export SHELL
15587 _ASEOF
15588 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15589 ## -------------------- ##
15590 ## M4sh Initialization. ##
15591 ## -------------------- ##
15592
15593 # Be more Bourne compatible
15594 DUALCASE=1; export DUALCASE # for MKS sh
15595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15596   emulate sh
15597   NULLCMD=:
15598   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15599   # is contrary to our usage.  Disable this feature.
15600   alias -g '${1+"$@"}'='"$@"'
15601   setopt NO_GLOB_SUBST
15602 else
15603   case `(set -o) 2>/dev/null` in #(
15604   *posix*) :
15605     set -o posix ;; #(
15606   *) :
15607      ;;
15608 esac
15609 fi
15610
15611
15612 as_nl='
15613 '
15614 export as_nl
15615 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15616 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15618 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15619 # Prefer a ksh shell builtin over an external printf program on Solaris,
15620 # but without wasting forks for bash or zsh.
15621 if test -z "$BASH_VERSION$ZSH_VERSION" \
15622     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15623   as_echo='print -r --'
15624   as_echo_n='print -rn --'
15625 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15626   as_echo='printf %s\n'
15627   as_echo_n='printf %s'
15628 else
15629   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15630     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15631     as_echo_n='/usr/ucb/echo -n'
15632   else
15633     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15634     as_echo_n_body='eval
15635       arg=$1;
15636       case $arg in #(
15637       *"$as_nl"*)
15638         expr "X$arg" : "X\\(.*\\)$as_nl";
15639         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15640       esac;
15641       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15642     '
15643     export as_echo_n_body
15644     as_echo_n='sh -c $as_echo_n_body as_echo'
15645   fi
15646   export as_echo_body
15647   as_echo='sh -c $as_echo_body as_echo'
15648 fi
15649
15650 # The user is always right.
15651 if test "${PATH_SEPARATOR+set}" != set; then
15652   PATH_SEPARATOR=:
15653   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15654     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15655       PATH_SEPARATOR=';'
15656   }
15657 fi
15658
15659
15660 # IFS
15661 # We need space, tab and new line, in precisely that order.  Quoting is
15662 # there to prevent editors from complaining about space-tab.
15663 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15664 # splitting by setting IFS to empty value.)
15665 IFS=" ""        $as_nl"
15666
15667 # Find who we are.  Look in the path if we contain no directory separator.
15668 case $0 in #((
15669   *[\\/]* ) as_myself=$0 ;;
15670   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 for as_dir in $PATH
15672 do
15673   IFS=$as_save_IFS
15674   test -z "$as_dir" && as_dir=.
15675     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15676   done
15677 IFS=$as_save_IFS
15678
15679      ;;
15680 esac
15681 # We did not find ourselves, most probably we were run as `sh COMMAND'
15682 # in which case we are not to be found in the path.
15683 if test "x$as_myself" = x; then
15684   as_myself=$0
15685 fi
15686 if test ! -f "$as_myself"; then
15687   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15688   exit 1
15689 fi
15690
15691 # Unset variables that we do not need and which cause bugs (e.g. in
15692 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15693 # suppresses any "Segmentation fault" message there.  '((' could
15694 # trigger a bug in pdksh 5.2.14.
15695 for as_var in BASH_ENV ENV MAIL MAILPATH
15696 do eval test x\${$as_var+set} = xset \
15697   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15698 done
15699 PS1='$ '
15700 PS2='> '
15701 PS4='+ '
15702
15703 # NLS nuisances.
15704 LC_ALL=C
15705 export LC_ALL
15706 LANGUAGE=C
15707 export LANGUAGE
15708
15709 # CDPATH.
15710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15711
15712
15713 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15714 # ----------------------------------------
15715 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15716 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15717 # script with STATUS, using 1 if that was 0.
15718 as_fn_error ()
15719 {
15720   as_status=$1; test $as_status -eq 0 && as_status=1
15721   if test "$4"; then
15722     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15723     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15724   fi
15725   $as_echo "$as_me: error: $2" >&2
15726   as_fn_exit $as_status
15727 } # as_fn_error
15728
15729
15730 # as_fn_set_status STATUS
15731 # -----------------------
15732 # Set $? to STATUS, without forking.
15733 as_fn_set_status ()
15734 {
15735   return $1
15736 } # as_fn_set_status
15737
15738 # as_fn_exit STATUS
15739 # -----------------
15740 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15741 as_fn_exit ()
15742 {
15743   set +e
15744   as_fn_set_status $1
15745   exit $1
15746 } # as_fn_exit
15747
15748 # as_fn_unset VAR
15749 # ---------------
15750 # Portably unset VAR.
15751 as_fn_unset ()
15752 {
15753   { eval $1=; unset $1;}
15754 }
15755 as_unset=as_fn_unset
15756 # as_fn_append VAR VALUE
15757 # ----------------------
15758 # Append the text in VALUE to the end of the definition contained in VAR. Take
15759 # advantage of any shell optimizations that allow amortized linear growth over
15760 # repeated appends, instead of the typical quadratic growth present in naive
15761 # implementations.
15762 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15763   eval 'as_fn_append ()
15764   {
15765     eval $1+=\$2
15766   }'
15767 else
15768   as_fn_append ()
15769   {
15770     eval $1=\$$1\$2
15771   }
15772 fi # as_fn_append
15773
15774 # as_fn_arith ARG...
15775 # ------------------
15776 # Perform arithmetic evaluation on the ARGs, and store the result in the
15777 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15778 # must be portable across $(()) and expr.
15779 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15780   eval 'as_fn_arith ()
15781   {
15782     as_val=$(( $* ))
15783   }'
15784 else
15785   as_fn_arith ()
15786   {
15787     as_val=`expr "$@" || test $? -eq 1`
15788   }
15789 fi # as_fn_arith
15790
15791
15792 if expr a : '\(a\)' >/dev/null 2>&1 &&
15793    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15794   as_expr=expr
15795 else
15796   as_expr=false
15797 fi
15798
15799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15800   as_basename=basename
15801 else
15802   as_basename=false
15803 fi
15804
15805 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15806   as_dirname=dirname
15807 else
15808   as_dirname=false
15809 fi
15810
15811 as_me=`$as_basename -- "$0" ||
15812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15813          X"$0" : 'X\(//\)$' \| \
15814          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15815 $as_echo X/"$0" |
15816     sed '/^.*\/\([^/][^/]*\)\/*$/{
15817             s//\1/
15818             q
15819           }
15820           /^X\/\(\/\/\)$/{
15821             s//\1/
15822             q
15823           }
15824           /^X\/\(\/\).*/{
15825             s//\1/
15826             q
15827           }
15828           s/.*/./; q'`
15829
15830 # Avoid depending upon Character Ranges.
15831 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15832 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15833 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15834 as_cr_digits='0123456789'
15835 as_cr_alnum=$as_cr_Letters$as_cr_digits
15836
15837 ECHO_C= ECHO_N= ECHO_T=
15838 case `echo -n x` in #(((((
15839 -n*)
15840   case `echo 'xy\c'` in
15841   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15842   xy)  ECHO_C='\c';;
15843   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15844        ECHO_T=' ';;
15845   esac;;
15846 *)
15847   ECHO_N='-n';;
15848 esac
15849
15850 rm -f conf$$ conf$$.exe conf$$.file
15851 if test -d conf$$.dir; then
15852   rm -f conf$$.dir/conf$$.file
15853 else
15854   rm -f conf$$.dir
15855   mkdir conf$$.dir 2>/dev/null
15856 fi
15857 if (echo >conf$$.file) 2>/dev/null; then
15858   if ln -s conf$$.file conf$$ 2>/dev/null; then
15859     as_ln_s='ln -s'
15860     # ... but there are two gotchas:
15861     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15862     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15863     # In both cases, we have to default to `cp -p'.
15864     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15865       as_ln_s='cp -p'
15866   elif ln conf$$.file conf$$ 2>/dev/null; then
15867     as_ln_s=ln
15868   else
15869     as_ln_s='cp -p'
15870   fi
15871 else
15872   as_ln_s='cp -p'
15873 fi
15874 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15875 rmdir conf$$.dir 2>/dev/null
15876
15877
15878 # as_fn_mkdir_p
15879 # -------------
15880 # Create "$as_dir" as a directory, including parents if necessary.
15881 as_fn_mkdir_p ()
15882 {
15883
15884   case $as_dir in #(
15885   -*) as_dir=./$as_dir;;
15886   esac
15887   test -d "$as_dir" || eval $as_mkdir_p || {
15888     as_dirs=
15889     while :; do
15890       case $as_dir in #(
15891       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15892       *) as_qdir=$as_dir;;
15893       esac
15894       as_dirs="'$as_qdir' $as_dirs"
15895       as_dir=`$as_dirname -- "$as_dir" ||
15896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15897          X"$as_dir" : 'X\(//\)[^/]' \| \
15898          X"$as_dir" : 'X\(//\)$' \| \
15899          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15900 $as_echo X"$as_dir" |
15901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15902             s//\1/
15903             q
15904           }
15905           /^X\(\/\/\)[^/].*/{
15906             s//\1/
15907             q
15908           }
15909           /^X\(\/\/\)$/{
15910             s//\1/
15911             q
15912           }
15913           /^X\(\/\).*/{
15914             s//\1/
15915             q
15916           }
15917           s/.*/./; q'`
15918       test -d "$as_dir" && break
15919     done
15920     test -z "$as_dirs" || eval "mkdir $as_dirs"
15921   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15922
15923
15924 } # as_fn_mkdir_p
15925 if mkdir -p . 2>/dev/null; then
15926   as_mkdir_p='mkdir -p "$as_dir"'
15927 else
15928   test -d ./-p && rmdir ./-p
15929   as_mkdir_p=false
15930 fi
15931
15932 if test -x / >/dev/null 2>&1; then
15933   as_test_x='test -x'
15934 else
15935   if ls -dL / >/dev/null 2>&1; then
15936     as_ls_L_option=L
15937   else
15938     as_ls_L_option=
15939   fi
15940   as_test_x='
15941     eval sh -c '\''
15942       if test -d "$1"; then
15943         test -d "$1/.";
15944       else
15945         case $1 in #(
15946         -*)set "./$1";;
15947         esac;
15948         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15949         ???[sx]*):;;*)false;;esac;fi
15950     '\'' sh
15951   '
15952 fi
15953 as_executable_p=$as_test_x
15954
15955 # Sed expression to map a string onto a valid CPP name.
15956 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15957
15958 # Sed expression to map a string onto a valid variable name.
15959 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15960
15961
15962 exec 6>&1
15963 ## ----------------------------------- ##
15964 ## Main body of $CONFIG_STATUS script. ##
15965 ## ----------------------------------- ##
15966 _ASEOF
15967 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15968
15969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15970 # Save the log message, to keep $0 and so on meaningful, and to
15971 # report actual input values of CONFIG_FILES etc. instead of their
15972 # values after options handling.
15973 ac_log="
15974 This file was extended by Moonshot-ui $as_me 0.1, which was
15975 generated by GNU Autoconf 2.67.  Invocation command line was
15976
15977   CONFIG_FILES    = $CONFIG_FILES
15978   CONFIG_HEADERS  = $CONFIG_HEADERS
15979   CONFIG_LINKS    = $CONFIG_LINKS
15980   CONFIG_COMMANDS = $CONFIG_COMMANDS
15981   $ $0 $@
15982
15983 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15984 "
15985
15986 _ACEOF
15987
15988 case $ac_config_files in *"
15989 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15990 esac
15991
15992 case $ac_config_headers in *"
15993 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15994 esac
15995
15996
15997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15998 # Files that config.status was made for.
15999 config_files="$ac_config_files"
16000 config_headers="$ac_config_headers"
16001 config_commands="$ac_config_commands"
16002
16003 _ACEOF
16004
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006 ac_cs_usage="\
16007 \`$as_me' instantiates files and other configuration actions
16008 from templates according to the current configuration.  Unless the files
16009 and actions are specified as TAGs, all are instantiated by default.
16010
16011 Usage: $0 [OPTION]... [TAG]...
16012
16013   -h, --help       print this help, then exit
16014   -V, --version    print version number and configuration settings, then exit
16015       --config     print configuration, then exit
16016   -q, --quiet, --silent
16017                    do not print progress messages
16018   -d, --debug      don't remove temporary files
16019       --recheck    update $as_me by reconfiguring in the same conditions
16020       --file=FILE[:TEMPLATE]
16021                    instantiate the configuration file FILE
16022       --header=FILE[:TEMPLATE]
16023                    instantiate the configuration header FILE
16024
16025 Configuration files:
16026 $config_files
16027
16028 Configuration headers:
16029 $config_headers
16030
16031 Configuration commands:
16032 $config_commands
16033
16034 Report bugs to <moonshot-community@jiscmail.ac.uk>."
16035
16036 _ACEOF
16037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16039 ac_cs_version="\\
16040 Moonshot-ui config.status 0.1
16041 configured by $0, generated by GNU Autoconf 2.67,
16042   with options \\"\$ac_cs_config\\"
16043
16044 Copyright (C) 2010 Free Software Foundation, Inc.
16045 This config.status script is free software; the Free Software Foundation
16046 gives unlimited permission to copy, distribute and modify it."
16047
16048 ac_pwd='$ac_pwd'
16049 srcdir='$srcdir'
16050 INSTALL='$INSTALL'
16051 MKDIR_P='$MKDIR_P'
16052 AWK='$AWK'
16053 test -n "\$AWK" || AWK=awk
16054 _ACEOF
16055
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 # The default lists apply if the user does not specify any file.
16058 ac_need_defaults=:
16059 while test $# != 0
16060 do
16061   case $1 in
16062   --*=?*)
16063     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16064     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16065     ac_shift=:
16066     ;;
16067   --*=)
16068     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16069     ac_optarg=
16070     ac_shift=:
16071     ;;
16072   *)
16073     ac_option=$1
16074     ac_optarg=$2
16075     ac_shift=shift
16076     ;;
16077   esac
16078
16079   case $ac_option in
16080   # Handling of the options.
16081   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16082     ac_cs_recheck=: ;;
16083   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16084     $as_echo "$ac_cs_version"; exit ;;
16085   --config | --confi | --conf | --con | --co | --c )
16086     $as_echo "$ac_cs_config"; exit ;;
16087   --debug | --debu | --deb | --de | --d | -d )
16088     debug=: ;;
16089   --file | --fil | --fi | --f )
16090     $ac_shift
16091     case $ac_optarg in
16092     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16093     '') as_fn_error $? "missing file argument" ;;
16094     esac
16095     as_fn_append CONFIG_FILES " '$ac_optarg'"
16096     ac_need_defaults=false;;
16097   --header | --heade | --head | --hea )
16098     $ac_shift
16099     case $ac_optarg in
16100     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16101     esac
16102     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16103     ac_need_defaults=false;;
16104   --he | --h)
16105     # Conflict between --help and --header
16106     as_fn_error $? "ambiguous option: \`$1'
16107 Try \`$0 --help' for more information.";;
16108   --help | --hel | -h )
16109     $as_echo "$ac_cs_usage"; exit ;;
16110   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16111   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16112     ac_cs_silent=: ;;
16113
16114   # This is an error.
16115   -*) as_fn_error $? "unrecognized option: \`$1'
16116 Try \`$0 --help' for more information." ;;
16117
16118   *) as_fn_append ac_config_targets " $1"
16119      ac_need_defaults=false ;;
16120
16121   esac
16122   shift
16123 done
16124
16125 ac_configure_extra_args=
16126
16127 if $ac_cs_silent; then
16128   exec 6>/dev/null
16129   ac_configure_extra_args="$ac_configure_extra_args --silent"
16130 fi
16131
16132 _ACEOF
16133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16134 if \$ac_cs_recheck; then
16135   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16136   shift
16137   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16138   CONFIG_SHELL='$SHELL'
16139   export CONFIG_SHELL
16140   exec "\$@"
16141 fi
16142
16143 _ACEOF
16144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16145 exec 5>>config.log
16146 {
16147   echo
16148   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16149 ## Running $as_me. ##
16150 _ASBOX
16151   $as_echo "$ac_log"
16152 } >&5
16153
16154 _ACEOF
16155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16156 #
16157 # INIT-COMMANDS
16158 #
16159 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16160
16161
16162 # The HP-UX ksh and POSIX shell print the target directory to stdout
16163 # if CDPATH is set.
16164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16165
16166 sed_quote_subst='$sed_quote_subst'
16167 double_quote_subst='$double_quote_subst'
16168 delay_variable_subst='$delay_variable_subst'
16169 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16170 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16171 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16172 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16173 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16174 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16175 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16176 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16177 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16178 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16179 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16180 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16181 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16182 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16183 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16184 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16185 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16186 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16187 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16188 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16189 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16190 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16191 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16192 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16193 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16194 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16195 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16196 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16197 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16198 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16199 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16200 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16201 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16202 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16203 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16204 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16205 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16206 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16207 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16208 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16209 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16210 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16211 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16212 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16213 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16214 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16215 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"`'
16216 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"`'
16217 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16218 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16219 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16220 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16221 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16222 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16223 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16224 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16225 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16226 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16227 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16228 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16229 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16230 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16231 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16232 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16233 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16234 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16235 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16236 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16237 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16238 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16239 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16240 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16241 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16242 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16243 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16244 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16245 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16246 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16247 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16248 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16249 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16250 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16251 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16252 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16253 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16254 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16255 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16256 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16257 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16258 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16259 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16260 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16261 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16262 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16263 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16264 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16265 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16266 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16267 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16268 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16269 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16270 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16271 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16272 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16273 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16274 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16275 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16276 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16277 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16278 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16280 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16281 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16282 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16283 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16284 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16285 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16286 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16287 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16288 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16289
16290 LTCC='$LTCC'
16291 LTCFLAGS='$LTCFLAGS'
16292 compiler='$compiler_DEFAULT'
16293
16294 # Quote evaled strings.
16295 for var in SED \
16296 GREP \
16297 EGREP \
16298 FGREP \
16299 LD \
16300 NM \
16301 LN_S \
16302 lt_SP2NL \
16303 lt_NL2SP \
16304 reload_flag \
16305 deplibs_check_method \
16306 file_magic_cmd \
16307 AR \
16308 AR_FLAGS \
16309 STRIP \
16310 RANLIB \
16311 CC \
16312 CFLAGS \
16313 compiler \
16314 lt_cv_sys_global_symbol_pipe \
16315 lt_cv_sys_global_symbol_to_cdecl \
16316 lt_cv_sys_global_symbol_to_c_name_address \
16317 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16318 SHELL \
16319 ECHO \
16320 lt_prog_compiler_no_builtin_flag \
16321 lt_prog_compiler_wl \
16322 lt_prog_compiler_pic \
16323 lt_prog_compiler_static \
16324 lt_cv_prog_compiler_c_o \
16325 need_locks \
16326 DSYMUTIL \
16327 NMEDIT \
16328 LIPO \
16329 OTOOL \
16330 OTOOL64 \
16331 shrext_cmds \
16332 export_dynamic_flag_spec \
16333 whole_archive_flag_spec \
16334 compiler_needs_object \
16335 with_gnu_ld \
16336 allow_undefined_flag \
16337 no_undefined_flag \
16338 hardcode_libdir_flag_spec \
16339 hardcode_libdir_flag_spec_ld \
16340 hardcode_libdir_separator \
16341 fix_srcfile_path \
16342 exclude_expsyms \
16343 include_expsyms \
16344 file_list_spec \
16345 variables_saved_for_relink \
16346 libname_spec \
16347 library_names_spec \
16348 soname_spec \
16349 finish_eval \
16350 old_striplib \
16351 striplib; do
16352     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16353     *[\\\\\\\`\\"\\\$]*)
16354       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16355       ;;
16356     *)
16357       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16358       ;;
16359     esac
16360 done
16361
16362 # Double-quote double-evaled strings.
16363 for var in reload_cmds \
16364 old_postinstall_cmds \
16365 old_postuninstall_cmds \
16366 old_archive_cmds \
16367 extract_expsyms_cmds \
16368 old_archive_from_new_cmds \
16369 old_archive_from_expsyms_cmds \
16370 archive_cmds \
16371 archive_expsym_cmds \
16372 module_cmds \
16373 module_expsym_cmds \
16374 export_symbols_cmds \
16375 prelink_cmds \
16376 postinstall_cmds \
16377 postuninstall_cmds \
16378 finish_cmds \
16379 sys_lib_search_path_spec \
16380 sys_lib_dlsearch_path_spec; do
16381     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16382     *[\\\\\\\`\\"\\\$]*)
16383       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16384       ;;
16385     *)
16386       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16387       ;;
16388     esac
16389 done
16390
16391 # Fix-up fallback echo if it was mangled by the above quoting rules.
16392 case \$lt_ECHO in
16393 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16394   ;;
16395 esac
16396
16397 ac_aux_dir='$ac_aux_dir'
16398 xsi_shell='$xsi_shell'
16399 lt_shell_append='$lt_shell_append'
16400
16401 # See if we are running on zsh, and set the options which allow our
16402 # commands through without removal of \ escapes INIT.
16403 if test -n "\${ZSH_VERSION+set}" ; then
16404    setopt NO_GLOB_SUBST
16405 fi
16406
16407
16408     PACKAGE='$PACKAGE'
16409     VERSION='$VERSION'
16410     TIMESTAMP='$TIMESTAMP'
16411     RM='$RM'
16412     ofile='$ofile'
16413
16414
16415
16416 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16417     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16418     # from automake < 1.5.
16419     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16420     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16421     LINGUAS="${LINGUAS-%UNSET%}"
16422
16423
16424 _ACEOF
16425
16426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16427
16428 # Handling of arguments.
16429 for ac_config_target in $ac_config_targets
16430 do
16431   case $ac_config_target in
16432     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16433     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16434     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16435     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16436     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16437     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16438     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
16439     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
16440     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
16441
16442   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16443   esac
16444 done
16445
16446
16447 # If the user did not use the arguments to specify the items to instantiate,
16448 # then the envvar interface is used.  Set only those that are not.
16449 # We use the long form for the default assignment because of an extremely
16450 # bizarre bug on SunOS 4.1.3.
16451 if $ac_need_defaults; then
16452   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16453   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16454   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16455 fi
16456
16457 # Have a temporary directory for convenience.  Make it in the build tree
16458 # simply because there is no reason against having it here, and in addition,
16459 # creating and moving files from /tmp can sometimes cause problems.
16460 # Hook for its removal unless debugging.
16461 # Note that there is a small window in which the directory will not be cleaned:
16462 # after its creation but before its name has been assigned to `$tmp'.
16463 $debug ||
16464 {
16465   tmp=
16466   trap 'exit_status=$?
16467   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16468 ' 0
16469   trap 'as_fn_exit 1' 1 2 13 15
16470 }
16471 # Create a (secure) tmp directory for tmp files.
16472
16473 {
16474   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16475   test -n "$tmp" && test -d "$tmp"
16476 }  ||
16477 {
16478   tmp=./conf$$-$RANDOM
16479   (umask 077 && mkdir "$tmp")
16480 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16481
16482 # Set up the scripts for CONFIG_FILES section.
16483 # No need to generate them if there are no CONFIG_FILES.
16484 # This happens for instance with `./config.status config.h'.
16485 if test -n "$CONFIG_FILES"; then
16486
16487
16488 ac_cr=`echo X | tr X '\015'`
16489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16490 # But we know of no other shell where ac_cr would be empty at this
16491 # point, so we can use a bashism as a fallback.
16492 if test "x$ac_cr" = x; then
16493   eval ac_cr=\$\'\\r\'
16494 fi
16495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16497   ac_cs_awk_cr='\\r'
16498 else
16499   ac_cs_awk_cr=$ac_cr
16500 fi
16501
16502 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16503 _ACEOF
16504
16505
16506 {
16507   echo "cat >conf$$subs.awk <<_ACEOF" &&
16508   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16509   echo "_ACEOF"
16510 } >conf$$subs.sh ||
16511   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16513 ac_delim='%!_!# '
16514 for ac_last_try in false false false false false :; do
16515   . ./conf$$subs.sh ||
16516     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16517
16518   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16519   if test $ac_delim_n = $ac_delim_num; then
16520     break
16521   elif $ac_last_try; then
16522     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16523   else
16524     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16525   fi
16526 done
16527 rm -f conf$$subs.sh
16528
16529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16530 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16531 _ACEOF
16532 sed -n '
16533 h
16534 s/^/S["/; s/!.*/"]=/
16535 p
16536 g
16537 s/^[^!]*!//
16538 :repl
16539 t repl
16540 s/'"$ac_delim"'$//
16541 t delim
16542 :nl
16543 h
16544 s/\(.\{148\}\)..*/\1/
16545 t more1
16546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16547 p
16548 n
16549 b repl
16550 :more1
16551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16552 p
16553 g
16554 s/.\{148\}//
16555 t nl
16556 :delim
16557 h
16558 s/\(.\{148\}\)..*/\1/
16559 t more2
16560 s/["\\]/\\&/g; s/^/"/; s/$/"/
16561 p
16562 b
16563 :more2
16564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16565 p
16566 g
16567 s/.\{148\}//
16568 t delim
16569 ' <conf$$subs.awk | sed '
16570 /^[^""]/{
16571   N
16572   s/\n//
16573 }
16574 ' >>$CONFIG_STATUS || ac_write_fail=1
16575 rm -f conf$$subs.awk
16576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577 _ACAWK
16578 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16579   for (key in S) S_is_set[key] = 1
16580   FS = "\a"
16581
16582 }
16583 {
16584   line = $ 0
16585   nfields = split(line, field, "@")
16586   substed = 0
16587   len = length(field[1])
16588   for (i = 2; i < nfields; i++) {
16589     key = field[i]
16590     keylen = length(key)
16591     if (S_is_set[key]) {
16592       value = S[key]
16593       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16594       len += length(value) + length(field[++i])
16595       substed = 1
16596     } else
16597       len += 1 + keylen
16598   }
16599
16600   print line
16601 }
16602
16603 _ACAWK
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16607   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16608 else
16609   cat
16610 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16611   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16612 _ACEOF
16613
16614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16616 # trailing colons and then remove the whole line if VPATH becomes empty
16617 # (actually we leave an empty line to preserve line numbers).
16618 if test "x$srcdir" = x.; then
16619   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16620 h
16621 s///
16622 s/^/:/
16623 s/[      ]*$/:/
16624 s/:\$(srcdir):/:/g
16625 s/:\${srcdir}:/:/g
16626 s/:@srcdir@:/:/g
16627 s/^:*//
16628 s/:*$//
16629 x
16630 s/\(=[   ]*\).*/\1/
16631 G
16632 s/\n//
16633 s/^[^=]*=[       ]*$//
16634 }'
16635 fi
16636
16637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16638 fi # test -n "$CONFIG_FILES"
16639
16640 # Set up the scripts for CONFIG_HEADERS section.
16641 # No need to generate them if there are no CONFIG_HEADERS.
16642 # This happens for instance with `./config.status Makefile'.
16643 if test -n "$CONFIG_HEADERS"; then
16644 cat >"$tmp/defines.awk" <<\_ACAWK ||
16645 BEGIN {
16646 _ACEOF
16647
16648 # Transform confdefs.h into an awk script `defines.awk', embedded as
16649 # here-document in config.status, that substitutes the proper values into
16650 # config.h.in to produce config.h.
16651
16652 # Create a delimiter string that does not exist in confdefs.h, to ease
16653 # handling of long lines.
16654 ac_delim='%!_!# '
16655 for ac_last_try in false false :; do
16656   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16657   if test -z "$ac_t"; then
16658     break
16659   elif $ac_last_try; then
16660     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16661   else
16662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16663   fi
16664 done
16665
16666 # For the awk script, D is an array of macro values keyed by name,
16667 # likewise P contains macro parameters if any.  Preserve backslash
16668 # newline sequences.
16669
16670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16671 sed -n '
16672 s/.\{148\}/&'"$ac_delim"'/g
16673 t rset
16674 :rset
16675 s/^[     ]*#[    ]*define[       ][      ]*/ /
16676 t def
16677 d
16678 :def
16679 s/\\$//
16680 t bsnl
16681 s/["\\]/\\&/g
16682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16683 D["\1"]=" \3"/p
16684 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16685 d
16686 :bsnl
16687 s/["\\]/\\&/g
16688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16689 D["\1"]=" \3\\\\\\n"\\/p
16690 t cont
16691 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16692 t cont
16693 d
16694 :cont
16695 n
16696 s/.\{148\}/&'"$ac_delim"'/g
16697 t clear
16698 :clear
16699 s/\\$//
16700 t bsnlc
16701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16702 d
16703 :bsnlc
16704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16705 b cont
16706 ' <confdefs.h | sed '
16707 s/'"$ac_delim"'/"\\\
16708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16709
16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711   for (key in D) D_is_set[key] = 1
16712   FS = "\a"
16713 }
16714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16715   line = \$ 0
16716   split(line, arg, " ")
16717   if (arg[1] == "#") {
16718     defundef = arg[2]
16719     mac1 = arg[3]
16720   } else {
16721     defundef = substr(arg[1], 2)
16722     mac1 = arg[2]
16723   }
16724   split(mac1, mac2, "(") #)
16725   macro = mac2[1]
16726   prefix = substr(line, 1, index(line, defundef) - 1)
16727   if (D_is_set[macro]) {
16728     # Preserve the white space surrounding the "#".
16729     print prefix "define", macro P[macro] D[macro]
16730     next
16731   } else {
16732     # Replace #undef with comments.  This is necessary, for example,
16733     # in the case of _POSIX_SOURCE, which is predefined and required
16734     # on some systems where configure will not decide to define it.
16735     if (defundef == "undef") {
16736       print "/*", prefix defundef, macro, "*/"
16737       next
16738     }
16739   }
16740 }
16741 { print }
16742 _ACAWK
16743 _ACEOF
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16746 fi # test -n "$CONFIG_HEADERS"
16747
16748
16749 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16750 shift
16751 for ac_tag
16752 do
16753   case $ac_tag in
16754   :[FHLC]) ac_mode=$ac_tag; continue;;
16755   esac
16756   case $ac_mode$ac_tag in
16757   :[FHL]*:*);;
16758   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16759   :[FH]-) ac_tag=-:-;;
16760   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16761   esac
16762   ac_save_IFS=$IFS
16763   IFS=:
16764   set x $ac_tag
16765   IFS=$ac_save_IFS
16766   shift
16767   ac_file=$1
16768   shift
16769
16770   case $ac_mode in
16771   :L) ac_source=$1;;
16772   :[FH])
16773     ac_file_inputs=
16774     for ac_f
16775     do
16776       case $ac_f in
16777       -) ac_f="$tmp/stdin";;
16778       *) # Look for the file first in the build tree, then in the source tree
16779          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16780          # because $ac_f cannot contain `:'.
16781          test -f "$ac_f" ||
16782            case $ac_f in
16783            [\\/$]*) false;;
16784            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16785            esac ||
16786            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16787       esac
16788       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16789       as_fn_append ac_file_inputs " '$ac_f'"
16790     done
16791
16792     # Let's still pretend it is `configure' which instantiates (i.e., don't
16793     # use $as_me), people would be surprised to read:
16794     #    /* config.h.  Generated by config.status.  */
16795     configure_input='Generated from '`
16796           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16797         `' by configure.'
16798     if test x"$ac_file" != x-; then
16799       configure_input="$ac_file.  $configure_input"
16800       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16801 $as_echo "$as_me: creating $ac_file" >&6;}
16802     fi
16803     # Neutralize special characters interpreted by sed in replacement strings.
16804     case $configure_input in #(
16805     *\&* | *\|* | *\\* )
16806        ac_sed_conf_input=`$as_echo "$configure_input" |
16807        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16808     *) ac_sed_conf_input=$configure_input;;
16809     esac
16810
16811     case $ac_tag in
16812     *:-:* | *:-) cat >"$tmp/stdin" \
16813       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16814     esac
16815     ;;
16816   esac
16817
16818   ac_dir=`$as_dirname -- "$ac_file" ||
16819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16820          X"$ac_file" : 'X\(//\)[^/]' \| \
16821          X"$ac_file" : 'X\(//\)$' \| \
16822          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16823 $as_echo X"$ac_file" |
16824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16825             s//\1/
16826             q
16827           }
16828           /^X\(\/\/\)[^/].*/{
16829             s//\1/
16830             q
16831           }
16832           /^X\(\/\/\)$/{
16833             s//\1/
16834             q
16835           }
16836           /^X\(\/\).*/{
16837             s//\1/
16838             q
16839           }
16840           s/.*/./; q'`
16841   as_dir="$ac_dir"; as_fn_mkdir_p
16842   ac_builddir=.
16843
16844 case "$ac_dir" in
16845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16846 *)
16847   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16848   # A ".." for each directory in $ac_dir_suffix.
16849   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16850   case $ac_top_builddir_sub in
16851   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16852   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16853   esac ;;
16854 esac
16855 ac_abs_top_builddir=$ac_pwd
16856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16857 # for backward compatibility:
16858 ac_top_builddir=$ac_top_build_prefix
16859
16860 case $srcdir in
16861   .)  # We are building in place.
16862     ac_srcdir=.
16863     ac_top_srcdir=$ac_top_builddir_sub
16864     ac_abs_top_srcdir=$ac_pwd ;;
16865   [\\/]* | ?:[\\/]* )  # Absolute name.
16866     ac_srcdir=$srcdir$ac_dir_suffix;
16867     ac_top_srcdir=$srcdir
16868     ac_abs_top_srcdir=$srcdir ;;
16869   *) # Relative name.
16870     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16871     ac_top_srcdir=$ac_top_build_prefix$srcdir
16872     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16873 esac
16874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16875
16876
16877   case $ac_mode in
16878   :F)
16879   #
16880   # CONFIG_FILE
16881   #
16882
16883   case $INSTALL in
16884   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16885   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16886   esac
16887   ac_MKDIR_P=$MKDIR_P
16888   case $MKDIR_P in
16889   [\\/$]* | ?:[\\/]* ) ;;
16890   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16891   esac
16892 _ACEOF
16893
16894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16895 # If the template does not know about datarootdir, expand it.
16896 # FIXME: This hack should be removed a few years after 2.60.
16897 ac_datarootdir_hack=; ac_datarootdir_seen=
16898 ac_sed_dataroot='
16899 /datarootdir/ {
16900   p
16901   q
16902 }
16903 /@datadir@/p
16904 /@docdir@/p
16905 /@infodir@/p
16906 /@localedir@/p
16907 /@mandir@/p'
16908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16909 *datarootdir*) ac_datarootdir_seen=yes;;
16910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16913 _ACEOF
16914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915   ac_datarootdir_hack='
16916   s&@datadir@&$datadir&g
16917   s&@docdir@&$docdir&g
16918   s&@infodir@&$infodir&g
16919   s&@localedir@&$localedir&g
16920   s&@mandir@&$mandir&g
16921   s&\\\${datarootdir}&$datarootdir&g' ;;
16922 esac
16923 _ACEOF
16924
16925 # Neutralize VPATH when `$srcdir' = `.'.
16926 # Shell code in configure.ac might set extrasub.
16927 # FIXME: do we really want to maintain this feature?
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929 ac_sed_extra="$ac_vpsub
16930 $extrasub
16931 _ACEOF
16932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16933 :t
16934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16935 s|@configure_input@|$ac_sed_conf_input|;t t
16936 s&@top_builddir@&$ac_top_builddir_sub&;t t
16937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16938 s&@srcdir@&$ac_srcdir&;t t
16939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16940 s&@top_srcdir@&$ac_top_srcdir&;t t
16941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16942 s&@builddir@&$ac_builddir&;t t
16943 s&@abs_builddir@&$ac_abs_builddir&;t t
16944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16945 s&@INSTALL@&$ac_INSTALL&;t t
16946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16947 $ac_datarootdir_hack
16948 "
16949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16950   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16951
16952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16953   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16954   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16956 which seems to be undefined.  Please make sure it is defined" >&5
16957 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16958 which seems to be undefined.  Please make sure it is defined" >&2;}
16959
16960   rm -f "$tmp/stdin"
16961   case $ac_file in
16962   -) cat "$tmp/out" && rm -f "$tmp/out";;
16963   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16964   esac \
16965   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16966  ;;
16967   :H)
16968   #
16969   # CONFIG_HEADER
16970   #
16971   if test x"$ac_file" != x-; then
16972     {
16973       $as_echo "/* $configure_input  */" \
16974       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16975     } >"$tmp/config.h" \
16976       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16977     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16978       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16979 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16980     else
16981       rm -f "$ac_file"
16982       mv "$tmp/config.h" "$ac_file" \
16983         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16984     fi
16985   else
16986     $as_echo "/* $configure_input  */" \
16987       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16988       || as_fn_error $? "could not create -" "$LINENO" 5
16989   fi
16990 # Compute "$ac_file"'s index in $config_headers.
16991 _am_arg="$ac_file"
16992 _am_stamp_count=1
16993 for _am_header in $config_headers :; do
16994   case $_am_header in
16995     $_am_arg | $_am_arg:* )
16996       break ;;
16997     * )
16998       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16999   esac
17000 done
17001 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17002 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17003          X"$_am_arg" : 'X\(//\)[^/]' \| \
17004          X"$_am_arg" : 'X\(//\)$' \| \
17005          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17006 $as_echo X"$_am_arg" |
17007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17008             s//\1/
17009             q
17010           }
17011           /^X\(\/\/\)[^/].*/{
17012             s//\1/
17013             q
17014           }
17015           /^X\(\/\/\)$/{
17016             s//\1/
17017             q
17018           }
17019           /^X\(\/\).*/{
17020             s//\1/
17021             q
17022           }
17023           s/.*/./; q'`/stamp-h$_am_stamp_count
17024  ;;
17025
17026   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17027 $as_echo "$as_me: executing $ac_file commands" >&6;}
17028  ;;
17029   esac
17030
17031
17032   case $ac_file$ac_mode in
17033     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17034   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17035   # are listed without --file.  Let's play safe and only enable the eval
17036   # if we detect the quoting.
17037   case $CONFIG_FILES in
17038   *\'*) eval set x "$CONFIG_FILES" ;;
17039   *)   set x $CONFIG_FILES ;;
17040   esac
17041   shift
17042   for mf
17043   do
17044     # Strip MF so we end up with the name of the file.
17045     mf=`echo "$mf" | sed -e 's/:.*$//'`
17046     # Check whether this is an Automake generated Makefile or not.
17047     # We used to match only the files named `Makefile.in', but
17048     # some people rename them; so instead we look at the file content.
17049     # Grep'ing the first line is not enough: some people post-process
17050     # each Makefile.in and add a new line on top of each file to say so.
17051     # Grep'ing the whole file is not good either: AIX grep has a line
17052     # limit of 2048, but all sed's we know have understand at least 4000.
17053     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17054       dirpart=`$as_dirname -- "$mf" ||
17055 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17056          X"$mf" : 'X\(//\)[^/]' \| \
17057          X"$mf" : 'X\(//\)$' \| \
17058          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17059 $as_echo X"$mf" |
17060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17061             s//\1/
17062             q
17063           }
17064           /^X\(\/\/\)[^/].*/{
17065             s//\1/
17066             q
17067           }
17068           /^X\(\/\/\)$/{
17069             s//\1/
17070             q
17071           }
17072           /^X\(\/\).*/{
17073             s//\1/
17074             q
17075           }
17076           s/.*/./; q'`
17077     else
17078       continue
17079     fi
17080     # Extract the definition of DEPDIR, am__include, and am__quote
17081     # from the Makefile without running `make'.
17082     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17083     test -z "$DEPDIR" && continue
17084     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17085     test -z "am__include" && continue
17086     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17087     # When using ansi2knr, U may be empty or an underscore; expand it
17088     U=`sed -n 's/^U = //p' < "$mf"`
17089     # Find all dependency output files, they are included files with
17090     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17091     # simplest approach to changing $(DEPDIR) to its actual value in the
17092     # expansion.
17093     for file in `sed -n "
17094       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17095          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17096       # Make sure the directory exists.
17097       test -f "$dirpart/$file" && continue
17098       fdir=`$as_dirname -- "$file" ||
17099 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17100          X"$file" : 'X\(//\)[^/]' \| \
17101          X"$file" : 'X\(//\)$' \| \
17102          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17103 $as_echo X"$file" |
17104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17105             s//\1/
17106             q
17107           }
17108           /^X\(\/\/\)[^/].*/{
17109             s//\1/
17110             q
17111           }
17112           /^X\(\/\/\)$/{
17113             s//\1/
17114             q
17115           }
17116           /^X\(\/\).*/{
17117             s//\1/
17118             q
17119           }
17120           s/.*/./; q'`
17121       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17122       # echo "creating $dirpart/$file"
17123       echo '# dummy' > "$dirpart/$file"
17124     done
17125   done
17126 }
17127  ;;
17128     "libtool":C)
17129
17130     # See if we are running on zsh, and set the options which allow our
17131     # commands through without removal of \ escapes.
17132     if test -n "${ZSH_VERSION+set}" ; then
17133       setopt NO_GLOB_SUBST
17134     fi
17135
17136     cfgfile="${ofile}T"
17137     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17138     $RM "$cfgfile"
17139
17140     cat <<_LT_EOF >> "$cfgfile"
17141 #! $SHELL
17142
17143 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17144 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17147 #
17148 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17149 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17150 #   Written by Gordon Matzigkeit, 1996
17151 #
17152 #   This file is part of GNU Libtool.
17153 #
17154 # GNU Libtool is free software; you can redistribute it and/or
17155 # modify it under the terms of the GNU General Public License as
17156 # published by the Free Software Foundation; either version 2 of
17157 # the License, or (at your option) any later version.
17158 #
17159 # As a special exception to the GNU General Public License,
17160 # if you distribute this file as part of a program or library that
17161 # is built using GNU Libtool, you may include this file under the
17162 # same distribution terms that you use for the rest of that program.
17163 #
17164 # GNU Libtool is distributed in the hope that it will be useful,
17165 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17167 # GNU General Public License for more details.
17168 #
17169 # You should have received a copy of the GNU General Public License
17170 # along with GNU Libtool; see the file COPYING.  If not, a copy
17171 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17172 # obtained by writing to the Free Software Foundation, Inc.,
17173 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17174
17175
17176 # The names of the tagged configurations supported by this script.
17177 available_tags=""
17178
17179 # ### BEGIN LIBTOOL CONFIG
17180
17181 # Which release of libtool.m4 was used?
17182 macro_version=$macro_version
17183 macro_revision=$macro_revision
17184
17185 # Assembler program.
17186 AS=$AS
17187
17188 # DLL creation program.
17189 DLLTOOL=$DLLTOOL
17190
17191 # Object dumper program.
17192 OBJDUMP=$OBJDUMP
17193
17194 # Whether or not to build shared libraries.
17195 build_libtool_libs=$enable_shared
17196
17197 # Whether or not to build static libraries.
17198 build_old_libs=$enable_static
17199
17200 # What type of objects to build.
17201 pic_mode=$pic_mode
17202
17203 # Whether or not to optimize for fast installation.
17204 fast_install=$enable_fast_install
17205
17206 # The host system.
17207 host_alias=$host_alias
17208 host=$host
17209 host_os=$host_os
17210
17211 # The build system.
17212 build_alias=$build_alias
17213 build=$build
17214 build_os=$build_os
17215
17216 # A sed program that does not truncate output.
17217 SED=$lt_SED
17218
17219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17220 Xsed="\$SED -e 1s/^X//"
17221
17222 # A grep program that handles long lines.
17223 GREP=$lt_GREP
17224
17225 # An ERE matcher.
17226 EGREP=$lt_EGREP
17227
17228 # A literal string matcher.
17229 FGREP=$lt_FGREP
17230
17231 # A BSD- or MS-compatible name lister.
17232 NM=$lt_NM
17233
17234 # Whether we need soft or hard links.
17235 LN_S=$lt_LN_S
17236
17237 # What is the maximum length of a command?
17238 max_cmd_len=$max_cmd_len
17239
17240 # Object file suffix (normally "o").
17241 objext=$ac_objext
17242
17243 # Executable file suffix (normally "").
17244 exeext=$exeext
17245
17246 # whether the shell understands "unset".
17247 lt_unset=$lt_unset
17248
17249 # turn spaces into newlines.
17250 SP2NL=$lt_lt_SP2NL
17251
17252 # turn newlines into spaces.
17253 NL2SP=$lt_lt_NL2SP
17254
17255 # How to create reloadable object files.
17256 reload_flag=$lt_reload_flag
17257 reload_cmds=$lt_reload_cmds
17258
17259 # Method to check whether dependent libraries are shared objects.
17260 deplibs_check_method=$lt_deplibs_check_method
17261
17262 # Command to use when deplibs_check_method == "file_magic".
17263 file_magic_cmd=$lt_file_magic_cmd
17264
17265 # The archiver.
17266 AR=$lt_AR
17267 AR_FLAGS=$lt_AR_FLAGS
17268
17269 # A symbol stripping program.
17270 STRIP=$lt_STRIP
17271
17272 # Commands used to install an old-style archive.
17273 RANLIB=$lt_RANLIB
17274 old_postinstall_cmds=$lt_old_postinstall_cmds
17275 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17276
17277 # A C compiler.
17278 LTCC=$lt_CC
17279
17280 # LTCC compiler flags.
17281 LTCFLAGS=$lt_CFLAGS
17282
17283 # Take the output of nm and produce a listing of raw symbols and C names.
17284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17285
17286 # Transform the output of nm in a proper C declaration.
17287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17288
17289 # Transform the output of nm in a C name address pair.
17290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17291
17292 # Transform the output of nm in a C name address pair when lib prefix is needed.
17293 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17294
17295 # The name of the directory that contains temporary libtool files.
17296 objdir=$objdir
17297
17298 # Shell to use when invoking shell scripts.
17299 SHELL=$lt_SHELL
17300
17301 # An echo program that does not interpret backslashes.
17302 ECHO=$lt_ECHO
17303
17304 # Used to examine libraries when file_magic_cmd begins with "file".
17305 MAGIC_CMD=$MAGIC_CMD
17306
17307 # Must we lock files when doing compilation?
17308 need_locks=$lt_need_locks
17309
17310 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17311 DSYMUTIL=$lt_DSYMUTIL
17312
17313 # Tool to change global to local symbols on Mac OS X.
17314 NMEDIT=$lt_NMEDIT
17315
17316 # Tool to manipulate fat objects and archives on Mac OS X.
17317 LIPO=$lt_LIPO
17318
17319 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17320 OTOOL=$lt_OTOOL
17321
17322 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17323 OTOOL64=$lt_OTOOL64
17324
17325 # Old archive suffix (normally "a").
17326 libext=$libext
17327
17328 # Shared library suffix (normally ".so").
17329 shrext_cmds=$lt_shrext_cmds
17330
17331 # The commands to extract the exported symbol list from a shared archive.
17332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17333
17334 # Variables whose values should be saved in libtool wrapper scripts and
17335 # restored at link time.
17336 variables_saved_for_relink=$lt_variables_saved_for_relink
17337
17338 # Do we need the "lib" prefix for modules?
17339 need_lib_prefix=$need_lib_prefix
17340
17341 # Do we need a version for libraries?
17342 need_version=$need_version
17343
17344 # Library versioning type.
17345 version_type=$version_type
17346
17347 # Shared library runtime path variable.
17348 runpath_var=$runpath_var
17349
17350 # Shared library path variable.
17351 shlibpath_var=$shlibpath_var
17352
17353 # Is shlibpath searched before the hard-coded library search path?
17354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17355
17356 # Format of library name prefix.
17357 libname_spec=$lt_libname_spec
17358
17359 # List of archive names.  First name is the real one, the rest are links.
17360 # The last name is the one that the linker finds with -lNAME
17361 library_names_spec=$lt_library_names_spec
17362
17363 # The coded name of the library, if different from the real name.
17364 soname_spec=$lt_soname_spec
17365
17366 # Command to use after installation of a shared archive.
17367 postinstall_cmds=$lt_postinstall_cmds
17368
17369 # Command to use after uninstallation of a shared archive.
17370 postuninstall_cmds=$lt_postuninstall_cmds
17371
17372 # Commands used to finish a libtool library installation in a directory.
17373 finish_cmds=$lt_finish_cmds
17374
17375 # As "finish_cmds", except a single script fragment to be evaled but
17376 # not shown.
17377 finish_eval=$lt_finish_eval
17378
17379 # Whether we should hardcode library paths into libraries.
17380 hardcode_into_libs=$hardcode_into_libs
17381
17382 # Compile-time system search path for libraries.
17383 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17384
17385 # Run-time system search path for libraries.
17386 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17387
17388 # Whether dlopen is supported.
17389 dlopen_support=$enable_dlopen
17390
17391 # Whether dlopen of programs is supported.
17392 dlopen_self=$enable_dlopen_self
17393
17394 # Whether dlopen of statically linked programs is supported.
17395 dlopen_self_static=$enable_dlopen_self_static
17396
17397 # Commands to strip libraries.
17398 old_striplib=$lt_old_striplib
17399 striplib=$lt_striplib
17400
17401
17402 # The linker used to build libraries.
17403 LD=$lt_LD
17404
17405 # Commands used to build an old-style archive.
17406 old_archive_cmds=$lt_old_archive_cmds
17407
17408 # A language specific compiler.
17409 CC=$lt_compiler
17410
17411 # Is the compiler the GNU compiler?
17412 with_gcc=$GCC
17413
17414 # Compiler flag to turn off builtin functions.
17415 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17416
17417 # How to pass a linker flag through the compiler.
17418 wl=$lt_lt_prog_compiler_wl
17419
17420 # Additional compiler flags for building library objects.
17421 pic_flag=$lt_lt_prog_compiler_pic
17422
17423 # Compiler flag to prevent dynamic linking.
17424 link_static_flag=$lt_lt_prog_compiler_static
17425
17426 # Does compiler simultaneously support -c and -o options?
17427 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17428
17429 # Whether or not to add -lc for building shared libraries.
17430 build_libtool_need_lc=$archive_cmds_need_lc
17431
17432 # Whether or not to disallow shared libs when runtime libs are static.
17433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17434
17435 # Compiler flag to allow reflexive dlopens.
17436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17437
17438 # Compiler flag to generate shared objects directly from archives.
17439 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17440
17441 # Whether the compiler copes with passing no objects directly.
17442 compiler_needs_object=$lt_compiler_needs_object
17443
17444 # Create an old-style archive from a shared archive.
17445 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17446
17447 # Create a temporary old-style archive to link instead of a shared archive.
17448 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17449
17450 # Commands used to build a shared archive.
17451 archive_cmds=$lt_archive_cmds
17452 archive_expsym_cmds=$lt_archive_expsym_cmds
17453
17454 # Commands used to build a loadable module if different from building
17455 # a shared archive.
17456 module_cmds=$lt_module_cmds
17457 module_expsym_cmds=$lt_module_expsym_cmds
17458
17459 # Whether we are building with GNU ld or not.
17460 with_gnu_ld=$lt_with_gnu_ld
17461
17462 # Flag that allows shared libraries with undefined symbols to be built.
17463 allow_undefined_flag=$lt_allow_undefined_flag
17464
17465 # Flag that enforces no undefined symbols.
17466 no_undefined_flag=$lt_no_undefined_flag
17467
17468 # Flag to hardcode \$libdir into a binary during linking.
17469 # This must work even if \$libdir does not exist
17470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17471
17472 # If ld is used when linking, flag to hardcode \$libdir into a binary
17473 # during linking.  This must work even if \$libdir does not exist.
17474 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17475
17476 # Whether we need a single "-rpath" flag with a separated argument.
17477 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17478
17479 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17480 # DIR into the resulting binary.
17481 hardcode_direct=$hardcode_direct
17482
17483 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17484 # DIR into the resulting binary and the resulting library dependency is
17485 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17486 # library is relocated.
17487 hardcode_direct_absolute=$hardcode_direct_absolute
17488
17489 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17490 # into the resulting binary.
17491 hardcode_minus_L=$hardcode_minus_L
17492
17493 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17494 # into the resulting binary.
17495 hardcode_shlibpath_var=$hardcode_shlibpath_var
17496
17497 # Set to "yes" if building a shared library automatically hardcodes DIR
17498 # into the library and all subsequent libraries and executables linked
17499 # against it.
17500 hardcode_automatic=$hardcode_automatic
17501
17502 # Set to yes if linker adds runtime paths of dependent libraries
17503 # to runtime path list.
17504 inherit_rpath=$inherit_rpath
17505
17506 # Whether libtool must link a program against all its dependency libraries.
17507 link_all_deplibs=$link_all_deplibs
17508
17509 # Fix the shell variable \$srcfile for the compiler.
17510 fix_srcfile_path=$lt_fix_srcfile_path
17511
17512 # Set to "yes" if exported symbols are required.
17513 always_export_symbols=$always_export_symbols
17514
17515 # The commands to list exported symbols.
17516 export_symbols_cmds=$lt_export_symbols_cmds
17517
17518 # Symbols that should not be listed in the preloaded symbols.
17519 exclude_expsyms=$lt_exclude_expsyms
17520
17521 # Symbols that must always be exported.
17522 include_expsyms=$lt_include_expsyms
17523
17524 # Commands necessary for linking programs (against libraries) with templates.
17525 prelink_cmds=$lt_prelink_cmds
17526
17527 # Specify filename containing input files.
17528 file_list_spec=$lt_file_list_spec
17529
17530 # How to hardcode a shared library path into an executable.
17531 hardcode_action=$hardcode_action
17532
17533 # ### END LIBTOOL CONFIG
17534
17535 _LT_EOF
17536
17537   case $host_os in
17538   aix3*)
17539     cat <<\_LT_EOF >> "$cfgfile"
17540 # AIX sometimes has problems with the GCC collect2 program.  For some
17541 # reason, if we set the COLLECT_NAMES environment variable, the problems
17542 # vanish in a puff of smoke.
17543 if test "X${COLLECT_NAMES+set}" != Xset; then
17544   COLLECT_NAMES=
17545   export COLLECT_NAMES
17546 fi
17547 _LT_EOF
17548     ;;
17549   esac
17550
17551
17552 ltmain="$ac_aux_dir/ltmain.sh"
17553
17554
17555   # We use sed instead of cat because bash on DJGPP gets confused if
17556   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17557   # text mode, it properly converts lines to CR/LF.  This bash problem
17558   # is reportedly fixed, but why not run on old versions too?
17559   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17560     || (rm -f "$cfgfile"; exit 1)
17561
17562   case $xsi_shell in
17563   yes)
17564     cat << \_LT_EOF >> "$cfgfile"
17565
17566 # func_dirname file append nondir_replacement
17567 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17568 # otherwise set result to NONDIR_REPLACEMENT.
17569 func_dirname ()
17570 {
17571   case ${1} in
17572     */*) func_dirname_result="${1%/*}${2}" ;;
17573     *  ) func_dirname_result="${3}" ;;
17574   esac
17575 }
17576
17577 # func_basename file
17578 func_basename ()
17579 {
17580   func_basename_result="${1##*/}"
17581 }
17582
17583 # func_dirname_and_basename file append nondir_replacement
17584 # perform func_basename and func_dirname in a single function
17585 # call:
17586 #   dirname:  Compute the dirname of FILE.  If nonempty,
17587 #             add APPEND to the result, otherwise set result
17588 #             to NONDIR_REPLACEMENT.
17589 #             value returned in "$func_dirname_result"
17590 #   basename: Compute filename of FILE.
17591 #             value retuned in "$func_basename_result"
17592 # Implementation must be kept synchronized with func_dirname
17593 # and func_basename. For efficiency, we do not delegate to
17594 # those functions but instead duplicate the functionality here.
17595 func_dirname_and_basename ()
17596 {
17597   case ${1} in
17598     */*) func_dirname_result="${1%/*}${2}" ;;
17599     *  ) func_dirname_result="${3}" ;;
17600   esac
17601   func_basename_result="${1##*/}"
17602 }
17603
17604 # func_stripname prefix suffix name
17605 # strip PREFIX and SUFFIX off of NAME.
17606 # PREFIX and SUFFIX must not contain globbing or regex special
17607 # characters, hashes, percent signs, but SUFFIX may contain a leading
17608 # dot (in which case that matches only a dot).
17609 func_stripname ()
17610 {
17611   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17612   # positional parameters, so assign one to ordinary parameter first.
17613   func_stripname_result=${3}
17614   func_stripname_result=${func_stripname_result#"${1}"}
17615   func_stripname_result=${func_stripname_result%"${2}"}
17616 }
17617
17618 # func_opt_split
17619 func_opt_split ()
17620 {
17621   func_opt_split_opt=${1%%=*}
17622   func_opt_split_arg=${1#*=}
17623 }
17624
17625 # func_lo2o object
17626 func_lo2o ()
17627 {
17628   case ${1} in
17629     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17630     *)    func_lo2o_result=${1} ;;
17631   esac
17632 }
17633
17634 # func_xform libobj-or-source
17635 func_xform ()
17636 {
17637   func_xform_result=${1%.*}.lo
17638 }
17639
17640 # func_arith arithmetic-term...
17641 func_arith ()
17642 {
17643   func_arith_result=$(( $* ))
17644 }
17645
17646 # func_len string
17647 # STRING may not start with a hyphen.
17648 func_len ()
17649 {
17650   func_len_result=${#1}
17651 }
17652
17653 _LT_EOF
17654     ;;
17655   *) # Bourne compatible functions.
17656     cat << \_LT_EOF >> "$cfgfile"
17657
17658 # func_dirname file append nondir_replacement
17659 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17660 # otherwise set result to NONDIR_REPLACEMENT.
17661 func_dirname ()
17662 {
17663   # Extract subdirectory from the argument.
17664   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17665   if test "X$func_dirname_result" = "X${1}"; then
17666     func_dirname_result="${3}"
17667   else
17668     func_dirname_result="$func_dirname_result${2}"
17669   fi
17670 }
17671
17672 # func_basename file
17673 func_basename ()
17674 {
17675   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17676 }
17677
17678
17679 # func_stripname prefix suffix name
17680 # strip PREFIX and SUFFIX off of NAME.
17681 # PREFIX and SUFFIX must not contain globbing or regex special
17682 # characters, hashes, percent signs, but SUFFIX may contain a leading
17683 # dot (in which case that matches only a dot).
17684 # func_strip_suffix prefix name
17685 func_stripname ()
17686 {
17687   case ${2} in
17688     .*) func_stripname_result=`$ECHO "X${3}" \
17689            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17690     *)  func_stripname_result=`$ECHO "X${3}" \
17691            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17692   esac
17693 }
17694
17695 # sed scripts:
17696 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17697 my_sed_long_arg='1s/^-[^=]*=//'
17698
17699 # func_opt_split
17700 func_opt_split ()
17701 {
17702   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17703   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17704 }
17705
17706 # func_lo2o object
17707 func_lo2o ()
17708 {
17709   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17710 }
17711
17712 # func_xform libobj-or-source
17713 func_xform ()
17714 {
17715   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17716 }
17717
17718 # func_arith arithmetic-term...
17719 func_arith ()
17720 {
17721   func_arith_result=`expr "$@"`
17722 }
17723
17724 # func_len string
17725 # STRING may not start with a hyphen.
17726 func_len ()
17727 {
17728   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17729 }
17730
17731 _LT_EOF
17732 esac
17733
17734 case $lt_shell_append in
17735   yes)
17736     cat << \_LT_EOF >> "$cfgfile"
17737
17738 # func_append var value
17739 # Append VALUE to the end of shell variable VAR.
17740 func_append ()
17741 {
17742   eval "$1+=\$2"
17743 }
17744 _LT_EOF
17745     ;;
17746   *)
17747     cat << \_LT_EOF >> "$cfgfile"
17748
17749 # func_append var value
17750 # Append VALUE to the end of shell variable VAR.
17751 func_append ()
17752 {
17753   eval "$1=\$$1\$2"
17754 }
17755
17756 _LT_EOF
17757     ;;
17758   esac
17759
17760
17761   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17762     || (rm -f "$cfgfile"; exit 1)
17763
17764   mv -f "$cfgfile" "$ofile" ||
17765     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17766   chmod +x "$ofile"
17767
17768  ;;
17769     "po-directories":C)
17770     for ac_file in $CONFIG_FILES; do
17771       # Support "outfile[:infile[:infile...]]"
17772       case "$ac_file" in
17773         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17774       esac
17775       # PO directories have a Makefile.in generated from Makefile.in.in.
17776       case "$ac_file" in */Makefile.in)
17777         # Adjust a relative srcdir.
17778         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17779         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17780         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17781         # In autoconf-2.13 it is called $ac_given_srcdir.
17782         # In autoconf-2.50 it is called $srcdir.
17783         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17784         case "$ac_given_srcdir" in
17785           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17786           /*) top_srcdir="$ac_given_srcdir" ;;
17787           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17788         esac
17789         # Treat a directory as a PO directory if and only if it has a
17790         # POTFILES.in file. This allows packages to have multiple PO
17791         # directories under different names or in different locations.
17792         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17793           rm -f "$ac_dir/POTFILES"
17794           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17795           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17796           POMAKEFILEDEPS="POTFILES.in"
17797           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17798           # on $ac_dir but don't depend on user-specified configuration
17799           # parameters.
17800           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17801             # The LINGUAS file contains the set of available languages.
17802             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17803               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17804             fi
17805             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17806             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17807             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17808             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17809           else
17810             # The set of available languages was given in configure.in.
17811             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17812             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17813           fi
17814           # Compute POFILES
17815           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17816           # Compute UPDATEPOFILES
17817           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17818           # Compute DUMMYPOFILES
17819           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17820           # Compute GMOFILES
17821           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17822           case "$ac_given_srcdir" in
17823             .) srcdirpre= ;;
17824             *) srcdirpre='$(srcdir)/' ;;
17825           esac
17826           POFILES=
17827           UPDATEPOFILES=
17828           DUMMYPOFILES=
17829           GMOFILES=
17830           for lang in $ALL_LINGUAS; do
17831             POFILES="$POFILES $srcdirpre$lang.po"
17832             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17833             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17834             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17835           done
17836           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17837           # environment variable.
17838           INST_LINGUAS=
17839           if test -n "$ALL_LINGUAS"; then
17840             for presentlang in $ALL_LINGUAS; do
17841               useit=no
17842               if test "%UNSET%" != "$LINGUAS"; then
17843                 desiredlanguages="$LINGUAS"
17844               else
17845                 desiredlanguages="$ALL_LINGUAS"
17846               fi
17847               for desiredlang in $desiredlanguages; do
17848                 # Use the presentlang catalog if desiredlang is
17849                 #   a. equal to presentlang, or
17850                 #   b. a variant of presentlang (because in this case,
17851                 #      presentlang can be used as a fallback for messages
17852                 #      which are not translated in the desiredlang catalog).
17853                 case "$desiredlang" in
17854                   "$presentlang"*) useit=yes;;
17855                 esac
17856               done
17857               if test $useit = yes; then
17858                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17859               fi
17860             done
17861           fi
17862           CATALOGS=
17863           if test -n "$INST_LINGUAS"; then
17864             for lang in $INST_LINGUAS; do
17865               CATALOGS="$CATALOGS $lang.gmo"
17866             done
17867           fi
17868           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17869           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"
17870           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17871             if test -f "$f"; then
17872               case "$f" in
17873                 *.orig | *.bak | *~) ;;
17874                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17875               esac
17876             fi
17877           done
17878         fi
17879         ;;
17880       esac
17881     done ;;
17882
17883   esac
17884 done # for ac_tag
17885
17886
17887 as_fn_exit 0
17888 _ACEOF
17889 ac_clean_files=$ac_clean_files_save
17890
17891 test $ac_write_fail = 0 ||
17892   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17893
17894
17895 # configure is writing to config.log, and then calls config.status.
17896 # config.status does its own redirection, appending to config.log.
17897 # Unfortunately, on DOS this fails, as config.log is still kept open
17898 # by configure, so config.status won't be able to write to it; its
17899 # output is simply discarded.  So we exec the FD to /dev/null,
17900 # effectively closing config.log, so it can be properly (re)opened and
17901 # appended to by config.status.  When coming back to configure, we
17902 # need to make the FD available again.
17903 if test "$no_create" != yes; then
17904   ac_cs_success=:
17905   ac_config_status_args=
17906   test "$silent" = yes &&
17907     ac_config_status_args="$ac_config_status_args --quiet"
17908   exec 5>/dev/null
17909   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17910   exec 5>>config.log
17911   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17912   # would make configure fail if this is the last instruction.
17913   $ac_cs_success || as_fn_exit 1
17914 fi
17915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17916   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17918 fi
17919