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