resetting manifest requested domain to floor
[platform/upstream/inputproto.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for InputProto 2.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247   fi
248   exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266   { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275   return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283   set +e
284   as_fn_set_status $1
285   exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294   case $as_dir in #(
295   -*) as_dir=./$as_dir;;
296   esac
297   test -d "$as_dir" || eval $as_mkdir_p || {
298     as_dirs=
299     while :; do
300       case $as_dir in #(
301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302       *) as_qdir=$as_dir;;
303       esac
304       as_dirs="'$as_qdir' $as_dirs"
305       as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307          X"$as_dir" : 'X\(//\)[^/]' \| \
308          X"$as_dir" : 'X\(//\)$' \| \
309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)[^/].*/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\).*/{
324             s//\1/
325             q
326           }
327           s/.*/./; q'`
328       test -d "$as_dir" && break
329     done
330     test -z "$as_dirs" || eval "mkdir $as_dirs"
331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342   eval 'as_fn_append ()
343   {
344     eval $1+=\$2
345   }'
346 else
347   as_fn_append ()
348   {
349     eval $1=\$$1\$2
350   }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359   eval 'as_fn_arith ()
360   {
361     as_val=$(( $* ))
362   }'
363 else
364   as_fn_arith ()
365   {
366     as_val=`expr "$@" || test $? -eq 1`
367   }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378   as_status=$1; test $as_status -eq 0 && as_status=1
379   if test "$4"; then
380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382   fi
383   $as_echo "$as_me: error: $2" >&2
384   as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
389   as_expr=expr
390 else
391   as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395   as_basename=basename
396 else
397   as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401   as_dirname=dirname
402 else
403   as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408          X"$0" : 'X\(//\)$' \| \
409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411     sed '/^.*\/\([^/][^/]*\)\/*$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\/\)$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\).*/{
420             s//\1/
421             q
422           }
423           s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456   # Don't try to exec as it changes $[0], causing all sort of problems
457   # (the dirname of $[0] is not the place where we might find the
458   # original and so on.  Autoconf is especially sensitive to this).
459   . "./$as_me.lineno"
460   # Exit status is that of the last command.
461   exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467   case `echo 'xy\c'` in
468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469   xy)  ECHO_C='\c';;
470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471        ECHO_T=' ';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479   rm -f conf$$.dir/conf$$.file
480 else
481   rm -f conf$$.dir
482   mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485   if ln -s conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s='ln -s'
487     # ... but there are two gotchas:
488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490     # In both cases, we have to default to `cp -p'.
491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492       as_ln_s='cp -p'
493   elif ln conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s=ln
495   else
496     as_ln_s='cp -p'
497   fi
498 else
499   as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505   as_mkdir_p='mkdir -p "$as_dir"'
506 else
507   test -d ./-p && rmdir ./-p
508   as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512   as_test_x='test -x'
513 else
514   if ls -dL / >/dev/null 2>&1; then
515     as_ls_L_option=L
516   else
517     as_ls_L_option=
518   fi
519   as_test_x='
520     eval sh -c '\''
521       if test -d "$1"; then
522         test -d "$1/.";
523       else
524         case $1 in #(
525         -*)set "./$1";;
526         esac;
527         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528         ???[sx]*):;;*)false;;esac;fi
529     '\'' sh
530   '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 as_awk_strverscmp='
541   # Use only awk features that work with 7th edition Unix awk (1978).
542   # My, what an old awk you have, Mr. Solaris!
543   END {
544     while (length(v1) && length(v2)) {
545       # Set d1 to be the next thing to compare from v1, and likewise for d2.
546       # Normally this is a single character, but if v1 and v2 contain digits,
547       # compare them as integers and fractions as strverscmp does.
548       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549         # Split v1 and v2 into their leading digit string components d1 and d2,
550         # and advance v1 and v2 past the leading digit strings.
551         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555         if (d1 ~ /^0/) {
556           if (d2 ~ /^0/) {
557             # Compare two fractions.
558             while (d1 ~ /^0/ && d2 ~ /^0/) {
559               d1 = substr(d1, 2); len1--
560               d2 = substr(d2, 2); len2--
561             }
562             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563               # The two components differ in length, and the common prefix
564               # contains only leading zeros.  Consider the longer to be less.
565               d1 = -len1
566               d2 = -len2
567             } else {
568               # Otherwise, compare as strings.
569               d1 = "x" d1
570               d2 = "x" d2
571             }
572           } else {
573             # A fraction is less than an integer.
574             exit 1
575           }
576         } else {
577           if (d2 ~ /^0/) {
578             # An integer is greater than a fraction.
579             exit 2
580           } else {
581             # Compare two integers.
582             d1 += 0
583             d2 += 0
584           }
585         }
586       } else {
587         # The normal case, without worrying about digits.
588         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590       }
591       if (d1 < d2) exit 1
592       if (d1 > d2) exit 2
593     }
594     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595     # which mishandles some comparisons of empty strings to integers.
596     if (length(v2)) exit 1
597     if (length(v1)) exit 2
598   }
599 '
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='InputProto'
623 PACKAGE_TARNAME='inputproto'
624 PACKAGE_VERSION='2.2'
625 PACKAGE_STRING='InputProto 2.2'
626 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stdio.h>
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef STDC_HEADERS
639 # include <stdlib.h>
640 # include <stddef.h>
641 #else
642 # ifdef HAVE_STDLIB_H
643 #  include <stdlib.h>
644 # endif
645 #endif
646 #ifdef HAVE_STRING_H
647 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
648 #  include <memory.h>
649 # endif
650 # include <string.h>
651 #endif
652 #ifdef HAVE_STRINGS_H
653 # include <strings.h>
654 #endif
655 #ifdef HAVE_INTTYPES_H
656 # include <inttypes.h>
657 #endif
658 #ifdef HAVE_STDINT_H
659 # include <stdint.h>
660 #endif
661 #ifdef HAVE_UNISTD_H
662 # include <unistd.h>
663 #endif"
664
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 LIBOBJS
669 HAVE_ASCIIDOC_FALSE
670 HAVE_ASCIIDOC_TRUE
671 ASCIIDOC
672 ENABLE_SPECS_FALSE
673 ENABLE_SPECS_TRUE
674 AM_BACKSLASH
675 AM_DEFAULT_VERBOSITY
676 MAN_SUBSTS
677 XORG_MAN_PAGE
678 ADMIN_MAN_DIR
679 DRIVER_MAN_DIR
680 MISC_MAN_DIR
681 FILE_MAN_DIR
682 LIB_MAN_DIR
683 APP_MAN_DIR
684 ADMIN_MAN_SUFFIX
685 DRIVER_MAN_SUFFIX
686 MISC_MAN_SUFFIX
687 FILE_MAN_SUFFIX
688 LIB_MAN_SUFFIX
689 APP_MAN_SUFFIX
690 SED
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 INSTALL_CMD
700 PKG_CONFIG_LIBDIR
701 PKG_CONFIG_PATH
702 PKG_CONFIG
703 CHANGELOG_CMD
704 STRICT_CFLAGS
705 CWARNFLAGS
706 EGREP
707 GREP
708 CPP
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 MAINT
726 MAINTAINER_MODE_FALSE
727 MAINTAINER_MODE_TRUE
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_maintainer_mode
793 enable_dependency_tracking
794 enable_strict_compilation
795 enable_silent_rules
796 enable_specs
797 with_asciidoc
798 '
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP
808 PKG_CONFIG
809 PKG_CONFIG_PATH
810 PKG_CONFIG_LIBDIR
811 ASCIIDOC'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *=)   ac_optarg= ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151       as_fn_error $? "invalid package name: $ac_useropt"
1152     ac_useropt_orig=$ac_useropt
1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154     case $ac_user_opts in
1155       *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159          ac_unrecognized_sep=', ';;
1160     esac
1161     eval with_$ac_useropt=\$ac_optarg ;;
1162
1163   -without-* | --without-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       as_fn_error $? "invalid package name: $ac_useropt"
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=no ;;
1178
1179   --x)
1180     # Obsolete; use --with-x.
1181     with_x=yes ;;
1182
1183   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184   | --x-incl | --x-inc | --x-in | --x-i)
1185     ac_prev=x_includes ;;
1186   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188     x_includes=$ac_optarg ;;
1189
1190   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192     ac_prev=x_libraries ;;
1193   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195     x_libraries=$ac_optarg ;;
1196
1197   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199     ;;
1200
1201   *=*)
1202     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203     # Reject names that are not valid shell variable names.
1204     case $ac_envvar in #(
1205       '' | [0-9]* | *[!_$as_cr_alnum]* )
1206       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207     esac
1208     eval $ac_envvar=\$ac_optarg
1209     export $ac_envvar ;;
1210
1211   *)
1212     # FIXME: should be removed in autoconf 3.0.
1213     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217     ;;
1218
1219   esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224   as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228   case $enable_option_checking in
1229     no) ;;
1230     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232   esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237                 datadir sysconfdir sharedstatedir localstatedir includedir \
1238                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239                 libdir localedir mandir
1240 do
1241   eval ac_val=\$$ac_var
1242   # Remove trailing slashes.
1243   case $ac_val in
1244     */ )
1245       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246       eval $ac_var=\$ac_val;;
1247   esac
1248   # Be sure to have absolute directory names.
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265   if test "x$build_alias" = x; then
1266     cross_compiling=maybe
1267     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1268     If a cross compiler is detected then cross compile mode will be used" >&2
1269   elif test "x$build_alias" != "x$host_alias"; then
1270     cross_compiling=yes
1271   fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283   as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285   as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290   ac_srcdir_defaulted=yes
1291   # Try the directory containing this script, then the parent directory.
1292   ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294          X"$as_myself" : 'X\(//\)[^/]' \| \
1295          X"$as_myself" : 'X\(//\)$' \| \
1296          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)[^/].*/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\/\)$/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\).*/{
1311             s//\1/
1312             q
1313           }
1314           s/.*/./; q'`
1315   srcdir=$ac_confdir
1316   if test ! -r "$srcdir/$ac_unique_file"; then
1317     srcdir=..
1318   fi
1319 else
1320   ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329         pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332   srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_env_${ac_var}_value=\$${ac_var}
1343   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351   # Omit some internal or obsolete options to make the list less imposing.
1352   # This message is too long to be a string in the A/UX 3.1 sh.
1353   cat <<_ACEOF
1354 \`configure' configures InputProto 2.2 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364   -h, --help              display this help and exit
1365       --help=short        display options specific to this package
1366       --help=recursive    display the short help of all the included packages
1367   -V, --version           display version information and exit
1368   -q, --quiet, --silent   do not print \`checking ...' messages
1369       --cache-file=FILE   cache test results in FILE [disabled]
1370   -C, --config-cache      alias for \`--cache-file=config.cache'
1371   -n, --no-create         do not create output files
1372       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375   --prefix=PREFIX         install architecture-independent files in PREFIX
1376                           [$ac_default_prefix]
1377   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                           [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388   --bindir=DIR            user executables [EPREFIX/bin]
1389   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390   --libexecdir=DIR        program executables [EPREFIX/libexec]
1391   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394   --libdir=DIR            object code libraries [EPREFIX/lib]
1395   --includedir=DIR        C header files [PREFIX/include]
1396   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1397   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1398   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1399   --infodir=DIR           info documentation [DATAROOTDIR/info]
1400   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1401   --mandir=DIR            man documentation [DATAROOTDIR/man]
1402   --docdir=DIR            documentation root [DATAROOTDIR/doc/inputproto]
1403   --htmldir=DIR           html documentation [DOCDIR]
1404   --dvidir=DIR            dvi documentation [DOCDIR]
1405   --pdfdir=DIR            pdf documentation [DOCDIR]
1406   --psdir=DIR             ps documentation [DOCDIR]
1407 _ACEOF
1408
1409   cat <<\_ACEOF
1410
1411 Program names:
1412   --program-prefix=PREFIX            prepend PREFIX to installed program names
1413   --program-suffix=SUFFIX            append SUFFIX to installed program names
1414   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1415
1416 System types:
1417   --build=BUILD     configure for building on BUILD [guessed]
1418   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423   case $ac_init_help in
1424      short | recursive ) echo "Configuration of InputProto 2.2:";;
1425    esac
1426   cat <<\_ACEOF
1427
1428 Optional Features:
1429   --disable-option-checking  ignore unrecognized --enable/--with options
1430   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432   --enable-maintainer-mode  enable make rules and dependencies not useful
1433                           (and sometimes confusing) to the casual installer
1434   --disable-dependency-tracking  speeds up one-time build
1435   --enable-dependency-tracking   do not reject slow dependency extractors
1436   --enable-strict-compilation
1437                           Enable all warnings from compiler and make them
1438                           errors (default: disabled)
1439   --enable-silent-rules          less verbose build output (undo: `make V=1')
1440   --disable-silent-rules         verbose build output (undo: `make V=0')
1441   --enable-specs          Enable building the specs (default: yes)
1442
1443 Optional Packages:
1444   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446   --with-asciidoc         Use asciidoc to regenerate documentation (default:
1447                           auto)
1448
1449 Some influential environment variables:
1450   CC          C compiler command
1451   CFLAGS      C compiler flags
1452   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453               nonstandard directory <lib dir>
1454   LIBS        libraries to pass to the linker, e.g. -l<library>
1455   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456               you have headers in a nonstandard directory <include dir>
1457   CPP         C preprocessor
1458   PKG_CONFIG  path to pkg-config utility
1459   PKG_CONFIG_PATH
1460               directories to add to pkg-config's search path
1461   PKG_CONFIG_LIBDIR
1462               path overriding pkg-config's built-in search path
1463   ASCIIDOC    Path to asciidoc command
1464
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1467
1468 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474   # If there are subdirs, report their specific --help.
1475   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476     test -d "$ac_dir" ||
1477       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478       continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 InputProto configure 2.2
1532 generated by GNU Autoconf 2.68
1533
1534 Copyright (C) 2010 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538   exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551   rm -f conftest.$ac_objext
1552   if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555   *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559   (eval "$ac_compile") 2>conftest.err
1560   ac_status=$?
1561   if test -s conftest.err; then
1562     grep -v '^ *+' conftest.err >conftest.er1
1563     cat conftest.er1 >&5
1564     mv -f conftest.er1 conftest.err
1565   fi
1566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567   test $ac_status = 0; } && {
1568          test -z "$ac_c_werror_flag" ||
1569          test ! -s conftest.err
1570        } && test -s conftest.$ac_objext; then :
1571   ac_retval=0
1572 else
1573   $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576         ac_retval=1
1577 fi
1578   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579   as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_compile
1582
1583 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1584 # ---------------------------------------------
1585 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1586 # accordingly.
1587 ac_fn_c_check_decl ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   as_decl_name=`echo $2|sed 's/ *(.*//'`
1591   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1593 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1594 if eval \${$3+:} false; then :
1595   $as_echo_n "(cached) " >&6
1596 else
1597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h.  */
1599 $4
1600 int
1601 main ()
1602 {
1603 #ifndef $as_decl_name
1604 #ifdef __cplusplus
1605   (void) $as_decl_use;
1606 #else
1607   (void) $as_decl_name;
1608 #endif
1609 #endif
1610
1611   ;
1612   return 0;
1613 }
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616   eval "$3=yes"
1617 else
1618   eval "$3=no"
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 fi
1622 eval ac_res=\$$3
1623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_c_check_decl
1628
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643   ac_status=$?
1644   if test -s conftest.err; then
1645     grep -v '^ *+' conftest.err >conftest.er1
1646     cat conftest.er1 >&5
1647     mv -f conftest.er1 conftest.err
1648   fi
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } > conftest.i && {
1651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652          test ! -s conftest.err
1653        }; then :
1654   ac_retval=0
1655 else
1656   $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659     ac_retval=1
1660 fi
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662   as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_cpp
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_link") 2>&5
1681   ac_status=$?
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684   { { case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_try") 2>&5
1691   ac_status=$?
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; }; }; then :
1694   ac_retval=0
1695 else
1696   $as_echo "$as_me: program exited with status $ac_status" >&5
1697        $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700        ac_retval=$ac_status
1701 fi
1702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718   $as_echo_n "(cached) " >&6
1719 else
1720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726   eval "$3=yes"
1727 else
1728   eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738 cat >config.log <<_ACEOF
1739 This file contains any messages produced by compilers while
1740 running configure, to aid debugging if configure makes a mistake.
1741
1742 It was created by InputProto $as_me 2.2, which was
1743 generated by GNU Autoconf 2.68.  Invocation command line was
1744
1745   $ $0 $@
1746
1747 _ACEOF
1748 exec 5>>config.log
1749 {
1750 cat <<_ASUNAME
1751 ## --------- ##
1752 ## Platform. ##
1753 ## --------- ##
1754
1755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1756 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1757 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1758 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1759 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760
1761 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1762 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1763
1764 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1765 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1766 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1767 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1768 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1769 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1770 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1771
1772 _ASUNAME
1773
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779     $as_echo "PATH: $as_dir"
1780   done
1781 IFS=$as_save_IFS
1782
1783 } >&5
1784
1785 cat >&5 <<_ACEOF
1786
1787
1788 ## ----------- ##
1789 ## Core tests. ##
1790 ## ----------- ##
1791
1792 _ACEOF
1793
1794
1795 # Keep a trace of the command line.
1796 # Strip out --no-create and --no-recursion so they do not pile up.
1797 # Strip out --silent because we don't want to record it for future runs.
1798 # Also quote any args containing shell meta-characters.
1799 # Make two passes to allow for proper duplicate-argument suppression.
1800 ac_configure_args=
1801 ac_configure_args0=
1802 ac_configure_args1=
1803 ac_must_keep_next=false
1804 for ac_pass in 1 2
1805 do
1806   for ac_arg
1807   do
1808     case $ac_arg in
1809     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1810     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1811     | -silent | --silent | --silen | --sile | --sil)
1812       continue ;;
1813     *\'*)
1814       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815     esac
1816     case $ac_pass in
1817     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1818     2)
1819       as_fn_append ac_configure_args1 " '$ac_arg'"
1820       if test $ac_must_keep_next = true; then
1821         ac_must_keep_next=false # Got value, back to normal.
1822       else
1823         case $ac_arg in
1824           *=* | --config-cache | -C | -disable-* | --disable-* \
1825           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1826           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1827           | -with-* | --with-* | -without-* | --without-* | --x)
1828             case "$ac_configure_args0 " in
1829               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830             esac
1831             ;;
1832           -* ) ac_must_keep_next=true ;;
1833         esac
1834       fi
1835       as_fn_append ac_configure_args " '$ac_arg'"
1836       ;;
1837     esac
1838   done
1839 done
1840 { ac_configure_args0=; unset ac_configure_args0;}
1841 { ac_configure_args1=; unset ac_configure_args1;}
1842
1843 # When interrupted or exit'd, cleanup temporary files, and complete
1844 # config.log.  We remove comments because anyway the quotes in there
1845 # would cause problems or look ugly.
1846 # WARNING: Use '\'' to represent an apostrophe within the trap.
1847 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1848 trap 'exit_status=$?
1849   # Save into config.log some information that might help in debugging.
1850   {
1851     echo
1852
1853     $as_echo "## ---------------- ##
1854 ## Cache variables. ##
1855 ## ---------------- ##"
1856     echo
1857     # The following way of writing the cache mishandles newlines in values,
1858 (
1859   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860     eval ac_val=\$$ac_var
1861     case $ac_val in #(
1862     *${as_nl}*)
1863       case $ac_var in #(
1864       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1866       esac
1867       case $ac_var in #(
1868       _ | IFS | as_nl) ;; #(
1869       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1870       *) { eval $ac_var=; unset $ac_var;} ;;
1871       esac ;;
1872     esac
1873   done
1874   (set) 2>&1 |
1875     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876     *${as_nl}ac_space=\ *)
1877       sed -n \
1878         "s/'\''/'\''\\\\'\'''\''/g;
1879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880       ;; #(
1881     *)
1882       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883       ;;
1884     esac |
1885     sort
1886 )
1887     echo
1888
1889     $as_echo "## ----------------- ##
1890 ## Output variables. ##
1891 ## ----------------- ##"
1892     echo
1893     for ac_var in $ac_subst_vars
1894     do
1895       eval ac_val=\$$ac_var
1896       case $ac_val in
1897       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898       esac
1899       $as_echo "$ac_var='\''$ac_val'\''"
1900     done | sort
1901     echo
1902
1903     if test -n "$ac_subst_files"; then
1904       $as_echo "## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##"
1907       echo
1908       for ac_var in $ac_subst_files
1909       do
1910         eval ac_val=\$$ac_var
1911         case $ac_val in
1912         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913         esac
1914         $as_echo "$ac_var='\''$ac_val'\''"
1915       done | sort
1916       echo
1917     fi
1918
1919     if test -s confdefs.h; then
1920       $as_echo "## ----------- ##
1921 ## confdefs.h. ##
1922 ## ----------- ##"
1923       echo
1924       cat confdefs.h
1925       echo
1926     fi
1927     test "$ac_signal" != 0 &&
1928       $as_echo "$as_me: caught signal $ac_signal"
1929     $as_echo "$as_me: exit $exit_status"
1930   } >&5
1931   rm -f core *.core core.conftest.* &&
1932     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1933     exit $exit_status
1934 ' 0
1935 for ac_signal in 1 2 13 15; do
1936   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1937 done
1938 ac_signal=0
1939
1940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1941 rm -f -r conftest* confdefs.h
1942
1943 $as_echo "/* confdefs.h */" > confdefs.h
1944
1945 # Predefined preprocessor variables.
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_NAME "$PACKAGE_NAME"
1949 _ACEOF
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1953 _ACEOF
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1957 _ACEOF
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_STRING "$PACKAGE_STRING"
1961 _ACEOF
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965 _ACEOF
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_URL "$PACKAGE_URL"
1969 _ACEOF
1970
1971
1972 # Let the site file select an alternate cache file if it wants to.
1973 # Prefer an explicitly selected file to automatically selected ones.
1974 ac_site_file1=NONE
1975 ac_site_file2=NONE
1976 if test -n "$CONFIG_SITE"; then
1977   # We do not want a PATH search for config.site.
1978   case $CONFIG_SITE in #((
1979     -*)  ac_site_file1=./$CONFIG_SITE;;
1980     */*) ac_site_file1=$CONFIG_SITE;;
1981     *)   ac_site_file1=./$CONFIG_SITE;;
1982   esac
1983 elif test "x$prefix" != xNONE; then
1984   ac_site_file1=$prefix/share/config.site
1985   ac_site_file2=$prefix/etc/config.site
1986 else
1987   ac_site_file1=$ac_default_prefix/share/config.site
1988   ac_site_file2=$ac_default_prefix/etc/config.site
1989 fi
1990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1991 do
1992   test "x$ac_site_file" = xNONE && continue
1993   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1994     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1996     sed 's/^/| /' "$ac_site_file" >&5
1997     . "$ac_site_file" \
1998       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 as_fn_error $? "failed to load site script $ac_site_file
2001 See \`config.log' for more details" "$LINENO" 5; }
2002   fi
2003 done
2004
2005 if test -r "$cache_file"; then
2006   # Some versions of bash will fail to source /dev/null (special files
2007   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2008   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2010 $as_echo "$as_me: loading cache $cache_file" >&6;}
2011     case $cache_file in
2012       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013       *)                      . "./$cache_file";;
2014     esac
2015   fi
2016 else
2017   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2018 $as_echo "$as_me: creating cache $cache_file" >&6;}
2019   >$cache_file
2020 fi
2021
2022 # Check that the precious variables saved in the cache have kept the same
2023 # value.
2024 ac_cache_corrupted=false
2025 for ac_var in $ac_precious_vars; do
2026   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027   eval ac_new_set=\$ac_env_${ac_var}_set
2028   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029   eval ac_new_val=\$ac_env_${ac_var}_value
2030   case $ac_old_set,$ac_new_set in
2031     set,)
2032       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034       ac_cache_corrupted=: ;;
2035     ,set)
2036       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038       ac_cache_corrupted=: ;;
2039     ,);;
2040     *)
2041       if test "x$ac_old_val" != "x$ac_new_val"; then
2042         # differences in whitespace do not lead to failure.
2043         ac_old_val_w=`echo x $ac_old_val`
2044         ac_new_val_w=`echo x $ac_new_val`
2045         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048           ac_cache_corrupted=:
2049         else
2050           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052           eval $ac_var=\$ac_old_val
2053         fi
2054         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2055 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2056         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2057 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2058       fi;;
2059   esac
2060   # Pass precious variables to config.status.
2061   if test "$ac_new_set" = set; then
2062     case $ac_new_val in
2063     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064     *) ac_arg=$ac_var=$ac_new_val ;;
2065     esac
2066     case " $ac_configure_args " in
2067       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2068       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2069     esac
2070   fi
2071 done
2072 if $ac_cache_corrupted; then
2073   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2078 fi
2079 ## -------------------- ##
2080 ## Main body of script. ##
2081 ## -------------------- ##
2082
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
2089
2090 am__api_version='1.11'
2091
2092 ac_aux_dir=
2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2094   if test -f "$ac_dir/install-sh"; then
2095     ac_aux_dir=$ac_dir
2096     ac_install_sh="$ac_aux_dir/install-sh -c"
2097     break
2098   elif test -f "$ac_dir/install.sh"; then
2099     ac_aux_dir=$ac_dir
2100     ac_install_sh="$ac_aux_dir/install.sh -c"
2101     break
2102   elif test -f "$ac_dir/shtool"; then
2103     ac_aux_dir=$ac_dir
2104     ac_install_sh="$ac_aux_dir/shtool install -c"
2105     break
2106   fi
2107 done
2108 if test -z "$ac_aux_dir"; then
2109   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2110 fi
2111
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2119
2120
2121 # Find a good install program.  We prefer a C program (faster),
2122 # so one script is as good as another.  But avoid the broken or
2123 # incompatible versions:
2124 # SysV /etc/install, /usr/sbin/install
2125 # SunOS /usr/etc/install
2126 # IRIX /sbin/install
2127 # AIX /bin/install
2128 # AmigaOS /C/install, which installs bootblocks on floppy discs
2129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2132 # OS/2's system install, which has a completely different semantic
2133 # ./install, which can be erroneously created by make from ./install.sh.
2134 # Reject install programs that cannot install multiple files.
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2136 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2137 if test -z "$INSTALL"; then
2138 if ${ac_cv_path_install+:} false; then :
2139   $as_echo_n "(cached) " >&6
2140 else
2141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146     # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in #((
2148   ./ | .// | /[cC]/* | \
2149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2151   /usr/ucb/* ) ;;
2152   *)
2153     # OSF1 and SCO ODT 3.0 have their own names for install.
2154     # Don't use installbsd from OSF since it installs stuff as root
2155     # by default.
2156     for ac_prog in ginstall scoinst install; do
2157       for ac_exec_ext in '' $ac_executable_extensions; do
2158         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159           if test $ac_prog = install &&
2160             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161             # AIX install.  It has an incompatible calling convention.
2162             :
2163           elif test $ac_prog = install &&
2164             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # program-specific install script used by HP pwplus--don't use.
2166             :
2167           else
2168             rm -rf conftest.one conftest.two conftest.dir
2169             echo one > conftest.one
2170             echo two > conftest.two
2171             mkdir conftest.dir
2172             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2173               test -s conftest.one && test -s conftest.two &&
2174               test -s conftest.dir/conftest.one &&
2175               test -s conftest.dir/conftest.two
2176             then
2177               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178               break 3
2179             fi
2180           fi
2181         fi
2182       done
2183     done
2184     ;;
2185 esac
2186
2187   done
2188 IFS=$as_save_IFS
2189
2190 rm -rf conftest.one conftest.two conftest.dir
2191
2192 fi
2193   if test "${ac_cv_path_install+set}" = set; then
2194     INSTALL=$ac_cv_path_install
2195   else
2196     # As a last resort, use the slow shell script.  Don't cache a
2197     # value for INSTALL within a source directory, because that will
2198     # break other packages using the cache if that directory is
2199     # removed, or if the value is a relative name.
2200     INSTALL=$ac_install_sh
2201   fi
2202 fi
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2204 $as_echo "$INSTALL" >&6; }
2205
2206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207 # It thinks the first close brace ends the variable substitution.
2208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
2210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
2212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2215 $as_echo_n "checking whether build environment is sane... " >&6; }
2216 # Just in case
2217 sleep 1
2218 echo timestamp > conftest.file
2219 # Reject unsafe characters in $srcdir or the absolute working directory
2220 # name.  Accept space and tab only in the latter.
2221 am_lf='
2222 '
2223 case `pwd` in
2224   *[\\\"\#\$\&\'\`$am_lf]*)
2225     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2226 esac
2227 case $srcdir in
2228   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2229     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2230 esac
2231
2232 # Do `set' in a subshell so we don't clobber the current shell's
2233 # arguments.  Must try -L first in case configure is actually a
2234 # symlink; some systems play weird games with the mod time of symlinks
2235 # (eg FreeBSD returns the mod time of the symlink's containing
2236 # directory).
2237 if (
2238    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2239    if test "$*" = "X"; then
2240       # -L didn't work.
2241       set X `ls -t "$srcdir/configure" conftest.file`
2242    fi
2243    rm -f conftest.file
2244    if test "$*" != "X $srcdir/configure conftest.file" \
2245       && test "$*" != "X conftest.file $srcdir/configure"; then
2246
2247       # If neither matched, then we have a broken ls.  This can happen
2248       # if, for instance, CONFIG_SHELL is bash and it inherits a
2249       # broken ls alias from the environment.  This has actually
2250       # happened.  Such a system could not be considered "sane".
2251       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2252 alias in your environment" "$LINENO" 5
2253    fi
2254
2255    test "$2" = conftest.file
2256    )
2257 then
2258    # Ok.
2259    :
2260 else
2261    as_fn_error $? "newly created file is older than distributed files!
2262 Check your system clock" "$LINENO" 5
2263 fi
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2265 $as_echo "yes" >&6; }
2266 test "$program_prefix" != NONE &&
2267   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2268 # Use a double $ so make ignores it.
2269 test "$program_suffix" != NONE &&
2270   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2271 # Double any \ or $.
2272 # By default was `s,x,x', remove it if useless.
2273 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2274 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2275
2276 # expand $ac_aux_dir to an absolute path
2277 am_aux_dir=`cd $ac_aux_dir && pwd`
2278
2279 if test x"${MISSING+set}" != xset; then
2280   case $am_aux_dir in
2281   *\ * | *\     *)
2282     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2283   *)
2284     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2285   esac
2286 fi
2287 # Use eval to expand $SHELL
2288 if eval "$MISSING --run true"; then
2289   am_missing_run="$MISSING --run "
2290 else
2291   am_missing_run=
2292   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2293 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2294 fi
2295
2296 if test x"${install_sh}" != xset; then
2297   case $am_aux_dir in
2298   *\ * | *\     *)
2299     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2300   *)
2301     install_sh="\${SHELL} $am_aux_dir/install-sh"
2302   esac
2303 fi
2304
2305 # Installed binaries are usually stripped using `strip' when the user
2306 # run `make install-strip'.  However `strip' might not be the right
2307 # tool to use in cross-compilation environments, therefore Automake
2308 # will honor the `STRIP' environment variable to overrule this program.
2309 if test "$cross_compiling" != no; then
2310   if test -n "$ac_tool_prefix"; then
2311   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}strip; ac_word=$2
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if ${ac_cv_prog_STRIP+:} false; then :
2316   $as_echo_n "(cached) " >&6
2317 else
2318   if test -n "$STRIP"; then
2319   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326     for ac_exec_ext in '' $ac_executable_extensions; do
2327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333   done
2334 IFS=$as_save_IFS
2335
2336 fi
2337 fi
2338 STRIP=$ac_cv_prog_STRIP
2339 if test -n "$STRIP"; then
2340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2341 $as_echo "$STRIP" >&6; }
2342 else
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344 $as_echo "no" >&6; }
2345 fi
2346
2347
2348 fi
2349 if test -z "$ac_cv_prog_STRIP"; then
2350   ac_ct_STRIP=$STRIP
2351   # Extract the first word of "strip", so it can be a program name with args.
2352 set dummy strip; ac_word=$2
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2356   $as_echo_n "(cached) " >&6
2357 else
2358   if test -n "$ac_ct_STRIP"; then
2359   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364   IFS=$as_save_IFS
2365   test -z "$as_dir" && as_dir=.
2366     for ac_exec_ext in '' $ac_executable_extensions; do
2367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368     ac_cv_prog_ac_ct_STRIP="strip"
2369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2370     break 2
2371   fi
2372 done
2373   done
2374 IFS=$as_save_IFS
2375
2376 fi
2377 fi
2378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2379 if test -n "$ac_ct_STRIP"; then
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2381 $as_echo "$ac_ct_STRIP" >&6; }
2382 else
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384 $as_echo "no" >&6; }
2385 fi
2386
2387   if test "x$ac_ct_STRIP" = x; then
2388     STRIP=":"
2389   else
2390     case $cross_compiling:$ac_tool_warned in
2391 yes:)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396     STRIP=$ac_ct_STRIP
2397   fi
2398 else
2399   STRIP="$ac_cv_prog_STRIP"
2400 fi
2401
2402 fi
2403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2404
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2406 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2407 if test -z "$MKDIR_P"; then
2408   if ${ac_cv_path_mkdir+:} false; then :
2409   $as_echo_n "(cached) " >&6
2410 else
2411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416     for ac_prog in mkdir gmkdir; do
2417          for ac_exec_ext in '' $ac_executable_extensions; do
2418            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2419            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2420              'mkdir (GNU coreutils) '* | \
2421              'mkdir (coreutils) '* | \
2422              'mkdir (fileutils) '4.1*)
2423                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2424                break 3;;
2425            esac
2426          done
2427        done
2428   done
2429 IFS=$as_save_IFS
2430
2431 fi
2432
2433   test -d ./--version && rmdir ./--version
2434   if test "${ac_cv_path_mkdir+set}" = set; then
2435     MKDIR_P="$ac_cv_path_mkdir -p"
2436   else
2437     # As a last resort, use the slow shell script.  Don't cache a
2438     # value for MKDIR_P within a source directory, because that will
2439     # break other packages using the cache if that directory is
2440     # removed, or if the value is a relative name.
2441     MKDIR_P="$ac_install_sh -d"
2442   fi
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2445 $as_echo "$MKDIR_P" >&6; }
2446
2447 mkdir_p="$MKDIR_P"
2448 case $mkdir_p in
2449   [\\/$]* | ?:[\\/]*) ;;
2450   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2451 esac
2452
2453 for ac_prog in gawk mawk nawk awk
2454 do
2455   # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458 $as_echo_n "checking for $ac_word... " >&6; }
2459 if ${ac_cv_prog_AWK+:} false; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   if test -n "$AWK"; then
2463   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470     for ac_exec_ext in '' $ac_executable_extensions; do
2471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472     ac_cv_prog_AWK="$ac_prog"
2473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477   done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 AWK=$ac_cv_prog_AWK
2483 if test -n "$AWK"; then
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2485 $as_echo "$AWK" >&6; }
2486 else
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2488 $as_echo "no" >&6; }
2489 fi
2490
2491
2492   test -n "$AWK" && break
2493 done
2494
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2496 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2497 set x ${MAKE-make}
2498 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2499 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2500   $as_echo_n "(cached) " >&6
2501 else
2502   cat >conftest.make <<\_ACEOF
2503 SHELL = /bin/sh
2504 all:
2505         @echo '@@@%%%=$(MAKE)=@@@%%%'
2506 _ACEOF
2507 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2508 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2509   *@@@%%%=?*=@@@%%%*)
2510     eval ac_cv_prog_make_${ac_make}_set=yes;;
2511   *)
2512     eval ac_cv_prog_make_${ac_make}_set=no;;
2513 esac
2514 rm -f conftest.make
2515 fi
2516 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2518 $as_echo "yes" >&6; }
2519   SET_MAKE=
2520 else
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522 $as_echo "no" >&6; }
2523   SET_MAKE="MAKE=${MAKE-make}"
2524 fi
2525
2526 rm -rf .tst 2>/dev/null
2527 mkdir .tst 2>/dev/null
2528 if test -d .tst; then
2529   am__leading_dot=.
2530 else
2531   am__leading_dot=_
2532 fi
2533 rmdir .tst 2>/dev/null
2534
2535 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2536   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2537   # is not polluted with repeated "-I."
2538   am__isrc=' -I$(srcdir)'
2539   # test to see if srcdir already configured
2540   if test -f $srcdir/config.status; then
2541     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2542   fi
2543 fi
2544
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547   if (cygpath --version) >/dev/null 2>/dev/null; then
2548     CYGPATH_W='cygpath -w'
2549   else
2550     CYGPATH_W=echo
2551   fi
2552 fi
2553
2554
2555 # Define the identity of the package.
2556  PACKAGE='inputproto'
2557  VERSION='2.2'
2558
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE "$PACKAGE"
2562 _ACEOF
2563
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define VERSION "$VERSION"
2567 _ACEOF
2568
2569 # Some tools Automake needs.
2570
2571 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2572
2573
2574 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2575
2576
2577 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2578
2579
2580 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2581
2582
2583 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2584
2585 # We need awk for the "check" target.  The system "awk" is bad on
2586 # some platforms.
2587 # Always define AMTAR for backward compatibility.
2588
2589 AMTAR=${AMTAR-"${am_missing_run}tar"}
2590
2591 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2592
2593
2594
2595
2596
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2599 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2600     # Check whether --enable-maintainer-mode was given.
2601 if test "${enable_maintainer_mode+set}" = set; then :
2602   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2603 else
2604   USE_MAINTAINER_MODE=no
2605 fi
2606
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2608 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2609    if test $USE_MAINTAINER_MODE = yes; then
2610   MAINTAINER_MODE_TRUE=
2611   MAINTAINER_MODE_FALSE='#'
2612 else
2613   MAINTAINER_MODE_TRUE='#'
2614   MAINTAINER_MODE_FALSE=
2615 fi
2616
2617   MAINT=$MAINTAINER_MODE_TRUE
2618
2619
2620
2621 # Require xorg-macros: XORG_WITH_ASCIIDOC
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633 DEPDIR="${am__leading_dot}deps"
2634
2635 ac_config_commands="$ac_config_commands depfiles"
2636
2637
2638 am_make=${MAKE-make}
2639 cat > confinc << 'END'
2640 am__doit:
2641         @echo this is the am__doit target
2642 .PHONY: am__doit
2643 END
2644 # If we don't find an include directive, just comment out the code.
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2646 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2647 am__include="#"
2648 am__quote=
2649 _am_result=none
2650 # First try GNU make style include.
2651 echo "include confinc" > confmf
2652 # Ignore all kinds of additional output from `make'.
2653 case `$am_make -s -f confmf 2> /dev/null` in #(
2654 *the\ am__doit\ target*)
2655   am__include=include
2656   am__quote=
2657   _am_result=GNU
2658   ;;
2659 esac
2660 # Now try BSD make style include.
2661 if test "$am__include" = "#"; then
2662    echo '.include "confinc"' > confmf
2663    case `$am_make -s -f confmf 2> /dev/null` in #(
2664    *the\ am__doit\ target*)
2665      am__include=.include
2666      am__quote="\""
2667      _am_result=BSD
2668      ;;
2669    esac
2670 fi
2671
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2674 $as_echo "$_am_result" >&6; }
2675 rm -f confinc confmf
2676
2677 # Check whether --enable-dependency-tracking was given.
2678 if test "${enable_dependency_tracking+set}" = set; then :
2679   enableval=$enable_dependency_tracking;
2680 fi
2681
2682 if test "x$enable_dependency_tracking" != xno; then
2683   am_depcomp="$ac_aux_dir/depcomp"
2684   AMDEPBACKSLASH='\'
2685 fi
2686  if test "x$enable_dependency_tracking" != xno; then
2687   AMDEP_TRUE=
2688   AMDEP_FALSE='#'
2689 else
2690   AMDEP_TRUE='#'
2691   AMDEP_FALSE=
2692 fi
2693
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test -n "$ac_tool_prefix"; then
2701   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_CC+:} false; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   if test -n "$CC"; then
2709   ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716     for ac_exec_ext in '' $ac_executable_extensions; do
2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723   done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$ac_cv_prog_CC"; then
2740   ac_ct_CC=$CC
2741   # Extract the first word of "gcc", so it can be a program name with args.
2742 set dummy gcc; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$ac_ct_CC"; then
2749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756     for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_ac_ct_CC="gcc"
2759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763   done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771 $as_echo "$ac_ct_CC" >&6; }
2772 else
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777   if test "x$ac_ct_CC" = x; then
2778     CC=""
2779   else
2780     case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786     CC=$ac_ct_CC
2787   fi
2788 else
2789   CC="$ac_cv_prog_CC"
2790 fi
2791
2792 if test -z "$CC"; then
2793           if test -n "$ac_tool_prefix"; then
2794     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}cc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_CC+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   if test -n "$CC"; then
2802   ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807   IFS=$as_save_IFS
2808   test -z "$as_dir" && as_dir=.
2809     for ac_exec_ext in '' $ac_executable_extensions; do
2810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811     ac_cv_prog_CC="${ac_tool_prefix}cc"
2812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813     break 2
2814   fi
2815 done
2816   done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831   fi
2832 fi
2833 if test -z "$CC"; then
2834   # Extract the first word of "cc", so it can be a program name with args.
2835 set dummy cc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_CC+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   if test -n "$CC"; then
2842   ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844   ac_prog_rejected=no
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850     for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853        ac_prog_rejected=yes
2854        continue
2855      fi
2856     ac_cv_prog_CC="cc"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 if test $ac_prog_rejected = yes; then
2865   # We found a bogon in the path, so make sure we never use it.
2866   set dummy $ac_cv_prog_CC
2867   shift
2868   if test $# != 0; then
2869     # We chose a different compiler from the bogus one.
2870     # However, it has the same basename, so the bogon will be chosen
2871     # first if we set CC to just the basename; use the full file name.
2872     shift
2873     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2874   fi
2875 fi
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888 fi
2889 if test -z "$CC"; then
2890   if test -n "$ac_tool_prefix"; then
2891   for ac_prog in cl.exe
2892   do
2893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_CC+:} false; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   if test -n "$CC"; then
2901   ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908     for ac_exec_ext in '' $ac_executable_extensions; do
2909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912     break 2
2913   fi
2914 done
2915   done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2928
2929
2930     test -n "$CC" && break
2931   done
2932 fi
2933 if test -z "$CC"; then
2934   ac_ct_CC=$CC
2935   for ac_prog in cl.exe
2936 do
2937   # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy $ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   if test -n "$ac_ct_CC"; then
2945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952     for ac_exec_ext in '' $ac_executable_extensions; do
2953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954     ac_cv_prog_ac_ct_CC="$ac_prog"
2955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959   done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974   test -n "$ac_ct_CC" && break
2975 done
2976
2977   if test "x$ac_ct_CC" = x; then
2978     CC=""
2979   else
2980     case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986     CC=$ac_ct_CC
2987   fi
2988 fi
2989
2990 fi
2991
2992
2993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 as_fn_error $? "no acceptable C compiler found in \$PATH
2996 See \`config.log' for more details" "$LINENO" 5; }
2997
2998 # Provide some information about the compiler.
2999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3000 set X $ac_compile
3001 ac_compiler=$2
3002 for ac_option in --version -v -V -qversion; do
3003   { { ac_try="$ac_compiler $ac_option >&5"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3011   ac_status=$?
3012   if test -s conftest.err; then
3013     sed '10a\
3014 ... rest of stderr output deleted ...
3015          10q' conftest.err >conftest.er1
3016     cat conftest.er1 >&5
3017   fi
3018   rm -f conftest.er1 conftest.err
3019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020   test $ac_status = 0; }
3021 done
3022
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h.  */
3025
3026 int
3027 main ()
3028 {
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 ac_clean_files_save=$ac_clean_files
3035 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3036 # Try to create an executable without -o first, disregard a.out.
3037 # It will help us diagnose broken compilers, and finding out an intuition
3038 # of exeext.
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3040 $as_echo_n "checking whether the C compiler works... " >&6; }
3041 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042
3043 # The possible output files:
3044 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045
3046 ac_rmfiles=
3047 for ac_file in $ac_files
3048 do
3049   case $ac_file in
3050     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3052   esac
3053 done
3054 rm -f $ac_rmfiles
3055
3056 if { { ac_try="$ac_link_default"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063   (eval "$ac_link_default") 2>&5
3064   ac_status=$?
3065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066   test $ac_status = 0; }; then :
3067   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3068 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3069 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3070 # so that the user can short-circuit this test for compilers unknown to
3071 # Autoconf.
3072 for ac_file in $ac_files ''
3073 do
3074   test -f "$ac_file" || continue
3075   case $ac_file in
3076     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077         ;;
3078     [ab].out )
3079         # We found the default executable, but exeext='' is most
3080         # certainly right.
3081         break;;
3082     *.* )
3083         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084         then :; else
3085            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086         fi
3087         # We set ac_cv_exeext here because the later test for it is not
3088         # safe: cross compilers may not add the suffix if given an `-o'
3089         # argument, so we may need to know it at that point already.
3090         # Even if this section looks crufty: it has the advantage of
3091         # actually working.
3092         break;;
3093     * )
3094         break;;
3095   esac
3096 done
3097 test "$ac_cv_exeext" = no && ac_cv_exeext=
3098
3099 else
3100   ac_file=''
3101 fi
3102 if test -z "$ac_file"; then :
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 $as_echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error 77 "C compiler cannot create executables
3111 See \`config.log' for more details" "$LINENO" 5; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; }
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3117 $as_echo_n "checking for C compiler default output file name... " >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119 $as_echo "$ac_file" >&6; }
3120 ac_exeext=$ac_cv_exeext
3121
3122 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3123 ac_clean_files=$ac_clean_files_save
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3125 $as_echo_n "checking for suffix of executables... " >&6; }
3126 if { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133   (eval "$ac_link") 2>&5
3134   ac_status=$?
3135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136   test $ac_status = 0; }; then :
3137   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3138 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3139 # work properly (i.e., refer to `conftest.exe'), while it won't with
3140 # `rm'.
3141 for ac_file in conftest.exe conftest conftest.*; do
3142   test -f "$ac_file" || continue
3143   case $ac_file in
3144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146           break;;
3147     * ) break;;
3148   esac
3149 done
3150 else
3151   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3154 See \`config.log' for more details" "$LINENO" 5; }
3155 fi
3156 rm -f conftest conftest$ac_cv_exeext
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158 $as_echo "$ac_cv_exeext" >&6; }
3159
3160 rm -f conftest.$ac_ext
3161 EXEEXT=$ac_cv_exeext
3162 ac_exeext=$EXEEXT
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h.  */
3165 #include <stdio.h>
3166 int
3167 main ()
3168 {
3169 FILE *f = fopen ("conftest.out", "w");
3170  return ferror (f) || fclose (f) != 0;
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 ac_clean_files="$ac_clean_files conftest.out"
3177 # Check that the compiler produces executables we can run.  If not, either
3178 # the compiler is broken, or we cross compile.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3180 $as_echo_n "checking whether we are cross compiling... " >&6; }
3181 if test "$cross_compiling" != yes; then
3182   { { ac_try="$ac_link"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189   (eval "$ac_link") 2>&5
3190   ac_status=$?
3191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192   test $ac_status = 0; }
3193   if { ac_try='./conftest$ac_cv_exeext'
3194   { { case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200   (eval "$ac_try") 2>&5
3201   ac_status=$?
3202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203   test $ac_status = 0; }; }; then
3204     cross_compiling=no
3205   else
3206     if test "$cross_compiling" = maybe; then
3207         cross_compiling=yes
3208     else
3209         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "cannot run C compiled programs.
3212 If you meant to cross compile, use \`--host'.
3213 See \`config.log' for more details" "$LINENO" 5; }
3214     fi
3215   fi
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3218 $as_echo "$cross_compiling" >&6; }
3219
3220 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3221 ac_clean_files=$ac_clean_files_save
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3223 $as_echo_n "checking for suffix of object files... " >&6; }
3224 if ${ac_cv_objext+:} false; then :
3225   $as_echo_n "(cached) " >&6
3226 else
3227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h.  */
3229
3230 int
3231 main ()
3232 {
3233
3234   ;
3235   return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.o conftest.obj
3239 if { { ac_try="$ac_compile"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246   (eval "$ac_compile") 2>&5
3247   ac_status=$?
3248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249   test $ac_status = 0; }; then :
3250   for ac_file in conftest.o conftest.obj conftest.*; do
3251   test -f "$ac_file" || continue;
3252   case $ac_file in
3253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3254     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3255        break;;
3256   esac
3257 done
3258 else
3259   $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error $? "cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details" "$LINENO" 5; }
3266 fi
3267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3270 $as_echo "$ac_cv_objext" >&6; }
3271 OBJEXT=$ac_cv_objext
3272 ac_objext=$OBJEXT
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3274 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3275 if ${ac_cv_c_compiler_gnu+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284 #ifndef __GNUC__
3285        choke me
3286 #endif
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293   ac_compiler_gnu=yes
3294 else
3295   ac_compiler_gnu=no
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3299
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3302 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3303 if test $ac_compiler_gnu = yes; then
3304   GCC=yes
3305 else
3306   GCC=
3307 fi
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3311 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3312 if ${ac_cv_prog_cc_g+:} false; then :
3313   $as_echo_n "(cached) " >&6
3314 else
3315   ac_save_c_werror_flag=$ac_c_werror_flag
3316    ac_c_werror_flag=yes
3317    ac_cv_prog_cc_g=no
3318    CFLAGS="-g"
3319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h.  */
3321
3322 int
3323 main ()
3324 {
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331   ac_cv_prog_cc_g=yes
3332 else
3333   CFLAGS=""
3334       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346
3347 else
3348   ac_c_werror_flag=$ac_save_c_werror_flag
3349          CFLAGS="-g"
3350          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362   ac_cv_prog_cc_g=yes
3363 fi
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369    ac_c_werror_flag=$ac_save_c_werror_flag
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3372 $as_echo "$ac_cv_prog_cc_g" >&6; }
3373 if test "$ac_test_CFLAGS" = set; then
3374   CFLAGS=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376   if test "$GCC" = yes; then
3377     CFLAGS="-g -O2"
3378   else
3379     CFLAGS="-g"
3380   fi
3381 else
3382   if test "$GCC" = yes; then
3383     CFLAGS="-O2"
3384   else
3385     CFLAGS=
3386   fi
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3389 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3390 if ${ac_cv_prog_cc_c89+:} false; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   ac_cv_prog_cc_c89=no
3394 ac_save_CC=$CC
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405      char **p;
3406      int i;
3407 {
3408   return p[i];
3409 }
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3411 {
3412   char *s;
3413   va_list v;
3414   va_start (v,p);
3415   s = g (p, va_arg (v,int));
3416   va_end (v);
3417   return s;
3418 }
3419
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3421    function prototypes and stuff, but not '\xHH' hex character constants.
3422    These don't provoke an error unfortunately, instead are silently treated
3423    as 'x'.  The following induces an error, until -std is added to get
3424    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3425    array size at least.  It's necessary to write '\x00'==0 to get something
3426    that's true only with -std.  */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430    inside strings and character constants.  */
3431 #define FOO(x) 'x'
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3440 int
3441 main ()
3442 {
3443 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 do
3451   CC="$ac_save_CC $ac_arg"
3452   if ac_fn_c_try_compile "$LINENO"; then :
3453   ac_cv_prog_cc_c89=$ac_arg
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext
3456   test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460
3461 fi
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3464   x)
3465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3466 $as_echo "none needed" >&6; } ;;
3467   xno)
3468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3469 $as_echo "unsupported" >&6; } ;;
3470   *)
3471     CC="$CC $ac_cv_prog_cc_c89"
3472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3473 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475 if test "x$ac_cv_prog_cc_c89" != xno; then :
3476
3477 fi
3478
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485 depcc="$CC"   am_compiler_list=
3486
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3488 $as_echo_n "checking dependency style of $depcc... " >&6; }
3489 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3493   # We make a subdir and do the tests there.  Otherwise we can end up
3494   # making bogus files that we don't know about and never remove.  For
3495   # instance it was reported that on HP-UX the gcc test will end up
3496   # making a dummy file named `D' -- because `-MD' means `put the output
3497   # in D'.
3498   mkdir conftest.dir
3499   # Copy depcomp to subdir because otherwise we won't find it if we're
3500   # using a relative directory.
3501   cp "$am_depcomp" conftest.dir
3502   cd conftest.dir
3503   # We will build objects and dependencies in a subdirectory because
3504   # it helps to detect inapplicable dependency modes.  For instance
3505   # both Tru64's cc and ICC support -MD to output dependencies as a
3506   # side effect of compilation, but ICC will put the dependencies in
3507   # the current directory while Tru64 will put them in the object
3508   # directory.
3509   mkdir sub
3510
3511   am_cv_CC_dependencies_compiler_type=none
3512   if test "$am_compiler_list" = ""; then
3513      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3514   fi
3515   am__universal=false
3516   case " $depcc " in #(
3517      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3518      esac
3519
3520   for depmode in $am_compiler_list; do
3521     # Setup a source with many dependencies, because some compilers
3522     # like to wrap large dependency lists on column 80 (with \), and
3523     # we should not choose a depcomp mode which is confused by this.
3524     #
3525     # We need to recreate these files for each test, as the compiler may
3526     # overwrite some of them when testing with obscure command lines.
3527     # This happens at least with the AIX C compiler.
3528     : > sub/conftest.c
3529     for i in 1 2 3 4 5 6; do
3530       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3531       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3532       # Solaris 8's {/usr,}/bin/sh.
3533       touch sub/conftst$i.h
3534     done
3535     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536
3537     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3538     # mode.  It turns out that the SunPro C++ compiler does not properly
3539     # handle `-M -o', and we need to detect this.  Also, some Intel
3540     # versions had trouble with output in subdirs
3541     am__obj=sub/conftest.${OBJEXT-o}
3542     am__minus_obj="-o $am__obj"
3543     case $depmode in
3544     gcc)
3545       # This depmode causes a compiler race in universal mode.
3546       test "$am__universal" = false || continue
3547       ;;
3548     nosideeffect)
3549       # after this tag, mechanisms are not by side-effect, so they'll
3550       # only be used when explicitly requested
3551       if test "x$enable_dependency_tracking" = xyes; then
3552         continue
3553       else
3554         break
3555       fi
3556       ;;
3557     msvisualcpp | msvcmsys)
3558       # This compiler won't grok `-c -o', but also, the minuso test has
3559       # not run yet.  These depmodes are late enough in the game, and
3560       # so weak that their functioning should not be impacted.
3561       am__obj=conftest.${OBJEXT-o}
3562       am__minus_obj=
3563       ;;
3564     none) break ;;
3565     esac
3566     if depmode=$depmode \
3567        source=sub/conftest.c object=$am__obj \
3568        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3569        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3570          >/dev/null 2>conftest.err &&
3571        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3572        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3573        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3574        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3575       # icc doesn't choke on unknown options, it will just issue warnings
3576       # or remarks (even with -Werror).  So we grep stderr for any message
3577       # that says an option was ignored or not supported.
3578       # When given -MP, icc 7.0 and 7.1 complain thusly:
3579       #   icc: Command line warning: ignoring option '-M'; no argument required
3580       # The diagnosis changed in icc 8.0:
3581       #   icc: Command line remark: option '-MP' not supported
3582       if (grep 'ignoring option' conftest.err ||
3583           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3584         am_cv_CC_dependencies_compiler_type=$depmode
3585         break
3586       fi
3587     fi
3588   done
3589
3590   cd ..
3591   rm -rf conftest.dir
3592 else
3593   am_cv_CC_dependencies_compiler_type=none
3594 fi
3595
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3598 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3599 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3600
3601  if
3602   test "x$enable_dependency_tracking" != xno \
3603   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604   am__fastdepCC_TRUE=
3605   am__fastdepCC_FALSE='#'
3606 else
3607   am__fastdepCC_TRUE='#'
3608   am__fastdepCC_FALSE=
3609 fi
3610
3611
3612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3613 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3614 if ${ac_cv_prog_cc_c99+:} false; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   ac_cv_prog_cc_c99=no
3618 ac_save_CC=$CC
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621 #include <stdarg.h>
3622 #include <stdbool.h>
3623 #include <stdlib.h>
3624 #include <wchar.h>
3625 #include <stdio.h>
3626
3627 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3628 #define debug(...) fprintf (stderr, __VA_ARGS__)
3629 #define showlist(...) puts (#__VA_ARGS__)
3630 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3631 static void
3632 test_varargs_macros (void)
3633 {
3634   int x = 1234;
3635   int y = 5678;
3636   debug ("Flag");
3637   debug ("X = %d\n", x);
3638   showlist (The first, second, and third items.);
3639   report (x>y, "x is %d but y is %d", x, y);
3640 }
3641
3642 // Check long long types.
3643 #define BIG64 18446744073709551615ull
3644 #define BIG32 4294967295ul
3645 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3646 #if !BIG_OK
3647   your preprocessor is broken;
3648 #endif
3649 #if BIG_OK
3650 #else
3651   your preprocessor is broken;
3652 #endif
3653 static long long int bignum = -9223372036854775807LL;
3654 static unsigned long long int ubignum = BIG64;
3655
3656 struct incomplete_array
3657 {
3658   int datasize;
3659   double data[];
3660 };
3661
3662 struct named_init {
3663   int number;
3664   const wchar_t *name;
3665   double average;
3666 };
3667
3668 typedef const char *ccp;
3669
3670 static inline int
3671 test_restrict (ccp restrict text)
3672 {
3673   // See if C++-style comments work.
3674   // Iterate through items via the restricted pointer.
3675   // Also check for declarations in for loops.
3676   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3677     continue;
3678   return 0;
3679 }
3680
3681 // Check varargs and va_copy.
3682 static void
3683 test_varargs (const char *format, ...)
3684 {
3685   va_list args;
3686   va_start (args, format);
3687   va_list args_copy;
3688   va_copy (args_copy, args);
3689
3690   const char *str;
3691   int number;
3692   float fnumber;
3693
3694   while (*format)
3695     {
3696       switch (*format++)
3697         {
3698         case 's': // string
3699           str = va_arg (args_copy, const char *);
3700           break;
3701         case 'd': // int
3702           number = va_arg (args_copy, int);
3703           break;
3704         case 'f': // float
3705           fnumber = va_arg (args_copy, double);
3706           break;
3707         default:
3708           break;
3709         }
3710     }
3711   va_end (args_copy);
3712   va_end (args);
3713 }
3714
3715 int
3716 main ()
3717 {
3718
3719   // Check bool.
3720   _Bool success = false;
3721
3722   // Check restrict.
3723   if (test_restrict ("String literal") == 0)
3724     success = true;
3725   char *restrict newvar = "Another string";
3726
3727   // Check varargs.
3728   test_varargs ("s, d' f .", "string", 65, 34.234);
3729   test_varargs_macros ();
3730
3731   // Check flexible array members.
3732   struct incomplete_array *ia =
3733     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3734   ia->datasize = 10;
3735   for (int i = 0; i < ia->datasize; ++i)
3736     ia->data[i] = i * 1.234;
3737
3738   // Check named initializers.
3739   struct named_init ni = {
3740     .number = 34,
3741     .name = L"Test wide string",
3742     .average = 543.34343,
3743   };
3744
3745   ni.number = 58;
3746
3747   int dynamic_array[ni.number];
3748   dynamic_array[ni.number - 1] = 543;
3749
3750   // work around unused variable warnings
3751   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3752           || dynamic_array[ni.number - 1] != 543);
3753
3754   ;
3755   return 0;
3756 }
3757 _ACEOF
3758 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3759 do
3760   CC="$ac_save_CC $ac_arg"
3761   if ac_fn_c_try_compile "$LINENO"; then :
3762   ac_cv_prog_cc_c99=$ac_arg
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext
3765   test "x$ac_cv_prog_cc_c99" != "xno" && break
3766 done
3767 rm -f conftest.$ac_ext
3768 CC=$ac_save_CC
3769
3770 fi
3771 # AC_CACHE_VAL
3772 case "x$ac_cv_prog_cc_c99" in
3773   x)
3774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775 $as_echo "none needed" >&6; } ;;
3776   xno)
3777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 $as_echo "unsupported" >&6; } ;;
3779   *)
3780     CC="$CC $ac_cv_prog_cc_c99"
3781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3782 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3783 esac
3784 if test "x$ac_cv_prog_cc_c99" != xno; then :
3785
3786 fi
3787
3788
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3796 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3799   CPP=
3800 fi
3801 if test -z "$CPP"; then
3802   if ${ac_cv_prog_CPP+:} false; then :
3803   $as_echo_n "(cached) " >&6
3804 else
3805       # Double quotes because CPP needs to be expanded
3806     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807     do
3808       ac_preproc_ok=false
3809 for ac_c_preproc_warn_flag in '' yes
3810 do
3811   # Use a header file that comes with gcc, so configuring glibc
3812   # with a fresh cross-compiler works.
3813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814   # <limits.h> exists even on freestanding compilers.
3815   # On the NeXT, cc -E runs the code through the compiler's parser,
3816   # not just through cpp. "Syntax error" is here to catch this case.
3817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819 #ifdef __STDC__
3820 # include <limits.h>
3821 #else
3822 # include <assert.h>
3823 #endif
3824                      Syntax error
3825 _ACEOF
3826 if ac_fn_c_try_cpp "$LINENO"; then :
3827
3828 else
3829   # Broken: fails on valid input.
3830 continue
3831 fi
3832 rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834   # OK, works on sane cases.  Now check whether nonexistent headers
3835   # can be detected and how.
3836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if ac_fn_c_try_cpp "$LINENO"; then :
3841   # Broken: success on invalid input.
3842 continue
3843 else
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848 rm -f conftest.err conftest.i conftest.$ac_ext
3849
3850 done
3851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852 rm -f conftest.i conftest.err conftest.$ac_ext
3853 if $ac_preproc_ok; then :
3854   break
3855 fi
3856
3857     done
3858     ac_cv_prog_CPP=$CPP
3859
3860 fi
3861   CPP=$ac_cv_prog_CPP
3862 else
3863   ac_cv_prog_CPP=$CPP
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3866 $as_echo "$CPP" >&6; }
3867 ac_preproc_ok=false
3868 for ac_c_preproc_warn_flag in '' yes
3869 do
3870   # Use a header file that comes with gcc, so configuring glibc
3871   # with a fresh cross-compiler works.
3872   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873   # <limits.h> exists even on freestanding compilers.
3874   # On the NeXT, cc -E runs the code through the compiler's parser,
3875   # not just through cpp. "Syntax error" is here to catch this case.
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878 #ifdef __STDC__
3879 # include <limits.h>
3880 #else
3881 # include <assert.h>
3882 #endif
3883                      Syntax error
3884 _ACEOF
3885 if ac_fn_c_try_cpp "$LINENO"; then :
3886
3887 else
3888   # Broken: fails on valid input.
3889 continue
3890 fi
3891 rm -f conftest.err conftest.i conftest.$ac_ext
3892
3893   # OK, works on sane cases.  Now check whether nonexistent headers
3894   # can be detected and how.
3895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897 #include <ac_nonexistent.h>
3898 _ACEOF
3899 if ac_fn_c_try_cpp "$LINENO"; then :
3900   # Broken: success on invalid input.
3901 continue
3902 else
3903   # Passes both tests.
3904 ac_preproc_ok=:
3905 break
3906 fi
3907 rm -f conftest.err conftest.i conftest.$ac_ext
3908
3909 done
3910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911 rm -f conftest.i conftest.err conftest.$ac_ext
3912 if $ac_preproc_ok; then :
3913
3914 else
3915   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3918 See \`config.log' for more details" "$LINENO" 5; }
3919 fi
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3930 if ${ac_cv_path_GREP+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933   if test -z "$GREP"; then
3934   ac_path_GREP_found=false
3935   # Loop through the user's path and test for each of PROGNAME-LIST
3936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941     for ac_prog in grep ggrep; do
3942     for ac_exec_ext in '' $ac_executable_extensions; do
3943       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946   # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3948 *GNU*)
3949   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950 *)
3951   ac_count=0
3952   $as_echo_n 0123456789 >"conftest.in"
3953   while :
3954   do
3955     cat "conftest.in" "conftest.in" >"conftest.tmp"
3956     mv "conftest.tmp" "conftest.in"
3957     cp "conftest.in" "conftest.nl"
3958     $as_echo 'GREP' >> "conftest.nl"
3959     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961     as_fn_arith $ac_count + 1 && ac_count=$as_val
3962     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963       # Best one so far, save it but keep looking for a better one
3964       ac_cv_path_GREP="$ac_path_GREP"
3965       ac_path_GREP_max=$ac_count
3966     fi
3967     # 10*(2^10) chars as input seems more than enough
3968     test $ac_count -gt 10 && break
3969   done
3970   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3972
3973       $ac_path_GREP_found && break 3
3974     done
3975   done
3976   done
3977 IFS=$as_save_IFS
3978   if test -z "$ac_cv_path_GREP"; then
3979     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980   fi
3981 else
3982   ac_cv_path_GREP=$GREP
3983 fi
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3987 $as_echo "$ac_cv_path_GREP" >&6; }
3988  GREP="$ac_cv_path_GREP"
3989
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3992 $as_echo_n "checking for egrep... " >&6; }
3993 if ${ac_cv_path_EGREP+:} false; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997    then ac_cv_path_EGREP="$GREP -E"
3998    else
3999      if test -z "$EGREP"; then
4000   ac_path_EGREP_found=false
4001   # Loop through the user's path and test for each of PROGNAME-LIST
4002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007     for ac_prog in egrep; do
4008     for ac_exec_ext in '' $ac_executable_extensions; do
4009       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011 # Check for GNU ac_path_EGREP and select it if it is found.
4012   # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4014 *GNU*)
4015   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016 *)
4017   ac_count=0
4018   $as_echo_n 0123456789 >"conftest.in"
4019   while :
4020   do
4021     cat "conftest.in" "conftest.in" >"conftest.tmp"
4022     mv "conftest.tmp" "conftest.in"
4023     cp "conftest.in" "conftest.nl"
4024     $as_echo 'EGREP' >> "conftest.nl"
4025     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027     as_fn_arith $ac_count + 1 && ac_count=$as_val
4028     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029       # Best one so far, save it but keep looking for a better one
4030       ac_cv_path_EGREP="$ac_path_EGREP"
4031       ac_path_EGREP_max=$ac_count
4032     fi
4033     # 10*(2^10) chars as input seems more than enough
4034     test $ac_count -gt 10 && break
4035   done
4036   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4038
4039       $ac_path_EGREP_found && break 3
4040     done
4041   done
4042   done
4043 IFS=$as_save_IFS
4044   if test -z "$ac_cv_path_EGREP"; then
4045     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046   fi
4047 else
4048   ac_cv_path_EGREP=$EGREP
4049 fi
4050
4051    fi
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4054 $as_echo "$ac_cv_path_EGREP" >&6; }
4055  EGREP="$ac_cv_path_EGREP"
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4059 $as_echo_n "checking for ANSI C header files... " >&6; }
4060 if ${ac_cv_header_stdc+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065 #include <stdlib.h>
4066 #include <stdarg.h>
4067 #include <string.h>
4068 #include <float.h>
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_c_try_compile "$LINENO"; then :
4079   ac_cv_header_stdc=yes
4080 else
4081   ac_cv_header_stdc=no
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084
4085 if test $ac_cv_header_stdc = yes; then
4086   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089 #include <string.h>
4090
4091 _ACEOF
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093   $EGREP "memchr" >/dev/null 2>&1; then :
4094
4095 else
4096   ac_cv_header_stdc=no
4097 fi
4098 rm -f conftest*
4099
4100 fi
4101
4102 if test $ac_cv_header_stdc = yes; then
4103   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106 #include <stdlib.h>
4107
4108 _ACEOF
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110   $EGREP "free" >/dev/null 2>&1; then :
4111
4112 else
4113   ac_cv_header_stdc=no
4114 fi
4115 rm -f conftest*
4116
4117 fi
4118
4119 if test $ac_cv_header_stdc = yes; then
4120   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4121   if test "$cross_compiling" = yes; then :
4122   :
4123 else
4124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126 #include <ctype.h>
4127 #include <stdlib.h>
4128 #if ((' ' & 0x0FF) == 0x020)
4129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 #else
4132 # define ISLOWER(c) \
4133                    (('a' <= (c) && (c) <= 'i') \
4134                      || ('j' <= (c) && (c) <= 'r') \
4135                      || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137 #endif
4138
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140 int
4141 main ()
4142 {
4143   int i;
4144   for (i = 0; i < 256; i++)
4145     if (XOR (islower (i), ISLOWER (i))
4146         || toupper (i) != TOUPPER (i))
4147       return 2;
4148   return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_run "$LINENO"; then :
4152
4153 else
4154   ac_cv_header_stdc=no
4155 fi
4156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4157   conftest.$ac_objext conftest.beam conftest.$ac_ext
4158 fi
4159
4160 fi
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4163 $as_echo "$ac_cv_header_stdc" >&6; }
4164 if test $ac_cv_header_stdc = yes; then
4165
4166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4167
4168 fi
4169
4170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4172                   inttypes.h stdint.h unistd.h
4173 do :
4174   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4176 "
4177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4178   cat >>confdefs.h <<_ACEOF
4179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180 _ACEOF
4181
4182 fi
4183
4184 done
4185
4186
4187
4188
4189 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4190 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4191   CLANGCC="yes"
4192 else
4193   CLANGCC="no"
4194 fi
4195
4196 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4197 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4198   INTELCC="yes"
4199 else
4200   INTELCC="no"
4201 fi
4202
4203 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4204 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4205   SUNCC="yes"
4206 else
4207   SUNCC="no"
4208 fi
4209
4210
4211
4212
4213
4214
4215
4216
4217 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4218         if test -n "$ac_tool_prefix"; then
4219   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   case $PKG_CONFIG in
4227   [\\/]* | ?:[\\/]*)
4228   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4229   ;;
4230   *)
4231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_exec_ext in '' $ac_executable_extensions; do
4237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243   done
4244 IFS=$as_save_IFS
4245
4246   ;;
4247 esac
4248 fi
4249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4250 if test -n "$PKG_CONFIG"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4252 $as_echo "$PKG_CONFIG" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259 fi
4260 if test -z "$ac_cv_path_PKG_CONFIG"; then
4261   ac_pt_PKG_CONFIG=$PKG_CONFIG
4262   # Extract the first word of "pkg-config", so it can be a program name with args.
4263 set dummy pkg-config; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   case $ac_pt_PKG_CONFIG in
4270   [\\/]* | ?:[\\/]*)
4271   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4272   ;;
4273   *)
4274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done
4287 IFS=$as_save_IFS
4288
4289   ;;
4290 esac
4291 fi
4292 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4293 if test -n "$ac_pt_PKG_CONFIG"; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4295 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301   if test "x$ac_pt_PKG_CONFIG" = x; then
4302     PKG_CONFIG=""
4303   else
4304     case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4309 esac
4310     PKG_CONFIG=$ac_pt_PKG_CONFIG
4311   fi
4312 else
4313   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4314 fi
4315
4316 fi
4317 if test -n "$PKG_CONFIG"; then
4318         _pkg_min_version=0.9.0
4319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4320 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4321         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4322                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323 $as_echo "yes" >&6; }
4324         else
4325                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4327                 PKG_CONFIG=""
4328         fi
4329 fi
4330 # Make sure we can run config.sub.
4331 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4332   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4335 $as_echo_n "checking build system type... " >&6; }
4336 if ${ac_cv_build+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   ac_build_alias=$build_alias
4340 test "x$ac_build_alias" = x &&
4341   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4342 test "x$ac_build_alias" = x &&
4343   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4344 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4345   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4346
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4349 $as_echo "$ac_cv_build" >&6; }
4350 case $ac_cv_build in
4351 *-*-*) ;;
4352 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4353 esac
4354 build=$ac_cv_build
4355 ac_save_IFS=$IFS; IFS='-'
4356 set x $ac_cv_build
4357 shift
4358 build_cpu=$1
4359 build_vendor=$2
4360 shift; shift
4361 # Remember, the first character of IFS is used to create $*,
4362 # except with old shells:
4363 build_os=$*
4364 IFS=$ac_save_IFS
4365 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4369 $as_echo_n "checking host system type... " >&6; }
4370 if ${ac_cv_host+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if test "x$host_alias" = x; then
4374   ac_cv_host=$ac_cv_build
4375 else
4376   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4377     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4378 fi
4379
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4382 $as_echo "$ac_cv_host" >&6; }
4383 case $ac_cv_host in
4384 *-*-*) ;;
4385 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4386 esac
4387 host=$ac_cv_host
4388 ac_save_IFS=$IFS; IFS='-'
4389 set x $ac_cv_host
4390 shift
4391 host_cpu=$1
4392 host_vendor=$2
4393 shift; shift
4394 # Remember, the first character of IFS is used to create $*,
4395 # except with old shells:
4396 host_os=$*
4397 IFS=$ac_save_IFS
4398 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4402 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4403 if ${ac_cv_path_SED+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4407      for ac_i in 1 2 3 4 5 6 7; do
4408        ac_script="$ac_script$as_nl$ac_script"
4409      done
4410      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4411      { ac_script=; unset ac_script;}
4412      if test -z "$SED"; then
4413   ac_path_SED_found=false
4414   # Loop through the user's path and test for each of PROGNAME-LIST
4415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420     for ac_prog in sed gsed; do
4421     for ac_exec_ext in '' $ac_executable_extensions; do
4422       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4423       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4424 # Check for GNU ac_path_SED and select it if it is found.
4425   # Check for GNU $ac_path_SED
4426 case `"$ac_path_SED" --version 2>&1` in
4427 *GNU*)
4428   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4429 *)
4430   ac_count=0
4431   $as_echo_n 0123456789 >"conftest.in"
4432   while :
4433   do
4434     cat "conftest.in" "conftest.in" >"conftest.tmp"
4435     mv "conftest.tmp" "conftest.in"
4436     cp "conftest.in" "conftest.nl"
4437     $as_echo '' >> "conftest.nl"
4438     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440     as_fn_arith $ac_count + 1 && ac_count=$as_val
4441     if test $ac_count -gt ${ac_path_SED_max-0}; then
4442       # Best one so far, save it but keep looking for a better one
4443       ac_cv_path_SED="$ac_path_SED"
4444       ac_path_SED_max=$ac_count
4445     fi
4446     # 10*(2^10) chars as input seems more than enough
4447     test $ac_count -gt 10 && break
4448   done
4449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 esac
4451
4452       $ac_path_SED_found && break 3
4453     done
4454   done
4455   done
4456 IFS=$as_save_IFS
4457   if test -z "$ac_cv_path_SED"; then
4458     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4459   fi
4460 else
4461   ac_cv_path_SED=$SED
4462 fi
4463
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4466 $as_echo "$ac_cv_path_SED" >&6; }
4467  SED="$ac_cv_path_SED"
4468   rm -f conftest.sed
4469
4470
4471
4472
4473
4474
4475 if  test "x$GCC" = xyes ; then
4476     CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4477 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4478 -Wbad-function-cast -Wformat=2"
4479     case `$CC -dumpversion` in
4480     3.4.* | 4.*)
4481         CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4482         ;;
4483     esac
4484 else
4485     if test "x$SUNCC" = "xyes"; then
4486         CWARNFLAGS="-v"
4487     fi
4488 fi
4489
4490
4491
4492 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4493
4494
4495
4496
4497 # Check whether --enable-strict-compilation was given.
4498 if test "${enable_strict_compilation+set}" = set; then :
4499   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4500 else
4501   STRICT_COMPILE=no
4502 fi
4503
4504 if test "x$GCC" = xyes ; then
4505     STRICT_CFLAGS="-pedantic -Werror"
4506     # Add -Werror=attributes if supported (gcc 4.2 & later)
4507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
4508 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
4509     save_CFLAGS="$CFLAGS"
4510     CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h.  */
4513 return 0;
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516   STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4517                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518 $as_echo "yes" >&6; }
4519 else
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524     CFLAGS="$save_CFLAGS"
4525 elif test "x$SUNCC" = "xyes"; then
4526     STRICT_CFLAGS="-errwarn"
4527 elif test "x$INTELCC" = "xyes"; then
4528     STRICT_CFLAGS="-Werror"
4529 fi
4530 if test "x$STRICT_COMPILE" = "xyes"; then
4531     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4532 fi
4533
4534
4535
4536
4537
4538 cat >>confdefs.h <<_ACEOF
4539 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4540 _ACEOF
4541
4542         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4543         if test "x$PVM" = "x"; then
4544                 PVM="0"
4545         fi
4546
4547 cat >>confdefs.h <<_ACEOF
4548 #define PACKAGE_VERSION_MINOR $PVM
4549 _ACEOF
4550
4551         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4552         if test "x$PVP" = "x"; then
4553                 PVP="0"
4554         fi
4555
4556 cat >>confdefs.h <<_ACEOF
4557 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4558 _ACEOF
4559
4560
4561
4562 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4563 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4564 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4565 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4566
4567
4568
4569
4570 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4571 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4572 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4573 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4574 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4575
4576
4577
4578
4579
4580
4581 if test x$APP_MAN_SUFFIX = x    ; then
4582     APP_MAN_SUFFIX=1
4583 fi
4584 if test x$APP_MAN_DIR = x    ; then
4585     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4586 fi
4587
4588 if test x$LIB_MAN_SUFFIX = x    ; then
4589     LIB_MAN_SUFFIX=3
4590 fi
4591 if test x$LIB_MAN_DIR = x    ; then
4592     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4593 fi
4594
4595 if test x$FILE_MAN_SUFFIX = x    ; then
4596     case $host_os in
4597         solaris*)       FILE_MAN_SUFFIX=4  ;;
4598         *)              FILE_MAN_SUFFIX=5  ;;
4599     esac
4600 fi
4601 if test x$FILE_MAN_DIR = x    ; then
4602     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4603 fi
4604
4605 if test x$MISC_MAN_SUFFIX = x    ; then
4606     case $host_os in
4607         solaris*)       MISC_MAN_SUFFIX=5  ;;
4608         *)              MISC_MAN_SUFFIX=7  ;;
4609     esac
4610 fi
4611 if test x$MISC_MAN_DIR = x    ; then
4612     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4613 fi
4614
4615 if test x$DRIVER_MAN_SUFFIX = x    ; then
4616     case $host_os in
4617         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
4618         *)              DRIVER_MAN_SUFFIX=4  ;;
4619     esac
4620 fi
4621 if test x$DRIVER_MAN_DIR = x    ; then
4622     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4623 fi
4624
4625 if test x$ADMIN_MAN_SUFFIX = x    ; then
4626     case $host_os in
4627         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
4628         *)              ADMIN_MAN_SUFFIX=8  ;;
4629     esac
4630 fi
4631 if test x$ADMIN_MAN_DIR = x    ; then
4632     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4633 fi
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649 XORG_MAN_PAGE="X Version 11"
4650
4651 MAN_SUBSTS="\
4652         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4653         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4654         -e 's|__xservername__|Xorg|g' \
4655         -e 's|__xconfigfile__|xorg.conf|g' \
4656         -e 's|__projectroot__|\$(prefix)|g' \
4657         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4658         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4659         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4660         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4661         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4662         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4663         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4664
4665
4666
4667 # Check whether --enable-silent-rules was given.
4668 if test "${enable_silent_rules+set}" = set; then :
4669   enableval=$enable_silent_rules;
4670 fi
4671
4672 case $enable_silent_rules in
4673 yes) AM_DEFAULT_VERBOSITY=0;;
4674 no)  AM_DEFAULT_VERBOSITY=1;;
4675 *)   AM_DEFAULT_VERBOSITY=0;;
4676 esac
4677 AM_BACKSLASH='\'
4678
4679
4680
4681
4682 # Check whether --enable-specs was given.
4683 if test "${enable_specs+set}" = set; then :
4684   enableval=$enable_specs; build_specs=$enableval
4685 else
4686   build_specs=yes
4687 fi
4688
4689
4690  if test x$build_specs = xyes; then
4691   ENABLE_SPECS_TRUE=
4692   ENABLE_SPECS_FALSE='#'
4693 else
4694   ENABLE_SPECS_TRUE='#'
4695   ENABLE_SPECS_FALSE=
4696 fi
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
4699 $as_echo_n "checking whether to build functional specifications... " >&6; }
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
4701 $as_echo "$build_specs" >&6; }
4702
4703
4704
4705
4706
4707 # Check whether --with-asciidoc was given.
4708 if test "${with_asciidoc+set}" = set; then :
4709   withval=$with_asciidoc; use_asciidoc=$withval
4710 else
4711   use_asciidoc=auto
4712 fi
4713
4714
4715
4716 if test "x$use_asciidoc" = x"auto"; then
4717    # Extract the first word of "asciidoc", so it can be a program name with args.
4718 set dummy asciidoc; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if ${ac_cv_path_ASCIIDOC+:} false; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   case $ASCIIDOC in
4725   [\\/]* | ?:[\\/]*)
4726   ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
4727   ;;
4728   *)
4729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734     for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
4737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741   done
4742 IFS=$as_save_IFS
4743
4744   ;;
4745 esac
4746 fi
4747 ASCIIDOC=$ac_cv_path_ASCIIDOC
4748 if test -n "$ASCIIDOC"; then
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
4750 $as_echo "$ASCIIDOC" >&6; }
4751 else
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756
4757    if test "x$ASCIIDOC" = "x"; then
4758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
4759 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
4760         have_asciidoc=no
4761    else
4762         have_asciidoc=yes
4763    fi
4764 elif test "x$use_asciidoc" = x"yes" ; then
4765    # Extract the first word of "asciidoc", so it can be a program name with args.
4766 set dummy asciidoc; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_path_ASCIIDOC+:} false; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   case $ASCIIDOC in
4773   [\\/]* | ?:[\\/]*)
4774   ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
4775   ;;
4776   *)
4777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782     for ac_exec_ext in '' $ac_executable_extensions; do
4783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784     ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
4785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789   done
4790 IFS=$as_save_IFS
4791
4792   ;;
4793 esac
4794 fi
4795 ASCIIDOC=$ac_cv_path_ASCIIDOC
4796 if test -n "$ASCIIDOC"; then
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
4798 $as_echo "$ASCIIDOC" >&6; }
4799 else
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804
4805    if test "x$ASCIIDOC" = "x"; then
4806         as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
4807    fi
4808    have_asciidoc=yes
4809 elif test "x$use_asciidoc" = x"no" ; then
4810    if test "x$ASCIIDOC" != "x"; then
4811       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
4812 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
4813    fi
4814    have_asciidoc=no
4815 else
4816    as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
4817 fi
4818 if test "$have_asciidoc" = yes; then
4819     # scrape the asciidoc version
4820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
4821 $as_echo_n "checking the asciidoc version... " >&6; }
4822     asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
4823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
4824 $as_echo "$asciidoc_version" >&6; }
4825     as_arg_v1=$asciidoc_version
4826 as_arg_v2=8.4.5
4827 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4828 case $? in #(
4829   1) :
4830     if test "x$use_asciidoc" = xauto; then
4831             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
4832 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
4833             have_asciidoc=no
4834         else
4835             as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
4836         fi ;; #(
4837   0) :
4838      ;; #(
4839   2) :
4840      ;; #(
4841   *) :
4842      ;;
4843 esac
4844 fi
4845  if test "$have_asciidoc" = yes; then
4846   HAVE_ASCIIDOC_TRUE=
4847   HAVE_ASCIIDOC_FALSE='#'
4848 else
4849   HAVE_ASCIIDOC_TRUE='#'
4850   HAVE_ASCIIDOC_FALSE=
4851 fi
4852
4853
4854
4855 ac_config_files="$ac_config_files Makefile specs/Makefile inputproto.pc"
4856
4857 cat >confcache <<\_ACEOF
4858 # This file is a shell script that caches the results of configure
4859 # tests run on this system so they can be shared between configure
4860 # scripts and configure runs, see configure's option --config-cache.
4861 # It is not useful on other systems.  If it contains results you don't
4862 # want to keep, you may remove or edit it.
4863 #
4864 # config.status only pays attention to the cache file if you give it
4865 # the --recheck option to rerun configure.
4866 #
4867 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4868 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4869 # following values.
4870
4871 _ACEOF
4872
4873 # The following way of writing the cache mishandles newlines in values,
4874 # but we know of no workaround that is simple, portable, and efficient.
4875 # So, we kill variables containing newlines.
4876 # Ultrix sh set writes to stderr and can't be redirected directly,
4877 # and sets the high bit in the cache file unless we assign to the vars.
4878 (
4879   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4880     eval ac_val=\$$ac_var
4881     case $ac_val in #(
4882     *${as_nl}*)
4883       case $ac_var in #(
4884       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4886       esac
4887       case $ac_var in #(
4888       _ | IFS | as_nl) ;; #(
4889       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4890       *) { eval $ac_var=; unset $ac_var;} ;;
4891       esac ;;
4892     esac
4893   done
4894
4895   (set) 2>&1 |
4896     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4897     *${as_nl}ac_space=\ *)
4898       # `set' does not quote correctly, so add quotes: double-quote
4899       # substitution turns \\\\ into \\, and sed turns \\ into \.
4900       sed -n \
4901         "s/'/'\\\\''/g;
4902           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4903       ;; #(
4904     *)
4905       # `set' quotes correctly as required by POSIX, so do not add quotes.
4906       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4907       ;;
4908     esac |
4909     sort
4910 ) |
4911   sed '
4912      /^ac_cv_env_/b end
4913      t clear
4914      :clear
4915      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4916      t end
4917      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4918      :end' >>confcache
4919 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4920   if test -w "$cache_file"; then
4921     if test "x$cache_file" != "x/dev/null"; then
4922       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4923 $as_echo "$as_me: updating cache $cache_file" >&6;}
4924       if test ! -f "$cache_file" || test -h "$cache_file"; then
4925         cat confcache >"$cache_file"
4926       else
4927         case $cache_file in #(
4928         */* | ?:*)
4929           mv -f confcache "$cache_file"$$ &&
4930           mv -f "$cache_file"$$ "$cache_file" ;; #(
4931         *)
4932           mv -f confcache "$cache_file" ;;
4933         esac
4934       fi
4935     fi
4936   else
4937     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4938 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4939   fi
4940 fi
4941 rm -f confcache
4942
4943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4944 # Let make expand exec_prefix.
4945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4946
4947 # Transform confdefs.h into DEFS.
4948 # Protect against shell expansion while executing Makefile rules.
4949 # Protect against Makefile macro expansion.
4950 #
4951 # If the first sed substitution is executed (which looks for macros that
4952 # take arguments), then branch to the quote section.  Otherwise,
4953 # look for a macro that doesn't take arguments.
4954 ac_script='
4955 :mline
4956 /\\$/{
4957  N
4958  s,\\\n,,
4959  b mline
4960 }
4961 t clear
4962 :clear
4963 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4964 t quote
4965 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4966 t quote
4967 b any
4968 :quote
4969 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4970 s/\[/\\&/g
4971 s/\]/\\&/g
4972 s/\$/$$/g
4973 H
4974 :any
4975 ${
4976         g
4977         s/^\n//
4978         s/\n/ /g
4979         p
4980 }
4981 '
4982 DEFS=`sed -n "$ac_script" confdefs.h`
4983
4984
4985 ac_libobjs=
4986 ac_ltlibobjs=
4987 U=
4988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4989   # 1. Remove the extension, and $U if already installed.
4990   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4991   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4992   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4993   #    will be set to the directory where LIBOBJS objects are built.
4994   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4995   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4996 done
4997 LIBOBJS=$ac_libobjs
4998
4999 LTLIBOBJS=$ac_ltlibobjs
5000
5001
5002  if test -n "$EXEEXT"; then
5003   am__EXEEXT_TRUE=
5004   am__EXEEXT_FALSE='#'
5005 else
5006   am__EXEEXT_TRUE='#'
5007   am__EXEEXT_FALSE=
5008 fi
5009
5010 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5011   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5013 fi
5014 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5015   as_fn_error $? "conditional \"AMDEP\" was never defined.
5016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5017 fi
5018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5019   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5021 fi
5022 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
5023   as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
5024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5025 fi
5026 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
5027   as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
5028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5029 fi
5030
5031 : "${CONFIG_STATUS=./config.status}"
5032 ac_write_fail=0
5033 ac_clean_files_save=$ac_clean_files
5034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5037 as_write_fail=0
5038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5039 #! $SHELL
5040 # Generated by $as_me.
5041 # Run this file to recreate the current configuration.
5042 # Compiler output produced by configure, useful for debugging
5043 # configure, is in config.log if it exists.
5044
5045 debug=false
5046 ac_cs_recheck=false
5047 ac_cs_silent=false
5048
5049 SHELL=\${CONFIG_SHELL-$SHELL}
5050 export SHELL
5051 _ASEOF
5052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5053 ## -------------------- ##
5054 ## M4sh Initialization. ##
5055 ## -------------------- ##
5056
5057 # Be more Bourne compatible
5058 DUALCASE=1; export DUALCASE # for MKS sh
5059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5060   emulate sh
5061   NULLCMD=:
5062   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5063   # is contrary to our usage.  Disable this feature.
5064   alias -g '${1+"$@"}'='"$@"'
5065   setopt NO_GLOB_SUBST
5066 else
5067   case `(set -o) 2>/dev/null` in #(
5068   *posix*) :
5069     set -o posix ;; #(
5070   *) :
5071      ;;
5072 esac
5073 fi
5074
5075
5076 as_nl='
5077 '
5078 export as_nl
5079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5080 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5083 # Prefer a ksh shell builtin over an external printf program on Solaris,
5084 # but without wasting forks for bash or zsh.
5085 if test -z "$BASH_VERSION$ZSH_VERSION" \
5086     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5087   as_echo='print -r --'
5088   as_echo_n='print -rn --'
5089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5090   as_echo='printf %s\n'
5091   as_echo_n='printf %s'
5092 else
5093   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5094     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5095     as_echo_n='/usr/ucb/echo -n'
5096   else
5097     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5098     as_echo_n_body='eval
5099       arg=$1;
5100       case $arg in #(
5101       *"$as_nl"*)
5102         expr "X$arg" : "X\\(.*\\)$as_nl";
5103         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5104       esac;
5105       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5106     '
5107     export as_echo_n_body
5108     as_echo_n='sh -c $as_echo_n_body as_echo'
5109   fi
5110   export as_echo_body
5111   as_echo='sh -c $as_echo_body as_echo'
5112 fi
5113
5114 # The user is always right.
5115 if test "${PATH_SEPARATOR+set}" != set; then
5116   PATH_SEPARATOR=:
5117   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5118     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5119       PATH_SEPARATOR=';'
5120   }
5121 fi
5122
5123
5124 # IFS
5125 # We need space, tab and new line, in precisely that order.  Quoting is
5126 # there to prevent editors from complaining about space-tab.
5127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5128 # splitting by setting IFS to empty value.)
5129 IFS=" ""        $as_nl"
5130
5131 # Find who we are.  Look in the path if we contain no directory separator.
5132 as_myself=
5133 case $0 in #((
5134   *[\\/]* ) as_myself=$0 ;;
5135   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5141   done
5142 IFS=$as_save_IFS
5143
5144      ;;
5145 esac
5146 # We did not find ourselves, most probably we were run as `sh COMMAND'
5147 # in which case we are not to be found in the path.
5148 if test "x$as_myself" = x; then
5149   as_myself=$0
5150 fi
5151 if test ! -f "$as_myself"; then
5152   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5153   exit 1
5154 fi
5155
5156 # Unset variables that we do not need and which cause bugs (e.g. in
5157 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5158 # suppresses any "Segmentation fault" message there.  '((' could
5159 # trigger a bug in pdksh 5.2.14.
5160 for as_var in BASH_ENV ENV MAIL MAILPATH
5161 do eval test x\${$as_var+set} = xset \
5162   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5163 done
5164 PS1='$ '
5165 PS2='> '
5166 PS4='+ '
5167
5168 # NLS nuisances.
5169 LC_ALL=C
5170 export LC_ALL
5171 LANGUAGE=C
5172 export LANGUAGE
5173
5174 # CDPATH.
5175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5176
5177
5178 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5179 # ----------------------------------------
5180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5182 # script with STATUS, using 1 if that was 0.
5183 as_fn_error ()
5184 {
5185   as_status=$1; test $as_status -eq 0 && as_status=1
5186   if test "$4"; then
5187     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5188     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5189   fi
5190   $as_echo "$as_me: error: $2" >&2
5191   as_fn_exit $as_status
5192 } # as_fn_error
5193
5194
5195 # as_fn_set_status STATUS
5196 # -----------------------
5197 # Set $? to STATUS, without forking.
5198 as_fn_set_status ()
5199 {
5200   return $1
5201 } # as_fn_set_status
5202
5203 # as_fn_exit STATUS
5204 # -----------------
5205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5206 as_fn_exit ()
5207 {
5208   set +e
5209   as_fn_set_status $1
5210   exit $1
5211 } # as_fn_exit
5212
5213 # as_fn_unset VAR
5214 # ---------------
5215 # Portably unset VAR.
5216 as_fn_unset ()
5217 {
5218   { eval $1=; unset $1;}
5219 }
5220 as_unset=as_fn_unset
5221 # as_fn_append VAR VALUE
5222 # ----------------------
5223 # Append the text in VALUE to the end of the definition contained in VAR. Take
5224 # advantage of any shell optimizations that allow amortized linear growth over
5225 # repeated appends, instead of the typical quadratic growth present in naive
5226 # implementations.
5227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5228   eval 'as_fn_append ()
5229   {
5230     eval $1+=\$2
5231   }'
5232 else
5233   as_fn_append ()
5234   {
5235     eval $1=\$$1\$2
5236   }
5237 fi # as_fn_append
5238
5239 # as_fn_arith ARG...
5240 # ------------------
5241 # Perform arithmetic evaluation on the ARGs, and store the result in the
5242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5243 # must be portable across $(()) and expr.
5244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5245   eval 'as_fn_arith ()
5246   {
5247     as_val=$(( $* ))
5248   }'
5249 else
5250   as_fn_arith ()
5251   {
5252     as_val=`expr "$@" || test $? -eq 1`
5253   }
5254 fi # as_fn_arith
5255
5256
5257 if expr a : '\(a\)' >/dev/null 2>&1 &&
5258    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5259   as_expr=expr
5260 else
5261   as_expr=false
5262 fi
5263
5264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5265   as_basename=basename
5266 else
5267   as_basename=false
5268 fi
5269
5270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5271   as_dirname=dirname
5272 else
5273   as_dirname=false
5274 fi
5275
5276 as_me=`$as_basename -- "$0" ||
5277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5278          X"$0" : 'X\(//\)$' \| \
5279          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5280 $as_echo X/"$0" |
5281     sed '/^.*\/\([^/][^/]*\)\/*$/{
5282             s//\1/
5283             q
5284           }
5285           /^X\/\(\/\/\)$/{
5286             s//\1/
5287             q
5288           }
5289           /^X\/\(\/\).*/{
5290             s//\1/
5291             q
5292           }
5293           s/.*/./; q'`
5294
5295 # Avoid depending upon Character Ranges.
5296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5299 as_cr_digits='0123456789'
5300 as_cr_alnum=$as_cr_Letters$as_cr_digits
5301
5302 ECHO_C= ECHO_N= ECHO_T=
5303 case `echo -n x` in #(((((
5304 -n*)
5305   case `echo 'xy\c'` in
5306   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5307   xy)  ECHO_C='\c';;
5308   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5309        ECHO_T=' ';;
5310   esac;;
5311 *)
5312   ECHO_N='-n';;
5313 esac
5314
5315 rm -f conf$$ conf$$.exe conf$$.file
5316 if test -d conf$$.dir; then
5317   rm -f conf$$.dir/conf$$.file
5318 else
5319   rm -f conf$$.dir
5320   mkdir conf$$.dir 2>/dev/null
5321 fi
5322 if (echo >conf$$.file) 2>/dev/null; then
5323   if ln -s conf$$.file conf$$ 2>/dev/null; then
5324     as_ln_s='ln -s'
5325     # ... but there are two gotchas:
5326     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5327     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5328     # In both cases, we have to default to `cp -p'.
5329     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5330       as_ln_s='cp -p'
5331   elif ln conf$$.file conf$$ 2>/dev/null; then
5332     as_ln_s=ln
5333   else
5334     as_ln_s='cp -p'
5335   fi
5336 else
5337   as_ln_s='cp -p'
5338 fi
5339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5340 rmdir conf$$.dir 2>/dev/null
5341
5342
5343 # as_fn_mkdir_p
5344 # -------------
5345 # Create "$as_dir" as a directory, including parents if necessary.
5346 as_fn_mkdir_p ()
5347 {
5348
5349   case $as_dir in #(
5350   -*) as_dir=./$as_dir;;
5351   esac
5352   test -d "$as_dir" || eval $as_mkdir_p || {
5353     as_dirs=
5354     while :; do
5355       case $as_dir in #(
5356       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5357       *) as_qdir=$as_dir;;
5358       esac
5359       as_dirs="'$as_qdir' $as_dirs"
5360       as_dir=`$as_dirname -- "$as_dir" ||
5361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5362          X"$as_dir" : 'X\(//\)[^/]' \| \
5363          X"$as_dir" : 'X\(//\)$' \| \
5364          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5365 $as_echo X"$as_dir" |
5366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5367             s//\1/
5368             q
5369           }
5370           /^X\(\/\/\)[^/].*/{
5371             s//\1/
5372             q
5373           }
5374           /^X\(\/\/\)$/{
5375             s//\1/
5376             q
5377           }
5378           /^X\(\/\).*/{
5379             s//\1/
5380             q
5381           }
5382           s/.*/./; q'`
5383       test -d "$as_dir" && break
5384     done
5385     test -z "$as_dirs" || eval "mkdir $as_dirs"
5386   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5387
5388
5389 } # as_fn_mkdir_p
5390 if mkdir -p . 2>/dev/null; then
5391   as_mkdir_p='mkdir -p "$as_dir"'
5392 else
5393   test -d ./-p && rmdir ./-p
5394   as_mkdir_p=false
5395 fi
5396
5397 if test -x / >/dev/null 2>&1; then
5398   as_test_x='test -x'
5399 else
5400   if ls -dL / >/dev/null 2>&1; then
5401     as_ls_L_option=L
5402   else
5403     as_ls_L_option=
5404   fi
5405   as_test_x='
5406     eval sh -c '\''
5407       if test -d "$1"; then
5408         test -d "$1/.";
5409       else
5410         case $1 in #(
5411         -*)set "./$1";;
5412         esac;
5413         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5414         ???[sx]*):;;*)false;;esac;fi
5415     '\'' sh
5416   '
5417 fi
5418 as_executable_p=$as_test_x
5419
5420 # Sed expression to map a string onto a valid CPP name.
5421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5422
5423 # Sed expression to map a string onto a valid variable name.
5424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5425
5426
5427 exec 6>&1
5428 ## ----------------------------------- ##
5429 ## Main body of $CONFIG_STATUS script. ##
5430 ## ----------------------------------- ##
5431 _ASEOF
5432 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5433
5434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5435 # Save the log message, to keep $0 and so on meaningful, and to
5436 # report actual input values of CONFIG_FILES etc. instead of their
5437 # values after options handling.
5438 ac_log="
5439 This file was extended by InputProto $as_me 2.2, which was
5440 generated by GNU Autoconf 2.68.  Invocation command line was
5441
5442   CONFIG_FILES    = $CONFIG_FILES
5443   CONFIG_HEADERS  = $CONFIG_HEADERS
5444   CONFIG_LINKS    = $CONFIG_LINKS
5445   CONFIG_COMMANDS = $CONFIG_COMMANDS
5446   $ $0 $@
5447
5448 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5449 "
5450
5451 _ACEOF
5452
5453 case $ac_config_files in *"
5454 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5455 esac
5456
5457
5458
5459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5460 # Files that config.status was made for.
5461 config_files="$ac_config_files"
5462 config_commands="$ac_config_commands"
5463
5464 _ACEOF
5465
5466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5467 ac_cs_usage="\
5468 \`$as_me' instantiates files and other configuration actions
5469 from templates according to the current configuration.  Unless the files
5470 and actions are specified as TAGs, all are instantiated by default.
5471
5472 Usage: $0 [OPTION]... [TAG]...
5473
5474   -h, --help       print this help, then exit
5475   -V, --version    print version number and configuration settings, then exit
5476       --config     print configuration, then exit
5477   -q, --quiet, --silent
5478                    do not print progress messages
5479   -d, --debug      don't remove temporary files
5480       --recheck    update $as_me by reconfiguring in the same conditions
5481       --file=FILE[:TEMPLATE]
5482                    instantiate the configuration file FILE
5483
5484 Configuration files:
5485 $config_files
5486
5487 Configuration commands:
5488 $config_commands
5489
5490 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5491
5492 _ACEOF
5493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5494 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5495 ac_cs_version="\\
5496 InputProto config.status 2.2
5497 configured by $0, generated by GNU Autoconf 2.68,
5498   with options \\"\$ac_cs_config\\"
5499
5500 Copyright (C) 2010 Free Software Foundation, Inc.
5501 This config.status script is free software; the Free Software Foundation
5502 gives unlimited permission to copy, distribute and modify it."
5503
5504 ac_pwd='$ac_pwd'
5505 srcdir='$srcdir'
5506 INSTALL='$INSTALL'
5507 MKDIR_P='$MKDIR_P'
5508 AWK='$AWK'
5509 test -n "\$AWK" || AWK=awk
5510 _ACEOF
5511
5512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5513 # The default lists apply if the user does not specify any file.
5514 ac_need_defaults=:
5515 while test $# != 0
5516 do
5517   case $1 in
5518   --*=?*)
5519     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5520     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5521     ac_shift=:
5522     ;;
5523   --*=)
5524     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5525     ac_optarg=
5526     ac_shift=:
5527     ;;
5528   *)
5529     ac_option=$1
5530     ac_optarg=$2
5531     ac_shift=shift
5532     ;;
5533   esac
5534
5535   case $ac_option in
5536   # Handling of the options.
5537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5538     ac_cs_recheck=: ;;
5539   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5540     $as_echo "$ac_cs_version"; exit ;;
5541   --config | --confi | --conf | --con | --co | --c )
5542     $as_echo "$ac_cs_config"; exit ;;
5543   --debug | --debu | --deb | --de | --d | -d )
5544     debug=: ;;
5545   --file | --fil | --fi | --f )
5546     $ac_shift
5547     case $ac_optarg in
5548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5549     '') as_fn_error $? "missing file argument" ;;
5550     esac
5551     as_fn_append CONFIG_FILES " '$ac_optarg'"
5552     ac_need_defaults=false;;
5553   --he | --h |  --help | --hel | -h )
5554     $as_echo "$ac_cs_usage"; exit ;;
5555   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5556   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5557     ac_cs_silent=: ;;
5558
5559   # This is an error.
5560   -*) as_fn_error $? "unrecognized option: \`$1'
5561 Try \`$0 --help' for more information." ;;
5562
5563   *) as_fn_append ac_config_targets " $1"
5564      ac_need_defaults=false ;;
5565
5566   esac
5567   shift
5568 done
5569
5570 ac_configure_extra_args=
5571
5572 if $ac_cs_silent; then
5573   exec 6>/dev/null
5574   ac_configure_extra_args="$ac_configure_extra_args --silent"
5575 fi
5576
5577 _ACEOF
5578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5579 if \$ac_cs_recheck; then
5580   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5581   shift
5582   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5583   CONFIG_SHELL='$SHELL'
5584   export CONFIG_SHELL
5585   exec "\$@"
5586 fi
5587
5588 _ACEOF
5589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5590 exec 5>>config.log
5591 {
5592   echo
5593   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5594 ## Running $as_me. ##
5595 _ASBOX
5596   $as_echo "$ac_log"
5597 } >&5
5598
5599 _ACEOF
5600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5601 #
5602 # INIT-COMMANDS
5603 #
5604 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5605
5606 _ACEOF
5607
5608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5609
5610 # Handling of arguments.
5611 for ac_config_target in $ac_config_targets
5612 do
5613   case $ac_config_target in
5614     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5615     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5616     "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
5617     "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
5618
5619   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5620   esac
5621 done
5622
5623
5624 # If the user did not use the arguments to specify the items to instantiate,
5625 # then the envvar interface is used.  Set only those that are not.
5626 # We use the long form for the default assignment because of an extremely
5627 # bizarre bug on SunOS 4.1.3.
5628 if $ac_need_defaults; then
5629   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5630   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5631 fi
5632
5633 # Have a temporary directory for convenience.  Make it in the build tree
5634 # simply because there is no reason against having it here, and in addition,
5635 # creating and moving files from /tmp can sometimes cause problems.
5636 # Hook for its removal unless debugging.
5637 # Note that there is a small window in which the directory will not be cleaned:
5638 # after its creation but before its name has been assigned to `$tmp'.
5639 $debug ||
5640 {
5641   tmp= ac_tmp=
5642   trap 'exit_status=$?
5643   : "${ac_tmp:=$tmp}"
5644   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5645 ' 0
5646   trap 'as_fn_exit 1' 1 2 13 15
5647 }
5648 # Create a (secure) tmp directory for tmp files.
5649
5650 {
5651   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5652   test -d "$tmp"
5653 }  ||
5654 {
5655   tmp=./conf$$-$RANDOM
5656   (umask 077 && mkdir "$tmp")
5657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5658 ac_tmp=$tmp
5659
5660 # Set up the scripts for CONFIG_FILES section.
5661 # No need to generate them if there are no CONFIG_FILES.
5662 # This happens for instance with `./config.status config.h'.
5663 if test -n "$CONFIG_FILES"; then
5664
5665
5666 ac_cr=`echo X | tr X '\015'`
5667 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5668 # But we know of no other shell where ac_cr would be empty at this
5669 # point, so we can use a bashism as a fallback.
5670 if test "x$ac_cr" = x; then
5671   eval ac_cr=\$\'\\r\'
5672 fi
5673 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5674 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5675   ac_cs_awk_cr='\\r'
5676 else
5677   ac_cs_awk_cr=$ac_cr
5678 fi
5679
5680 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5681 _ACEOF
5682
5683
5684 {
5685   echo "cat >conf$$subs.awk <<_ACEOF" &&
5686   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5687   echo "_ACEOF"
5688 } >conf$$subs.sh ||
5689   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5690 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5691 ac_delim='%!_!# '
5692 for ac_last_try in false false false false false :; do
5693   . ./conf$$subs.sh ||
5694     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5695
5696   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5697   if test $ac_delim_n = $ac_delim_num; then
5698     break
5699   elif $ac_last_try; then
5700     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5701   else
5702     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5703   fi
5704 done
5705 rm -f conf$$subs.sh
5706
5707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5708 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5709 _ACEOF
5710 sed -n '
5711 h
5712 s/^/S["/; s/!.*/"]=/
5713 p
5714 g
5715 s/^[^!]*!//
5716 :repl
5717 t repl
5718 s/'"$ac_delim"'$//
5719 t delim
5720 :nl
5721 h
5722 s/\(.\{148\}\)..*/\1/
5723 t more1
5724 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5725 p
5726 n
5727 b repl
5728 :more1
5729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5730 p
5731 g
5732 s/.\{148\}//
5733 t nl
5734 :delim
5735 h
5736 s/\(.\{148\}\)..*/\1/
5737 t more2
5738 s/["\\]/\\&/g; s/^/"/; s/$/"/
5739 p
5740 b
5741 :more2
5742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5743 p
5744 g
5745 s/.\{148\}//
5746 t delim
5747 ' <conf$$subs.awk | sed '
5748 /^[^""]/{
5749   N
5750   s/\n//
5751 }
5752 ' >>$CONFIG_STATUS || ac_write_fail=1
5753 rm -f conf$$subs.awk
5754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5755 _ACAWK
5756 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5757   for (key in S) S_is_set[key] = 1
5758   FS = "\a"
5759
5760 }
5761 {
5762   line = $ 0
5763   nfields = split(line, field, "@")
5764   substed = 0
5765   len = length(field[1])
5766   for (i = 2; i < nfields; i++) {
5767     key = field[i]
5768     keylen = length(key)
5769     if (S_is_set[key]) {
5770       value = S[key]
5771       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5772       len += length(value) + length(field[++i])
5773       substed = 1
5774     } else
5775       len += 1 + keylen
5776   }
5777
5778   print line
5779 }
5780
5781 _ACAWK
5782 _ACEOF
5783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5784 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5785   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5786 else
5787   cat
5788 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5789   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5790 _ACEOF
5791
5792 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5793 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5794 # trailing colons and then remove the whole line if VPATH becomes empty
5795 # (actually we leave an empty line to preserve line numbers).
5796 if test "x$srcdir" = x.; then
5797   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5798 h
5799 s///
5800 s/^/:/
5801 s/[      ]*$/:/
5802 s/:\$(srcdir):/:/g
5803 s/:\${srcdir}:/:/g
5804 s/:@srcdir@:/:/g
5805 s/^:*//
5806 s/:*$//
5807 x
5808 s/\(=[   ]*\).*/\1/
5809 G
5810 s/\n//
5811 s/^[^=]*=[       ]*$//
5812 }'
5813 fi
5814
5815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5816 fi # test -n "$CONFIG_FILES"
5817
5818
5819 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
5820 shift
5821 for ac_tag
5822 do
5823   case $ac_tag in
5824   :[FHLC]) ac_mode=$ac_tag; continue;;
5825   esac
5826   case $ac_mode$ac_tag in
5827   :[FHL]*:*);;
5828   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5829   :[FH]-) ac_tag=-:-;;
5830   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5831   esac
5832   ac_save_IFS=$IFS
5833   IFS=:
5834   set x $ac_tag
5835   IFS=$ac_save_IFS
5836   shift
5837   ac_file=$1
5838   shift
5839
5840   case $ac_mode in
5841   :L) ac_source=$1;;
5842   :[FH])
5843     ac_file_inputs=
5844     for ac_f
5845     do
5846       case $ac_f in
5847       -) ac_f="$ac_tmp/stdin";;
5848       *) # Look for the file first in the build tree, then in the source tree
5849          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5850          # because $ac_f cannot contain `:'.
5851          test -f "$ac_f" ||
5852            case $ac_f in
5853            [\\/$]*) false;;
5854            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5855            esac ||
5856            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5857       esac
5858       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5859       as_fn_append ac_file_inputs " '$ac_f'"
5860     done
5861
5862     # Let's still pretend it is `configure' which instantiates (i.e., don't
5863     # use $as_me), people would be surprised to read:
5864     #    /* config.h.  Generated by config.status.  */
5865     configure_input='Generated from '`
5866           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5867         `' by configure.'
5868     if test x"$ac_file" != x-; then
5869       configure_input="$ac_file.  $configure_input"
5870       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5871 $as_echo "$as_me: creating $ac_file" >&6;}
5872     fi
5873     # Neutralize special characters interpreted by sed in replacement strings.
5874     case $configure_input in #(
5875     *\&* | *\|* | *\\* )
5876        ac_sed_conf_input=`$as_echo "$configure_input" |
5877        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5878     *) ac_sed_conf_input=$configure_input;;
5879     esac
5880
5881     case $ac_tag in
5882     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5883       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5884     esac
5885     ;;
5886   esac
5887
5888   ac_dir=`$as_dirname -- "$ac_file" ||
5889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5890          X"$ac_file" : 'X\(//\)[^/]' \| \
5891          X"$ac_file" : 'X\(//\)$' \| \
5892          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5893 $as_echo X"$ac_file" |
5894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5895             s//\1/
5896             q
5897           }
5898           /^X\(\/\/\)[^/].*/{
5899             s//\1/
5900             q
5901           }
5902           /^X\(\/\/\)$/{
5903             s//\1/
5904             q
5905           }
5906           /^X\(\/\).*/{
5907             s//\1/
5908             q
5909           }
5910           s/.*/./; q'`
5911   as_dir="$ac_dir"; as_fn_mkdir_p
5912   ac_builddir=.
5913
5914 case "$ac_dir" in
5915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5916 *)
5917   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5918   # A ".." for each directory in $ac_dir_suffix.
5919   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5920   case $ac_top_builddir_sub in
5921   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5922   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5923   esac ;;
5924 esac
5925 ac_abs_top_builddir=$ac_pwd
5926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5927 # for backward compatibility:
5928 ac_top_builddir=$ac_top_build_prefix
5929
5930 case $srcdir in
5931   .)  # We are building in place.
5932     ac_srcdir=.
5933     ac_top_srcdir=$ac_top_builddir_sub
5934     ac_abs_top_srcdir=$ac_pwd ;;
5935   [\\/]* | ?:[\\/]* )  # Absolute name.
5936     ac_srcdir=$srcdir$ac_dir_suffix;
5937     ac_top_srcdir=$srcdir
5938     ac_abs_top_srcdir=$srcdir ;;
5939   *) # Relative name.
5940     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5941     ac_top_srcdir=$ac_top_build_prefix$srcdir
5942     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5943 esac
5944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5945
5946
5947   case $ac_mode in
5948   :F)
5949   #
5950   # CONFIG_FILE
5951   #
5952
5953   case $INSTALL in
5954   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5955   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5956   esac
5957   ac_MKDIR_P=$MKDIR_P
5958   case $MKDIR_P in
5959   [\\/$]* | ?:[\\/]* ) ;;
5960   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5961   esac
5962 _ACEOF
5963
5964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5965 # If the template does not know about datarootdir, expand it.
5966 # FIXME: This hack should be removed a few years after 2.60.
5967 ac_datarootdir_hack=; ac_datarootdir_seen=
5968 ac_sed_dataroot='
5969 /datarootdir/ {
5970   p
5971   q
5972 }
5973 /@datadir@/p
5974 /@docdir@/p
5975 /@infodir@/p
5976 /@localedir@/p
5977 /@mandir@/p'
5978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5979 *datarootdir*) ac_datarootdir_seen=yes;;
5980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5983 _ACEOF
5984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5985   ac_datarootdir_hack='
5986   s&@datadir@&$datadir&g
5987   s&@docdir@&$docdir&g
5988   s&@infodir@&$infodir&g
5989   s&@localedir@&$localedir&g
5990   s&@mandir@&$mandir&g
5991   s&\\\${datarootdir}&$datarootdir&g' ;;
5992 esac
5993 _ACEOF
5994
5995 # Neutralize VPATH when `$srcdir' = `.'.
5996 # Shell code in configure.ac might set extrasub.
5997 # FIXME: do we really want to maintain this feature?
5998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5999 ac_sed_extra="$ac_vpsub
6000 $extrasub
6001 _ACEOF
6002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6003 :t
6004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6005 s|@configure_input@|$ac_sed_conf_input|;t t
6006 s&@top_builddir@&$ac_top_builddir_sub&;t t
6007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6008 s&@srcdir@&$ac_srcdir&;t t
6009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6010 s&@top_srcdir@&$ac_top_srcdir&;t t
6011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6012 s&@builddir@&$ac_builddir&;t t
6013 s&@abs_builddir@&$ac_abs_builddir&;t t
6014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6015 s&@INSTALL@&$ac_INSTALL&;t t
6016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6017 $ac_datarootdir_hack
6018 "
6019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6020   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6021
6022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6023   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6024   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6025       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6027 which seems to be undefined.  Please make sure it is defined" >&5
6028 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6029 which seems to be undefined.  Please make sure it is defined" >&2;}
6030
6031   rm -f "$ac_tmp/stdin"
6032   case $ac_file in
6033   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6034   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6035   esac \
6036   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6037  ;;
6038
6039
6040   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6041 $as_echo "$as_me: executing $ac_file commands" >&6;}
6042  ;;
6043   esac
6044
6045
6046   case $ac_file$ac_mode in
6047     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6048   # Autoconf 2.62 quotes --file arguments for eval, but not when files
6049   # are listed without --file.  Let's play safe and only enable the eval
6050   # if we detect the quoting.
6051   case $CONFIG_FILES in
6052   *\'*) eval set x "$CONFIG_FILES" ;;
6053   *)   set x $CONFIG_FILES ;;
6054   esac
6055   shift
6056   for mf
6057   do
6058     # Strip MF so we end up with the name of the file.
6059     mf=`echo "$mf" | sed -e 's/:.*$//'`
6060     # Check whether this is an Automake generated Makefile or not.
6061     # We used to match only the files named `Makefile.in', but
6062     # some people rename them; so instead we look at the file content.
6063     # Grep'ing the first line is not enough: some people post-process
6064     # each Makefile.in and add a new line on top of each file to say so.
6065     # Grep'ing the whole file is not good either: AIX grep has a line
6066     # limit of 2048, but all sed's we know have understand at least 4000.
6067     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6068       dirpart=`$as_dirname -- "$mf" ||
6069 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6070          X"$mf" : 'X\(//\)[^/]' \| \
6071          X"$mf" : 'X\(//\)$' \| \
6072          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6073 $as_echo X"$mf" |
6074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6075             s//\1/
6076             q
6077           }
6078           /^X\(\/\/\)[^/].*/{
6079             s//\1/
6080             q
6081           }
6082           /^X\(\/\/\)$/{
6083             s//\1/
6084             q
6085           }
6086           /^X\(\/\).*/{
6087             s//\1/
6088             q
6089           }
6090           s/.*/./; q'`
6091     else
6092       continue
6093     fi
6094     # Extract the definition of DEPDIR, am__include, and am__quote
6095     # from the Makefile without running `make'.
6096     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6097     test -z "$DEPDIR" && continue
6098     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6099     test -z "am__include" && continue
6100     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6101     # When using ansi2knr, U may be empty or an underscore; expand it
6102     U=`sed -n 's/^U = //p' < "$mf"`
6103     # Find all dependency output files, they are included files with
6104     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6105     # simplest approach to changing $(DEPDIR) to its actual value in the
6106     # expansion.
6107     for file in `sed -n "
6108       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6109          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6110       # Make sure the directory exists.
6111       test -f "$dirpart/$file" && continue
6112       fdir=`$as_dirname -- "$file" ||
6113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6114          X"$file" : 'X\(//\)[^/]' \| \
6115          X"$file" : 'X\(//\)$' \| \
6116          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6117 $as_echo X"$file" |
6118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6119             s//\1/
6120             q
6121           }
6122           /^X\(\/\/\)[^/].*/{
6123             s//\1/
6124             q
6125           }
6126           /^X\(\/\/\)$/{
6127             s//\1/
6128             q
6129           }
6130           /^X\(\/\).*/{
6131             s//\1/
6132             q
6133           }
6134           s/.*/./; q'`
6135       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6136       # echo "creating $dirpart/$file"
6137       echo '# dummy' > "$dirpart/$file"
6138     done
6139   done
6140 }
6141  ;;
6142
6143   esac
6144 done # for ac_tag
6145
6146
6147 as_fn_exit 0
6148 _ACEOF
6149 ac_clean_files=$ac_clean_files_save
6150
6151 test $ac_write_fail = 0 ||
6152   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6153
6154
6155 # configure is writing to config.log, and then calls config.status.
6156 # config.status does its own redirection, appending to config.log.
6157 # Unfortunately, on DOS this fails, as config.log is still kept open
6158 # by configure, so config.status won't be able to write to it; its
6159 # output is simply discarded.  So we exec the FD to /dev/null,
6160 # effectively closing config.log, so it can be properly (re)opened and
6161 # appended to by config.status.  When coming back to configure, we
6162 # need to make the FD available again.
6163 if test "$no_create" != yes; then
6164   ac_cs_success=:
6165   ac_config_status_args=
6166   test "$silent" = yes &&
6167     ac_config_status_args="$ac_config_status_args --quiet"
6168   exec 5>/dev/null
6169   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6170   exec 5>>config.log
6171   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6172   # would make configure fail if this is the last instruction.
6173   $ac_cs_success || as_fn_exit 1
6174 fi
6175 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6177 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6178 fi
6179