1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pcb 4.2.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='pcb'
579PACKAGE_TARNAME='pcb'
580PACKAGE_VERSION='4.2.0'
581PACKAGE_STRING='pcb 4.2.0'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="src/draw.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622gt_needs=
623ac_header_list=
624gl_use_threads_default=
625ac_func_list=
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630TOPDIRS
631BTNMOD
632PCBTREEPATH
633PCBTREEDIR
634LIBRARYFILENAME
635PCBLIBDIR
636FONTFILENAME
637CC_OR_CXX
638DEBUG_BUILD_FALSE
639DEBUG_BUILD_TRUE
640PCB
641BUILD_PCBLIB_NEWLIB_FALSE
642BUILD_PCBLIB_NEWLIB_TRUE
643PNG_PREVIEW_FALSE
644PNG_PREVIEW_TRUE
645GIF_FALSE
646GIF_TRUE
647PNG_FALSE
648PNG_TRUE
649GDLIB_CONFIG
650GDLIB_LIBS
651GDLIB_CFLAGS
652GTKGLEXT_LIBS
653GTKGLEXT_CFLAGS
654GTK_LIBS
655GTK_CFLAGS
656X_EXTRA_LIBS
657X_LIBS
658X_PRE_LIBS
659X_CFLAGS
660GLIB_LIBS
661GLIB_CFLAGS
662HAVE_TEST_TOOLS_FALSE
663HAVE_TEST_TOOLS_TRUE
664GERBV
665XHOST
666IM_MONTAGE
667IM_DISPLAY
668IM_CONVERT
669IM_COMPOSITE
670IM_COMPARE
671IM_ANIMATE
672MISSING_GSCHEM_FALSE
673MISSING_GSCHEM_TRUE
674GSCHEM
675MISSING_PS2PDF_FALSE
676MISSING_PS2PDF_TRUE
677PS2PDF
678MISSING_TEXI2DVI_FALSE
679MISSING_TEXI2DVI_TRUE
680MISSING_PDFLATEX_FALSE
681MISSING_PDFLATEX_TRUE
682PDFLATEX
683GNUM4
684WISH
685M4
686UPDATE_MIME_DATABASE
687ENABLE_UPDATE_MIME_DATABASE_FALSE
688ENABLE_UPDATE_MIME_DATABASE_TRUE
689UPDATE_DESKTOP_DATABASE
690ENABLE_UPDATE_DESKTOP_DATABASE_FALSE
691ENABLE_UPDATE_DESKTOP_DATABASE_TRUE
692KDEDATADIR
693XDGDATADIR
694GTK_UPDATE_ICON_CACHE_BIN
695SETENV
696HIDLIBS
697HIDLIST
698GLU_LIBS
699GLU_CFLAGS
700GL_LIBS
701GL_CFLAGS
702PTHREAD_CFLAGS
703PTHREAD_LIBS
704PTHREAD_CC
705ax_pthread_config
706XMKMF
707USE_GL_FALSE
708USE_GL_TRUE
709DBUS_LIBS
710DBUS_CFLAGS
711WITH_DBUS_FALSE
712WITH_DBUS_TRUE
713CAIRO_LIBS
714CAIRO_CFLAGS
715PKG_CONFIG
716WITH_TOPOROUTER_FALSE
717WITH_TOPOROUTER_TRUE
718WITHGUI
719KPSEWHICH
720PERL
721TEXI2DVI
722MKINFO
723CONVERT
724PPMTOWINICON
725XPMTOPPM
726YACC_PATH
727YFLAGS
728YACC
729LEX_PATH
730LEXLIB
731LEX_OUTPUT_ROOT
732LEX
733ALL_LINGUAS
734INTLTOOL_PERL
735INTLTOOL_POLICY_RULE
736INTLTOOL_SERVICE_RULE
737INTLTOOL_THEME_RULE
738INTLTOOL_SCHEMAS_RULE
739INTLTOOL_CAVES_RULE
740INTLTOOL_XML_NOMERGE_RULE
741INTLTOOL_XML_RULE
742INTLTOOL_KBD_RULE
743INTLTOOL_XAM_RULE
744INTLTOOL_UI_RULE
745INTLTOOL_SOUNDLIST_RULE
746INTLTOOL_SHEET_RULE
747INTLTOOL_SERVER_RULE
748INTLTOOL_PONG_RULE
749INTLTOOL_OAF_RULE
750INTLTOOL_PROP_RULE
751INTLTOOL_KEYS_RULE
752INTLTOOL_DIRECTORY_RULE
753INTLTOOL_DESKTOP_RULE
754INTLTOOL_EXTRACT
755INTLTOOL_MERGE
756INTLTOOL_UPDATE
757POSUB
758LTLIBINTL
759LIBINTL
760INTLLIBS
761INTL_LIBTOOL_SUFFIX_PREFIX
762INTLOBJS
763GENCAT
764INSTOBJEXT
765DATADIRNAME
766CATOBJEXT
767USE_INCLUDED_LIBINTL
768BUILD_INCLUDED_LIBINTL
769LTLIBC
770WOE32
771WOE32DLL
772HAVE_WPRINTF
773HAVE_NEWLOCALE
774HAVE_SNPRINTF
775HAVE_ASPRINTF
776HAVE_POSIX_PRINTF
777INTL_DEFAULT_VERBOSITY
778INTL_MACOSX_LIBS
779GLIBC21
780INTLBISON
781LTLIBICONV
782LIBICONV
783LTLIBMULTITHREAD
784LIBMULTITHREAD
785LTLIBTHREAD
786LIBTHREAD
787LIBPTH_PREFIX
788LTLIBPTH
789LIBPTH
790PRI_MACROS_BROKEN
791ALLOCA
792HAVE_VISIBILITY
793CFLAG_VISIBILITY
794RANLIB
795GLIBC2
796XGETTEXT_EXTRA_OPTIONS
797MSGMERGE
798XGETTEXT_015
799XGETTEXT
800GMSGFMT_015
801MSGFMT_015
802GMSGFMT
803MSGFMT
804GETTEXT_MACRO_VERSION
805USE_NLS
806SED
807GETTEXT_PACKAGE
808WINDRES
809am__fastdepCXX_FALSE
810am__fastdepCXX_TRUE
811CXXDEPMODE
812ac_ct_CXX
813CXXFLAGS
814CXX
815WIN32_FALSE
816WIN32_TRUE
817WIN32
818host_os
819host_vendor
820host_cpu
821host
822build_os
823build_vendor
824build_cpu
825build
826DOC
827GIT_OR_CVS_VERSION_FALSE
828GIT_OR_CVS_VERSION_TRUE
829CVS_VERSION_FALSE
830CVS_VERSION_TRUE
831GIT_VERSION_FALSE
832GIT_VERSION_TRUE
833EGREP
834GREP
835CPP
836am__fastdepCC_FALSE
837am__fastdepCC_TRUE
838CCDEPMODE
839AMDEPBACKSLASH
840AMDEP_FALSE
841AMDEP_TRUE
842am__quote
843am__include
844DEPDIR
845OBJEXT
846EXEEXT
847ac_ct_CC
848CPPFLAGS
849LDFLAGS
850CFLAGS
851CC
852am__untar
853am__tar
854AMTAR
855am__leading_dot
856SET_MAKE
857AWK
858mkdir_p
859MKDIR_P
860INSTALL_STRIP_PROGRAM
861STRIP
862install_sh
863MAKEINFO
864AUTOHEADER
865AUTOMAKE
866AUTOCONF
867ACLOCAL
868VERSION
869PACKAGE
870CYGPATH_W
871am__isrc
872INSTALL_DATA
873INSTALL_SCRIPT
874INSTALL_PROGRAM
875target_alias
876host_alias
877build_alias
878LIBS
879ECHO_T
880ECHO_N
881ECHO_C
882DEFS
883mandir
884localedir
885libdir
886psdir
887pdfdir
888dvidir
889htmldir
890infodir
891docdir
892oldincludedir
893includedir
894localstatedir
895sharedstatedir
896sysconfdir
897datadir
898datarootdir
899libexecdir
900sbindir
901bindir
902program_transform_name
903prefix
904exec_prefix
905PACKAGE_URL
906PACKAGE_BUGREPORT
907PACKAGE_STRING
908PACKAGE_VERSION
909PACKAGE_TARNAME
910PACKAGE_NAME
911PATH_SEPARATOR
912SHELL'
913ac_subst_files=''
914ac_user_opts='
915enable_option_checking
916enable_dependency_tracking
917enable_doc
918enable_nls
919enable_threads
920with_gnu_ld
921enable_rpath
922with_libpth_prefix
923with_libiconv_prefix
924with_included_gettext
925with_libintl_prefix
926with_gui
927enable_toporouter
928enable_toporouter_output
929enable_dbus
930enable_gl
931with_x
932with_printer
933with_exporters
934with_xdgdatadir
935with_kdedatadir
936enable_update_desktop_database
937enable_update_mime_database
938enable_gif
939enable_jpeg
940enable_png
941enable_m4lib_png
942enable_xrender
943enable_xinerama
944enable_dmalloc
945enable_efence
946enable_debug
947enable_coord64
948enable_coord32
949enable_build_with_cxx
950'
951      ac_precious_vars='build_alias
952host_alias
953target_alias
954CC
955CFLAGS
956LDFLAGS
957LIBS
958CPPFLAGS
959CPP
960CXX
961CXXFLAGS
962CCC
963YACC
964YFLAGS
965PKG_CONFIG
966CAIRO_CFLAGS
967CAIRO_LIBS
968DBUS_CFLAGS
969DBUS_LIBS
970XMKMF
971GLIB_CFLAGS
972GLIB_LIBS
973GTK_CFLAGS
974GTK_LIBS
975GTKGLEXT_CFLAGS
976GTKGLEXT_LIBS
977GDLIB_CFLAGS
978GDLIB_LIBS'
979
980
981# Initialize some variables set by options.
982ac_init_help=
983ac_init_version=false
984ac_unrecognized_opts=
985ac_unrecognized_sep=
986# The variables have the same names as the options, with
987# dashes changed to underlines.
988cache_file=/dev/null
989exec_prefix=NONE
990no_create=
991no_recursion=
992prefix=NONE
993program_prefix=NONE
994program_suffix=NONE
995program_transform_name=s,x,x,
996silent=
997site=
998srcdir=
999verbose=
1000x_includes=NONE
1001x_libraries=NONE
1002
1003# Installation directory options.
1004# These are left unexpanded so users can "make install exec_prefix=/foo"
1005# and all the variables that are supposed to be based on exec_prefix
1006# by default will actually change.
1007# Use braces instead of parens because sh, perl, etc. also accept them.
1008# (The list follows the same order as the GNU Coding Standards.)
1009bindir='${exec_prefix}/bin'
1010sbindir='${exec_prefix}/sbin'
1011libexecdir='${exec_prefix}/libexec'
1012datarootdir='${prefix}/share'
1013datadir='${datarootdir}'
1014sysconfdir='${prefix}/etc'
1015sharedstatedir='${prefix}/com'
1016localstatedir='${prefix}/var'
1017includedir='${prefix}/include'
1018oldincludedir='/usr/include'
1019docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020infodir='${datarootdir}/info'
1021htmldir='${docdir}'
1022dvidir='${docdir}'
1023pdfdir='${docdir}'
1024psdir='${docdir}'
1025libdir='${exec_prefix}/lib'
1026localedir='${datarootdir}/locale'
1027mandir='${datarootdir}/man'
1028
1029ac_prev=
1030ac_dashdash=
1031for ac_option
1032do
1033  # If the previous option needs an argument, assign it.
1034  if test -n "$ac_prev"; then
1035    eval $ac_prev=\$ac_option
1036    ac_prev=
1037    continue
1038  fi
1039
1040  case $ac_option in
1041  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042  *=)   ac_optarg= ;;
1043  *)    ac_optarg=yes ;;
1044  esac
1045
1046  # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048  case $ac_dashdash$ac_option in
1049  --)
1050    ac_dashdash=yes ;;
1051
1052  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053    ac_prev=bindir ;;
1054  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055    bindir=$ac_optarg ;;
1056
1057  -build | --build | --buil | --bui | --bu)
1058    ac_prev=build_alias ;;
1059  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060    build_alias=$ac_optarg ;;
1061
1062  -cache-file | --cache-file | --cache-fil | --cache-fi \
1063  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064    ac_prev=cache_file ;;
1065  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067    cache_file=$ac_optarg ;;
1068
1069  --config-cache | -C)
1070    cache_file=config.cache ;;
1071
1072  -datadir | --datadir | --datadi | --datad)
1073    ac_prev=datadir ;;
1074  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075    datadir=$ac_optarg ;;
1076
1077  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078  | --dataroo | --dataro | --datar)
1079    ac_prev=datarootdir ;;
1080  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082    datarootdir=$ac_optarg ;;
1083
1084  -disable-* | --disable-*)
1085    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088      as_fn_error $? "invalid feature name: $ac_useropt"
1089    ac_useropt_orig=$ac_useropt
1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091    case $ac_user_opts in
1092      *"
1093"enable_$ac_useropt"
1094"*) ;;
1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096	 ac_unrecognized_sep=', ';;
1097    esac
1098    eval enable_$ac_useropt=no ;;
1099
1100  -docdir | --docdir | --docdi | --doc | --do)
1101    ac_prev=docdir ;;
1102  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103    docdir=$ac_optarg ;;
1104
1105  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106    ac_prev=dvidir ;;
1107  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108    dvidir=$ac_optarg ;;
1109
1110  -enable-* | --enable-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid feature name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"enable_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval enable_$ac_useropt=\$ac_optarg ;;
1125
1126  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128  | --exec | --exe | --ex)
1129    ac_prev=exec_prefix ;;
1130  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132  | --exec=* | --exe=* | --ex=*)
1133    exec_prefix=$ac_optarg ;;
1134
1135  -gas | --gas | --ga | --g)
1136    # Obsolete; use --with-gas.
1137    with_gas=yes ;;
1138
1139  -help | --help | --hel | --he | -h)
1140    ac_init_help=long ;;
1141  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142    ac_init_help=recursive ;;
1143  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144    ac_init_help=short ;;
1145
1146  -host | --host | --hos | --ho)
1147    ac_prev=host_alias ;;
1148  -host=* | --host=* | --hos=* | --ho=*)
1149    host_alias=$ac_optarg ;;
1150
1151  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152    ac_prev=htmldir ;;
1153  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154  | --ht=*)
1155    htmldir=$ac_optarg ;;
1156
1157  -includedir | --includedir | --includedi | --included | --include \
1158  | --includ | --inclu | --incl | --inc)
1159    ac_prev=includedir ;;
1160  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161  | --includ=* | --inclu=* | --incl=* | --inc=*)
1162    includedir=$ac_optarg ;;
1163
1164  -infodir | --infodir | --infodi | --infod | --info | --inf)
1165    ac_prev=infodir ;;
1166  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167    infodir=$ac_optarg ;;
1168
1169  -libdir | --libdir | --libdi | --libd)
1170    ac_prev=libdir ;;
1171  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172    libdir=$ac_optarg ;;
1173
1174  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175  | --libexe | --libex | --libe)
1176    ac_prev=libexecdir ;;
1177  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178  | --libexe=* | --libex=* | --libe=*)
1179    libexecdir=$ac_optarg ;;
1180
1181  -localedir | --localedir | --localedi | --localed | --locale)
1182    ac_prev=localedir ;;
1183  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184    localedir=$ac_optarg ;;
1185
1186  -localstatedir | --localstatedir | --localstatedi | --localstated \
1187  | --localstate | --localstat | --localsta | --localst | --locals)
1188    ac_prev=localstatedir ;;
1189  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191    localstatedir=$ac_optarg ;;
1192
1193  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194    ac_prev=mandir ;;
1195  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196    mandir=$ac_optarg ;;
1197
1198  -nfp | --nfp | --nf)
1199    # Obsolete; use --without-fp.
1200    with_fp=no ;;
1201
1202  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203  | --no-cr | --no-c | -n)
1204    no_create=yes ;;
1205
1206  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208    no_recursion=yes ;;
1209
1210  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212  | --oldin | --oldi | --old | --ol | --o)
1213    ac_prev=oldincludedir ;;
1214  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217    oldincludedir=$ac_optarg ;;
1218
1219  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220    ac_prev=prefix ;;
1221  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222    prefix=$ac_optarg ;;
1223
1224  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225  | --program-pre | --program-pr | --program-p)
1226    ac_prev=program_prefix ;;
1227  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229    program_prefix=$ac_optarg ;;
1230
1231  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232  | --program-suf | --program-su | --program-s)
1233    ac_prev=program_suffix ;;
1234  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236    program_suffix=$ac_optarg ;;
1237
1238  -program-transform-name | --program-transform-name \
1239  | --program-transform-nam | --program-transform-na \
1240  | --program-transform-n | --program-transform- \
1241  | --program-transform | --program-transfor \
1242  | --program-transfo | --program-transf \
1243  | --program-trans | --program-tran \
1244  | --progr-tra | --program-tr | --program-t)
1245    ac_prev=program_transform_name ;;
1246  -program-transform-name=* | --program-transform-name=* \
1247  | --program-transform-nam=* | --program-transform-na=* \
1248  | --program-transform-n=* | --program-transform-=* \
1249  | --program-transform=* | --program-transfor=* \
1250  | --program-transfo=* | --program-transf=* \
1251  | --program-trans=* | --program-tran=* \
1252  | --progr-tra=* | --program-tr=* | --program-t=*)
1253    program_transform_name=$ac_optarg ;;
1254
1255  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256    ac_prev=pdfdir ;;
1257  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258    pdfdir=$ac_optarg ;;
1259
1260  -psdir | --psdir | --psdi | --psd | --ps)
1261    ac_prev=psdir ;;
1262  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263    psdir=$ac_optarg ;;
1264
1265  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266  | -silent | --silent | --silen | --sile | --sil)
1267    silent=yes ;;
1268
1269  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270    ac_prev=sbindir ;;
1271  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272  | --sbi=* | --sb=*)
1273    sbindir=$ac_optarg ;;
1274
1275  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277  | --sharedst | --shareds | --shared | --share | --shar \
1278  | --sha | --sh)
1279    ac_prev=sharedstatedir ;;
1280  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283  | --sha=* | --sh=*)
1284    sharedstatedir=$ac_optarg ;;
1285
1286  -site | --site | --sit)
1287    ac_prev=site ;;
1288  -site=* | --site=* | --sit=*)
1289    site=$ac_optarg ;;
1290
1291  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292    ac_prev=srcdir ;;
1293  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294    srcdir=$ac_optarg ;;
1295
1296  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297  | --syscon | --sysco | --sysc | --sys | --sy)
1298    ac_prev=sysconfdir ;;
1299  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301    sysconfdir=$ac_optarg ;;
1302
1303  -target | --target | --targe | --targ | --tar | --ta | --t)
1304    ac_prev=target_alias ;;
1305  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306    target_alias=$ac_optarg ;;
1307
1308  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309    verbose=yes ;;
1310
1311  -version | --version | --versio | --versi | --vers | -V)
1312    ac_init_version=: ;;
1313
1314  -with-* | --with-*)
1315    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316    # Reject names that are not valid shell variable names.
1317    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318      as_fn_error $? "invalid package name: $ac_useropt"
1319    ac_useropt_orig=$ac_useropt
1320    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321    case $ac_user_opts in
1322      *"
1323"with_$ac_useropt"
1324"*) ;;
1325      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326	 ac_unrecognized_sep=', ';;
1327    esac
1328    eval with_$ac_useropt=\$ac_optarg ;;
1329
1330  -without-* | --without-*)
1331    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332    # Reject names that are not valid shell variable names.
1333    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334      as_fn_error $? "invalid package name: $ac_useropt"
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"with_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval with_$ac_useropt=no ;;
1345
1346  --x)
1347    # Obsolete; use --with-x.
1348    with_x=yes ;;
1349
1350  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351  | --x-incl | --x-inc | --x-in | --x-i)
1352    ac_prev=x_includes ;;
1353  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355    x_includes=$ac_optarg ;;
1356
1357  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359    ac_prev=x_libraries ;;
1360  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362    x_libraries=$ac_optarg ;;
1363
1364  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1365Try \`$0 --help' for more information"
1366    ;;
1367
1368  *=*)
1369    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370    # Reject names that are not valid shell variable names.
1371    case $ac_envvar in #(
1372      '' | [0-9]* | *[!_$as_cr_alnum]* )
1373      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1374    esac
1375    eval $ac_envvar=\$ac_optarg
1376    export $ac_envvar ;;
1377
1378  *)
1379    # FIXME: should be removed in autoconf 3.0.
1380    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1384    ;;
1385
1386  esac
1387done
1388
1389if test -n "$ac_prev"; then
1390  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391  as_fn_error $? "missing argument to $ac_option"
1392fi
1393
1394if test -n "$ac_unrecognized_opts"; then
1395  case $enable_option_checking in
1396    no) ;;
1397    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1398    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399  esac
1400fi
1401
1402# Check all directory arguments for consistency.
1403for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404		datadir sysconfdir sharedstatedir localstatedir includedir \
1405		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406		libdir localedir mandir
1407do
1408  eval ac_val=\$$ac_var
1409  # Remove trailing slashes.
1410  case $ac_val in
1411    */ )
1412      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413      eval $ac_var=\$ac_val;;
1414  esac
1415  # Be sure to have absolute directory names.
1416  case $ac_val in
1417    [\\/$]* | ?:[\\/]* )  continue;;
1418    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419  esac
1420  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1421done
1422
1423# There might be people who depend on the old broken behavior: `$host'
1424# used to hold the argument of --host etc.
1425# FIXME: To remove some day.
1426build=$build_alias
1427host=$host_alias
1428target=$target_alias
1429
1430# FIXME: To remove some day.
1431if test "x$host_alias" != x; then
1432  if test "x$build_alias" = x; then
1433    cross_compiling=maybe
1434  elif test "x$build_alias" != "x$host_alias"; then
1435    cross_compiling=yes
1436  fi
1437fi
1438
1439ac_tool_prefix=
1440test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442test "$silent" = yes && exec 6>/dev/null
1443
1444
1445ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446ac_ls_di=`ls -di .` &&
1447ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448  as_fn_error $? "working directory cannot be determined"
1449test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450  as_fn_error $? "pwd does not report name of working directory"
1451
1452
1453# Find the source files, if location was not specified.
1454if test -z "$srcdir"; then
1455  ac_srcdir_defaulted=yes
1456  # Try the directory containing this script, then the parent directory.
1457  ac_confdir=`$as_dirname -- "$as_myself" ||
1458$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459	 X"$as_myself" : 'X\(//\)[^/]' \| \
1460	 X"$as_myself" : 'X\(//\)$' \| \
1461	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462$as_echo X"$as_myself" |
1463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464	    s//\1/
1465	    q
1466	  }
1467	  /^X\(\/\/\)[^/].*/{
1468	    s//\1/
1469	    q
1470	  }
1471	  /^X\(\/\/\)$/{
1472	    s//\1/
1473	    q
1474	  }
1475	  /^X\(\/\).*/{
1476	    s//\1/
1477	    q
1478	  }
1479	  s/.*/./; q'`
1480  srcdir=$ac_confdir
1481  if test ! -r "$srcdir/$ac_unique_file"; then
1482    srcdir=..
1483  fi
1484else
1485  ac_srcdir_defaulted=no
1486fi
1487if test ! -r "$srcdir/$ac_unique_file"; then
1488  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1490fi
1491ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492ac_abs_confdir=`(
1493	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1494	pwd)`
1495# When building in place, set srcdir=.
1496if test "$ac_abs_confdir" = "$ac_pwd"; then
1497  srcdir=.
1498fi
1499# Remove unnecessary trailing slashes from srcdir.
1500# Double slashes in file names in object file debugging info
1501# mess up M-x gdb in Emacs.
1502case $srcdir in
1503*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504esac
1505for ac_var in $ac_precious_vars; do
1506  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507  eval ac_env_${ac_var}_value=\$${ac_var}
1508  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510done
1511
1512#
1513# Report the --help message.
1514#
1515if test "$ac_init_help" = "long"; then
1516  # Omit some internal or obsolete options to make the list less imposing.
1517  # This message is too long to be a string in the A/UX 3.1 sh.
1518  cat <<_ACEOF
1519\`configure' configures pcb 4.2.0 to adapt to many kinds of systems.
1520
1521Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526Defaults for the options are specified in brackets.
1527
1528Configuration:
1529  -h, --help              display this help and exit
1530      --help=short        display options specific to this package
1531      --help=recursive    display the short help of all the included packages
1532  -V, --version           display version information and exit
1533  -q, --quiet, --silent   do not print \`checking ...' messages
1534      --cache-file=FILE   cache test results in FILE [disabled]
1535  -C, --config-cache      alias for \`--cache-file=config.cache'
1536  -n, --no-create         do not create output files
1537      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539Installation directories:
1540  --prefix=PREFIX         install architecture-independent files in PREFIX
1541                          [$ac_default_prefix]
1542  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                          [PREFIX]
1544
1545By default, \`make install' will install all the files in
1546\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548for instance \`--prefix=\$HOME'.
1549
1550For better control, use the options below.
1551
1552Fine tuning of the installation directories:
1553  --bindir=DIR            user executables [EPREFIX/bin]
1554  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555  --libexecdir=DIR        program executables [EPREFIX/libexec]
1556  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559  --libdir=DIR            object code libraries [EPREFIX/lib]
1560  --includedir=DIR        C header files [PREFIX/include]
1561  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564  --infodir=DIR           info documentation [DATAROOTDIR/info]
1565  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566  --mandir=DIR            man documentation [DATAROOTDIR/man]
1567  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcb]
1568  --htmldir=DIR           html documentation [DOCDIR]
1569  --dvidir=DIR            dvi documentation [DOCDIR]
1570  --pdfdir=DIR            pdf documentation [DOCDIR]
1571  --psdir=DIR             ps documentation [DOCDIR]
1572_ACEOF
1573
1574  cat <<\_ACEOF
1575
1576Program names:
1577  --program-prefix=PREFIX            prepend PREFIX to installed program names
1578  --program-suffix=SUFFIX            append SUFFIX to installed program names
1579  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1580
1581X features:
1582  --x-includes=DIR    X include files are in DIR
1583  --x-libraries=DIR   X library files are in DIR
1584
1585System types:
1586  --build=BUILD     configure for building on BUILD [guessed]
1587  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1588_ACEOF
1589fi
1590
1591if test -n "$ac_init_help"; then
1592  case $ac_init_help in
1593     short | recursive ) echo "Configuration of pcb 4.2.0:";;
1594   esac
1595  cat <<\_ACEOF
1596
1597Optional Features:
1598  --disable-option-checking  ignore unrecognized --enable/--with options
1599  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1600  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1601  --disable-dependency-tracking  speeds up one-time build
1602  --enable-dependency-tracking   do not reject slow dependency extractors
1603  --enable-doc            Build and install the documentation [default=yes]
1604  --disable-nls           do not use Native Language Support
1605  --enable-threads={posix|solaris|pth|windows}
1606                          specify multithreading API
1607  --disable-threads       build without multithread safety
1608  --disable-rpath         do not hardcode runtime library paths
1609  --enable-toporouter     build toporouter [default=yes]
1610
1611  --enable-toporouter-output
1612                          enable toporouter graphical output [default=no]
1613
1614  --enable-dbus           Enable DBUS IPC
1615  --enable-gl           Enable GL drawing (with GTK HID)
1616  --disable-update-desktop-database
1617                          do not update desktop database after installation
1618  --disable-update-mime-database
1619                          do not update mime database after installation
1620  --disable-gif           Disable support for gif output when the png HID is used [default=include gif support]
1621  --disable-jpeg          Disable support for JPEG output when the png HID is used [default=include JPEG support]
1622  --disable-png           Disable support for PNG output when the png HID is used [default=include PNG support]
1623  --enable-m4lib-png      Enable creating png previews for the m4 library
1624  --disable-xrender       Compile and link with Xrender default=yes
1625  --disable-xinerama       Compile and link with Xinerama default=yes
1626  --enable-dmalloc        Compile and link with dmalloc for malloc debugging default=no
1627  --enable-efence         Link with ElectricFence for malloc debugging default=no
1628  --enable-debug          Enable debugging code
1629  --enable-coord64        Force 64-bit coordinate types
1630  --enable-coord32        Force 32-bit coordinate types
1631  --enable-build-with-cxx build with C++ compiler instead of C compiler
1632
1633Optional Packages:
1634  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1637  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1638  --without-libpth-prefix     don't search for libpth in includedir and libdir
1639  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1640  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1641  --with-included-gettext use the GNU gettext library included here
1642  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1643  --without-libintl-prefix     don't search for libintl in includedir and libdir
1644  --with-gui=	          Specify the GUI to use: batch gtk lesstif [default=gtk]
1645  --with-x                use the X Window System
1646  --with-printer= 	  Specify the printer: lpr [default=lpr]
1647  --with-exporters=       Enable export devices: bom gerber gcode nelma png ps ipcd356 gsvit [default=bom gerber gcode nelma png ps ipcd356 gsvit]
1648  --with-xdgdatadir=path  Change where the theme icons
1649and mime registrations are installed [DATADIR]
1650  --with-kdedatadir=path  Change where the KDE mime reg
1651istrations are installed [DATADIR]
1652
1653Some influential environment variables:
1654  CC          C compiler command
1655  CFLAGS      C compiler flags
1656  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1657              nonstandard directory <lib dir>
1658  LIBS        libraries to pass to the linker, e.g. -l<library>
1659  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1660              you have headers in a nonstandard directory <include dir>
1661  CPP         C preprocessor
1662  CXX         C++ compiler command
1663  CXXFLAGS    C++ compiler flags
1664  YACC        The `Yet Another Compiler Compiler' implementation to use.
1665              Defaults to the first program found out of: `bison -y', `byacc',
1666              `yacc'.
1667  YFLAGS      The list of arguments that will be passed by default to $YACC.
1668              This script will default YFLAGS to the empty string to avoid a
1669              default value of `-d' given by some make applications.
1670  PKG_CONFIG  path to pkg-config utility
1671  CAIRO_CFLAGS
1672              C compiler flags for CAIRO, overriding pkg-config
1673  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1674  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1675  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1676  XMKMF       Path to xmkmf, Makefile generator for X Window System
1677  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1678  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1679  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1680  GTK_LIBS    linker flags for GTK, overriding pkg-config
1681  GTKGLEXT_CFLAGS
1682              C compiler flags for GTKGLEXT, overriding pkg-config
1683  GTKGLEXT_LIBS
1684              linker flags for GTKGLEXT, overriding pkg-config
1685  GDLIB_CFLAGS
1686              C compiler flags for GDLIB, overriding pkg-config
1687  GDLIB_LIBS  linker flags for GDLIB, overriding pkg-config
1688
1689Use these variables to override the choices made by `configure' or to help
1690it to find libraries and programs with nonstandard names/locations.
1691
1692Report bugs to the package provider.
1693_ACEOF
1694ac_status=$?
1695fi
1696
1697if test "$ac_init_help" = "recursive"; then
1698  # If there are subdirs, report their specific --help.
1699  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700    test -d "$ac_dir" ||
1701      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702      continue
1703    ac_builddir=.
1704
1705case "$ac_dir" in
1706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707*)
1708  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709  # A ".." for each directory in $ac_dir_suffix.
1710  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711  case $ac_top_builddir_sub in
1712  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714  esac ;;
1715esac
1716ac_abs_top_builddir=$ac_pwd
1717ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718# for backward compatibility:
1719ac_top_builddir=$ac_top_build_prefix
1720
1721case $srcdir in
1722  .)  # We are building in place.
1723    ac_srcdir=.
1724    ac_top_srcdir=$ac_top_builddir_sub
1725    ac_abs_top_srcdir=$ac_pwd ;;
1726  [\\/]* | ?:[\\/]* )  # Absolute name.
1727    ac_srcdir=$srcdir$ac_dir_suffix;
1728    ac_top_srcdir=$srcdir
1729    ac_abs_top_srcdir=$srcdir ;;
1730  *) # Relative name.
1731    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732    ac_top_srcdir=$ac_top_build_prefix$srcdir
1733    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734esac
1735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737    cd "$ac_dir" || { ac_status=$?; continue; }
1738    # Check for guested configure.
1739    if test -f "$ac_srcdir/configure.gnu"; then
1740      echo &&
1741      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742    elif test -f "$ac_srcdir/configure"; then
1743      echo &&
1744      $SHELL "$ac_srcdir/configure" --help=recursive
1745    else
1746      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747    fi || ac_status=$?
1748    cd "$ac_pwd" || { ac_status=$?; break; }
1749  done
1750fi
1751
1752test -n "$ac_init_help" && exit $ac_status
1753if $ac_init_version; then
1754  cat <<\_ACEOF
1755pcb configure 4.2.0
1756generated by GNU Autoconf 2.69
1757
1758Copyright (C) 2012 Free Software Foundation, Inc.
1759This configure script is free software; the Free Software Foundation
1760gives unlimited permission to copy, distribute and modify it.
1761_ACEOF
1762  exit
1763fi
1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  rm -f conftest.$ac_objext
1776  if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_compile") 2>conftest.err
1784  ac_status=$?
1785  if test -s conftest.err; then
1786    grep -v '^ *+' conftest.err >conftest.er1
1787    cat conftest.er1 >&5
1788    mv -f conftest.er1 conftest.err
1789  fi
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && {
1792	 test -z "$ac_c_werror_flag" ||
1793	 test ! -s conftest.err
1794       } && test -s conftest.$ac_objext; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800	ac_retval=1
1801fi
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_compile
1806
1807# ac_fn_c_try_cpp LINENO
1808# ----------------------
1809# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_c_try_cpp ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  if { { ac_try="$ac_cpp conftest.$ac_ext"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } > conftest.i && {
1829	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830	 test ! -s conftest.err
1831       }; then :
1832  ac_retval=0
1833else
1834  $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837    ac_retval=1
1838fi
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_c_try_cpp
1843
1844# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845# -------------------------------------------------------
1846# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847# the include files in INCLUDES and setting the cache variable VAR
1848# accordingly.
1849ac_fn_c_check_header_mongrel ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  if eval \${$3+:} false; then :
1853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856  $as_echo_n "(cached) " >&6
1857fi
1858eval ac_res=\$$3
1859	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861else
1862  # Is the header compilable?
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864$as_echo_n "checking $2 usability... " >&6; }
1865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867$4
1868#include <$2>
1869_ACEOF
1870if ac_fn_c_try_compile "$LINENO"; then :
1871  ac_header_compiler=yes
1872else
1873  ac_header_compiler=no
1874fi
1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877$as_echo "$ac_header_compiler" >&6; }
1878
1879# Is the header present?
1880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881$as_echo_n "checking $2 presence... " >&6; }
1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884#include <$2>
1885_ACEOF
1886if ac_fn_c_try_cpp "$LINENO"; then :
1887  ac_header_preproc=yes
1888else
1889  ac_header_preproc=no
1890fi
1891rm -f conftest.err conftest.i conftest.$ac_ext
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893$as_echo "$ac_header_preproc" >&6; }
1894
1895# So?  What about this header?
1896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897  yes:no: )
1898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902    ;;
1903  no:yes:* )
1904    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1907$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1911$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914    ;;
1915esac
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if eval \${$3+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920else
1921  eval "$3=\$ac_header_compiler"
1922fi
1923eval ac_res=\$$3
1924	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926fi
1927  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929} # ac_fn_c_check_header_mongrel
1930
1931# ac_fn_c_try_run LINENO
1932# ----------------------
1933# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1934# that executables *can* be run.
1935ac_fn_c_try_run ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  if { { ac_try="$ac_link"
1939case "(($ac_try" in
1940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941  *) ac_try_echo=$ac_try;;
1942esac
1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944$as_echo "$ac_try_echo"; } >&5
1945  (eval "$ac_link") 2>&5
1946  ac_status=$?
1947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1949  { { case "(($ac_try" in
1950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951  *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955  (eval "$ac_try") 2>&5
1956  ac_status=$?
1957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958  test $ac_status = 0; }; }; then :
1959  ac_retval=0
1960else
1961  $as_echo "$as_me: program exited with status $ac_status" >&5
1962       $as_echo "$as_me: failed program was:" >&5
1963sed 's/^/| /' conftest.$ac_ext >&5
1964
1965       ac_retval=$ac_status
1966fi
1967  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969  as_fn_set_status $ac_retval
1970
1971} # ac_fn_c_try_run
1972
1973# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1974# -------------------------------------------------------
1975# Tests whether HEADER exists and can be compiled using the include files in
1976# INCLUDES, setting the cache variable VAR accordingly.
1977ac_fn_c_check_header_compile ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
1982if eval \${$3+:} false; then :
1983  $as_echo_n "(cached) " >&6
1984else
1985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988#include <$2>
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991  eval "$3=yes"
1992else
1993  eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_header_compile
2003
2004# ac_fn_cxx_try_compile LINENO
2005# ----------------------------
2006# Try to compile conftest.$ac_ext, and return whether this succeeded.
2007ac_fn_cxx_try_compile ()
2008{
2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010  rm -f conftest.$ac_objext
2011  if { { ac_try="$ac_compile"
2012case "(($ac_try" in
2013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014  *) ac_try_echo=$ac_try;;
2015esac
2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017$as_echo "$ac_try_echo"; } >&5
2018  (eval "$ac_compile") 2>conftest.err
2019  ac_status=$?
2020  if test -s conftest.err; then
2021    grep -v '^ *+' conftest.err >conftest.er1
2022    cat conftest.er1 >&5
2023    mv -f conftest.er1 conftest.err
2024  fi
2025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026  test $ac_status = 0; } && {
2027	 test -z "$ac_cxx_werror_flag" ||
2028	 test ! -s conftest.err
2029       } && test -s conftest.$ac_objext; then :
2030  ac_retval=0
2031else
2032  $as_echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035	ac_retval=1
2036fi
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038  as_fn_set_status $ac_retval
2039
2040} # ac_fn_cxx_try_compile
2041
2042# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043# -------------------------------------------
2044# Tests whether TYPE exists after having included INCLUDES, setting cache
2045# variable VAR accordingly.
2046ac_fn_c_check_type ()
2047{
2048  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if eval \${$3+:} false; then :
2052  $as_echo_n "(cached) " >&6
2053else
2054  eval "$3=no"
2055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$4
2058int
2059main ()
2060{
2061if (sizeof ($2))
2062	 return 0;
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h.  */
2070$4
2071int
2072main ()
2073{
2074if (sizeof (($2)))
2075	    return 0;
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081
2082else
2083  eval "$3=yes"
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094} # ac_fn_c_check_type
2095
2096# ac_fn_c_try_link LINENO
2097# -----------------------
2098# Try to link conftest.$ac_ext, and return whether this succeeded.
2099ac_fn_c_try_link ()
2100{
2101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102  rm -f conftest.$ac_objext conftest$ac_exeext
2103  if { { ac_try="$ac_link"
2104case "(($ac_try" in
2105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106  *) ac_try_echo=$ac_try;;
2107esac
2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109$as_echo "$ac_try_echo"; } >&5
2110  (eval "$ac_link") 2>conftest.err
2111  ac_status=$?
2112  if test -s conftest.err; then
2113    grep -v '^ *+' conftest.err >conftest.er1
2114    cat conftest.er1 >&5
2115    mv -f conftest.er1 conftest.err
2116  fi
2117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118  test $ac_status = 0; } && {
2119	 test -z "$ac_c_werror_flag" ||
2120	 test ! -s conftest.err
2121       } && test -s conftest$ac_exeext && {
2122	 test "$cross_compiling" = yes ||
2123	 test -x conftest$ac_exeext
2124       }; then :
2125  ac_retval=0
2126else
2127  $as_echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
2130	ac_retval=1
2131fi
2132  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2133  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2134  # interfere with the next link command; also delete a directory that is
2135  # left behind by Apple's compiler.  We do this before executing the actions.
2136  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2137  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138  as_fn_set_status $ac_retval
2139
2140} # ac_fn_c_try_link
2141
2142# ac_fn_c_check_func LINENO FUNC VAR
2143# ----------------------------------
2144# Tests whether FUNC exists, setting the cache variable VAR accordingly
2145ac_fn_c_check_func ()
2146{
2147  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149$as_echo_n "checking for $2... " >&6; }
2150if eval \${$3+:} false; then :
2151  $as_echo_n "(cached) " >&6
2152else
2153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2156   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2157#define $2 innocuous_$2
2158
2159/* System header to define __stub macros and hopefully few prototypes,
2160    which can conflict with char $2 (); below.
2161    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2162    <limits.h> exists even on freestanding compilers.  */
2163
2164#ifdef __STDC__
2165# include <limits.h>
2166#else
2167# include <assert.h>
2168#endif
2169
2170#undef $2
2171
2172/* Override any GCC internal prototype to avoid an error.
2173   Use char because int might match the return type of a GCC
2174   builtin and then its argument prototype would still apply.  */
2175#ifdef __cplusplus
2176extern "C"
2177#endif
2178char $2 ();
2179/* The GNU C library defines this for functions which it implements
2180    to always fail with ENOSYS.  Some functions are actually named
2181    something starting with __ and the normal name is an alias.  */
2182#if defined __stub_$2 || defined __stub___$2
2183choke me
2184#endif
2185
2186int
2187main ()
2188{
2189return $2 ();
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_link "$LINENO"; then :
2195  eval "$3=yes"
2196else
2197  eval "$3=no"
2198fi
2199rm -f core conftest.err conftest.$ac_objext \
2200    conftest$ac_exeext conftest.$ac_ext
2201fi
2202eval ac_res=\$$3
2203	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
2207} # ac_fn_c_check_func
2208
2209# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2210# ---------------------------------------------
2211# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2212# accordingly.
2213ac_fn_c_check_decl ()
2214{
2215  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216  as_decl_name=`echo $2|sed 's/ *(.*//'`
2217  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2219$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$4
2226int
2227main ()
2228{
2229#ifndef $as_decl_name
2230#ifdef __cplusplus
2231  (void) $as_decl_use;
2232#else
2233  (void) $as_decl_name;
2234#endif
2235#endif
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_compile "$LINENO"; then :
2242  eval "$3=yes"
2243else
2244  eval "$3=no"
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247fi
2248eval ac_res=\$$3
2249	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250$as_echo "$ac_res" >&6; }
2251  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252
2253} # ac_fn_c_check_decl
2254
2255# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2256# --------------------------------------------
2257# Tries to find the compile-time value of EXPR in a program that includes
2258# INCLUDES, setting VAR accordingly. Returns whether the value could be
2259# computed
2260ac_fn_c_compute_int ()
2261{
2262  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263  if test "$cross_compiling" = yes; then
2264    # Depending upon the size, compute the lo and hi bounds.
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) >= 0)];
2272test_array [0] = 0;
2273return test_array [0];
2274
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280  ac_lo=0 ac_mid=0
2281  while :; do
2282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h.  */
2284$4
2285int
2286main ()
2287{
2288static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289test_array [0] = 0;
2290return test_array [0];
2291
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297  ac_hi=$ac_mid; break
2298else
2299  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2300			if test $ac_lo -le $ac_mid; then
2301			  ac_lo= ac_hi=
2302			  break
2303			fi
2304			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307  done
2308else
2309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h.  */
2311$4
2312int
2313main ()
2314{
2315static int test_array [1 - 2 * !(($2) < 0)];
2316test_array [0] = 0;
2317return test_array [0];
2318
2319  ;
2320  return 0;
2321}
2322_ACEOF
2323if ac_fn_c_try_compile "$LINENO"; then :
2324  ac_hi=-1 ac_mid=-1
2325  while :; do
2326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h.  */
2328$4
2329int
2330main ()
2331{
2332static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2333test_array [0] = 0;
2334return test_array [0];
2335
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340if ac_fn_c_try_compile "$LINENO"; then :
2341  ac_lo=$ac_mid; break
2342else
2343  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2344			if test $ac_mid -le $ac_hi; then
2345			  ac_lo= ac_hi=
2346			  break
2347			fi
2348			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2349fi
2350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351  done
2352else
2353  ac_lo= ac_hi=
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358# Binary search between lo and hi bounds.
2359while test "x$ac_lo" != "x$ac_hi"; do
2360  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362/* end confdefs.h.  */
2363$4
2364int
2365main ()
2366{
2367static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2368test_array [0] = 0;
2369return test_array [0];
2370
2371  ;
2372  return 0;
2373}
2374_ACEOF
2375if ac_fn_c_try_compile "$LINENO"; then :
2376  ac_hi=$ac_mid
2377else
2378  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2379fi
2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381done
2382case $ac_lo in #((
2383?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2384'') ac_retval=1 ;;
2385esac
2386  else
2387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h.  */
2389$4
2390static long int longval () { return $2; }
2391static unsigned long int ulongval () { return $2; }
2392#include <stdio.h>
2393#include <stdlib.h>
2394int
2395main ()
2396{
2397
2398  FILE *f = fopen ("conftest.val", "w");
2399  if (! f)
2400    return 1;
2401  if (($2) < 0)
2402    {
2403      long int i = longval ();
2404      if (i != ($2))
2405	return 1;
2406      fprintf (f, "%ld", i);
2407    }
2408  else
2409    {
2410      unsigned long int i = ulongval ();
2411      if (i != ($2))
2412	return 1;
2413      fprintf (f, "%lu", i);
2414    }
2415  /* Do not output a trailing newline, as this causes \r\n confusion
2416     on some platforms.  */
2417  return ferror (f) || fclose (f) != 0;
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_c_try_run "$LINENO"; then :
2424  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2425else
2426  ac_retval=1
2427fi
2428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2429  conftest.$ac_objext conftest.beam conftest.$ac_ext
2430rm -f conftest.val
2431
2432  fi
2433  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434  as_fn_set_status $ac_retval
2435
2436} # ac_fn_c_compute_int
2437cat >config.log <<_ACEOF
2438This file contains any messages produced by compilers while
2439running configure, to aid debugging if configure makes a mistake.
2440
2441It was created by pcb $as_me 4.2.0, which was
2442generated by GNU Autoconf 2.69.  Invocation command line was
2443
2444  $ $0 $@
2445
2446_ACEOF
2447exec 5>>config.log
2448{
2449cat <<_ASUNAME
2450## --------- ##
2451## Platform. ##
2452## --------- ##
2453
2454hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2455uname -m = `(uname -m) 2>/dev/null || echo unknown`
2456uname -r = `(uname -r) 2>/dev/null || echo unknown`
2457uname -s = `(uname -s) 2>/dev/null || echo unknown`
2458uname -v = `(uname -v) 2>/dev/null || echo unknown`
2459
2460/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2461/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2462
2463/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2464/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2466/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2467/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2468/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2469/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2470
2471_ASUNAME
2472
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476  IFS=$as_save_IFS
2477  test -z "$as_dir" && as_dir=.
2478    $as_echo "PATH: $as_dir"
2479  done
2480IFS=$as_save_IFS
2481
2482} >&5
2483
2484cat >&5 <<_ACEOF
2485
2486
2487## ----------- ##
2488## Core tests. ##
2489## ----------- ##
2490
2491_ACEOF
2492
2493
2494# Keep a trace of the command line.
2495# Strip out --no-create and --no-recursion so they do not pile up.
2496# Strip out --silent because we don't want to record it for future runs.
2497# Also quote any args containing shell meta-characters.
2498# Make two passes to allow for proper duplicate-argument suppression.
2499ac_configure_args=
2500ac_configure_args0=
2501ac_configure_args1=
2502ac_must_keep_next=false
2503for ac_pass in 1 2
2504do
2505  for ac_arg
2506  do
2507    case $ac_arg in
2508    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2509    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2510    | -silent | --silent | --silen | --sile | --sil)
2511      continue ;;
2512    *\'*)
2513      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2514    esac
2515    case $ac_pass in
2516    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2517    2)
2518      as_fn_append ac_configure_args1 " '$ac_arg'"
2519      if test $ac_must_keep_next = true; then
2520	ac_must_keep_next=false # Got value, back to normal.
2521      else
2522	case $ac_arg in
2523	  *=* | --config-cache | -C | -disable-* | --disable-* \
2524	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2525	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2526	  | -with-* | --with-* | -without-* | --without-* | --x)
2527	    case "$ac_configure_args0 " in
2528	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2529	    esac
2530	    ;;
2531	  -* ) ac_must_keep_next=true ;;
2532	esac
2533      fi
2534      as_fn_append ac_configure_args " '$ac_arg'"
2535      ;;
2536    esac
2537  done
2538done
2539{ ac_configure_args0=; unset ac_configure_args0;}
2540{ ac_configure_args1=; unset ac_configure_args1;}
2541
2542# When interrupted or exit'd, cleanup temporary files, and complete
2543# config.log.  We remove comments because anyway the quotes in there
2544# would cause problems or look ugly.
2545# WARNING: Use '\'' to represent an apostrophe within the trap.
2546# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2547trap 'exit_status=$?
2548  # Save into config.log some information that might help in debugging.
2549  {
2550    echo
2551
2552    $as_echo "## ---------------- ##
2553## Cache variables. ##
2554## ---------------- ##"
2555    echo
2556    # The following way of writing the cache mishandles newlines in values,
2557(
2558  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2559    eval ac_val=\$$ac_var
2560    case $ac_val in #(
2561    *${as_nl}*)
2562      case $ac_var in #(
2563      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2564$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2565      esac
2566      case $ac_var in #(
2567      _ | IFS | as_nl) ;; #(
2568      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2569      *) { eval $ac_var=; unset $ac_var;} ;;
2570      esac ;;
2571    esac
2572  done
2573  (set) 2>&1 |
2574    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2575    *${as_nl}ac_space=\ *)
2576      sed -n \
2577	"s/'\''/'\''\\\\'\'''\''/g;
2578	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2579      ;; #(
2580    *)
2581      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2582      ;;
2583    esac |
2584    sort
2585)
2586    echo
2587
2588    $as_echo "## ----------------- ##
2589## Output variables. ##
2590## ----------------- ##"
2591    echo
2592    for ac_var in $ac_subst_vars
2593    do
2594      eval ac_val=\$$ac_var
2595      case $ac_val in
2596      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597      esac
2598      $as_echo "$ac_var='\''$ac_val'\''"
2599    done | sort
2600    echo
2601
2602    if test -n "$ac_subst_files"; then
2603      $as_echo "## ------------------- ##
2604## File substitutions. ##
2605## ------------------- ##"
2606      echo
2607      for ac_var in $ac_subst_files
2608      do
2609	eval ac_val=\$$ac_var
2610	case $ac_val in
2611	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2612	esac
2613	$as_echo "$ac_var='\''$ac_val'\''"
2614      done | sort
2615      echo
2616    fi
2617
2618    if test -s confdefs.h; then
2619      $as_echo "## ----------- ##
2620## confdefs.h. ##
2621## ----------- ##"
2622      echo
2623      cat confdefs.h
2624      echo
2625    fi
2626    test "$ac_signal" != 0 &&
2627      $as_echo "$as_me: caught signal $ac_signal"
2628    $as_echo "$as_me: exit $exit_status"
2629  } >&5
2630  rm -f core *.core core.conftest.* &&
2631    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2632    exit $exit_status
2633' 0
2634for ac_signal in 1 2 13 15; do
2635  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2636done
2637ac_signal=0
2638
2639# confdefs.h avoids OS command line length limits that DEFS can exceed.
2640rm -f -r conftest* confdefs.h
2641
2642$as_echo "/* confdefs.h */" > confdefs.h
2643
2644# Predefined preprocessor variables.
2645
2646cat >>confdefs.h <<_ACEOF
2647#define PACKAGE_NAME "$PACKAGE_NAME"
2648_ACEOF
2649
2650cat >>confdefs.h <<_ACEOF
2651#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2652_ACEOF
2653
2654cat >>confdefs.h <<_ACEOF
2655#define PACKAGE_VERSION "$PACKAGE_VERSION"
2656_ACEOF
2657
2658cat >>confdefs.h <<_ACEOF
2659#define PACKAGE_STRING "$PACKAGE_STRING"
2660_ACEOF
2661
2662cat >>confdefs.h <<_ACEOF
2663#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2664_ACEOF
2665
2666cat >>confdefs.h <<_ACEOF
2667#define PACKAGE_URL "$PACKAGE_URL"
2668_ACEOF
2669
2670
2671# Let the site file select an alternate cache file if it wants to.
2672# Prefer an explicitly selected file to automatically selected ones.
2673ac_site_file1=NONE
2674ac_site_file2=NONE
2675if test -n "$CONFIG_SITE"; then
2676  # We do not want a PATH search for config.site.
2677  case $CONFIG_SITE in #((
2678    -*)  ac_site_file1=./$CONFIG_SITE;;
2679    */*) ac_site_file1=$CONFIG_SITE;;
2680    *)   ac_site_file1=./$CONFIG_SITE;;
2681  esac
2682elif test "x$prefix" != xNONE; then
2683  ac_site_file1=$prefix/share/config.site
2684  ac_site_file2=$prefix/etc/config.site
2685else
2686  ac_site_file1=$ac_default_prefix/share/config.site
2687  ac_site_file2=$ac_default_prefix/etc/config.site
2688fi
2689for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2690do
2691  test "x$ac_site_file" = xNONE && continue
2692  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2693    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2694$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2695    sed 's/^/| /' "$ac_site_file" >&5
2696    . "$ac_site_file" \
2697      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699as_fn_error $? "failed to load site script $ac_site_file
2700See \`config.log' for more details" "$LINENO" 5; }
2701  fi
2702done
2703
2704if test -r "$cache_file"; then
2705  # Some versions of bash will fail to source /dev/null (special files
2706  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2707  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2708    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2709$as_echo "$as_me: loading cache $cache_file" >&6;}
2710    case $cache_file in
2711      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2712      *)                      . "./$cache_file";;
2713    esac
2714  fi
2715else
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2717$as_echo "$as_me: creating cache $cache_file" >&6;}
2718  >$cache_file
2719fi
2720
2721gt_needs="$gt_needs "
2722as_fn_append ac_header_list " stdlib.h"
2723as_fn_append ac_header_list " unistd.h"
2724as_fn_append ac_header_list " sys/param.h"
2725as_fn_append ac_func_list " symlink"
2726# Check that the precious variables saved in the cache have kept the same
2727# value.
2728ac_cache_corrupted=false
2729for ac_var in $ac_precious_vars; do
2730  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731  eval ac_new_set=\$ac_env_${ac_var}_set
2732  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733  eval ac_new_val=\$ac_env_${ac_var}_value
2734  case $ac_old_set,$ac_new_set in
2735    set,)
2736      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2737$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2738      ac_cache_corrupted=: ;;
2739    ,set)
2740      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2741$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2742      ac_cache_corrupted=: ;;
2743    ,);;
2744    *)
2745      if test "x$ac_old_val" != "x$ac_new_val"; then
2746	# differences in whitespace do not lead to failure.
2747	ac_old_val_w=`echo x $ac_old_val`
2748	ac_new_val_w=`echo x $ac_new_val`
2749	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2751$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2752	  ac_cache_corrupted=:
2753	else
2754	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2755$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2756	  eval $ac_var=\$ac_old_val
2757	fi
2758	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2759$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2760	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2761$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2762      fi;;
2763  esac
2764  # Pass precious variables to config.status.
2765  if test "$ac_new_set" = set; then
2766    case $ac_new_val in
2767    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2768    *) ac_arg=$ac_var=$ac_new_val ;;
2769    esac
2770    case " $ac_configure_args " in
2771      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2772      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773    esac
2774  fi
2775done
2776if $ac_cache_corrupted; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2781  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2782fi
2783## -------------------- ##
2784## Main body of script. ##
2785## -------------------- ##
2786
2787ac_ext=c
2788ac_cpp='$CPP $CPPFLAGS'
2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793
2794
2795
2796am__api_version='1.11'
2797
2798ac_aux_dir=
2799for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2800  if test -f "$ac_dir/install-sh"; then
2801    ac_aux_dir=$ac_dir
2802    ac_install_sh="$ac_aux_dir/install-sh -c"
2803    break
2804  elif test -f "$ac_dir/install.sh"; then
2805    ac_aux_dir=$ac_dir
2806    ac_install_sh="$ac_aux_dir/install.sh -c"
2807    break
2808  elif test -f "$ac_dir/shtool"; then
2809    ac_aux_dir=$ac_dir
2810    ac_install_sh="$ac_aux_dir/shtool install -c"
2811    break
2812  fi
2813done
2814if test -z "$ac_aux_dir"; then
2815  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2816fi
2817
2818# These three variables are undocumented and unsupported,
2819# and are intended to be withdrawn in a future Autoconf release.
2820# They can cause serious problems if a builder's source tree is in a directory
2821# whose full name contains unusual characters.
2822ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2823ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2824ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2825
2826
2827# Find a good install program.  We prefer a C program (faster),
2828# so one script is as good as another.  But avoid the broken or
2829# incompatible versions:
2830# SysV /etc/install, /usr/sbin/install
2831# SunOS /usr/etc/install
2832# IRIX /sbin/install
2833# AIX /bin/install
2834# AmigaOS /C/install, which installs bootblocks on floppy discs
2835# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2836# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2837# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2838# OS/2's system install, which has a completely different semantic
2839# ./install, which can be erroneously created by make from ./install.sh.
2840# Reject install programs that cannot install multiple files.
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2842$as_echo_n "checking for a BSD-compatible install... " >&6; }
2843if test -z "$INSTALL"; then
2844if ${ac_cv_path_install+:} false; then :
2845  $as_echo_n "(cached) " >&6
2846else
2847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  test -z "$as_dir" && as_dir=.
2852    # Account for people who put trailing slashes in PATH elements.
2853case $as_dir/ in #((
2854  ./ | .// | /[cC]/* | \
2855  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2856  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2857  /usr/ucb/* ) ;;
2858  *)
2859    # OSF1 and SCO ODT 3.0 have their own names for install.
2860    # Don't use installbsd from OSF since it installs stuff as root
2861    # by default.
2862    for ac_prog in ginstall scoinst install; do
2863      for ac_exec_ext in '' $ac_executable_extensions; do
2864	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2865	  if test $ac_prog = install &&
2866	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867	    # AIX install.  It has an incompatible calling convention.
2868	    :
2869	  elif test $ac_prog = install &&
2870	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871	    # program-specific install script used by HP pwplus--don't use.
2872	    :
2873	  else
2874	    rm -rf conftest.one conftest.two conftest.dir
2875	    echo one > conftest.one
2876	    echo two > conftest.two
2877	    mkdir conftest.dir
2878	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2879	      test -s conftest.one && test -s conftest.two &&
2880	      test -s conftest.dir/conftest.one &&
2881	      test -s conftest.dir/conftest.two
2882	    then
2883	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2884	      break 3
2885	    fi
2886	  fi
2887	fi
2888      done
2889    done
2890    ;;
2891esac
2892
2893  done
2894IFS=$as_save_IFS
2895
2896rm -rf conftest.one conftest.two conftest.dir
2897
2898fi
2899  if test "${ac_cv_path_install+set}" = set; then
2900    INSTALL=$ac_cv_path_install
2901  else
2902    # As a last resort, use the slow shell script.  Don't cache a
2903    # value for INSTALL within a source directory, because that will
2904    # break other packages using the cache if that directory is
2905    # removed, or if the value is a relative name.
2906    INSTALL=$ac_install_sh
2907  fi
2908fi
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2910$as_echo "$INSTALL" >&6; }
2911
2912# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913# It thinks the first close brace ends the variable substitution.
2914test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915
2916test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917
2918test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921$as_echo_n "checking whether build environment is sane... " >&6; }
2922# Just in case
2923sleep 1
2924echo timestamp > conftest.file
2925# Reject unsafe characters in $srcdir or the absolute working directory
2926# name.  Accept space and tab only in the latter.
2927am_lf='
2928'
2929case `pwd` in
2930  *[\\\"\#\$\&\'\`$am_lf]*)
2931    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2932esac
2933case $srcdir in
2934  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2935    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2936esac
2937
2938# Do `set' in a subshell so we don't clobber the current shell's
2939# arguments.  Must try -L first in case configure is actually a
2940# symlink; some systems play weird games with the mod time of symlinks
2941# (eg FreeBSD returns the mod time of the symlink's containing
2942# directory).
2943if (
2944   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945   if test "$*" = "X"; then
2946      # -L didn't work.
2947      set X `ls -t "$srcdir/configure" conftest.file`
2948   fi
2949   rm -f conftest.file
2950   if test "$*" != "X $srcdir/configure conftest.file" \
2951      && test "$*" != "X conftest.file $srcdir/configure"; then
2952
2953      # If neither matched, then we have a broken ls.  This can happen
2954      # if, for instance, CONFIG_SHELL is bash and it inherits a
2955      # broken ls alias from the environment.  This has actually
2956      # happened.  Such a system could not be considered "sane".
2957      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2958alias in your environment" "$LINENO" 5
2959   fi
2960
2961   test "$2" = conftest.file
2962   )
2963then
2964   # Ok.
2965   :
2966else
2967   as_fn_error $? "newly created file is older than distributed files!
2968Check your system clock" "$LINENO" 5
2969fi
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971$as_echo "yes" >&6; }
2972test "$program_prefix" != NONE &&
2973  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2974# Use a double $ so make ignores it.
2975test "$program_suffix" != NONE &&
2976  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2977# Double any \ or $.
2978# By default was `s,x,x', remove it if useless.
2979ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2980program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2981
2982# expand $ac_aux_dir to an absolute path
2983am_aux_dir=`cd $ac_aux_dir && pwd`
2984
2985if test x"${MISSING+set}" != xset; then
2986  case $am_aux_dir in
2987  *\ * | *\	*)
2988    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2989  *)
2990    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2991  esac
2992fi
2993# Use eval to expand $SHELL
2994if eval "$MISSING --run true"; then
2995  am_missing_run="$MISSING --run "
2996else
2997  am_missing_run=
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2999$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3000fi
3001
3002if test x"${install_sh}" != xset; then
3003  case $am_aux_dir in
3004  *\ * | *\	*)
3005    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3006  *)
3007    install_sh="\${SHELL} $am_aux_dir/install-sh"
3008  esac
3009fi
3010
3011# Installed binaries are usually stripped using `strip' when the user
3012# run `make install-strip'.  However `strip' might not be the right
3013# tool to use in cross-compilation environments, therefore Automake
3014# will honor the `STRIP' environment variable to overrule this program.
3015if test "$cross_compiling" != no; then
3016  if test -n "$ac_tool_prefix"; then
3017  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3018set dummy ${ac_tool_prefix}strip; ac_word=$2
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020$as_echo_n "checking for $ac_word... " >&6; }
3021if ${ac_cv_prog_STRIP+:} false; then :
3022  $as_echo_n "(cached) " >&6
3023else
3024  if test -n "$STRIP"; then
3025  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  test -z "$as_dir" && as_dir=.
3032    for ac_exec_ext in '' $ac_executable_extensions; do
3033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036    break 2
3037  fi
3038done
3039  done
3040IFS=$as_save_IFS
3041
3042fi
3043fi
3044STRIP=$ac_cv_prog_STRIP
3045if test -n "$STRIP"; then
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3047$as_echo "$STRIP" >&6; }
3048else
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050$as_echo "no" >&6; }
3051fi
3052
3053
3054fi
3055if test -z "$ac_cv_prog_STRIP"; then
3056  ac_ct_STRIP=$STRIP
3057  # Extract the first word of "strip", so it can be a program name with args.
3058set dummy strip; ac_word=$2
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060$as_echo_n "checking for $ac_word... " >&6; }
3061if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3062  $as_echo_n "(cached) " >&6
3063else
3064  if test -n "$ac_ct_STRIP"; then
3065  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070  IFS=$as_save_IFS
3071  test -z "$as_dir" && as_dir=.
3072    for ac_exec_ext in '' $ac_executable_extensions; do
3073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074    ac_cv_prog_ac_ct_STRIP="strip"
3075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076    break 2
3077  fi
3078done
3079  done
3080IFS=$as_save_IFS
3081
3082fi
3083fi
3084ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3085if test -n "$ac_ct_STRIP"; then
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3087$as_echo "$ac_ct_STRIP" >&6; }
3088else
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090$as_echo "no" >&6; }
3091fi
3092
3093  if test "x$ac_ct_STRIP" = x; then
3094    STRIP=":"
3095  else
3096    case $cross_compiling:$ac_tool_warned in
3097yes:)
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100ac_tool_warned=yes ;;
3101esac
3102    STRIP=$ac_ct_STRIP
3103  fi
3104else
3105  STRIP="$ac_cv_prog_STRIP"
3106fi
3107
3108fi
3109INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3110
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3112$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3113if test -z "$MKDIR_P"; then
3114  if ${ac_cv_path_mkdir+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_prog in mkdir gmkdir; do
3123	 for ac_exec_ext in '' $ac_executable_extensions; do
3124	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3125	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3126	     'mkdir (GNU coreutils) '* | \
3127	     'mkdir (coreutils) '* | \
3128	     'mkdir (fileutils) '4.1*)
3129	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3130	       break 3;;
3131	   esac
3132	 done
3133       done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138
3139  test -d ./--version && rmdir ./--version
3140  if test "${ac_cv_path_mkdir+set}" = set; then
3141    MKDIR_P="$ac_cv_path_mkdir -p"
3142  else
3143    # As a last resort, use the slow shell script.  Don't cache a
3144    # value for MKDIR_P within a source directory, because that will
3145    # break other packages using the cache if that directory is
3146    # removed, or if the value is a relative name.
3147    MKDIR_P="$ac_install_sh -d"
3148  fi
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3151$as_echo "$MKDIR_P" >&6; }
3152
3153mkdir_p="$MKDIR_P"
3154case $mkdir_p in
3155  [\\/$]* | ?:[\\/]*) ;;
3156  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3157esac
3158
3159for ac_prog in gawk mawk nawk awk
3160do
3161  # Extract the first word of "$ac_prog", so it can be a program name with args.
3162set dummy $ac_prog; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if ${ac_cv_prog_AWK+:} false; then :
3166  $as_echo_n "(cached) " >&6
3167else
3168  if test -n "$AWK"; then
3169  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174  IFS=$as_save_IFS
3175  test -z "$as_dir" && as_dir=.
3176    for ac_exec_ext in '' $ac_executable_extensions; do
3177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178    ac_cv_prog_AWK="$ac_prog"
3179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180    break 2
3181  fi
3182done
3183  done
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188AWK=$ac_cv_prog_AWK
3189if test -n "$AWK"; then
3190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3191$as_echo "$AWK" >&6; }
3192else
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195fi
3196
3197
3198  test -n "$AWK" && break
3199done
3200
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3202$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3203set x ${MAKE-make}
3204ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3205if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  cat >conftest.make <<\_ACEOF
3209SHELL = /bin/sh
3210all:
3211	@echo '@@@%%%=$(MAKE)=@@@%%%'
3212_ACEOF
3213# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3214case `${MAKE-make} -f conftest.make 2>/dev/null` in
3215  *@@@%%%=?*=@@@%%%*)
3216    eval ac_cv_prog_make_${ac_make}_set=yes;;
3217  *)
3218    eval ac_cv_prog_make_${ac_make}_set=no;;
3219esac
3220rm -f conftest.make
3221fi
3222if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224$as_echo "yes" >&6; }
3225  SET_MAKE=
3226else
3227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
3229  SET_MAKE="MAKE=${MAKE-make}"
3230fi
3231
3232rm -rf .tst 2>/dev/null
3233mkdir .tst 2>/dev/null
3234if test -d .tst; then
3235  am__leading_dot=.
3236else
3237  am__leading_dot=_
3238fi
3239rmdir .tst 2>/dev/null
3240
3241if test "`cd $srcdir && pwd`" != "`pwd`"; then
3242  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3243  # is not polluted with repeated "-I."
3244  am__isrc=' -I$(srcdir)'
3245  # test to see if srcdir already configured
3246  if test -f $srcdir/config.status; then
3247    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3248  fi
3249fi
3250
3251# test whether we have cygpath
3252if test -z "$CYGPATH_W"; then
3253  if (cygpath --version) >/dev/null 2>/dev/null; then
3254    CYGPATH_W='cygpath -w'
3255  else
3256    CYGPATH_W=echo
3257  fi
3258fi
3259
3260
3261# Define the identity of the package.
3262 PACKAGE='pcb'
3263 VERSION='4.2.0'
3264
3265
3266cat >>confdefs.h <<_ACEOF
3267#define PACKAGE "$PACKAGE"
3268_ACEOF
3269
3270
3271cat >>confdefs.h <<_ACEOF
3272#define VERSION "$VERSION"
3273_ACEOF
3274
3275# Some tools Automake needs.
3276
3277ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3278
3279
3280AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3281
3282
3283AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3284
3285
3286AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3287
3288
3289MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3290
3291# We need awk for the "check" target.  The system "awk" is bad on
3292# some platforms.
3293# Always define AMTAR for backward compatibility.
3294
3295AMTAR=${AMTAR-"${am_missing_run}tar"}
3296
3297am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3298
3299
3300
3301
3302
3303DEPDIR="${am__leading_dot}deps"
3304
3305ac_config_commands="$ac_config_commands depfiles"
3306
3307
3308am_make=${MAKE-make}
3309cat > confinc << 'END'
3310am__doit:
3311	@echo this is the am__doit target
3312.PHONY: am__doit
3313END
3314# If we don't find an include directive, just comment out the code.
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3316$as_echo_n "checking for style of include used by $am_make... " >&6; }
3317am__include="#"
3318am__quote=
3319_am_result=none
3320# First try GNU make style include.
3321echo "include confinc" > confmf
3322# Ignore all kinds of additional output from `make'.
3323case `$am_make -s -f confmf 2> /dev/null` in #(
3324*the\ am__doit\ target*)
3325  am__include=include
3326  am__quote=
3327  _am_result=GNU
3328  ;;
3329esac
3330# Now try BSD make style include.
3331if test "$am__include" = "#"; then
3332   echo '.include "confinc"' > confmf
3333   case `$am_make -s -f confmf 2> /dev/null` in #(
3334   *the\ am__doit\ target*)
3335     am__include=.include
3336     am__quote="\""
3337     _am_result=BSD
3338     ;;
3339   esac
3340fi
3341
3342
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3344$as_echo "$_am_result" >&6; }
3345rm -f confinc confmf
3346
3347# Check whether --enable-dependency-tracking was given.
3348if test "${enable_dependency_tracking+set}" = set; then :
3349  enableval=$enable_dependency_tracking;
3350fi
3351
3352if test "x$enable_dependency_tracking" != xno; then
3353  am_depcomp="$ac_aux_dir/depcomp"
3354  AMDEPBACKSLASH='\'
3355fi
3356 if test "x$enable_dependency_tracking" != xno; then
3357  AMDEP_TRUE=
3358  AMDEP_FALSE='#'
3359else
3360  AMDEP_TRUE='#'
3361  AMDEP_FALSE=
3362fi
3363
3364
3365ac_ext=c
3366ac_cpp='$CPP $CPPFLAGS'
3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370if test -n "$ac_tool_prefix"; then
3371  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3372set dummy ${ac_tool_prefix}gcc; ac_word=$2
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if ${ac_cv_prog_CC+:} false; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  if test -n "$CC"; then
3379  ac_cv_prog_CC="$CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  test -z "$as_dir" && as_dir=.
3386    for ac_exec_ext in '' $ac_executable_extensions; do
3387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396fi
3397fi
3398CC=$ac_cv_prog_CC
3399if test -n "$CC"; then
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401$as_echo "$CC" >&6; }
3402else
3403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407
3408fi
3409if test -z "$ac_cv_prog_CC"; then
3410  ac_ct_CC=$CC
3411  # Extract the first word of "gcc", so it can be a program name with args.
3412set dummy gcc; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if ${ac_cv_prog_ac_ct_CC+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test -n "$ac_ct_CC"; then
3419  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_ac_ct_CC="gcc"
3429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433  done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439if test -n "$ac_ct_CC"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441$as_echo "$ac_ct_CC" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447  if test "x$ac_ct_CC" = x; then
3448    CC=""
3449  else
3450    case $cross_compiling:$ac_tool_warned in
3451yes:)
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454ac_tool_warned=yes ;;
3455esac
3456    CC=$ac_ct_CC
3457  fi
3458else
3459  CC="$ac_cv_prog_CC"
3460fi
3461
3462if test -z "$CC"; then
3463          if test -n "$ac_tool_prefix"; then
3464    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3465set dummy ${ac_tool_prefix}cc; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if ${ac_cv_prog_CC+:} false; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  if test -n "$CC"; then
3472  ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481    ac_cv_prog_CC="${ac_tool_prefix}cc"
3482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491CC=$ac_cv_prog_CC
3492if test -n "$CC"; then
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494$as_echo "$CC" >&6; }
3495else
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498fi
3499
3500
3501  fi
3502fi
3503if test -z "$CC"; then
3504  # Extract the first word of "cc", so it can be a program name with args.
3505set dummy cc; ac_word=$2
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507$as_echo_n "checking for $ac_word... " >&6; }
3508if ${ac_cv_prog_CC+:} false; then :
3509  $as_echo_n "(cached) " >&6
3510else
3511  if test -n "$CC"; then
3512  ac_cv_prog_CC="$CC" # Let the user override the test.
3513else
3514  ac_prog_rejected=no
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  test -z "$as_dir" && as_dir=.
3520    for ac_exec_ext in '' $ac_executable_extensions; do
3521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3523       ac_prog_rejected=yes
3524       continue
3525     fi
3526    ac_cv_prog_CC="cc"
3527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528    break 2
3529  fi
3530done
3531  done
3532IFS=$as_save_IFS
3533
3534if test $ac_prog_rejected = yes; then
3535  # We found a bogon in the path, so make sure we never use it.
3536  set dummy $ac_cv_prog_CC
3537  shift
3538  if test $# != 0; then
3539    # We chose a different compiler from the bogus one.
3540    # However, it has the same basename, so the bogon will be chosen
3541    # first if we set CC to just the basename; use the full file name.
3542    shift
3543    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3544  fi
3545fi
3546fi
3547fi
3548CC=$ac_cv_prog_CC
3549if test -n "$CC"; then
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551$as_echo "$CC" >&6; }
3552else
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
3555fi
3556
3557
3558fi
3559if test -z "$CC"; then
3560  if test -n "$ac_tool_prefix"; then
3561  for ac_prog in cl.exe
3562  do
3563    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566$as_echo_n "checking for $ac_word... " >&6; }
3567if ${ac_cv_prog_CC+:} false; then :
3568  $as_echo_n "(cached) " >&6
3569else
3570  if test -n "$CC"; then
3571  ac_cv_prog_CC="$CC" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576  IFS=$as_save_IFS
3577  test -z "$as_dir" && as_dir=.
3578    for ac_exec_ext in '' $ac_executable_extensions; do
3579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582    break 2
3583  fi
3584done
3585  done
3586IFS=$as_save_IFS
3587
3588fi
3589fi
3590CC=$ac_cv_prog_CC
3591if test -n "$CC"; then
3592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593$as_echo "$CC" >&6; }
3594else
3595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597fi
3598
3599
3600    test -n "$CC" && break
3601  done
3602fi
3603if test -z "$CC"; then
3604  ac_ct_CC=$CC
3605  for ac_prog in cl.exe
3606do
3607  # Extract the first word of "$ac_prog", so it can be a program name with args.
3608set dummy $ac_prog; ac_word=$2
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610$as_echo_n "checking for $ac_word... " >&6; }
3611if ${ac_cv_prog_ac_ct_CC+:} false; then :
3612  $as_echo_n "(cached) " >&6
3613else
3614  if test -n "$ac_ct_CC"; then
3615  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3616else
3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH
3619do
3620  IFS=$as_save_IFS
3621  test -z "$as_dir" && as_dir=.
3622    for ac_exec_ext in '' $ac_executable_extensions; do
3623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624    ac_cv_prog_ac_ct_CC="$ac_prog"
3625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626    break 2
3627  fi
3628done
3629  done
3630IFS=$as_save_IFS
3631
3632fi
3633fi
3634ac_ct_CC=$ac_cv_prog_ac_ct_CC
3635if test -n "$ac_ct_CC"; then
3636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3637$as_echo "$ac_ct_CC" >&6; }
3638else
3639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
3641fi
3642
3643
3644  test -n "$ac_ct_CC" && break
3645done
3646
3647  if test "x$ac_ct_CC" = x; then
3648    CC=""
3649  else
3650    case $cross_compiling:$ac_tool_warned in
3651yes:)
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3654ac_tool_warned=yes ;;
3655esac
3656    CC=$ac_ct_CC
3657  fi
3658fi
3659
3660fi
3661
3662
3663test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665as_fn_error $? "no acceptable C compiler found in \$PATH
3666See \`config.log' for more details" "$LINENO" 5; }
3667
3668# Provide some information about the compiler.
3669$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3670set X $ac_compile
3671ac_compiler=$2
3672for ac_option in --version -v -V -qversion; do
3673  { { ac_try="$ac_compiler $ac_option >&5"
3674case "(($ac_try" in
3675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676  *) ac_try_echo=$ac_try;;
3677esac
3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679$as_echo "$ac_try_echo"; } >&5
3680  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3681  ac_status=$?
3682  if test -s conftest.err; then
3683    sed '10a\
3684... rest of stderr output deleted ...
3685         10q' conftest.err >conftest.er1
3686    cat conftest.er1 >&5
3687  fi
3688  rm -f conftest.er1 conftest.err
3689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690  test $ac_status = 0; }
3691done
3692
3693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695
3696int
3697main ()
3698{
3699
3700  ;
3701  return 0;
3702}
3703_ACEOF
3704ac_clean_files_save=$ac_clean_files
3705ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3706# Try to create an executable without -o first, disregard a.out.
3707# It will help us diagnose broken compilers, and finding out an intuition
3708# of exeext.
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3710$as_echo_n "checking whether the C compiler works... " >&6; }
3711ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3712
3713# The possible output files:
3714ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3715
3716ac_rmfiles=
3717for ac_file in $ac_files
3718do
3719  case $ac_file in
3720    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3721    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3722  esac
3723done
3724rm -f $ac_rmfiles
3725
3726if { { ac_try="$ac_link_default"
3727case "(($ac_try" in
3728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729  *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733  (eval "$ac_link_default") 2>&5
3734  ac_status=$?
3735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736  test $ac_status = 0; }; then :
3737  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3738# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3739# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3740# so that the user can short-circuit this test for compilers unknown to
3741# Autoconf.
3742for ac_file in $ac_files ''
3743do
3744  test -f "$ac_file" || continue
3745  case $ac_file in
3746    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3747	;;
3748    [ab].out )
3749	# We found the default executable, but exeext='' is most
3750	# certainly right.
3751	break;;
3752    *.* )
3753	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3754	then :; else
3755	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756	fi
3757	# We set ac_cv_exeext here because the later test for it is not
3758	# safe: cross compilers may not add the suffix if given an `-o'
3759	# argument, so we may need to know it at that point already.
3760	# Even if this section looks crufty: it has the advantage of
3761	# actually working.
3762	break;;
3763    * )
3764	break;;
3765  esac
3766done
3767test "$ac_cv_exeext" = no && ac_cv_exeext=
3768
3769else
3770  ac_file=''
3771fi
3772if test -z "$ac_file"; then :
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775$as_echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780as_fn_error 77 "C compiler cannot create executables
3781See \`config.log' for more details" "$LINENO" 5; }
3782else
3783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3784$as_echo "yes" >&6; }
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3787$as_echo_n "checking for C compiler default output file name... " >&6; }
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3789$as_echo "$ac_file" >&6; }
3790ac_exeext=$ac_cv_exeext
3791
3792rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3793ac_clean_files=$ac_clean_files_save
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3795$as_echo_n "checking for suffix of executables... " >&6; }
3796if { { ac_try="$ac_link"
3797case "(($ac_try" in
3798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799  *) ac_try_echo=$ac_try;;
3800esac
3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802$as_echo "$ac_try_echo"; } >&5
3803  (eval "$ac_link") 2>&5
3804  ac_status=$?
3805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806  test $ac_status = 0; }; then :
3807  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3808# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3809# work properly (i.e., refer to `conftest.exe'), while it won't with
3810# `rm'.
3811for ac_file in conftest.exe conftest conftest.*; do
3812  test -f "$ac_file" || continue
3813  case $ac_file in
3814    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3815    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816	  break;;
3817    * ) break;;
3818  esac
3819done
3820else
3821  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3824See \`config.log' for more details" "$LINENO" 5; }
3825fi
3826rm -f conftest conftest$ac_cv_exeext
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3828$as_echo "$ac_cv_exeext" >&6; }
3829
3830rm -f conftest.$ac_ext
3831EXEEXT=$ac_cv_exeext
3832ac_exeext=$EXEEXT
3833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h.  */
3835#include <stdio.h>
3836int
3837main ()
3838{
3839FILE *f = fopen ("conftest.out", "w");
3840 return ferror (f) || fclose (f) != 0;
3841
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846ac_clean_files="$ac_clean_files conftest.out"
3847# Check that the compiler produces executables we can run.  If not, either
3848# the compiler is broken, or we cross compile.
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3850$as_echo_n "checking whether we are cross compiling... " >&6; }
3851if test "$cross_compiling" != yes; then
3852  { { ac_try="$ac_link"
3853case "(($ac_try" in
3854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855  *) ac_try_echo=$ac_try;;
3856esac
3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858$as_echo "$ac_try_echo"; } >&5
3859  (eval "$ac_link") 2>&5
3860  ac_status=$?
3861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862  test $ac_status = 0; }
3863  if { ac_try='./conftest$ac_cv_exeext'
3864  { { case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869$as_echo "$ac_try_echo"; } >&5
3870  (eval "$ac_try") 2>&5
3871  ac_status=$?
3872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873  test $ac_status = 0; }; }; then
3874    cross_compiling=no
3875  else
3876    if test "$cross_compiling" = maybe; then
3877	cross_compiling=yes
3878    else
3879	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881as_fn_error $? "cannot run C compiled programs.
3882If you meant to cross compile, use \`--host'.
3883See \`config.log' for more details" "$LINENO" 5; }
3884    fi
3885  fi
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888$as_echo "$cross_compiling" >&6; }
3889
3890rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3891ac_clean_files=$ac_clean_files_save
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3893$as_echo_n "checking for suffix of object files... " >&6; }
3894if ${ac_cv_objext+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899
3900int
3901main ()
3902{
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908rm -f conftest.o conftest.obj
3909if { { ac_try="$ac_compile"
3910case "(($ac_try" in
3911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912  *) ac_try_echo=$ac_try;;
3913esac
3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915$as_echo "$ac_try_echo"; } >&5
3916  (eval "$ac_compile") 2>&5
3917  ac_status=$?
3918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919  test $ac_status = 0; }; then :
3920  for ac_file in conftest.o conftest.obj conftest.*; do
3921  test -f "$ac_file" || continue;
3922  case $ac_file in
3923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3924    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3925       break;;
3926  esac
3927done
3928else
3929  $as_echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "cannot compute suffix of object files: cannot compile
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937rm -f conftest.$ac_cv_objext conftest.$ac_ext
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3940$as_echo "$ac_cv_objext" >&6; }
3941OBJEXT=$ac_cv_objext
3942ac_objext=$OBJEXT
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3944$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3945if ${ac_cv_c_compiler_gnu+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951int
3952main ()
3953{
3954#ifndef __GNUC__
3955       choke me
3956#endif
3957
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_compile "$LINENO"; then :
3963  ac_compiler_gnu=yes
3964else
3965  ac_compiler_gnu=no
3966fi
3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968ac_cv_c_compiler_gnu=$ac_compiler_gnu
3969
3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3972$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3973if test $ac_compiler_gnu = yes; then
3974  GCC=yes
3975else
3976  GCC=
3977fi
3978ac_test_CFLAGS=${CFLAGS+set}
3979ac_save_CFLAGS=$CFLAGS
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3981$as_echo_n "checking whether $CC accepts -g... " >&6; }
3982if ${ac_cv_prog_cc_g+:} false; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  ac_save_c_werror_flag=$ac_c_werror_flag
3986   ac_c_werror_flag=yes
3987   ac_cv_prog_cc_g=no
3988   CFLAGS="-g"
3989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h.  */
3991
3992int
3993main ()
3994{
3995
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000if ac_fn_c_try_compile "$LINENO"; then :
4001  ac_cv_prog_cc_g=yes
4002else
4003  CFLAGS=""
4004      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006
4007int
4008main ()
4009{
4010
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015if ac_fn_c_try_compile "$LINENO"; then :
4016
4017else
4018  ac_c_werror_flag=$ac_save_c_werror_flag
4019	 CFLAGS="-g"
4020	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h.  */
4022
4023int
4024main ()
4025{
4026
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031if ac_fn_c_try_compile "$LINENO"; then :
4032  ac_cv_prog_cc_g=yes
4033fi
4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039   ac_c_werror_flag=$ac_save_c_werror_flag
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4042$as_echo "$ac_cv_prog_cc_g" >&6; }
4043if test "$ac_test_CFLAGS" = set; then
4044  CFLAGS=$ac_save_CFLAGS
4045elif test $ac_cv_prog_cc_g = yes; then
4046  if test "$GCC" = yes; then
4047    CFLAGS="-g -O2"
4048  else
4049    CFLAGS="-g"
4050  fi
4051else
4052  if test "$GCC" = yes; then
4053    CFLAGS="-O2"
4054  else
4055    CFLAGS=
4056  fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4059$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4060if ${ac_cv_prog_cc_c89+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  ac_cv_prog_cc_c89=no
4064ac_save_CC=$CC
4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067#include <stdarg.h>
4068#include <stdio.h>
4069struct stat;
4070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4071struct buf { int x; };
4072FILE * (*rcsopen) (struct buf *, struct stat *, int);
4073static char *e (p, i)
4074     char **p;
4075     int i;
4076{
4077  return p[i];
4078}
4079static char *f (char * (*g) (char **, int), char **p, ...)
4080{
4081  char *s;
4082  va_list v;
4083  va_start (v,p);
4084  s = g (p, va_arg (v,int));
4085  va_end (v);
4086  return s;
4087}
4088
4089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4090   function prototypes and stuff, but not '\xHH' hex character constants.
4091   These don't provoke an error unfortunately, instead are silently treated
4092   as 'x'.  The following induces an error, until -std is added to get
4093   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4094   array size at least.  It's necessary to write '\x00'==0 to get something
4095   that's true only with -std.  */
4096int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4097
4098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4099   inside strings and character constants.  */
4100#define FOO(x) 'x'
4101int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4102
4103int test (int i, double x);
4104struct s1 {int (*f) (int a);};
4105struct s2 {int (*f) (double a);};
4106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4107int argc;
4108char **argv;
4109int
4110main ()
4111{
4112return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4118	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4119do
4120  CC="$ac_save_CC $ac_arg"
4121  if ac_fn_c_try_compile "$LINENO"; then :
4122  ac_cv_prog_cc_c89=$ac_arg
4123fi
4124rm -f core conftest.err conftest.$ac_objext
4125  test "x$ac_cv_prog_cc_c89" != "xno" && break
4126done
4127rm -f conftest.$ac_ext
4128CC=$ac_save_CC
4129
4130fi
4131# AC_CACHE_VAL
4132case "x$ac_cv_prog_cc_c89" in
4133  x)
4134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4135$as_echo "none needed" >&6; } ;;
4136  xno)
4137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4138$as_echo "unsupported" >&6; } ;;
4139  *)
4140    CC="$CC $ac_cv_prog_cc_c89"
4141    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4142$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4143esac
4144if test "x$ac_cv_prog_cc_c89" != xno; then :
4145
4146fi
4147
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154depcc="$CC"   am_compiler_list=
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4157$as_echo_n "checking dependency style of $depcc... " >&6; }
4158if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4162  # We make a subdir and do the tests there.  Otherwise we can end up
4163  # making bogus files that we don't know about and never remove.  For
4164  # instance it was reported that on HP-UX the gcc test will end up
4165  # making a dummy file named `D' -- because `-MD' means `put the output
4166  # in D'.
4167  mkdir conftest.dir
4168  # Copy depcomp to subdir because otherwise we won't find it if we're
4169  # using a relative directory.
4170  cp "$am_depcomp" conftest.dir
4171  cd conftest.dir
4172  # We will build objects and dependencies in a subdirectory because
4173  # it helps to detect inapplicable dependency modes.  For instance
4174  # both Tru64's cc and ICC support -MD to output dependencies as a
4175  # side effect of compilation, but ICC will put the dependencies in
4176  # the current directory while Tru64 will put them in the object
4177  # directory.
4178  mkdir sub
4179
4180  am_cv_CC_dependencies_compiler_type=none
4181  if test "$am_compiler_list" = ""; then
4182     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4183  fi
4184  am__universal=false
4185  case " $depcc " in #(
4186     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4187     esac
4188
4189  for depmode in $am_compiler_list; do
4190    # Setup a source with many dependencies, because some compilers
4191    # like to wrap large dependency lists on column 80 (with \), and
4192    # we should not choose a depcomp mode which is confused by this.
4193    #
4194    # We need to recreate these files for each test, as the compiler may
4195    # overwrite some of them when testing with obscure command lines.
4196    # This happens at least with the AIX C compiler.
4197    : > sub/conftest.c
4198    for i in 1 2 3 4 5 6; do
4199      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4200      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4201      # Solaris 8's {/usr,}/bin/sh.
4202      touch sub/conftst$i.h
4203    done
4204    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4205
4206    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4207    # mode.  It turns out that the SunPro C++ compiler does not properly
4208    # handle `-M -o', and we need to detect this.  Also, some Intel
4209    # versions had trouble with output in subdirs
4210    am__obj=sub/conftest.${OBJEXT-o}
4211    am__minus_obj="-o $am__obj"
4212    case $depmode in
4213    gcc)
4214      # This depmode causes a compiler race in universal mode.
4215      test "$am__universal" = false || continue
4216      ;;
4217    nosideeffect)
4218      # after this tag, mechanisms are not by side-effect, so they'll
4219      # only be used when explicitly requested
4220      if test "x$enable_dependency_tracking" = xyes; then
4221	continue
4222      else
4223	break
4224      fi
4225      ;;
4226    msvisualcpp | msvcmsys)
4227      # This compiler won't grok `-c -o', but also, the minuso test has
4228      # not run yet.  These depmodes are late enough in the game, and
4229      # so weak that their functioning should not be impacted.
4230      am__obj=conftest.${OBJEXT-o}
4231      am__minus_obj=
4232      ;;
4233    none) break ;;
4234    esac
4235    if depmode=$depmode \
4236       source=sub/conftest.c object=$am__obj \
4237       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4238       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4239         >/dev/null 2>conftest.err &&
4240       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4241       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4242       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4243       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4244      # icc doesn't choke on unknown options, it will just issue warnings
4245      # or remarks (even with -Werror).  So we grep stderr for any message
4246      # that says an option was ignored or not supported.
4247      # When given -MP, icc 7.0 and 7.1 complain thusly:
4248      #   icc: Command line warning: ignoring option '-M'; no argument required
4249      # The diagnosis changed in icc 8.0:
4250      #   icc: Command line remark: option '-MP' not supported
4251      if (grep 'ignoring option' conftest.err ||
4252          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4253        am_cv_CC_dependencies_compiler_type=$depmode
4254        break
4255      fi
4256    fi
4257  done
4258
4259  cd ..
4260  rm -rf conftest.dir
4261else
4262  am_cv_CC_dependencies_compiler_type=none
4263fi
4264
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4267$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4268CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4269
4270 if
4271  test "x$enable_dependency_tracking" != xno \
4272  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4273  am__fastdepCC_TRUE=
4274  am__fastdepCC_FALSE='#'
4275else
4276  am__fastdepCC_TRUE='#'
4277  am__fastdepCC_FALSE=
4278fi
4279
4280
4281
4282ac_ext=c
4283ac_cpp='$CPP $CPPFLAGS'
4284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4288$as_echo_n "checking how to run the C preprocessor... " >&6; }
4289# On Suns, sometimes $CPP names a directory.
4290if test -n "$CPP" && test -d "$CPP"; then
4291  CPP=
4292fi
4293if test -z "$CPP"; then
4294  if ${ac_cv_prog_CPP+:} false; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297      # Double quotes because CPP needs to be expanded
4298    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4299    do
4300      ac_preproc_ok=false
4301for ac_c_preproc_warn_flag in '' yes
4302do
4303  # Use a header file that comes with gcc, so configuring glibc
4304  # with a fresh cross-compiler works.
4305  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306  # <limits.h> exists even on freestanding compilers.
4307  # On the NeXT, cc -E runs the code through the compiler's parser,
4308  # not just through cpp. "Syntax error" is here to catch this case.
4309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310/* end confdefs.h.  */
4311#ifdef __STDC__
4312# include <limits.h>
4313#else
4314# include <assert.h>
4315#endif
4316		     Syntax error
4317_ACEOF
4318if ac_fn_c_try_cpp "$LINENO"; then :
4319
4320else
4321  # Broken: fails on valid input.
4322continue
4323fi
4324rm -f conftest.err conftest.i conftest.$ac_ext
4325
4326  # OK, works on sane cases.  Now check whether nonexistent headers
4327  # can be detected and how.
4328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330#include <ac_nonexistent.h>
4331_ACEOF
4332if ac_fn_c_try_cpp "$LINENO"; then :
4333  # Broken: success on invalid input.
4334continue
4335else
4336  # Passes both tests.
4337ac_preproc_ok=:
4338break
4339fi
4340rm -f conftest.err conftest.i conftest.$ac_ext
4341
4342done
4343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4344rm -f conftest.i conftest.err conftest.$ac_ext
4345if $ac_preproc_ok; then :
4346  break
4347fi
4348
4349    done
4350    ac_cv_prog_CPP=$CPP
4351
4352fi
4353  CPP=$ac_cv_prog_CPP
4354else
4355  ac_cv_prog_CPP=$CPP
4356fi
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4358$as_echo "$CPP" >&6; }
4359ac_preproc_ok=false
4360for ac_c_preproc_warn_flag in '' yes
4361do
4362  # Use a header file that comes with gcc, so configuring glibc
4363  # with a fresh cross-compiler works.
4364  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4365  # <limits.h> exists even on freestanding compilers.
4366  # On the NeXT, cc -E runs the code through the compiler's parser,
4367  # not just through cpp. "Syntax error" is here to catch this case.
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370#ifdef __STDC__
4371# include <limits.h>
4372#else
4373# include <assert.h>
4374#endif
4375		     Syntax error
4376_ACEOF
4377if ac_fn_c_try_cpp "$LINENO"; then :
4378
4379else
4380  # Broken: fails on valid input.
4381continue
4382fi
4383rm -f conftest.err conftest.i conftest.$ac_ext
4384
4385  # OK, works on sane cases.  Now check whether nonexistent headers
4386  # can be detected and how.
4387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h.  */
4389#include <ac_nonexistent.h>
4390_ACEOF
4391if ac_fn_c_try_cpp "$LINENO"; then :
4392  # Broken: success on invalid input.
4393continue
4394else
4395  # Passes both tests.
4396ac_preproc_ok=:
4397break
4398fi
4399rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401done
4402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403rm -f conftest.i conftest.err conftest.$ac_ext
4404if $ac_preproc_ok; then :
4405
4406else
4407  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4409as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4410See \`config.log' for more details" "$LINENO" 5; }
4411fi
4412
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4421$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4422if ${ac_cv_path_GREP+:} false; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425  if test -z "$GREP"; then
4426  ac_path_GREP_found=false
4427  # Loop through the user's path and test for each of PROGNAME-LIST
4428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4430do
4431  IFS=$as_save_IFS
4432  test -z "$as_dir" && as_dir=.
4433    for ac_prog in grep ggrep; do
4434    for ac_exec_ext in '' $ac_executable_extensions; do
4435      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4436      as_fn_executable_p "$ac_path_GREP" || continue
4437# Check for GNU ac_path_GREP and select it if it is found.
4438  # Check for GNU $ac_path_GREP
4439case `"$ac_path_GREP" --version 2>&1` in
4440*GNU*)
4441  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4442*)
4443  ac_count=0
4444  $as_echo_n 0123456789 >"conftest.in"
4445  while :
4446  do
4447    cat "conftest.in" "conftest.in" >"conftest.tmp"
4448    mv "conftest.tmp" "conftest.in"
4449    cp "conftest.in" "conftest.nl"
4450    $as_echo 'GREP' >> "conftest.nl"
4451    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4453    as_fn_arith $ac_count + 1 && ac_count=$as_val
4454    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4455      # Best one so far, save it but keep looking for a better one
4456      ac_cv_path_GREP="$ac_path_GREP"
4457      ac_path_GREP_max=$ac_count
4458    fi
4459    # 10*(2^10) chars as input seems more than enough
4460    test $ac_count -gt 10 && break
4461  done
4462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4463esac
4464
4465      $ac_path_GREP_found && break 3
4466    done
4467  done
4468  done
4469IFS=$as_save_IFS
4470  if test -z "$ac_cv_path_GREP"; then
4471    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4472  fi
4473else
4474  ac_cv_path_GREP=$GREP
4475fi
4476
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4479$as_echo "$ac_cv_path_GREP" >&6; }
4480 GREP="$ac_cv_path_GREP"
4481
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4484$as_echo_n "checking for egrep... " >&6; }
4485if ${ac_cv_path_EGREP+:} false; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4489   then ac_cv_path_EGREP="$GREP -E"
4490   else
4491     if test -z "$EGREP"; then
4492  ac_path_EGREP_found=false
4493  # Loop through the user's path and test for each of PROGNAME-LIST
4494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496do
4497  IFS=$as_save_IFS
4498  test -z "$as_dir" && as_dir=.
4499    for ac_prog in egrep; do
4500    for ac_exec_ext in '' $ac_executable_extensions; do
4501      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4502      as_fn_executable_p "$ac_path_EGREP" || continue
4503# Check for GNU ac_path_EGREP and select it if it is found.
4504  # Check for GNU $ac_path_EGREP
4505case `"$ac_path_EGREP" --version 2>&1` in
4506*GNU*)
4507  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4508*)
4509  ac_count=0
4510  $as_echo_n 0123456789 >"conftest.in"
4511  while :
4512  do
4513    cat "conftest.in" "conftest.in" >"conftest.tmp"
4514    mv "conftest.tmp" "conftest.in"
4515    cp "conftest.in" "conftest.nl"
4516    $as_echo 'EGREP' >> "conftest.nl"
4517    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519    as_fn_arith $ac_count + 1 && ac_count=$as_val
4520    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4521      # Best one so far, save it but keep looking for a better one
4522      ac_cv_path_EGREP="$ac_path_EGREP"
4523      ac_path_EGREP_max=$ac_count
4524    fi
4525    # 10*(2^10) chars as input seems more than enough
4526    test $ac_count -gt 10 && break
4527  done
4528  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529esac
4530
4531      $ac_path_EGREP_found && break 3
4532    done
4533  done
4534  done
4535IFS=$as_save_IFS
4536  if test -z "$ac_cv_path_EGREP"; then
4537    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4538  fi
4539else
4540  ac_cv_path_EGREP=$EGREP
4541fi
4542
4543   fi
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4546$as_echo "$ac_cv_path_EGREP" >&6; }
4547 EGREP="$ac_cv_path_EGREP"
4548
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4551$as_echo_n "checking for ANSI C header files... " >&6; }
4552if ${ac_cv_header_stdc+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h.  */
4557#include <stdlib.h>
4558#include <stdarg.h>
4559#include <string.h>
4560#include <float.h>
4561
4562int
4563main ()
4564{
4565
4566  ;
4567  return 0;
4568}
4569_ACEOF
4570if ac_fn_c_try_compile "$LINENO"; then :
4571  ac_cv_header_stdc=yes
4572else
4573  ac_cv_header_stdc=no
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576
4577if test $ac_cv_header_stdc = yes; then
4578  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581#include <string.h>
4582
4583_ACEOF
4584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585  $EGREP "memchr" >/dev/null 2>&1; then :
4586
4587else
4588  ac_cv_header_stdc=no
4589fi
4590rm -f conftest*
4591
4592fi
4593
4594if test $ac_cv_header_stdc = yes; then
4595  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598#include <stdlib.h>
4599
4600_ACEOF
4601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602  $EGREP "free" >/dev/null 2>&1; then :
4603
4604else
4605  ac_cv_header_stdc=no
4606fi
4607rm -f conftest*
4608
4609fi
4610
4611if test $ac_cv_header_stdc = yes; then
4612  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4613  if test "$cross_compiling" = yes; then :
4614  :
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618#include <ctype.h>
4619#include <stdlib.h>
4620#if ((' ' & 0x0FF) == 0x020)
4621# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4622# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4623#else
4624# define ISLOWER(c) \
4625		   (('a' <= (c) && (c) <= 'i') \
4626		     || ('j' <= (c) && (c) <= 'r') \
4627		     || ('s' <= (c) && (c) <= 'z'))
4628# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4629#endif
4630
4631#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4632int
4633main ()
4634{
4635  int i;
4636  for (i = 0; i < 256; i++)
4637    if (XOR (islower (i), ISLOWER (i))
4638	|| toupper (i) != TOUPPER (i))
4639      return 2;
4640  return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_run "$LINENO"; then :
4644
4645else
4646  ac_cv_header_stdc=no
4647fi
4648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4649  conftest.$ac_objext conftest.beam conftest.$ac_ext
4650fi
4651
4652fi
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4655$as_echo "$ac_cv_header_stdc" >&6; }
4656if test $ac_cv_header_stdc = yes; then
4657
4658$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4659
4660fi
4661
4662# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4663for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4664		  inttypes.h stdint.h unistd.h
4665do :
4666  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4667ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4668"
4669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4670  cat >>confdefs.h <<_ACEOF
4671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4672_ACEOF
4673
4674fi
4675
4676done
4677
4678
4679
4680  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4681if test "x$ac_cv_header_minix_config_h" = xyes; then :
4682  MINIX=yes
4683else
4684  MINIX=
4685fi
4686
4687
4688  if test "$MINIX" = yes; then
4689
4690$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4691
4692
4693$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4694
4695
4696$as_echo "#define _MINIX 1" >>confdefs.h
4697
4698  fi
4699
4700
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4702$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4703if ${ac_cv_safe_to_define___extensions__+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708
4709#         define __EXTENSIONS__ 1
4710          $ac_includes_default
4711int
4712main ()
4713{
4714
4715  ;
4716  return 0;
4717}
4718_ACEOF
4719if ac_fn_c_try_compile "$LINENO"; then :
4720  ac_cv_safe_to_define___extensions__=yes
4721else
4722  ac_cv_safe_to_define___extensions__=no
4723fi
4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4727$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4728  test $ac_cv_safe_to_define___extensions__ = yes &&
4729    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4730
4731  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4732
4733  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4734
4735  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4736
4737  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4738
4739
4740
4741ac_config_headers="$ac_config_headers config.h"
4742
4743
4744##########################################################################
4745#
4746# Try to figure out if we are building from git sources.
4747# If we are then unless building of the documentation has
4748# been disabled then just require the user have all the right
4749# tools.  Users building from a tarball won't need latex, makeinfo,
4750# etc. but if you're already downloading development sources, then
4751# it is not unreasonable to require development tools.  What motivated
4752# this is that using maintainer mode proved to cause regular confusion.
4753
4754pcb_sources="tarball"
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are building from a git checkout" >&5
4756$as_echo_n "checking if you are building from a git checkout... " >&6; }
4757pcb_git_version=no
4758if test -f $srcdir/.gitignore ; then
4759	pcb_git_version=yes
4760	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4761$as_echo "yes" >&6; }
4762	pcb_sources="GIT"
4763else
4764	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767 if test x$pcb_git_version = xyes; then
4768  GIT_VERSION_TRUE=
4769  GIT_VERSION_FALSE='#'
4770else
4771  GIT_VERSION_TRUE='#'
4772  GIT_VERSION_FALSE=
4773fi
4774
4775
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are building from a anoncvs checkout" >&5
4777$as_echo_n "checking if you are building from a anoncvs checkout... " >&6; }
4778pcb_cvs_version=no
4779if test -f $srcdir/CVS/Root ; then
4780	pcb_cvs_version=yes
4781	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782$as_echo "yes" >&6; }
4783	pcb_sources="CVS"
4784else
4785	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788 if test x$pcb_cvs_version = xyes; then
4789  CVS_VERSION_TRUE=
4790  CVS_VERSION_FALSE='#'
4791else
4792  CVS_VERSION_TRUE='#'
4793  CVS_VERSION_FALSE=
4794fi
4795
4796 if test x$pcb_git_version = xyes -o x$pcb_cvs_version = xyes; then
4797  GIT_OR_CVS_VERSION_TRUE=
4798  GIT_OR_CVS_VERSION_FALSE='#'
4799else
4800  GIT_OR_CVS_VERSION_TRUE='#'
4801  GIT_OR_CVS_VERSION_FALSE=
4802fi
4803
4804
4805
4806##########################################################################
4807#
4808# See if we are supposed to build the docs
4809#
4810
4811docs_yesno=yes
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the documentation should be built" >&5
4813$as_echo_n "checking if the documentation should be built... " >&6; }
4814# Check whether --enable-doc was given.
4815if test "${enable_doc+set}" = set; then :
4816  enableval=$enable_doc;
4817if test "X$enable_doc" = "Xno" ; then
4818        DOC=""
4819        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
4821        docs_yesno=no
4822else
4823        DOC=doc
4824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4825$as_echo "yes" >&6; }
4826        docs_yesno=yes
4827fi
4828
4829else
4830
4831DOC=doc
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4833$as_echo "yes" >&6; }
4834docs_yesno=yes
4835
4836fi
4837
4838
4839
4840
4841# Make sure we can run config.sub.
4842$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4843  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4846$as_echo_n "checking build system type... " >&6; }
4847if ${ac_cv_build+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  ac_build_alias=$build_alias
4851test "x$ac_build_alias" = x &&
4852  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4853test "x$ac_build_alias" = x &&
4854  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4855ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4856  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4857
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4860$as_echo "$ac_cv_build" >&6; }
4861case $ac_cv_build in
4862*-*-*) ;;
4863*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4864esac
4865build=$ac_cv_build
4866ac_save_IFS=$IFS; IFS='-'
4867set x $ac_cv_build
4868shift
4869build_cpu=$1
4870build_vendor=$2
4871shift; shift
4872# Remember, the first character of IFS is used to create $*,
4873# except with old shells:
4874build_os=$*
4875IFS=$ac_save_IFS
4876case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4877
4878
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4880$as_echo_n "checking host system type... " >&6; }
4881if ${ac_cv_host+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  if test "x$host_alias" = x; then
4885  ac_cv_host=$ac_cv_build
4886else
4887  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4888    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4889fi
4890
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4893$as_echo "$ac_cv_host" >&6; }
4894case $ac_cv_host in
4895*-*-*) ;;
4896*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4897esac
4898host=$ac_cv_host
4899ac_save_IFS=$IFS; IFS='-'
4900set x $ac_cv_host
4901shift
4902host_cpu=$1
4903host_vendor=$2
4904shift; shift
4905# Remember, the first character of IFS is used to create $*,
4906# except with old shells:
4907host_os=$*
4908IFS=$ac_save_IFS
4909case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
4913$as_echo_n "checking for windows... " >&6; }
4914PCB_PATH_DELIMETER=":"
4915PCB_DIR_SEPARATOR_S="/"
4916PCB_DIR_SEPARATOR_C='/'
4917case $host in
4918	*-*-mingw* )
4919		WIN32=yes
4920		CFLAGS="$CFLAGS ${MINGW_CFLAGS:--mms-bitfields -mwindows}"
4921		CPPFLAGS="$CPPFLAGS ${MINGW_CPPFLAGS}"
4922		;;
4923
4924	* )
4925		WIN32=no
4926		;;
4927esac
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN32" >&5
4930$as_echo "$WIN32" >&6; }
4931
4932 if test x$WIN32 = xyes; then
4933  WIN32_TRUE=
4934  WIN32_FALSE='#'
4935else
4936  WIN32_TRUE='#'
4937  WIN32_FALSE=
4938fi
4939
4940if test "x$WIN32" = "xyes" ; then
4941	PCB_PATH_DELIMETER=";"
4942	PCB_DIR_SEPARATOR_S="\\\\"
4943	PCB_DIR_SEPARATOR_C='\\'
4944fi
4945
4946
4947cat >>confdefs.h <<_ACEOF
4948#define PCB_DIR_SEPARATOR_C '$PCB_DIR_SEPARATOR_C'
4949_ACEOF
4950
4951
4952cat >>confdefs.h <<_ACEOF
4953#define PCB_DIR_SEPARATOR_S "$PCB_DIR_SEPARATOR_S"
4954_ACEOF
4955
4956
4957cat >>confdefs.h <<_ACEOF
4958#define PCB_PATH_DELIMETER "$PCB_PATH_DELIMETER"
4959_ACEOF
4960
4961
4962
4963ac_ext=c
4964ac_cpp='$CPP $CPPFLAGS'
4965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968if test -n "$ac_tool_prefix"; then
4969  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4970set dummy ${ac_tool_prefix}gcc; ac_word=$2
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
4973if ${ac_cv_prog_CC+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  if test -n "$CC"; then
4977  ac_cv_prog_CC="$CC" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982  IFS=$as_save_IFS
4983  test -z "$as_dir" && as_dir=.
4984    for ac_exec_ext in '' $ac_executable_extensions; do
4985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988    break 2
4989  fi
4990done
4991  done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996CC=$ac_cv_prog_CC
4997if test -n "$CC"; then
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4999$as_echo "$CC" >&6; }
5000else
5001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
5004
5005
5006fi
5007if test -z "$ac_cv_prog_CC"; then
5008  ac_ct_CC=$CC
5009  # Extract the first word of "gcc", so it can be a program name with args.
5010set dummy gcc; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_prog_ac_ct_CC+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  if test -n "$ac_ct_CC"; then
5017  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026    ac_cv_prog_ac_ct_CC="gcc"
5027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031  done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036ac_ct_CC=$ac_cv_prog_ac_ct_CC
5037if test -n "$ac_ct_CC"; then
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5039$as_echo "$ac_ct_CC" >&6; }
5040else
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045  if test "x$ac_ct_CC" = x; then
5046    CC=""
5047  else
5048    case $cross_compiling:$ac_tool_warned in
5049yes:)
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052ac_tool_warned=yes ;;
5053esac
5054    CC=$ac_ct_CC
5055  fi
5056else
5057  CC="$ac_cv_prog_CC"
5058fi
5059
5060if test -z "$CC"; then
5061          if test -n "$ac_tool_prefix"; then
5062    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5063set dummy ${ac_tool_prefix}cc; ac_word=$2
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065$as_echo_n "checking for $ac_word... " >&6; }
5066if ${ac_cv_prog_CC+:} false; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069  if test -n "$CC"; then
5070  ac_cv_prog_CC="$CC" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077    for ac_exec_ext in '' $ac_executable_extensions; do
5078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079    ac_cv_prog_CC="${ac_tool_prefix}cc"
5080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084  done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089CC=$ac_cv_prog_CC
5090if test -n "$CC"; then
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5092$as_echo "$CC" >&6; }
5093else
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095$as_echo "no" >&6; }
5096fi
5097
5098
5099  fi
5100fi
5101if test -z "$CC"; then
5102  # Extract the first word of "cc", so it can be a program name with args.
5103set dummy cc; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if ${ac_cv_prog_CC+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  if test -n "$CC"; then
5110  ac_cv_prog_CC="$CC" # Let the user override the test.
5111else
5112  ac_prog_rejected=no
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116  IFS=$as_save_IFS
5117  test -z "$as_dir" && as_dir=.
5118    for ac_exec_ext in '' $ac_executable_extensions; do
5119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5121       ac_prog_rejected=yes
5122       continue
5123     fi
5124    ac_cv_prog_CC="cc"
5125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126    break 2
5127  fi
5128done
5129  done
5130IFS=$as_save_IFS
5131
5132if test $ac_prog_rejected = yes; then
5133  # We found a bogon in the path, so make sure we never use it.
5134  set dummy $ac_cv_prog_CC
5135  shift
5136  if test $# != 0; then
5137    # We chose a different compiler from the bogus one.
5138    # However, it has the same basename, so the bogon will be chosen
5139    # first if we set CC to just the basename; use the full file name.
5140    shift
5141    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5142  fi
5143fi
5144fi
5145fi
5146CC=$ac_cv_prog_CC
5147if test -n "$CC"; then
5148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5149$as_echo "$CC" >&6; }
5150else
5151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156fi
5157if test -z "$CC"; then
5158  if test -n "$ac_tool_prefix"; then
5159  for ac_prog in cl.exe
5160  do
5161    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164$as_echo_n "checking for $ac_word... " >&6; }
5165if ${ac_cv_prog_CC+:} false; then :
5166  $as_echo_n "(cached) " >&6
5167else
5168  if test -n "$CC"; then
5169  ac_cv_prog_CC="$CC" # Let the user override the test.
5170else
5171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174  IFS=$as_save_IFS
5175  test -z "$as_dir" && as_dir=.
5176    for ac_exec_ext in '' $ac_executable_extensions; do
5177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180    break 2
5181  fi
5182done
5183  done
5184IFS=$as_save_IFS
5185
5186fi
5187fi
5188CC=$ac_cv_prog_CC
5189if test -n "$CC"; then
5190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5191$as_echo "$CC" >&6; }
5192else
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194$as_echo "no" >&6; }
5195fi
5196
5197
5198    test -n "$CC" && break
5199  done
5200fi
5201if test -z "$CC"; then
5202  ac_ct_CC=$CC
5203  for ac_prog in cl.exe
5204do
5205  # Extract the first word of "$ac_prog", so it can be a program name with args.
5206set dummy $ac_prog; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
5209if ${ac_cv_prog_ac_ct_CC+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  if test -n "$ac_ct_CC"; then
5213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220    for ac_exec_ext in '' $ac_executable_extensions; do
5221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222    ac_cv_prog_ac_ct_CC="$ac_prog"
5223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224    break 2
5225  fi
5226done
5227  done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232ac_ct_CC=$ac_cv_prog_ac_ct_CC
5233if test -n "$ac_ct_CC"; then
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5235$as_echo "$ac_ct_CC" >&6; }
5236else
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241
5242  test -n "$ac_ct_CC" && break
5243done
5244
5245  if test "x$ac_ct_CC" = x; then
5246    CC=""
5247  else
5248    case $cross_compiling:$ac_tool_warned in
5249yes:)
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252ac_tool_warned=yes ;;
5253esac
5254    CC=$ac_ct_CC
5255  fi
5256fi
5257
5258fi
5259
5260
5261test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5263as_fn_error $? "no acceptable C compiler found in \$PATH
5264See \`config.log' for more details" "$LINENO" 5; }
5265
5266# Provide some information about the compiler.
5267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5268set X $ac_compile
5269ac_compiler=$2
5270for ac_option in --version -v -V -qversion; do
5271  { { ac_try="$ac_compiler $ac_option >&5"
5272case "(($ac_try" in
5273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274  *) ac_try_echo=$ac_try;;
5275esac
5276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277$as_echo "$ac_try_echo"; } >&5
5278  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5279  ac_status=$?
5280  if test -s conftest.err; then
5281    sed '10a\
5282... rest of stderr output deleted ...
5283         10q' conftest.err >conftest.er1
5284    cat conftest.er1 >&5
5285  fi
5286  rm -f conftest.er1 conftest.err
5287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288  test $ac_status = 0; }
5289done
5290
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5292$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5293if ${ac_cv_c_compiler_gnu+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298
5299int
5300main ()
5301{
5302#ifndef __GNUC__
5303       choke me
5304#endif
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311  ac_compiler_gnu=yes
5312else
5313  ac_compiler_gnu=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316ac_cv_c_compiler_gnu=$ac_compiler_gnu
5317
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5320$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5321if test $ac_compiler_gnu = yes; then
5322  GCC=yes
5323else
5324  GCC=
5325fi
5326ac_test_CFLAGS=${CFLAGS+set}
5327ac_save_CFLAGS=$CFLAGS
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5329$as_echo_n "checking whether $CC accepts -g... " >&6; }
5330if ${ac_cv_prog_cc_g+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  ac_save_c_werror_flag=$ac_c_werror_flag
5334   ac_c_werror_flag=yes
5335   ac_cv_prog_cc_g=no
5336   CFLAGS="-g"
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339
5340int
5341main ()
5342{
5343
5344  ;
5345  return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_compile "$LINENO"; then :
5349  ac_cv_prog_cc_g=yes
5350else
5351  CFLAGS=""
5352      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354
5355int
5356main ()
5357{
5358
5359  ;
5360  return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_compile "$LINENO"; then :
5364
5365else
5366  ac_c_werror_flag=$ac_save_c_werror_flag
5367	 CFLAGS="-g"
5368	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370
5371int
5372main ()
5373{
5374
5375  ;
5376  return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then :
5380  ac_cv_prog_cc_g=yes
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387   ac_c_werror_flag=$ac_save_c_werror_flag
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5390$as_echo "$ac_cv_prog_cc_g" >&6; }
5391if test "$ac_test_CFLAGS" = set; then
5392  CFLAGS=$ac_save_CFLAGS
5393elif test $ac_cv_prog_cc_g = yes; then
5394  if test "$GCC" = yes; then
5395    CFLAGS="-g -O2"
5396  else
5397    CFLAGS="-g"
5398  fi
5399else
5400  if test "$GCC" = yes; then
5401    CFLAGS="-O2"
5402  else
5403    CFLAGS=
5404  fi
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5407$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5408if ${ac_cv_prog_cc_c89+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  ac_cv_prog_cc_c89=no
5412ac_save_CC=$CC
5413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h.  */
5415#include <stdarg.h>
5416#include <stdio.h>
5417struct stat;
5418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5419struct buf { int x; };
5420FILE * (*rcsopen) (struct buf *, struct stat *, int);
5421static char *e (p, i)
5422     char **p;
5423     int i;
5424{
5425  return p[i];
5426}
5427static char *f (char * (*g) (char **, int), char **p, ...)
5428{
5429  char *s;
5430  va_list v;
5431  va_start (v,p);
5432  s = g (p, va_arg (v,int));
5433  va_end (v);
5434  return s;
5435}
5436
5437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5438   function prototypes and stuff, but not '\xHH' hex character constants.
5439   These don't provoke an error unfortunately, instead are silently treated
5440   as 'x'.  The following induces an error, until -std is added to get
5441   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5442   array size at least.  It's necessary to write '\x00'==0 to get something
5443   that's true only with -std.  */
5444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5445
5446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5447   inside strings and character constants.  */
5448#define FOO(x) 'x'
5449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5450
5451int test (int i, double x);
5452struct s1 {int (*f) (int a);};
5453struct s2 {int (*f) (double a);};
5454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5455int argc;
5456char **argv;
5457int
5458main ()
5459{
5460return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5466	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5467do
5468  CC="$ac_save_CC $ac_arg"
5469  if ac_fn_c_try_compile "$LINENO"; then :
5470  ac_cv_prog_cc_c89=$ac_arg
5471fi
5472rm -f core conftest.err conftest.$ac_objext
5473  test "x$ac_cv_prog_cc_c89" != "xno" && break
5474done
5475rm -f conftest.$ac_ext
5476CC=$ac_save_CC
5477
5478fi
5479# AC_CACHE_VAL
5480case "x$ac_cv_prog_cc_c89" in
5481  x)
5482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5483$as_echo "none needed" >&6; } ;;
5484  xno)
5485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5486$as_echo "unsupported" >&6; } ;;
5487  *)
5488    CC="$CC $ac_cv_prog_cc_c89"
5489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5490$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5491esac
5492if test "x$ac_cv_prog_cc_c89" != xno; then :
5493
5494fi
5495
5496ac_ext=c
5497ac_cpp='$CPP $CPPFLAGS'
5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501
5502depcc="$CC"   am_compiler_list=
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5505$as_echo_n "checking dependency style of $depcc... " >&6; }
5506if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5510  # We make a subdir and do the tests there.  Otherwise we can end up
5511  # making bogus files that we don't know about and never remove.  For
5512  # instance it was reported that on HP-UX the gcc test will end up
5513  # making a dummy file named `D' -- because `-MD' means `put the output
5514  # in D'.
5515  mkdir conftest.dir
5516  # Copy depcomp to subdir because otherwise we won't find it if we're
5517  # using a relative directory.
5518  cp "$am_depcomp" conftest.dir
5519  cd conftest.dir
5520  # We will build objects and dependencies in a subdirectory because
5521  # it helps to detect inapplicable dependency modes.  For instance
5522  # both Tru64's cc and ICC support -MD to output dependencies as a
5523  # side effect of compilation, but ICC will put the dependencies in
5524  # the current directory while Tru64 will put them in the object
5525  # directory.
5526  mkdir sub
5527
5528  am_cv_CC_dependencies_compiler_type=none
5529  if test "$am_compiler_list" = ""; then
5530     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5531  fi
5532  am__universal=false
5533  case " $depcc " in #(
5534     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5535     esac
5536
5537  for depmode in $am_compiler_list; do
5538    # Setup a source with many dependencies, because some compilers
5539    # like to wrap large dependency lists on column 80 (with \), and
5540    # we should not choose a depcomp mode which is confused by this.
5541    #
5542    # We need to recreate these files for each test, as the compiler may
5543    # overwrite some of them when testing with obscure command lines.
5544    # This happens at least with the AIX C compiler.
5545    : > sub/conftest.c
5546    for i in 1 2 3 4 5 6; do
5547      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5548      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5549      # Solaris 8's {/usr,}/bin/sh.
5550      touch sub/conftst$i.h
5551    done
5552    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5553
5554    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5555    # mode.  It turns out that the SunPro C++ compiler does not properly
5556    # handle `-M -o', and we need to detect this.  Also, some Intel
5557    # versions had trouble with output in subdirs
5558    am__obj=sub/conftest.${OBJEXT-o}
5559    am__minus_obj="-o $am__obj"
5560    case $depmode in
5561    gcc)
5562      # This depmode causes a compiler race in universal mode.
5563      test "$am__universal" = false || continue
5564      ;;
5565    nosideeffect)
5566      # after this tag, mechanisms are not by side-effect, so they'll
5567      # only be used when explicitly requested
5568      if test "x$enable_dependency_tracking" = xyes; then
5569	continue
5570      else
5571	break
5572      fi
5573      ;;
5574    msvisualcpp | msvcmsys)
5575      # This compiler won't grok `-c -o', but also, the minuso test has
5576      # not run yet.  These depmodes are late enough in the game, and
5577      # so weak that their functioning should not be impacted.
5578      am__obj=conftest.${OBJEXT-o}
5579      am__minus_obj=
5580      ;;
5581    none) break ;;
5582    esac
5583    if depmode=$depmode \
5584       source=sub/conftest.c object=$am__obj \
5585       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5586       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5587         >/dev/null 2>conftest.err &&
5588       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5589       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5591       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592      # icc doesn't choke on unknown options, it will just issue warnings
5593      # or remarks (even with -Werror).  So we grep stderr for any message
5594      # that says an option was ignored or not supported.
5595      # When given -MP, icc 7.0 and 7.1 complain thusly:
5596      #   icc: Command line warning: ignoring option '-M'; no argument required
5597      # The diagnosis changed in icc 8.0:
5598      #   icc: Command line remark: option '-MP' not supported
5599      if (grep 'ignoring option' conftest.err ||
5600          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601        am_cv_CC_dependencies_compiler_type=$depmode
5602        break
5603      fi
5604    fi
5605  done
5606
5607  cd ..
5608  rm -rf conftest.dir
5609else
5610  am_cv_CC_dependencies_compiler_type=none
5611fi
5612
5613fi
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5615$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5617
5618 if
5619  test "x$enable_dependency_tracking" != xno \
5620  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5621  am__fastdepCC_TRUE=
5622  am__fastdepCC_FALSE='#'
5623else
5624  am__fastdepCC_TRUE='#'
5625  am__fastdepCC_FALSE=
5626fi
5627
5628
5629ac_ext=cpp
5630ac_cpp='$CXXCPP $CPPFLAGS'
5631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5634if test -z "$CXX"; then
5635  if test -n "$CCC"; then
5636    CXX=$CCC
5637  else
5638    if test -n "$ac_tool_prefix"; then
5639  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5640  do
5641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_prog_CXX+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  if test -n "$CXX"; then
5649  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668CXX=$ac_cv_prog_CXX
5669if test -n "$CXX"; then
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5671$as_echo "$CXX" >&6; }
5672else
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677
5678    test -n "$CXX" && break
5679  done
5680fi
5681if test -z "$CXX"; then
5682  ac_ct_CXX=$CXX
5683  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5684do
5685  # Extract the first word of "$ac_prog", so it can be a program name with args.
5686set dummy $ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_CXX"; then
5693  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_ac_ct_CXX="$ac_prog"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5713if test -n "$ac_ct_CXX"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5715$as_echo "$ac_ct_CXX" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722  test -n "$ac_ct_CXX" && break
5723done
5724
5725  if test "x$ac_ct_CXX" = x; then
5726    CXX="g++"
5727  else
5728    case $cross_compiling:$ac_tool_warned in
5729yes:)
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732ac_tool_warned=yes ;;
5733esac
5734    CXX=$ac_ct_CXX
5735  fi
5736fi
5737
5738  fi
5739fi
5740# Provide some information about the compiler.
5741$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5742set X $ac_compile
5743ac_compiler=$2
5744for ac_option in --version -v -V -qversion; do
5745  { { ac_try="$ac_compiler $ac_option >&5"
5746case "(($ac_try" in
5747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748  *) ac_try_echo=$ac_try;;
5749esac
5750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5751$as_echo "$ac_try_echo"; } >&5
5752  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5753  ac_status=$?
5754  if test -s conftest.err; then
5755    sed '10a\
5756... rest of stderr output deleted ...
5757         10q' conftest.err >conftest.er1
5758    cat conftest.er1 >&5
5759  fi
5760  rm -f conftest.er1 conftest.err
5761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5762  test $ac_status = 0; }
5763done
5764
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5766$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5767if ${ac_cv_cxx_compiler_gnu+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772
5773int
5774main ()
5775{
5776#ifndef __GNUC__
5777       choke me
5778#endif
5779
5780  ;
5781  return 0;
5782}
5783_ACEOF
5784if ac_fn_cxx_try_compile "$LINENO"; then :
5785  ac_compiler_gnu=yes
5786else
5787  ac_compiler_gnu=no
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5791
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5794$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5795if test $ac_compiler_gnu = yes; then
5796  GXX=yes
5797else
5798  GXX=
5799fi
5800ac_test_CXXFLAGS=${CXXFLAGS+set}
5801ac_save_CXXFLAGS=$CXXFLAGS
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5803$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5804if ${ac_cv_prog_cxx_g+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5808   ac_cxx_werror_flag=yes
5809   ac_cv_prog_cxx_g=no
5810   CXXFLAGS="-g"
5811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813
5814int
5815main ()
5816{
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822if ac_fn_cxx_try_compile "$LINENO"; then :
5823  ac_cv_prog_cxx_g=yes
5824else
5825  CXXFLAGS=""
5826      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828
5829int
5830main ()
5831{
5832
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837if ac_fn_cxx_try_compile "$LINENO"; then :
5838
5839else
5840  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5841	 CXXFLAGS="-g"
5842	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h.  */
5844
5845int
5846main ()
5847{
5848
5849  ;
5850  return 0;
5851}
5852_ACEOF
5853if ac_fn_cxx_try_compile "$LINENO"; then :
5854  ac_cv_prog_cxx_g=yes
5855fi
5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5864$as_echo "$ac_cv_prog_cxx_g" >&6; }
5865if test "$ac_test_CXXFLAGS" = set; then
5866  CXXFLAGS=$ac_save_CXXFLAGS
5867elif test $ac_cv_prog_cxx_g = yes; then
5868  if test "$GXX" = yes; then
5869    CXXFLAGS="-g -O2"
5870  else
5871    CXXFLAGS="-g"
5872  fi
5873else
5874  if test "$GXX" = yes; then
5875    CXXFLAGS="-O2"
5876  else
5877    CXXFLAGS=
5878  fi
5879fi
5880ac_ext=c
5881ac_cpp='$CPP $CPPFLAGS'
5882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885
5886depcc="$CXX"  am_compiler_list=
5887
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5889$as_echo_n "checking dependency style of $depcc... " >&6; }
5890if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5894  # We make a subdir and do the tests there.  Otherwise we can end up
5895  # making bogus files that we don't know about and never remove.  For
5896  # instance it was reported that on HP-UX the gcc test will end up
5897  # making a dummy file named `D' -- because `-MD' means `put the output
5898  # in D'.
5899  mkdir conftest.dir
5900  # Copy depcomp to subdir because otherwise we won't find it if we're
5901  # using a relative directory.
5902  cp "$am_depcomp" conftest.dir
5903  cd conftest.dir
5904  # We will build objects and dependencies in a subdirectory because
5905  # it helps to detect inapplicable dependency modes.  For instance
5906  # both Tru64's cc and ICC support -MD to output dependencies as a
5907  # side effect of compilation, but ICC will put the dependencies in
5908  # the current directory while Tru64 will put them in the object
5909  # directory.
5910  mkdir sub
5911
5912  am_cv_CXX_dependencies_compiler_type=none
5913  if test "$am_compiler_list" = ""; then
5914     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5915  fi
5916  am__universal=false
5917  case " $depcc " in #(
5918     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5919     esac
5920
5921  for depmode in $am_compiler_list; do
5922    # Setup a source with many dependencies, because some compilers
5923    # like to wrap large dependency lists on column 80 (with \), and
5924    # we should not choose a depcomp mode which is confused by this.
5925    #
5926    # We need to recreate these files for each test, as the compiler may
5927    # overwrite some of them when testing with obscure command lines.
5928    # This happens at least with the AIX C compiler.
5929    : > sub/conftest.c
5930    for i in 1 2 3 4 5 6; do
5931      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5932      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5933      # Solaris 8's {/usr,}/bin/sh.
5934      touch sub/conftst$i.h
5935    done
5936    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5937
5938    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5939    # mode.  It turns out that the SunPro C++ compiler does not properly
5940    # handle `-M -o', and we need to detect this.  Also, some Intel
5941    # versions had trouble with output in subdirs
5942    am__obj=sub/conftest.${OBJEXT-o}
5943    am__minus_obj="-o $am__obj"
5944    case $depmode in
5945    gcc)
5946      # This depmode causes a compiler race in universal mode.
5947      test "$am__universal" = false || continue
5948      ;;
5949    nosideeffect)
5950      # after this tag, mechanisms are not by side-effect, so they'll
5951      # only be used when explicitly requested
5952      if test "x$enable_dependency_tracking" = xyes; then
5953	continue
5954      else
5955	break
5956      fi
5957      ;;
5958    msvisualcpp | msvcmsys)
5959      # This compiler won't grok `-c -o', but also, the minuso test has
5960      # not run yet.  These depmodes are late enough in the game, and
5961      # so weak that their functioning should not be impacted.
5962      am__obj=conftest.${OBJEXT-o}
5963      am__minus_obj=
5964      ;;
5965    none) break ;;
5966    esac
5967    if depmode=$depmode \
5968       source=sub/conftest.c object=$am__obj \
5969       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5970       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5971         >/dev/null 2>conftest.err &&
5972       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5973       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5974       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5975       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5976      # icc doesn't choke on unknown options, it will just issue warnings
5977      # or remarks (even with -Werror).  So we grep stderr for any message
5978      # that says an option was ignored or not supported.
5979      # When given -MP, icc 7.0 and 7.1 complain thusly:
5980      #   icc: Command line warning: ignoring option '-M'; no argument required
5981      # The diagnosis changed in icc 8.0:
5982      #   icc: Command line remark: option '-MP' not supported
5983      if (grep 'ignoring option' conftest.err ||
5984          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5985        am_cv_CXX_dependencies_compiler_type=$depmode
5986        break
5987      fi
5988    fi
5989  done
5990
5991  cd ..
5992  rm -rf conftest.dir
5993else
5994  am_cv_CXX_dependencies_compiler_type=none
5995fi
5996
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5999$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6000CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6001
6002 if
6003  test "x$enable_dependency_tracking" != xno \
6004  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6005  am__fastdepCXX_TRUE=
6006  am__fastdepCXX_FALSE='#'
6007else
6008  am__fastdepCXX_TRUE='#'
6009  am__fastdepCXX_FALSE=
6010fi
6011
6012
6013
6014if test "x$WIN32" = "xyes" ; then
6015	if test -n "$ac_tool_prefix"; then
6016  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6017set dummy ${ac_tool_prefix}windres; ac_word=$2
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019$as_echo_n "checking for $ac_word... " >&6; }
6020if ${ac_cv_prog_WINDRES+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  if test -n "$WINDRES"; then
6024  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6025else
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029  IFS=$as_save_IFS
6030  test -z "$as_dir" && as_dir=.
6031    for ac_exec_ext in '' $ac_executable_extensions; do
6032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035    break 2
6036  fi
6037done
6038  done
6039IFS=$as_save_IFS
6040
6041fi
6042fi
6043WINDRES=$ac_cv_prog_WINDRES
6044if test -n "$WINDRES"; then
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6046$as_echo "$WINDRES" >&6; }
6047else
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049$as_echo "no" >&6; }
6050fi
6051
6052
6053fi
6054if test -z "$ac_cv_prog_WINDRES"; then
6055  ac_ct_WINDRES=$WINDRES
6056  # Extract the first word of "windres", so it can be a program name with args.
6057set dummy windres; ac_word=$2
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059$as_echo_n "checking for $ac_word... " >&6; }
6060if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  if test -n "$ac_ct_WINDRES"; then
6064  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073    ac_cv_prog_ac_ct_WINDRES="windres"
6074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6084if test -n "$ac_ct_WINDRES"; then
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6086$as_echo "$ac_ct_WINDRES" >&6; }
6087else
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090fi
6091
6092  if test "x$ac_ct_WINDRES" = x; then
6093    WINDRES="no"
6094  else
6095    case $cross_compiling:$ac_tool_warned in
6096yes:)
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099ac_tool_warned=yes ;;
6100esac
6101    WINDRES=$ac_ct_WINDRES
6102  fi
6103else
6104  WINDRES="$ac_cv_prog_WINDRES"
6105fi
6106
6107	if test "$WINDRES" = "no" ; then
6108		as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
6109	fi
6110fi
6111
6112# i18n
6113GETTEXT_PACKAGE=$PACKAGE
6114
6115cat >>confdefs.h <<_ACEOF
6116#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6117_ACEOF
6118
6119
6120
6121
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6123$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6124if ${ac_cv_path_SED+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6128     for ac_i in 1 2 3 4 5 6 7; do
6129       ac_script="$ac_script$as_nl$ac_script"
6130     done
6131     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6132     { ac_script=; unset ac_script;}
6133     if test -z "$SED"; then
6134  ac_path_SED_found=false
6135  # Loop through the user's path and test for each of PROGNAME-LIST
6136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139  IFS=$as_save_IFS
6140  test -z "$as_dir" && as_dir=.
6141    for ac_prog in sed gsed; do
6142    for ac_exec_ext in '' $ac_executable_extensions; do
6143      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6144      as_fn_executable_p "$ac_path_SED" || continue
6145# Check for GNU ac_path_SED and select it if it is found.
6146  # Check for GNU $ac_path_SED
6147case `"$ac_path_SED" --version 2>&1` in
6148*GNU*)
6149  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6150*)
6151  ac_count=0
6152  $as_echo_n 0123456789 >"conftest.in"
6153  while :
6154  do
6155    cat "conftest.in" "conftest.in" >"conftest.tmp"
6156    mv "conftest.tmp" "conftest.in"
6157    cp "conftest.in" "conftest.nl"
6158    $as_echo '' >> "conftest.nl"
6159    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6160    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6161    as_fn_arith $ac_count + 1 && ac_count=$as_val
6162    if test $ac_count -gt ${ac_path_SED_max-0}; then
6163      # Best one so far, save it but keep looking for a better one
6164      ac_cv_path_SED="$ac_path_SED"
6165      ac_path_SED_max=$ac_count
6166    fi
6167    # 10*(2^10) chars as input seems more than enough
6168    test $ac_count -gt 10 && break
6169  done
6170  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6171esac
6172
6173      $ac_path_SED_found && break 3
6174    done
6175  done
6176  done
6177IFS=$as_save_IFS
6178  if test -z "$ac_cv_path_SED"; then
6179    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6180  fi
6181else
6182  ac_cv_path_SED=$SED
6183fi
6184
6185fi
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6187$as_echo "$ac_cv_path_SED" >&6; }
6188 SED="$ac_cv_path_SED"
6189  rm -f conftest.sed
6190
6191
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6193$as_echo_n "checking whether NLS is requested... " >&6; }
6194    # Check whether --enable-nls was given.
6195if test "${enable_nls+set}" = set; then :
6196  enableval=$enable_nls; USE_NLS=$enableval
6197else
6198  USE_NLS=yes
6199fi
6200
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6202$as_echo "$USE_NLS" >&6; }
6203
6204
6205
6206
6207      GETTEXT_MACRO_VERSION=0.19
6208
6209
6210
6211
6212# Prepare PATH_SEPARATOR.
6213# The user is always right.
6214if test "${PATH_SEPARATOR+set}" != set; then
6215  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6216  # contains only /bin. Note that ksh looks also at the FPATH variable,
6217  # so we have to set that as well for the test.
6218  PATH_SEPARATOR=:
6219  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6220    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6221           || PATH_SEPARATOR=';'
6222       }
6223fi
6224
6225# Find out how to test for executable files. Don't use a zero-byte file,
6226# as systems may use methods other than mode bits to determine executability.
6227cat >conf$$.file <<_ASEOF
6228#! /bin/sh
6229exit 0
6230_ASEOF
6231chmod +x conf$$.file
6232if test -x conf$$.file >/dev/null 2>&1; then
6233  ac_executable_p="test -x"
6234else
6235  ac_executable_p="test -f"
6236fi
6237rm -f conf$$.file
6238
6239# Extract the first word of "msgfmt", so it can be a program name with args.
6240set dummy msgfmt; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if ${ac_cv_path_MSGFMT+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  case "$MSGFMT" in
6247  [\\/]* | ?:[\\/]*)
6248    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6249    ;;
6250  *)
6251    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6252    for ac_dir in $PATH; do
6253      IFS="$ac_save_IFS"
6254      test -z "$ac_dir" && ac_dir=.
6255      for ac_exec_ext in '' $ac_executable_extensions; do
6256        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6257          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6258          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6259     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6260            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6261            break 2
6262          fi
6263        fi
6264      done
6265    done
6266    IFS="$ac_save_IFS"
6267  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6268    ;;
6269esac
6270fi
6271MSGFMT="$ac_cv_path_MSGFMT"
6272if test "$MSGFMT" != ":"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6274$as_echo "$MSGFMT" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280  # Extract the first word of "gmsgfmt", so it can be a program name with args.
6281set dummy gmsgfmt; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if ${ac_cv_path_GMSGFMT+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  case $GMSGFMT in
6288  [\\/]* | ?:[\\/]*)
6289  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6290  ;;
6291  *)
6292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295  IFS=$as_save_IFS
6296  test -z "$as_dir" && as_dir=.
6297    for ac_exec_ext in '' $ac_executable_extensions; do
6298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301    break 2
6302  fi
6303done
6304  done
6305IFS=$as_save_IFS
6306
6307  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6308  ;;
6309esac
6310fi
6311GMSGFMT=$ac_cv_path_GMSGFMT
6312if test -n "$GMSGFMT"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6314$as_echo "$GMSGFMT" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320
6321
6322    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6323    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6324    *) MSGFMT_015=$MSGFMT ;;
6325  esac
6326
6327  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6328    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6329    *) GMSGFMT_015=$GMSGFMT ;;
6330  esac
6331
6332
6333
6334# Prepare PATH_SEPARATOR.
6335# The user is always right.
6336if test "${PATH_SEPARATOR+set}" != set; then
6337  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6338  # contains only /bin. Note that ksh looks also at the FPATH variable,
6339  # so we have to set that as well for the test.
6340  PATH_SEPARATOR=:
6341  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6342    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6343           || PATH_SEPARATOR=';'
6344       }
6345fi
6346
6347# Find out how to test for executable files. Don't use a zero-byte file,
6348# as systems may use methods other than mode bits to determine executability.
6349cat >conf$$.file <<_ASEOF
6350#! /bin/sh
6351exit 0
6352_ASEOF
6353chmod +x conf$$.file
6354if test -x conf$$.file >/dev/null 2>&1; then
6355  ac_executable_p="test -x"
6356else
6357  ac_executable_p="test -f"
6358fi
6359rm -f conf$$.file
6360
6361# Extract the first word of "xgettext", so it can be a program name with args.
6362set dummy xgettext; ac_word=$2
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364$as_echo_n "checking for $ac_word... " >&6; }
6365if ${ac_cv_path_XGETTEXT+:} false; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368  case "$XGETTEXT" in
6369  [\\/]* | ?:[\\/]*)
6370    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6371    ;;
6372  *)
6373    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6374    for ac_dir in $PATH; do
6375      IFS="$ac_save_IFS"
6376      test -z "$ac_dir" && ac_dir=.
6377      for ac_exec_ext in '' $ac_executable_extensions; do
6378        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6379          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6380          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6381     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6382            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6383            break 2
6384          fi
6385        fi
6386      done
6387    done
6388    IFS="$ac_save_IFS"
6389  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6390    ;;
6391esac
6392fi
6393XGETTEXT="$ac_cv_path_XGETTEXT"
6394if test "$XGETTEXT" != ":"; then
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6396$as_echo "$XGETTEXT" >&6; }
6397else
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399$as_echo "no" >&6; }
6400fi
6401
6402    rm -f messages.po
6403
6404    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6405    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6406    *) XGETTEXT_015=$XGETTEXT ;;
6407  esac
6408
6409
6410
6411# Prepare PATH_SEPARATOR.
6412# The user is always right.
6413if test "${PATH_SEPARATOR+set}" != set; then
6414  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6415  # contains only /bin. Note that ksh looks also at the FPATH variable,
6416  # so we have to set that as well for the test.
6417  PATH_SEPARATOR=:
6418  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6419    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6420           || PATH_SEPARATOR=';'
6421       }
6422fi
6423
6424# Find out how to test for executable files. Don't use a zero-byte file,
6425# as systems may use methods other than mode bits to determine executability.
6426cat >conf$$.file <<_ASEOF
6427#! /bin/sh
6428exit 0
6429_ASEOF
6430chmod +x conf$$.file
6431if test -x conf$$.file >/dev/null 2>&1; then
6432  ac_executable_p="test -x"
6433else
6434  ac_executable_p="test -f"
6435fi
6436rm -f conf$$.file
6437
6438# Extract the first word of "msgmerge", so it can be a program name with args.
6439set dummy msgmerge; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
6442if ${ac_cv_path_MSGMERGE+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  case "$MSGMERGE" in
6446  [\\/]* | ?:[\\/]*)
6447    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6448    ;;
6449  *)
6450    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6451    for ac_dir in $PATH; do
6452      IFS="$ac_save_IFS"
6453      test -z "$ac_dir" && ac_dir=.
6454      for ac_exec_ext in '' $ac_executable_extensions; do
6455        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6456          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6457          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6458            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6459            break 2
6460          fi
6461        fi
6462      done
6463    done
6464    IFS="$ac_save_IFS"
6465  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6466    ;;
6467esac
6468fi
6469MSGMERGE="$ac_cv_path_MSGMERGE"
6470if test "$MSGMERGE" != ":"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6472$as_echo "$MSGMERGE" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479        test -n "$localedir" || localedir='${datadir}/locale'
6480
6481
6482    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6483
6484
6485  ac_config_commands="$ac_config_commands po-directories"
6486
6487
6488
6489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6490$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6491if ${ac_cv_gnu_library_2+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496
6497#include <features.h>
6498#ifdef __GNU_LIBRARY__
6499 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6500  Lucky GNU user
6501 #endif
6502#endif
6503
6504_ACEOF
6505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6507  ac_cv_gnu_library_2=yes
6508else
6509  ac_cv_gnu_library_2=no
6510fi
6511rm -f conftest*
6512
6513
6514
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6517$as_echo "$ac_cv_gnu_library_2" >&6; }
6518
6519    GLIBC2="$ac_cv_gnu_library_2"
6520
6521
6522if test -n "$ac_tool_prefix"; then
6523  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6524set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526$as_echo_n "checking for $ac_word... " >&6; }
6527if ${ac_cv_prog_RANLIB+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  if test -n "$RANLIB"; then
6531  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536  IFS=$as_save_IFS
6537  test -z "$as_dir" && as_dir=.
6538    for ac_exec_ext in '' $ac_executable_extensions; do
6539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542    break 2
6543  fi
6544done
6545  done
6546IFS=$as_save_IFS
6547
6548fi
6549fi
6550RANLIB=$ac_cv_prog_RANLIB
6551if test -n "$RANLIB"; then
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6553$as_echo "$RANLIB" >&6; }
6554else
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
6557fi
6558
6559
6560fi
6561if test -z "$ac_cv_prog_RANLIB"; then
6562  ac_ct_RANLIB=$RANLIB
6563  # Extract the first word of "ranlib", so it can be a program name with args.
6564set dummy ranlib; ac_word=$2
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6568  $as_echo_n "(cached) " >&6
6569else
6570  if test -n "$ac_ct_RANLIB"; then
6571  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576  IFS=$as_save_IFS
6577  test -z "$as_dir" && as_dir=.
6578    for ac_exec_ext in '' $ac_executable_extensions; do
6579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580    ac_cv_prog_ac_ct_RANLIB="ranlib"
6581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582    break 2
6583  fi
6584done
6585  done
6586IFS=$as_save_IFS
6587
6588fi
6589fi
6590ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6591if test -n "$ac_ct_RANLIB"; then
6592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6593$as_echo "$ac_ct_RANLIB" >&6; }
6594else
6595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598
6599  if test "x$ac_ct_RANLIB" = x; then
6600    RANLIB=":"
6601  else
6602    case $cross_compiling:$ac_tool_warned in
6603yes:)
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606ac_tool_warned=yes ;;
6607esac
6608    RANLIB=$ac_ct_RANLIB
6609  fi
6610else
6611  RANLIB="$ac_cv_prog_RANLIB"
6612fi
6613
6614
6615
6616  CFLAG_VISIBILITY=
6617  HAVE_VISIBILITY=0
6618  if test -n "$GCC"; then
6619                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6620$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6621    if ${gl_cv_cc_vis_werror+:} false; then :
6622  $as_echo_n "(cached) " >&6
6623else
6624
6625      gl_save_CFLAGS="$CFLAGS"
6626      CFLAGS="$CFLAGS -Werror"
6627      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629
6630int
6631main ()
6632{
6633
6634  ;
6635  return 0;
6636}
6637_ACEOF
6638if ac_fn_c_try_compile "$LINENO"; then :
6639  gl_cv_cc_vis_werror=yes
6640else
6641  gl_cv_cc_vis_werror=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644      CFLAGS="$gl_save_CFLAGS"
6645fi
6646
6647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6648$as_echo "$gl_cv_cc_vis_werror" >&6; }
6649        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6650$as_echo_n "checking for simple visibility declarations... " >&6; }
6651    if ${gl_cv_cc_visibility+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654
6655      gl_save_CFLAGS="$CFLAGS"
6656      CFLAGS="$CFLAGS -fvisibility=hidden"
6657                                    if test $gl_cv_cc_vis_werror = yes; then
6658        CFLAGS="$CFLAGS -Werror"
6659      fi
6660      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6663             extern __attribute__((__visibility__("default"))) int exportedvar;
6664             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6665             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6666             void dummyfunc (void) {}
6667
6668int
6669main ()
6670{
6671
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676if ac_fn_c_try_compile "$LINENO"; then :
6677  gl_cv_cc_visibility=yes
6678else
6679  gl_cv_cc_visibility=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682      CFLAGS="$gl_save_CFLAGS"
6683fi
6684
6685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6686$as_echo "$gl_cv_cc_visibility" >&6; }
6687    if test $gl_cv_cc_visibility = yes; then
6688      CFLAG_VISIBILITY="-fvisibility=hidden"
6689      HAVE_VISIBILITY=1
6690    fi
6691  fi
6692
6693
6694
6695cat >>confdefs.h <<_ACEOF
6696#define HAVE_VISIBILITY $HAVE_VISIBILITY
6697_ACEOF
6698
6699
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6701$as_echo_n "checking for inline... " >&6; }
6702if ${ac_cv_c_inline+:} false; then :
6703  $as_echo_n "(cached) " >&6
6704else
6705  ac_cv_c_inline=no
6706for ac_kw in inline __inline__ __inline; do
6707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708/* end confdefs.h.  */
6709#ifndef __cplusplus
6710typedef int foo_t;
6711static $ac_kw foo_t static_foo () {return 0; }
6712$ac_kw foo_t foo () {return 0; }
6713#endif
6714
6715_ACEOF
6716if ac_fn_c_try_compile "$LINENO"; then :
6717  ac_cv_c_inline=$ac_kw
6718fi
6719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720  test "$ac_cv_c_inline" != no && break
6721done
6722
6723fi
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6725$as_echo "$ac_cv_c_inline" >&6; }
6726
6727case $ac_cv_c_inline in
6728  inline | yes) ;;
6729  *)
6730    case $ac_cv_c_inline in
6731      no) ac_val=;;
6732      *) ac_val=$ac_cv_c_inline;;
6733    esac
6734    cat >>confdefs.h <<_ACEOF
6735#ifndef __cplusplus
6736#define inline $ac_val
6737#endif
6738_ACEOF
6739    ;;
6740esac
6741
6742ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6743if test "x$ac_cv_type_size_t" = xyes; then :
6744
6745else
6746
6747cat >>confdefs.h <<_ACEOF
6748#define size_t unsigned int
6749_ACEOF
6750
6751fi
6752
6753
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6755$as_echo_n "checking for stdint.h... " >&6; }
6756if ${gl_cv_header_stdint_h+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761#include <sys/types.h>
6762            #include <stdint.h>
6763int
6764main ()
6765{
6766uintmax_t i = (uintmax_t) -1; return !i;
6767  ;
6768  return 0;
6769}
6770_ACEOF
6771if ac_fn_c_try_compile "$LINENO"; then :
6772  gl_cv_header_stdint_h=yes
6773else
6774  gl_cv_header_stdint_h=no
6775fi
6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777fi
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6779$as_echo "$gl_cv_header_stdint_h" >&6; }
6780  if test $gl_cv_header_stdint_h = yes; then
6781
6782cat >>confdefs.h <<_ACEOF
6783#define HAVE_STDINT_H_WITH_UINTMAX 1
6784_ACEOF
6785
6786  fi
6787
6788# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6789# for constant arguments.  Useless!
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6791$as_echo_n "checking for working alloca.h... " >&6; }
6792if ${ac_cv_working_alloca_h+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h.  */
6797#include <alloca.h>
6798int
6799main ()
6800{
6801char *p = (char *) alloca (2 * sizeof (int));
6802			  if (p) return 0;
6803  ;
6804  return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_link "$LINENO"; then :
6808  ac_cv_working_alloca_h=yes
6809else
6810  ac_cv_working_alloca_h=no
6811fi
6812rm -f core conftest.err conftest.$ac_objext \
6813    conftest$ac_exeext conftest.$ac_ext
6814fi
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6816$as_echo "$ac_cv_working_alloca_h" >&6; }
6817if test $ac_cv_working_alloca_h = yes; then
6818
6819$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6820
6821fi
6822
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6824$as_echo_n "checking for alloca... " >&6; }
6825if ${ac_cv_func_alloca_works+:} false; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830#ifdef __GNUC__
6831# define alloca __builtin_alloca
6832#else
6833# ifdef _MSC_VER
6834#  include <malloc.h>
6835#  define alloca _alloca
6836# else
6837#  ifdef HAVE_ALLOCA_H
6838#   include <alloca.h>
6839#  else
6840#   ifdef _AIX
6841 #pragma alloca
6842#   else
6843#    ifndef alloca /* predefined by HP cc +Olibcalls */
6844void *alloca (size_t);
6845#    endif
6846#   endif
6847#  endif
6848# endif
6849#endif
6850
6851int
6852main ()
6853{
6854char *p = (char *) alloca (1);
6855				    if (p) return 0;
6856  ;
6857  return 0;
6858}
6859_ACEOF
6860if ac_fn_c_try_link "$LINENO"; then :
6861  ac_cv_func_alloca_works=yes
6862else
6863  ac_cv_func_alloca_works=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext \
6866    conftest$ac_exeext conftest.$ac_ext
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6869$as_echo "$ac_cv_func_alloca_works" >&6; }
6870
6871if test $ac_cv_func_alloca_works = yes; then
6872
6873$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6874
6875else
6876  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6877# that cause trouble.  Some versions do not even contain alloca or
6878# contain a buggy version.  If you still want to use their alloca,
6879# use ar to extract alloca.o from them instead of compiling alloca.c.
6880
6881ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6882
6883$as_echo "#define C_ALLOCA 1" >>confdefs.h
6884
6885
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6887$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6888if ${ac_cv_os_cray+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893#if defined CRAY && ! defined CRAY2
6894webecray
6895#else
6896wenotbecray
6897#endif
6898
6899_ACEOF
6900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6901  $EGREP "webecray" >/dev/null 2>&1; then :
6902  ac_cv_os_cray=yes
6903else
6904  ac_cv_os_cray=no
6905fi
6906rm -f conftest*
6907
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6910$as_echo "$ac_cv_os_cray" >&6; }
6911if test $ac_cv_os_cray = yes; then
6912  for ac_func in _getb67 GETB67 getb67; do
6913    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6914ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6915if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6916
6917cat >>confdefs.h <<_ACEOF
6918#define CRAY_STACKSEG_END $ac_func
6919_ACEOF
6920
6921    break
6922fi
6923
6924  done
6925fi
6926
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6928$as_echo_n "checking stack direction for C alloca... " >&6; }
6929if ${ac_cv_c_stack_direction+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  if test "$cross_compiling" = yes; then :
6933  ac_cv_c_stack_direction=0
6934else
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937$ac_includes_default
6938int
6939find_stack_direction (int *addr, int depth)
6940{
6941  int dir, dummy = 0;
6942  if (! addr)
6943    addr = &dummy;
6944  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6945  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6946  return dir + dummy;
6947}
6948
6949int
6950main (int argc, char **argv)
6951{
6952  return find_stack_direction (0, argc + !argv + 20) < 0;
6953}
6954_ACEOF
6955if ac_fn_c_try_run "$LINENO"; then :
6956  ac_cv_c_stack_direction=1
6957else
6958  ac_cv_c_stack_direction=-1
6959fi
6960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6961  conftest.$ac_objext conftest.beam conftest.$ac_ext
6962fi
6963
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6966$as_echo "$ac_cv_c_stack_direction" >&6; }
6967cat >>confdefs.h <<_ACEOF
6968#define STACK_DIRECTION $ac_cv_c_stack_direction
6969_ACEOF
6970
6971
6972fi
6973
6974
6975
6976
6977  for ac_header in $ac_header_list
6978do :
6979  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6980ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6981"
6982if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6983  cat >>confdefs.h <<_ACEOF
6984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6985_ACEOF
6986
6987fi
6988
6989done
6990
6991
6992
6993
6994
6995
6996
6997
6998for ac_func in getpagesize
6999do :
7000  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7001if test "x$ac_cv_func_getpagesize" = xyes; then :
7002  cat >>confdefs.h <<_ACEOF
7003#define HAVE_GETPAGESIZE 1
7004_ACEOF
7005
7006fi
7007done
7008
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7010$as_echo_n "checking for working mmap... " >&6; }
7011if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  if test "$cross_compiling" = yes; then :
7015  ac_cv_func_mmap_fixed_mapped=no
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019$ac_includes_default
7020/* malloc might have been renamed as rpl_malloc. */
7021#undef malloc
7022
7023/* Thanks to Mike Haertel and Jim Avera for this test.
7024   Here is a matrix of mmap possibilities:
7025	mmap private not fixed
7026	mmap private fixed at somewhere currently unmapped
7027	mmap private fixed at somewhere already mapped
7028	mmap shared not fixed
7029	mmap shared fixed at somewhere currently unmapped
7030	mmap shared fixed at somewhere already mapped
7031   For private mappings, we should verify that changes cannot be read()
7032   back from the file, nor mmap's back from the file at a different
7033   address.  (There have been systems where private was not correctly
7034   implemented like the infamous i386 svr4.0, and systems where the
7035   VM page cache was not coherent with the file system buffer cache
7036   like early versions of FreeBSD and possibly contemporary NetBSD.)
7037   For shared mappings, we should conversely verify that changes get
7038   propagated back to all the places they're supposed to be.
7039
7040   Grep wants private fixed already mapped.
7041   The main things grep needs to know about mmap are:
7042   * does it exist and is it safe to write into the mmap'd area
7043   * how to use it (BSD variants)  */
7044
7045#include <fcntl.h>
7046#include <sys/mman.h>
7047
7048#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7049char *malloc ();
7050#endif
7051
7052/* This mess was copied from the GNU getpagesize.h.  */
7053#ifndef HAVE_GETPAGESIZE
7054# ifdef _SC_PAGESIZE
7055#  define getpagesize() sysconf(_SC_PAGESIZE)
7056# else /* no _SC_PAGESIZE */
7057#  ifdef HAVE_SYS_PARAM_H
7058#   include <sys/param.h>
7059#   ifdef EXEC_PAGESIZE
7060#    define getpagesize() EXEC_PAGESIZE
7061#   else /* no EXEC_PAGESIZE */
7062#    ifdef NBPG
7063#     define getpagesize() NBPG * CLSIZE
7064#     ifndef CLSIZE
7065#      define CLSIZE 1
7066#     endif /* no CLSIZE */
7067#    else /* no NBPG */
7068#     ifdef NBPC
7069#      define getpagesize() NBPC
7070#     else /* no NBPC */
7071#      ifdef PAGESIZE
7072#       define getpagesize() PAGESIZE
7073#      endif /* PAGESIZE */
7074#     endif /* no NBPC */
7075#    endif /* no NBPG */
7076#   endif /* no EXEC_PAGESIZE */
7077#  else /* no HAVE_SYS_PARAM_H */
7078#   define getpagesize() 8192	/* punt totally */
7079#  endif /* no HAVE_SYS_PARAM_H */
7080# endif /* no _SC_PAGESIZE */
7081
7082#endif /* no HAVE_GETPAGESIZE */
7083
7084int
7085main ()
7086{
7087  char *data, *data2, *data3;
7088  const char *cdata2;
7089  int i, pagesize;
7090  int fd, fd2;
7091
7092  pagesize = getpagesize ();
7093
7094  /* First, make a file with some known garbage in it. */
7095  data = (char *) malloc (pagesize);
7096  if (!data)
7097    return 1;
7098  for (i = 0; i < pagesize; ++i)
7099    *(data + i) = rand ();
7100  umask (0);
7101  fd = creat ("conftest.mmap", 0600);
7102  if (fd < 0)
7103    return 2;
7104  if (write (fd, data, pagesize) != pagesize)
7105    return 3;
7106  close (fd);
7107
7108  /* Next, check that the tail of a page is zero-filled.  File must have
7109     non-zero length, otherwise we risk SIGBUS for entire page.  */
7110  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7111  if (fd2 < 0)
7112    return 4;
7113  cdata2 = "";
7114  if (write (fd2, cdata2, 1) != 1)
7115    return 5;
7116  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7117  if (data2 == MAP_FAILED)
7118    return 6;
7119  for (i = 0; i < pagesize; ++i)
7120    if (*(data2 + i))
7121      return 7;
7122  close (fd2);
7123  if (munmap (data2, pagesize))
7124    return 8;
7125
7126  /* Next, try to mmap the file at a fixed address which already has
7127     something else allocated at it.  If we can, also make sure that
7128     we see the same garbage.  */
7129  fd = open ("conftest.mmap", O_RDWR);
7130  if (fd < 0)
7131    return 9;
7132  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7133		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
7134    return 10;
7135  for (i = 0; i < pagesize; ++i)
7136    if (*(data + i) != *(data2 + i))
7137      return 11;
7138
7139  /* Finally, make sure that changes to the mapped area do not
7140     percolate back to the file as seen by read().  (This is a bug on
7141     some variants of i386 svr4.0.)  */
7142  for (i = 0; i < pagesize; ++i)
7143    *(data2 + i) = *(data2 + i) + 1;
7144  data3 = (char *) malloc (pagesize);
7145  if (!data3)
7146    return 12;
7147  if (read (fd, data3, pagesize) != pagesize)
7148    return 13;
7149  for (i = 0; i < pagesize; ++i)
7150    if (*(data + i) != *(data3 + i))
7151      return 14;
7152  close (fd);
7153  return 0;
7154}
7155_ACEOF
7156if ac_fn_c_try_run "$LINENO"; then :
7157  ac_cv_func_mmap_fixed_mapped=yes
7158else
7159  ac_cv_func_mmap_fixed_mapped=no
7160fi
7161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7162  conftest.$ac_objext conftest.beam conftest.$ac_ext
7163fi
7164
7165fi
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7167$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7168if test $ac_cv_func_mmap_fixed_mapped = yes; then
7169
7170$as_echo "#define HAVE_MMAP 1" >>confdefs.h
7171
7172fi
7173rm -f conftest.mmap conftest.txt
7174
7175
7176
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7178$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7179if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182
7183      gt_cv_int_divbyzero_sigfpe=
7184      case "$host_os" in
7185        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7186          # On Mac OS X 10.2 or newer, just assume the same as when cross-
7187          # compiling. If we were to perform the real test, 1 Crash Report
7188          # dialog window would pop up.
7189          case "$host_cpu" in
7190            i[34567]86 | x86_64)
7191              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7192          esac
7193          ;;
7194      esac
7195      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7196        if test "$cross_compiling" = yes; then :
7197
7198            # Guess based on the CPU.
7199            case "$host_cpu" in
7200              alpha* | i[34567]86 | x86_64 | m68k | s390*)
7201                gt_cv_int_divbyzero_sigfpe="guessing yes";;
7202              *)
7203                gt_cv_int_divbyzero_sigfpe="guessing no";;
7204            esac
7205
7206else
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209
7210#include <stdlib.h>
7211#include <signal.h>
7212
7213static void
7214sigfpe_handler (int sig)
7215{
7216  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7217  exit (sig != SIGFPE);
7218}
7219
7220int x = 1;
7221int y = 0;
7222int z;
7223int nan;
7224
7225int main ()
7226{
7227  signal (SIGFPE, sigfpe_handler);
7228/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7229#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7230  signal (SIGTRAP, sigfpe_handler);
7231#endif
7232/* Linux/SPARC yields signal SIGILL.  */
7233#if defined (__sparc__) && defined (__linux__)
7234  signal (SIGILL, sigfpe_handler);
7235#endif
7236
7237  z = x / y;
7238  nan = y / y;
7239  exit (2);
7240}
7241
7242_ACEOF
7243if ac_fn_c_try_run "$LINENO"; then :
7244  gt_cv_int_divbyzero_sigfpe=yes
7245else
7246  gt_cv_int_divbyzero_sigfpe=no
7247fi
7248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249  conftest.$ac_objext conftest.beam conftest.$ac_ext
7250fi
7251
7252      fi
7253
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7256$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7257  case "$gt_cv_int_divbyzero_sigfpe" in
7258    *yes) value=1;;
7259    *) value=0;;
7260  esac
7261
7262cat >>confdefs.h <<_ACEOF
7263#define INTDIV0_RAISES_SIGFPE $value
7264_ACEOF
7265
7266
7267
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7269$as_echo_n "checking for inttypes.h... " >&6; }
7270if ${gl_cv_header_inttypes_h+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275
7276#include <sys/types.h>
7277#include <inttypes.h>
7278
7279int
7280main ()
7281{
7282uintmax_t i = (uintmax_t) -1; return !i;
7283  ;
7284  return 0;
7285}
7286_ACEOF
7287if ac_fn_c_try_compile "$LINENO"; then :
7288  gl_cv_header_inttypes_h=yes
7289else
7290  gl_cv_header_inttypes_h=no
7291fi
7292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293fi
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7295$as_echo "$gl_cv_header_inttypes_h" >&6; }
7296  if test $gl_cv_header_inttypes_h = yes; then
7297
7298cat >>confdefs.h <<_ACEOF
7299#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7300_ACEOF
7301
7302  fi
7303
7304
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7306$as_echo_n "checking for unsigned long long int... " >&6; }
7307if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7308  $as_echo_n "(cached) " >&6
7309else
7310  ac_cv_type_unsigned_long_long_int=yes
7311     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7312       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314
7315  /* For now, do not test the preprocessor; as of 2007 there are too many
7316         implementations with broken preprocessors.  Perhaps this can
7317         be revisited in 2012.  In the meantime, code should not expect
7318         #if to work with literals wider than 32 bits.  */
7319      /* Test literals.  */
7320      long long int ll = 9223372036854775807ll;
7321      long long int nll = -9223372036854775807LL;
7322      unsigned long long int ull = 18446744073709551615ULL;
7323      /* Test constant expressions.   */
7324      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7325                     ? 1 : -1)];
7326      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7327                     ? 1 : -1)];
7328      int i = 63;
7329int
7330main ()
7331{
7332/* Test availability of runtime routines for shift and division.  */
7333      long long int llmax = 9223372036854775807ll;
7334      unsigned long long int ullmax = 18446744073709551615ull;
7335      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7336              | (llmax / ll) | (llmax % ll)
7337              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7338              | (ullmax / ull) | (ullmax % ull));
7339  ;
7340  return 0;
7341}
7342
7343_ACEOF
7344if ac_fn_c_try_link "$LINENO"; then :
7345
7346else
7347  ac_cv_type_unsigned_long_long_int=no
7348fi
7349rm -f core conftest.err conftest.$ac_objext \
7350    conftest$ac_exeext conftest.$ac_ext
7351     fi
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7354$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7355  if test $ac_cv_type_unsigned_long_long_int = yes; then
7356
7357$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7358
7359  fi
7360
7361
7362
7363
7364  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7365
7366    test $ac_cv_type_unsigned_long_long_int = yes \
7367      && ac_type='unsigned long long' \
7368      || ac_type='unsigned long'
7369
7370cat >>confdefs.h <<_ACEOF
7371#define uintmax_t $ac_type
7372_ACEOF
7373
7374  else
7375
7376$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7377
7378  fi
7379
7380
7381  for ac_header in inttypes.h
7382do :
7383  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7384if test "x$ac_cv_header_inttypes_h" = xyes; then :
7385  cat >>confdefs.h <<_ACEOF
7386#define HAVE_INTTYPES_H 1
7387_ACEOF
7388
7389fi
7390
7391done
7392
7393  if test $ac_cv_header_inttypes_h = yes; then
7394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7395$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7396if ${gt_cv_inttypes_pri_broken+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399
7400        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402
7403#include <inttypes.h>
7404#ifdef PRId32
7405char *p = PRId32;
7406#endif
7407
7408int
7409main ()
7410{
7411
7412  ;
7413  return 0;
7414}
7415_ACEOF
7416if ac_fn_c_try_compile "$LINENO"; then :
7417  gt_cv_inttypes_pri_broken=no
7418else
7419  gt_cv_inttypes_pri_broken=yes
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7425$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7426  fi
7427  if test "$gt_cv_inttypes_pri_broken" = yes; then
7428
7429cat >>confdefs.h <<_ACEOF
7430#define PRI_MACROS_BROKEN 1
7431_ACEOF
7432
7433    PRI_MACROS_BROKEN=1
7434  else
7435    PRI_MACROS_BROKEN=0
7436  fi
7437
7438
7439
7440
7441
7442
7443
7444  # Check whether --enable-threads was given.
7445if test "${enable_threads+set}" = set; then :
7446  enableval=$enable_threads; gl_use_threads=$enableval
7447else
7448  if test -n "$gl_use_threads_default"; then
7449       gl_use_threads="$gl_use_threads_default"
7450     else
7451       case "$host_os" in
7452                                                               osf*) gl_use_threads=no ;;
7453         cygwin*)
7454               case `uname -r` in
7455                 1.[0-5].*) gl_use_threads=no ;;
7456                 *)         gl_use_threads=yes ;;
7457               esac
7458               ;;
7459         *)    gl_use_threads=yes ;;
7460       esac
7461     fi
7462
7463fi
7464
7465  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7466    # For using <pthread.h>:
7467    case "$host_os" in
7468      osf*)
7469        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7470        # groks <pthread.h>. cc also understands the flag -pthread, but
7471        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7472        # 2. putting a flag into CPPFLAGS that has an effect on the linker
7473        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7474        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7475        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7476        ;;
7477    esac
7478    # Some systems optimize for single-threaded programs by default, and
7479    # need special flags to disable these optimizations. For example, the
7480    # definition of 'errno' in <errno.h>.
7481    case "$host_os" in
7482      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7483      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7484    esac
7485  fi
7486
7487
7488
7489
7490
7491      if test "X$prefix" = "XNONE"; then
7492    acl_final_prefix="$ac_default_prefix"
7493  else
7494    acl_final_prefix="$prefix"
7495  fi
7496  if test "X$exec_prefix" = "XNONE"; then
7497    acl_final_exec_prefix='${prefix}'
7498  else
7499    acl_final_exec_prefix="$exec_prefix"
7500  fi
7501  acl_save_prefix="$prefix"
7502  prefix="$acl_final_prefix"
7503  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7504  prefix="$acl_save_prefix"
7505
7506
7507
7508# Check whether --with-gnu-ld was given.
7509if test "${with_gnu_ld+set}" = set; then :
7510  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7511else
7512  with_gnu_ld=no
7513fi
7514
7515# Prepare PATH_SEPARATOR.
7516# The user is always right.
7517if test "${PATH_SEPARATOR+set}" != set; then
7518  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7519  # contains only /bin. Note that ksh looks also at the FPATH variable,
7520  # so we have to set that as well for the test.
7521  PATH_SEPARATOR=:
7522  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7523    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7524           || PATH_SEPARATOR=';'
7525       }
7526fi
7527
7528ac_prog=ld
7529if test "$GCC" = yes; then
7530  # Check if gcc -print-prog-name=ld gives a path.
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7532$as_echo_n "checking for ld used by $CC... " >&6; }
7533  case $host in
7534  *-*-mingw*)
7535    # gcc leaves a trailing carriage return which upsets mingw
7536    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7537  *)
7538    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7539  esac
7540  case $ac_prog in
7541    # Accept absolute paths.
7542    [\\/]* | ?:[\\/]*)
7543      re_direlt='/[^/][^/]*/\.\./'
7544      # Canonicalize the pathname of ld
7545      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7546      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7547        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7548      done
7549      test -z "$LD" && LD="$ac_prog"
7550      ;;
7551  "")
7552    # If it fails, then pretend we aren't using GCC.
7553    ac_prog=ld
7554    ;;
7555  *)
7556    # If it is relative, then search for the first ld in PATH.
7557    with_gnu_ld=unknown
7558    ;;
7559  esac
7560elif test "$with_gnu_ld" = yes; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7562$as_echo_n "checking for GNU ld... " >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7565$as_echo_n "checking for non-GNU ld... " >&6; }
7566fi
7567if ${acl_cv_path_LD+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  if test -z "$LD"; then
7571  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7572  for ac_dir in $PATH; do
7573    IFS="$acl_save_ifs"
7574    test -z "$ac_dir" && ac_dir=.
7575    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7576      acl_cv_path_LD="$ac_dir/$ac_prog"
7577      # Check to see if the program is GNU ld.  I'd rather use --version,
7578      # but apparently some variants of GNU ld only accept -v.
7579      # Break only if it was the GNU/non-GNU ld that we prefer.
7580      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7581      *GNU* | *'with BFD'*)
7582        test "$with_gnu_ld" != no && break
7583        ;;
7584      *)
7585        test "$with_gnu_ld" != yes && break
7586        ;;
7587      esac
7588    fi
7589  done
7590  IFS="$acl_save_ifs"
7591else
7592  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7593fi
7594fi
7595
7596LD="$acl_cv_path_LD"
7597if test -n "$LD"; then
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7599$as_echo "$LD" >&6; }
7600else
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7606$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7607if ${acl_cv_prog_gnu_ld+:} false; then :
7608  $as_echo_n "(cached) " >&6
7609else
7610  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7611case `$LD -v 2>&1 </dev/null` in
7612*GNU* | *'with BFD'*)
7613  acl_cv_prog_gnu_ld=yes
7614  ;;
7615*)
7616  acl_cv_prog_gnu_ld=no
7617  ;;
7618esac
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7621$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7622with_gnu_ld=$acl_cv_prog_gnu_ld
7623
7624
7625
7626
7627                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7628$as_echo_n "checking for shared library run path origin... " >&6; }
7629if ${acl_cv_rpath+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632
7633    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7634    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7635    . ./conftest.sh
7636    rm -f ./conftest.sh
7637    acl_cv_rpath=done
7638
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7641$as_echo "$acl_cv_rpath" >&6; }
7642  wl="$acl_cv_wl"
7643  acl_libext="$acl_cv_libext"
7644  acl_shlibext="$acl_cv_shlibext"
7645  acl_libname_spec="$acl_cv_libname_spec"
7646  acl_library_names_spec="$acl_cv_library_names_spec"
7647  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7648  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7649  acl_hardcode_direct="$acl_cv_hardcode_direct"
7650  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7651    # Check whether --enable-rpath was given.
7652if test "${enable_rpath+set}" = set; then :
7653  enableval=$enable_rpath; :
7654else
7655  enable_rpath=yes
7656fi
7657
7658
7659
7660
7661  acl_libdirstem=lib
7662  acl_libdirstem2=
7663  case "$host_os" in
7664    solaris*)
7665                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7666$as_echo_n "checking for 64-bit host... " >&6; }
7667if ${gl_cv_solaris_64bit+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672
7673#ifdef _LP64
7674sixtyfour bits
7675#endif
7676
7677_ACEOF
7678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7679  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7680  gl_cv_solaris_64bit=yes
7681else
7682  gl_cv_solaris_64bit=no
7683fi
7684rm -f conftest*
7685
7686
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7689$as_echo "$gl_cv_solaris_64bit" >&6; }
7690      if test $gl_cv_solaris_64bit = yes; then
7691        acl_libdirstem=lib/64
7692        case "$host_cpu" in
7693          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7694          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7695        esac
7696      fi
7697      ;;
7698    *)
7699      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7700      if test -n "$searchpath"; then
7701        acl_save_IFS="${IFS= 	}"; IFS=":"
7702        for searchdir in $searchpath; do
7703          if test -d "$searchdir"; then
7704            case "$searchdir" in
7705              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7706              */../ | */.. )
7707                # Better ignore directories of this form. They are misleading.
7708                ;;
7709              *) searchdir=`cd "$searchdir" && pwd`
7710                 case "$searchdir" in
7711                   */lib64 ) acl_libdirstem=lib64 ;;
7712                 esac ;;
7713            esac
7714          fi
7715        done
7716        IFS="$acl_save_IFS"
7717      fi
7718      ;;
7719  esac
7720  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7721
7722
7723
7724  gl_threads_api=none
7725  LIBTHREAD=
7726  LTLIBTHREAD=
7727  LIBMULTITHREAD=
7728  LTLIBMULTITHREAD=
7729  if test "$gl_use_threads" != no; then
7730        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7731$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7732if ${gl_cv_have_weak+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  gl_cv_have_weak=no
7736              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738extern void xyzzy ();
7739#pragma weak xyzzy
7740int
7741main ()
7742{
7743xyzzy();
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748if ac_fn_c_try_link "$LINENO"; then :
7749  gl_cv_have_weak=maybe
7750fi
7751rm -f core conftest.err conftest.$ac_objext \
7752    conftest$ac_exeext conftest.$ac_ext
7753       if test $gl_cv_have_weak = maybe; then
7754                           if test "$cross_compiling" = yes; then :
7755                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757#ifdef __ELF__
7758               Extensible Linking Format
7759               #endif
7760
7761_ACEOF
7762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7763  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7764  gl_cv_have_weak="guessing yes"
7765else
7766  gl_cv_have_weak="guessing no"
7767fi
7768rm -f conftest*
7769
7770
7771else
7772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774
7775#include <stdio.h>
7776#pragma weak fputs
7777int main ()
7778{
7779  return (fputs == NULL);
7780}
7781_ACEOF
7782if ac_fn_c_try_run "$LINENO"; then :
7783  gl_cv_have_weak=yes
7784else
7785  gl_cv_have_weak=no
7786fi
7787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7788  conftest.$ac_objext conftest.beam conftest.$ac_ext
7789fi
7790
7791       fi
7792
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7795$as_echo "$gl_cv_have_weak" >&6; }
7796    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7797      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7798      # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7799      ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7800if test "x$ac_cv_header_pthread_h" = xyes; then :
7801  gl_have_pthread_h=yes
7802else
7803  gl_have_pthread_h=no
7804fi
7805
7806
7807      if test "$gl_have_pthread_h" = yes; then
7808        # Other possible tests:
7809        #   -lpthreads (FSU threads, PCthreads)
7810        #   -lgthreads
7811        gl_have_pthread=
7812        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7813        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7814        # the second one only in libpthread, and lock.c needs it.
7815        #
7816        # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
7817        # needs -pthread for some reason.  See:
7818        # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
7819        save_LIBS=$LIBS
7820        for gl_pthread in '' '-pthread'; do
7821          LIBS="$LIBS $gl_pthread"
7822          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824#include <pthread.h>
7825                 pthread_mutex_t m;
7826                 pthread_mutexattr_t ma;
7827
7828int
7829main ()
7830{
7831pthread_mutex_lock (&m);
7832                 pthread_mutexattr_init (&ma);
7833  ;
7834  return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_link "$LINENO"; then :
7838  gl_have_pthread=yes
7839             LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
7840             LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
7841fi
7842rm -f core conftest.err conftest.$ac_objext \
7843    conftest$ac_exeext conftest.$ac_ext
7844          LIBS=$save_LIBS
7845          test -n "$gl_have_pthread" && break
7846        done
7847
7848        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7849        # since it is defined as a macro on OSF/1.)
7850        if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
7851          # The program links fine without libpthread. But it may actually
7852          # need to link with libpthread in order to create multiple threads.
7853          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7854$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7855if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  ac_check_lib_save_LIBS=$LIBS
7859LIBS="-lpthread  $LIBS"
7860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862
7863/* Override any GCC internal prototype to avoid an error.
7864   Use char because int might match the return type of a GCC
7865   builtin and then its argument prototype would still apply.  */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869char pthread_kill ();
7870int
7871main ()
7872{
7873return pthread_kill ();
7874  ;
7875  return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_link "$LINENO"; then :
7879  ac_cv_lib_pthread_pthread_kill=yes
7880else
7881  ac_cv_lib_pthread_pthread_kill=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext \
7884    conftest$ac_exeext conftest.$ac_ext
7885LIBS=$ac_check_lib_save_LIBS
7886fi
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7888$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7889if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7890  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7891             # On Solaris and HP-UX, most pthread functions exist also in libc.
7892             # Therefore pthread_in_use() needs to actually try to create a
7893             # thread: pthread_create from libc will fail, whereas
7894             # pthread_create will actually create a thread.
7895             case "$host_os" in
7896               solaris* | hpux*)
7897
7898$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7899
7900             esac
7901
7902fi
7903
7904        elif test -z "$gl_have_pthread"; then
7905          # Some library is needed. Try libpthread and libc_r.
7906          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7907$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7908if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  ac_check_lib_save_LIBS=$LIBS
7912LIBS="-lpthread  $LIBS"
7913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915
7916/* Override any GCC internal prototype to avoid an error.
7917   Use char because int might match the return type of a GCC
7918   builtin and then its argument prototype would still apply.  */
7919#ifdef __cplusplus
7920extern "C"
7921#endif
7922char pthread_kill ();
7923int
7924main ()
7925{
7926return pthread_kill ();
7927  ;
7928  return 0;
7929}
7930_ACEOF
7931if ac_fn_c_try_link "$LINENO"; then :
7932  ac_cv_lib_pthread_pthread_kill=yes
7933else
7934  ac_cv_lib_pthread_pthread_kill=no
7935fi
7936rm -f core conftest.err conftest.$ac_objext \
7937    conftest$ac_exeext conftest.$ac_ext
7938LIBS=$ac_check_lib_save_LIBS
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7941$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7942if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7943  gl_have_pthread=yes
7944             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7945             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7946fi
7947
7948          if test -z "$gl_have_pthread"; then
7949            # For FreeBSD 4.
7950            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7951$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7952if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  ac_check_lib_save_LIBS=$LIBS
7956LIBS="-lc_r  $LIBS"
7957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959
7960/* Override any GCC internal prototype to avoid an error.
7961   Use char because int might match the return type of a GCC
7962   builtin and then its argument prototype would still apply.  */
7963#ifdef __cplusplus
7964extern "C"
7965#endif
7966char pthread_kill ();
7967int
7968main ()
7969{
7970return pthread_kill ();
7971  ;
7972  return 0;
7973}
7974_ACEOF
7975if ac_fn_c_try_link "$LINENO"; then :
7976  ac_cv_lib_c_r_pthread_kill=yes
7977else
7978  ac_cv_lib_c_r_pthread_kill=no
7979fi
7980rm -f core conftest.err conftest.$ac_objext \
7981    conftest$ac_exeext conftest.$ac_ext
7982LIBS=$ac_check_lib_save_LIBS
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7985$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7986if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7987  gl_have_pthread=yes
7988               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7989               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7990fi
7991
7992          fi
7993        fi
7994        if test -n "$gl_have_pthread"; then
7995          gl_threads_api=posix
7996
7997$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
7998
7999          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8000            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8001
8002$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8003
8004              LIBTHREAD=
8005              LTLIBTHREAD=
8006            fi
8007          fi
8008        fi
8009      fi
8010    fi
8011    if test -z "$gl_have_pthread"; then
8012      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8013        gl_have_solaristhread=
8014        gl_save_LIBS="$LIBS"
8015        LIBS="$LIBS -lthread"
8016        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h.  */
8018
8019#include <thread.h>
8020#include <synch.h>
8021
8022int
8023main ()
8024{
8025thr_self();
8026  ;
8027  return 0;
8028}
8029_ACEOF
8030if ac_fn_c_try_link "$LINENO"; then :
8031  gl_have_solaristhread=yes
8032fi
8033rm -f core conftest.err conftest.$ac_objext \
8034    conftest$ac_exeext conftest.$ac_ext
8035        LIBS="$gl_save_LIBS"
8036        if test -n "$gl_have_solaristhread"; then
8037          gl_threads_api=solaris
8038          LIBTHREAD=-lthread
8039          LTLIBTHREAD=-lthread
8040          LIBMULTITHREAD="$LIBTHREAD"
8041          LTLIBMULTITHREAD="$LTLIBTHREAD"
8042
8043$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8044
8045          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8046
8047$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8048
8049            LIBTHREAD=
8050            LTLIBTHREAD=
8051          fi
8052        fi
8053      fi
8054    fi
8055    if test "$gl_use_threads" = pth; then
8056      gl_save_CPPFLAGS="$CPPFLAGS"
8057
8058
8059
8060
8061
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8063$as_echo_n "checking how to link with libpth... " >&6; }
8064if ${ac_cv_libpth_libs+:} false; then :
8065  $as_echo_n "(cached) " >&6
8066else
8067
8068
8069
8070
8071
8072
8073
8074
8075    use_additional=yes
8076
8077  acl_save_prefix="$prefix"
8078  prefix="$acl_final_prefix"
8079  acl_save_exec_prefix="$exec_prefix"
8080  exec_prefix="$acl_final_exec_prefix"
8081
8082    eval additional_includedir=\"$includedir\"
8083    eval additional_libdir=\"$libdir\"
8084
8085  exec_prefix="$acl_save_exec_prefix"
8086  prefix="$acl_save_prefix"
8087
8088
8089# Check whether --with-libpth-prefix was given.
8090if test "${with_libpth_prefix+set}" = set; then :
8091  withval=$with_libpth_prefix;
8092    if test "X$withval" = "Xno"; then
8093      use_additional=no
8094    else
8095      if test "X$withval" = "X"; then
8096
8097  acl_save_prefix="$prefix"
8098  prefix="$acl_final_prefix"
8099  acl_save_exec_prefix="$exec_prefix"
8100  exec_prefix="$acl_final_exec_prefix"
8101
8102          eval additional_includedir=\"$includedir\"
8103          eval additional_libdir=\"$libdir\"
8104
8105  exec_prefix="$acl_save_exec_prefix"
8106  prefix="$acl_save_prefix"
8107
8108      else
8109        additional_includedir="$withval/include"
8110        additional_libdir="$withval/$acl_libdirstem"
8111        if test "$acl_libdirstem2" != "$acl_libdirstem" \
8112           && ! test -d "$withval/$acl_libdirstem"; then
8113          additional_libdir="$withval/$acl_libdirstem2"
8114        fi
8115      fi
8116    fi
8117
8118fi
8119
8120      LIBPTH=
8121  LTLIBPTH=
8122  INCPTH=
8123  LIBPTH_PREFIX=
8124      HAVE_LIBPTH=
8125  rpathdirs=
8126  ltrpathdirs=
8127  names_already_handled=
8128  names_next_round='pth '
8129  while test -n "$names_next_round"; do
8130    names_this_round="$names_next_round"
8131    names_next_round=
8132    for name in $names_this_round; do
8133      already_handled=
8134      for n in $names_already_handled; do
8135        if test "$n" = "$name"; then
8136          already_handled=yes
8137          break
8138        fi
8139      done
8140      if test -z "$already_handled"; then
8141        names_already_handled="$names_already_handled $name"
8142                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8143        eval value=\"\$HAVE_LIB$uppername\"
8144        if test -n "$value"; then
8145          if test "$value" = yes; then
8146            eval value=\"\$LIB$uppername\"
8147            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8148            eval value=\"\$LTLIB$uppername\"
8149            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8150          else
8151                                    :
8152          fi
8153        else
8154                              found_dir=
8155          found_la=
8156          found_so=
8157          found_a=
8158          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8159          if test -n "$acl_shlibext"; then
8160            shrext=".$acl_shlibext"             # typically: shrext=.so
8161          else
8162            shrext=
8163          fi
8164          if test $use_additional = yes; then
8165            dir="$additional_libdir"
8166                                    if test -n "$acl_shlibext"; then
8167              if test -f "$dir/$libname$shrext"; then
8168                found_dir="$dir"
8169                found_so="$dir/$libname$shrext"
8170              else
8171                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8172                  ver=`(cd "$dir" && \
8173                        for f in "$libname$shrext".*; do echo "$f"; done \
8174                        | sed -e "s,^$libname$shrext\\\\.,," \
8175                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8176                        | sed 1q ) 2>/dev/null`
8177                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8178                    found_dir="$dir"
8179                    found_so="$dir/$libname$shrext.$ver"
8180                  fi
8181                else
8182                  eval library_names=\"$acl_library_names_spec\"
8183                  for f in $library_names; do
8184                    if test -f "$dir/$f"; then
8185                      found_dir="$dir"
8186                      found_so="$dir/$f"
8187                      break
8188                    fi
8189                  done
8190                fi
8191              fi
8192            fi
8193                        if test "X$found_dir" = "X"; then
8194              if test -f "$dir/$libname.$acl_libext"; then
8195                found_dir="$dir"
8196                found_a="$dir/$libname.$acl_libext"
8197              fi
8198            fi
8199            if test "X$found_dir" != "X"; then
8200              if test -f "$dir/$libname.la"; then
8201                found_la="$dir/$libname.la"
8202              fi
8203            fi
8204          fi
8205          if test "X$found_dir" = "X"; then
8206            for x in $LDFLAGS $LTLIBPTH; do
8207
8208  acl_save_prefix="$prefix"
8209  prefix="$acl_final_prefix"
8210  acl_save_exec_prefix="$exec_prefix"
8211  exec_prefix="$acl_final_exec_prefix"
8212  eval x=\"$x\"
8213  exec_prefix="$acl_save_exec_prefix"
8214  prefix="$acl_save_prefix"
8215
8216              case "$x" in
8217                -L*)
8218                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8219                                    if test -n "$acl_shlibext"; then
8220                    if test -f "$dir/$libname$shrext"; then
8221                      found_dir="$dir"
8222                      found_so="$dir/$libname$shrext"
8223                    else
8224                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8225                        ver=`(cd "$dir" && \
8226                              for f in "$libname$shrext".*; do echo "$f"; done \
8227                              | sed -e "s,^$libname$shrext\\\\.,," \
8228                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8229                              | sed 1q ) 2>/dev/null`
8230                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8231                          found_dir="$dir"
8232                          found_so="$dir/$libname$shrext.$ver"
8233                        fi
8234                      else
8235                        eval library_names=\"$acl_library_names_spec\"
8236                        for f in $library_names; do
8237                          if test -f "$dir/$f"; then
8238                            found_dir="$dir"
8239                            found_so="$dir/$f"
8240                            break
8241                          fi
8242                        done
8243                      fi
8244                    fi
8245                  fi
8246                                    if test "X$found_dir" = "X"; then
8247                    if test -f "$dir/$libname.$acl_libext"; then
8248                      found_dir="$dir"
8249                      found_a="$dir/$libname.$acl_libext"
8250                    fi
8251                  fi
8252                  if test "X$found_dir" != "X"; then
8253                    if test -f "$dir/$libname.la"; then
8254                      found_la="$dir/$libname.la"
8255                    fi
8256                  fi
8257                  ;;
8258              esac
8259              if test "X$found_dir" != "X"; then
8260                break
8261              fi
8262            done
8263          fi
8264          if test "X$found_dir" != "X"; then
8265                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8266            if test "X$found_so" != "X"; then
8267                                                        if test "$enable_rpath" = no \
8268                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8269                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8270                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8271              else
8272                                                                                haveit=
8273                for x in $ltrpathdirs; do
8274                  if test "X$x" = "X$found_dir"; then
8275                    haveit=yes
8276                    break
8277                  fi
8278                done
8279                if test -z "$haveit"; then
8280                  ltrpathdirs="$ltrpathdirs $found_dir"
8281                fi
8282                                if test "$acl_hardcode_direct" = yes; then
8283                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8284                else
8285                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8286                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8287                                                            haveit=
8288                    for x in $rpathdirs; do
8289                      if test "X$x" = "X$found_dir"; then
8290                        haveit=yes
8291                        break
8292                      fi
8293                    done
8294                    if test -z "$haveit"; then
8295                      rpathdirs="$rpathdirs $found_dir"
8296                    fi
8297                  else
8298                                                                                haveit=
8299                    for x in $LDFLAGS $LIBPTH; do
8300
8301  acl_save_prefix="$prefix"
8302  prefix="$acl_final_prefix"
8303  acl_save_exec_prefix="$exec_prefix"
8304  exec_prefix="$acl_final_exec_prefix"
8305  eval x=\"$x\"
8306  exec_prefix="$acl_save_exec_prefix"
8307  prefix="$acl_save_prefix"
8308
8309                      if test "X$x" = "X-L$found_dir"; then
8310                        haveit=yes
8311                        break
8312                      fi
8313                    done
8314                    if test -z "$haveit"; then
8315                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8316                    fi
8317                    if test "$acl_hardcode_minus_L" != no; then
8318                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8319                    else
8320                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8321                    fi
8322                  fi
8323                fi
8324              fi
8325            else
8326              if test "X$found_a" != "X"; then
8327                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8328              else
8329                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8330              fi
8331            fi
8332                        additional_includedir=
8333            case "$found_dir" in
8334              */$acl_libdirstem | */$acl_libdirstem/)
8335                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8336                if test "$name" = 'pth'; then
8337                  LIBPTH_PREFIX="$basedir"
8338                fi
8339                additional_includedir="$basedir/include"
8340                ;;
8341              */$acl_libdirstem2 | */$acl_libdirstem2/)
8342                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8343                if test "$name" = 'pth'; then
8344                  LIBPTH_PREFIX="$basedir"
8345                fi
8346                additional_includedir="$basedir/include"
8347                ;;
8348            esac
8349            if test "X$additional_includedir" != "X"; then
8350                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8351                haveit=
8352                if test "X$additional_includedir" = "X/usr/local/include"; then
8353                  if test -n "$GCC"; then
8354                    case $host_os in
8355                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8356                    esac
8357                  fi
8358                fi
8359                if test -z "$haveit"; then
8360                  for x in $CPPFLAGS $INCPTH; do
8361
8362  acl_save_prefix="$prefix"
8363  prefix="$acl_final_prefix"
8364  acl_save_exec_prefix="$exec_prefix"
8365  exec_prefix="$acl_final_exec_prefix"
8366  eval x=\"$x\"
8367  exec_prefix="$acl_save_exec_prefix"
8368  prefix="$acl_save_prefix"
8369
8370                    if test "X$x" = "X-I$additional_includedir"; then
8371                      haveit=yes
8372                      break
8373                    fi
8374                  done
8375                  if test -z "$haveit"; then
8376                    if test -d "$additional_includedir"; then
8377                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8378                    fi
8379                  fi
8380                fi
8381              fi
8382            fi
8383                        if test -n "$found_la"; then
8384                                                        save_libdir="$libdir"
8385              case "$found_la" in
8386                */* | *\\*) . "$found_la" ;;
8387                *) . "./$found_la" ;;
8388              esac
8389              libdir="$save_libdir"
8390                            for dep in $dependency_libs; do
8391                case "$dep" in
8392                  -L*)
8393                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8394                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8395                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8396                      haveit=
8397                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8398                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8399                        if test -n "$GCC"; then
8400                          case $host_os in
8401                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8402                          esac
8403                        fi
8404                      fi
8405                      if test -z "$haveit"; then
8406                        haveit=
8407                        for x in $LDFLAGS $LIBPTH; do
8408
8409  acl_save_prefix="$prefix"
8410  prefix="$acl_final_prefix"
8411  acl_save_exec_prefix="$exec_prefix"
8412  exec_prefix="$acl_final_exec_prefix"
8413  eval x=\"$x\"
8414  exec_prefix="$acl_save_exec_prefix"
8415  prefix="$acl_save_prefix"
8416
8417                          if test "X$x" = "X-L$additional_libdir"; then
8418                            haveit=yes
8419                            break
8420                          fi
8421                        done
8422                        if test -z "$haveit"; then
8423                          if test -d "$additional_libdir"; then
8424                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8425                          fi
8426                        fi
8427                        haveit=
8428                        for x in $LDFLAGS $LTLIBPTH; do
8429
8430  acl_save_prefix="$prefix"
8431  prefix="$acl_final_prefix"
8432  acl_save_exec_prefix="$exec_prefix"
8433  exec_prefix="$acl_final_exec_prefix"
8434  eval x=\"$x\"
8435  exec_prefix="$acl_save_exec_prefix"
8436  prefix="$acl_save_prefix"
8437
8438                          if test "X$x" = "X-L$additional_libdir"; then
8439                            haveit=yes
8440                            break
8441                          fi
8442                        done
8443                        if test -z "$haveit"; then
8444                          if test -d "$additional_libdir"; then
8445                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8446                          fi
8447                        fi
8448                      fi
8449                    fi
8450                    ;;
8451                  -R*)
8452                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8453                    if test "$enable_rpath" != no; then
8454                                                                  haveit=
8455                      for x in $rpathdirs; do
8456                        if test "X$x" = "X$dir"; then
8457                          haveit=yes
8458                          break
8459                        fi
8460                      done
8461                      if test -z "$haveit"; then
8462                        rpathdirs="$rpathdirs $dir"
8463                      fi
8464                                                                  haveit=
8465                      for x in $ltrpathdirs; do
8466                        if test "X$x" = "X$dir"; then
8467                          haveit=yes
8468                          break
8469                        fi
8470                      done
8471                      if test -z "$haveit"; then
8472                        ltrpathdirs="$ltrpathdirs $dir"
8473                      fi
8474                    fi
8475                    ;;
8476                  -l*)
8477                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8478                    ;;
8479                  *.la)
8480                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8481                    ;;
8482                  *)
8483                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8484                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8485                    ;;
8486                esac
8487              done
8488            fi
8489          else
8490                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8491            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8492          fi
8493        fi
8494      fi
8495    done
8496  done
8497  if test "X$rpathdirs" != "X"; then
8498    if test -n "$acl_hardcode_libdir_separator"; then
8499                        alldirs=
8500      for found_dir in $rpathdirs; do
8501        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8502      done
8503            acl_save_libdir="$libdir"
8504      libdir="$alldirs"
8505      eval flag=\"$acl_hardcode_libdir_flag_spec\"
8506      libdir="$acl_save_libdir"
8507      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8508    else
8509            for found_dir in $rpathdirs; do
8510        acl_save_libdir="$libdir"
8511        libdir="$found_dir"
8512        eval flag=\"$acl_hardcode_libdir_flag_spec\"
8513        libdir="$acl_save_libdir"
8514        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8515      done
8516    fi
8517  fi
8518  if test "X$ltrpathdirs" != "X"; then
8519            for found_dir in $ltrpathdirs; do
8520      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8521    done
8522  fi
8523
8524
8525
8526
8527
8528
8529    ac_cv_libpth_libs="$LIBPTH"
8530    ac_cv_libpth_ltlibs="$LTLIBPTH"
8531    ac_cv_libpth_cppflags="$INCPTH"
8532    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8533
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8536$as_echo "$ac_cv_libpth_libs" >&6; }
8537  LIBPTH="$ac_cv_libpth_libs"
8538  LTLIBPTH="$ac_cv_libpth_ltlibs"
8539  INCPTH="$ac_cv_libpth_cppflags"
8540  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8541
8542  for element in $INCPTH; do
8543    haveit=
8544    for x in $CPPFLAGS; do
8545
8546  acl_save_prefix="$prefix"
8547  prefix="$acl_final_prefix"
8548  acl_save_exec_prefix="$exec_prefix"
8549  exec_prefix="$acl_final_exec_prefix"
8550  eval x=\"$x\"
8551  exec_prefix="$acl_save_exec_prefix"
8552  prefix="$acl_save_prefix"
8553
8554      if test "X$x" = "X$element"; then
8555        haveit=yes
8556        break
8557      fi
8558    done
8559    if test -z "$haveit"; then
8560      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8561    fi
8562  done
8563
8564
8565
8566
8567      HAVE_LIBPTH=yes
8568
8569
8570
8571      gl_have_pth=
8572      gl_save_LIBS="$LIBS"
8573      LIBS="$LIBS $LIBPTH"
8574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576#include <pth.h>
8577int
8578main ()
8579{
8580pth_self();
8581  ;
8582  return 0;
8583}
8584_ACEOF
8585if ac_fn_c_try_link "$LINENO"; then :
8586  gl_have_pth=yes
8587fi
8588rm -f core conftest.err conftest.$ac_objext \
8589    conftest$ac_exeext conftest.$ac_ext
8590      LIBS="$gl_save_LIBS"
8591      if test -n "$gl_have_pth"; then
8592        gl_threads_api=pth
8593        LIBTHREAD="$LIBPTH"
8594        LTLIBTHREAD="$LTLIBPTH"
8595        LIBMULTITHREAD="$LIBTHREAD"
8596        LTLIBMULTITHREAD="$LTLIBTHREAD"
8597
8598$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8599
8600        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8601          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8602
8603$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8604
8605            LIBTHREAD=
8606            LTLIBTHREAD=
8607          fi
8608        fi
8609      else
8610        CPPFLAGS="$gl_save_CPPFLAGS"
8611      fi
8612    fi
8613    if test -z "$gl_have_pthread"; then
8614      case "$gl_use_threads" in
8615        yes | windows | win32) # The 'win32' is for backward compatibility.
8616          if { case "$host_os" in
8617                 mingw*) true;;
8618                 *) false;;
8619               esac
8620             }; then
8621            gl_threads_api=windows
8622
8623$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8624
8625          fi
8626          ;;
8627      esac
8628    fi
8629  fi
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8631$as_echo_n "checking for multithread API to use... " >&6; }
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8633$as_echo "$gl_threads_api" >&6; }
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645  if test "$gl_threads_api" = posix; then
8646    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8647    # pthread_rwlock_* functions.
8648    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8649"
8650if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8651
8652$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8653
8654fi
8655
8656    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659
8660      #include <pthread.h>
8661int
8662main ()
8663{
8664
8665#if __FreeBSD__ == 4
8666error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8667#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8668       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8669error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8670#else
8671int x = (int)PTHREAD_MUTEX_RECURSIVE;
8672return !x;
8673#endif
8674
8675  ;
8676  return 0;
8677}
8678_ACEOF
8679if ac_fn_c_try_compile "$LINENO"; then :
8680
8681$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8682
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685  fi
8686  :
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699    use_additional=yes
8700
8701  acl_save_prefix="$prefix"
8702  prefix="$acl_final_prefix"
8703  acl_save_exec_prefix="$exec_prefix"
8704  exec_prefix="$acl_final_exec_prefix"
8705
8706    eval additional_includedir=\"$includedir\"
8707    eval additional_libdir=\"$libdir\"
8708
8709  exec_prefix="$acl_save_exec_prefix"
8710  prefix="$acl_save_prefix"
8711
8712
8713# Check whether --with-libiconv-prefix was given.
8714if test "${with_libiconv_prefix+set}" = set; then :
8715  withval=$with_libiconv_prefix;
8716    if test "X$withval" = "Xno"; then
8717      use_additional=no
8718    else
8719      if test "X$withval" = "X"; then
8720
8721  acl_save_prefix="$prefix"
8722  prefix="$acl_final_prefix"
8723  acl_save_exec_prefix="$exec_prefix"
8724  exec_prefix="$acl_final_exec_prefix"
8725
8726          eval additional_includedir=\"$includedir\"
8727          eval additional_libdir=\"$libdir\"
8728
8729  exec_prefix="$acl_save_exec_prefix"
8730  prefix="$acl_save_prefix"
8731
8732      else
8733        additional_includedir="$withval/include"
8734        additional_libdir="$withval/$acl_libdirstem"
8735        if test "$acl_libdirstem2" != "$acl_libdirstem" \
8736           && ! test -d "$withval/$acl_libdirstem"; then
8737          additional_libdir="$withval/$acl_libdirstem2"
8738        fi
8739      fi
8740    fi
8741
8742fi
8743
8744      LIBICONV=
8745  LTLIBICONV=
8746  INCICONV=
8747  LIBICONV_PREFIX=
8748      HAVE_LIBICONV=
8749  rpathdirs=
8750  ltrpathdirs=
8751  names_already_handled=
8752  names_next_round='iconv '
8753  while test -n "$names_next_round"; do
8754    names_this_round="$names_next_round"
8755    names_next_round=
8756    for name in $names_this_round; do
8757      already_handled=
8758      for n in $names_already_handled; do
8759        if test "$n" = "$name"; then
8760          already_handled=yes
8761          break
8762        fi
8763      done
8764      if test -z "$already_handled"; then
8765        names_already_handled="$names_already_handled $name"
8766                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8767        eval value=\"\$HAVE_LIB$uppername\"
8768        if test -n "$value"; then
8769          if test "$value" = yes; then
8770            eval value=\"\$LIB$uppername\"
8771            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8772            eval value=\"\$LTLIB$uppername\"
8773            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8774          else
8775                                    :
8776          fi
8777        else
8778                              found_dir=
8779          found_la=
8780          found_so=
8781          found_a=
8782          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8783          if test -n "$acl_shlibext"; then
8784            shrext=".$acl_shlibext"             # typically: shrext=.so
8785          else
8786            shrext=
8787          fi
8788          if test $use_additional = yes; then
8789            dir="$additional_libdir"
8790                                    if test -n "$acl_shlibext"; then
8791              if test -f "$dir/$libname$shrext"; then
8792                found_dir="$dir"
8793                found_so="$dir/$libname$shrext"
8794              else
8795                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8796                  ver=`(cd "$dir" && \
8797                        for f in "$libname$shrext".*; do echo "$f"; done \
8798                        | sed -e "s,^$libname$shrext\\\\.,," \
8799                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8800                        | sed 1q ) 2>/dev/null`
8801                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8802                    found_dir="$dir"
8803                    found_so="$dir/$libname$shrext.$ver"
8804                  fi
8805                else
8806                  eval library_names=\"$acl_library_names_spec\"
8807                  for f in $library_names; do
8808                    if test -f "$dir/$f"; then
8809                      found_dir="$dir"
8810                      found_so="$dir/$f"
8811                      break
8812                    fi
8813                  done
8814                fi
8815              fi
8816            fi
8817                        if test "X$found_dir" = "X"; then
8818              if test -f "$dir/$libname.$acl_libext"; then
8819                found_dir="$dir"
8820                found_a="$dir/$libname.$acl_libext"
8821              fi
8822            fi
8823            if test "X$found_dir" != "X"; then
8824              if test -f "$dir/$libname.la"; then
8825                found_la="$dir/$libname.la"
8826              fi
8827            fi
8828          fi
8829          if test "X$found_dir" = "X"; then
8830            for x in $LDFLAGS $LTLIBICONV; do
8831
8832  acl_save_prefix="$prefix"
8833  prefix="$acl_final_prefix"
8834  acl_save_exec_prefix="$exec_prefix"
8835  exec_prefix="$acl_final_exec_prefix"
8836  eval x=\"$x\"
8837  exec_prefix="$acl_save_exec_prefix"
8838  prefix="$acl_save_prefix"
8839
8840              case "$x" in
8841                -L*)
8842                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8843                                    if test -n "$acl_shlibext"; then
8844                    if test -f "$dir/$libname$shrext"; then
8845                      found_dir="$dir"
8846                      found_so="$dir/$libname$shrext"
8847                    else
8848                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8849                        ver=`(cd "$dir" && \
8850                              for f in "$libname$shrext".*; do echo "$f"; done \
8851                              | sed -e "s,^$libname$shrext\\\\.,," \
8852                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8853                              | sed 1q ) 2>/dev/null`
8854                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8855                          found_dir="$dir"
8856                          found_so="$dir/$libname$shrext.$ver"
8857                        fi
8858                      else
8859                        eval library_names=\"$acl_library_names_spec\"
8860                        for f in $library_names; do
8861                          if test -f "$dir/$f"; then
8862                            found_dir="$dir"
8863                            found_so="$dir/$f"
8864                            break
8865                          fi
8866                        done
8867                      fi
8868                    fi
8869                  fi
8870                                    if test "X$found_dir" = "X"; then
8871                    if test -f "$dir/$libname.$acl_libext"; then
8872                      found_dir="$dir"
8873                      found_a="$dir/$libname.$acl_libext"
8874                    fi
8875                  fi
8876                  if test "X$found_dir" != "X"; then
8877                    if test -f "$dir/$libname.la"; then
8878                      found_la="$dir/$libname.la"
8879                    fi
8880                  fi
8881                  ;;
8882              esac
8883              if test "X$found_dir" != "X"; then
8884                break
8885              fi
8886            done
8887          fi
8888          if test "X$found_dir" != "X"; then
8889                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8890            if test "X$found_so" != "X"; then
8891                                                        if test "$enable_rpath" = no \
8892                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8893                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8894                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8895              else
8896                                                                                haveit=
8897                for x in $ltrpathdirs; do
8898                  if test "X$x" = "X$found_dir"; then
8899                    haveit=yes
8900                    break
8901                  fi
8902                done
8903                if test -z "$haveit"; then
8904                  ltrpathdirs="$ltrpathdirs $found_dir"
8905                fi
8906                                if test "$acl_hardcode_direct" = yes; then
8907                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8908                else
8909                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8910                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8911                                                            haveit=
8912                    for x in $rpathdirs; do
8913                      if test "X$x" = "X$found_dir"; then
8914                        haveit=yes
8915                        break
8916                      fi
8917                    done
8918                    if test -z "$haveit"; then
8919                      rpathdirs="$rpathdirs $found_dir"
8920                    fi
8921                  else
8922                                                                                haveit=
8923                    for x in $LDFLAGS $LIBICONV; do
8924
8925  acl_save_prefix="$prefix"
8926  prefix="$acl_final_prefix"
8927  acl_save_exec_prefix="$exec_prefix"
8928  exec_prefix="$acl_final_exec_prefix"
8929  eval x=\"$x\"
8930  exec_prefix="$acl_save_exec_prefix"
8931  prefix="$acl_save_prefix"
8932
8933                      if test "X$x" = "X-L$found_dir"; then
8934                        haveit=yes
8935                        break
8936                      fi
8937                    done
8938                    if test -z "$haveit"; then
8939                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8940                    fi
8941                    if test "$acl_hardcode_minus_L" != no; then
8942                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943                    else
8944                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8945                    fi
8946                  fi
8947                fi
8948              fi
8949            else
8950              if test "X$found_a" != "X"; then
8951                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8952              else
8953                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8954              fi
8955            fi
8956                        additional_includedir=
8957            case "$found_dir" in
8958              */$acl_libdirstem | */$acl_libdirstem/)
8959                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8960                if test "$name" = 'iconv'; then
8961                  LIBICONV_PREFIX="$basedir"
8962                fi
8963                additional_includedir="$basedir/include"
8964                ;;
8965              */$acl_libdirstem2 | */$acl_libdirstem2/)
8966                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8967                if test "$name" = 'iconv'; then
8968                  LIBICONV_PREFIX="$basedir"
8969                fi
8970                additional_includedir="$basedir/include"
8971                ;;
8972            esac
8973            if test "X$additional_includedir" != "X"; then
8974                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8975                haveit=
8976                if test "X$additional_includedir" = "X/usr/local/include"; then
8977                  if test -n "$GCC"; then
8978                    case $host_os in
8979                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8980                    esac
8981                  fi
8982                fi
8983                if test -z "$haveit"; then
8984                  for x in $CPPFLAGS $INCICONV; do
8985
8986  acl_save_prefix="$prefix"
8987  prefix="$acl_final_prefix"
8988  acl_save_exec_prefix="$exec_prefix"
8989  exec_prefix="$acl_final_exec_prefix"
8990  eval x=\"$x\"
8991  exec_prefix="$acl_save_exec_prefix"
8992  prefix="$acl_save_prefix"
8993
8994                    if test "X$x" = "X-I$additional_includedir"; then
8995                      haveit=yes
8996                      break
8997                    fi
8998                  done
8999                  if test -z "$haveit"; then
9000                    if test -d "$additional_includedir"; then
9001                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9002                    fi
9003                  fi
9004                fi
9005              fi
9006            fi
9007                        if test -n "$found_la"; then
9008                                                        save_libdir="$libdir"
9009              case "$found_la" in
9010                */* | *\\*) . "$found_la" ;;
9011                *) . "./$found_la" ;;
9012              esac
9013              libdir="$save_libdir"
9014                            for dep in $dependency_libs; do
9015                case "$dep" in
9016                  -L*)
9017                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9018                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9019                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9020                      haveit=
9021                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9022                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9023                        if test -n "$GCC"; then
9024                          case $host_os in
9025                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9026                          esac
9027                        fi
9028                      fi
9029                      if test -z "$haveit"; then
9030                        haveit=
9031                        for x in $LDFLAGS $LIBICONV; do
9032
9033  acl_save_prefix="$prefix"
9034  prefix="$acl_final_prefix"
9035  acl_save_exec_prefix="$exec_prefix"
9036  exec_prefix="$acl_final_exec_prefix"
9037  eval x=\"$x\"
9038  exec_prefix="$acl_save_exec_prefix"
9039  prefix="$acl_save_prefix"
9040
9041                          if test "X$x" = "X-L$additional_libdir"; then
9042                            haveit=yes
9043                            break
9044                          fi
9045                        done
9046                        if test -z "$haveit"; then
9047                          if test -d "$additional_libdir"; then
9048                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9049                          fi
9050                        fi
9051                        haveit=
9052                        for x in $LDFLAGS $LTLIBICONV; do
9053
9054  acl_save_prefix="$prefix"
9055  prefix="$acl_final_prefix"
9056  acl_save_exec_prefix="$exec_prefix"
9057  exec_prefix="$acl_final_exec_prefix"
9058  eval x=\"$x\"
9059  exec_prefix="$acl_save_exec_prefix"
9060  prefix="$acl_save_prefix"
9061
9062                          if test "X$x" = "X-L$additional_libdir"; then
9063                            haveit=yes
9064                            break
9065                          fi
9066                        done
9067                        if test -z "$haveit"; then
9068                          if test -d "$additional_libdir"; then
9069                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9070                          fi
9071                        fi
9072                      fi
9073                    fi
9074                    ;;
9075                  -R*)
9076                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9077                    if test "$enable_rpath" != no; then
9078                                                                  haveit=
9079                      for x in $rpathdirs; do
9080                        if test "X$x" = "X$dir"; then
9081                          haveit=yes
9082                          break
9083                        fi
9084                      done
9085                      if test -z "$haveit"; then
9086                        rpathdirs="$rpathdirs $dir"
9087                      fi
9088                                                                  haveit=
9089                      for x in $ltrpathdirs; do
9090                        if test "X$x" = "X$dir"; then
9091                          haveit=yes
9092                          break
9093                        fi
9094                      done
9095                      if test -z "$haveit"; then
9096                        ltrpathdirs="$ltrpathdirs $dir"
9097                      fi
9098                    fi
9099                    ;;
9100                  -l*)
9101                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9102                    ;;
9103                  *.la)
9104                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9105                    ;;
9106                  *)
9107                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9108                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9109                    ;;
9110                esac
9111              done
9112            fi
9113          else
9114                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9115            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9116          fi
9117        fi
9118      fi
9119    done
9120  done
9121  if test "X$rpathdirs" != "X"; then
9122    if test -n "$acl_hardcode_libdir_separator"; then
9123                        alldirs=
9124      for found_dir in $rpathdirs; do
9125        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9126      done
9127            acl_save_libdir="$libdir"
9128      libdir="$alldirs"
9129      eval flag=\"$acl_hardcode_libdir_flag_spec\"
9130      libdir="$acl_save_libdir"
9131      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9132    else
9133            for found_dir in $rpathdirs; do
9134        acl_save_libdir="$libdir"
9135        libdir="$found_dir"
9136        eval flag=\"$acl_hardcode_libdir_flag_spec\"
9137        libdir="$acl_save_libdir"
9138        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9139      done
9140    fi
9141  fi
9142  if test "X$ltrpathdirs" != "X"; then
9143            for found_dir in $ltrpathdirs; do
9144      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9145    done
9146  fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159          am_save_CPPFLAGS="$CPPFLAGS"
9160
9161  for element in $INCICONV; do
9162    haveit=
9163    for x in $CPPFLAGS; do
9164
9165  acl_save_prefix="$prefix"
9166  prefix="$acl_final_prefix"
9167  acl_save_exec_prefix="$exec_prefix"
9168  exec_prefix="$acl_final_exec_prefix"
9169  eval x=\"$x\"
9170  exec_prefix="$acl_save_exec_prefix"
9171  prefix="$acl_save_prefix"
9172
9173      if test "X$x" = "X$element"; then
9174        haveit=yes
9175        break
9176      fi
9177    done
9178    if test -z "$haveit"; then
9179      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9180    fi
9181  done
9182
9183
9184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9185$as_echo_n "checking for iconv... " >&6; }
9186if ${am_cv_func_iconv+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189
9190    am_cv_func_iconv="no, consider installing GNU libiconv"
9191    am_cv_lib_iconv=no
9192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193/* end confdefs.h.  */
9194
9195#include <stdlib.h>
9196#include <iconv.h>
9197
9198int
9199main ()
9200{
9201iconv_t cd = iconv_open("","");
9202           iconv(cd,NULL,NULL,NULL,NULL);
9203           iconv_close(cd);
9204  ;
9205  return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209  am_cv_func_iconv=yes
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212    conftest$ac_exeext conftest.$ac_ext
9213    if test "$am_cv_func_iconv" != yes; then
9214      am_save_LIBS="$LIBS"
9215      LIBS="$LIBS $LIBICONV"
9216      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218
9219#include <stdlib.h>
9220#include <iconv.h>
9221
9222int
9223main ()
9224{
9225iconv_t cd = iconv_open("","");
9226             iconv(cd,NULL,NULL,NULL,NULL);
9227             iconv_close(cd);
9228  ;
9229  return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_link "$LINENO"; then :
9233  am_cv_lib_iconv=yes
9234        am_cv_func_iconv=yes
9235fi
9236rm -f core conftest.err conftest.$ac_objext \
9237    conftest$ac_exeext conftest.$ac_ext
9238      LIBS="$am_save_LIBS"
9239    fi
9240
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9243$as_echo "$am_cv_func_iconv" >&6; }
9244  if test "$am_cv_func_iconv" = yes; then
9245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9246$as_echo_n "checking for working iconv... " >&6; }
9247if ${am_cv_func_iconv_works+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250
9251                  am_save_LIBS="$LIBS"
9252      if test $am_cv_lib_iconv = yes; then
9253        LIBS="$LIBS $LIBICONV"
9254      fi
9255      if test "$cross_compiling" = yes; then :
9256
9257         case "$host_os" in
9258           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9259           *)            am_cv_func_iconv_works="guessing yes" ;;
9260         esac
9261
9262else
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265
9266#include <iconv.h>
9267#include <string.h>
9268int main ()
9269{
9270  int result = 0;
9271  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9272     returns.  */
9273  {
9274    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9275    if (cd_utf8_to_88591 != (iconv_t)(-1))
9276      {
9277        static const char input[] = "\342\202\254"; /* EURO SIGN */
9278        char buf[10];
9279        const char *inptr = input;
9280        size_t inbytesleft = strlen (input);
9281        char *outptr = buf;
9282        size_t outbytesleft = sizeof (buf);
9283        size_t res = iconv (cd_utf8_to_88591,
9284                            (char **) &inptr, &inbytesleft,
9285                            &outptr, &outbytesleft);
9286        if (res == 0)
9287          result |= 1;
9288        iconv_close (cd_utf8_to_88591);
9289      }
9290  }
9291  /* Test against Solaris 10 bug: Failures are not distinguishable from
9292     successful returns.  */
9293  {
9294    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9295    if (cd_ascii_to_88591 != (iconv_t)(-1))
9296      {
9297        static const char input[] = "\263";
9298        char buf[10];
9299        const char *inptr = input;
9300        size_t inbytesleft = strlen (input);
9301        char *outptr = buf;
9302        size_t outbytesleft = sizeof (buf);
9303        size_t res = iconv (cd_ascii_to_88591,
9304                            (char **) &inptr, &inbytesleft,
9305                            &outptr, &outbytesleft);
9306        if (res == 0)
9307          result |= 2;
9308        iconv_close (cd_ascii_to_88591);
9309      }
9310  }
9311  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9312  {
9313    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9314    if (cd_88591_to_utf8 != (iconv_t)(-1))
9315      {
9316        static const char input[] = "\304";
9317        static char buf[2] = { (char)0xDE, (char)0xAD };
9318        const char *inptr = input;
9319        size_t inbytesleft = 1;
9320        char *outptr = buf;
9321        size_t outbytesleft = 1;
9322        size_t res = iconv (cd_88591_to_utf8,
9323                            (char **) &inptr, &inbytesleft,
9324                            &outptr, &outbytesleft);
9325        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9326          result |= 4;
9327        iconv_close (cd_88591_to_utf8);
9328      }
9329  }
9330#if 0 /* This bug could be worked around by the caller.  */
9331  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9332  {
9333    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9334    if (cd_88591_to_utf8 != (iconv_t)(-1))
9335      {
9336        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9337        char buf[50];
9338        const char *inptr = input;
9339        size_t inbytesleft = strlen (input);
9340        char *outptr = buf;
9341        size_t outbytesleft = sizeof (buf);
9342        size_t res = iconv (cd_88591_to_utf8,
9343                            (char **) &inptr, &inbytesleft,
9344                            &outptr, &outbytesleft);
9345        if ((int)res > 0)
9346          result |= 8;
9347        iconv_close (cd_88591_to_utf8);
9348      }
9349  }
9350#endif
9351  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9352     provided.  */
9353  if (/* Try standardized names.  */
9354      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9355      /* Try IRIX, OSF/1 names.  */
9356      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9357      /* Try AIX names.  */
9358      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9359      /* Try HP-UX names.  */
9360      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9361    result |= 16;
9362  return result;
9363}
9364_ACEOF
9365if ac_fn_c_try_run "$LINENO"; then :
9366  am_cv_func_iconv_works=yes
9367else
9368  am_cv_func_iconv_works=no
9369fi
9370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371  conftest.$ac_objext conftest.beam conftest.$ac_ext
9372fi
9373
9374      LIBS="$am_save_LIBS"
9375
9376fi
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9378$as_echo "$am_cv_func_iconv_works" >&6; }
9379    case "$am_cv_func_iconv_works" in
9380      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9381      *)   am_func_iconv=yes ;;
9382    esac
9383  else
9384    am_func_iconv=no am_cv_lib_iconv=no
9385  fi
9386  if test "$am_func_iconv" = yes; then
9387
9388$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9389
9390  fi
9391  if test "$am_cv_lib_iconv" = yes; then
9392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9393$as_echo_n "checking how to link with libiconv... " >&6; }
9394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9395$as_echo "$LIBICONV" >&6; }
9396  else
9397            CPPFLAGS="$am_save_CPPFLAGS"
9398    LIBICONV=
9399    LTLIBICONV=
9400  fi
9401
9402
9403
9404  if test "$am_cv_func_iconv" = yes; then
9405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9406$as_echo_n "checking for iconv declaration... " >&6; }
9407    if ${am_cv_proto_iconv+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410
9411      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h.  */
9413
9414#include <stdlib.h>
9415#include <iconv.h>
9416extern
9417#ifdef __cplusplus
9418"C"
9419#endif
9420#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9421size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9422#else
9423size_t iconv();
9424#endif
9425
9426int
9427main ()
9428{
9429
9430  ;
9431  return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_compile "$LINENO"; then :
9435  am_cv_proto_iconv_arg1=""
9436else
9437  am_cv_proto_iconv_arg1="const"
9438fi
9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9441fi
9442
9443    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9444    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9445         $am_cv_proto_iconv" >&5
9446$as_echo "
9447         $am_cv_proto_iconv" >&6; }
9448
9449cat >>confdefs.h <<_ACEOF
9450#define ICONV_CONST $am_cv_proto_iconv_arg1
9451_ACEOF
9452
9453
9454  fi
9455
9456
9457
9458
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9462int
9463main ()
9464{
9465
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471
9472$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9473
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476    conftest$ac_exeext conftest.$ac_ext
9477
9478  for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9479do :
9480  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9483  cat >>confdefs.h <<_ACEOF
9484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485_ACEOF
9486
9487fi
9488
9489done
9490
9491  for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9492    stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9493    argz_stringify argz_next __fsetlocking
9494do :
9495  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9496ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9497if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9498  cat >>confdefs.h <<_ACEOF
9499#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9500_ACEOF
9501
9502fi
9503done
9504
9505
9506          ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9507"
9508if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9509  ac_have_decl=1
9510else
9511  ac_have_decl=0
9512fi
9513
9514cat >>confdefs.h <<_ACEOF
9515#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9516_ACEOF
9517ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9518"
9519if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9520  ac_have_decl=1
9521else
9522  ac_have_decl=0
9523fi
9524
9525cat >>confdefs.h <<_ACEOF
9526#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9527_ACEOF
9528
9529
9530
9531
9532                    for ac_prog in bison
9533do
9534  # Extract the first word of "$ac_prog", so it can be a program name with args.
9535set dummy $ac_prog; ac_word=$2
9536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537$as_echo_n "checking for $ac_word... " >&6; }
9538if ${ac_cv_prog_INTLBISON+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  if test -n "$INTLBISON"; then
9542  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9543else
9544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545for as_dir in $PATH
9546do
9547  IFS=$as_save_IFS
9548  test -z "$as_dir" && as_dir=.
9549    for ac_exec_ext in '' $ac_executable_extensions; do
9550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551    ac_cv_prog_INTLBISON="$ac_prog"
9552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553    break 2
9554  fi
9555done
9556  done
9557IFS=$as_save_IFS
9558
9559fi
9560fi
9561INTLBISON=$ac_cv_prog_INTLBISON
9562if test -n "$INTLBISON"; then
9563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9564$as_echo "$INTLBISON" >&6; }
9565else
9566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567$as_echo "no" >&6; }
9568fi
9569
9570
9571  test -n "$INTLBISON" && break
9572done
9573
9574  if test -z "$INTLBISON"; then
9575    ac_verc_fail=yes
9576  else
9577        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9578$as_echo_n "checking version of bison... " >&6; }
9579    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9580    case $ac_prog_version in
9581      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9582      2.[7-9]* | [3-9].*)
9583         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9584      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9585    esac
9586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9587$as_echo "$ac_prog_version" >&6; }
9588  fi
9589  if test $ac_verc_fail = yes; then
9590    INTLBISON=:
9591  fi
9592
9593
9594
9595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9596$as_echo_n "checking for long long int... " >&6; }
9597if ${ac_cv_type_long_long_int+:} false; then :
9598  $as_echo_n "(cached) " >&6
9599else
9600  ac_cv_type_long_long_int=yes
9601      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9602        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9603        if test $ac_cv_type_long_long_int = yes; then
9604                                        if test "$cross_compiling" = yes; then :
9605  :
9606else
9607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h.  */
9609#include <limits.h>
9610                 #ifndef LLONG_MAX
9611                 # define HALF \
9612                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9613                 # define LLONG_MAX (HALF - 1 + HALF)
9614                 #endif
9615int
9616main ()
9617{
9618long long int n = 1;
9619                 int i;
9620                 for (i = 0; ; i++)
9621                   {
9622                     long long int m = n << i;
9623                     if (m >> i != n)
9624                       return 1;
9625                     if (LLONG_MAX / 2 < m)
9626                       break;
9627                   }
9628                 return 0;
9629  ;
9630  return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_run "$LINENO"; then :
9634
9635else
9636  ac_cv_type_long_long_int=no
9637fi
9638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639  conftest.$ac_objext conftest.beam conftest.$ac_ext
9640fi
9641
9642        fi
9643      fi
9644fi
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9646$as_echo "$ac_cv_type_long_long_int" >&6; }
9647  if test $ac_cv_type_long_long_int = yes; then
9648
9649$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9650
9651  fi
9652
9653
9654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9655$as_echo_n "checking for wchar_t... " >&6; }
9656if ${gt_cv_c_wchar_t+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661#include <stddef.h>
9662            wchar_t foo = (wchar_t)'\0';
9663int
9664main ()
9665{
9666
9667  ;
9668  return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_compile "$LINENO"; then :
9672  gt_cv_c_wchar_t=yes
9673else
9674  gt_cv_c_wchar_t=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9679$as_echo "$gt_cv_c_wchar_t" >&6; }
9680  if test $gt_cv_c_wchar_t = yes; then
9681
9682$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9683
9684  fi
9685
9686
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9688$as_echo_n "checking for wint_t... " >&6; }
9689if ${gt_cv_c_wint_t+:} false; then :
9690  $as_echo_n "(cached) " >&6
9691else
9692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694
9695/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9696   <wchar.h>.
9697   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9698   before <wchar.h>.  */
9699#include <stddef.h>
9700#include <stdio.h>
9701#include <time.h>
9702#include <wchar.h>
9703            wint_t foo = (wchar_t)'\0';
9704int
9705main ()
9706{
9707
9708  ;
9709  return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713  gt_cv_c_wint_t=yes
9714else
9715  gt_cv_c_wint_t=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9720$as_echo "$gt_cv_c_wint_t" >&6; }
9721  if test $gt_cv_c_wint_t = yes; then
9722
9723$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9724
9725  fi
9726
9727
9728
9729
9730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9731$as_echo_n "checking for intmax_t... " >&6; }
9732if ${gt_cv_c_intmax_t+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737
9738#include <stddef.h>
9739#include <stdlib.h>
9740#if HAVE_STDINT_H_WITH_UINTMAX
9741#include <stdint.h>
9742#endif
9743#if HAVE_INTTYPES_H_WITH_UINTMAX
9744#include <inttypes.h>
9745#endif
9746
9747int
9748main ()
9749{
9750intmax_t x = -1;
9751            return !x;
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_compile "$LINENO"; then :
9757  gt_cv_c_intmax_t=yes
9758else
9759  gt_cv_c_intmax_t=no
9760fi
9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9764$as_echo "$gt_cv_c_intmax_t" >&6; }
9765  if test $gt_cv_c_intmax_t = yes; then
9766
9767$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9768
9769  fi
9770
9771
9772
9773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9774$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9775if ${gt_cv_func_printf_posix+:} false; then :
9776  $as_echo_n "(cached) " >&6
9777else
9778
9779      if test "$cross_compiling" = yes; then :
9780
9781          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h.  */
9783
9784#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9785  notposix
9786#endif
9787
9788_ACEOF
9789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790  $EGREP "notposix" >/dev/null 2>&1; then :
9791  gt_cv_func_printf_posix="guessing no"
9792else
9793  gt_cv_func_printf_posix="guessing yes"
9794fi
9795rm -f conftest*
9796
9797
9798else
9799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801
9802#include <stdio.h>
9803#include <string.h>
9804/* The string "%2$d %1$d", with dollar characters protected from the shell's
9805   dollar expansion (possibly an autoconf bug).  */
9806static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9807static char buf[100];
9808int main ()
9809{
9810  sprintf (buf, format, 33, 55);
9811  return (strcmp (buf, "55 33") != 0);
9812}
9813_ACEOF
9814if ac_fn_c_try_run "$LINENO"; then :
9815  gt_cv_func_printf_posix=yes
9816else
9817  gt_cv_func_printf_posix=no
9818fi
9819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820  conftest.$ac_objext conftest.beam conftest.$ac_ext
9821fi
9822
9823
9824fi
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9826$as_echo "$gt_cv_func_printf_posix" >&6; }
9827  case $gt_cv_func_printf_posix in
9828    *yes)
9829
9830$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9831
9832      ;;
9833  esac
9834
9835
9836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9837$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9838if ${ac_cv_gnu_library_2_1+:} false; then :
9839  $as_echo_n "(cached) " >&6
9840else
9841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h.  */
9843
9844#include <features.h>
9845#ifdef __GNU_LIBRARY__
9846 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9847  Lucky GNU user
9848 #endif
9849#endif
9850#ifdef __UCLIBC__
9851 Lucky user
9852#endif
9853
9854_ACEOF
9855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9856  $EGREP "Lucky" >/dev/null 2>&1; then :
9857  ac_cv_gnu_library_2_1=yes
9858else
9859  ac_cv_gnu_library_2_1=no
9860fi
9861rm -f conftest*
9862
9863
9864
9865fi
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9867$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9868
9869    GLIBC21="$ac_cv_gnu_library_2_1"
9870
9871
9872
9873  for ac_header in stdint.h
9874do :
9875  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9876if test "x$ac_cv_header_stdint_h" = xyes; then :
9877  cat >>confdefs.h <<_ACEOF
9878#define HAVE_STDINT_H 1
9879_ACEOF
9880
9881fi
9882
9883done
9884
9885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9886$as_echo_n "checking for SIZE_MAX... " >&6; }
9887if ${gl_cv_size_max+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890
9891    gl_cv_size_max=
9892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894
9895#include <limits.h>
9896#if HAVE_STDINT_H
9897#include <stdint.h>
9898#endif
9899#ifdef SIZE_MAX
9900Found it
9901#endif
9902
9903_ACEOF
9904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905  $EGREP "Found it" >/dev/null 2>&1; then :
9906  gl_cv_size_max=yes
9907fi
9908rm -f conftest*
9909
9910    if test -z "$gl_cv_size_max"; then
9911                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
9912#include <limits.h>"; then :
9913
9914else
9915  size_t_bits_minus_1=
9916fi
9917
9918      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
9919
9920else
9921  fits_in_uint=
9922fi
9923
9924      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9925        if test $fits_in_uint = 1; then
9926                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928#include <stddef.h>
9929                 extern size_t foo;
9930                 extern unsigned long foo;
9931
9932int
9933main ()
9934{
9935
9936  ;
9937  return 0;
9938}
9939_ACEOF
9940if ac_fn_c_try_compile "$LINENO"; then :
9941  fits_in_uint=0
9942fi
9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944        fi
9945                                if test $fits_in_uint = 1; then
9946          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9947        else
9948          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9949        fi
9950      else
9951                gl_cv_size_max='((size_t)~(size_t)0)'
9952      fi
9953    fi
9954
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9957$as_echo "$gl_cv_size_max" >&6; }
9958  if test "$gl_cv_size_max" != yes; then
9959
9960cat >>confdefs.h <<_ACEOF
9961#define SIZE_MAX $gl_cv_size_max
9962_ACEOF
9963
9964  fi
9965
9966
9967
9968
9969  for ac_header in stdint.h
9970do :
9971  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9972if test "x$ac_cv_header_stdint_h" = xyes; then :
9973  cat >>confdefs.h <<_ACEOF
9974#define HAVE_STDINT_H 1
9975_ACEOF
9976
9977fi
9978
9979done
9980
9981
9982
9983
9984
9985  for ac_func in $ac_func_list
9986do :
9987  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9990  cat >>confdefs.h <<_ACEOF
9991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9992_ACEOF
9993
9994fi
9995done
9996
9997
9998
9999
10000
10001
10002
10003
10004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10005$as_echo_n "checking for working fcntl.h... " >&6; }
10006if ${gl_cv_header_working_fcntl_h+:} false; then :
10007  $as_echo_n "(cached) " >&6
10008else
10009  if test "$cross_compiling" = yes; then :
10010  gl_cv_header_working_fcntl_h=cross-compiling
10011else
10012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013/* end confdefs.h.  */
10014#include <sys/types.h>
10015           #include <sys/stat.h>
10016           #if HAVE_UNISTD_H
10017           # include <unistd.h>
10018           #else /* on Windows with MSVC */
10019           # include <io.h>
10020           # include <stdlib.h>
10021           # defined sleep(n) _sleep ((n) * 1000)
10022           #endif
10023           #include <fcntl.h>
10024           #ifndef O_NOATIME
10025            #define O_NOATIME 0
10026           #endif
10027           #ifndef O_NOFOLLOW
10028            #define O_NOFOLLOW 0
10029           #endif
10030           static int const constants[] =
10031            {
10032              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10033              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10034            };
10035
10036int
10037main ()
10038{
10039
10040            int result = !constants;
10041            #if HAVE_SYMLINK
10042            {
10043              static char const sym[] = "conftest.sym";
10044              if (symlink ("/dev/null", sym) != 0)
10045                result |= 2;
10046              else
10047                {
10048                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10049                  if (fd >= 0)
10050                    {
10051                      close (fd);
10052                      result |= 4;
10053                    }
10054                }
10055              if (unlink (sym) != 0 || symlink (".", sym) != 0)
10056                result |= 2;
10057              else
10058                {
10059                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10060                  if (fd >= 0)
10061                    {
10062                      close (fd);
10063                      result |= 4;
10064                    }
10065                }
10066              unlink (sym);
10067            }
10068            #endif
10069            {
10070              static char const file[] = "confdefs.h";
10071              int fd = open (file, O_RDONLY | O_NOATIME);
10072              if (fd < 0)
10073                result |= 8;
10074              else
10075                {
10076                  struct stat st0;
10077                  if (fstat (fd, &st0) != 0)
10078                    result |= 16;
10079                  else
10080                    {
10081                      char c;
10082                      sleep (1);
10083                      if (read (fd, &c, 1) != 1)
10084                        result |= 24;
10085                      else
10086                        {
10087                          if (close (fd) != 0)
10088                            result |= 32;
10089                          else
10090                            {
10091                              struct stat st1;
10092                              if (stat (file, &st1) != 0)
10093                                result |= 40;
10094                              else
10095                                if (st0.st_atime != st1.st_atime)
10096                                  result |= 64;
10097                            }
10098                        }
10099                    }
10100                }
10101            }
10102            return result;
10103  ;
10104  return 0;
10105}
10106_ACEOF
10107if ac_fn_c_try_run "$LINENO"; then :
10108  gl_cv_header_working_fcntl_h=yes
10109else
10110  case $? in #(
10111        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10112        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10113        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10114         *) gl_cv_header_working_fcntl_h='no';;
10115        esac
10116fi
10117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118  conftest.$ac_objext conftest.beam conftest.$ac_ext
10119fi
10120
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10123$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10124
10125  case $gl_cv_header_working_fcntl_h in #(
10126  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10127  *) ac_val=1;;
10128  esac
10129
10130cat >>confdefs.h <<_ACEOF
10131#define HAVE_WORKING_O_NOATIME $ac_val
10132_ACEOF
10133
10134
10135  case $gl_cv_header_working_fcntl_h in #(
10136  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10137  *) ac_val=1;;
10138  esac
10139
10140cat >>confdefs.h <<_ACEOF
10141#define HAVE_WORKING_O_NOFOLLOW $ac_val
10142_ACEOF
10143
10144
10145
10146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10147$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10148if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10149  $as_echo_n "(cached) " >&6
10150else
10151  gt_save_LIBS="$LIBS"
10152     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155#include <CoreFoundation/CFPreferences.h>
10156int
10157main ()
10158{
10159CFPreferencesCopyAppValue(NULL, NULL)
10160  ;
10161  return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"; then :
10165  gt_cv_func_CFPreferencesCopyAppValue=yes
10166else
10167  gt_cv_func_CFPreferencesCopyAppValue=no
10168fi
10169rm -f core conftest.err conftest.$ac_objext \
10170    conftest$ac_exeext conftest.$ac_ext
10171     LIBS="$gt_save_LIBS"
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10174$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10175  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10176
10177$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10178
10179  fi
10180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10181$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10182if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  gt_save_LIBS="$LIBS"
10186     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h.  */
10189#include <CoreFoundation/CFLocale.h>
10190int
10191main ()
10192{
10193CFLocaleCopyCurrent();
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_link "$LINENO"; then :
10199  gt_cv_func_CFLocaleCopyCurrent=yes
10200else
10201  gt_cv_func_CFLocaleCopyCurrent=no
10202fi
10203rm -f core conftest.err conftest.$ac_objext \
10204    conftest$ac_exeext conftest.$ac_ext
10205     LIBS="$gt_save_LIBS"
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10208$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10209  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10210
10211$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10212
10213  fi
10214  INTL_MACOSX_LIBS=
10215  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10216    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10217  fi
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230    case "$enable_silent_rules" in
10231    yes) INTL_DEFAULT_VERBOSITY=0;;
10232    no)  INTL_DEFAULT_VERBOSITY=1;;
10233    *)   INTL_DEFAULT_VERBOSITY=1;;
10234  esac
10235
10236
10237  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10238if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10239
10240else
10241
10242$as_echo "#define ptrdiff_t long" >>confdefs.h
10243
10244
10245fi
10246
10247  for ac_header in features.h stddef.h stdlib.h string.h
10248do :
10249  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10251if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10252  cat >>confdefs.h <<_ACEOF
10253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10254_ACEOF
10255
10256fi
10257
10258done
10259
10260  for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10261    snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10262do :
10263  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10264ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10265if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10266  cat >>confdefs.h <<_ACEOF
10267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10268_ACEOF
10269
10270fi
10271done
10272
10273
10274      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10275"
10276if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10277  ac_have_decl=1
10278else
10279  ac_have_decl=0
10280fi
10281
10282cat >>confdefs.h <<_ACEOF
10283#define HAVE_DECL__SNPRINTF $ac_have_decl
10284_ACEOF
10285ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10286"
10287if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10288  ac_have_decl=1
10289else
10290  ac_have_decl=0
10291fi
10292
10293cat >>confdefs.h <<_ACEOF
10294#define HAVE_DECL__SNWPRINTF $ac_have_decl
10295_ACEOF
10296
10297
10298          ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10299"
10300if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10301  ac_have_decl=1
10302else
10303  ac_have_decl=0
10304fi
10305
10306cat >>confdefs.h <<_ACEOF
10307#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10308_ACEOF
10309
10310
10311  case $gt_cv_func_printf_posix in
10312    *yes) HAVE_POSIX_PRINTF=1 ;;
10313    *) HAVE_POSIX_PRINTF=0 ;;
10314  esac
10315
10316  if test "$ac_cv_func_asprintf" = yes; then
10317    HAVE_ASPRINTF=1
10318  else
10319    HAVE_ASPRINTF=0
10320  fi
10321
10322  if test "$ac_cv_func_snprintf" = yes; then
10323    HAVE_SNPRINTF=1
10324  else
10325    HAVE_SNPRINTF=0
10326  fi
10327
10328  if test "$ac_cv_func_newlocale" = yes; then
10329    HAVE_NEWLOCALE=1
10330  else
10331    HAVE_NEWLOCALE=0
10332  fi
10333
10334  if test "$ac_cv_func_wprintf" = yes; then
10335    HAVE_WPRINTF=1
10336  else
10337    HAVE_WPRINTF=0
10338  fi
10339
10340
10341
10342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10343$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10344if ${am_cv_langinfo_codeset+:} false; then :
10345  $as_echo_n "(cached) " >&6
10346else
10347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h.  */
10349#include <langinfo.h>
10350int
10351main ()
10352{
10353char* cs = nl_langinfo(CODESET); return !cs;
10354  ;
10355  return 0;
10356}
10357_ACEOF
10358if ac_fn_c_try_link "$LINENO"; then :
10359  am_cv_langinfo_codeset=yes
10360else
10361  am_cv_langinfo_codeset=no
10362fi
10363rm -f core conftest.err conftest.$ac_objext \
10364    conftest$ac_exeext conftest.$ac_ext
10365
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10368$as_echo "$am_cv_langinfo_codeset" >&6; }
10369  if test $am_cv_langinfo_codeset = yes; then
10370
10371$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10372
10373  fi
10374
10375
10376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10377$as_echo_n "checking for LC_MESSAGES... " >&6; }
10378if ${gt_cv_val_LC_MESSAGES+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382/* end confdefs.h.  */
10383#include <locale.h>
10384int
10385main ()
10386{
10387return LC_MESSAGES
10388  ;
10389  return 0;
10390}
10391_ACEOF
10392if ac_fn_c_try_link "$LINENO"; then :
10393  gt_cv_val_LC_MESSAGES=yes
10394else
10395  gt_cv_val_LC_MESSAGES=no
10396fi
10397rm -f core conftest.err conftest.$ac_objext \
10398    conftest$ac_exeext conftest.$ac_ext
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10401$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10402  if test $gt_cv_val_LC_MESSAGES = yes; then
10403
10404$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10405
10406  fi
10407
10408
10409                if test "$enable_shared" = yes; then
10410    case "$host_os" in
10411      mingw* | cygwin*) is_woe32dll=yes ;;
10412      *) is_woe32dll=no ;;
10413    esac
10414  else
10415    is_woe32dll=no
10416  fi
10417  WOE32DLL=$is_woe32dll
10418
10419
10420      case "$host_os" in
10421    mingw* | cygwin*) is_woe32=yes ;;
10422    *) is_woe32=no ;;
10423  esac
10424  WOE32=$is_woe32
10425
10426  if test $WOE32 = yes; then
10427        if test -n "$ac_tool_prefix"; then
10428  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10429set dummy ${ac_tool_prefix}windres; ac_word=$2
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431$as_echo_n "checking for $ac_word... " >&6; }
10432if ${ac_cv_prog_WINDRES+:} false; then :
10433  $as_echo_n "(cached) " >&6
10434else
10435  if test -n "$WINDRES"; then
10436  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10437else
10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441  IFS=$as_save_IFS
10442  test -z "$as_dir" && as_dir=.
10443    for ac_exec_ext in '' $ac_executable_extensions; do
10444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10445    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447    break 2
10448  fi
10449done
10450  done
10451IFS=$as_save_IFS
10452
10453fi
10454fi
10455WINDRES=$ac_cv_prog_WINDRES
10456if test -n "$WINDRES"; then
10457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10458$as_echo "$WINDRES" >&6; }
10459else
10460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
10462fi
10463
10464
10465fi
10466if test -z "$ac_cv_prog_WINDRES"; then
10467  ac_ct_WINDRES=$WINDRES
10468  # Extract the first word of "windres", so it can be a program name with args.
10469set dummy windres; ac_word=$2
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471$as_echo_n "checking for $ac_word... " >&6; }
10472if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  if test -n "$ac_ct_WINDRES"; then
10476  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10477else
10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481  IFS=$as_save_IFS
10482  test -z "$as_dir" && as_dir=.
10483    for ac_exec_ext in '' $ac_executable_extensions; do
10484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485    ac_cv_prog_ac_ct_WINDRES="windres"
10486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487    break 2
10488  fi
10489done
10490  done
10491IFS=$as_save_IFS
10492
10493fi
10494fi
10495ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10496if test -n "$ac_ct_WINDRES"; then
10497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10498$as_echo "$ac_ct_WINDRES" >&6; }
10499else
10500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
10502fi
10503
10504  if test "x$ac_ct_WINDRES" = x; then
10505    WINDRES=""
10506  else
10507    case $cross_compiling:$ac_tool_warned in
10508yes:)
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10511ac_tool_warned=yes ;;
10512esac
10513    WINDRES=$ac_ct_WINDRES
10514  fi
10515else
10516  WINDRES="$ac_cv_prog_WINDRES"
10517fi
10518
10519  fi
10520
10521              case "$host_os" in
10522    hpux*) LTLIBC="" ;;
10523    *)     LTLIBC="-lc" ;;
10524  esac
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10553$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10554if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10555  $as_echo_n "(cached) " >&6
10556else
10557  gt_save_LIBS="$LIBS"
10558     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h.  */
10561#include <CoreFoundation/CFPreferences.h>
10562int
10563main ()
10564{
10565CFPreferencesCopyAppValue(NULL, NULL)
10566  ;
10567  return 0;
10568}
10569_ACEOF
10570if ac_fn_c_try_link "$LINENO"; then :
10571  gt_cv_func_CFPreferencesCopyAppValue=yes
10572else
10573  gt_cv_func_CFPreferencesCopyAppValue=no
10574fi
10575rm -f core conftest.err conftest.$ac_objext \
10576    conftest$ac_exeext conftest.$ac_ext
10577     LIBS="$gt_save_LIBS"
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10580$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10581  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10582
10583$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10584
10585  fi
10586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10587$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10588if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10589  $as_echo_n "(cached) " >&6
10590else
10591  gt_save_LIBS="$LIBS"
10592     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594/* end confdefs.h.  */
10595#include <CoreFoundation/CFLocale.h>
10596int
10597main ()
10598{
10599CFLocaleCopyCurrent();
10600  ;
10601  return 0;
10602}
10603_ACEOF
10604if ac_fn_c_try_link "$LINENO"; then :
10605  gt_cv_func_CFLocaleCopyCurrent=yes
10606else
10607  gt_cv_func_CFLocaleCopyCurrent=no
10608fi
10609rm -f core conftest.err conftest.$ac_objext \
10610    conftest$ac_exeext conftest.$ac_ext
10611     LIBS="$gt_save_LIBS"
10612fi
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10614$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10615  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10616
10617$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10618
10619  fi
10620  INTL_MACOSX_LIBS=
10621  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10622    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10623  fi
10624
10625
10626
10627
10628
10629
10630    BUILD_INCLUDED_LIBINTL=no
10631    USE_INCLUDED_LIBINTL=no
10632
10633  LIBINTL=
10634  LTLIBINTL=
10635  POSUB=
10636
10637    case " $gt_needs " in
10638    *" need-formatstring-macros "*) gt_api_version=3 ;;
10639    *" need-ngettext "*) gt_api_version=2 ;;
10640    *) gt_api_version=1 ;;
10641  esac
10642  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10643  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10644
10645    if test "$USE_NLS" = "yes"; then
10646    gt_use_preinstalled_gnugettext=no
10647
10648      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10649$as_echo_n "checking whether included gettext is requested... " >&6; }
10650
10651# Check whether --with-included-gettext was given.
10652if test "${with_included_gettext+set}" = set; then :
10653  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10654else
10655  nls_cv_force_use_gnu_gettext=no
10656fi
10657
10658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10659$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10660
10661      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10662      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10663
10664
10665        if test $gt_api_version -ge 3; then
10666          gt_revision_test_code='
10667#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10668#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10669#endif
10670typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10671'
10672        else
10673          gt_revision_test_code=
10674        fi
10675        if test $gt_api_version -ge 2; then
10676          gt_expression_test_code=' + * ngettext ("", "", 0)'
10677        else
10678          gt_expression_test_code=
10679        fi
10680
10681        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10682$as_echo_n "checking for GNU gettext in libc... " >&6; }
10683if eval \${$gt_func_gnugettext_libc+:} false; then :
10684  $as_echo_n "(cached) " >&6
10685else
10686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688
10689#include <libintl.h>
10690$gt_revision_test_code
10691extern int _nl_msg_cat_cntr;
10692extern int *_nl_domain_bindings;
10693
10694int
10695main ()
10696{
10697
10698bindtextdomain ("", "");
10699return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10700
10701  ;
10702  return 0;
10703}
10704_ACEOF
10705if ac_fn_c_try_link "$LINENO"; then :
10706  eval "$gt_func_gnugettext_libc=yes"
10707else
10708  eval "$gt_func_gnugettext_libc=no"
10709fi
10710rm -f core conftest.err conftest.$ac_objext \
10711    conftest$ac_exeext conftest.$ac_ext
10712fi
10713eval ac_res=\$$gt_func_gnugettext_libc
10714	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10715$as_echo "$ac_res" >&6; }
10716
10717        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10718
10719
10720
10721
10722
10723
10724
10725
10726    use_additional=yes
10727
10728  acl_save_prefix="$prefix"
10729  prefix="$acl_final_prefix"
10730  acl_save_exec_prefix="$exec_prefix"
10731  exec_prefix="$acl_final_exec_prefix"
10732
10733    eval additional_includedir=\"$includedir\"
10734    eval additional_libdir=\"$libdir\"
10735
10736  exec_prefix="$acl_save_exec_prefix"
10737  prefix="$acl_save_prefix"
10738
10739
10740# Check whether --with-libintl-prefix was given.
10741if test "${with_libintl_prefix+set}" = set; then :
10742  withval=$with_libintl_prefix;
10743    if test "X$withval" = "Xno"; then
10744      use_additional=no
10745    else
10746      if test "X$withval" = "X"; then
10747
10748  acl_save_prefix="$prefix"
10749  prefix="$acl_final_prefix"
10750  acl_save_exec_prefix="$exec_prefix"
10751  exec_prefix="$acl_final_exec_prefix"
10752
10753          eval additional_includedir=\"$includedir\"
10754          eval additional_libdir=\"$libdir\"
10755
10756  exec_prefix="$acl_save_exec_prefix"
10757  prefix="$acl_save_prefix"
10758
10759      else
10760        additional_includedir="$withval/include"
10761        additional_libdir="$withval/$acl_libdirstem"
10762        if test "$acl_libdirstem2" != "$acl_libdirstem" \
10763           && ! test -d "$withval/$acl_libdirstem"; then
10764          additional_libdir="$withval/$acl_libdirstem2"
10765        fi
10766      fi
10767    fi
10768
10769fi
10770
10771      LIBINTL=
10772  LTLIBINTL=
10773  INCINTL=
10774  LIBINTL_PREFIX=
10775      HAVE_LIBINTL=
10776  rpathdirs=
10777  ltrpathdirs=
10778  names_already_handled=
10779  names_next_round='intl '
10780  while test -n "$names_next_round"; do
10781    names_this_round="$names_next_round"
10782    names_next_round=
10783    for name in $names_this_round; do
10784      already_handled=
10785      for n in $names_already_handled; do
10786        if test "$n" = "$name"; then
10787          already_handled=yes
10788          break
10789        fi
10790      done
10791      if test -z "$already_handled"; then
10792        names_already_handled="$names_already_handled $name"
10793                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10794        eval value=\"\$HAVE_LIB$uppername\"
10795        if test -n "$value"; then
10796          if test "$value" = yes; then
10797            eval value=\"\$LIB$uppername\"
10798            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10799            eval value=\"\$LTLIB$uppername\"
10800            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10801          else
10802                                    :
10803          fi
10804        else
10805                              found_dir=
10806          found_la=
10807          found_so=
10808          found_a=
10809          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10810          if test -n "$acl_shlibext"; then
10811            shrext=".$acl_shlibext"             # typically: shrext=.so
10812          else
10813            shrext=
10814          fi
10815          if test $use_additional = yes; then
10816            dir="$additional_libdir"
10817                                    if test -n "$acl_shlibext"; then
10818              if test -f "$dir/$libname$shrext"; then
10819                found_dir="$dir"
10820                found_so="$dir/$libname$shrext"
10821              else
10822                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10823                  ver=`(cd "$dir" && \
10824                        for f in "$libname$shrext".*; do echo "$f"; done \
10825                        | sed -e "s,^$libname$shrext\\\\.,," \
10826                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10827                        | sed 1q ) 2>/dev/null`
10828                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10829                    found_dir="$dir"
10830                    found_so="$dir/$libname$shrext.$ver"
10831                  fi
10832                else
10833                  eval library_names=\"$acl_library_names_spec\"
10834                  for f in $library_names; do
10835                    if test -f "$dir/$f"; then
10836                      found_dir="$dir"
10837                      found_so="$dir/$f"
10838                      break
10839                    fi
10840                  done
10841                fi
10842              fi
10843            fi
10844                        if test "X$found_dir" = "X"; then
10845              if test -f "$dir/$libname.$acl_libext"; then
10846                found_dir="$dir"
10847                found_a="$dir/$libname.$acl_libext"
10848              fi
10849            fi
10850            if test "X$found_dir" != "X"; then
10851              if test -f "$dir/$libname.la"; then
10852                found_la="$dir/$libname.la"
10853              fi
10854            fi
10855          fi
10856          if test "X$found_dir" = "X"; then
10857            for x in $LDFLAGS $LTLIBINTL; do
10858
10859  acl_save_prefix="$prefix"
10860  prefix="$acl_final_prefix"
10861  acl_save_exec_prefix="$exec_prefix"
10862  exec_prefix="$acl_final_exec_prefix"
10863  eval x=\"$x\"
10864  exec_prefix="$acl_save_exec_prefix"
10865  prefix="$acl_save_prefix"
10866
10867              case "$x" in
10868                -L*)
10869                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10870                                    if test -n "$acl_shlibext"; then
10871                    if test -f "$dir/$libname$shrext"; then
10872                      found_dir="$dir"
10873                      found_so="$dir/$libname$shrext"
10874                    else
10875                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10876                        ver=`(cd "$dir" && \
10877                              for f in "$libname$shrext".*; do echo "$f"; done \
10878                              | sed -e "s,^$libname$shrext\\\\.,," \
10879                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10880                              | sed 1q ) 2>/dev/null`
10881                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10882                          found_dir="$dir"
10883                          found_so="$dir/$libname$shrext.$ver"
10884                        fi
10885                      else
10886                        eval library_names=\"$acl_library_names_spec\"
10887                        for f in $library_names; do
10888                          if test -f "$dir/$f"; then
10889                            found_dir="$dir"
10890                            found_so="$dir/$f"
10891                            break
10892                          fi
10893                        done
10894                      fi
10895                    fi
10896                  fi
10897                                    if test "X$found_dir" = "X"; then
10898                    if test -f "$dir/$libname.$acl_libext"; then
10899                      found_dir="$dir"
10900                      found_a="$dir/$libname.$acl_libext"
10901                    fi
10902                  fi
10903                  if test "X$found_dir" != "X"; then
10904                    if test -f "$dir/$libname.la"; then
10905                      found_la="$dir/$libname.la"
10906                    fi
10907                  fi
10908                  ;;
10909              esac
10910              if test "X$found_dir" != "X"; then
10911                break
10912              fi
10913            done
10914          fi
10915          if test "X$found_dir" != "X"; then
10916                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10917            if test "X$found_so" != "X"; then
10918                                                        if test "$enable_rpath" = no \
10919                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10920                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10921                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10922              else
10923                                                                                haveit=
10924                for x in $ltrpathdirs; do
10925                  if test "X$x" = "X$found_dir"; then
10926                    haveit=yes
10927                    break
10928                  fi
10929                done
10930                if test -z "$haveit"; then
10931                  ltrpathdirs="$ltrpathdirs $found_dir"
10932                fi
10933                                if test "$acl_hardcode_direct" = yes; then
10934                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10935                else
10936                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10937                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10938                                                            haveit=
10939                    for x in $rpathdirs; do
10940                      if test "X$x" = "X$found_dir"; then
10941                        haveit=yes
10942                        break
10943                      fi
10944                    done
10945                    if test -z "$haveit"; then
10946                      rpathdirs="$rpathdirs $found_dir"
10947                    fi
10948                  else
10949                                                                                haveit=
10950                    for x in $LDFLAGS $LIBINTL; do
10951
10952  acl_save_prefix="$prefix"
10953  prefix="$acl_final_prefix"
10954  acl_save_exec_prefix="$exec_prefix"
10955  exec_prefix="$acl_final_exec_prefix"
10956  eval x=\"$x\"
10957  exec_prefix="$acl_save_exec_prefix"
10958  prefix="$acl_save_prefix"
10959
10960                      if test "X$x" = "X-L$found_dir"; then
10961                        haveit=yes
10962                        break
10963                      fi
10964                    done
10965                    if test -z "$haveit"; then
10966                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10967                    fi
10968                    if test "$acl_hardcode_minus_L" != no; then
10969                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10970                    else
10971                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10972                    fi
10973                  fi
10974                fi
10975              fi
10976            else
10977              if test "X$found_a" != "X"; then
10978                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10979              else
10980                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10981              fi
10982            fi
10983                        additional_includedir=
10984            case "$found_dir" in
10985              */$acl_libdirstem | */$acl_libdirstem/)
10986                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10987                if test "$name" = 'intl'; then
10988                  LIBINTL_PREFIX="$basedir"
10989                fi
10990                additional_includedir="$basedir/include"
10991                ;;
10992              */$acl_libdirstem2 | */$acl_libdirstem2/)
10993                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10994                if test "$name" = 'intl'; then
10995                  LIBINTL_PREFIX="$basedir"
10996                fi
10997                additional_includedir="$basedir/include"
10998                ;;
10999            esac
11000            if test "X$additional_includedir" != "X"; then
11001                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11002                haveit=
11003                if test "X$additional_includedir" = "X/usr/local/include"; then
11004                  if test -n "$GCC"; then
11005                    case $host_os in
11006                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11007                    esac
11008                  fi
11009                fi
11010                if test -z "$haveit"; then
11011                  for x in $CPPFLAGS $INCINTL; do
11012
11013  acl_save_prefix="$prefix"
11014  prefix="$acl_final_prefix"
11015  acl_save_exec_prefix="$exec_prefix"
11016  exec_prefix="$acl_final_exec_prefix"
11017  eval x=\"$x\"
11018  exec_prefix="$acl_save_exec_prefix"
11019  prefix="$acl_save_prefix"
11020
11021                    if test "X$x" = "X-I$additional_includedir"; then
11022                      haveit=yes
11023                      break
11024                    fi
11025                  done
11026                  if test -z "$haveit"; then
11027                    if test -d "$additional_includedir"; then
11028                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11029                    fi
11030                  fi
11031                fi
11032              fi
11033            fi
11034                        if test -n "$found_la"; then
11035                                                        save_libdir="$libdir"
11036              case "$found_la" in
11037                */* | *\\*) . "$found_la" ;;
11038                *) . "./$found_la" ;;
11039              esac
11040              libdir="$save_libdir"
11041                            for dep in $dependency_libs; do
11042                case "$dep" in
11043                  -L*)
11044                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11045                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11046                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11047                      haveit=
11048                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11049                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11050                        if test -n "$GCC"; then
11051                          case $host_os in
11052                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11053                          esac
11054                        fi
11055                      fi
11056                      if test -z "$haveit"; then
11057                        haveit=
11058                        for x in $LDFLAGS $LIBINTL; do
11059
11060  acl_save_prefix="$prefix"
11061  prefix="$acl_final_prefix"
11062  acl_save_exec_prefix="$exec_prefix"
11063  exec_prefix="$acl_final_exec_prefix"
11064  eval x=\"$x\"
11065  exec_prefix="$acl_save_exec_prefix"
11066  prefix="$acl_save_prefix"
11067
11068                          if test "X$x" = "X-L$additional_libdir"; then
11069                            haveit=yes
11070                            break
11071                          fi
11072                        done
11073                        if test -z "$haveit"; then
11074                          if test -d "$additional_libdir"; then
11075                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11076                          fi
11077                        fi
11078                        haveit=
11079                        for x in $LDFLAGS $LTLIBINTL; do
11080
11081  acl_save_prefix="$prefix"
11082  prefix="$acl_final_prefix"
11083  acl_save_exec_prefix="$exec_prefix"
11084  exec_prefix="$acl_final_exec_prefix"
11085  eval x=\"$x\"
11086  exec_prefix="$acl_save_exec_prefix"
11087  prefix="$acl_save_prefix"
11088
11089                          if test "X$x" = "X-L$additional_libdir"; then
11090                            haveit=yes
11091                            break
11092                          fi
11093                        done
11094                        if test -z "$haveit"; then
11095                          if test -d "$additional_libdir"; then
11096                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11097                          fi
11098                        fi
11099                      fi
11100                    fi
11101                    ;;
11102                  -R*)
11103                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11104                    if test "$enable_rpath" != no; then
11105                                                                  haveit=
11106                      for x in $rpathdirs; do
11107                        if test "X$x" = "X$dir"; then
11108                          haveit=yes
11109                          break
11110                        fi
11111                      done
11112                      if test -z "$haveit"; then
11113                        rpathdirs="$rpathdirs $dir"
11114                      fi
11115                                                                  haveit=
11116                      for x in $ltrpathdirs; do
11117                        if test "X$x" = "X$dir"; then
11118                          haveit=yes
11119                          break
11120                        fi
11121                      done
11122                      if test -z "$haveit"; then
11123                        ltrpathdirs="$ltrpathdirs $dir"
11124                      fi
11125                    fi
11126                    ;;
11127                  -l*)
11128                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11129                    ;;
11130                  *.la)
11131                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11132                    ;;
11133                  *)
11134                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11135                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11136                    ;;
11137                esac
11138              done
11139            fi
11140          else
11141                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11142            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11143          fi
11144        fi
11145      fi
11146    done
11147  done
11148  if test "X$rpathdirs" != "X"; then
11149    if test -n "$acl_hardcode_libdir_separator"; then
11150                        alldirs=
11151      for found_dir in $rpathdirs; do
11152        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11153      done
11154            acl_save_libdir="$libdir"
11155      libdir="$alldirs"
11156      eval flag=\"$acl_hardcode_libdir_flag_spec\"
11157      libdir="$acl_save_libdir"
11158      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11159    else
11160            for found_dir in $rpathdirs; do
11161        acl_save_libdir="$libdir"
11162        libdir="$found_dir"
11163        eval flag=\"$acl_hardcode_libdir_flag_spec\"
11164        libdir="$acl_save_libdir"
11165        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11166      done
11167    fi
11168  fi
11169  if test "X$ltrpathdirs" != "X"; then
11170            for found_dir in $ltrpathdirs; do
11171      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11172    done
11173  fi
11174
11175
11176
11177
11178
11179
11180          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11181$as_echo_n "checking for GNU gettext in libintl... " >&6; }
11182if eval \${$gt_func_gnugettext_libintl+:} false; then :
11183  $as_echo_n "(cached) " >&6
11184else
11185  gt_save_CPPFLAGS="$CPPFLAGS"
11186            CPPFLAGS="$CPPFLAGS $INCINTL"
11187            gt_save_LIBS="$LIBS"
11188            LIBS="$LIBS $LIBINTL"
11189                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191
11192#include <libintl.h>
11193$gt_revision_test_code
11194extern int _nl_msg_cat_cntr;
11195extern
11196#ifdef __cplusplus
11197"C"
11198#endif
11199const char *_nl_expand_alias (const char *);
11200
11201int
11202main ()
11203{
11204
11205bindtextdomain ("", "");
11206return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11207
11208  ;
11209  return 0;
11210}
11211_ACEOF
11212if ac_fn_c_try_link "$LINENO"; then :
11213  eval "$gt_func_gnugettext_libintl=yes"
11214else
11215  eval "$gt_func_gnugettext_libintl=no"
11216fi
11217rm -f core conftest.err conftest.$ac_objext \
11218    conftest$ac_exeext conftest.$ac_ext
11219                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11220              LIBS="$LIBS $LIBICONV"
11221              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222/* end confdefs.h.  */
11223
11224#include <libintl.h>
11225$gt_revision_test_code
11226extern int _nl_msg_cat_cntr;
11227extern
11228#ifdef __cplusplus
11229"C"
11230#endif
11231const char *_nl_expand_alias (const char *);
11232
11233int
11234main ()
11235{
11236
11237bindtextdomain ("", "");
11238return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11239
11240  ;
11241  return 0;
11242}
11243_ACEOF
11244if ac_fn_c_try_link "$LINENO"; then :
11245  LIBINTL="$LIBINTL $LIBICONV"
11246                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11247                 eval "$gt_func_gnugettext_libintl=yes"
11248
11249fi
11250rm -f core conftest.err conftest.$ac_objext \
11251    conftest$ac_exeext conftest.$ac_ext
11252            fi
11253            CPPFLAGS="$gt_save_CPPFLAGS"
11254            LIBS="$gt_save_LIBS"
11255fi
11256eval ac_res=\$$gt_func_gnugettext_libintl
11257	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11258$as_echo "$ac_res" >&6; }
11259        fi
11260
11261                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11262           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11263                && test "$PACKAGE" != gettext-runtime \
11264                && test "$PACKAGE" != gettext-tools; }; then
11265          gt_use_preinstalled_gnugettext=yes
11266        else
11267                    LIBINTL=
11268          LTLIBINTL=
11269          INCINTL=
11270        fi
11271
11272
11273        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11274                              nls_cv_use_gnu_gettext=yes
11275        fi
11276      fi
11277
11278      if test "$nls_cv_use_gnu_gettext" = "yes"; then
11279                BUILD_INCLUDED_LIBINTL=yes
11280        USE_INCLUDED_LIBINTL=yes
11281        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11282        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11283        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11284      fi
11285
11286      CATOBJEXT=
11287      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11288         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11289                CATOBJEXT=.gmo
11290      fi
11291
11292
11293    if test -n "$INTL_MACOSX_LIBS"; then
11294      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11295         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11296                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11297        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11298      fi
11299    fi
11300
11301    if test "$gt_use_preinstalled_gnugettext" = "yes" \
11302       || test "$nls_cv_use_gnu_gettext" = "yes"; then
11303
11304$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11305
11306    else
11307      USE_NLS=no
11308    fi
11309  fi
11310
11311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11312$as_echo_n "checking whether to use NLS... " >&6; }
11313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11314$as_echo "$USE_NLS" >&6; }
11315  if test "$USE_NLS" = "yes"; then
11316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11317$as_echo_n "checking where the gettext function comes from... " >&6; }
11318    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11319      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11320        gt_source="external libintl"
11321      else
11322        gt_source="libc"
11323      fi
11324    else
11325      gt_source="included intl directory"
11326    fi
11327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11328$as_echo "$gt_source" >&6; }
11329  fi
11330
11331  if test "$USE_NLS" = "yes"; then
11332
11333    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11334      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11335        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11336$as_echo_n "checking how to link with libintl... " >&6; }
11337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11338$as_echo "$LIBINTL" >&6; }
11339
11340  for element in $INCINTL; do
11341    haveit=
11342    for x in $CPPFLAGS; do
11343
11344  acl_save_prefix="$prefix"
11345  prefix="$acl_final_prefix"
11346  acl_save_exec_prefix="$exec_prefix"
11347  exec_prefix="$acl_final_exec_prefix"
11348  eval x=\"$x\"
11349  exec_prefix="$acl_save_exec_prefix"
11350  prefix="$acl_save_prefix"
11351
11352      if test "X$x" = "X$element"; then
11353        haveit=yes
11354        break
11355      fi
11356    done
11357    if test -z "$haveit"; then
11358      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11359    fi
11360  done
11361
11362      fi
11363
11364
11365$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11366
11367
11368$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11369
11370    fi
11371
11372        POSUB=po
11373  fi
11374
11375
11376            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11377      BUILD_INCLUDED_LIBINTL=yes
11378    fi
11379
11380
11381
11382
11383
11384        nls_cv_header_intl=
11385    nls_cv_header_libgt=
11386
11387        DATADIRNAME=share
11388
11389
11390        INSTOBJEXT=.mo
11391
11392
11393        GENCAT=gencat
11394
11395
11396        INTLOBJS=
11397    if test "$USE_INCLUDED_LIBINTL" = yes; then
11398      INTLOBJS="\$(GETTOBJS)"
11399    fi
11400
11401
11402        INTL_LIBTOOL_SUFFIX_PREFIX=
11403
11404
11405
11406    INTLLIBS="$LIBINTL"
11407
11408
11409
11410
11411
11412
11413
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MSGFMT understands msgctxt (message context)" >&5
11415$as_echo_n "checking if $MSGFMT understands msgctxt (message context)... " >&6; }
11416cat > conftest.po <<EOF
11417#line 11417 "configure"
11418#. -- Info tab
11419#: myfile.c:lineno
11420msgctxt "tab"
11421msgid "Info"
11422msgstr ""
11423EOF
11424if ($MSGFMT -o conftest.gmo conftest.po >/dev/null; exit) 2>&5
11425then
11426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11427$as_echo "yes" >&6; }
11428else
11429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
11431  as_fn_error $? "It appears that your gettext tools ($MSGFMT) is too old.
11432You should install a newer gettext tools (>= 0.19.3 suggested).  You may
11433specify the location of the msgfmt executible with MSGFMT=/path/to/msgfmt
11434on the configure command line.
11435" "$LINENO" 5
11436fi
11437rm -f conftest.po conftest.gmo
11438
11439
11440
11441case "$am__api_version" in
11442    1.01234)
11443	as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
11444    ;;
11445    *)
11446    ;;
11447esac
11448
11449if test -n "0.35.0"; then
11450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
11451$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
11452
11453    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11454    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
11455    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11456
11457    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
11458$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
11459    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
11460	as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
11461fi
11462
11463# Extract the first word of "intltool-update", so it can be a program name with args.
11464set dummy intltool-update; ac_word=$2
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470  case $INTLTOOL_UPDATE in
11471  [\\/]* | ?:[\\/]*)
11472  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
11473  ;;
11474  *)
11475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478  IFS=$as_save_IFS
11479  test -z "$as_dir" && as_dir=.
11480    for ac_exec_ext in '' $ac_executable_extensions; do
11481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
11483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484    break 2
11485  fi
11486done
11487  done
11488IFS=$as_save_IFS
11489
11490  ;;
11491esac
11492fi
11493INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
11494if test -n "$INTLTOOL_UPDATE"; then
11495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
11496$as_echo "$INTLTOOL_UPDATE" >&6; }
11497else
11498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502
11503# Extract the first word of "intltool-merge", so it can be a program name with args.
11504set dummy intltool-merge; ac_word=$2
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
11507if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  case $INTLTOOL_MERGE in
11511  [\\/]* | ?:[\\/]*)
11512  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
11513  ;;
11514  *)
11515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518  IFS=$as_save_IFS
11519  test -z "$as_dir" && as_dir=.
11520    for ac_exec_ext in '' $ac_executable_extensions; do
11521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
11523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524    break 2
11525  fi
11526done
11527  done
11528IFS=$as_save_IFS
11529
11530  ;;
11531esac
11532fi
11533INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
11534if test -n "$INTLTOOL_MERGE"; then
11535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
11536$as_echo "$INTLTOOL_MERGE" >&6; }
11537else
11538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
11540fi
11541
11542
11543# Extract the first word of "intltool-extract", so it can be a program name with args.
11544set dummy intltool-extract; ac_word=$2
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546$as_echo_n "checking for $ac_word... " >&6; }
11547if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
11548  $as_echo_n "(cached) " >&6
11549else
11550  case $INTLTOOL_EXTRACT in
11551  [\\/]* | ?:[\\/]*)
11552  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
11553  ;;
11554  *)
11555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558  IFS=$as_save_IFS
11559  test -z "$as_dir" && as_dir=.
11560    for ac_exec_ext in '' $ac_executable_extensions; do
11561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
11563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564    break 2
11565  fi
11566done
11567  done
11568IFS=$as_save_IFS
11569
11570  ;;
11571esac
11572fi
11573INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
11574if test -n "$INTLTOOL_EXTRACT"; then
11575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
11576$as_echo "$INTLTOOL_EXTRACT" >&6; }
11577else
11578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579$as_echo "no" >&6; }
11580fi
11581
11582
11583if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
11584    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
11585fi
11586
11587  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11588INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11589     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11590     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11591      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
11592     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11593   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11594    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11595INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11596       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11597      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11598      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
11599      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11600      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11601    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11602  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11603    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11604    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11605   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703# Check the gettext tools to make sure they are GNU
11704# Extract the first word of "xgettext", so it can be a program name with args.
11705set dummy xgettext; ac_word=$2
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
11708if ${ac_cv_path_XGETTEXT+:} false; then :
11709  $as_echo_n "(cached) " >&6
11710else
11711  case $XGETTEXT in
11712  [\\/]* | ?:[\\/]*)
11713  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11714  ;;
11715  *)
11716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719  IFS=$as_save_IFS
11720  test -z "$as_dir" && as_dir=.
11721    for ac_exec_ext in '' $ac_executable_extensions; do
11722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
11724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725    break 2
11726  fi
11727done
11728  done
11729IFS=$as_save_IFS
11730
11731  ;;
11732esac
11733fi
11734XGETTEXT=$ac_cv_path_XGETTEXT
11735if test -n "$XGETTEXT"; then
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11737$as_echo "$XGETTEXT" >&6; }
11738else
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
11741fi
11742
11743
11744# Extract the first word of "msgmerge", so it can be a program name with args.
11745set dummy msgmerge; ac_word=$2
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
11748if ${ac_cv_path_MSGMERGE+:} false; then :
11749  $as_echo_n "(cached) " >&6
11750else
11751  case $MSGMERGE in
11752  [\\/]* | ?:[\\/]*)
11753  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11754  ;;
11755  *)
11756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $PATH
11758do
11759  IFS=$as_save_IFS
11760  test -z "$as_dir" && as_dir=.
11761    for ac_exec_ext in '' $ac_executable_extensions; do
11762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
11764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765    break 2
11766  fi
11767done
11768  done
11769IFS=$as_save_IFS
11770
11771  ;;
11772esac
11773fi
11774MSGMERGE=$ac_cv_path_MSGMERGE
11775if test -n "$MSGMERGE"; then
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11777$as_echo "$MSGMERGE" >&6; }
11778else
11779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
11781fi
11782
11783
11784# Extract the first word of "msgfmt", so it can be a program name with args.
11785set dummy msgfmt; ac_word=$2
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
11788if ${ac_cv_path_MSGFMT+:} false; then :
11789  $as_echo_n "(cached) " >&6
11790else
11791  case $MSGFMT in
11792  [\\/]* | ?:[\\/]*)
11793  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11794  ;;
11795  *)
11796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799  IFS=$as_save_IFS
11800  test -z "$as_dir" && as_dir=.
11801    for ac_exec_ext in '' $ac_executable_extensions; do
11802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
11804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805    break 2
11806  fi
11807done
11808  done
11809IFS=$as_save_IFS
11810
11811  ;;
11812esac
11813fi
11814MSGFMT=$ac_cv_path_MSGFMT
11815if test -n "$MSGFMT"; then
11816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11817$as_echo "$MSGFMT" >&6; }
11818else
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820$as_echo "no" >&6; }
11821fi
11822
11823
11824# Extract the first word of "gmsgfmt", so it can be a program name with args.
11825set dummy gmsgfmt; ac_word=$2
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827$as_echo_n "checking for $ac_word... " >&6; }
11828if ${ac_cv_path_GMSGFMT+:} false; then :
11829  $as_echo_n "(cached) " >&6
11830else
11831  case $GMSGFMT in
11832  [\\/]* | ?:[\\/]*)
11833  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11834  ;;
11835  *)
11836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839  IFS=$as_save_IFS
11840  test -z "$as_dir" && as_dir=.
11841    for ac_exec_ext in '' $ac_executable_extensions; do
11842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845    break 2
11846  fi
11847done
11848  done
11849IFS=$as_save_IFS
11850
11851  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11852  ;;
11853esac
11854fi
11855GMSGFMT=$ac_cv_path_GMSGFMT
11856if test -n "$GMSGFMT"; then
11857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11858$as_echo "$GMSGFMT" >&6; }
11859else
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
11862fi
11863
11864
11865if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
11866    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
11867fi
11868xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
11869mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
11870mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
11871if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
11872    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
11873fi
11874
11875# Extract the first word of "perl", so it can be a program name with args.
11876set dummy perl; ac_word=$2
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878$as_echo_n "checking for $ac_word... " >&6; }
11879if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
11880  $as_echo_n "(cached) " >&6
11881else
11882  case $INTLTOOL_PERL in
11883  [\\/]* | ?:[\\/]*)
11884  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
11885  ;;
11886  *)
11887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888for as_dir in $PATH
11889do
11890  IFS=$as_save_IFS
11891  test -z "$as_dir" && as_dir=.
11892    for ac_exec_ext in '' $ac_executable_extensions; do
11893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
11895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896    break 2
11897  fi
11898done
11899  done
11900IFS=$as_save_IFS
11901
11902  ;;
11903esac
11904fi
11905INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
11906if test -n "$INTLTOOL_PERL"; then
11907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
11908$as_echo "$INTLTOOL_PERL" >&6; }
11909else
11910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
11912fi
11913
11914
11915if test -z "$INTLTOOL_PERL"; then
11916   as_fn_error $? "perl not found" "$LINENO" 5
11917fi
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
11919$as_echo_n "checking for perl >= 5.8.1... " >&6; }
11920$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
11921if test $? -ne 0; then
11922   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
11923else
11924   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
11926$as_echo "$IT_PERL_VERSION" >&6; }
11927fi
11928if test "x" != "xno-xml"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
11930$as_echo_n "checking for XML::Parser... " >&6; }
11931   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
11932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11933$as_echo "ok" >&6; }
11934   else
11935       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
11936   fi
11937fi
11938
11939# Substitute ALL_LINGUAS so we can use it in po/Makefile
11940
11941
11942# Set DATADIRNAME correctly if it is not set yet
11943# (copied from glib-gettext.m4)
11944if test -z "$DATADIRNAME"; then
11945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h.  */
11947
11948int
11949main ()
11950{
11951extern int _nl_msg_cat_cntr;
11952                       return _nl_msg_cat_cntr
11953  ;
11954  return 0;
11955}
11956_ACEOF
11957if ac_fn_c_try_link "$LINENO"; then :
11958  DATADIRNAME=share
11959else
11960  case $host in
11961    *-*-solaris*)
11962                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11963if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
11964  DATADIRNAME=share
11965else
11966  DATADIRNAME=lib
11967fi
11968
11969    ;;
11970    *)
11971    DATADIRNAME=lib
11972    ;;
11973    esac
11974fi
11975rm -f core conftest.err conftest.$ac_objext \
11976    conftest$ac_exeext conftest.$ac_ext
11977fi
11978
11979
11980
11981
11982
11983
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11985$as_echo_n "checking for inline... " >&6; }
11986if ${ac_cv_c_inline+:} false; then :
11987  $as_echo_n "(cached) " >&6
11988else
11989  ac_cv_c_inline=no
11990for ac_kw in inline __inline__ __inline; do
11991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993#ifndef __cplusplus
11994typedef int foo_t;
11995static $ac_kw foo_t static_foo () {return 0; }
11996$ac_kw foo_t foo () {return 0; }
11997#endif
11998
11999_ACEOF
12000if ac_fn_c_try_compile "$LINENO"; then :
12001  ac_cv_c_inline=$ac_kw
12002fi
12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004  test "$ac_cv_c_inline" != no && break
12005done
12006
12007fi
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12009$as_echo "$ac_cv_c_inline" >&6; }
12010
12011case $ac_cv_c_inline in
12012  inline | yes) ;;
12013  *)
12014    case $ac_cv_c_inline in
12015      no) ac_val=;;
12016      *) ac_val=$ac_cv_c_inline;;
12017    esac
12018    cat >>confdefs.h <<_ACEOF
12019#ifndef __cplusplus
12020#define inline $ac_val
12021#endif
12022_ACEOF
12023    ;;
12024esac
12025
12026   case $ac_cv_prog_cc_stdc in #(
12027  no) :
12028    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
12029  *) :
12030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12031$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12032if ${ac_cv_prog_cc_c99+:} false; then :
12033  $as_echo_n "(cached) " >&6
12034else
12035  ac_cv_prog_cc_c99=no
12036ac_save_CC=$CC
12037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038/* end confdefs.h.  */
12039#include <stdarg.h>
12040#include <stdbool.h>
12041#include <stdlib.h>
12042#include <wchar.h>
12043#include <stdio.h>
12044
12045// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12046#define debug(...) fprintf (stderr, __VA_ARGS__)
12047#define showlist(...) puts (#__VA_ARGS__)
12048#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12049static void
12050test_varargs_macros (void)
12051{
12052  int x = 1234;
12053  int y = 5678;
12054  debug ("Flag");
12055  debug ("X = %d\n", x);
12056  showlist (The first, second, and third items.);
12057  report (x>y, "x is %d but y is %d", x, y);
12058}
12059
12060// Check long long types.
12061#define BIG64 18446744073709551615ull
12062#define BIG32 4294967295ul
12063#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12064#if !BIG_OK
12065  your preprocessor is broken;
12066#endif
12067#if BIG_OK
12068#else
12069  your preprocessor is broken;
12070#endif
12071static long long int bignum = -9223372036854775807LL;
12072static unsigned long long int ubignum = BIG64;
12073
12074struct incomplete_array
12075{
12076  int datasize;
12077  double data[];
12078};
12079
12080struct named_init {
12081  int number;
12082  const wchar_t *name;
12083  double average;
12084};
12085
12086typedef const char *ccp;
12087
12088static inline int
12089test_restrict (ccp restrict text)
12090{
12091  // See if C++-style comments work.
12092  // Iterate through items via the restricted pointer.
12093  // Also check for declarations in for loops.
12094  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12095    continue;
12096  return 0;
12097}
12098
12099// Check varargs and va_copy.
12100static void
12101test_varargs (const char *format, ...)
12102{
12103  va_list args;
12104  va_start (args, format);
12105  va_list args_copy;
12106  va_copy (args_copy, args);
12107
12108  const char *str;
12109  int number;
12110  float fnumber;
12111
12112  while (*format)
12113    {
12114      switch (*format++)
12115	{
12116	case 's': // string
12117	  str = va_arg (args_copy, const char *);
12118	  break;
12119	case 'd': // int
12120	  number = va_arg (args_copy, int);
12121	  break;
12122	case 'f': // float
12123	  fnumber = va_arg (args_copy, double);
12124	  break;
12125	default:
12126	  break;
12127	}
12128    }
12129  va_end (args_copy);
12130  va_end (args);
12131}
12132
12133int
12134main ()
12135{
12136
12137  // Check bool.
12138  _Bool success = false;
12139
12140  // Check restrict.
12141  if (test_restrict ("String literal") == 0)
12142    success = true;
12143  char *restrict newvar = "Another string";
12144
12145  // Check varargs.
12146  test_varargs ("s, d' f .", "string", 65, 34.234);
12147  test_varargs_macros ();
12148
12149  // Check flexible array members.
12150  struct incomplete_array *ia =
12151    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12152  ia->datasize = 10;
12153  for (int i = 0; i < ia->datasize; ++i)
12154    ia->data[i] = i * 1.234;
12155
12156  // Check named initializers.
12157  struct named_init ni = {
12158    .number = 34,
12159    .name = L"Test wide string",
12160    .average = 543.34343,
12161  };
12162
12163  ni.number = 58;
12164
12165  int dynamic_array[ni.number];
12166  dynamic_array[ni.number - 1] = 543;
12167
12168  // work around unused variable warnings
12169  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12170	  || dynamic_array[ni.number - 1] != 543);
12171
12172  ;
12173  return 0;
12174}
12175_ACEOF
12176for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12177do
12178  CC="$ac_save_CC $ac_arg"
12179  if ac_fn_c_try_compile "$LINENO"; then :
12180  ac_cv_prog_cc_c99=$ac_arg
12181fi
12182rm -f core conftest.err conftest.$ac_objext
12183  test "x$ac_cv_prog_cc_c99" != "xno" && break
12184done
12185rm -f conftest.$ac_ext
12186CC=$ac_save_CC
12187
12188fi
12189# AC_CACHE_VAL
12190case "x$ac_cv_prog_cc_c99" in
12191  x)
12192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12193$as_echo "none needed" >&6; } ;;
12194  xno)
12195    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12196$as_echo "unsupported" >&6; } ;;
12197  *)
12198    CC="$CC $ac_cv_prog_cc_c99"
12199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12200$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12201esac
12202if test "x$ac_cv_prog_cc_c99" != xno; then :
12203  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
12204else
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12206$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12207if ${ac_cv_prog_cc_c89+:} false; then :
12208  $as_echo_n "(cached) " >&6
12209else
12210  ac_cv_prog_cc_c89=no
12211ac_save_CC=$CC
12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h.  */
12214#include <stdarg.h>
12215#include <stdio.h>
12216struct stat;
12217/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12218struct buf { int x; };
12219FILE * (*rcsopen) (struct buf *, struct stat *, int);
12220static char *e (p, i)
12221     char **p;
12222     int i;
12223{
12224  return p[i];
12225}
12226static char *f (char * (*g) (char **, int), char **p, ...)
12227{
12228  char *s;
12229  va_list v;
12230  va_start (v,p);
12231  s = g (p, va_arg (v,int));
12232  va_end (v);
12233  return s;
12234}
12235
12236/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12237   function prototypes and stuff, but not '\xHH' hex character constants.
12238   These don't provoke an error unfortunately, instead are silently treated
12239   as 'x'.  The following induces an error, until -std is added to get
12240   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12241   array size at least.  It's necessary to write '\x00'==0 to get something
12242   that's true only with -std.  */
12243int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12244
12245/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12246   inside strings and character constants.  */
12247#define FOO(x) 'x'
12248int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12249
12250int test (int i, double x);
12251struct s1 {int (*f) (int a);};
12252struct s2 {int (*f) (double a);};
12253int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12254int argc;
12255char **argv;
12256int
12257main ()
12258{
12259return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12260  ;
12261  return 0;
12262}
12263_ACEOF
12264for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12265	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12266do
12267  CC="$ac_save_CC $ac_arg"
12268  if ac_fn_c_try_compile "$LINENO"; then :
12269  ac_cv_prog_cc_c89=$ac_arg
12270fi
12271rm -f core conftest.err conftest.$ac_objext
12272  test "x$ac_cv_prog_cc_c89" != "xno" && break
12273done
12274rm -f conftest.$ac_ext
12275CC=$ac_save_CC
12276
12277fi
12278# AC_CACHE_VAL
12279case "x$ac_cv_prog_cc_c89" in
12280  x)
12281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12282$as_echo "none needed" >&6; } ;;
12283  xno)
12284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12285$as_echo "unsupported" >&6; } ;;
12286  *)
12287    CC="$CC $ac_cv_prog_cc_c89"
12288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12289$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12290esac
12291if test "x$ac_cv_prog_cc_c89" != xno; then :
12292  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
12293else
12294  ac_cv_prog_cc_stdc=no
12295fi
12296
12297fi
12298 ;;
12299esac
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
12301$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
12302  if ${ac_cv_prog_cc_stdc+:} false; then :
12303  $as_echo_n "(cached) " >&6
12304fi
12305
12306  case $ac_cv_prog_cc_stdc in #(
12307  no) :
12308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12309$as_echo "unsupported" >&6; } ;; #(
12310  '') :
12311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12312$as_echo "none needed" >&6; } ;; #(
12313  *) :
12314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
12315$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
12316esac
12317
12318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12319$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12320if ${ac_cv_prog_cc_c99+:} false; then :
12321  $as_echo_n "(cached) " >&6
12322else
12323  ac_cv_prog_cc_c99=no
12324ac_save_CC=$CC
12325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326/* end confdefs.h.  */
12327#include <stdarg.h>
12328#include <stdbool.h>
12329#include <stdlib.h>
12330#include <wchar.h>
12331#include <stdio.h>
12332
12333// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12334#define debug(...) fprintf (stderr, __VA_ARGS__)
12335#define showlist(...) puts (#__VA_ARGS__)
12336#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12337static void
12338test_varargs_macros (void)
12339{
12340  int x = 1234;
12341  int y = 5678;
12342  debug ("Flag");
12343  debug ("X = %d\n", x);
12344  showlist (The first, second, and third items.);
12345  report (x>y, "x is %d but y is %d", x, y);
12346}
12347
12348// Check long long types.
12349#define BIG64 18446744073709551615ull
12350#define BIG32 4294967295ul
12351#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12352#if !BIG_OK
12353  your preprocessor is broken;
12354#endif
12355#if BIG_OK
12356#else
12357  your preprocessor is broken;
12358#endif
12359static long long int bignum = -9223372036854775807LL;
12360static unsigned long long int ubignum = BIG64;
12361
12362struct incomplete_array
12363{
12364  int datasize;
12365  double data[];
12366};
12367
12368struct named_init {
12369  int number;
12370  const wchar_t *name;
12371  double average;
12372};
12373
12374typedef const char *ccp;
12375
12376static inline int
12377test_restrict (ccp restrict text)
12378{
12379  // See if C++-style comments work.
12380  // Iterate through items via the restricted pointer.
12381  // Also check for declarations in for loops.
12382  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12383    continue;
12384  return 0;
12385}
12386
12387// Check varargs and va_copy.
12388static void
12389test_varargs (const char *format, ...)
12390{
12391  va_list args;
12392  va_start (args, format);
12393  va_list args_copy;
12394  va_copy (args_copy, args);
12395
12396  const char *str;
12397  int number;
12398  float fnumber;
12399
12400  while (*format)
12401    {
12402      switch (*format++)
12403	{
12404	case 's': // string
12405	  str = va_arg (args_copy, const char *);
12406	  break;
12407	case 'd': // int
12408	  number = va_arg (args_copy, int);
12409	  break;
12410	case 'f': // float
12411	  fnumber = va_arg (args_copy, double);
12412	  break;
12413	default:
12414	  break;
12415	}
12416    }
12417  va_end (args_copy);
12418  va_end (args);
12419}
12420
12421int
12422main ()
12423{
12424
12425  // Check bool.
12426  _Bool success = false;
12427
12428  // Check restrict.
12429  if (test_restrict ("String literal") == 0)
12430    success = true;
12431  char *restrict newvar = "Another string";
12432
12433  // Check varargs.
12434  test_varargs ("s, d' f .", "string", 65, 34.234);
12435  test_varargs_macros ();
12436
12437  // Check flexible array members.
12438  struct incomplete_array *ia =
12439    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12440  ia->datasize = 10;
12441  for (int i = 0; i < ia->datasize; ++i)
12442    ia->data[i] = i * 1.234;
12443
12444  // Check named initializers.
12445  struct named_init ni = {
12446    .number = 34,
12447    .name = L"Test wide string",
12448    .average = 543.34343,
12449  };
12450
12451  ni.number = 58;
12452
12453  int dynamic_array[ni.number];
12454  dynamic_array[ni.number - 1] = 543;
12455
12456  // work around unused variable warnings
12457  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12458	  || dynamic_array[ni.number - 1] != 543);
12459
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12465do
12466  CC="$ac_save_CC $ac_arg"
12467  if ac_fn_c_try_compile "$LINENO"; then :
12468  ac_cv_prog_cc_c99=$ac_arg
12469fi
12470rm -f core conftest.err conftest.$ac_objext
12471  test "x$ac_cv_prog_cc_c99" != "xno" && break
12472done
12473rm -f conftest.$ac_ext
12474CC=$ac_save_CC
12475
12476fi
12477# AC_CACHE_VAL
12478case "x$ac_cv_prog_cc_c99" in
12479  x)
12480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12481$as_echo "none needed" >&6; } ;;
12482  xno)
12483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12484$as_echo "unsupported" >&6; } ;;
12485  *)
12486    CC="$CC $ac_cv_prog_cc_c99"
12487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12488$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12489esac
12490if test "x$ac_cv_prog_cc_c99" != xno; then :
12491
12492fi
12493
12494
12495if test "x$CC" != xcc; then
12496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12497$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12498else
12499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12500$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12501fi
12502set dummy $CC; ac_cc=`$as_echo "$2" |
12503		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12504if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h.  */
12509
12510int
12511main ()
12512{
12513
12514  ;
12515  return 0;
12516}
12517_ACEOF
12518# Make sure it works both with $CC and with simple cc.
12519# We do the test twice because some compilers refuse to overwrite an
12520# existing .o file with -o, though they will create one.
12521ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12522rm -f conftest2.*
12523if { { case "(($ac_try" in
12524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525  *) ac_try_echo=$ac_try;;
12526esac
12527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12528$as_echo "$ac_try_echo"; } >&5
12529  (eval "$ac_try") 2>&5
12530  ac_status=$?
12531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532  test $ac_status = 0; } &&
12533   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535  *) ac_try_echo=$ac_try;;
12536esac
12537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12538$as_echo "$ac_try_echo"; } >&5
12539  (eval "$ac_try") 2>&5
12540  ac_status=$?
12541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12542  test $ac_status = 0; };
12543then
12544  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12545  if test "x$CC" != xcc; then
12546    # Test first that cc exists at all.
12547    if { ac_try='cc -c conftest.$ac_ext >&5'
12548  { { case "(($ac_try" in
12549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550  *) ac_try_echo=$ac_try;;
12551esac
12552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12553$as_echo "$ac_try_echo"; } >&5
12554  (eval "$ac_try") 2>&5
12555  ac_status=$?
12556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12557  test $ac_status = 0; }; }; then
12558      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12559      rm -f conftest2.*
12560      if { { case "(($ac_try" in
12561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562  *) ac_try_echo=$ac_try;;
12563esac
12564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12565$as_echo "$ac_try_echo"; } >&5
12566  (eval "$ac_try") 2>&5
12567  ac_status=$?
12568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12569  test $ac_status = 0; } &&
12570	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572  *) ac_try_echo=$ac_try;;
12573esac
12574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12575$as_echo "$ac_try_echo"; } >&5
12576  (eval "$ac_try") 2>&5
12577  ac_status=$?
12578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579  test $ac_status = 0; };
12580      then
12581	# cc works too.
12582	:
12583      else
12584	# cc exists but doesn't like -o.
12585	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12586      fi
12587    fi
12588  fi
12589else
12590  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12591fi
12592rm -f core conftest*
12593
12594fi
12595if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12597$as_echo "yes" >&6; }
12598else
12599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601
12602$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12603
12604fi
12605
12606# FIXME: we rely on the cache variable name because
12607# there is no other way.
12608set dummy $CC
12609am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12610eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12611if test "$am_t" != yes; then
12612   # Losing compiler, so override with the script.
12613   # FIXME: It is wrong to rewrite CC.
12614   # But if we don't then we get into trouble of one sort or another.
12615   # A longer-term fix would be to have automake use am__CC in this case,
12616   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12617   CC="$am_aux_dir/compile $CC"
12618fi
12619
12620
12621ac_ext=c
12622ac_cpp='$CPP $CPPFLAGS'
12623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12625ac_compiler_gnu=$ac_cv_c_compiler_gnu
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12627$as_echo_n "checking how to run the C preprocessor... " >&6; }
12628# On Suns, sometimes $CPP names a directory.
12629if test -n "$CPP" && test -d "$CPP"; then
12630  CPP=
12631fi
12632if test -z "$CPP"; then
12633  if ${ac_cv_prog_CPP+:} false; then :
12634  $as_echo_n "(cached) " >&6
12635else
12636      # Double quotes because CPP needs to be expanded
12637    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12638    do
12639      ac_preproc_ok=false
12640for ac_c_preproc_warn_flag in '' yes
12641do
12642  # Use a header file that comes with gcc, so configuring glibc
12643  # with a fresh cross-compiler works.
12644  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12645  # <limits.h> exists even on freestanding compilers.
12646  # On the NeXT, cc -E runs the code through the compiler's parser,
12647  # not just through cpp. "Syntax error" is here to catch this case.
12648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h.  */
12650#ifdef __STDC__
12651# include <limits.h>
12652#else
12653# include <assert.h>
12654#endif
12655		     Syntax error
12656_ACEOF
12657if ac_fn_c_try_cpp "$LINENO"; then :
12658
12659else
12660  # Broken: fails on valid input.
12661continue
12662fi
12663rm -f conftest.err conftest.i conftest.$ac_ext
12664
12665  # OK, works on sane cases.  Now check whether nonexistent headers
12666  # can be detected and how.
12667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h.  */
12669#include <ac_nonexistent.h>
12670_ACEOF
12671if ac_fn_c_try_cpp "$LINENO"; then :
12672  # Broken: success on invalid input.
12673continue
12674else
12675  # Passes both tests.
12676ac_preproc_ok=:
12677break
12678fi
12679rm -f conftest.err conftest.i conftest.$ac_ext
12680
12681done
12682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12683rm -f conftest.i conftest.err conftest.$ac_ext
12684if $ac_preproc_ok; then :
12685  break
12686fi
12687
12688    done
12689    ac_cv_prog_CPP=$CPP
12690
12691fi
12692  CPP=$ac_cv_prog_CPP
12693else
12694  ac_cv_prog_CPP=$CPP
12695fi
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12697$as_echo "$CPP" >&6; }
12698ac_preproc_ok=false
12699for ac_c_preproc_warn_flag in '' yes
12700do
12701  # Use a header file that comes with gcc, so configuring glibc
12702  # with a fresh cross-compiler works.
12703  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12704  # <limits.h> exists even on freestanding compilers.
12705  # On the NeXT, cc -E runs the code through the compiler's parser,
12706  # not just through cpp. "Syntax error" is here to catch this case.
12707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708/* end confdefs.h.  */
12709#ifdef __STDC__
12710# include <limits.h>
12711#else
12712# include <assert.h>
12713#endif
12714		     Syntax error
12715_ACEOF
12716if ac_fn_c_try_cpp "$LINENO"; then :
12717
12718else
12719  # Broken: fails on valid input.
12720continue
12721fi
12722rm -f conftest.err conftest.i conftest.$ac_ext
12723
12724  # OK, works on sane cases.  Now check whether nonexistent headers
12725  # can be detected and how.
12726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727/* end confdefs.h.  */
12728#include <ac_nonexistent.h>
12729_ACEOF
12730if ac_fn_c_try_cpp "$LINENO"; then :
12731  # Broken: success on invalid input.
12732continue
12733else
12734  # Passes both tests.
12735ac_preproc_ok=:
12736break
12737fi
12738rm -f conftest.err conftest.i conftest.$ac_ext
12739
12740done
12741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12742rm -f conftest.i conftest.err conftest.$ac_ext
12743if $ac_preproc_ok; then :
12744
12745else
12746  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12748as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12749See \`config.log' for more details" "$LINENO" 5; }
12750fi
12751
12752ac_ext=c
12753ac_cpp='$CPP $CPPFLAGS'
12754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that C compiler supports C99" >&5
12760$as_echo_n "checking that C compiler supports C99... " >&6; }
12761if test "X$ac_cv_prog_cc_c99" = "Xno"; then
12762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
12764  as_fn_error $? "A C99-compliant compiler is requred" "$LINENO" 5
12765else
12766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12767$as_echo "yes" >&6; }
12768fi
12769
12770for ac_prog in gawk mawk nawk awk
12771do
12772  # Extract the first word of "$ac_prog", so it can be a program name with args.
12773set dummy $ac_prog; ac_word=$2
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
12776if ${ac_cv_prog_AWK+:} false; then :
12777  $as_echo_n "(cached) " >&6
12778else
12779  if test -n "$AWK"; then
12780  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12781else
12782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783for as_dir in $PATH
12784do
12785  IFS=$as_save_IFS
12786  test -z "$as_dir" && as_dir=.
12787    for ac_exec_ext in '' $ac_executable_extensions; do
12788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789    ac_cv_prog_AWK="$ac_prog"
12790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791    break 2
12792  fi
12793done
12794  done
12795IFS=$as_save_IFS
12796
12797fi
12798fi
12799AWK=$ac_cv_prog_AWK
12800if test -n "$AWK"; then
12801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12802$as_echo "$AWK" >&6; }
12803else
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
12806fi
12807
12808
12809  test -n "$AWK" && break
12810done
12811
12812
12813
12814for ac_prog in flex lex
12815do
12816  # Extract the first word of "$ac_prog", so it can be a program name with args.
12817set dummy $ac_prog; ac_word=$2
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819$as_echo_n "checking for $ac_word... " >&6; }
12820if ${ac_cv_prog_LEX+:} false; then :
12821  $as_echo_n "(cached) " >&6
12822else
12823  if test -n "$LEX"; then
12824  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12825else
12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in $PATH
12828do
12829  IFS=$as_save_IFS
12830  test -z "$as_dir" && as_dir=.
12831    for ac_exec_ext in '' $ac_executable_extensions; do
12832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833    ac_cv_prog_LEX="$ac_prog"
12834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835    break 2
12836  fi
12837done
12838  done
12839IFS=$as_save_IFS
12840
12841fi
12842fi
12843LEX=$ac_cv_prog_LEX
12844if test -n "$LEX"; then
12845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12846$as_echo "$LEX" >&6; }
12847else
12848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
12850fi
12851
12852
12853  test -n "$LEX" && break
12854done
12855test -n "$LEX" || LEX=":"
12856
12857if test "x$LEX" != "x:"; then
12858  cat >conftest.l <<_ACEOF
12859%%
12860a { ECHO; }
12861b { REJECT; }
12862c { yymore (); }
12863d { yyless (1); }
12864e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12865    yyless ((input () != 0)); }
12866f { unput (yytext[0]); }
12867. { BEGIN INITIAL; }
12868%%
12869#ifdef YYTEXT_POINTER
12870extern char *yytext;
12871#endif
12872int
12873main (void)
12874{
12875  return ! yylex () + ! yywrap ();
12876}
12877_ACEOF
12878{ { ac_try="$LEX conftest.l"
12879case "(($ac_try" in
12880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881  *) ac_try_echo=$ac_try;;
12882esac
12883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12884$as_echo "$ac_try_echo"; } >&5
12885  (eval "$LEX conftest.l") 2>&5
12886  ac_status=$?
12887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888  test $ac_status = 0; }
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12890$as_echo_n "checking lex output file root... " >&6; }
12891if ${ac_cv_prog_lex_root+:} false; then :
12892  $as_echo_n "(cached) " >&6
12893else
12894
12895if test -f lex.yy.c; then
12896  ac_cv_prog_lex_root=lex.yy
12897elif test -f lexyy.c; then
12898  ac_cv_prog_lex_root=lexyy
12899else
12900  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12901fi
12902fi
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12904$as_echo "$ac_cv_prog_lex_root" >&6; }
12905LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12906
12907if test -z "${LEXLIB+set}"; then
12908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12909$as_echo_n "checking lex library... " >&6; }
12910if ${ac_cv_lib_lex+:} false; then :
12911  $as_echo_n "(cached) " >&6
12912else
12913
12914    ac_save_LIBS=$LIBS
12915    ac_cv_lib_lex='none needed'
12916    for ac_lib in '' -lfl -ll; do
12917      LIBS="$ac_lib $ac_save_LIBS"
12918      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919/* end confdefs.h.  */
12920`cat $LEX_OUTPUT_ROOT.c`
12921_ACEOF
12922if ac_fn_c_try_link "$LINENO"; then :
12923  ac_cv_lib_lex=$ac_lib
12924fi
12925rm -f core conftest.err conftest.$ac_objext \
12926    conftest$ac_exeext conftest.$ac_ext
12927      test "$ac_cv_lib_lex" != 'none needed' && break
12928    done
12929    LIBS=$ac_save_LIBS
12930
12931fi
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12933$as_echo "$ac_cv_lib_lex" >&6; }
12934  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12935fi
12936
12937
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12939$as_echo_n "checking whether yytext is a pointer... " >&6; }
12940if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12941  $as_echo_n "(cached) " >&6
12942else
12943  # POSIX says lex can declare yytext either as a pointer or an array; the
12944# default is implementation-dependent.  Figure out which it is, since
12945# not all implementations provide the %pointer and %array declarations.
12946ac_cv_prog_lex_yytext_pointer=no
12947ac_save_LIBS=$LIBS
12948LIBS="$LEXLIB $ac_save_LIBS"
12949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h.  */
12951
12952  #define YYTEXT_POINTER 1
12953`cat $LEX_OUTPUT_ROOT.c`
12954_ACEOF
12955if ac_fn_c_try_link "$LINENO"; then :
12956  ac_cv_prog_lex_yytext_pointer=yes
12957fi
12958rm -f core conftest.err conftest.$ac_objext \
12959    conftest$ac_exeext conftest.$ac_ext
12960LIBS=$ac_save_LIBS
12961
12962fi
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12964$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12965if test $ac_cv_prog_lex_yytext_pointer = yes; then
12966
12967$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12968
12969fi
12970rm -f conftest.l $LEX_OUTPUT_ROOT.c
12971
12972fi
12973if test "$LEX" = :; then
12974  LEX=${am_missing_run}flex
12975fi
12976# Extract the first word of "$LEX", so it can be a program name with args.
12977set dummy $LEX; ac_word=$2
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979$as_echo_n "checking for $ac_word... " >&6; }
12980if ${ac_cv_path_LEX_PATH+:} false; then :
12981  $as_echo_n "(cached) " >&6
12982else
12983  case $LEX_PATH in
12984  [\\/]* | ?:[\\/]*)
12985  ac_cv_path_LEX_PATH="$LEX_PATH" # Let the user override the test with a path.
12986  ;;
12987  *)
12988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989for as_dir in $PATH
12990do
12991  IFS=$as_save_IFS
12992  test -z "$as_dir" && as_dir=.
12993    for ac_exec_ext in '' $ac_executable_extensions; do
12994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995    ac_cv_path_LEX_PATH="$as_dir/$ac_word$ac_exec_ext"
12996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997    break 2
12998  fi
12999done
13000  done
13001IFS=$as_save_IFS
13002
13003  test -z "$ac_cv_path_LEX_PATH" && ac_cv_path_LEX_PATH="notfound"
13004  ;;
13005esac
13006fi
13007LEX_PATH=$ac_cv_path_LEX_PATH
13008if test -n "$LEX_PATH"; then
13009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX_PATH" >&5
13010$as_echo "$LEX_PATH" >&6; }
13011else
13012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013$as_echo "no" >&6; }
13014fi
13015
13016
13017if test "$LEX_PATH" = "notfound" ; then
13018	as_fn_error $? "Couldn't find a usable lex program.
13019Please install flex which is available from
13020ftp://ftp.gnu.org/pub/non-gnu/flex/
13021" "$LINENO" 5
13022fi
13023
13024
13025for ac_prog in 'bison -y' byacc
13026do
13027  # Extract the first word of "$ac_prog", so it can be a program name with args.
13028set dummy $ac_prog; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
13031if ${ac_cv_prog_YACC+:} false; then :
13032  $as_echo_n "(cached) " >&6
13033else
13034  if test -n "$YACC"; then
13035  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13036else
13037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038for as_dir in $PATH
13039do
13040  IFS=$as_save_IFS
13041  test -z "$as_dir" && as_dir=.
13042    for ac_exec_ext in '' $ac_executable_extensions; do
13043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044    ac_cv_prog_YACC="$ac_prog"
13045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046    break 2
13047  fi
13048done
13049  done
13050IFS=$as_save_IFS
13051
13052fi
13053fi
13054YACC=$ac_cv_prog_YACC
13055if test -n "$YACC"; then
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13057$as_echo "$YACC" >&6; }
13058else
13059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063
13064  test -n "$YACC" && break
13065done
13066test -n "$YACC" || YACC="yacc"
13067
13068# Extract the first word of "$YACC", so it can be a program name with args.
13069set dummy $YACC; ac_word=$2
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071$as_echo_n "checking for $ac_word... " >&6; }
13072if ${ac_cv_path_YACC_PATH+:} false; then :
13073  $as_echo_n "(cached) " >&6
13074else
13075  case $YACC_PATH in
13076  [\\/]* | ?:[\\/]*)
13077  ac_cv_path_YACC_PATH="$YACC_PATH" # Let the user override the test with a path.
13078  ;;
13079  *)
13080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081for as_dir in $PATH
13082do
13083  IFS=$as_save_IFS
13084  test -z "$as_dir" && as_dir=.
13085    for ac_exec_ext in '' $ac_executable_extensions; do
13086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13087    ac_cv_path_YACC_PATH="$as_dir/$ac_word$ac_exec_ext"
13088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089    break 2
13090  fi
13091done
13092  done
13093IFS=$as_save_IFS
13094
13095  test -z "$ac_cv_path_YACC_PATH" && ac_cv_path_YACC_PATH="notfound"
13096  ;;
13097esac
13098fi
13099YACC_PATH=$ac_cv_path_YACC_PATH
13100if test -n "$YACC_PATH"; then
13101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_PATH" >&5
13102$as_echo "$YACC_PATH" >&6; }
13103else
13104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
13106fi
13107
13108
13109if test "$YACC_PATH" = "notfound" ; then
13110	as_fn_error $? "Couldn't find a usable yacc program.
13111Please install bison which is available from
13112ftp://ftp.gnu.org/pub/gnu/bison/
13113" "$LINENO" 5
13114fi
13115
13116
13117if test -n "$ac_tool_prefix"; then
13118  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13119set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121$as_echo_n "checking for $ac_word... " >&6; }
13122if ${ac_cv_prog_RANLIB+:} false; then :
13123  $as_echo_n "(cached) " >&6
13124else
13125  if test -n "$RANLIB"; then
13126  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13127else
13128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129for as_dir in $PATH
13130do
13131  IFS=$as_save_IFS
13132  test -z "$as_dir" && as_dir=.
13133    for ac_exec_ext in '' $ac_executable_extensions; do
13134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13135    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137    break 2
13138  fi
13139done
13140  done
13141IFS=$as_save_IFS
13142
13143fi
13144fi
13145RANLIB=$ac_cv_prog_RANLIB
13146if test -n "$RANLIB"; then
13147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13148$as_echo "$RANLIB" >&6; }
13149else
13150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152fi
13153
13154
13155fi
13156if test -z "$ac_cv_prog_RANLIB"; then
13157  ac_ct_RANLIB=$RANLIB
13158  # Extract the first word of "ranlib", so it can be a program name with args.
13159set dummy ranlib; ac_word=$2
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
13162if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13163  $as_echo_n "(cached) " >&6
13164else
13165  if test -n "$ac_ct_RANLIB"; then
13166  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171  IFS=$as_save_IFS
13172  test -z "$as_dir" && as_dir=.
13173    for ac_exec_ext in '' $ac_executable_extensions; do
13174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175    ac_cv_prog_ac_ct_RANLIB="ranlib"
13176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177    break 2
13178  fi
13179done
13180  done
13181IFS=$as_save_IFS
13182
13183fi
13184fi
13185ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13186if test -n "$ac_ct_RANLIB"; then
13187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13188$as_echo "$ac_ct_RANLIB" >&6; }
13189else
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194  if test "x$ac_ct_RANLIB" = x; then
13195    RANLIB=":"
13196  else
13197    case $cross_compiling:$ac_tool_warned in
13198yes:)
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13201ac_tool_warned=yes ;;
13202esac
13203    RANLIB=$ac_ct_RANLIB
13204  fi
13205else
13206  RANLIB="$ac_cv_prog_RANLIB"
13207fi
13208
13209
13210#
13211# Used for building the icons
13212#
13213# Extract the first word of "xpmtoppm", so it can be a program name with args.
13214set dummy xpmtoppm; ac_word=$2
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216$as_echo_n "checking for $ac_word... " >&6; }
13217if ${ac_cv_path_XPMTOPPM+:} false; then :
13218  $as_echo_n "(cached) " >&6
13219else
13220  case $XPMTOPPM in
13221  [\\/]* | ?:[\\/]*)
13222  ac_cv_path_XPMTOPPM="$XPMTOPPM" # Let the user override the test with a path.
13223  ;;
13224  *)
13225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226for as_dir in $PATH
13227do
13228  IFS=$as_save_IFS
13229  test -z "$as_dir" && as_dir=.
13230    for ac_exec_ext in '' $ac_executable_extensions; do
13231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232    ac_cv_path_XPMTOPPM="$as_dir/$ac_word$ac_exec_ext"
13233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234    break 2
13235  fi
13236done
13237  done
13238IFS=$as_save_IFS
13239
13240  test -z "$ac_cv_path_XPMTOPPM" && ac_cv_path_XPMTOPPM="notfound"
13241  ;;
13242esac
13243fi
13244XPMTOPPM=$ac_cv_path_XPMTOPPM
13245if test -n "$XPMTOPPM"; then
13246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPMTOPPM" >&5
13247$as_echo "$XPMTOPPM" >&6; }
13248else
13249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250$as_echo "no" >&6; }
13251fi
13252
13253
13254# Extract the first word of "ppmtowinicon", so it can be a program name with args.
13255set dummy ppmtowinicon; ac_word=$2
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13257$as_echo_n "checking for $ac_word... " >&6; }
13258if ${ac_cv_path_PPMTOWINICON+:} false; then :
13259  $as_echo_n "(cached) " >&6
13260else
13261  case $PPMTOWINICON in
13262  [\\/]* | ?:[\\/]*)
13263  ac_cv_path_PPMTOWINICON="$PPMTOWINICON" # Let the user override the test with a path.
13264  ;;
13265  *)
13266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269  IFS=$as_save_IFS
13270  test -z "$as_dir" && as_dir=.
13271    for ac_exec_ext in '' $ac_executable_extensions; do
13272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273    ac_cv_path_PPMTOWINICON="$as_dir/$ac_word$ac_exec_ext"
13274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275    break 2
13276  fi
13277done
13278  done
13279IFS=$as_save_IFS
13280
13281  test -z "$ac_cv_path_PPMTOWINICON" && ac_cv_path_PPMTOWINICON="notfound"
13282  ;;
13283esac
13284fi
13285PPMTOWINICON=$ac_cv_path_PPMTOWINICON
13286if test -n "$PPMTOWINICON"; then
13287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOWINICON" >&5
13288$as_echo "$PPMTOWINICON" >&6; }
13289else
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291$as_echo "no" >&6; }
13292fi
13293
13294
13295# Extract the first word of "convert", so it can be a program name with args.
13296set dummy convert; ac_word=$2
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298$as_echo_n "checking for $ac_word... " >&6; }
13299if ${ac_cv_path_CONVERT+:} false; then :
13300  $as_echo_n "(cached) " >&6
13301else
13302  case $CONVERT in
13303  [\\/]* | ?:[\\/]*)
13304  ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
13305  ;;
13306  *)
13307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308for as_dir in $PATH
13309do
13310  IFS=$as_save_IFS
13311  test -z "$as_dir" && as_dir=.
13312    for ac_exec_ext in '' $ac_executable_extensions; do
13313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314    ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316    break 2
13317  fi
13318done
13319  done
13320IFS=$as_save_IFS
13321
13322  test -z "$ac_cv_path_CONVERT" && ac_cv_path_CONVERT="notfound"
13323  ;;
13324esac
13325fi
13326CONVERT=$ac_cv_path_CONVERT
13327if test -n "$CONVERT"; then
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
13329$as_echo "$CONVERT" >&6; }
13330else
13331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333fi
13334
13335
13336
13337##########################################################################
13338#
13339#
13340if test "X$docs_yesno" = "Xyes" -a "X$pcb_git_version" = "Xyes" ; then
13341   # Extract the first word of "makeinfo", so it can be a program name with args.
13342set dummy makeinfo; ac_word=$2
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344$as_echo_n "checking for $ac_word... " >&6; }
13345if ${ac_cv_path_MKINFO+:} false; then :
13346  $as_echo_n "(cached) " >&6
13347else
13348  case $MKINFO in
13349  [\\/]* | ?:[\\/]*)
13350  ac_cv_path_MKINFO="$MKINFO" # Let the user override the test with a path.
13351  ;;
13352  *)
13353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354for as_dir in $PATH
13355do
13356  IFS=$as_save_IFS
13357  test -z "$as_dir" && as_dir=.
13358    for ac_exec_ext in '' $ac_executable_extensions; do
13359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360    ac_cv_path_MKINFO="$as_dir/$ac_word$ac_exec_ext"
13361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362    break 2
13363  fi
13364done
13365  done
13366IFS=$as_save_IFS
13367
13368  test -z "$ac_cv_path_MKINFO" && ac_cv_path_MKINFO="no"
13369  ;;
13370esac
13371fi
13372MKINFO=$ac_cv_path_MKINFO
13373if test -n "$MKINFO"; then
13374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINFO" >&5
13375$as_echo "$MKINFO" >&6; }
13376else
13377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378$as_echo "no" >&6; }
13379fi
13380
13381
13382   if test "X$MKINFO" != "Xno"; then
13383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU makeinfo version >= 4.6" >&5
13384$as_echo_n "checking for GNU makeinfo version >= 4.6... " >&6; }
13385      v=`$MKINFO --version | grep "GNU texinfo"`
13386      if test $? -ne 0; then
13387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: non-GNU" >&5
13388$as_echo "non-GNU" >&6; }
13389         MKINFO="no"
13390      fi
13391   fi
13392   if test "X$MKINFO" != "Xno"; then
13393      vmajor=`echo "$v" | sed 's/.* \([0-9]*\)\.\([0-9]*\)$/\1/'`
13394      vminor=`echo "$v" | sed 's/.* \([0-9]*\)\.\([0-9]*\)$/\2/'`
13395      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vmajor.$vminor" >&5
13396$as_echo "$vmajor.$vminor" >&6; }
13397      if test "$vmajor" -lt 4 \
13398              || (test "$vmajor" -eq 4 && test "$vminor" -lt 6); then
13399         MKINFO=no
13400      fi
13401   fi
13402   if test "X$MKINFO" = "Xno"; then
13403      as_fn_error $? "You have requested a build
13404of the documentation.  For this to work, you must have version 4.6 or newer of
13405the GNU texinfo package.  You seem to have
13406
13407$v
13408
13409Please update to a newer version of texinfo or disable building of
13410the documentation with --disable-doc
13411" "$LINENO" 5
13412   fi
13413
13414   # Extract the first word of "texi2dvi", so it can be a program name with args.
13415set dummy texi2dvi; ac_word=$2
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
13418if ${ac_cv_path_TEXI2DVI+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  case $TEXI2DVI in
13422  [\\/]* | ?:[\\/]*)
13423  ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
13424  ;;
13425  *)
13426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427for as_dir in $PATH
13428do
13429  IFS=$as_save_IFS
13430  test -z "$as_dir" && as_dir=.
13431    for ac_exec_ext in '' $ac_executable_extensions; do
13432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13433    ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
13434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435    break 2
13436  fi
13437done
13438  done
13439IFS=$as_save_IFS
13440
13441  test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="no"
13442  ;;
13443esac
13444fi
13445TEXI2DVI=$ac_cv_path_TEXI2DVI
13446if test -n "$TEXI2DVI"; then
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
13448$as_echo "$TEXI2DVI" >&6; }
13449else
13450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451$as_echo "no" >&6; }
13452fi
13453
13454
13455   if test "X$TEXI2DVI" = "Xno"; then
13456      as_fn_error $? "You have requested a build
13457of the documentation.  For this to work, you must have the texi2dvi program
13458installed.  Alternatively, you can disable building the documentation with
13459--disable-doc." "$LINENO" 5
13460   fi
13461
13462
13463	# Extract the first word of "perl", so it can be a program name with args.
13464set dummy perl; ac_word=$2
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466$as_echo_n "checking for $ac_word... " >&6; }
13467if ${ac_cv_path_PERL+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  case $PERL in
13471  [\\/]* | ?:[\\/]*)
13472  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13473  ;;
13474  *)
13475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476for as_dir in $PATH
13477do
13478  IFS=$as_save_IFS
13479  test -z "$as_dir" && as_dir=.
13480    for ac_exec_ext in '' $ac_executable_extensions; do
13481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13482    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484    break 2
13485  fi
13486done
13487  done
13488IFS=$as_save_IFS
13489
13490  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="notfound"
13491  ;;
13492esac
13493fi
13494PERL=$ac_cv_path_PERL
13495if test -n "$PERL"; then
13496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13497$as_echo "$PERL" >&6; }
13498else
13499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
13501fi
13502
13503
13504	if test "X$PERL" = "Xnotfound"; then
13505			as_fn_error $? "You have requested a build
13506of the documentation.  For this to work, you must have perl installed.
13507Alternatively, you can disable building the documentation with
13508--disable-doc.
13509" "$LINENO" 5
13510	fi
13511
13512
13513   # Extract the first word of "kpsewhich", so it can be a program name with args.
13514set dummy kpsewhich; ac_word=$2
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516$as_echo_n "checking for $ac_word... " >&6; }
13517if ${ac_cv_path_KPSEWHICH+:} false; then :
13518  $as_echo_n "(cached) " >&6
13519else
13520  case $KPSEWHICH in
13521  [\\/]* | ?:[\\/]*)
13522  ac_cv_path_KPSEWHICH="$KPSEWHICH" # Let the user override the test with a path.
13523  ;;
13524  *)
13525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528  IFS=$as_save_IFS
13529  test -z "$as_dir" && as_dir=.
13530    for ac_exec_ext in '' $ac_executable_extensions; do
13531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532    ac_cv_path_KPSEWHICH="$as_dir/$ac_word$ac_exec_ext"
13533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534    break 2
13535  fi
13536done
13537  done
13538IFS=$as_save_IFS
13539
13540  test -z "$ac_cv_path_KPSEWHICH" && ac_cv_path_KPSEWHICH="no"
13541  ;;
13542esac
13543fi
13544KPSEWHICH=$ac_cv_path_KPSEWHICH
13545if test -n "$KPSEWHICH"; then
13546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5
13547$as_echo "$KPSEWHICH" >&6; }
13548else
13549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550$as_echo "no" >&6; }
13551fi
13552
13553
13554   if test "X$KPSEWHICH" = "Xno"; then
13555      as_fn_error $? "You have requested a build
13556of the documentation.  For this to work, you must have a functional install of
13557TeX and LaTeX.  kpsewhich is part of TeX.
13558Alternatively, you can disable building the documentation with
13559--disable-doc." "$LINENO" 5
13560   fi
13561
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking If your TeX installation contains epsf.tex" >&5
13563$as_echo_n "checking If your TeX installation contains epsf.tex... " >&6; }
13564   f=`$KPSEWHICH epsf.tex`
13565   if test $? -eq 0 ; then
13566	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($f)" >&5
13567$as_echo "yes ($f)" >&6; }
13568   else
13569	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570$as_echo "no" >&6; }
13571        as_fn_error $? "You have requested a build
13572of the documentation.  For this to work, you must have a functional install of
13573TeX and LaTeX that includes epsf.tex.  On some linux distributions this is
13574part of the texlive-generic-recommended package.  On NetBSD this is is part
13575of the tex-epsf package.
13576Alternatively, you can disable building the documentation with
13577--disable-doc." "$LINENO" 5
13578   fi
13579
13580fi
13581
13582##########################################################################
13583#
13584#
13585
13586# FIXME:  for now, only try to add -rdynamic if we're using gcc.  We really
13587# need to figure out what the correct test is here.  In the mean time, this
13588# should let things build with SunPRO again.
13589if test "x$GCC" = "xyes"; then
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If the compiler accepts -rdynamic" >&5
13591$as_echo_n "checking If the compiler accepts -rdynamic... " >&6; }
13592old_LDFLAGS="$LDFLAGS"
13593LDFLAGS="$LDFLAGS -rdynamic"
13594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595/* end confdefs.h.  */
13596
13597int
13598main ()
13599{
13600
13601  ;
13602  return 0;
13603}
13604_ACEOF
13605if ac_fn_c_try_link "$LINENO"; then :
13606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13607$as_echo "yes" >&6; }
13608else
13609  LDFLAGS="$old_LDFLAGS"
13610	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611$as_echo "no" >&6; }
13612
13613fi
13614rm -f core conftest.err conftest.$ac_objext \
13615    conftest$ac_exeext conftest.$ac_ext
13616fi
13617
13618# ------------- HID config -------------------
13619
13620hid_guis=""
13621hid_printers=""
13622hid_exporters=""
13623hid_always=""
13624
13625for hid in `cd $srcdir/src/hid; echo *`; do
13626    F=$srcdir/src/hid/$hid/hid.conf
13627    if test -f $F
13628    then
13629    echo checking $F
13630        . $F
13631	case $type in
13632	  gui ) hid_guis="$hid_guis $hid" ;;
13633	  printer ) hid_printers="$hid_printers $hid" ;;
13634	  export ) hid_exporters="$hid_exporters $hid" ;;
13635	  always ) hid_always="$hid_always $hid" ;;
13636	esac
13637    fi
13638done
13639
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for which gui to use" >&5
13641$as_echo_n "checking for which gui to use... " >&6; }
13642
13643# Check whether --with-gui was given.
13644if test "${with_gui+set}" = set; then :
13645  withval=$with_gui;
13646else
13647  with_gui=gtk
13648
13649fi
13650
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gui" >&5
13652$as_echo "$with_gui" >&6; }
13653case " $hid_guis no none " in
13654     *\ $with_gui\ * ) HIDLIST="$with_gui" ;;
13655     * ) as_fn_error $? "$with_gui is not a valid gui" "$LINENO" 5 ;;
13656esac
13657
13658WITHGUI="$with_gui"
13659
13660
13661if test x"$with_gui" = x"none" -o x"$with_gui" = x"no"
13662then
13663    HIDLIST=
13664fi
13665
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable toporouter" >&5
13667$as_echo_n "checking whether to enable toporouter... " >&6; }
13668# Check whether --enable-toporouter was given.
13669if test "${enable_toporouter+set}" = set; then :
13670  enableval=$enable_toporouter;
13671fi
13672
13673case "x$enable_toporouter" in #(
13674  xyes | xno) :
13675     ;; #(
13676  *) :
13677    enable_toporouter=yes
13678
13679 ;;
13680esac
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toporouter" >&5
13682$as_echo "$enable_toporouter" >&6; }
13683 if test $enable_toporouter != no; then
13684  WITH_TOPOROUTER_TRUE=
13685  WITH_TOPOROUTER_FALSE='#'
13686else
13687  WITH_TOPOROUTER_TRUE='#'
13688  WITH_TOPOROUTER_FALSE=
13689fi
13690
13691
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable toporouter output" >&5
13693$as_echo_n "checking whether to enable toporouter output... " >&6; }
13694# Check whether --enable-toporouter-output was given.
13695if test "${enable_toporouter_output+set}" = set; then :
13696  enableval=$enable_toporouter_output;
13697fi
13698
13699case "z$enable_toporouter_output" in #(
13700  zyes | zno) :
13701     ;; #(
13702  *) :
13703    enable_toporouter_output=no
13704 ;;
13705esac
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toporouter_output" >&5
13707$as_echo "$enable_toporouter_output" >&6; }
13708case $enable_toporouter_output in #(
13709  yes) :
13710
13711  topo_output_enabled=1
13712  ;; #(
13713  *) :
13714
13715  topo_output_enabled=0
13716
13717 ;;
13718esac
13719
13720cat >>confdefs.h <<_ACEOF
13721#define TOPO_OUTPUT_ENABLED $topo_output_enabled
13722_ACEOF
13723
13724
13725
13726
13727if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13728	if test -n "$ac_tool_prefix"; then
13729  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13730set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732$as_echo_n "checking for $ac_word... " >&6; }
13733if ${ac_cv_path_PKG_CONFIG+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  case $PKG_CONFIG in
13737  [\\/]* | ?:[\\/]*)
13738  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13739  ;;
13740  *)
13741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742for as_dir in $PATH
13743do
13744  IFS=$as_save_IFS
13745  test -z "$as_dir" && as_dir=.
13746    for ac_exec_ext in '' $ac_executable_extensions; do
13747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750    break 2
13751  fi
13752done
13753  done
13754IFS=$as_save_IFS
13755
13756  ;;
13757esac
13758fi
13759PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13760if test -n "$PKG_CONFIG"; then
13761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13762$as_echo "$PKG_CONFIG" >&6; }
13763else
13764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765$as_echo "no" >&6; }
13766fi
13767
13768
13769fi
13770if test -z "$ac_cv_path_PKG_CONFIG"; then
13771  ac_pt_PKG_CONFIG=$PKG_CONFIG
13772  # Extract the first word of "pkg-config", so it can be a program name with args.
13773set dummy pkg-config; ac_word=$2
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775$as_echo_n "checking for $ac_word... " >&6; }
13776if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13777  $as_echo_n "(cached) " >&6
13778else
13779  case $ac_pt_PKG_CONFIG in
13780  [\\/]* | ?:[\\/]*)
13781  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13782  ;;
13783  *)
13784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785for as_dir in $PATH
13786do
13787  IFS=$as_save_IFS
13788  test -z "$as_dir" && as_dir=.
13789    for ac_exec_ext in '' $ac_executable_extensions; do
13790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793    break 2
13794  fi
13795done
13796  done
13797IFS=$as_save_IFS
13798
13799  ;;
13800esac
13801fi
13802ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13803if test -n "$ac_pt_PKG_CONFIG"; then
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13805$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13806else
13807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808$as_echo "no" >&6; }
13809fi
13810
13811  if test "x$ac_pt_PKG_CONFIG" = x; then
13812    PKG_CONFIG=""
13813  else
13814    case $cross_compiling:$ac_tool_warned in
13815yes:)
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13818ac_tool_warned=yes ;;
13819esac
13820    PKG_CONFIG=$ac_pt_PKG_CONFIG
13821  fi
13822else
13823  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13824fi
13825
13826fi
13827if test -n "$PKG_CONFIG"; then
13828	_pkg_min_version=0.9.0
13829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13830$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13831	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833$as_echo "yes" >&6; }
13834	else
13835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836$as_echo "no" >&6; }
13837		PKG_CONFIG=""
13838	fi
13839
13840fi
13841
13842if test "x$enable_toporouter_output" = "xyes"; then
13843
13844pkg_failed=no
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13846$as_echo_n "checking for CAIRO... " >&6; }
13847
13848if test -n "$CAIRO_CFLAGS"; then
13849    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13850 elif test -n "$PKG_CONFIG"; then
13851    if test -n "$PKG_CONFIG" && \
13852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13853  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13854  ac_status=$?
13855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856  test $ac_status = 0; }; then
13857  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
13858else
13859  pkg_failed=yes
13860fi
13861 else
13862    pkg_failed=untried
13863fi
13864if test -n "$CAIRO_LIBS"; then
13865    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13866 elif test -n "$PKG_CONFIG"; then
13867    if test -n "$PKG_CONFIG" && \
13868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13869  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13870  ac_status=$?
13871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872  test $ac_status = 0; }; then
13873  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
13874else
13875  pkg_failed=yes
13876fi
13877 else
13878    pkg_failed=untried
13879fi
13880
13881
13882
13883if test $pkg_failed = yes; then
13884
13885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13886        _pkg_short_errors_supported=yes
13887else
13888        _pkg_short_errors_supported=no
13889fi
13890        if test $_pkg_short_errors_supported = yes; then
13891	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo" 2>&1`
13892        else
13893	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo" 2>&1`
13894        fi
13895	# Put the nasty error message in config.log where it belongs
13896	echo "$CAIRO_PKG_ERRORS" >&5
13897
13898	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899$as_echo "no" >&6; }
13900                as_fn_error $? "Cannot find cairo, needed by the toporouter
13901Please review the following errors:
13902$CAIRO_PKG_ERRORS" "$LINENO" 5
13903
13904elif test $pkg_failed = untried; then
13905	as_fn_error $? "Cannot find cairo, needed by the toporouter
13906Please review the following errors:
13907$CAIRO_PKG_ERRORS" "$LINENO" 5
13908
13909else
13910	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13911	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913$as_echo "yes" >&6; }
13914	:
13915fi
13916fi
13917
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to use DBUS" >&5
13919$as_echo_n "checking for whether to use DBUS... " >&6; }
13920# Check whether --enable-dbus was given.
13921if test "${enable_dbus+set}" = set; then :
13922  enableval=$enable_dbus;
13923else
13924
13925	case " $with_gui " in
13926		*\ gtk\ *)     enable_dbus=yes ;;
13927		*\ lesstif\ *) enable_dbus=yes ;;
13928		* )            enable_dbus=no ;;
13929	esac
13930
13931fi
13932
13933
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dbus" >&5
13935$as_echo "$enable_dbus" >&6; }
13936 if test x$enable_dbus = xyes; then
13937  WITH_DBUS_TRUE=
13938  WITH_DBUS_FALSE='#'
13939else
13940  WITH_DBUS_TRUE='#'
13941  WITH_DBUS_FALSE=
13942fi
13943
13944
13945if test "x$enable_dbus" = "xyes"; then
13946	case " $with_gui " in
13947		*\ gtk\ *) ;;
13948		*\ lesstif\ *) ;;
13949		* ) as_fn_error $? "DBUS enabled but only works with a mainloop capable GUI HID.
13950Either do not use --enable-dbus or enable the gtk or lesstif GUI HID." "$LINENO" 5
13951	esac
13952
13953
13954pkg_failed=no
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
13956$as_echo_n "checking for DBUS... " >&6; }
13957
13958if test -n "$DBUS_CFLAGS"; then
13959    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
13960 elif test -n "$PKG_CONFIG"; then
13961    if test -n "$PKG_CONFIG" && \
13962    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.61\""; } >&5
13963  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.61") 2>&5
13964  ac_status=$?
13965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966  test $ac_status = 0; }; then
13967  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.61" 2>/dev/null`
13968else
13969  pkg_failed=yes
13970fi
13971 else
13972    pkg_failed=untried
13973fi
13974if test -n "$DBUS_LIBS"; then
13975    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
13976 elif test -n "$PKG_CONFIG"; then
13977    if test -n "$PKG_CONFIG" && \
13978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.61\""; } >&5
13979  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.61") 2>&5
13980  ac_status=$?
13981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13982  test $ac_status = 0; }; then
13983  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.61" 2>/dev/null`
13984else
13985  pkg_failed=yes
13986fi
13987 else
13988    pkg_failed=untried
13989fi
13990
13991
13992
13993if test $pkg_failed = yes; then
13994
13995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13996        _pkg_short_errors_supported=yes
13997else
13998        _pkg_short_errors_supported=no
13999fi
14000        if test $_pkg_short_errors_supported = yes; then
14001	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 0.61" 2>&1`
14002        else
14003	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 0.61" 2>&1`
14004        fi
14005	# Put the nasty error message in config.log where it belongs
14006	echo "$DBUS_PKG_ERRORS" >&5
14007
14008	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009$as_echo "no" >&6; }
14010                as_fn_error $? "Cannot find dbus-1 >= 0.61, install it and rerun ./configure
14011Please review the following errors:
14012$DBUS_PKG_ERRORS" "$LINENO" 5
14013
14014elif test $pkg_failed = untried; then
14015	as_fn_error $? "Cannot find dbus-1 >= 0.61, install it and rerun ./configure
14016Please review the following errors:
14017$DBUS_PKG_ERRORS" "$LINENO" 5
14018
14019else
14020	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
14021	DBUS_LIBS=$pkg_cv_DBUS_LIBS
14022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14023$as_echo "yes" >&6; }
14024	saved_LIBS="$LIBS"
14025		 LIBS="$LIBS $DBUS_LIBS"
14026		 for ac_func in dbus_watch_get_unix_fd
14027do :
14028  ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
14029if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
14030  cat >>confdefs.h <<_ACEOF
14031#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
14032_ACEOF
14033
14034fi
14035done
14036
14037		 LIBS="$saved_LIBS"
14038fi
14039	DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
14040
14041
14042$as_echo "#define HAVE_DBUS 1" >>confdefs.h
14043
14044
14045fi
14046
14047
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to use GL drawing" >&5
14049$as_echo_n "checking for whether to use GL drawing... " >&6; }
14050# Check whether --enable-gl was given.
14051if test "${enable_gl+set}" = set; then :
14052  enableval=$enable_gl;
14053else
14054
14055	case " $with_gui " in
14056		*\ gtk\ *) enable_gl=yes;;
14057		* ) enable_gl=no;;
14058	esac
14059
14060fi
14061
14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gl" >&5
14063$as_echo "$enable_gl" >&6; }
14064 if test x$enable_gl = xyes; then
14065  USE_GL_TRUE=
14066  USE_GL_FALSE='#'
14067else
14068  USE_GL_TRUE='#'
14069  USE_GL_FALSE=
14070fi
14071
14072
14073if test "x$enable_gl" = "xyes"; then
14074	case " $with_gui " in
14075		*\ gtk\ *) ;;
14076		* ) as_fn_error $? "GL drawing enabled but only works with the GTK HID.
14077Either do not use --enable-gl or enable the gtk HID." "$LINENO" 5
14078	;;
14079	esac
14080
14081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14082$as_echo_n "checking for X... " >&6; }
14083
14084
14085# Check whether --with-x was given.
14086if test "${with_x+set}" = set; then :
14087  withval=$with_x;
14088fi
14089
14090# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14091if test "x$with_x" = xno; then
14092  # The user explicitly disabled X.
14093  have_x=disabled
14094else
14095  case $x_includes,$x_libraries in #(
14096    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14097    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14098  $as_echo_n "(cached) " >&6
14099else
14100  # One or both of the vars are not set, and there is no cached value.
14101ac_x_includes=no ac_x_libraries=no
14102rm -f -r conftest.dir
14103if mkdir conftest.dir; then
14104  cd conftest.dir
14105  cat >Imakefile <<'_ACEOF'
14106incroot:
14107	@echo incroot='${INCROOT}'
14108usrlibdir:
14109	@echo usrlibdir='${USRLIBDIR}'
14110libdir:
14111	@echo libdir='${LIBDIR}'
14112_ACEOF
14113  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14114    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14115    for ac_var in incroot usrlibdir libdir; do
14116      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14117    done
14118    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14119    for ac_extension in a so sl dylib la dll; do
14120      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14121	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14122	ac_im_usrlibdir=$ac_im_libdir; break
14123      fi
14124    done
14125    # Screen out bogus values from the imake configuration.  They are
14126    # bogus both because they are the default anyway, and because
14127    # using them would break gcc on systems where it needs fixed includes.
14128    case $ac_im_incroot in
14129	/usr/include) ac_x_includes= ;;
14130	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14131    esac
14132    case $ac_im_usrlibdir in
14133	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
14134	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14135    esac
14136  fi
14137  cd ..
14138  rm -f -r conftest.dir
14139fi
14140
14141# Standard set of common directories for X headers.
14142# Check X11 before X11Rn because it is often a symlink to the current release.
14143ac_x_header_dirs='
14144/usr/X11/include
14145/usr/X11R7/include
14146/usr/X11R6/include
14147/usr/X11R5/include
14148/usr/X11R4/include
14149
14150/usr/include/X11
14151/usr/include/X11R7
14152/usr/include/X11R6
14153/usr/include/X11R5
14154/usr/include/X11R4
14155
14156/usr/local/X11/include
14157/usr/local/X11R7/include
14158/usr/local/X11R6/include
14159/usr/local/X11R5/include
14160/usr/local/X11R4/include
14161
14162/usr/local/include/X11
14163/usr/local/include/X11R7
14164/usr/local/include/X11R6
14165/usr/local/include/X11R5
14166/usr/local/include/X11R4
14167
14168/usr/X386/include
14169/usr/x386/include
14170/usr/XFree86/include/X11
14171
14172/usr/include
14173/usr/local/include
14174/usr/unsupported/include
14175/usr/athena/include
14176/usr/local/x11r5/include
14177/usr/lpp/Xamples/include
14178
14179/usr/openwin/include
14180/usr/openwin/share/include'
14181
14182if test "$ac_x_includes" = no; then
14183  # Guess where to find include files, by looking for Xlib.h.
14184  # First, try using that file with no special directory specified.
14185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186/* end confdefs.h.  */
14187#include <X11/Xlib.h>
14188_ACEOF
14189if ac_fn_c_try_cpp "$LINENO"; then :
14190  # We can compile using X headers with no special include directory.
14191ac_x_includes=
14192else
14193  for ac_dir in $ac_x_header_dirs; do
14194  if test -r "$ac_dir/X11/Xlib.h"; then
14195    ac_x_includes=$ac_dir
14196    break
14197  fi
14198done
14199fi
14200rm -f conftest.err conftest.i conftest.$ac_ext
14201fi # $ac_x_includes = no
14202
14203if test "$ac_x_libraries" = no; then
14204  # Check for the libraries.
14205  # See if we find them without any special options.
14206  # Don't add to $LIBS permanently.
14207  ac_save_LIBS=$LIBS
14208  LIBS="-lX11 $LIBS"
14209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210/* end confdefs.h.  */
14211#include <X11/Xlib.h>
14212int
14213main ()
14214{
14215XrmInitialize ()
14216  ;
14217  return 0;
14218}
14219_ACEOF
14220if ac_fn_c_try_link "$LINENO"; then :
14221  LIBS=$ac_save_LIBS
14222# We can link X programs with no special library path.
14223ac_x_libraries=
14224else
14225  LIBS=$ac_save_LIBS
14226for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14227do
14228  # Don't even attempt the hair of trying to link an X program!
14229  for ac_extension in a so sl dylib la dll; do
14230    if test -r "$ac_dir/libX11.$ac_extension"; then
14231      ac_x_libraries=$ac_dir
14232      break 2
14233    fi
14234  done
14235done
14236fi
14237rm -f core conftest.err conftest.$ac_objext \
14238    conftest$ac_exeext conftest.$ac_ext
14239fi # $ac_x_libraries = no
14240
14241case $ac_x_includes,$ac_x_libraries in #(
14242  no,* | *,no | *\'*)
14243    # Didn't find X, or a directory has "'" in its name.
14244    ac_cv_have_x="have_x=no";; #(
14245  *)
14246    # Record where we found X for the cache.
14247    ac_cv_have_x="have_x=yes\
14248	ac_x_includes='$ac_x_includes'\
14249	ac_x_libraries='$ac_x_libraries'"
14250esac
14251fi
14252;; #(
14253    *) have_x=yes;;
14254  esac
14255  eval "$ac_cv_have_x"
14256fi # $with_x != no
14257
14258if test "$have_x" != yes; then
14259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14260$as_echo "$have_x" >&6; }
14261  no_x=yes
14262else
14263  # If each of the values was on the command line, it overrides each guess.
14264  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14265  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14266  # Update the cache value to reflect the command line values.
14267  ac_cv_have_x="have_x=yes\
14268	ac_x_includes='$x_includes'\
14269	ac_x_libraries='$x_libraries'"
14270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14271$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14272fi
14273
14274
14275
14276
14277ac_ext=c
14278ac_cpp='$CPP $CPPFLAGS'
14279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282
14283ax_pthread_ok=no
14284
14285# We used to check for pthread.h first, but this fails if pthread.h
14286# requires special compiler flags (e.g. on True64 or Sequent).
14287# It gets checked for in the link test anyway.
14288
14289# First of all, check if the user has set any of the PTHREAD_LIBS,
14290# etcetera environment variables, and if threads linking works using
14291# them:
14292if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14293        save_CFLAGS="$CFLAGS"
14294        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14295        save_LIBS="$LIBS"
14296        LIBS="$PTHREAD_LIBS $LIBS"
14297        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14298$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14299        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300/* end confdefs.h.  */
14301
14302/* Override any GCC internal prototype to avoid an error.
14303   Use char because int might match the return type of a GCC
14304   builtin and then its argument prototype would still apply.  */
14305#ifdef __cplusplus
14306extern "C"
14307#endif
14308char pthread_join ();
14309int
14310main ()
14311{
14312return pthread_join ();
14313  ;
14314  return 0;
14315}
14316_ACEOF
14317if ac_fn_c_try_link "$LINENO"; then :
14318  ax_pthread_ok=yes
14319fi
14320rm -f core conftest.err conftest.$ac_objext \
14321    conftest$ac_exeext conftest.$ac_ext
14322        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14323$as_echo "$ax_pthread_ok" >&6; }
14324        if test x"$ax_pthread_ok" = xno; then
14325                PTHREAD_LIBS=""
14326                PTHREAD_CFLAGS=""
14327        fi
14328        LIBS="$save_LIBS"
14329        CFLAGS="$save_CFLAGS"
14330fi
14331
14332# We must check for the threads library under a number of different
14333# names; the ordering is very important because some systems
14334# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14335# libraries is broken (non-POSIX).
14336
14337# Create a list of thread flags to try.  Items starting with a "-" are
14338# C compiler flags, and other items are library names, except for "none"
14339# which indicates that we try without any flags at all, and "pthread-config"
14340# which is a program returning the flags for the Pth emulation library.
14341
14342ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14343
14344# The ordering *is* (sometimes) important.  Some notes on the
14345# individual items follow:
14346
14347# pthreads: AIX (must check this before -lpthread)
14348# none: in case threads are in libc; should be tried before -Kthread and
14349#       other compiler flags to prevent continual compiler warnings
14350# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14351# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14352# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14353# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14354# -pthreads: Solaris/gcc
14355# -mthreads: Mingw32/gcc, Lynx/gcc
14356# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14357#      doesn't hurt to check since this sometimes defines pthreads too;
14358#      also defines -D_REENTRANT)
14359#      ... -mt is also the pthreads flag for HP/aCC
14360# pthread: Linux, etcetera
14361# --thread-safe: KAI C++
14362# pthread-config: use pthread-config program (for GNU Pth library)
14363
14364case "${host_cpu}-${host_os}" in
14365        *solaris*)
14366
14367        # On Solaris (at least, for some versions), libc contains stubbed
14368        # (non-functional) versions of the pthreads routines, so link-based
14369        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14370        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14371        # a function called by this macro, so we could check for that, but
14372        # who knows whether they'll stub that too in a future libc.)  So,
14373        # we'll just look for -pthreads and -lpthread first:
14374
14375        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14376        ;;
14377esac
14378
14379if test x"$ax_pthread_ok" = xno; then
14380for flag in $ax_pthread_flags; do
14381
14382        case $flag in
14383                none)
14384                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14385$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14386                ;;
14387
14388                -*)
14389                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14390$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14391                PTHREAD_CFLAGS="$flag"
14392                ;;
14393
14394		pthread-config)
14395		# Extract the first word of "pthread-config", so it can be a program name with args.
14396set dummy pthread-config; ac_word=$2
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14398$as_echo_n "checking for $ac_word... " >&6; }
14399if ${ac_cv_prog_ax_pthread_config+:} false; then :
14400  $as_echo_n "(cached) " >&6
14401else
14402  if test -n "$ax_pthread_config"; then
14403  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408  IFS=$as_save_IFS
14409  test -z "$as_dir" && as_dir=.
14410    for ac_exec_ext in '' $ac_executable_extensions; do
14411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412    ac_cv_prog_ax_pthread_config="yes"
14413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14414    break 2
14415  fi
14416done
14417  done
14418IFS=$as_save_IFS
14419
14420  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14421fi
14422fi
14423ax_pthread_config=$ac_cv_prog_ax_pthread_config
14424if test -n "$ax_pthread_config"; then
14425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14426$as_echo "$ax_pthread_config" >&6; }
14427else
14428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429$as_echo "no" >&6; }
14430fi
14431
14432
14433		if test x"$ax_pthread_config" = xno; then continue; fi
14434		PTHREAD_CFLAGS="`pthread-config --cflags`"
14435		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14436		;;
14437
14438                *)
14439                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14440$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14441                PTHREAD_LIBS="-l$flag"
14442                ;;
14443        esac
14444
14445        save_LIBS="$LIBS"
14446        save_CFLAGS="$CFLAGS"
14447        LIBS="$PTHREAD_LIBS $LIBS"
14448        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14449
14450        # Check for various functions.  We must include pthread.h,
14451        # since some functions may be macros.  (On the Sequent, we
14452        # need a special flag -Kthread to make this header compile.)
14453        # We check for pthread_join because it is in -lpthread on IRIX
14454        # while pthread_create is in libc.  We check for pthread_attr_init
14455        # due to DEC craziness with -lpthreads.  We check for
14456        # pthread_cleanup_push because it is one of the few pthread
14457        # functions on Solaris that doesn't have a non-functional libc stub.
14458        # We try pthread_create on general principles.
14459        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h.  */
14461#include <pthread.h>
14462	             static void routine(void* a) {a=0;}
14463	             static void* start_routine(void* a) {return a;}
14464int
14465main ()
14466{
14467pthread_t th; pthread_attr_t attr;
14468                     pthread_join(th, 0);
14469                     pthread_attr_init(&attr);
14470                     pthread_cleanup_push(routine, 0);
14471                     pthread_create(&th,0,start_routine,0);
14472                     pthread_cleanup_pop(0);
14473  ;
14474  return 0;
14475}
14476_ACEOF
14477if ac_fn_c_try_link "$LINENO"; then :
14478  ax_pthread_ok=yes
14479fi
14480rm -f core conftest.err conftest.$ac_objext \
14481    conftest$ac_exeext conftest.$ac_ext
14482
14483        LIBS="$save_LIBS"
14484        CFLAGS="$save_CFLAGS"
14485
14486        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14487$as_echo "$ax_pthread_ok" >&6; }
14488        if test "x$ax_pthread_ok" = xyes; then
14489                break;
14490        fi
14491
14492        PTHREAD_LIBS=""
14493        PTHREAD_CFLAGS=""
14494done
14495fi
14496
14497# Various other checks:
14498if test "x$ax_pthread_ok" = xyes; then
14499        save_LIBS="$LIBS"
14500        LIBS="$PTHREAD_LIBS $LIBS"
14501        save_CFLAGS="$CFLAGS"
14502        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14503
14504        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14506$as_echo_n "checking for joinable pthread attribute... " >&6; }
14507	attr_name=unknown
14508	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14509	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510/* end confdefs.h.  */
14511#include <pthread.h>
14512int
14513main ()
14514{
14515int attr=$attr; return attr;
14516  ;
14517  return 0;
14518}
14519_ACEOF
14520if ac_fn_c_try_link "$LINENO"; then :
14521  attr_name=$attr; break
14522fi
14523rm -f core conftest.err conftest.$ac_objext \
14524    conftest$ac_exeext conftest.$ac_ext
14525	done
14526        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14527$as_echo "$attr_name" >&6; }
14528        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14529
14530cat >>confdefs.h <<_ACEOF
14531#define PTHREAD_CREATE_JOINABLE $attr_name
14532_ACEOF
14533
14534        fi
14535
14536        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14537$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14538        flag=no
14539        case "${host_cpu}-${host_os}" in
14540            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14541            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14542        esac
14543        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14544$as_echo "${flag}" >&6; }
14545        if test "x$flag" != xno; then
14546            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14547        fi
14548
14549        LIBS="$save_LIBS"
14550        CFLAGS="$save_CFLAGS"
14551
14552        # More AIX lossage: must compile with xlc_r or cc_r
14553	if test x"$GCC" != xyes; then
14554          for ac_prog in xlc_r cc_r
14555do
14556  # Extract the first word of "$ac_prog", so it can be a program name with args.
14557set dummy $ac_prog; ac_word=$2
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559$as_echo_n "checking for $ac_word... " >&6; }
14560if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14561  $as_echo_n "(cached) " >&6
14562else
14563  if test -n "$PTHREAD_CC"; then
14564  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14565else
14566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567for as_dir in $PATH
14568do
14569  IFS=$as_save_IFS
14570  test -z "$as_dir" && as_dir=.
14571    for ac_exec_ext in '' $ac_executable_extensions; do
14572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14573    ac_cv_prog_PTHREAD_CC="$ac_prog"
14574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14575    break 2
14576  fi
14577done
14578  done
14579IFS=$as_save_IFS
14580
14581fi
14582fi
14583PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14584if test -n "$PTHREAD_CC"; then
14585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14586$as_echo "$PTHREAD_CC" >&6; }
14587else
14588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589$as_echo "no" >&6; }
14590fi
14591
14592
14593  test -n "$PTHREAD_CC" && break
14594done
14595test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14596
14597        else
14598          PTHREAD_CC=$CC
14599	fi
14600else
14601        PTHREAD_CC="$CC"
14602fi
14603
14604
14605
14606
14607
14608# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14609if test x"$ax_pthread_ok" = xyes; then
14610
14611$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14612
14613        :
14614else
14615        ax_pthread_ok=no
14616
14617fi
14618ac_ext=c
14619ac_cpp='$CPP $CPPFLAGS'
14620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622ac_compiler_gnu=$ac_cv_c_compiler_gnu
14623
14624
14625
14626ac_ext=c
14627ac_cpp='$CPP $CPPFLAGS'
14628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630ac_compiler_gnu=$ac_cv_c_compiler_gnu
14631
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
14633$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
14634if ${ax_cv_c_compiler_ms+:} false; then :
14635  $as_echo_n "(cached) " >&6
14636else
14637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638/* end confdefs.h.  */
14639
14640int
14641main ()
14642{
14643#ifndef _MSC_VER
14644       choke me
14645#endif
14646
14647  ;
14648  return 0;
14649}
14650_ACEOF
14651if ac_fn_c_try_compile "$LINENO"; then :
14652  ax_compiler_ms=yes
14653else
14654  ax_compiler_ms=no
14655fi
14656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657ax_cv_c_compiler_ms=$ax_compiler_ms
14658
14659fi
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
14661$as_echo "$ax_cv_c_compiler_ms" >&6; }
14662if test X$ax_compiler_ms = Xno; then :
14663  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS}"
14664fi
14665
14666#
14667# Use x_includes and x_libraries if they have been set (presumably by
14668# AC_PATH_X).
14669#
14670if test X$no_x != Xyes -a -n "$x_includes"; then :
14671  GL_CFLAGS="-I$x_includes $GL_CFLAGS"
14672fi
14673
14674for ac_header in windows.h
14675do :
14676  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14677if test "x$ac_cv_header_windows_h" = xyes; then :
14678  cat >>confdefs.h <<_ACEOF
14679#define HAVE_WINDOWS_H 1
14680_ACEOF
14681
14682fi
14683
14684done
14685
14686
14687ax_save_CPPFLAGS=$CPPFLAGS
14688CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
14689for ac_header in GL/gl.h OpenGL/gl.h
14690do :
14691  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14693# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14694#   include <windows.h>
14695# endif
14696
14697"
14698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14699  cat >>confdefs.h <<_ACEOF
14700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14701_ACEOF
14702
14703fi
14704
14705done
14706
14707CPPFLAGS=$ax_save_CPPFLAGS
14708
14709
14710
14711
14712
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
14714$as_echo_n "checking for OpenGL library... " >&6; }
14715if ${ax_cv_check_gl_libgl+:} false; then :
14716  $as_echo_n "(cached) " >&6
14717else
14718  ax_cv_check_gl_libgl=no
14719case $host_cpu in
14720  x86_64) ax_check_gl_libdir=lib64 ;;
14721  *)      ax_check_gl_libdir=lib ;;
14722esac
14723ax_save_CPPFLAGS=$CPPFLAGS
14724CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
14725if test X$no_x != Xyes -a -n "$x_libraries"; then :
14726  LDFLAGS="$LDFLAGS -L$x_libraries"
14727fi
14728ax_save_LDFLAGS=$LDFLAGS
14729ax_save_LIBS=$LIBS
14730ax_check_libs="-lopengl32 -lGL"
14731for ax_lib in $ax_check_libs; do
14732  if test X$ax_compiler_ms = Xyes; then :
14733  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
14734else
14735  ax_try_lib=$ax_lib
14736fi
14737  LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
14738  LIBS="$ax_try_lib $ax_save_LIBS"
14739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h.  */
14741
14742# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14743#   include <windows.h>
14744# endif
14745# ifdef HAVE_GL_GL_H
14746#   include <GL/gl.h>
14747# elif defined(HAVE_OPENGL_GL_H)
14748#   include <OpenGL/gl.h>
14749# else
14750#   error no gl.h
14751# endif
14752int
14753main ()
14754{
14755glBegin(0)
14756  ;
14757  return 0;
14758}
14759_ACEOF
14760if ac_fn_c_try_link "$LINENO"; then :
14761  ax_cv_check_gl_libgl=$ax_try_lib; break
14762else
14763  ax_check_gl_nvidia_flags="-L/usr/$ax_check_gl_libdir/nvidia"
14764                LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_nvidia_flags"
14765                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766/* end confdefs.h.  */
14767
14768# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14769#   include <windows.h>
14770# endif
14771# ifdef HAVE_GL_GL_H
14772#   include <GL/gl.h>
14773# elif defined(HAVE_OPENGL_GL_H)
14774#   include <OpenGL/gl.h>
14775# else
14776#   error no gl.h
14777# endif
14778int
14779main ()
14780{
14781glBegin(0)
14782  ;
14783  return 0;
14784}
14785_ACEOF
14786if ac_fn_c_try_link "$LINENO"; then :
14787  ax_cv_check_gl_libgl="$ax_check_gl_nvidia_flags $ax_try_lib"; break
14788else
14789  ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
14790                                LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
14791                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792/* end confdefs.h.  */
14793
14794# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14795#   include <windows.h>
14796# endif
14797# ifdef HAVE_GL_GL_H
14798#   include <GL/gl.h>
14799# elif defined(HAVE_OPENGL_GL_H)
14800#   include <OpenGL/gl.h>
14801# else
14802#   error no gl.h
14803# endif
14804int
14805main ()
14806{
14807glBegin(0)
14808  ;
14809  return 0;
14810}
14811_ACEOF
14812if ac_fn_c_try_link "$LINENO"; then :
14813  ax_cv_check_gl_libgl="$ax_check_gl_dylib_flag $ax_try_lib"; break
14814fi
14815rm -f core conftest.err conftest.$ac_objext \
14816    conftest$ac_exeext conftest.$ac_ext
14817fi
14818rm -f core conftest.err conftest.$ac_objext \
14819    conftest$ac_exeext conftest.$ac_ext
14820fi
14821rm -f core conftest.err conftest.$ac_objext \
14822    conftest$ac_exeext conftest.$ac_ext
14823done
14824
14825#
14826# If no_x is "yes", we don't want to wind up using a libGL that is
14827# linked with X11.  Test to see if the found libGL includes GLX
14828# functions.  If it does and no_x is "yes", we want to reset
14829# ax_cv_check_gl_libgl back to "no".
14830#
14831# Note that LDFLAGS and LIBS should still have whatever values they
14832# had when we broke out of the test loop above; use that.
14833#
14834if test "X$ax_cv_check_gl_libgl" != Xno; then :
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837
14838# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14839#   include <windows.h>
14840# endif
14841# ifdef HAVE_GL_GL_H
14842#   include <GL/gl.h>
14843# elif defined(HAVE_OPENGL_GL_H)
14844#   include <OpenGL/gl.h>
14845# else
14846#   error no gl.h
14847# endif
14848int
14849main ()
14850{
14851glXQueryVersion(0, 0, 0)
14852  ;
14853  return 0;
14854}
14855_ACEOF
14856if ac_fn_c_try_link "$LINENO"; then :
14857  if test X$no_x = Xyes; then :
14858  ax_cv_check_gl_libgl=no
14859fi
14860fi
14861rm -f core conftest.err conftest.$ac_objext \
14862    conftest$ac_exeext conftest.$ac_ext
14863fi
14864
14865LIBS=$ax_save_LIBS
14866if test "X$ax_cv_check_gl_libgl" = Xno -a X$no_x = Xyes; then :
14867  LDFLAGS="$ax_save_LDFLAGS -framework OpenGL"
14868      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869/* end confdefs.h.  */
14870
14871# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14872#   include <windows.h>
14873# endif
14874# ifdef HAVE_GL_GL_H
14875#   include <GL/gl.h>
14876# elif defined(HAVE_OPENGL_GL_H)
14877#   include <OpenGL/gl.h>
14878# else
14879#   error no gl.h
14880# endif
14881int
14882main ()
14883{
14884glBegin(0)
14885  ;
14886  return 0;
14887}
14888_ACEOF
14889if ac_fn_c_try_link "$LINENO"; then :
14890  ax_cv_check_gl_libgl='-framework OpenGL'
14891fi
14892rm -f core conftest.err conftest.$ac_objext \
14893    conftest$ac_exeext conftest.$ac_ext
14894fi
14895
14896LDFLAGS=$ax_save_LDFLAGS
14897CPPFLAGS=$ax_save_CPPFLAGS
14898fi
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
14900$as_echo "$ax_cv_check_gl_libgl" >&6; }
14901
14902if test "X$ax_cv_check_gl_libgl" = Xno; then :
14903  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
14904else
14905  GL_LIBS="$ax_cv_check_gl_libgl $GL_LIBS"
14906fi
14907ac_ext=c
14908ac_cpp='$CPP $CPPFLAGS'
14909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14911ac_compiler_gnu=$ac_cv_c_compiler_gnu
14912
14913
14914
14915
14916
14917	if test X$no_gl = Xyes; then :
14918  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14920as_fn_error $? "OpenGL is required.
14921See \`config.log' for more details" "$LINENO" 5; }
14922fi
14923
14924
14925GLU_CFLAGS=$GL_CFLAGS
14926
14927ax_save_CPPFLAGS=$CPPFLAGS
14928CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
14929for ac_header in GL/glu.h OpenGL/glu.h
14930do :
14931  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14932ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14933# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14934#   include <windows.h>
14935# endif
14936
14937"
14938if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14939  cat >>confdefs.h <<_ACEOF
14940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14941_ACEOF
14942
14943fi
14944
14945done
14946
14947CPPFLAGS=$ax_save_CPPFLAGS
14948
14949
14950
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
14952$as_echo_n "checking for OpenGL Utility library... " >&6; }
14953if ${ax_cv_check_glu_libglu+:} false; then :
14954  $as_echo_n "(cached) " >&6
14955else
14956  ax_cv_check_glu_libglu=no
14957ax_save_CPPFLAGS=$CPPFLAGS
14958CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
14959ax_save_LDFLAGS=$LDFLAGS
14960ax_save_LIBS=$LIBS
14961
14962#
14963# First, check for the possibility that everything we need is already in
14964# GL_LIBS.
14965#
14966LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
14967#
14968# libGLU typically links with libstdc++ on POSIX platforms.
14969# However, setting the language to C++ means that test program
14970# source is named "conftest.cc"; and Microsoft cl doesn't know what
14971# to do with such a file.
14972#
14973ac_ext=cpp
14974ac_cpp='$CXXCPP $CPPFLAGS'
14975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14978
14979if test X$ax_compiler_ms = Xyes; then :
14980  ac_ext=c
14981ac_cpp='$CPP $CPPFLAGS'
14982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984ac_compiler_gnu=$ac_cv_c_compiler_gnu
14985
14986fi
14987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988/* end confdefs.h.  */
14989
14990# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
14991#   include <windows.h>
14992# endif
14993# ifdef HAVE_GL_GLU_H
14994#   include <GL/glu.h>
14995# elif defined(HAVE_OPENGL_GLU_H)
14996#   include <OpenGL/glu.h>
14997# else
14998#   error no glu.h
14999# endif
15000int
15001main ()
15002{
15003gluBeginCurve(0)
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"; then :
15009  ax_cv_check_glu_libglu=yes
15010else
15011  LIBS=""
15012                ax_check_libs="-lglu32 -lGLU"
15013                for ax_lib in ${ax_check_libs}; do
15014                  if test X$ax_compiler_ms = Xyes; then :
15015  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
15016else
15017  ax_try_lib=$ax_lib
15018fi
15019                  LIBS="$ax_try_lib $ax_save_LIBS"
15020                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h.  */
15022
15023# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
15024#   include <windows.h>
15025# endif
15026# ifdef HAVE_GL_GLU_H
15027#   include <GL/glu.h>
15028# elif defined(HAVE_OPENGL_GLU_H)
15029#   include <OpenGL/glu.h>
15030# else
15031#   error no glu.h
15032# endif
15033int
15034main ()
15035{
15036gluBeginCurve(0)
15037  ;
15038  return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_link "$LINENO"; then :
15042  ax_cv_check_glu_libglu=$ax_try_lib; break
15043fi
15044rm -f core conftest.err conftest.$ac_objext \
15045    conftest$ac_exeext conftest.$ac_ext
15046                done
15047fi
15048rm -f core conftest.err conftest.$ac_objext \
15049    conftest$ac_exeext conftest.$ac_ext
15050if test X$ax_compiler_ms = Xyes; then :
15051  ac_ext=cpp
15052ac_cpp='$CXXCPP $CPPFLAGS'
15053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15056
15057fi
15058ac_ext=c
15059ac_cpp='$CPP $CPPFLAGS'
15060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15062ac_compiler_gnu=$ac_cv_c_compiler_gnu
15063
15064
15065LIBS=$ax_save_LIBS
15066LDFLAGS=$ax_save_LDFLAGS
15067CPPFLAGS=$ax_save_CPPFLAGS
15068fi
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
15070$as_echo "$ax_cv_check_glu_libglu" >&6; }
15071if test "X$ax_cv_check_glu_libglu" = Xno; then :
15072  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
15073else
15074  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
15075  GLU_LIBS=""
15076else
15077  GLU_LIBS="$ax_cv_check_glu_libglu"
15078fi
15079fi
15080
15081
15082
15083#
15084# Some versions of Mac OS X include a broken interpretation of the GLU
15085# tesselation callback function signature when using the C++ compiler.
15086#
15087if test "X$ax_cv_check_glu_libglu" != Xno; then :
15088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
15089$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
15090if ${ax_cv_varargs_glu_tesscb+:} false; then :
15091  $as_echo_n "(cached) " >&6
15092else
15093  ac_ext=cpp
15094ac_cpp='$CXXCPP $CPPFLAGS'
15095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15098
15099                      ax_cv_varargs_glu_tesscb=no
15100                      ax_save_CXXFLAGS=$CXXFLAGS
15101                      CXXFLAGS="$GL_CFLAGS $CXXFLAGS"
15102                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h.  */
15104
15105# ifdef HAVE_GL_GLU_H
15106#   include <GL/glu.h>
15107# else
15108#   include <OpenGL/glu.h>
15109# endif
15110int
15111main ()
15112{
15113GLvoid (*func)(...); gluTessCallback(0, 0, func)
15114  ;
15115  return 0;
15116}
15117_ACEOF
15118if ac_fn_cxx_try_compile "$LINENO"; then :
15119  ax_cv_varargs_glu_tesscb=yes
15120fi
15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122                      CXXFLAGS=$ax_save_CXXFLAGS
15123                      ac_ext=c
15124ac_cpp='$CPP $CPPFLAGS'
15125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15127ac_compiler_gnu=$ac_cv_c_compiler_gnu
15128
15129fi
15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
15131$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
15132      if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
15133
15134$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
15135
15136fi
15137fi
15138
15139	if test X$no_glu = Xyes; then :
15140  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15142as_fn_error $? "The OpenGL GLU library is required.
15143See \`config.log' for more details" "$LINENO" 5; }
15144fi
15145
15146
15147$as_echo "#define ENABLE_GL 1" >>confdefs.h
15148
15149fi
15150
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for which printer to use" >&5
15152$as_echo_n "checking for which printer to use... " >&6; }
15153
15154# Check whether --with-printer was given.
15155if test "${with_printer+set}" = set; then :
15156  withval=$with_printer;
15157else
15158  with_printer=lpr
15159fi
15160
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_printer" >&5
15162$as_echo "$with_printer" >&6; }
15163case " $hid_printers " in
15164     *\ $with_printer\ * )
15165         HIDLIST="$HIDLIST $with_printer"
15166	 ;;
15167     * ) as_fn_error $? "$with_printer is not a valid printer" "$LINENO" 5 ;;
15168esac
15169
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for which exporters to use" >&5
15171$as_echo_n "checking for which exporters to use... " >&6; }
15172
15173# Check whether --with-exporters was given.
15174if test "${with_exporters+set}" = set; then :
15175  withval=$with_exporters;
15176else
15177  with_exporters=$hid_exporters
15178fi
15179
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exporters" >&5
15181$as_echo "$with_exporters" >&6; }
15182for e in `echo $with_exporters | sed 's/,/ /g'`; do
15183    case " $hid_exporters " in
15184      *\ $e\ * )
15185         HIDLIST="$HIDLIST $e"
15186	 ;;
15187      * ) as_fn_error $? "$e is not a valid exporter" "$LINENO" 5 ;;
15188    esac
15189done
15190
15191if test "X$enable_jpeg" = "Xno" -a "X$enable_gif" = "Xno" -a "X$enable_png" = "Xno" ; then
15192	case " ${HIDLIST} " in
15193		*\ png\ *)
15194			as_fn_error $? "you have requested the png HID but turned off all output
15195formats!  If you do not want gif/jpeg/png output, use --with-exporters to list
15196which exporters you want and do not list png there." "$LINENO" 5
15197			;;
15198
15199		*)
15200			;;
15201	esac
15202fi
15203
15204for hid in $HIDLIST; do
15205    F=$srcdir/src/hid/$hid/hid.conf
15206    if test -f $F ; then
15207        echo checking $hid dependencies
15208        deps=
15209        . $F
15210        for dep in $deps; do
15211            if test "X`echo $HIDLIST | grep $dep`" = "X"; then
15212                as_fn_error $? "you have requested the $hid HID but not the $dep HID, which it depends on" "$LINENO" 5
15213            fi
15214        done
15215   fi
15216done
15217
15218for e in $HIDLIST; do
15219    HIDLIBS="$HIDLIBS lib$e.a"
15220done
15221
15222
15223
15224
15225# ------------- end HID config -------------------
15226
15227######################################################################
15228#
15229# desktop integration
15230#
15231
15232# Extract the first word of "env", so it can be a program name with args.
15233set dummy env; ac_word=$2
15234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15235$as_echo_n "checking for $ac_word... " >&6; }
15236if ${ac_cv_path_SETENV+:} false; then :
15237  $as_echo_n "(cached) " >&6
15238else
15239  case $SETENV in
15240  [\\/]* | ?:[\\/]*)
15241  ac_cv_path_SETENV="$SETENV" # Let the user override the test with a path.
15242  ;;
15243  *)
15244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245for as_dir in $PATH
15246do
15247  IFS=$as_save_IFS
15248  test -z "$as_dir" && as_dir=.
15249    for ac_exec_ext in '' $ac_executable_extensions; do
15250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15251    ac_cv_path_SETENV="$as_dir/$ac_word$ac_exec_ext"
15252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15253    break 2
15254  fi
15255done
15256  done
15257IFS=$as_save_IFS
15258
15259  ;;
15260esac
15261fi
15262SETENV=$ac_cv_path_SETENV
15263if test -n "$SETENV"; then
15264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETENV" >&5
15265$as_echo "$SETENV" >&6; }
15266else
15267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268$as_echo "no" >&6; }
15269fi
15270
15271
15272# Extract the first word of "gtk-update-icon-path", so it can be a program name with args.
15273set dummy gtk-update-icon-path; ac_word=$2
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15275$as_echo_n "checking for $ac_word... " >&6; }
15276if ${ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN+:} false; then :
15277  $as_echo_n "(cached) " >&6
15278else
15279  case $GTK_UPDATE_ICON_CACHE_BIN in
15280  [\\/]* | ?:[\\/]*)
15281  ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN="$GTK_UPDATE_ICON_CACHE_BIN" # Let the user override the test with a path.
15282  ;;
15283  *)
15284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15285for as_dir in $PATH
15286do
15287  IFS=$as_save_IFS
15288  test -z "$as_dir" && as_dir=.
15289    for ac_exec_ext in '' $ac_executable_extensions; do
15290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15291    ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN="$as_dir/$ac_word$ac_exec_ext"
15292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15293    break 2
15294  fi
15295done
15296  done
15297IFS=$as_save_IFS
15298
15299  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN" && ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN="true"
15300  ;;
15301esac
15302fi
15303GTK_UPDATE_ICON_CACHE_BIN=$ac_cv_path_GTK_UPDATE_ICON_CACHE_BIN
15304if test -n "$GTK_UPDATE_ICON_CACHE_BIN"; then
15305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE_BIN" >&5
15306$as_echo "$GTK_UPDATE_ICON_CACHE_BIN" >&6; }
15307else
15308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309$as_echo "no" >&6; }
15310fi
15311
15312
15313
15314# Change default location for XDG files (MIME and Icons)
15315
15316# Check whether --with-xdgdatadir was given.
15317if test "${with_xdgdatadir+set}" = set; then :
15318  withval=$with_xdgdatadir; opt_xdgdatadir=$withval
15319fi
15320
15321
15322# Change default location for KDE data files (KDE MIME registrations)
15323
15324# Check whether --with-kdedatadir was given.
15325if test "${with_kdedatadir+set}" = set; then :
15326  withval=$with_kdedatadir; opt_kdedatadir=$withval
15327fi
15328
15329
15330if test x$opt_xdgdatadir = x; then
15331	# path was not specified with --with-xdgdatadir
15332	XDGDATADIR='${datadir}'
15333else
15334	# path WAS specified with --with-xdgdatadir
15335	XDGDATADIR="$opt_xdgdatadir"
15336fi
15337
15338
15339if test x$opt_kdedatadir = x; then
15340	# path was not specified with --with-kdedatadir
15341	KDEDATADIR='${datadir}'
15342else
15343	# path WAS specified with --with-kdedatadir
15344	KDEDATADIR="$opt_kdedatadir"
15345fi
15346
15347
15348# Check whether --enable-update-desktop-database was given.
15349if test "${enable_update_desktop_database+set}" = set; then :
15350  enableval=$enable_update_desktop_database;
15351else
15352  enable_update_desktop_database=yes
15353fi
15354
15355
15356 if test x$enable_update_desktop_database = xyes; then
15357  ENABLE_UPDATE_DESKTOP_DATABASE_TRUE=
15358  ENABLE_UPDATE_DESKTOP_DATABASE_FALSE='#'
15359else
15360  ENABLE_UPDATE_DESKTOP_DATABASE_TRUE='#'
15361  ENABLE_UPDATE_DESKTOP_DATABASE_FALSE=
15362fi
15363
15364
15365if test x$enable_update_desktop_database = xyes ; then
15366	# Extract the first word of "update-desktop-database", so it can be a program name with args.
15367set dummy update-desktop-database; ac_word=$2
15368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15369$as_echo_n "checking for $ac_word... " >&6; }
15370if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
15371  $as_echo_n "(cached) " >&6
15372else
15373  case $UPDATE_DESKTOP_DATABASE in
15374  [\\/]* | ?:[\\/]*)
15375  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
15376  ;;
15377  *)
15378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379for as_dir in $PATH
15380do
15381  IFS=$as_save_IFS
15382  test -z "$as_dir" && as_dir=.
15383    for ac_exec_ext in '' $ac_executable_extensions; do
15384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15385    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15387    break 2
15388  fi
15389done
15390  done
15391IFS=$as_save_IFS
15392
15393  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
15394  ;;
15395esac
15396fi
15397UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
15398if test -n "$UPDATE_DESKTOP_DATABASE"; then
15399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
15400$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
15401else
15402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403$as_echo "no" >&6; }
15404fi
15405
15406
15407	if test $UPDATE_DESKTOP_DATABASE = no; then
15408	as_fn_error $? "Cannot find update-desktop-database, make sure it is installed and in your PATH, or configure with --disable-update-desktop-database" "$LINENO" 5
15409	fi
15410fi
15411
15412# Check whether --enable-update-mime-database was given.
15413if test "${enable_update_mime_database+set}" = set; then :
15414  enableval=$enable_update_mime_database;
15415else
15416  enable_update_mime_database=yes
15417fi
15418
15419
15420 if test x$enable_update_mime_database = xyes; then
15421  ENABLE_UPDATE_MIME_DATABASE_TRUE=
15422  ENABLE_UPDATE_MIME_DATABASE_FALSE='#'
15423else
15424  ENABLE_UPDATE_MIME_DATABASE_TRUE='#'
15425  ENABLE_UPDATE_MIME_DATABASE_FALSE=
15426fi
15427
15428
15429if test x$enable_update_mime_database = xyes ; then
15430	# Extract the first word of "update-mime-database", so it can be a program name with args.
15431set dummy update-mime-database; ac_word=$2
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15433$as_echo_n "checking for $ac_word... " >&6; }
15434if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
15435  $as_echo_n "(cached) " >&6
15436else
15437  case $UPDATE_MIME_DATABASE in
15438  [\\/]* | ?:[\\/]*)
15439  ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
15440  ;;
15441  *)
15442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15443for as_dir in $PATH
15444do
15445  IFS=$as_save_IFS
15446  test -z "$as_dir" && as_dir=.
15447    for ac_exec_ext in '' $ac_executable_extensions; do
15448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15449    ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15451    break 2
15452  fi
15453done
15454  done
15455IFS=$as_save_IFS
15456
15457  test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
15458  ;;
15459esac
15460fi
15461UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
15462if test -n "$UPDATE_MIME_DATABASE"; then
15463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
15464$as_echo "$UPDATE_MIME_DATABASE" >&6; }
15465else
15466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15467$as_echo "no" >&6; }
15468fi
15469
15470
15471	if test $UPDATE_MIME_DATABASE = no; then
15472	as_fn_error $? "Cannot find update-mime-database, make sure it is installed and in your PATH, or configure with --disable-update-mime-database" "$LINENO" 5
15473	fi
15474fi
15475
15476#
15477######################################################################
15478
15479for ac_prog in gm4 m4
15480do
15481  # Extract the first word of "$ac_prog", so it can be a program name with args.
15482set dummy $ac_prog; ac_word=$2
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15484$as_echo_n "checking for $ac_word... " >&6; }
15485if ${ac_cv_path_M4+:} false; then :
15486  $as_echo_n "(cached) " >&6
15487else
15488  case $M4 in
15489  [\\/]* | ?:[\\/]*)
15490  ac_cv_path_M4="$M4" # Let the user override the test with a path.
15491  ;;
15492  *)
15493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15494for as_dir in $PATH
15495do
15496  IFS=$as_save_IFS
15497  test -z "$as_dir" && as_dir=.
15498    for ac_exec_ext in '' $ac_executable_extensions; do
15499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15500    ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
15501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15502    break 2
15503  fi
15504done
15505  done
15506IFS=$as_save_IFS
15507
15508  ;;
15509esac
15510fi
15511M4=$ac_cv_path_M4
15512if test -n "$M4"; then
15513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
15514$as_echo "$M4" >&6; }
15515else
15516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15517$as_echo "no" >&6; }
15518fi
15519
15520
15521  test -n "$M4" && break
15522done
15523test -n "$M4" || M4="none"
15524
15525if test "X$M4" = "Xnone" ; then
15526	as_fn_error $? "Did not find a m4 executible.  You need to make sure
15527	that m4 is installed on your system and that m4 is in your path" "$LINENO" 5
15528fi
15529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $M4 has the division involving negative numbers bug" >&5
15530$as_echo_n "checking if $M4 has the division involving negative numbers bug... " >&6; }
15531pcb_m4_r=`echo "eval(-2/2)" | $M4`
15532if test "$pcb_m4_r" != "-1" ; then
15533	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534$as_echo "yes" >&6; }
15535	as_fn_error $? "It appears that $M4 has a bug involving division
15536with negative numbers.  In particular it just returned the result that
15537-2/2 = $pcb_m4_r instead of -1.  This is a known bug in GNU m4-1.4.9.  Please
15538install a non-broken m4." "$LINENO" 5
15539else
15540	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15541$as_echo "no" >&6; }
15542fi
15543
15544
15545for ac_prog in wish wish85 wish8.5 wish83 wish8.3 wish80 wish8.0 cygwish83 cygwish80
15546do
15547  # Extract the first word of "$ac_prog", so it can be a program name with args.
15548set dummy $ac_prog; ac_word=$2
15549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15550$as_echo_n "checking for $ac_word... " >&6; }
15551if ${ac_cv_path_WISH+:} false; then :
15552  $as_echo_n "(cached) " >&6
15553else
15554  case $WISH in
15555  [\\/]* | ?:[\\/]*)
15556  ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
15557  ;;
15558  *)
15559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560for as_dir in $PATH
15561do
15562  IFS=$as_save_IFS
15563  test -z "$as_dir" && as_dir=.
15564    for ac_exec_ext in '' $ac_executable_extensions; do
15565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15566    ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
15567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15568    break 2
15569  fi
15570done
15571  done
15572IFS=$as_save_IFS
15573
15574  ;;
15575esac
15576fi
15577WISH=$ac_cv_path_WISH
15578if test -n "$WISH"; then
15579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WISH" >&5
15580$as_echo "$WISH" >&6; }
15581else
15582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15583$as_echo "no" >&6; }
15584fi
15585
15586
15587  test -n "$WISH" && break
15588done
15589test -n "$WISH" || WISH="none"
15590
15591if test "X$WISH" = "Xnone" ; then
15592	as_fn_error $? "Did not find the wish executible.  You need to make sure
15593	that tcl is installed on your system and that wish is in your path" "$LINENO" 5
15594fi
15595
15596
15597cat >>confdefs.h <<_ACEOF
15598#define M4 $M4
15599_ACEOF
15600
15601GNUM4=$M4
15602
15603
15604cat >>confdefs.h <<_ACEOF
15605#define GNUM4 "$M4"
15606_ACEOF
15607
15608
15609# Extract the first word of "pdflatex", so it can be a program name with args.
15610set dummy pdflatex; ac_word=$2
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612$as_echo_n "checking for $ac_word... " >&6; }
15613if ${ac_cv_path_PDFLATEX+:} false; then :
15614  $as_echo_n "(cached) " >&6
15615else
15616  case $PDFLATEX in
15617  [\\/]* | ?:[\\/]*)
15618  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
15619  ;;
15620  *)
15621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622for as_dir in $PATH
15623do
15624  IFS=$as_save_IFS
15625  test -z "$as_dir" && as_dir=.
15626    for ac_exec_ext in '' $ac_executable_extensions; do
15627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15628    ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15630    break 2
15631  fi
15632done
15633  done
15634IFS=$as_save_IFS
15635
15636  test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX="notfound"
15637  ;;
15638esac
15639fi
15640PDFLATEX=$ac_cv_path_PDFLATEX
15641if test -n "$PDFLATEX"; then
15642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
15643$as_echo "$PDFLATEX" >&6; }
15644else
15645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646$as_echo "no" >&6; }
15647fi
15648
15649
15650 if test x$PDFLATEX = xnotfound; then
15651  MISSING_PDFLATEX_TRUE=
15652  MISSING_PDFLATEX_FALSE='#'
15653else
15654  MISSING_PDFLATEX_TRUE='#'
15655  MISSING_PDFLATEX_FALSE=
15656fi
15657
15658
15659# Extract the first word of "texi2dvi", so it can be a program name with args.
15660set dummy texi2dvi; ac_word=$2
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662$as_echo_n "checking for $ac_word... " >&6; }
15663if ${ac_cv_path_TEXI2DVI+:} false; then :
15664  $as_echo_n "(cached) " >&6
15665else
15666  case $TEXI2DVI in
15667  [\\/]* | ?:[\\/]*)
15668  ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
15669  ;;
15670  *)
15671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672for as_dir in $PATH
15673do
15674  IFS=$as_save_IFS
15675  test -z "$as_dir" && as_dir=.
15676    for ac_exec_ext in '' $ac_executable_extensions; do
15677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678    ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
15679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15680    break 2
15681  fi
15682done
15683  done
15684IFS=$as_save_IFS
15685
15686  test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="notfound"
15687  ;;
15688esac
15689fi
15690TEXI2DVI=$ac_cv_path_TEXI2DVI
15691if test -n "$TEXI2DVI"; then
15692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
15693$as_echo "$TEXI2DVI" >&6; }
15694else
15695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696$as_echo "no" >&6; }
15697fi
15698
15699
15700 if test x$TEXI2DVI = xnotfound; then
15701  MISSING_TEXI2DVI_TRUE=
15702  MISSING_TEXI2DVI_FALSE='#'
15703else
15704  MISSING_TEXI2DVI_TRUE='#'
15705  MISSING_TEXI2DVI_FALSE=
15706fi
15707
15708
15709# Extract the first word of "ps2pdf", so it can be a program name with args.
15710set dummy ps2pdf; ac_word=$2
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15712$as_echo_n "checking for $ac_word... " >&6; }
15713if ${ac_cv_path_PS2PDF+:} false; then :
15714  $as_echo_n "(cached) " >&6
15715else
15716  case $PS2PDF in
15717  [\\/]* | ?:[\\/]*)
15718  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
15719  ;;
15720  *)
15721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722for as_dir in $PATH
15723do
15724  IFS=$as_save_IFS
15725  test -z "$as_dir" && as_dir=.
15726    for ac_exec_ext in '' $ac_executable_extensions; do
15727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15728    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
15729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15730    break 2
15731  fi
15732done
15733  done
15734IFS=$as_save_IFS
15735
15736  test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="notfound"
15737  ;;
15738esac
15739fi
15740PS2PDF=$ac_cv_path_PS2PDF
15741if test -n "$PS2PDF"; then
15742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
15743$as_echo "$PS2PDF" >&6; }
15744else
15745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746$as_echo "no" >&6; }
15747fi
15748
15749
15750 if test x$PS2PDF = xnotfound; then
15751  MISSING_PS2PDF_TRUE=
15752  MISSING_PS2PDF_FALSE='#'
15753else
15754  MISSING_PS2PDF_TRUE='#'
15755  MISSING_PS2PDF_FALSE=
15756fi
15757
15758
15759# used to build some of the getting started guide
15760# Extract the first word of "gschem", so it can be a program name with args.
15761set dummy gschem; ac_word=$2
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15763$as_echo_n "checking for $ac_word... " >&6; }
15764if ${ac_cv_path_GSCHEM+:} false; then :
15765  $as_echo_n "(cached) " >&6
15766else
15767  case $GSCHEM in
15768  [\\/]* | ?:[\\/]*)
15769  ac_cv_path_GSCHEM="$GSCHEM" # Let the user override the test with a path.
15770  ;;
15771  *)
15772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773for as_dir in $PATH
15774do
15775  IFS=$as_save_IFS
15776  test -z "$as_dir" && as_dir=.
15777    for ac_exec_ext in '' $ac_executable_extensions; do
15778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15779    ac_cv_path_GSCHEM="$as_dir/$ac_word$ac_exec_ext"
15780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15781    break 2
15782  fi
15783done
15784  done
15785IFS=$as_save_IFS
15786
15787  test -z "$ac_cv_path_GSCHEM" && ac_cv_path_GSCHEM="notfound"
15788  ;;
15789esac
15790fi
15791GSCHEM=$ac_cv_path_GSCHEM
15792if test -n "$GSCHEM"; then
15793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCHEM" >&5
15794$as_echo "$GSCHEM" >&6; }
15795else
15796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797$as_echo "no" >&6; }
15798fi
15799
15800
15801 if test x$GSCHEM = xnotfound; then
15802  MISSING_GSCHEM_TRUE=
15803  MISSING_GSCHEM_FALSE='#'
15804else
15805  MISSING_GSCHEM_TRUE='#'
15806  MISSING_GSCHEM_FALSE=
15807fi
15808
15809
15810if test "X$docs_yesno" = "Xyes" -a "X$pcb_git_version" = "Xyes" ; then
15811	if test "$PDFLATEX" = "notfound" -o "$TEXI2DVI" = "notfound" -o "$PS2PDF" = "notfound" ; then
15812		as_fn_error $? "It appears that you are building from a source tree obtained
15813via git but you do not have the required tools installed to build the documentation.  Here
15814is a list of tools and the detected values:
15815PDFLATEX:  $PDFLATEX
15816TEXI2DVI:  $TEXI2DVI
15817PS2PDF:    $PS2PDF
15818GSCHEM:    $GSCHEM
15819
15820Either make sure these tools are installed or disable building and installing the documentation
15821by using the --disable-doc configure option.
15822" "$LINENO" 5
15823	fi
15824fi
15825
15826############################################################################
15827#
15828# These checks are for tools used by the testsuite.  It will not be fatal
15829# if these are missing because this is primarily for developer use.  It is
15830# possible that we might add some --enable flag in the future that forces
15831# full tools for development work.
15832
15833# Check for ImageMagick tools used by the testsuite
15834# Extract the first word of "animate", so it can be a program name with args.
15835set dummy animate; ac_word=$2
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837$as_echo_n "checking for $ac_word... " >&6; }
15838if ${ac_cv_path_IM_ANIMATE+:} false; then :
15839  $as_echo_n "(cached) " >&6
15840else
15841  case $IM_ANIMATE in
15842  [\\/]* | ?:[\\/]*)
15843  ac_cv_path_IM_ANIMATE="$IM_ANIMATE" # Let the user override the test with a path.
15844  ;;
15845  *)
15846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847for as_dir in $PATH
15848do
15849  IFS=$as_save_IFS
15850  test -z "$as_dir" && as_dir=.
15851    for ac_exec_ext in '' $ac_executable_extensions; do
15852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853    ac_cv_path_IM_ANIMATE="$as_dir/$ac_word$ac_exec_ext"
15854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855    break 2
15856  fi
15857done
15858  done
15859IFS=$as_save_IFS
15860
15861  test -z "$ac_cv_path_IM_ANIMATE" && ac_cv_path_IM_ANIMATE="notfound"
15862  ;;
15863esac
15864fi
15865IM_ANIMATE=$ac_cv_path_IM_ANIMATE
15866if test -n "$IM_ANIMATE"; then
15867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_ANIMATE" >&5
15868$as_echo "$IM_ANIMATE" >&6; }
15869else
15870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871$as_echo "no" >&6; }
15872fi
15873
15874
15875# Extract the first word of "compare", so it can be a program name with args.
15876set dummy compare; ac_word=$2
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15878$as_echo_n "checking for $ac_word... " >&6; }
15879if ${ac_cv_path_IM_COMPARE+:} false; then :
15880  $as_echo_n "(cached) " >&6
15881else
15882  case $IM_COMPARE in
15883  [\\/]* | ?:[\\/]*)
15884  ac_cv_path_IM_COMPARE="$IM_COMPARE" # Let the user override the test with a path.
15885  ;;
15886  *)
15887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15888for as_dir in $PATH
15889do
15890  IFS=$as_save_IFS
15891  test -z "$as_dir" && as_dir=.
15892    for ac_exec_ext in '' $ac_executable_extensions; do
15893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15894    ac_cv_path_IM_COMPARE="$as_dir/$ac_word$ac_exec_ext"
15895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15896    break 2
15897  fi
15898done
15899  done
15900IFS=$as_save_IFS
15901
15902  test -z "$ac_cv_path_IM_COMPARE" && ac_cv_path_IM_COMPARE="notfound"
15903  ;;
15904esac
15905fi
15906IM_COMPARE=$ac_cv_path_IM_COMPARE
15907if test -n "$IM_COMPARE"; then
15908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_COMPARE" >&5
15909$as_echo "$IM_COMPARE" >&6; }
15910else
15911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912$as_echo "no" >&6; }
15913fi
15914
15915
15916# Extract the first word of "composite", so it can be a program name with args.
15917set dummy composite; ac_word=$2
15918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15919$as_echo_n "checking for $ac_word... " >&6; }
15920if ${ac_cv_path_IM_COMPOSITE+:} false; then :
15921  $as_echo_n "(cached) " >&6
15922else
15923  case $IM_COMPOSITE in
15924  [\\/]* | ?:[\\/]*)
15925  ac_cv_path_IM_COMPOSITE="$IM_COMPOSITE" # Let the user override the test with a path.
15926  ;;
15927  *)
15928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15929for as_dir in $PATH
15930do
15931  IFS=$as_save_IFS
15932  test -z "$as_dir" && as_dir=.
15933    for ac_exec_ext in '' $ac_executable_extensions; do
15934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15935    ac_cv_path_IM_COMPOSITE="$as_dir/$ac_word$ac_exec_ext"
15936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15937    break 2
15938  fi
15939done
15940  done
15941IFS=$as_save_IFS
15942
15943  test -z "$ac_cv_path_IM_COMPOSITE" && ac_cv_path_IM_COMPOSITE="notfound"
15944  ;;
15945esac
15946fi
15947IM_COMPOSITE=$ac_cv_path_IM_COMPOSITE
15948if test -n "$IM_COMPOSITE"; then
15949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_COMPOSITE" >&5
15950$as_echo "$IM_COMPOSITE" >&6; }
15951else
15952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953$as_echo "no" >&6; }
15954fi
15955
15956
15957# Extract the first word of "convert", so it can be a program name with args.
15958set dummy convert; ac_word=$2
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960$as_echo_n "checking for $ac_word... " >&6; }
15961if ${ac_cv_path_IM_CONVERT+:} false; then :
15962  $as_echo_n "(cached) " >&6
15963else
15964  case $IM_CONVERT in
15965  [\\/]* | ?:[\\/]*)
15966  ac_cv_path_IM_CONVERT="$IM_CONVERT" # Let the user override the test with a path.
15967  ;;
15968  *)
15969  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970for as_dir in $PATH
15971do
15972  IFS=$as_save_IFS
15973  test -z "$as_dir" && as_dir=.
15974    for ac_exec_ext in '' $ac_executable_extensions; do
15975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15976    ac_cv_path_IM_CONVERT="$as_dir/$ac_word$ac_exec_ext"
15977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15978    break 2
15979  fi
15980done
15981  done
15982IFS=$as_save_IFS
15983
15984  test -z "$ac_cv_path_IM_CONVERT" && ac_cv_path_IM_CONVERT="notfound"
15985  ;;
15986esac
15987fi
15988IM_CONVERT=$ac_cv_path_IM_CONVERT
15989if test -n "$IM_CONVERT"; then
15990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_CONVERT" >&5
15991$as_echo "$IM_CONVERT" >&6; }
15992else
15993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994$as_echo "no" >&6; }
15995fi
15996
15997
15998# Extract the first word of "display", so it can be a program name with args.
15999set dummy display; ac_word=$2
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16001$as_echo_n "checking for $ac_word... " >&6; }
16002if ${ac_cv_path_IM_DISPLAY+:} false; then :
16003  $as_echo_n "(cached) " >&6
16004else
16005  case $IM_DISPLAY in
16006  [\\/]* | ?:[\\/]*)
16007  ac_cv_path_IM_DISPLAY="$IM_DISPLAY" # Let the user override the test with a path.
16008  ;;
16009  *)
16010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011for as_dir in $PATH
16012do
16013  IFS=$as_save_IFS
16014  test -z "$as_dir" && as_dir=.
16015    for ac_exec_ext in '' $ac_executable_extensions; do
16016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017    ac_cv_path_IM_DISPLAY="$as_dir/$ac_word$ac_exec_ext"
16018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16019    break 2
16020  fi
16021done
16022  done
16023IFS=$as_save_IFS
16024
16025  test -z "$ac_cv_path_IM_DISPLAY" && ac_cv_path_IM_DISPLAY="notfound"
16026  ;;
16027esac
16028fi
16029IM_DISPLAY=$ac_cv_path_IM_DISPLAY
16030if test -n "$IM_DISPLAY"; then
16031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_DISPLAY" >&5
16032$as_echo "$IM_DISPLAY" >&6; }
16033else
16034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16035$as_echo "no" >&6; }
16036fi
16037
16038
16039# Extract the first word of "montage", so it can be a program name with args.
16040set dummy montage; ac_word=$2
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16042$as_echo_n "checking for $ac_word... " >&6; }
16043if ${ac_cv_path_IM_MONTAGE+:} false; then :
16044  $as_echo_n "(cached) " >&6
16045else
16046  case $IM_MONTAGE in
16047  [\\/]* | ?:[\\/]*)
16048  ac_cv_path_IM_MONTAGE="$IM_MONTAGE" # Let the user override the test with a path.
16049  ;;
16050  *)
16051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052for as_dir in $PATH
16053do
16054  IFS=$as_save_IFS
16055  test -z "$as_dir" && as_dir=.
16056    for ac_exec_ext in '' $ac_executable_extensions; do
16057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058    ac_cv_path_IM_MONTAGE="$as_dir/$ac_word$ac_exec_ext"
16059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060    break 2
16061  fi
16062done
16063  done
16064IFS=$as_save_IFS
16065
16066  test -z "$ac_cv_path_IM_MONTAGE" && ac_cv_path_IM_MONTAGE="notfound"
16067  ;;
16068esac
16069fi
16070IM_MONTAGE=$ac_cv_path_IM_MONTAGE
16071if test -n "$IM_MONTAGE"; then
16072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IM_MONTAGE" >&5
16073$as_echo "$IM_MONTAGE" >&6; }
16074else
16075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076$as_echo "no" >&6; }
16077fi
16078
16079
16080# Extract the first word of "xhost", so it can be a program name with args.
16081set dummy xhost; ac_word=$2
16082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16083$as_echo_n "checking for $ac_word... " >&6; }
16084if ${ac_cv_path_XHOST+:} false; then :
16085  $as_echo_n "(cached) " >&6
16086else
16087  case $XHOST in
16088  [\\/]* | ?:[\\/]*)
16089  ac_cv_path_XHOST="$XHOST" # Let the user override the test with a path.
16090  ;;
16091  *)
16092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093for as_dir in $PATH
16094do
16095  IFS=$as_save_IFS
16096  test -z "$as_dir" && as_dir=.
16097    for ac_exec_ext in '' $ac_executable_extensions; do
16098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16099    ac_cv_path_XHOST="$as_dir/$ac_word$ac_exec_ext"
16100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101    break 2
16102  fi
16103done
16104  done
16105IFS=$as_save_IFS
16106
16107  test -z "$ac_cv_path_XHOST" && ac_cv_path_XHOST="notfound"
16108  ;;
16109esac
16110fi
16111XHOST=$ac_cv_path_XHOST
16112if test -n "$XHOST"; then
16113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XHOST" >&5
16114$as_echo "$XHOST" >&6; }
16115else
16116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117$as_echo "no" >&6; }
16118fi
16119
16120
16121missing_magick=""
16122test "${IM_ANIMATE}" != "notfound" || missing_magick="${missing_magick} animate"
16123test "${IM_COMPARE}" != "notfound" || missing_magick="${missing_magick} compare"
16124test "${IM_COMPOSITE}" != "notfound" || missing_magick="${missing_magick} composite"
16125test "${IM_CONVERT}" != "notfound" || missing_magick="${missing_magick} convert"
16126test "${IM_DISPLAY}" != "notfound" || missing_magick="${missing_magick} display"
16127test "${IM_MONTAGE}" != "notfound" || missing_magick="${missing_magick} montage"
16128
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all ImageMagick tools needed for the testsuite were found" >&5
16130$as_echo_n "checking if all ImageMagick tools needed for the testsuite were found... " >&6; }
16131if test "X${missing_magick}" != "X" ; then
16132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no.  The testsuite will be disabled because the following
16133tools from the ImageMagick suite were not found:
16134${missing_magick}
16135No loss in pcb functionality should be experienced, you just will not
16136be able to run the full regression testsuite.
16137" >&5
16138$as_echo "no.  The testsuite will be disabled because the following
16139tools from the ImageMagick suite were not found:
16140${missing_magick}
16141No loss in pcb functionality should be experienced, you just will not
16142be able to run the full regression testsuite.
16143" >&6; }
16144    have_magick=no
16145else
16146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16147$as_echo "yes" >&6; }
16148    have_magick=yes
16149fi
16150
16151have_test_tools=yes
16152
16153test $have_magick = yes || have_test_tools=no
16154
16155# the RS274-X export HID is partially checked by looking at the result with
16156# gerbv
16157# Extract the first word of "gerbv", so it can be a program name with args.
16158set dummy gerbv; ac_word=$2
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16160$as_echo_n "checking for $ac_word... " >&6; }
16161if ${ac_cv_path_GERBV+:} false; then :
16162  $as_echo_n "(cached) " >&6
16163else
16164  case $GERBV in
16165  [\\/]* | ?:[\\/]*)
16166  ac_cv_path_GERBV="$GERBV" # Let the user override the test with a path.
16167  ;;
16168  *)
16169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16170for as_dir in $PATH
16171do
16172  IFS=$as_save_IFS
16173  test -z "$as_dir" && as_dir=.
16174    for ac_exec_ext in '' $ac_executable_extensions; do
16175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16176    ac_cv_path_GERBV="$as_dir/$ac_word$ac_exec_ext"
16177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16178    break 2
16179  fi
16180done
16181  done
16182IFS=$as_save_IFS
16183
16184  test -z "$ac_cv_path_GERBV" && ac_cv_path_GERBV="notfound"
16185  ;;
16186esac
16187fi
16188GERBV=$ac_cv_path_GERBV
16189if test -n "$GERBV"; then
16190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GERBV" >&5
16191$as_echo "$GERBV" >&6; }
16192else
16193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16194$as_echo "no" >&6; }
16195fi
16196
16197
16198test $GERBV != notfound || have_test_tools=no
16199
16200
16201 if test x$have_test_tools = xyes; then
16202  HAVE_TEST_TOOLS_TRUE=
16203  HAVE_TEST_TOOLS_FALSE='#'
16204else
16205  HAVE_TEST_TOOLS_TRUE='#'
16206  HAVE_TEST_TOOLS_FALSE=
16207fi
16208
16209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all the required testsuite tools were found" >&5
16210$as_echo_n "checking if all the required testsuite tools were found... " >&6; }
16211if test x$have_test_tools = xyes ; then
16212	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16213$as_echo "yes" >&6; }
16214else
16215	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- the testsuite will be disabled" >&5
16216$as_echo "no -- the testsuite will be disabled" >&6; }
16217fi
16218
16219
16220#
16221############################################################################
16222
16223
16224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16225$as_echo_n "checking for sqrt in -lm... " >&6; }
16226if ${ac_cv_lib_m_sqrt+:} false; then :
16227  $as_echo_n "(cached) " >&6
16228else
16229  ac_check_lib_save_LIBS=$LIBS
16230LIBS="-lm  $LIBS"
16231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232/* end confdefs.h.  */
16233
16234/* Override any GCC internal prototype to avoid an error.
16235   Use char because int might match the return type of a GCC
16236   builtin and then its argument prototype would still apply.  */
16237#ifdef __cplusplus
16238extern "C"
16239#endif
16240char sqrt ();
16241int
16242main ()
16243{
16244return sqrt ();
16245  ;
16246  return 0;
16247}
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250  ac_cv_lib_m_sqrt=yes
16251else
16252  ac_cv_lib_m_sqrt=no
16253fi
16254rm -f core conftest.err conftest.$ac_objext \
16255    conftest$ac_exeext conftest.$ac_ext
16256LIBS=$ac_check_lib_save_LIBS
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
16259$as_echo "$ac_cv_lib_m_sqrt" >&6; }
16260if test "x$ac_cv_lib_m_sqrt" = xyes; then :
16261  cat >>confdefs.h <<_ACEOF
16262#define HAVE_LIBM 1
16263_ACEOF
16264
16265  LIBS="-lm $LIBS"
16266
16267fi
16268
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16270$as_echo_n "checking for dlopen in -ldl... " >&6; }
16271if ${ac_cv_lib_dl_dlopen+:} false; then :
16272  $as_echo_n "(cached) " >&6
16273else
16274  ac_check_lib_save_LIBS=$LIBS
16275LIBS="-ldl  $LIBS"
16276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h.  */
16278
16279/* Override any GCC internal prototype to avoid an error.
16280   Use char because int might match the return type of a GCC
16281   builtin and then its argument prototype would still apply.  */
16282#ifdef __cplusplus
16283extern "C"
16284#endif
16285char dlopen ();
16286int
16287main ()
16288{
16289return dlopen ();
16290  ;
16291  return 0;
16292}
16293_ACEOF
16294if ac_fn_c_try_link "$LINENO"; then :
16295  ac_cv_lib_dl_dlopen=yes
16296else
16297  ac_cv_lib_dl_dlopen=no
16298fi
16299rm -f core conftest.err conftest.$ac_objext \
16300    conftest$ac_exeext conftest.$ac_ext
16301LIBS=$ac_check_lib_save_LIBS
16302fi
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16304$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16305if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16306  cat >>confdefs.h <<_ACEOF
16307#define HAVE_LIBDL 1
16308_ACEOF
16309
16310  LIBS="-ldl $LIBS"
16311
16312fi
16313
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lxnet" >&5
16315$as_echo_n "checking for gethostbyname in -lxnet... " >&6; }
16316if ${ac_cv_lib_xnet_gethostbyname+:} false; then :
16317  $as_echo_n "(cached) " >&6
16318else
16319  ac_check_lib_save_LIBS=$LIBS
16320LIBS="-lxnet  $LIBS"
16321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h.  */
16323
16324/* Override any GCC internal prototype to avoid an error.
16325   Use char because int might match the return type of a GCC
16326   builtin and then its argument prototype would still apply.  */
16327#ifdef __cplusplus
16328extern "C"
16329#endif
16330char gethostbyname ();
16331int
16332main ()
16333{
16334return gethostbyname ();
16335  ;
16336  return 0;
16337}
16338_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then :
16340  ac_cv_lib_xnet_gethostbyname=yes
16341else
16342  ac_cv_lib_xnet_gethostbyname=no
16343fi
16344rm -f core conftest.err conftest.$ac_objext \
16345    conftest$ac_exeext conftest.$ac_ext
16346LIBS=$ac_check_lib_save_LIBS
16347fi
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_gethostbyname" >&5
16349$as_echo "$ac_cv_lib_xnet_gethostbyname" >&6; }
16350if test "x$ac_cv_lib_xnet_gethostbyname" = xyes; then :
16351  cat >>confdefs.h <<_ACEOF
16352#define HAVE_LIBXNET 1
16353_ACEOF
16354
16355  LIBS="-lxnet $LIBS"
16356
16357fi
16358
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yywrap in -lfl" >&5
16360$as_echo_n "checking for yywrap in -lfl... " >&6; }
16361if ${ac_cv_lib_fl_yywrap+:} false; then :
16362  $as_echo_n "(cached) " >&6
16363else
16364  ac_check_lib_save_LIBS=$LIBS
16365LIBS="-lfl  $LIBS"
16366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367/* end confdefs.h.  */
16368
16369/* Override any GCC internal prototype to avoid an error.
16370   Use char because int might match the return type of a GCC
16371   builtin and then its argument prototype would still apply.  */
16372#ifdef __cplusplus
16373extern "C"
16374#endif
16375char yywrap ();
16376int
16377main ()
16378{
16379return yywrap ();
16380  ;
16381  return 0;
16382}
16383_ACEOF
16384if ac_fn_c_try_link "$LINENO"; then :
16385  ac_cv_lib_fl_yywrap=yes
16386else
16387  ac_cv_lib_fl_yywrap=no
16388fi
16389rm -f core conftest.err conftest.$ac_objext \
16390    conftest$ac_exeext conftest.$ac_ext
16391LIBS=$ac_check_lib_save_LIBS
16392fi
16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_yywrap" >&5
16394$as_echo "$ac_cv_lib_fl_yywrap" >&6; }
16395if test "x$ac_cv_lib_fl_yywrap" = xyes; then :
16396  cat >>confdefs.h <<_ACEOF
16397#define HAVE_LIBFL 1
16398_ACEOF
16399
16400  LIBS="-lfl $LIBS"
16401
16402fi
16403
16404
16405for ac_func in getline
16406do :
16407  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16408if test "x$ac_cv_func_getline" = xyes; then :
16409  cat >>confdefs.h <<_ACEOF
16410#define HAVE_GETLINE 1
16411_ACEOF
16412
16413fi
16414done
16415
16416for ac_func in strcasestr
16417do :
16418  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
16419if test "x$ac_cv_func_strcasestr" = xyes; then :
16420  cat >>confdefs.h <<_ACEOF
16421#define HAVE_STRCASESTR 1
16422_ACEOF
16423
16424fi
16425done
16426
16427for ac_func in strerror
16428do :
16429  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
16430if test "x$ac_cv_func_strerror" = xyes; then :
16431  cat >>confdefs.h <<_ACEOF
16432#define HAVE_STRERROR 1
16433_ACEOF
16434
16435fi
16436done
16437
16438for ac_func in regcomp re_comp
16439do :
16440  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16441ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16442if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16443  cat >>confdefs.h <<_ACEOF
16444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16445_ACEOF
16446
16447fi
16448done
16449
16450for ac_func in logf expf rint
16451do :
16452  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16453ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16454if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16455  cat >>confdefs.h <<_ACEOF
16456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16457_ACEOF
16458
16459fi
16460done
16461
16462for ac_func in vsnprintf
16463do :
16464  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16465if test "x$ac_cv_func_vsnprintf" = xyes; then :
16466  cat >>confdefs.h <<_ACEOF
16467#define HAVE_VSNPRINTF 1
16468_ACEOF
16469
16470fi
16471done
16472
16473for ac_func in getpwuid getcwd
16474do :
16475  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16476ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16477if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16478  cat >>confdefs.h <<_ACEOF
16479#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16480_ACEOF
16481
16482fi
16483done
16484
16485for ac_func in rand random
16486do :
16487  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16488ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16489if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16490  cat >>confdefs.h <<_ACEOF
16491#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492_ACEOF
16493
16494fi
16495done
16496
16497for ac_func in stat
16498do :
16499  ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
16500if test "x$ac_cv_func_stat" = xyes; then :
16501  cat >>confdefs.h <<_ACEOF
16502#define HAVE_STAT 1
16503_ACEOF
16504
16505fi
16506done
16507
16508
16509for ac_func in mkdtemp
16510do :
16511  ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16512if test "x$ac_cv_func_mkdtemp" = xyes; then :
16513  cat >>confdefs.h <<_ACEOF
16514#define HAVE_MKDTEMP 1
16515_ACEOF
16516
16517fi
16518done
16519
16520
16521# normally used for all file i/o
16522for ac_func in popen
16523do :
16524  ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
16525if test "x$ac_cv_func_popen" = xyes; then :
16526  cat >>confdefs.h <<_ACEOF
16527#define HAVE_POPEN 1
16528_ACEOF
16529
16530fi
16531done
16532
16533
16534# for lrealpath.c
16535for ac_func in realpath canonicalize_file_name
16536do :
16537  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16538ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16539if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16540  cat >>confdefs.h <<_ACEOF
16541#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16542_ACEOF
16543
16544fi
16545done
16546
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
16548$as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
16549if ${libiberty_cv_decl_needed_canonicalize_file_name+:} false; then :
16550  $as_echo_n "(cached) " >&6
16551else
16552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553/* end confdefs.h.  */
16554
16555#include "confdefs.h"
16556#include <stdio.h>
16557#ifdef HAVE_STRING_H
16558#include <string.h>
16559#else
16560#ifdef HAVE_STRINGS_H
16561#include <strings.h>
16562#endif
16563#endif
16564#ifdef HAVE_STDLIB_H
16565#include <stdlib.h>
16566#endif
16567#ifdef HAVE_UNISTD_H
16568#include <unistd.h>
16569#endif
16570int
16571main ()
16572{
16573char *(*pfn) = (char *(*)) canonicalize_file_name
16574  ;
16575  return 0;
16576}
16577_ACEOF
16578if ac_fn_c_try_compile "$LINENO"; then :
16579  libiberty_cv_decl_needed_canonicalize_file_name=no
16580else
16581  libiberty_cv_decl_needed_canonicalize_file_name=yes
16582fi
16583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584fi
16585
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
16587$as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
16588if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
16589
16590$as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
16591
16592fi
16593
16594
16595# for pcb_spawnvp in action.c on Windows
16596for ac_func in _spawnvp
16597do :
16598  ac_fn_c_check_func "$LINENO" "_spawnvp" "ac_cv_func__spawnvp"
16599if test "x$ac_cv_func__spawnvp" = xyes; then :
16600  cat >>confdefs.h <<_ACEOF
16601#define HAVE__SPAWNVP 1
16602_ACEOF
16603
16604fi
16605done
16606
16607
16608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16609$as_echo_n "checking for ANSI C header files... " >&6; }
16610if ${ac_cv_header_stdc+:} false; then :
16611  $as_echo_n "(cached) " >&6
16612else
16613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614/* end confdefs.h.  */
16615#include <stdlib.h>
16616#include <stdarg.h>
16617#include <string.h>
16618#include <float.h>
16619
16620int
16621main ()
16622{
16623
16624  ;
16625  return 0;
16626}
16627_ACEOF
16628if ac_fn_c_try_compile "$LINENO"; then :
16629  ac_cv_header_stdc=yes
16630else
16631  ac_cv_header_stdc=no
16632fi
16633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634
16635if test $ac_cv_header_stdc = yes; then
16636  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639#include <string.h>
16640
16641_ACEOF
16642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16643  $EGREP "memchr" >/dev/null 2>&1; then :
16644
16645else
16646  ac_cv_header_stdc=no
16647fi
16648rm -f conftest*
16649
16650fi
16651
16652if test $ac_cv_header_stdc = yes; then
16653  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h.  */
16656#include <stdlib.h>
16657
16658_ACEOF
16659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16660  $EGREP "free" >/dev/null 2>&1; then :
16661
16662else
16663  ac_cv_header_stdc=no
16664fi
16665rm -f conftest*
16666
16667fi
16668
16669if test $ac_cv_header_stdc = yes; then
16670  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16671  if test "$cross_compiling" = yes; then :
16672  :
16673else
16674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675/* end confdefs.h.  */
16676#include <ctype.h>
16677#include <stdlib.h>
16678#if ((' ' & 0x0FF) == 0x020)
16679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16681#else
16682# define ISLOWER(c) \
16683		   (('a' <= (c) && (c) <= 'i') \
16684		     || ('j' <= (c) && (c) <= 'r') \
16685		     || ('s' <= (c) && (c) <= 'z'))
16686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16687#endif
16688
16689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16690int
16691main ()
16692{
16693  int i;
16694  for (i = 0; i < 256; i++)
16695    if (XOR (islower (i), ISLOWER (i))
16696	|| toupper (i) != TOUPPER (i))
16697      return 2;
16698  return 0;
16699}
16700_ACEOF
16701if ac_fn_c_try_run "$LINENO"; then :
16702
16703else
16704  ac_cv_header_stdc=no
16705fi
16706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16707  conftest.$ac_objext conftest.beam conftest.$ac_ext
16708fi
16709
16710fi
16711fi
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16713$as_echo "$ac_cv_header_stdc" >&6; }
16714if test $ac_cv_header_stdc = yes; then
16715
16716$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16717
16718fi
16719
16720for ac_header in limits.h locale.h string.h sys/types.h regex.h pwd.h
16721do :
16722  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16723ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16724if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16725  cat >>confdefs.h <<_ACEOF
16726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16727_ACEOF
16728
16729fi
16730
16731done
16732
16733for ac_header in sys/socket.h netinet/in.h netdb.h sys/param.h sys/times.h sys/wait.h
16734do :
16735  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16736ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16737if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16738  cat >>confdefs.h <<_ACEOF
16739#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16740_ACEOF
16741
16742fi
16743
16744done
16745
16746for ac_header in dlfcn.h
16747do :
16748  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
16749if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16750  cat >>confdefs.h <<_ACEOF
16751#define HAVE_DLFCN_H 1
16752_ACEOF
16753
16754fi
16755
16756done
16757
16758
16759if test "x${WIN32}" = "xyes" ; then
16760	for ac_header in windows.h
16761do :
16762  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
16763if test "x$ac_cv_header_windows_h" = xyes; then :
16764  cat >>confdefs.h <<_ACEOF
16765#define HAVE_WINDOWS_H 1
16766_ACEOF
16767
16768fi
16769
16770done
16771
16772fi
16773# Search for glib
16774
16775pkg_failed=no
16776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
16777$as_echo_n "checking for GLIB... " >&6; }
16778
16779if test -n "$GLIB_CFLAGS"; then
16780    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16781 elif test -n "$PKG_CONFIG"; then
16782    if test -n "$PKG_CONFIG" && \
16783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
16784  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
16785  ac_status=$?
16786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16787  test $ac_status = 0; }; then
16788  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
16789else
16790  pkg_failed=yes
16791fi
16792 else
16793    pkg_failed=untried
16794fi
16795if test -n "$GLIB_LIBS"; then
16796    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16797 elif test -n "$PKG_CONFIG"; then
16798    if test -n "$PKG_CONFIG" && \
16799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
16800  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
16801  ac_status=$?
16802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16803  test $ac_status = 0; }; then
16804  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
16805else
16806  pkg_failed=yes
16807fi
16808 else
16809    pkg_failed=untried
16810fi
16811
16812
16813
16814if test $pkg_failed = yes; then
16815
16816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16817        _pkg_short_errors_supported=yes
16818else
16819        _pkg_short_errors_supported=no
16820fi
16821        if test $_pkg_short_errors_supported = yes; then
16822	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
16823        else
16824	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
16825        fi
16826	# Put the nasty error message in config.log where it belongs
16827	echo "$GLIB_PKG_ERRORS" >&5
16828
16829	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16830$as_echo "no" >&6; }
16831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Note: cannot find glib-2.0.
16832You may want to review the following errors:
16833$GLIB_PKG_ERRORS" >&5
16834$as_echo "Note: cannot find glib-2.0.
16835You may want to review the following errors:
16836$GLIB_PKG_ERRORS" >&6; }
16837
16838elif test $pkg_failed = untried; then
16839	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Note: cannot find glib-2.0.
16840You may want to review the following errors:
16841$GLIB_PKG_ERRORS" >&5
16842$as_echo "Note: cannot find glib-2.0.
16843You may want to review the following errors:
16844$GLIB_PKG_ERRORS" >&6; }
16845
16846else
16847	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16848	GLIB_LIBS=$pkg_cv_GLIB_LIBS
16849        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850$as_echo "yes" >&6; }
16851	:
16852fi
16853
16854need_gdlib=no
16855with_gif=no
16856with_png=no
16857with_jpeg=no
16858
16859for e in $HIDLIST; do
16860    case $e in
16861      lesstif )
16862	if test "$no_x" = yes; then
16863  # Not all programs may use this symbol, but it does not hurt to define it.
16864
16865$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
16866
16867  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16868else
16869  if test -n "$x_includes"; then
16870    X_CFLAGS="$X_CFLAGS -I$x_includes"
16871  fi
16872
16873  # It would also be nice to do this for all -L options, not just this one.
16874  if test -n "$x_libraries"; then
16875    X_LIBS="$X_LIBS -L$x_libraries"
16876    # For Solaris; some versions of Sun CC require a space after -R and
16877    # others require no space.  Words are not sufficient . . . .
16878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
16879$as_echo_n "checking whether -R must be followed by a space... " >&6; }
16880    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16881    ac_xsave_c_werror_flag=$ac_c_werror_flag
16882    ac_c_werror_flag=yes
16883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884/* end confdefs.h.  */
16885
16886int
16887main ()
16888{
16889
16890  ;
16891  return 0;
16892}
16893_ACEOF
16894if ac_fn_c_try_link "$LINENO"; then :
16895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896$as_echo "no" >&6; }
16897       X_LIBS="$X_LIBS -R$x_libraries"
16898else
16899  LIBS="$ac_xsave_LIBS -R $x_libraries"
16900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h.  */
16902
16903int
16904main ()
16905{
16906
16907  ;
16908  return 0;
16909}
16910_ACEOF
16911if ac_fn_c_try_link "$LINENO"; then :
16912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16913$as_echo "yes" >&6; }
16914	  X_LIBS="$X_LIBS -R $x_libraries"
16915else
16916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
16917$as_echo "neither works" >&6; }
16918fi
16919rm -f core conftest.err conftest.$ac_objext \
16920    conftest$ac_exeext conftest.$ac_ext
16921fi
16922rm -f core conftest.err conftest.$ac_objext \
16923    conftest$ac_exeext conftest.$ac_ext
16924    ac_c_werror_flag=$ac_xsave_c_werror_flag
16925    LIBS=$ac_xsave_LIBS
16926  fi
16927
16928  # Check for system-dependent libraries X programs must link with.
16929  # Do this before checking for the system-independent R6 libraries
16930  # (-lICE), since we may need -lsocket or whatever for X linking.
16931
16932  if test "$ISC" = yes; then
16933    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16934  else
16935    # Martyn Johnson says this is needed for Ultrix, if the X
16936    # libraries were built with DECnet support.  And Karl Berry says
16937    # the Alpha needs dnet_stub (dnet does not exist).
16938    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h.  */
16941
16942/* Override any GCC internal prototype to avoid an error.
16943   Use char because int might match the return type of a GCC
16944   builtin and then its argument prototype would still apply.  */
16945#ifdef __cplusplus
16946extern "C"
16947#endif
16948char XOpenDisplay ();
16949int
16950main ()
16951{
16952return XOpenDisplay ();
16953  ;
16954  return 0;
16955}
16956_ACEOF
16957if ac_fn_c_try_link "$LINENO"; then :
16958
16959else
16960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
16961$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
16962if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
16963  $as_echo_n "(cached) " >&6
16964else
16965  ac_check_lib_save_LIBS=$LIBS
16966LIBS="-ldnet  $LIBS"
16967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h.  */
16969
16970/* Override any GCC internal prototype to avoid an error.
16971   Use char because int might match the return type of a GCC
16972   builtin and then its argument prototype would still apply.  */
16973#ifdef __cplusplus
16974extern "C"
16975#endif
16976char dnet_ntoa ();
16977int
16978main ()
16979{
16980return dnet_ntoa ();
16981  ;
16982  return 0;
16983}
16984_ACEOF
16985if ac_fn_c_try_link "$LINENO"; then :
16986  ac_cv_lib_dnet_dnet_ntoa=yes
16987else
16988  ac_cv_lib_dnet_dnet_ntoa=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext \
16991    conftest$ac_exeext conftest.$ac_ext
16992LIBS=$ac_check_lib_save_LIBS
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16995$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16996if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
16997  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16998fi
16999
17000    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17001      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
17002$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
17003if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
17004  $as_echo_n "(cached) " >&6
17005else
17006  ac_check_lib_save_LIBS=$LIBS
17007LIBS="-ldnet_stub  $LIBS"
17008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009/* end confdefs.h.  */
17010
17011/* Override any GCC internal prototype to avoid an error.
17012   Use char because int might match the return type of a GCC
17013   builtin and then its argument prototype would still apply.  */
17014#ifdef __cplusplus
17015extern "C"
17016#endif
17017char dnet_ntoa ();
17018int
17019main ()
17020{
17021return dnet_ntoa ();
17022  ;
17023  return 0;
17024}
17025_ACEOF
17026if ac_fn_c_try_link "$LINENO"; then :
17027  ac_cv_lib_dnet_stub_dnet_ntoa=yes
17028else
17029  ac_cv_lib_dnet_stub_dnet_ntoa=no
17030fi
17031rm -f core conftest.err conftest.$ac_objext \
17032    conftest$ac_exeext conftest.$ac_ext
17033LIBS=$ac_check_lib_save_LIBS
17034fi
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17036$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
17037if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
17038  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17039fi
17040
17041    fi
17042fi
17043rm -f core conftest.err conftest.$ac_objext \
17044    conftest$ac_exeext conftest.$ac_ext
17045    LIBS="$ac_xsave_LIBS"
17046
17047    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17048    # to get the SysV transport functions.
17049    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17050    # needs -lnsl.
17051    # The nsl library prevents programs from opening the X display
17052    # on Irix 5.2, according to T.E. Dickey.
17053    # The functions gethostbyname, getservbyname, and inet_addr are
17054    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17055    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17056if test "x$ac_cv_func_gethostbyname" = xyes; then :
17057
17058fi
17059
17060    if test $ac_cv_func_gethostbyname = no; then
17061      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17062$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17063if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17064  $as_echo_n "(cached) " >&6
17065else
17066  ac_check_lib_save_LIBS=$LIBS
17067LIBS="-lnsl  $LIBS"
17068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069/* end confdefs.h.  */
17070
17071/* Override any GCC internal prototype to avoid an error.
17072   Use char because int might match the return type of a GCC
17073   builtin and then its argument prototype would still apply.  */
17074#ifdef __cplusplus
17075extern "C"
17076#endif
17077char gethostbyname ();
17078int
17079main ()
17080{
17081return gethostbyname ();
17082  ;
17083  return 0;
17084}
17085_ACEOF
17086if ac_fn_c_try_link "$LINENO"; then :
17087  ac_cv_lib_nsl_gethostbyname=yes
17088else
17089  ac_cv_lib_nsl_gethostbyname=no
17090fi
17091rm -f core conftest.err conftest.$ac_objext \
17092    conftest$ac_exeext conftest.$ac_ext
17093LIBS=$ac_check_lib_save_LIBS
17094fi
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17096$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17097if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17098  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
17099fi
17100
17101      if test $ac_cv_lib_nsl_gethostbyname = no; then
17102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
17103$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
17104if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
17105  $as_echo_n "(cached) " >&6
17106else
17107  ac_check_lib_save_LIBS=$LIBS
17108LIBS="-lbsd  $LIBS"
17109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110/* end confdefs.h.  */
17111
17112/* Override any GCC internal prototype to avoid an error.
17113   Use char because int might match the return type of a GCC
17114   builtin and then its argument prototype would still apply.  */
17115#ifdef __cplusplus
17116extern "C"
17117#endif
17118char gethostbyname ();
17119int
17120main ()
17121{
17122return gethostbyname ();
17123  ;
17124  return 0;
17125}
17126_ACEOF
17127if ac_fn_c_try_link "$LINENO"; then :
17128  ac_cv_lib_bsd_gethostbyname=yes
17129else
17130  ac_cv_lib_bsd_gethostbyname=no
17131fi
17132rm -f core conftest.err conftest.$ac_objext \
17133    conftest$ac_exeext conftest.$ac_ext
17134LIBS=$ac_check_lib_save_LIBS
17135fi
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
17137$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
17138if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
17139  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17140fi
17141
17142      fi
17143    fi
17144
17145    # lieder@skyler.mavd.honeywell.com says without -lsocket,
17146    # socket/setsockopt and other routines are undefined under SCO ODT
17147    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
17148    # on later versions), says Simon Leinen: it contains gethostby*
17149    # variants that don't use the name server (or something).  -lsocket
17150    # must be given before -lnsl if both are needed.  We assume that
17151    # if connect needs -lnsl, so does gethostbyname.
17152    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17153if test "x$ac_cv_func_connect" = xyes; then :
17154
17155fi
17156
17157    if test $ac_cv_func_connect = no; then
17158      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17159$as_echo_n "checking for connect in -lsocket... " >&6; }
17160if ${ac_cv_lib_socket_connect+:} false; then :
17161  $as_echo_n "(cached) " >&6
17162else
17163  ac_check_lib_save_LIBS=$LIBS
17164LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166/* end confdefs.h.  */
17167
17168/* Override any GCC internal prototype to avoid an error.
17169   Use char because int might match the return type of a GCC
17170   builtin and then its argument prototype would still apply.  */
17171#ifdef __cplusplus
17172extern "C"
17173#endif
17174char connect ();
17175int
17176main ()
17177{
17178return connect ();
17179  ;
17180  return 0;
17181}
17182_ACEOF
17183if ac_fn_c_try_link "$LINENO"; then :
17184  ac_cv_lib_socket_connect=yes
17185else
17186  ac_cv_lib_socket_connect=no
17187fi
17188rm -f core conftest.err conftest.$ac_objext \
17189    conftest$ac_exeext conftest.$ac_ext
17190LIBS=$ac_check_lib_save_LIBS
17191fi
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17193$as_echo "$ac_cv_lib_socket_connect" >&6; }
17194if test "x$ac_cv_lib_socket_connect" = xyes; then :
17195  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
17196fi
17197
17198    fi
17199
17200    # Guillermo Gomez says -lposix is necessary on A/UX.
17201    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
17202if test "x$ac_cv_func_remove" = xyes; then :
17203
17204fi
17205
17206    if test $ac_cv_func_remove = no; then
17207      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
17208$as_echo_n "checking for remove in -lposix... " >&6; }
17209if ${ac_cv_lib_posix_remove+:} false; then :
17210  $as_echo_n "(cached) " >&6
17211else
17212  ac_check_lib_save_LIBS=$LIBS
17213LIBS="-lposix  $LIBS"
17214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215/* end confdefs.h.  */
17216
17217/* Override any GCC internal prototype to avoid an error.
17218   Use char because int might match the return type of a GCC
17219   builtin and then its argument prototype would still apply.  */
17220#ifdef __cplusplus
17221extern "C"
17222#endif
17223char remove ();
17224int
17225main ()
17226{
17227return remove ();
17228  ;
17229  return 0;
17230}
17231_ACEOF
17232if ac_fn_c_try_link "$LINENO"; then :
17233  ac_cv_lib_posix_remove=yes
17234else
17235  ac_cv_lib_posix_remove=no
17236fi
17237rm -f core conftest.err conftest.$ac_objext \
17238    conftest$ac_exeext conftest.$ac_ext
17239LIBS=$ac_check_lib_save_LIBS
17240fi
17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
17242$as_echo "$ac_cv_lib_posix_remove" >&6; }
17243if test "x$ac_cv_lib_posix_remove" = xyes; then :
17244  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17245fi
17246
17247    fi
17248
17249    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17250    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17251if test "x$ac_cv_func_shmat" = xyes; then :
17252
17253fi
17254
17255    if test $ac_cv_func_shmat = no; then
17256      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
17257$as_echo_n "checking for shmat in -lipc... " >&6; }
17258if ${ac_cv_lib_ipc_shmat+:} false; then :
17259  $as_echo_n "(cached) " >&6
17260else
17261  ac_check_lib_save_LIBS=$LIBS
17262LIBS="-lipc  $LIBS"
17263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264/* end confdefs.h.  */
17265
17266/* Override any GCC internal prototype to avoid an error.
17267   Use char because int might match the return type of a GCC
17268   builtin and then its argument prototype would still apply.  */
17269#ifdef __cplusplus
17270extern "C"
17271#endif
17272char shmat ();
17273int
17274main ()
17275{
17276return shmat ();
17277  ;
17278  return 0;
17279}
17280_ACEOF
17281if ac_fn_c_try_link "$LINENO"; then :
17282  ac_cv_lib_ipc_shmat=yes
17283else
17284  ac_cv_lib_ipc_shmat=no
17285fi
17286rm -f core conftest.err conftest.$ac_objext \
17287    conftest$ac_exeext conftest.$ac_ext
17288LIBS=$ac_check_lib_save_LIBS
17289fi
17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
17291$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
17292if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
17293  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17294fi
17295
17296    fi
17297  fi
17298
17299  # Check for libraries that X11R6 Xt/Xaw programs need.
17300  ac_save_LDFLAGS=$LDFLAGS
17301  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17302  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17303  # check for ICE first), but we must link in the order -lSM -lICE or
17304  # we get undefined symbols.  So assume we have SM if we have ICE.
17305  # These have to be linked with before -lX11, unlike the other
17306  # libraries we check for below, so use a different variable.
17307  # John Interrante, Karl Berry
17308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
17309$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
17310if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
17311  $as_echo_n "(cached) " >&6
17312else
17313  ac_check_lib_save_LIBS=$LIBS
17314LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316/* end confdefs.h.  */
17317
17318/* Override any GCC internal prototype to avoid an error.
17319   Use char because int might match the return type of a GCC
17320   builtin and then its argument prototype would still apply.  */
17321#ifdef __cplusplus
17322extern "C"
17323#endif
17324char IceConnectionNumber ();
17325int
17326main ()
17327{
17328return IceConnectionNumber ();
17329  ;
17330  return 0;
17331}
17332_ACEOF
17333if ac_fn_c_try_link "$LINENO"; then :
17334  ac_cv_lib_ICE_IceConnectionNumber=yes
17335else
17336  ac_cv_lib_ICE_IceConnectionNumber=no
17337fi
17338rm -f core conftest.err conftest.$ac_objext \
17339    conftest$ac_exeext conftest.$ac_ext
17340LIBS=$ac_check_lib_save_LIBS
17341fi
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17343$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17344if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
17345  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
17346fi
17347
17348  LDFLAGS=$ac_save_LDFLAGS
17349
17350fi
17351
17352	save_CPPFLAGS="$CPPFLAGS"
17353	CPPFLAGS="$X_CFLAGS"
17354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
17355$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
17356if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
17357  $as_echo_n "(cached) " >&6
17358else
17359  ac_check_lib_save_LIBS=$LIBS
17360LIBS="-lX11 $X_LIBS $LIBS"
17361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362/* end confdefs.h.  */
17363
17364/* Override any GCC internal prototype to avoid an error.
17365   Use char because int might match the return type of a GCC
17366   builtin and then its argument prototype would still apply.  */
17367#ifdef __cplusplus
17368extern "C"
17369#endif
17370char XOpenDisplay ();
17371int
17372main ()
17373{
17374return XOpenDisplay ();
17375  ;
17376  return 0;
17377}
17378_ACEOF
17379if ac_fn_c_try_link "$LINENO"; then :
17380  ac_cv_lib_X11_XOpenDisplay=yes
17381else
17382  ac_cv_lib_X11_XOpenDisplay=no
17383fi
17384rm -f core conftest.err conftest.$ac_objext \
17385    conftest$ac_exeext conftest.$ac_ext
17386LIBS=$ac_check_lib_save_LIBS
17387fi
17388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
17389$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
17390if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
17391  cat >>confdefs.h <<_ACEOF
17392#define HAVE_LIBX11 1
17393_ACEOF
17394
17395  LIBS="-lX11 $LIBS"
17396
17397fi
17398
17399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lICE" >&5
17400$as_echo_n "checking for main in -lICE... " >&6; }
17401if ${ac_cv_lib_ICE_main+:} false; then :
17402  $as_echo_n "(cached) " >&6
17403else
17404  ac_check_lib_save_LIBS=$LIBS
17405LIBS="-lICE $X_LIBS $LIBS"
17406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407/* end confdefs.h.  */
17408
17409
17410int
17411main ()
17412{
17413return main ();
17414  ;
17415  return 0;
17416}
17417_ACEOF
17418if ac_fn_c_try_link "$LINENO"; then :
17419  ac_cv_lib_ICE_main=yes
17420else
17421  ac_cv_lib_ICE_main=no
17422fi
17423rm -f core conftest.err conftest.$ac_objext \
17424    conftest$ac_exeext conftest.$ac_ext
17425LIBS=$ac_check_lib_save_LIBS
17426fi
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_main" >&5
17428$as_echo "$ac_cv_lib_ICE_main" >&6; }
17429if test "x$ac_cv_lib_ICE_main" = xyes; then :
17430  cat >>confdefs.h <<_ACEOF
17431#define HAVE_LIBICE 1
17432_ACEOF
17433
17434  LIBS="-lICE $LIBS"
17435
17436fi
17437
17438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSM" >&5
17439$as_echo_n "checking for main in -lSM... " >&6; }
17440if ${ac_cv_lib_SM_main+:} false; then :
17441  $as_echo_n "(cached) " >&6
17442else
17443  ac_check_lib_save_LIBS=$LIBS
17444LIBS="-lSM $X_LIBS $LIBS"
17445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h.  */
17447
17448
17449int
17450main ()
17451{
17452return main ();
17453  ;
17454  return 0;
17455}
17456_ACEOF
17457if ac_fn_c_try_link "$LINENO"; then :
17458  ac_cv_lib_SM_main=yes
17459else
17460  ac_cv_lib_SM_main=no
17461fi
17462rm -f core conftest.err conftest.$ac_objext \
17463    conftest$ac_exeext conftest.$ac_ext
17464LIBS=$ac_check_lib_save_LIBS
17465fi
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_main" >&5
17467$as_echo "$ac_cv_lib_SM_main" >&6; }
17468if test "x$ac_cv_lib_SM_main" = xyes; then :
17469  cat >>confdefs.h <<_ACEOF
17470#define HAVE_LIBSM 1
17471_ACEOF
17472
17473  LIBS="-lSM $LIBS"
17474
17475fi
17476
17477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5
17478$as_echo_n "checking for main in -lXext... " >&6; }
17479if ${ac_cv_lib_Xext_main+:} false; then :
17480  $as_echo_n "(cached) " >&6
17481else
17482  ac_check_lib_save_LIBS=$LIBS
17483LIBS="-lXext $X_LIBS $LIBS"
17484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h.  */
17486
17487
17488int
17489main ()
17490{
17491return main ();
17492  ;
17493  return 0;
17494}
17495_ACEOF
17496if ac_fn_c_try_link "$LINENO"; then :
17497  ac_cv_lib_Xext_main=yes
17498else
17499  ac_cv_lib_Xext_main=no
17500fi
17501rm -f core conftest.err conftest.$ac_objext \
17502    conftest$ac_exeext conftest.$ac_ext
17503LIBS=$ac_check_lib_save_LIBS
17504fi
17505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5
17506$as_echo "$ac_cv_lib_Xext_main" >&6; }
17507if test "x$ac_cv_lib_Xext_main" = xyes; then :
17508  cat >>confdefs.h <<_ACEOF
17509#define HAVE_LIBXEXT 1
17510_ACEOF
17511
17512  LIBS="-lXext $LIBS"
17513
17514fi
17515
17516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtOpenDisplay in -lXt" >&5
17517$as_echo_n "checking for XtOpenDisplay in -lXt... " >&6; }
17518if ${ac_cv_lib_Xt_XtOpenDisplay+:} false; then :
17519  $as_echo_n "(cached) " >&6
17520else
17521  ac_check_lib_save_LIBS=$LIBS
17522LIBS="-lXt $X_LIBS $LIBS"
17523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525
17526/* Override any GCC internal prototype to avoid an error.
17527   Use char because int might match the return type of a GCC
17528   builtin and then its argument prototype would still apply.  */
17529#ifdef __cplusplus
17530extern "C"
17531#endif
17532char XtOpenDisplay ();
17533int
17534main ()
17535{
17536return XtOpenDisplay ();
17537  ;
17538  return 0;
17539}
17540_ACEOF
17541if ac_fn_c_try_link "$LINENO"; then :
17542  ac_cv_lib_Xt_XtOpenDisplay=yes
17543else
17544  ac_cv_lib_Xt_XtOpenDisplay=no
17545fi
17546rm -f core conftest.err conftest.$ac_objext \
17547    conftest$ac_exeext conftest.$ac_ext
17548LIBS=$ac_check_lib_save_LIBS
17549fi
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtOpenDisplay" >&5
17551$as_echo "$ac_cv_lib_Xt_XtOpenDisplay" >&6; }
17552if test "x$ac_cv_lib_Xt_XtOpenDisplay" = xyes; then :
17553  cat >>confdefs.h <<_ACEOF
17554#define HAVE_LIBXT 1
17555_ACEOF
17556
17557  LIBS="-lXt $LIBS"
17558
17559fi
17560
17561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXmu" >&5
17562$as_echo_n "checking for main in -lXmu... " >&6; }
17563if ${ac_cv_lib_Xmu_main+:} false; then :
17564  $as_echo_n "(cached) " >&6
17565else
17566  ac_check_lib_save_LIBS=$LIBS
17567LIBS="-lXmu $X_LIBS $LIBS"
17568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h.  */
17570
17571
17572int
17573main ()
17574{
17575return main ();
17576  ;
17577  return 0;
17578}
17579_ACEOF
17580if ac_fn_c_try_link "$LINENO"; then :
17581  ac_cv_lib_Xmu_main=yes
17582else
17583  ac_cv_lib_Xmu_main=no
17584fi
17585rm -f core conftest.err conftest.$ac_objext \
17586    conftest$ac_exeext conftest.$ac_ext
17587LIBS=$ac_check_lib_save_LIBS
17588fi
17589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_main" >&5
17590$as_echo "$ac_cv_lib_Xmu_main" >&6; }
17591if test "x$ac_cv_lib_Xmu_main" = xyes; then :
17592  cat >>confdefs.h <<_ACEOF
17593#define HAVE_LIBXMU 1
17594_ACEOF
17595
17596  LIBS="-lXmu $LIBS"
17597
17598fi
17599
17600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
17601$as_echo_n "checking for main in -lXpm... " >&6; }
17602if ${ac_cv_lib_Xpm_main+:} false; then :
17603  $as_echo_n "(cached) " >&6
17604else
17605  ac_check_lib_save_LIBS=$LIBS
17606LIBS="-lXpm $X_LIBS $LIBS"
17607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608/* end confdefs.h.  */
17609
17610
17611int
17612main ()
17613{
17614return main ();
17615  ;
17616  return 0;
17617}
17618_ACEOF
17619if ac_fn_c_try_link "$LINENO"; then :
17620  ac_cv_lib_Xpm_main=yes
17621else
17622  ac_cv_lib_Xpm_main=no
17623fi
17624rm -f core conftest.err conftest.$ac_objext \
17625    conftest$ac_exeext conftest.$ac_ext
17626LIBS=$ac_check_lib_save_LIBS
17627fi
17628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
17629$as_echo "$ac_cv_lib_Xpm_main" >&6; }
17630if test "x$ac_cv_lib_Xpm_main" = xyes; then :
17631  cat >>confdefs.h <<_ACEOF
17632#define HAVE_LIBXPM 1
17633_ACEOF
17634
17635  LIBS="-lXpm $LIBS"
17636
17637fi
17638
17639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmCreateMainWindow in -lXm" >&5
17640$as_echo_n "checking for XmCreateMainWindow in -lXm... " >&6; }
17641if ${ac_cv_lib_Xm_XmCreateMainWindow+:} false; then :
17642  $as_echo_n "(cached) " >&6
17643else
17644  ac_check_lib_save_LIBS=$LIBS
17645LIBS="-lXm $X_LIBS $LIBS"
17646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h.  */
17648
17649/* Override any GCC internal prototype to avoid an error.
17650   Use char because int might match the return type of a GCC
17651   builtin and then its argument prototype would still apply.  */
17652#ifdef __cplusplus
17653extern "C"
17654#endif
17655char XmCreateMainWindow ();
17656int
17657main ()
17658{
17659return XmCreateMainWindow ();
17660  ;
17661  return 0;
17662}
17663_ACEOF
17664if ac_fn_c_try_link "$LINENO"; then :
17665  ac_cv_lib_Xm_XmCreateMainWindow=yes
17666else
17667  ac_cv_lib_Xm_XmCreateMainWindow=no
17668fi
17669rm -f core conftest.err conftest.$ac_objext \
17670    conftest$ac_exeext conftest.$ac_ext
17671LIBS=$ac_check_lib_save_LIBS
17672fi
17673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmCreateMainWindow" >&5
17674$as_echo "$ac_cv_lib_Xm_XmCreateMainWindow" >&6; }
17675if test "x$ac_cv_lib_Xm_XmCreateMainWindow" = xyes; then :
17676  cat >>confdefs.h <<_ACEOF
17677#define HAVE_LIBXM 1
17678_ACEOF
17679
17680  LIBS="-lXm $LIBS"
17681
17682fi
17683
17684	CPPFLAGS="$save_CPPFLAGS"
17685	case $ac_cv_lib_Xm_XmCreateMainWindow in
17686	  no )
17687	    as_fn_error $? "You don't seem to have the Lesstif development environment installed." "$LINENO" 5
17688	    ;;
17689	  * ) ;;
17690	esac
17691	for ac_header in Xm/Xm.h
17692do :
17693  ac_fn_c_check_header_mongrel "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default"
17694if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
17695  cat >>confdefs.h <<_ACEOF
17696#define HAVE_XM_XM_H 1
17697_ACEOF
17698
17699fi
17700
17701done
17702
17703	case $ac_cv_header_Xm_Xm_h in
17704	  no )
17705	    as_fn_error $? "You don't seem to have the Lesstif development environment installed." "$LINENO" 5
17706	    ;;
17707	  * ) ;;
17708	esac
17709        ;;
17710
17711      gtk )
17712	# Check for pkg-config
17713	# Extract the first word of "pkg-config", so it can be a program name with args.
17714set dummy pkg-config; ac_word=$2
17715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17716$as_echo_n "checking for $ac_word... " >&6; }
17717if ${ac_cv_path_PKG_CONFIG+:} false; then :
17718  $as_echo_n "(cached) " >&6
17719else
17720  case $PKG_CONFIG in
17721  [\\/]* | ?:[\\/]*)
17722  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17723  ;;
17724  *)
17725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17726for as_dir in $PATH
17727do
17728  IFS=$as_save_IFS
17729  test -z "$as_dir" && as_dir=.
17730    for ac_exec_ext in '' $ac_executable_extensions; do
17731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17732    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17734    break 2
17735  fi
17736done
17737  done
17738IFS=$as_save_IFS
17739
17740  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17741  ;;
17742esac
17743fi
17744PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17745if test -n "$PKG_CONFIG"; then
17746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17747$as_echo "$PKG_CONFIG" >&6; }
17748else
17749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17750$as_echo "no" >&6; }
17751fi
17752
17753
17754	if test "$PKG_CONFIG" = "no"; then
17755		as_fn_error $? "Cannot find pkg-config, make sure it is installed and in your PATH" "$LINENO" 5
17756	fi
17757
17758
17759pkg_failed=no
17760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
17761$as_echo_n "checking for GTK... " >&6; }
17762
17763if test -n "$GTK_CFLAGS"; then
17764    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
17765 elif test -n "$PKG_CONFIG"; then
17766    if test -n "$PKG_CONFIG" && \
17767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18.0\""; } >&5
17768  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0") 2>&5
17769  ac_status=$?
17770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771  test $ac_status = 0; }; then
17772  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18.0" 2>/dev/null`
17773else
17774  pkg_failed=yes
17775fi
17776 else
17777    pkg_failed=untried
17778fi
17779if test -n "$GTK_LIBS"; then
17780    pkg_cv_GTK_LIBS="$GTK_LIBS"
17781 elif test -n "$PKG_CONFIG"; then
17782    if test -n "$PKG_CONFIG" && \
17783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18.0\""; } >&5
17784  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0") 2>&5
17785  ac_status=$?
17786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17787  test $ac_status = 0; }; then
17788  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18.0" 2>/dev/null`
17789else
17790  pkg_failed=yes
17791fi
17792 else
17793    pkg_failed=untried
17794fi
17795
17796
17797
17798if test $pkg_failed = yes; then
17799
17800if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17801        _pkg_short_errors_supported=yes
17802else
17803        _pkg_short_errors_supported=no
17804fi
17805        if test $_pkg_short_errors_supported = yes; then
17806	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.18.0" 2>&1`
17807        else
17808	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.18.0" 2>&1`
17809        fi
17810	# Put the nasty error message in config.log where it belongs
17811	echo "$GTK_PKG_ERRORS" >&5
17812
17813	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814$as_echo "no" >&6; }
17815                as_fn_error $? "Cannot find gtk+ >= 2.18.0, install it and rerun ./configure
17816Please review the following errors:
17817$GTK_PKG_ERRORS" "$LINENO" 5
17818
17819elif test $pkg_failed = untried; then
17820	as_fn_error $? "Cannot find gtk+ >= 2.18.0, install it and rerun ./configure
17821Please review the following errors:
17822$GTK_PKG_ERRORS" "$LINENO" 5
17823
17824else
17825	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
17826	GTK_LIBS=$pkg_cv_GTK_LIBS
17827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828$as_echo "yes" >&6; }
17829	:
17830fi
17831	GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion`
17832	GLIB_VERSION=`$PKG_CONFIG glib-2.0 --modversion`
17833
17834	if test "x$enable_gl" = "xyes"; then
17835		# Check for GtkGLExt
17836
17837pkg_failed=no
17838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5
17839$as_echo_n "checking for GTKGLEXT... " >&6; }
17840
17841if test -n "$GTKGLEXT_CFLAGS"; then
17842    pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS"
17843 elif test -n "$PKG_CONFIG"; then
17844    if test -n "$PKG_CONFIG" && \
17845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 1.0.0\""; } >&5
17846  ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 1.0.0") 2>&5
17847  ac_status=$?
17848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17849  test $ac_status = 0; }; then
17850  pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 1.0.0" 2>/dev/null`
17851else
17852  pkg_failed=yes
17853fi
17854 else
17855    pkg_failed=untried
17856fi
17857if test -n "$GTKGLEXT_LIBS"; then
17858    pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS"
17859 elif test -n "$PKG_CONFIG"; then
17860    if test -n "$PKG_CONFIG" && \
17861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 1.0.0\""; } >&5
17862  ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 1.0.0") 2>&5
17863  ac_status=$?
17864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17865  test $ac_status = 0; }; then
17866  pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 1.0.0" 2>/dev/null`
17867else
17868  pkg_failed=yes
17869fi
17870 else
17871    pkg_failed=untried
17872fi
17873
17874
17875
17876if test $pkg_failed = yes; then
17877
17878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17879        _pkg_short_errors_supported=yes
17880else
17881        _pkg_short_errors_supported=no
17882fi
17883        if test $_pkg_short_errors_supported = yes; then
17884	        GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkglext-1.0 >= 1.0.0" 2>&1`
17885        else
17886	        GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkglext-1.0 >= 1.0.0" 2>&1`
17887        fi
17888	# Put the nasty error message in config.log where it belongs
17889	echo "$GTKGLEXT_PKG_ERRORS" >&5
17890
17891	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17892$as_echo "no" >&6; }
17893                as_fn_error $? "
17894*** Required version of gtkglext is not installed - please install first ***
17895Please review the following errors:
17896$GTKGLEXT_PKG_ERRORS" "$LINENO" 5
17897
17898elif test $pkg_failed = untried; then
17899	as_fn_error $? "
17900*** Required version of gtkglext is not installed - please install first ***
17901Please review the following errors:
17902$GTKGLEXT_PKG_ERRORS" "$LINENO" 5
17903
17904else
17905	GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS
17906	GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS
17907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908$as_echo "yes" >&6; }
17909	:
17910fi
17911	GTKGLEXT_VER=`$PKG_CONFIG gtkglext-1.0 --modversion`
17912	fi
17913
17914	;;
17915
17916      png)
17917	need_gdlib=yes
17918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GIF output from the png HID is desired" >&5
17919$as_echo_n "checking if GIF output from the png HID is desired... " >&6; }
17920	# Check whether --enable-gif was given.
17921if test "${enable_gif+set}" = set; then :
17922  enableval=$enable_gif;
17923		if test "X$enable_gif" != "Xno" ; then
17924			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17925$as_echo "yes" >&6; }
17926			with_gif=yes
17927		else
17928			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17929$as_echo "no" >&6; }
17930		fi
17931
17932else
17933
17934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17935$as_echo "yes" >&6; }
17936		with_gif=yes
17937
17938fi
17939
17940
17941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG output from the png HID is desired" >&5
17942$as_echo_n "checking if JPEG output from the png HID is desired... " >&6; }
17943	# Check whether --enable-jpeg was given.
17944if test "${enable_jpeg+set}" = set; then :
17945  enableval=$enable_jpeg;
17946		if test "X$enable_jpeg" != "Xno" ; then
17947			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17948$as_echo "yes" >&6; }
17949			with_jpeg=yes
17950		else
17951			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952$as_echo "no" >&6; }
17953		fi
17954
17955else
17956
17957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17958$as_echo "yes" >&6; }
17959		with_jpeg=yes
17960
17961fi
17962
17963
17964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG output from the png HID is desired" >&5
17965$as_echo_n "checking if PNG output from the png HID is desired... " >&6; }
17966	# Check whether --enable-png was given.
17967if test "${enable_png+set}" = set; then :
17968  enableval=$enable_png;
17969		if test "X$enable_png" != "Xno" ; then
17970			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17971$as_echo "yes" >&6; }
17972			with_png=yes
17973		else
17974			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975$as_echo "no" >&6; }
17976		fi
17977
17978else
17979
17980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17981$as_echo "yes" >&6; }
17982		with_png=yes
17983
17984fi
17985
17986	;;
17987
17988      gcode|nelma)
17989	need_gdlib=yes
17990	with_png=yes
17991	;;
17992
17993    esac
17994done
17995
17996if test "$need_gdlib" = "yes"; then
17997	# Search for glib
17998
17999pkg_failed=no
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDLIB" >&5
18001$as_echo_n "checking for GDLIB... " >&6; }
18002
18003if test -n "$GDLIB_CFLAGS"; then
18004    pkg_cv_GDLIB_CFLAGS="$GDLIB_CFLAGS"
18005 elif test -n "$PKG_CONFIG"; then
18006    if test -n "$PKG_CONFIG" && \
18007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib\""; } >&5
18008  ($PKG_CONFIG --exists --print-errors "gdlib") 2>&5
18009  ac_status=$?
18010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18011  test $ac_status = 0; }; then
18012  pkg_cv_GDLIB_CFLAGS=`$PKG_CONFIG --cflags "gdlib" 2>/dev/null`
18013else
18014  pkg_failed=yes
18015fi
18016 else
18017    pkg_failed=untried
18018fi
18019if test -n "$GDLIB_LIBS"; then
18020    pkg_cv_GDLIB_LIBS="$GDLIB_LIBS"
18021 elif test -n "$PKG_CONFIG"; then
18022    if test -n "$PKG_CONFIG" && \
18023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib\""; } >&5
18024  ($PKG_CONFIG --exists --print-errors "gdlib") 2>&5
18025  ac_status=$?
18026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18027  test $ac_status = 0; }; then
18028  pkg_cv_GDLIB_LIBS=`$PKG_CONFIG --libs "gdlib" 2>/dev/null`
18029else
18030  pkg_failed=yes
18031fi
18032 else
18033    pkg_failed=untried
18034fi
18035
18036
18037
18038if test $pkg_failed = yes; then
18039
18040if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18041        _pkg_short_errors_supported=yes
18042else
18043        _pkg_short_errors_supported=no
18044fi
18045        if test $_pkg_short_errors_supported = yes; then
18046	        GDLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdlib" 2>&1`
18047        else
18048	        GDLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdlib" 2>&1`
18049        fi
18050	# Put the nasty error message in config.log where it belongs
18051	echo "$GDLIB_PKG_ERRORS" >&5
18052
18053	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18054$as_echo "no" >&6; }
18055                found_gdlib=no
18056elif test $pkg_failed = untried; then
18057	found_gdlib=no
18058else
18059	GDLIB_CFLAGS=$pkg_cv_GDLIB_CFLAGS
18060	GDLIB_LIBS=$pkg_cv_GDLIB_LIBS
18061        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062$as_echo "yes" >&6; }
18063	found_gdlib=yes
18064fi
18065
18066	if test "X$found_gdlib" = "Xno"; then
18067		# older installs came with gdlib-config and not the .pc file
18068		# to work with pkg-config
18069		# Extract the first word of "gdlib-config", so it can be a program name with args.
18070set dummy gdlib-config; ac_word=$2
18071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18072$as_echo_n "checking for $ac_word... " >&6; }
18073if ${ac_cv_path_GDLIB_CONFIG+:} false; then :
18074  $as_echo_n "(cached) " >&6
18075else
18076  case $GDLIB_CONFIG in
18077  [\\/]* | ?:[\\/]*)
18078  ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
18079  ;;
18080  *)
18081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18082for as_dir in $PATH
18083do
18084  IFS=$as_save_IFS
18085  test -z "$as_dir" && as_dir=.
18086    for ac_exec_ext in '' $ac_executable_extensions; do
18087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18088    ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18090    break 2
18091  fi
18092done
18093  done
18094IFS=$as_save_IFS
18095
18096  test -z "$ac_cv_path_GDLIB_CONFIG" && ac_cv_path_GDLIB_CONFIG="notfound"
18097  ;;
18098esac
18099fi
18100GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
18101if test -n "$GDLIB_CONFIG"; then
18102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5
18103$as_echo "$GDLIB_CONFIG" >&6; }
18104else
18105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18106$as_echo "no" >&6; }
18107fi
18108
18109
18110		if test "$GDLIB_CONFIG" = "notfound" ; then
18111			as_fn_error $? "cannot find gdlib-config.  gdlib
18112is required for gcode, nelma, png HIDs
18113You may want to review the following errors
18114from $PKG_CONFIG:
18115$GDLIB_PKG_ERRORS" "$LINENO" 5
18116		else
18117			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib cflags" >&5
18118$as_echo_n "checking for gdlib cflags... " >&6; }
18119			GDLIB_CFLAGS=`${GDLIB_CONFIG} --cflags`
18120			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CFLAGS" >&5
18121$as_echo "$GDLIB_CFLAGS" >&6; }
18122
18123			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib libraries" >&5
18124$as_echo_n "checking for gdlib libraries... " >&6; }
18125			GDLIB_LIBS=`${GDLIB_CONFIG} --libs`
18126			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_LIBS" >&5
18127$as_echo "$GDLIB_LIBS" >&6; }
18128
18129			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib ldflags" >&5
18130$as_echo_n "checking for gdlib ldflags... " >&6; }
18131			GDLIB_LDFLAGS=`${GDLIB_CONFIG} --ldflags`
18132			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_LDFLAGS" >&5
18133$as_echo "$GDLIB_LDFLAGS" >&6; }
18134		fi
18135	fi
18136
18137	save_LIBS="$LIBS"
18138	LIBS="$LIBS $GDLIB_LDFLAGS $GDLIB_LIBS"
18139
18140	# some older installs, Ubuntu Precise for example, leave off the "-lgd" part.
18141	# try to see if it needs to be added.  However this is currently broken
18142	# under cygwin cross building for mingw because of interactions with
18143	# __imp__ prefix added in the libgd.a static library.  Look at the declspec
18144	# stuff in the mingw gd.h file.
18145if test "x$WIN32" = "xno" ; then
18146	before_LIBS="$LIBS"
18147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gdImageCreate" >&5
18148$as_echo_n "checking for library containing gdImageCreate... " >&6; }
18149if ${ac_cv_search_gdImageCreate+:} false; then :
18150  $as_echo_n "(cached) " >&6
18151else
18152  ac_func_search_save_LIBS=$LIBS
18153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h.  */
18155
18156/* Override any GCC internal prototype to avoid an error.
18157   Use char because int might match the return type of a GCC
18158   builtin and then its argument prototype would still apply.  */
18159#ifdef __cplusplus
18160extern "C"
18161#endif
18162char gdImageCreate ();
18163int
18164main ()
18165{
18166return gdImageCreate ();
18167  ;
18168  return 0;
18169}
18170_ACEOF
18171for ac_lib in '' gd; do
18172  if test -z "$ac_lib"; then
18173    ac_res="none required"
18174  else
18175    ac_res=-l$ac_lib
18176    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18177  fi
18178  if ac_fn_c_try_link "$LINENO"; then :
18179  ac_cv_search_gdImageCreate=$ac_res
18180fi
18181rm -f core conftest.err conftest.$ac_objext \
18182    conftest$ac_exeext
18183  if ${ac_cv_search_gdImageCreate+:} false; then :
18184  break
18185fi
18186done
18187if ${ac_cv_search_gdImageCreate+:} false; then :
18188
18189else
18190  ac_cv_search_gdImageCreate=no
18191fi
18192rm conftest.$ac_ext
18193LIBS=$ac_func_search_save_LIBS
18194fi
18195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gdImageCreate" >&5
18196$as_echo "$ac_cv_search_gdImageCreate" >&6; }
18197ac_res=$ac_cv_search_gdImageCreate
18198if test "$ac_res" != no; then :
18199  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18200
18201else
18202
18203			as_fn_error $? "Unable to figure out how to link gd applications.
18204It is likely that your system has a broken gdlib-config or gdlib.pc file used by
18205pkg-config.
18206" "$LINENO" 5
18207fi
18208
18209	if test "$LIBS" != "${before_LIBS}" ; then
18210		GDLIB_LIBS="${GDLIB_LIBS} -lgd"
18211	fi
18212fi
18213
18214	if test "X$with_gif" = "Xyes" ; then
18215		for ac_func in gdImageGif
18216do :
18217  ac_fn_c_check_func "$LINENO" "gdImageGif" "ac_cv_func_gdImageGif"
18218if test "x$ac_cv_func_gdImageGif" = xyes; then :
18219  cat >>confdefs.h <<_ACEOF
18220#define HAVE_GDIMAGEGIF 1
18221_ACEOF
18222
18223fi
18224done
18225
18226		if test "$ac_cv_func_gdImageGif" != "yes"; then
18227			as_fn_error $? "Your gd installation does not appear to include gif support.
18228You may need to update your installation of gd or disable
18229gif export with --disable-gif" "$LINENO" 5
18230		fi
18231	fi
18232
18233	if test "X$with_jpeg" = "Xyes" ; then
18234		for ac_func in gdImageJpeg
18235do :
18236  ac_fn_c_check_func "$LINENO" "gdImageJpeg" "ac_cv_func_gdImageJpeg"
18237if test "x$ac_cv_func_gdImageJpeg" = xyes; then :
18238  cat >>confdefs.h <<_ACEOF
18239#define HAVE_GDIMAGEJPEG 1
18240_ACEOF
18241
18242fi
18243done
18244
18245		if test "$ac_cv_func_gdImageJpeg" != "yes"; then
18246			as_fn_error $? "Your gd installation does not appear to include JPEG support.
18247You may need to update your installation of gd or disable
18248JPEG export with --disable-jpeg" "$LINENO" 5
18249		fi
18250	fi
18251
18252	if test "X$with_png" = "Xyes" ; then
18253		for ac_func in gdImagePng
18254do :
18255  ac_fn_c_check_func "$LINENO" "gdImagePng" "ac_cv_func_gdImagePng"
18256if test "x$ac_cv_func_gdImagePng" = xyes; then :
18257  cat >>confdefs.h <<_ACEOF
18258#define HAVE_GDIMAGEPNG 1
18259_ACEOF
18260
18261fi
18262done
18263
18264		if test "$ac_cv_func_gdImagePng" != "yes"; then
18265			as_fn_error $? "Your gd installation does not appear to include PNG support.
18266You may need to update your installation of gd or disable
18267PNG export with --disable-png" "$LINENO" 5
18268		fi
18269	fi
18270	LIBS="$save_LIBS"
18271fi
18272
18273 if test x$with_png = xyes; then
18274  PNG_TRUE=
18275  PNG_FALSE='#'
18276else
18277  PNG_TRUE='#'
18278  PNG_FALSE=
18279fi
18280
18281 if test x$with_gif = xyes; then
18282  GIF_TRUE=
18283  GIF_FALSE='#'
18284else
18285  GIF_TRUE='#'
18286  GIF_FALSE=
18287fi
18288
18289
18290# ------------- check if png previews should be built for pcblib-newlib
18291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the m4lib to newlib export should create png previews" >&5
18292$as_echo_n "checking if the m4lib to newlib export should create png previews... " >&6; }
18293# Check whether --enable-m4lib-png was given.
18294if test "${enable_m4lib_png+set}" = set; then :
18295  enableval=$enable_m4lib_png;
18296else
18297  enable_m4lib_png=no
18298fi
18299
18300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_m4lib_png" >&5
18301$as_echo "$enable_m4lib_png" >&6; }
18302 if test x$enable_m4lib_png = xyes; then
18303  PNG_PREVIEW_TRUE=
18304  PNG_PREVIEW_FALSE='#'
18305else
18306  PNG_PREVIEW_TRUE='#'
18307  PNG_PREVIEW_FALSE=
18308fi
18309
18310
18311
18312# Run away.... more ugly stuff here.  By default we don't actually build
18313# pcblib-newlib from pcblib unless we are building from cvs or git sources.
18314# The reason is it takes a while and requires the png HID.  The problem is,
18315# what if someone wants to use --enable-m4lib-png but the tarball was built
18316# without the previews.  Or, what if someone does not want the PNG previews
18317# but the person building the tarball included them.  Ugh!  So what the following
18318# code attempts to do is detect that mismatch situation.  Note that we only
18319# want to kick this code in when *not* building from git or cvs sources.
18320build_pcblib_newlib=no
18321if test "$pcb_sources" = "tarball" ; then
18322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If pcblib-newlib was built with png previews" >&5
18323$as_echo_n "checking If pcblib-newlib was built with png previews... " >&6; }
18324	stamp=$srcdir/lib/pcblib-newlib.stamp
18325	if test ! -f ${stamp} ; then
18326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown, missing ${stamp}" >&5
18327$as_echo "unknown, missing ${stamp}" >&6; }
18328		build_pcblib_newlib=yes
18329	else
18330		if test "`cat ${stamp}`" = "png-preview=yes" ; then
18331			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18332$as_echo "yes" >&6; }
18333			# lib exists and built with preview.
18334			# if we don't want the preview, than rebuild
18335			if test x$enable_m4lib_png != xyes ; then
18336				build_pcblib_newlib=yes
18337			fi
18338		else
18339			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18340$as_echo "no" >&6; }
18341			# lib exists and built without preview.
18342			# if we want the preview, than rebuild
18343			if test x$enable_m4lib_png = xyes ; then
18344				build_pcblib_newlib=yes
18345			fi
18346		fi
18347	fi
18348else
18349	build_pcblib_newlib=yes
18350fi
18351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If pcblib-newlib needs to be rebuilt" >&5
18352$as_echo_n "checking If pcblib-newlib needs to be rebuilt... " >&6; }
18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pcblib_newlib" >&5
18354$as_echo "$build_pcblib_newlib" >&6; }
18355 if test x$build_pcblib_newlib = xyes; then
18356  BUILD_PCBLIB_NEWLIB_TRUE=
18357  BUILD_PCBLIB_NEWLIB_FALSE='#'
18358else
18359  BUILD_PCBLIB_NEWLIB_TRUE='#'
18360  BUILD_PCBLIB_NEWLIB_FALSE=
18361fi
18362
18363
18364if test "X$cross_compiling" = "Xyes" ; then
18365	# we are cross compiling so we will need a build host binary for pcb
18366	# Extract the first word of "pcb", so it can be a program name with args.
18367set dummy pcb; ac_word=$2
18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18369$as_echo_n "checking for $ac_word... " >&6; }
18370if ${ac_cv_path_PCB+:} false; then :
18371  $as_echo_n "(cached) " >&6
18372else
18373  case $PCB in
18374  [\\/]* | ?:[\\/]*)
18375  ac_cv_path_PCB="$PCB" # Let the user override the test with a path.
18376  ;;
18377  *)
18378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18379for as_dir in $PATH
18380do
18381  IFS=$as_save_IFS
18382  test -z "$as_dir" && as_dir=.
18383    for ac_exec_ext in '' $ac_executable_extensions; do
18384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18385    ac_cv_path_PCB="$as_dir/$ac_word$ac_exec_ext"
18386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18387    break 2
18388  fi
18389done
18390  done
18391IFS=$as_save_IFS
18392
18393  test -z "$ac_cv_path_PCB" && ac_cv_path_PCB="notfound"
18394  ;;
18395esac
18396fi
18397PCB=$ac_cv_path_PCB
18398if test -n "$PCB"; then
18399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCB" >&5
18400$as_echo "$PCB" >&6; }
18401else
18402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403$as_echo "no" >&6; }
18404fi
18405
18406
18407else
18408	PCB="\${top_builddir}/src/pcb"
18409fi
18410
18411
18412# now make see how essential it was that we have a pcb executable for the build
18413# host
18414if test "X$pcb_git_version" = "Xyes" ; then
18415	if test "X$docs_yesno" = "Xyes" -o "X$enable_m4lib_png" = "Xyes" ; then
18416		if test "$PCB" = "notfound" ; then
18417			as_fn_error $? "You have selected a build with m4lib png
18418previews enabled and/or with building the documentation enabled but you also
18419appear to be cross-compiling.  For this to work, you must have a pcb installed that
18420can run on this machine (the build machine) because it is needed for generating
18421library footprint png previews as well as some of the figures in the documentation.
18422If you wish to skip building the documentation and the footprint previews then add
18423--disable-doc --disable-m4lib-png
18424This will allow your cross build to work." "$LINENO" 5
18425		fi
18426	fi
18427fi
18428
18429# ------------- Xrender -------------------
18430have_xrender=no
18431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
18432$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
18433if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
18434  $as_echo_n "(cached) " >&6
18435else
18436  ac_check_lib_save_LIBS=$LIBS
18437LIBS="-lXrender $X_LIBS $LIBS"
18438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439/* end confdefs.h.  */
18440
18441/* Override any GCC internal prototype to avoid an error.
18442   Use char because int might match the return type of a GCC
18443   builtin and then its argument prototype would still apply.  */
18444#ifdef __cplusplus
18445extern "C"
18446#endif
18447char XRenderQueryExtension ();
18448int
18449main ()
18450{
18451return XRenderQueryExtension ();
18452  ;
18453  return 0;
18454}
18455_ACEOF
18456if ac_fn_c_try_link "$LINENO"; then :
18457  ac_cv_lib_Xrender_XRenderQueryExtension=yes
18458else
18459  ac_cv_lib_Xrender_XRenderQueryExtension=no
18460fi
18461rm -f core conftest.err conftest.$ac_objext \
18462    conftest$ac_exeext conftest.$ac_ext
18463LIBS=$ac_check_lib_save_LIBS
18464fi
18465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
18466$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
18467if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
18468  have_xrender=yes
18469else
18470  have_xrender=no
18471fi
18472
18473
18474# Check whether --enable-xrender was given.
18475if test "${enable_xrender+set}" = set; then :
18476  enableval=$enable_xrender;
18477fi
18478
18479case "$have_xrender:$enable_xrender" in
18480   no:* ) ;;
18481   *:no ) ;;
18482   * )
18483     X_LIBS="-lXrender $X_LIBS"
18484
18485$as_echo "#define HAVE_XRENDER 1" >>confdefs.h
18486
18487     ;;
18488esac
18489
18490# ------------- Xinerama -------------------
18491have_xinerama=no
18492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
18493$as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
18494if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
18495  $as_echo_n "(cached) " >&6
18496else
18497  ac_check_lib_save_LIBS=$LIBS
18498LIBS="-lXinerama $X_LIBS $LIBS"
18499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500/* end confdefs.h.  */
18501
18502/* Override any GCC internal prototype to avoid an error.
18503   Use char because int might match the return type of a GCC
18504   builtin and then its argument prototype would still apply.  */
18505#ifdef __cplusplus
18506extern "C"
18507#endif
18508char XineramaQueryExtension ();
18509int
18510main ()
18511{
18512return XineramaQueryExtension ();
18513  ;
18514  return 0;
18515}
18516_ACEOF
18517if ac_fn_c_try_link "$LINENO"; then :
18518  ac_cv_lib_Xinerama_XineramaQueryExtension=yes
18519else
18520  ac_cv_lib_Xinerama_XineramaQueryExtension=no
18521fi
18522rm -f core conftest.err conftest.$ac_objext \
18523    conftest$ac_exeext conftest.$ac_ext
18524LIBS=$ac_check_lib_save_LIBS
18525fi
18526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
18527$as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
18528if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
18529  have_xinerama=yes
18530else
18531  have_xinerama=no
18532fi
18533
18534
18535# Check whether --enable-xinerama was given.
18536if test "${enable_xinerama+set}" = set; then :
18537  enableval=$enable_xinerama;
18538fi
18539
18540case "$have_xinerama:$enable_xinerama" in
18541   no:* ) ;;
18542   *:no ) ;;
18543   * )
18544     X_LIBS="-lXinerama $X_LIBS"
18545
18546$as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
18547
18548     ;;
18549esac
18550
18551# ------------- dmalloc -------------------
18552with_dmalloc=no
18553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dmalloc debugging should be enabled" >&5
18554$as_echo_n "checking if dmalloc debugging should be enabled... " >&6; }
18555# Check whether --enable-dmalloc was given.
18556if test "${enable_dmalloc+set}" = set; then :
18557  enableval=$enable_dmalloc;
18558if test "X$enable_dmalloc" != "Xno" ; then
18559	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18560$as_echo "yes" >&6; }
18561	ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
18562if test "x$ac_cv_header_dmalloc_h" = xyes; then :
18563
18564else
18565  as_fn_error $? "You have requested dmalloc debugging but dmalloc.h could not be found" "$LINENO" 5
18566fi
18567
18568
18569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmalloc" >&5
18570$as_echo_n "checking for main in -ldmalloc... " >&6; }
18571if ${ac_cv_lib_dmalloc_main+:} false; then :
18572  $as_echo_n "(cached) " >&6
18573else
18574  ac_check_lib_save_LIBS=$LIBS
18575LIBS="-ldmalloc  $LIBS"
18576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577/* end confdefs.h.  */
18578
18579
18580int
18581main ()
18582{
18583return main ();
18584  ;
18585  return 0;
18586}
18587_ACEOF
18588if ac_fn_c_try_link "$LINENO"; then :
18589  ac_cv_lib_dmalloc_main=yes
18590else
18591  ac_cv_lib_dmalloc_main=no
18592fi
18593rm -f core conftest.err conftest.$ac_objext \
18594    conftest$ac_exeext conftest.$ac_ext
18595LIBS=$ac_check_lib_save_LIBS
18596fi
18597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_main" >&5
18598$as_echo "$ac_cv_lib_dmalloc_main" >&6; }
18599if test "x$ac_cv_lib_dmalloc_main" = xyes; then :
18600  cat >>confdefs.h <<_ACEOF
18601#define HAVE_LIBDMALLOC 1
18602_ACEOF
18603
18604  LIBS="-ldmalloc $LIBS"
18605
18606else
18607  as_fn_error $? "You have requested dmalloc debugging but -ldmalloc could not be found" "$LINENO" 5
18608fi
18609
18610	DMALLOC_LIBS="-ldmalloc"
18611	with_dmalloc=yes
18612else
18613	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614$as_echo "no" >&6; }
18615	DMALLOC_LIBS=""
18616fi
18617
18618else
18619
18620	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18621$as_echo "no" >&6; }
18622	DMALLOC_LIBS=""
18623
18624fi
18625
18626
18627# ------------- ElectricFence -------------------
18628with_efence=no
18629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ElectricFence debugging should be enabled" >&5
18630$as_echo_n "checking if ElectricFence debugging should be enabled... " >&6; }
18631# Check whether --enable-efence was given.
18632if test "${enable_efence+set}" = set; then :
18633  enableval=$enable_efence;
18634if test "X$enable_efence" != "Xno" ; then
18635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18636$as_echo "yes" >&6; }
18637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
18638$as_echo_n "checking for main in -lefence... " >&6; }
18639if ${ac_cv_lib_efence_main+:} false; then :
18640  $as_echo_n "(cached) " >&6
18641else
18642  ac_check_lib_save_LIBS=$LIBS
18643LIBS="-lefence  $LIBS"
18644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h.  */
18646
18647
18648int
18649main ()
18650{
18651return main ();
18652  ;
18653  return 0;
18654}
18655_ACEOF
18656if ac_fn_c_try_link "$LINENO"; then :
18657  ac_cv_lib_efence_main=yes
18658else
18659  ac_cv_lib_efence_main=no
18660fi
18661rm -f core conftest.err conftest.$ac_objext \
18662    conftest$ac_exeext conftest.$ac_ext
18663LIBS=$ac_check_lib_save_LIBS
18664fi
18665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
18666$as_echo "$ac_cv_lib_efence_main" >&6; }
18667if test "x$ac_cv_lib_efence_main" = xyes; then :
18668  cat >>confdefs.h <<_ACEOF
18669#define HAVE_LIBEFENCE 1
18670_ACEOF
18671
18672  LIBS="-lefence $LIBS"
18673
18674else
18675  as_fn_error $? "You have requested ElectricFence debugging but -lefence could not be found" "$LINENO" 5
18676fi
18677
18678	with_efence=yes
18679else
18680	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681$as_echo "no" >&6; }
18682fi
18683
18684else
18685
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18687$as_echo "no" >&6; }
18688
18689fi
18690
18691
18692# ------------- Enable Debug code -------------------
18693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to enable debugging code" >&5
18694$as_echo_n "checking for whether to enable debugging code... " >&6; }
18695# Check whether --enable-debug was given.
18696if test "${enable_debug+set}" = set; then :
18697  enableval=$enable_debug;
18698else
18699  enable_debug=no
18700fi
18701
18702
18703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
18704$as_echo "$enable_debug" >&6; }
18705 if test x$enable_debug = xyes; then
18706  DEBUG_BUILD_TRUE=
18707  DEBUG_BUILD_FALSE='#'
18708else
18709  DEBUG_BUILD_TRUE='#'
18710  DEBUG_BUILD_FALSE=
18711fi
18712
18713
18714# ------------- mkdir required for win32 compatibility ------------
18715# WIN32 mkdir takes only one argument, POSIX takes two.
18716# #include "misc.h" where mkdir is required.
18717# ===========================================================================
18718#       http://www.gnu.org/software/autoconf-archive/ax_func_mkdir.html
18719# ===========================================================================
18720#
18721# SYNOPSIS
18722#
18723#   AX_FUNC_MKDIR
18724#
18725# DESCRIPTION
18726#
18727#   Check whether mkdir() is mkdir or _mkdir, and whether it takes one or
18728#   two arguments.
18729#
18730#   This macro can define HAVE_MKDIR, HAVE__MKDIR, and MKDIR_TAKES_ONE_ARG,
18731#   which are expected to be used as follows:
18732#
18733#     #if HAVE_MKDIR
18734#     #  if MKDIR_TAKES_ONE_ARG
18735#          /* MinGW32 */
18736#     #    define mkdir(a, b) mkdir(a)
18737#     #  endif
18738#     #else
18739#     #  if HAVE__MKDIR
18740#          /* plain Windows 32 */
18741#     #    define mkdir(a, b) _mkdir(a)
18742#     #  else
18743#     #    error "Don't know how to create a directory on this system."
18744#     #  endif
18745#     #endif
18746#
18747# LICENSE
18748#
18749#   Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
18750#
18751#   This program is free software; you can redistribute it and/or modify it
18752#   under the terms of the GNU General Public License as published by the
18753#   Free Software Foundation; either version 2 of the License, or (at your
18754#   option) any later version.
18755#
18756#   This program is distributed in the hope that it will be useful, but
18757#   WITHOUT ANY WARRANTY; without even the implied warranty of
18758#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18759#   Public License for more details.
18760#
18761#   You should have received a copy of the GNU General Public License along
18762#   with this program. If not, see <http://www.gnu.org/licenses/>.
18763#
18764#   As a special exception, the respective Autoconf Macro's copyright owner
18765#   gives unlimited permission to copy, distribute and modify the configure
18766#   scripts that are the output of Autoconf when processing the Macro. You
18767#   need not follow the terms of the GNU General Public License when using
18768#   or distributing such scripts, even though portions of the text of the
18769#   Macro appear in them. The GNU General Public License (GPL) does govern
18770#   all other use of the material that constitutes the Autoconf Macro.
18771#
18772#   This special exception to the GPL applies to versions of the Autoconf
18773#   Macro released by the Autoconf Archive. When you make and distribute a
18774#   modified version of the Autoconf Macro, you may extend this special
18775#   exception to the GPL to apply to your modified version as well.
18776
18777#serial 4
18778
18779# This is what autoupdate's m4 run will expand.  It fires
18780# the warning (with _au_warn_XXX), outputs it into the
18781# updated configure.ac (with AC_DIAGNOSE), and then outputs
18782# the replacement expansion.
18783
18784
18785# This is an auxiliary macro that is also run when
18786# autoupdate runs m4.  It simply calls m4_warning, but
18787# we need a wrapper so that each warning is emitted only
18788# once.  We break the quoting in m4_warning's argument in
18789# order to expand this macro's arguments, not AU_DEFUN's.
18790
18791
18792# Finally, this is the expansion that is picked up by
18793# autoconf.  It tells the user to run autoupdate, and
18794# then outputs the replacement expansion.  We do not care
18795# about autoupdate's warning because that contains
18796# information on what to do *after* running autoupdate.
18797
18798
18799
18800
18801for ac_func in mkdir _mkdir
18802do :
18803  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18804ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18805if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18806  cat >>confdefs.h <<_ACEOF
18807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18808_ACEOF
18809
18810fi
18811done
18812
18813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes one argument" >&5
18814$as_echo_n "checking whether mkdir takes one argument... " >&6; }
18815if ${ac_cv_mkdir_takes_one_arg+:} false; then :
18816  $as_echo_n "(cached) " >&6
18817else
18818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819/* end confdefs.h.  */
18820
18821#include <sys/stat.h>
18822#if HAVE_UNISTD_H
18823#  include <unistd.h>
18824#endif
18825
18826int
18827main ()
18828{
18829mkdir (".");
18830  ;
18831  return 0;
18832}
18833_ACEOF
18834if ac_fn_c_try_compile "$LINENO"; then :
18835  ac_cv_mkdir_takes_one_arg=yes
18836else
18837  ac_cv_mkdir_takes_one_arg=no
18838fi
18839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840fi
18841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_takes_one_arg" >&5
18842$as_echo "$ac_cv_mkdir_takes_one_arg" >&6; }
18843if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
18844
18845$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
18846
18847fi
18848
18849
18850# ------------- Type used for "Coord" type -------------------
18851
18852for ac_header in stdint.h
18853do :
18854  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18855if test "x$ac_cv_header_stdint_h" = xyes; then :
18856  cat >>confdefs.h <<_ACEOF
18857#define HAVE_STDINT_H 1
18858_ACEOF
18859
18860fi
18861
18862done
18863
18864# Check whether --enable-coord64 was given.
18865if test "${enable_coord64+set}" = set; then :
18866  enableval=$enable_coord64;
18867else
18868  enable_coord64=no
18869fi
18870
18871# Check whether --enable-coord32 was given.
18872if test "${enable_coord32+set}" = set; then :
18873  enableval=$enable_coord32;
18874else
18875  enable_coord32=no
18876fi
18877
18878
18879COORDTYPE="long"
18880
18881echo "$enable_coord32:$enable_coord64:$ac_cv_header_stdint_h"
18882case "$enable_coord32:$enable_coord64:$ac_cv_header_stdint_h" in
18883  yes:no:yes )
18884    COORD_TYPE="int32_t"
18885    COORD_MAX="INT32_MAX"
18886    ;;
18887  no:yes:yes )
18888    COORD_TYPE="int64_t"
18889    COORD_MAX="INT64_MAX"
18890    ;;
18891  yes:no:no  )
18892    COORD_TYPE="int"
18893    COORD_MAX="INT_MAX"
18894    ;;
18895  no:yes:no  )
18896    COORD_TYPE="long long"
18897    COORD_MAX="LLONG_MAX"
18898    ;;
18899  yes:yes:*  )
18900    as_fn_error $? "\"*** cannot require both 32 and 64 bit coordinates\"" "$LINENO" 5
18901    ;;
18902  *:*:*    )
18903    COORD_TYPE="long"
18904    COORD_MAX="LONG_MAX"
18905    ;;
18906esac
18907
18908cat >>confdefs.h <<_ACEOF
18909#define COORD_TYPE $COORD_TYPE
18910_ACEOF
18911
18912
18913cat >>confdefs.h <<_ACEOF
18914#define COORD_MAX $COORD_MAX
18915_ACEOF
18916
18917
18918# ------------- Complete set of CPPFLAGS and LIBS -------------------
18919
18920CPPFLAGS="$CPPFLAGS $X_CFLAGS $DBUS_CFLAGS $GDLIB_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS $GD_CFLAGS $CAIRO_CFLAGS $GTKGLEXT_CFLAGS $GLU_CFLAGS $GL_CFLAGS"
18921LIBS="$LIBS $XM_LIBS $DBUS_LIBS $X_LIBS $GDLIB_LDFLAGS $GDLIB_LIBS $GLIB_LIBS $GTK_LIBS $DMALLOC_LIBS $GD_LIBS $INTLLIBS $CAIRO_LIBS $GTKGLEXT_LIBS $GLU_LIBS $GL_LIBS"
18922
18923
18924# if we have gcc then add -Wall
18925if test "x$GCC" = "xyes"; then
18926	# see about adding some extra checks if the compiler takes them
18927	for flag in -Wall ; do
18928		case " ${CFLAGS} " in
18929			*\ ${flag}\ *)
18930				# flag is already present
18931				;;
18932			*)
18933				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler accepts ${flag}" >&5
18934$as_echo_n "checking if the compiler accepts ${flag}... " >&6; }
18935				ac_save_CFLAGS="$CFLAGS"
18936				CFLAGS="$CFLAGS ${flag}"
18937				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938/* end confdefs.h.  */
18939
18940int
18941main ()
18942{
18943
18944  ;
18945  return 0;
18946}
18947_ACEOF
18948if ac_fn_c_try_compile "$LINENO"; then :
18949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18950$as_echo "yes" >&6; }
18951else
18952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953$as_echo "no" >&6; }
18954					 CFLAGS="$ac_save_CFLAGS"
18955
18956
18957fi
18958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18959				;;
18960		esac
18961	done
18962fi
18963
18964CXXFLAGS="$CFLAGS"
18965
18966# Now add C-specific flags
18967if test "x$GCC" = "xyes"; then
18968	# see about adding some extra checks if the compiler takes them
18969	for flag in -Wdeclaration-after-statement ; do
18970		case " ${CFLAGS} " in
18971			*\ ${flag}\ *)
18972				# flag is already present
18973				;;
18974			*)
18975				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler accepts ${flag}" >&5
18976$as_echo_n "checking if the compiler accepts ${flag}... " >&6; }
18977				ac_save_CFLAGS="$CFLAGS"
18978				CFLAGS="$CFLAGS ${flag}"
18979				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980/* end confdefs.h.  */
18981
18982int
18983main ()
18984{
18985
18986  ;
18987  return 0;
18988}
18989_ACEOF
18990if ac_fn_c_try_compile "$LINENO"; then :
18991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18992$as_echo "yes" >&6; }
18993else
18994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18995$as_echo "no" >&6; }
18996					 CFLAGS="$ac_save_CFLAGS"
18997
18998
18999fi
19000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001				;;
19002		esac
19003	done
19004fi
19005
19006# See if we are building gcc with C++.
19007# Check whether --enable-build-with-cxx was given.
19008if test "${enable_build_with_cxx+set}" = set; then :
19009  enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
19010else
19011  ENABLE_BUILD_WITH_CXX=no
19012fi
19013
19014
19015case "$ENABLE_BUILD_WITH_CXX" in
19016  yes)
19017    CC_OR_CXX="$CXX"
19018    ;;
19019  no)
19020    CC_OR_CXX="$CC"
19021    ;;
19022esac
19023
19024
19025# font filename
19026FONTFILENAME=${FONTFILENAME:-"default_font"}
19027
19028
19029cat >>confdefs.h <<_ACEOF
19030#define FONTFILENAME "$FONTFILENAME"
19031_ACEOF
19032
19033
19034# standard autoconf variables
19035CPPFLAGS="$CPPFLAGS -DPREFIXDIR=\\\"\${prefix}\\\""
19036CPPFLAGS="$CPPFLAGS -DBINDIR=\\\"\${bindir}\\\""
19037CPPFLAGS="$CPPFLAGS -DHOST=\\\"\${host}\\\""
19038
19039# directory for old-style library and for fonts
19040PCBLIBDIR=${datadir}/pcb
19041
19042#AC_DEFINE_UNQUOTED(PCBLIBDIR,"$PCBLIBDIR",[Library directory])
19043CPPFLAGS="$CPPFLAGS -DPCBLIBDIR=\\\"$PCBLIBDIR\\\""
19044
19045# name for old-style library
19046LIBRARYFILENAME=pcblib
19047
19048
19049cat >>confdefs.h <<_ACEOF
19050#define LIBRARYFILENAME "$LIBRARYFILENAME"
19051_ACEOF
19052
19053
19054
19055# directory for new library
19056PCBTREEDIR=${datadir}/pcb/newlib
19057PCBTREEPATH=${PCBTREEDIR}:${PCBLIBDIR}/pcblib-newlib
19058PCBTREEDIR=${PCBTREEDIR:-"$PCBTREEDIR"}
19059
19060
19061#AC_DEFINE_UNQUOTED(PCBTREEDIR,"$PCBLIB",[top directory for new style pcb library])
19062CPPFLAGS="$CPPFLAGS -DPCBTREEDIR=\\\"$PCBTREEDIR\\\""
19063CPPFLAGS="$CPPFLAGS -DPCBTREEPATH=\\\"$PCBTREEPATH\\\""
19064
19065# Figure out relative paths
19066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the bindir to pcblibdir relative path" >&5
19067$as_echo_n "checking for the bindir to pcblibdir relative path... " >&6; }
19068for _lcl_i in bindir:PCBLIBDIR:bindir_to_pcblibdir; do
19069  _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
19070  _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
19071  _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
19072  _lcl_receval="$_lcl_from"
19073_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19074     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19075     _lcl_receval_old=''
19076     while test "$_lcl_receval_old" != "$_lcl_receval"; do
19077       _lcl_receval_old="$_lcl_receval"
19078       eval _lcl_receval="\"$_lcl_receval\""
19079     done
19080     echo "$_lcl_receval")`
19081  _lcl_receval="$_lcl_to"
19082_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19083     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19084     _lcl_receval_old=''
19085     while test "$_lcl_receval_old" != "$_lcl_receval"; do
19086       _lcl_receval_old="$_lcl_receval"
19087       eval _lcl_receval="\"$_lcl_receval\""
19088     done
19089     echo "$_lcl_receval")`
19090  _lcl_notation="$_lcl_from$_lcl_to"
19091  case ":$_lcl_from:" in
19092# change empty paths to '.'
19093  ::) _lcl_from='.' ;;
19094# strip trailing slashes
19095  :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
19096  :*:) ;;
19097esac
19098# squeze repeated slashes
19099case '/' in
19100# if the path contains any backslashes, turn slashes into backslashes
19101 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19102# if the path contains slashes, also turn backslashes into slashes
19103 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19104esac
19105  case ":$_lcl_to:" in
19106# change empty paths to '.'
19107  ::) _lcl_to='.' ;;
19108# strip trailing slashes
19109  :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
19110  :*:) ;;
19111esac
19112# squeze repeated slashes
19113case '/' in
19114# if the path contains any backslashes, turn slashes into backslashes
19115 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19116# if the path contains slashes, also turn backslashes into slashes
19117 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19118esac
19119  _lcl_common_prefix=''
19120_lcl_second_prefix_match=''
19121while test "$_lcl_second_prefix_match" != 0; do
19122  _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
19123  _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
19124  if test "$_lcl_second_prefix_match" != 0; then
19125    if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
19126      _lcl_common_prefix="$_lcl_first_prefix"
19127    else
19128      _lcl_second_prefix_match=0
19129    fi
19130  fi
19131done
19132_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
19133_lcl_first_rel=''
19134_lcl_tmp='xxx'
19135while test "$_lcl_tmp" != ''; do
19136  _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
19137  if test "$_lcl_first_suffix" != ''; then
19138     _lcl_first_suffix="$_lcl_tmp"
19139     _lcl_first_rel="../$_lcl_first_rel"
19140  fi
19141done
19142_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
19143_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
19144  case ":$_lcl_result_tmp:" in
19145# change empty paths to '.'
19146  ::) _lcl_result_tmp='.' ;;
19147# strip trailing slashes
19148  :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
19149  :*:) ;;
19150esac
19151# squeze repeated slashes
19152case "$_lcl_notation" in
19153# if the path contains any backslashes, turn slashes into backslashes
19154 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19155# if the path contains slashes, also turn backslashes into slashes
19156 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19157esac
19158  eval $_lcl_result_var='$_lcl_result_tmp'
19159done
19160case ":$bindir_to_pcblibdir:" in
19161# change empty paths to '.'
19162  ::) bindir_to_pcblibdir='.' ;;
19163# strip trailing slashes
19164  :*[\\/]:) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,[\\/]*$,,'` ;;
19165  :*:) ;;
19166esac
19167# squeze repeated slashes
19168case $PCB_DIR_SEPARATOR_S in
19169# if the path contains any backslashes, turn slashes into backslashes
19170 *\\*) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19171# if the path contains slashes, also turn backslashes into slashes
19172 *) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19173esac
19174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bindir_to_pcblibdir" >&5
19175$as_echo "$bindir_to_pcblibdir" >&6; }
19176
19177cat >>confdefs.h <<_ACEOF
19178#define BINDIR_TO_PCBLIBDIR "$bindir_to_pcblibdir"
19179_ACEOF
19180
19181
19182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the bindir to pcbtreedir relative path" >&5
19183$as_echo_n "checking for the bindir to pcbtreedir relative path... " >&6; }
19184for _lcl_i in bindir:PCBTREEDIR:bindir_to_pcbtreedir; do
19185  _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
19186  _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
19187  _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
19188  _lcl_receval="$_lcl_from"
19189_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19190     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19191     _lcl_receval_old=''
19192     while test "$_lcl_receval_old" != "$_lcl_receval"; do
19193       _lcl_receval_old="$_lcl_receval"
19194       eval _lcl_receval="\"$_lcl_receval\""
19195     done
19196     echo "$_lcl_receval")`
19197  _lcl_receval="$_lcl_to"
19198_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19199     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19200     _lcl_receval_old=''
19201     while test "$_lcl_receval_old" != "$_lcl_receval"; do
19202       _lcl_receval_old="$_lcl_receval"
19203       eval _lcl_receval="\"$_lcl_receval\""
19204     done
19205     echo "$_lcl_receval")`
19206  _lcl_notation="$_lcl_from$_lcl_to"
19207  case ":$_lcl_from:" in
19208# change empty paths to '.'
19209  ::) _lcl_from='.' ;;
19210# strip trailing slashes
19211  :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
19212  :*:) ;;
19213esac
19214# squeze repeated slashes
19215case '/' in
19216# if the path contains any backslashes, turn slashes into backslashes
19217 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19218# if the path contains slashes, also turn backslashes into slashes
19219 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19220esac
19221  case ":$_lcl_to:" in
19222# change empty paths to '.'
19223  ::) _lcl_to='.' ;;
19224# strip trailing slashes
19225  :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
19226  :*:) ;;
19227esac
19228# squeze repeated slashes
19229case '/' in
19230# if the path contains any backslashes, turn slashes into backslashes
19231 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19232# if the path contains slashes, also turn backslashes into slashes
19233 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19234esac
19235  _lcl_common_prefix=''
19236_lcl_second_prefix_match=''
19237while test "$_lcl_second_prefix_match" != 0; do
19238  _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
19239  _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
19240  if test "$_lcl_second_prefix_match" != 0; then
19241    if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
19242      _lcl_common_prefix="$_lcl_first_prefix"
19243    else
19244      _lcl_second_prefix_match=0
19245    fi
19246  fi
19247done
19248_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
19249_lcl_first_rel=''
19250_lcl_tmp='xxx'
19251while test "$_lcl_tmp" != ''; do
19252  _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
19253  if test "$_lcl_first_suffix" != ''; then
19254     _lcl_first_suffix="$_lcl_tmp"
19255     _lcl_first_rel="../$_lcl_first_rel"
19256  fi
19257done
19258_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
19259_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
19260  case ":$_lcl_result_tmp:" in
19261# change empty paths to '.'
19262  ::) _lcl_result_tmp='.' ;;
19263# strip trailing slashes
19264  :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
19265  :*:) ;;
19266esac
19267# squeze repeated slashes
19268case "$_lcl_notation" in
19269# if the path contains any backslashes, turn slashes into backslashes
19270 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19271# if the path contains slashes, also turn backslashes into slashes
19272 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19273esac
19274  eval $_lcl_result_var='$_lcl_result_tmp'
19275done
19276case ":$bindir_to_pcbtreedir:" in
19277# change empty paths to '.'
19278  ::) bindir_to_pcbtreedir='.' ;;
19279# strip trailing slashes
19280  :*[\\/]:) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,[\\/]*$,,'` ;;
19281  :*:) ;;
19282esac
19283# squeze repeated slashes
19284case $PCB_DIR_SEPARATOR_S in
19285# if the path contains any backslashes, turn slashes into backslashes
19286 *\\*) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19287# if the path contains slashes, also turn backslashes into slashes
19288 *) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19289esac
19290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bindir_to_pcbtreedir" >&5
19291$as_echo "$bindir_to_pcbtreedir" >&6; }
19292
19293cat >>confdefs.h <<_ACEOF
19294#define BINDIR_TO_PCBTREEDIR "$bindir_to_pcbtreedir"
19295_ACEOF
19296
19297
19298
19299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the bindir to exec_prefix relative path" >&5
19300$as_echo_n "checking for the bindir to exec_prefix relative path... " >&6; }
19301for _lcl_i in bindir:exec_prefix:bindir_to_execprefix; do
19302  _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
19303  _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
19304  _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
19305  _lcl_receval="$_lcl_from"
19306_lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19307     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19308     _lcl_receval_old=''
19309     while test "$_lcl_receval_old" != "$_lcl_receval"; do
19310       _lcl_receval_old="$_lcl_receval"
19311       eval _lcl_receval="\"$_lcl_receval\""
19312     done
19313     echo "$_lcl_receval")`
19314  _lcl_receval="$_lcl_to"
19315_lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19316     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19317     _lcl_receval_old=''
19318     while test "$_lcl_receval_old" != "$_lcl_receval"; do
19319       _lcl_receval_old="$_lcl_receval"
19320       eval _lcl_receval="\"$_lcl_receval\""
19321     done
19322     echo "$_lcl_receval")`
19323  _lcl_notation="$_lcl_from$_lcl_to"
19324  case ":$_lcl_from:" in
19325# change empty paths to '.'
19326  ::) _lcl_from='.' ;;
19327# strip trailing slashes
19328  :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
19329  :*:) ;;
19330esac
19331# squeze repeated slashes
19332case '/' in
19333# if the path contains any backslashes, turn slashes into backslashes
19334 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19335# if the path contains slashes, also turn backslashes into slashes
19336 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19337esac
19338  case ":$_lcl_to:" in
19339# change empty paths to '.'
19340  ::) _lcl_to='.' ;;
19341# strip trailing slashes
19342  :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
19343  :*:) ;;
19344esac
19345# squeze repeated slashes
19346case '/' in
19347# if the path contains any backslashes, turn slashes into backslashes
19348 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19349# if the path contains slashes, also turn backslashes into slashes
19350 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19351esac
19352  _lcl_common_prefix=''
19353_lcl_second_prefix_match=''
19354while test "$_lcl_second_prefix_match" != 0; do
19355  _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
19356  _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
19357  if test "$_lcl_second_prefix_match" != 0; then
19358    if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
19359      _lcl_common_prefix="$_lcl_first_prefix"
19360    else
19361      _lcl_second_prefix_match=0
19362    fi
19363  fi
19364done
19365_lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
19366_lcl_first_rel=''
19367_lcl_tmp='xxx'
19368while test "$_lcl_tmp" != ''; do
19369  _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
19370  if test "$_lcl_first_suffix" != ''; then
19371     _lcl_first_suffix="$_lcl_tmp"
19372     _lcl_first_rel="../$_lcl_first_rel"
19373  fi
19374done
19375_lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
19376_lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
19377  case ":$_lcl_result_tmp:" in
19378# change empty paths to '.'
19379  ::) _lcl_result_tmp='.' ;;
19380# strip trailing slashes
19381  :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
19382  :*:) ;;
19383esac
19384# squeze repeated slashes
19385case "$_lcl_notation" in
19386# if the path contains any backslashes, turn slashes into backslashes
19387 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19388# if the path contains slashes, also turn backslashes into slashes
19389 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19390esac
19391  eval $_lcl_result_var='$_lcl_result_tmp'
19392done
19393case ":$bindir_to_execprefix:" in
19394# change empty paths to '.'
19395  ::) bindir_to_execprefix='.' ;;
19396# strip trailing slashes
19397  :*[\\/]:) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,[\\/]*$,,'` ;;
19398  :*:) ;;
19399esac
19400# squeze repeated slashes
19401case $PCB_DIR_SEPARATOR_S in
19402# if the path contains any backslashes, turn slashes into backslashes
19403 *\\*) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
19404# if the path contains slashes, also turn backslashes into slashes
19405 *) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
19406esac
19407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bindir_to_execprefix" >&5
19408$as_echo "$bindir_to_execprefix" >&6; }
19409
19410cat >>confdefs.h <<_ACEOF
19411#define BINDIR_TO_EXECPREFIX "$bindir_to_execprefix"
19412_ACEOF
19413
19414
19415
19416BTNMOD=${BTNMOD:-"Mod1"}
19417
19418
19419TOPDIRS=
19420for dir in src lib newlib doc example tools tutorial README_FILES
19421do
19422   test -d $dir/. && TOPDIRS="$TOPDIRS $dir"
19423done
19424
19425
19426ac_config_files="$ac_config_files Makefile data/Makefile intl/Makefile po/Makefile.in"
19427
19428
19429if test -d $srcdir/README_FILES; then
19430   ac_config_files="$ac_config_files README_FILES/Makefile"
19431
19432fi
19433if test -d $srcdir/doc; then
19434   ac_config_files="$ac_config_files doc/Makefile"
19435
19436fi
19437if test -d $srcdir/doc/gs; then
19438   ac_config_files="$ac_config_files doc/gs/Makefile"
19439
19440   ac_config_files="$ac_config_files doc/gs/gafrc"
19441
19442   ac_config_files="$ac_config_files doc/gs/gschemrc"
19443
19444fi
19445if test -d $srcdir/example; then
19446   ac_config_files="$ac_config_files example/Makefile"
19447
19448   ac_config_files="$ac_config_files example/libraries/Makefile"
19449
19450fi
19451if test -d $srcdir/lib; then
19452   ac_config_files="$ac_config_files lib/CreateLibraryContents.sh"
19453
19454   ac_config_files="$ac_config_files lib/CreateLibrary.sh"
19455
19456   ac_config_files="$ac_config_files lib/ListLibraryContents.sh"
19457
19458   ac_config_files="$ac_config_files lib/Makefile"
19459
19460   ac_config_files="$ac_config_files lib/QueryLibrary.sh"
19461
19462   ac_config_files="$ac_config_files lib/qfp-ui"
19463
19464fi
19465if test -d $srcdir/newlib; then
19466   ac_config_files="$ac_config_files newlib/2_pin_thru-hole_packages/Makefile"
19467
19468   ac_config_files="$ac_config_files newlib/Makefile"
19469
19470   ac_config_files="$ac_config_files newlib/connectors/Makefile"
19471
19472   ac_config_files="$ac_config_files newlib/crystal/Makefile"
19473
19474   ac_config_files="$ac_config_files newlib/electro-optics/Makefile"
19475
19476   ac_config_files="$ac_config_files newlib/headers/Makefile"
19477
19478   ac_config_files="$ac_config_files newlib/keystone/Makefile"
19479
19480   ac_config_files="$ac_config_files newlib/msp430/Makefile"
19481
19482   ac_config_files="$ac_config_files newlib/not_vetted_ingo/Makefile"
19483
19484   ac_config_files="$ac_config_files newlib/sockets/Makefile"
19485
19486   ac_config_files="$ac_config_files newlib/tests/Makefile"
19487
19488fi
19489ac_config_files="$ac_config_files src/Makefile"
19490
19491ac_config_files="$ac_config_files src/icons/Makefile"
19492
19493if test -d $srcdir/tools; then
19494   ac_config_files="$ac_config_files tools/Makefile"
19495
19496fi
19497if test -d $srcdir/tutorial; then
19498   ac_config_files="$ac_config_files tutorial/Makefile"
19499
19500fi
19501
19502ac_config_files="$ac_config_files tests/Makefile"
19503
19504
19505ac_config_files="$ac_config_files gts/Makefile"
19506
19507
19508ac_config_files="$ac_config_files w32/Makefile"
19509
19510
19511ac_config_files="$ac_config_files win32/Makefile"
19512
19513
19514cat >confcache <<\_ACEOF
19515# This file is a shell script that caches the results of configure
19516# tests run on this system so they can be shared between configure
19517# scripts and configure runs, see configure's option --config-cache.
19518# It is not useful on other systems.  If it contains results you don't
19519# want to keep, you may remove or edit it.
19520#
19521# config.status only pays attention to the cache file if you give it
19522# the --recheck option to rerun configure.
19523#
19524# `ac_cv_env_foo' variables (set or unset) will be overridden when
19525# loading this file, other *unset* `ac_cv_foo' will be assigned the
19526# following values.
19527
19528_ACEOF
19529
19530# The following way of writing the cache mishandles newlines in values,
19531# but we know of no workaround that is simple, portable, and efficient.
19532# So, we kill variables containing newlines.
19533# Ultrix sh set writes to stderr and can't be redirected directly,
19534# and sets the high bit in the cache file unless we assign to the vars.
19535(
19536  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19537    eval ac_val=\$$ac_var
19538    case $ac_val in #(
19539    *${as_nl}*)
19540      case $ac_var in #(
19541      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19542$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19543      esac
19544      case $ac_var in #(
19545      _ | IFS | as_nl) ;; #(
19546      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19547      *) { eval $ac_var=; unset $ac_var;} ;;
19548      esac ;;
19549    esac
19550  done
19551
19552  (set) 2>&1 |
19553    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19554    *${as_nl}ac_space=\ *)
19555      # `set' does not quote correctly, so add quotes: double-quote
19556      # substitution turns \\\\ into \\, and sed turns \\ into \.
19557      sed -n \
19558	"s/'/'\\\\''/g;
19559	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19560      ;; #(
19561    *)
19562      # `set' quotes correctly as required by POSIX, so do not add quotes.
19563      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19564      ;;
19565    esac |
19566    sort
19567) |
19568  sed '
19569     /^ac_cv_env_/b end
19570     t clear
19571     :clear
19572     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19573     t end
19574     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19575     :end' >>confcache
19576if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19577  if test -w "$cache_file"; then
19578    if test "x$cache_file" != "x/dev/null"; then
19579      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19580$as_echo "$as_me: updating cache $cache_file" >&6;}
19581      if test ! -f "$cache_file" || test -h "$cache_file"; then
19582	cat confcache >"$cache_file"
19583      else
19584        case $cache_file in #(
19585        */* | ?:*)
19586	  mv -f confcache "$cache_file"$$ &&
19587	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19588        *)
19589	  mv -f confcache "$cache_file" ;;
19590	esac
19591      fi
19592    fi
19593  else
19594    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19595$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19596  fi
19597fi
19598rm -f confcache
19599
19600test "x$prefix" = xNONE && prefix=$ac_default_prefix
19601# Let make expand exec_prefix.
19602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19603
19604DEFS=-DHAVE_CONFIG_H
19605
19606ac_libobjs=
19607ac_ltlibobjs=
19608U=
19609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19610  # 1. Remove the extension, and $U if already installed.
19611  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19612  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19613  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19614  #    will be set to the directory where LIBOBJS objects are built.
19615  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19616  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19617done
19618LIBOBJS=$ac_libobjs
19619
19620LTLIBOBJS=$ac_ltlibobjs
19621
19622
19623 if test -n "$EXEEXT"; then
19624  am__EXEEXT_TRUE=
19625  am__EXEEXT_FALSE='#'
19626else
19627  am__EXEEXT_TRUE='#'
19628  am__EXEEXT_FALSE=
19629fi
19630
19631if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19632  as_fn_error $? "conditional \"AMDEP\" was never defined.
19633Usually this means the macro was only invoked conditionally." "$LINENO" 5
19634fi
19635if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19636  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19637Usually this means the macro was only invoked conditionally." "$LINENO" 5
19638fi
19639if test -z "${GIT_VERSION_TRUE}" && test -z "${GIT_VERSION_FALSE}"; then
19640  as_fn_error $? "conditional \"GIT_VERSION\" was never defined.
19641Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642fi
19643if test -z "${CVS_VERSION_TRUE}" && test -z "${CVS_VERSION_FALSE}"; then
19644  as_fn_error $? "conditional \"CVS_VERSION\" was never defined.
19645Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646fi
19647if test -z "${GIT_OR_CVS_VERSION_TRUE}" && test -z "${GIT_OR_CVS_VERSION_FALSE}"; then
19648  as_fn_error $? "conditional \"GIT_OR_CVS_VERSION\" was never defined.
19649Usually this means the macro was only invoked conditionally." "$LINENO" 5
19650fi
19651if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
19652  as_fn_error $? "conditional \"WIN32\" was never defined.
19653Usually this means the macro was only invoked conditionally." "$LINENO" 5
19654fi
19655if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19656  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19657Usually this means the macro was only invoked conditionally." "$LINENO" 5
19658fi
19659if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19660  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19661Usually this means the macro was only invoked conditionally." "$LINENO" 5
19662fi
19663
19664  ac_config_commands="$ac_config_commands po/stamp-it"
19665
19666
19667if test -z "${WITH_TOPOROUTER_TRUE}" && test -z "${WITH_TOPOROUTER_FALSE}"; then
19668  as_fn_error $? "conditional \"WITH_TOPOROUTER\" was never defined.
19669Usually this means the macro was only invoked conditionally." "$LINENO" 5
19670fi
19671if test -z "${WITH_DBUS_TRUE}" && test -z "${WITH_DBUS_FALSE}"; then
19672  as_fn_error $? "conditional \"WITH_DBUS\" was never defined.
19673Usually this means the macro was only invoked conditionally." "$LINENO" 5
19674fi
19675if test -z "${USE_GL_TRUE}" && test -z "${USE_GL_FALSE}"; then
19676  as_fn_error $? "conditional \"USE_GL\" was never defined.
19677Usually this means the macro was only invoked conditionally." "$LINENO" 5
19678fi
19679if test -z "${ENABLE_UPDATE_DESKTOP_DATABASE_TRUE}" && test -z "${ENABLE_UPDATE_DESKTOP_DATABASE_FALSE}"; then
19680  as_fn_error $? "conditional \"ENABLE_UPDATE_DESKTOP_DATABASE\" was never defined.
19681Usually this means the macro was only invoked conditionally." "$LINENO" 5
19682fi
19683if test -z "${ENABLE_UPDATE_MIME_DATABASE_TRUE}" && test -z "${ENABLE_UPDATE_MIME_DATABASE_FALSE}"; then
19684  as_fn_error $? "conditional \"ENABLE_UPDATE_MIME_DATABASE\" was never defined.
19685Usually this means the macro was only invoked conditionally." "$LINENO" 5
19686fi
19687if test -z "${MISSING_PDFLATEX_TRUE}" && test -z "${MISSING_PDFLATEX_FALSE}"; then
19688  as_fn_error $? "conditional \"MISSING_PDFLATEX\" was never defined.
19689Usually this means the macro was only invoked conditionally." "$LINENO" 5
19690fi
19691if test -z "${MISSING_TEXI2DVI_TRUE}" && test -z "${MISSING_TEXI2DVI_FALSE}"; then
19692  as_fn_error $? "conditional \"MISSING_TEXI2DVI\" was never defined.
19693Usually this means the macro was only invoked conditionally." "$LINENO" 5
19694fi
19695if test -z "${MISSING_PS2PDF_TRUE}" && test -z "${MISSING_PS2PDF_FALSE}"; then
19696  as_fn_error $? "conditional \"MISSING_PS2PDF\" was never defined.
19697Usually this means the macro was only invoked conditionally." "$LINENO" 5
19698fi
19699if test -z "${MISSING_GSCHEM_TRUE}" && test -z "${MISSING_GSCHEM_FALSE}"; then
19700  as_fn_error $? "conditional \"MISSING_GSCHEM\" was never defined.
19701Usually this means the macro was only invoked conditionally." "$LINENO" 5
19702fi
19703if test -z "${HAVE_TEST_TOOLS_TRUE}" && test -z "${HAVE_TEST_TOOLS_FALSE}"; then
19704  as_fn_error $? "conditional \"HAVE_TEST_TOOLS\" was never defined.
19705Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706fi
19707if test -z "${PNG_TRUE}" && test -z "${PNG_FALSE}"; then
19708  as_fn_error $? "conditional \"PNG\" was never defined.
19709Usually this means the macro was only invoked conditionally." "$LINENO" 5
19710fi
19711if test -z "${GIF_TRUE}" && test -z "${GIF_FALSE}"; then
19712  as_fn_error $? "conditional \"GIF\" was never defined.
19713Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714fi
19715if test -z "${PNG_PREVIEW_TRUE}" && test -z "${PNG_PREVIEW_FALSE}"; then
19716  as_fn_error $? "conditional \"PNG_PREVIEW\" was never defined.
19717Usually this means the macro was only invoked conditionally." "$LINENO" 5
19718fi
19719if test -z "${BUILD_PCBLIB_NEWLIB_TRUE}" && test -z "${BUILD_PCBLIB_NEWLIB_FALSE}"; then
19720  as_fn_error $? "conditional \"BUILD_PCBLIB_NEWLIB\" was never defined.
19721Usually this means the macro was only invoked conditionally." "$LINENO" 5
19722fi
19723if test -z "${DEBUG_BUILD_TRUE}" && test -z "${DEBUG_BUILD_FALSE}"; then
19724  as_fn_error $? "conditional \"DEBUG_BUILD\" was never defined.
19725Usually this means the macro was only invoked conditionally." "$LINENO" 5
19726fi
19727
19728: "${CONFIG_STATUS=./config.status}"
19729ac_write_fail=0
19730ac_clean_files_save=$ac_clean_files
19731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19732{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19733$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19734as_write_fail=0
19735cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19736#! $SHELL
19737# Generated by $as_me.
19738# Run this file to recreate the current configuration.
19739# Compiler output produced by configure, useful for debugging
19740# configure, is in config.log if it exists.
19741
19742debug=false
19743ac_cs_recheck=false
19744ac_cs_silent=false
19745
19746SHELL=\${CONFIG_SHELL-$SHELL}
19747export SHELL
19748_ASEOF
19749cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19750## -------------------- ##
19751## M4sh Initialization. ##
19752## -------------------- ##
19753
19754# Be more Bourne compatible
19755DUALCASE=1; export DUALCASE # for MKS sh
19756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19757  emulate sh
19758  NULLCMD=:
19759  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19760  # is contrary to our usage.  Disable this feature.
19761  alias -g '${1+"$@"}'='"$@"'
19762  setopt NO_GLOB_SUBST
19763else
19764  case `(set -o) 2>/dev/null` in #(
19765  *posix*) :
19766    set -o posix ;; #(
19767  *) :
19768     ;;
19769esac
19770fi
19771
19772
19773as_nl='
19774'
19775export as_nl
19776# Printing a long string crashes Solaris 7 /usr/bin/printf.
19777as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19778as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19780# Prefer a ksh shell builtin over an external printf program on Solaris,
19781# but without wasting forks for bash or zsh.
19782if test -z "$BASH_VERSION$ZSH_VERSION" \
19783    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19784  as_echo='print -r --'
19785  as_echo_n='print -rn --'
19786elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19787  as_echo='printf %s\n'
19788  as_echo_n='printf %s'
19789else
19790  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19791    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19792    as_echo_n='/usr/ucb/echo -n'
19793  else
19794    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19795    as_echo_n_body='eval
19796      arg=$1;
19797      case $arg in #(
19798      *"$as_nl"*)
19799	expr "X$arg" : "X\\(.*\\)$as_nl";
19800	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19801      esac;
19802      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19803    '
19804    export as_echo_n_body
19805    as_echo_n='sh -c $as_echo_n_body as_echo'
19806  fi
19807  export as_echo_body
19808  as_echo='sh -c $as_echo_body as_echo'
19809fi
19810
19811# The user is always right.
19812if test "${PATH_SEPARATOR+set}" != set; then
19813  PATH_SEPARATOR=:
19814  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19815    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19816      PATH_SEPARATOR=';'
19817  }
19818fi
19819
19820
19821# IFS
19822# We need space, tab and new line, in precisely that order.  Quoting is
19823# there to prevent editors from complaining about space-tab.
19824# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19825# splitting by setting IFS to empty value.)
19826IFS=" ""	$as_nl"
19827
19828# Find who we are.  Look in the path if we contain no directory separator.
19829as_myself=
19830case $0 in #((
19831  *[\\/]* ) as_myself=$0 ;;
19832  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19833for as_dir in $PATH
19834do
19835  IFS=$as_save_IFS
19836  test -z "$as_dir" && as_dir=.
19837    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19838  done
19839IFS=$as_save_IFS
19840
19841     ;;
19842esac
19843# We did not find ourselves, most probably we were run as `sh COMMAND'
19844# in which case we are not to be found in the path.
19845if test "x$as_myself" = x; then
19846  as_myself=$0
19847fi
19848if test ! -f "$as_myself"; then
19849  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19850  exit 1
19851fi
19852
19853# Unset variables that we do not need and which cause bugs (e.g. in
19854# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19855# suppresses any "Segmentation fault" message there.  '((' could
19856# trigger a bug in pdksh 5.2.14.
19857for as_var in BASH_ENV ENV MAIL MAILPATH
19858do eval test x\${$as_var+set} = xset \
19859  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19860done
19861PS1='$ '
19862PS2='> '
19863PS4='+ '
19864
19865# NLS nuisances.
19866LC_ALL=C
19867export LC_ALL
19868LANGUAGE=C
19869export LANGUAGE
19870
19871# CDPATH.
19872(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19873
19874
19875# as_fn_error STATUS ERROR [LINENO LOG_FD]
19876# ----------------------------------------
19877# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19878# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19879# script with STATUS, using 1 if that was 0.
19880as_fn_error ()
19881{
19882  as_status=$1; test $as_status -eq 0 && as_status=1
19883  if test "$4"; then
19884    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19885    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19886  fi
19887  $as_echo "$as_me: error: $2" >&2
19888  as_fn_exit $as_status
19889} # as_fn_error
19890
19891
19892# as_fn_set_status STATUS
19893# -----------------------
19894# Set $? to STATUS, without forking.
19895as_fn_set_status ()
19896{
19897  return $1
19898} # as_fn_set_status
19899
19900# as_fn_exit STATUS
19901# -----------------
19902# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19903as_fn_exit ()
19904{
19905  set +e
19906  as_fn_set_status $1
19907  exit $1
19908} # as_fn_exit
19909
19910# as_fn_unset VAR
19911# ---------------
19912# Portably unset VAR.
19913as_fn_unset ()
19914{
19915  { eval $1=; unset $1;}
19916}
19917as_unset=as_fn_unset
19918# as_fn_append VAR VALUE
19919# ----------------------
19920# Append the text in VALUE to the end of the definition contained in VAR. Take
19921# advantage of any shell optimizations that allow amortized linear growth over
19922# repeated appends, instead of the typical quadratic growth present in naive
19923# implementations.
19924if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19925  eval 'as_fn_append ()
19926  {
19927    eval $1+=\$2
19928  }'
19929else
19930  as_fn_append ()
19931  {
19932    eval $1=\$$1\$2
19933  }
19934fi # as_fn_append
19935
19936# as_fn_arith ARG...
19937# ------------------
19938# Perform arithmetic evaluation on the ARGs, and store the result in the
19939# global $as_val. Take advantage of shells that can avoid forks. The arguments
19940# must be portable across $(()) and expr.
19941if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19942  eval 'as_fn_arith ()
19943  {
19944    as_val=$(( $* ))
19945  }'
19946else
19947  as_fn_arith ()
19948  {
19949    as_val=`expr "$@" || test $? -eq 1`
19950  }
19951fi # as_fn_arith
19952
19953
19954if expr a : '\(a\)' >/dev/null 2>&1 &&
19955   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19956  as_expr=expr
19957else
19958  as_expr=false
19959fi
19960
19961if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19962  as_basename=basename
19963else
19964  as_basename=false
19965fi
19966
19967if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19968  as_dirname=dirname
19969else
19970  as_dirname=false
19971fi
19972
19973as_me=`$as_basename -- "$0" ||
19974$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19975	 X"$0" : 'X\(//\)$' \| \
19976	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19977$as_echo X/"$0" |
19978    sed '/^.*\/\([^/][^/]*\)\/*$/{
19979	    s//\1/
19980	    q
19981	  }
19982	  /^X\/\(\/\/\)$/{
19983	    s//\1/
19984	    q
19985	  }
19986	  /^X\/\(\/\).*/{
19987	    s//\1/
19988	    q
19989	  }
19990	  s/.*/./; q'`
19991
19992# Avoid depending upon Character Ranges.
19993as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19994as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19995as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19996as_cr_digits='0123456789'
19997as_cr_alnum=$as_cr_Letters$as_cr_digits
19998
19999ECHO_C= ECHO_N= ECHO_T=
20000case `echo -n x` in #(((((
20001-n*)
20002  case `echo 'xy\c'` in
20003  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20004  xy)  ECHO_C='\c';;
20005  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20006       ECHO_T='	';;
20007  esac;;
20008*)
20009  ECHO_N='-n';;
20010esac
20011
20012rm -f conf$$ conf$$.exe conf$$.file
20013if test -d conf$$.dir; then
20014  rm -f conf$$.dir/conf$$.file
20015else
20016  rm -f conf$$.dir
20017  mkdir conf$$.dir 2>/dev/null
20018fi
20019if (echo >conf$$.file) 2>/dev/null; then
20020  if ln -s conf$$.file conf$$ 2>/dev/null; then
20021    as_ln_s='ln -s'
20022    # ... but there are two gotchas:
20023    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20024    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20025    # In both cases, we have to default to `cp -pR'.
20026    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20027      as_ln_s='cp -pR'
20028  elif ln conf$$.file conf$$ 2>/dev/null; then
20029    as_ln_s=ln
20030  else
20031    as_ln_s='cp -pR'
20032  fi
20033else
20034  as_ln_s='cp -pR'
20035fi
20036rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20037rmdir conf$$.dir 2>/dev/null
20038
20039
20040# as_fn_mkdir_p
20041# -------------
20042# Create "$as_dir" as a directory, including parents if necessary.
20043as_fn_mkdir_p ()
20044{
20045
20046  case $as_dir in #(
20047  -*) as_dir=./$as_dir;;
20048  esac
20049  test -d "$as_dir" || eval $as_mkdir_p || {
20050    as_dirs=
20051    while :; do
20052      case $as_dir in #(
20053      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20054      *) as_qdir=$as_dir;;
20055      esac
20056      as_dirs="'$as_qdir' $as_dirs"
20057      as_dir=`$as_dirname -- "$as_dir" ||
20058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20059	 X"$as_dir" : 'X\(//\)[^/]' \| \
20060	 X"$as_dir" : 'X\(//\)$' \| \
20061	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20062$as_echo X"$as_dir" |
20063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20064	    s//\1/
20065	    q
20066	  }
20067	  /^X\(\/\/\)[^/].*/{
20068	    s//\1/
20069	    q
20070	  }
20071	  /^X\(\/\/\)$/{
20072	    s//\1/
20073	    q
20074	  }
20075	  /^X\(\/\).*/{
20076	    s//\1/
20077	    q
20078	  }
20079	  s/.*/./; q'`
20080      test -d "$as_dir" && break
20081    done
20082    test -z "$as_dirs" || eval "mkdir $as_dirs"
20083  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20084
20085
20086} # as_fn_mkdir_p
20087if mkdir -p . 2>/dev/null; then
20088  as_mkdir_p='mkdir -p "$as_dir"'
20089else
20090  test -d ./-p && rmdir ./-p
20091  as_mkdir_p=false
20092fi
20093
20094
20095# as_fn_executable_p FILE
20096# -----------------------
20097# Test if FILE is an executable regular file.
20098as_fn_executable_p ()
20099{
20100  test -f "$1" && test -x "$1"
20101} # as_fn_executable_p
20102as_test_x='test -x'
20103as_executable_p=as_fn_executable_p
20104
20105# Sed expression to map a string onto a valid CPP name.
20106as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20107
20108# Sed expression to map a string onto a valid variable name.
20109as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20110
20111
20112exec 6>&1
20113## ----------------------------------- ##
20114## Main body of $CONFIG_STATUS script. ##
20115## ----------------------------------- ##
20116_ASEOF
20117test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20118
20119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20120# Save the log message, to keep $0 and so on meaningful, and to
20121# report actual input values of CONFIG_FILES etc. instead of their
20122# values after options handling.
20123ac_log="
20124This file was extended by pcb $as_me 4.2.0, which was
20125generated by GNU Autoconf 2.69.  Invocation command line was
20126
20127  CONFIG_FILES    = $CONFIG_FILES
20128  CONFIG_HEADERS  = $CONFIG_HEADERS
20129  CONFIG_LINKS    = $CONFIG_LINKS
20130  CONFIG_COMMANDS = $CONFIG_COMMANDS
20131  $ $0 $@
20132
20133on `(hostname || uname -n) 2>/dev/null | sed 1q`
20134"
20135
20136_ACEOF
20137
20138case $ac_config_files in *"
20139"*) set x $ac_config_files; shift; ac_config_files=$*;;
20140esac
20141
20142case $ac_config_headers in *"
20143"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20144esac
20145
20146
20147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20148# Files that config.status was made for.
20149config_files="$ac_config_files"
20150config_headers="$ac_config_headers"
20151config_commands="$ac_config_commands"
20152
20153_ACEOF
20154
20155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20156ac_cs_usage="\
20157\`$as_me' instantiates files and other configuration actions
20158from templates according to the current configuration.  Unless the files
20159and actions are specified as TAGs, all are instantiated by default.
20160
20161Usage: $0 [OPTION]... [TAG]...
20162
20163  -h, --help       print this help, then exit
20164  -V, --version    print version number and configuration settings, then exit
20165      --config     print configuration, then exit
20166  -q, --quiet, --silent
20167                   do not print progress messages
20168  -d, --debug      don't remove temporary files
20169      --recheck    update $as_me by reconfiguring in the same conditions
20170      --file=FILE[:TEMPLATE]
20171                   instantiate the configuration file FILE
20172      --header=FILE[:TEMPLATE]
20173                   instantiate the configuration header FILE
20174
20175Configuration files:
20176$config_files
20177
20178Configuration headers:
20179$config_headers
20180
20181Configuration commands:
20182$config_commands
20183
20184Report bugs to the package provider."
20185
20186_ACEOF
20187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20188ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20189ac_cs_version="\\
20190pcb config.status 4.2.0
20191configured by $0, generated by GNU Autoconf 2.69,
20192  with options \\"\$ac_cs_config\\"
20193
20194Copyright (C) 2012 Free Software Foundation, Inc.
20195This config.status script is free software; the Free Software Foundation
20196gives unlimited permission to copy, distribute and modify it."
20197
20198ac_pwd='$ac_pwd'
20199srcdir='$srcdir'
20200INSTALL='$INSTALL'
20201MKDIR_P='$MKDIR_P'
20202AWK='$AWK'
20203test -n "\$AWK" || AWK=awk
20204_ACEOF
20205
20206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20207# The default lists apply if the user does not specify any file.
20208ac_need_defaults=:
20209while test $# != 0
20210do
20211  case $1 in
20212  --*=?*)
20213    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20214    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20215    ac_shift=:
20216    ;;
20217  --*=)
20218    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20219    ac_optarg=
20220    ac_shift=:
20221    ;;
20222  *)
20223    ac_option=$1
20224    ac_optarg=$2
20225    ac_shift=shift
20226    ;;
20227  esac
20228
20229  case $ac_option in
20230  # Handling of the options.
20231  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20232    ac_cs_recheck=: ;;
20233  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20234    $as_echo "$ac_cs_version"; exit ;;
20235  --config | --confi | --conf | --con | --co | --c )
20236    $as_echo "$ac_cs_config"; exit ;;
20237  --debug | --debu | --deb | --de | --d | -d )
20238    debug=: ;;
20239  --file | --fil | --fi | --f )
20240    $ac_shift
20241    case $ac_optarg in
20242    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20243    '') as_fn_error $? "missing file argument" ;;
20244    esac
20245    as_fn_append CONFIG_FILES " '$ac_optarg'"
20246    ac_need_defaults=false;;
20247  --header | --heade | --head | --hea )
20248    $ac_shift
20249    case $ac_optarg in
20250    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20251    esac
20252    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20253    ac_need_defaults=false;;
20254  --he | --h)
20255    # Conflict between --help and --header
20256    as_fn_error $? "ambiguous option: \`$1'
20257Try \`$0 --help' for more information.";;
20258  --help | --hel | -h )
20259    $as_echo "$ac_cs_usage"; exit ;;
20260  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20261  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20262    ac_cs_silent=: ;;
20263
20264  # This is an error.
20265  -*) as_fn_error $? "unrecognized option: \`$1'
20266Try \`$0 --help' for more information." ;;
20267
20268  *) as_fn_append ac_config_targets " $1"
20269     ac_need_defaults=false ;;
20270
20271  esac
20272  shift
20273done
20274
20275ac_configure_extra_args=
20276
20277if $ac_cs_silent; then
20278  exec 6>/dev/null
20279  ac_configure_extra_args="$ac_configure_extra_args --silent"
20280fi
20281
20282_ACEOF
20283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284if \$ac_cs_recheck; then
20285  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20286  shift
20287  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20288  CONFIG_SHELL='$SHELL'
20289  export CONFIG_SHELL
20290  exec "\$@"
20291fi
20292
20293_ACEOF
20294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20295exec 5>>config.log
20296{
20297  echo
20298  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20299## Running $as_me. ##
20300_ASBOX
20301  $as_echo "$ac_log"
20302} >&5
20303
20304_ACEOF
20305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20306#
20307# INIT-COMMANDS
20308#
20309AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20310# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20311    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20312    # from automake < 1.5.
20313    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20314    # Capture the value of LINGUAS because we need it to compute CATALOGS.
20315    LINGUAS="${LINGUAS-%UNSET%}"
20316
20317
20318_ACEOF
20319
20320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20321
20322# Handling of arguments.
20323for ac_config_target in $ac_config_targets
20324do
20325  case $ac_config_target in
20326    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20327    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20328    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20329    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20330    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
20331    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
20332    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20333    "README_FILES/Makefile") CONFIG_FILES="$CONFIG_FILES README_FILES/Makefile" ;;
20334    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20335    "doc/gs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gs/Makefile" ;;
20336    "doc/gs/gafrc") CONFIG_FILES="$CONFIG_FILES doc/gs/gafrc" ;;
20337    "doc/gs/gschemrc") CONFIG_FILES="$CONFIG_FILES doc/gs/gschemrc" ;;
20338    "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
20339    "example/libraries/Makefile") CONFIG_FILES="$CONFIG_FILES example/libraries/Makefile" ;;
20340    "lib/CreateLibraryContents.sh") CONFIG_FILES="$CONFIG_FILES lib/CreateLibraryContents.sh" ;;
20341    "lib/CreateLibrary.sh") CONFIG_FILES="$CONFIG_FILES lib/CreateLibrary.sh" ;;
20342    "lib/ListLibraryContents.sh") CONFIG_FILES="$CONFIG_FILES lib/ListLibraryContents.sh" ;;
20343    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20344    "lib/QueryLibrary.sh") CONFIG_FILES="$CONFIG_FILES lib/QueryLibrary.sh" ;;
20345    "lib/qfp-ui") CONFIG_FILES="$CONFIG_FILES lib/qfp-ui" ;;
20346    "newlib/2_pin_thru-hole_packages/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/2_pin_thru-hole_packages/Makefile" ;;
20347    "newlib/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/Makefile" ;;
20348    "newlib/connectors/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/connectors/Makefile" ;;
20349    "newlib/crystal/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/crystal/Makefile" ;;
20350    "newlib/electro-optics/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/electro-optics/Makefile" ;;
20351    "newlib/headers/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/headers/Makefile" ;;
20352    "newlib/keystone/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/keystone/Makefile" ;;
20353    "newlib/msp430/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/msp430/Makefile" ;;
20354    "newlib/not_vetted_ingo/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/not_vetted_ingo/Makefile" ;;
20355    "newlib/sockets/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/sockets/Makefile" ;;
20356    "newlib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES newlib/tests/Makefile" ;;
20357    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20358    "src/icons/Makefile") CONFIG_FILES="$CONFIG_FILES src/icons/Makefile" ;;
20359    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20360    "tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
20361    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20362    "gts/Makefile") CONFIG_FILES="$CONFIG_FILES gts/Makefile" ;;
20363    "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
20364    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20365    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20366
20367  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20368  esac
20369done
20370
20371
20372# If the user did not use the arguments to specify the items to instantiate,
20373# then the envvar interface is used.  Set only those that are not.
20374# We use the long form for the default assignment because of an extremely
20375# bizarre bug on SunOS 4.1.3.
20376if $ac_need_defaults; then
20377  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20378  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20379  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20380fi
20381
20382# Have a temporary directory for convenience.  Make it in the build tree
20383# simply because there is no reason against having it here, and in addition,
20384# creating and moving files from /tmp can sometimes cause problems.
20385# Hook for its removal unless debugging.
20386# Note that there is a small window in which the directory will not be cleaned:
20387# after its creation but before its name has been assigned to `$tmp'.
20388$debug ||
20389{
20390  tmp= ac_tmp=
20391  trap 'exit_status=$?
20392  : "${ac_tmp:=$tmp}"
20393  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20394' 0
20395  trap 'as_fn_exit 1' 1 2 13 15
20396}
20397# Create a (secure) tmp directory for tmp files.
20398
20399{
20400  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20401  test -d "$tmp"
20402}  ||
20403{
20404  tmp=./conf$$-$RANDOM
20405  (umask 077 && mkdir "$tmp")
20406} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20407ac_tmp=$tmp
20408
20409# Set up the scripts for CONFIG_FILES section.
20410# No need to generate them if there are no CONFIG_FILES.
20411# This happens for instance with `./config.status config.h'.
20412if test -n "$CONFIG_FILES"; then
20413
20414
20415ac_cr=`echo X | tr X '\015'`
20416# On cygwin, bash can eat \r inside `` if the user requested igncr.
20417# But we know of no other shell where ac_cr would be empty at this
20418# point, so we can use a bashism as a fallback.
20419if test "x$ac_cr" = x; then
20420  eval ac_cr=\$\'\\r\'
20421fi
20422ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20423if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20424  ac_cs_awk_cr='\\r'
20425else
20426  ac_cs_awk_cr=$ac_cr
20427fi
20428
20429echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20430_ACEOF
20431
20432
20433{
20434  echo "cat >conf$$subs.awk <<_ACEOF" &&
20435  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20436  echo "_ACEOF"
20437} >conf$$subs.sh ||
20438  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20439ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20440ac_delim='%!_!# '
20441for ac_last_try in false false false false false :; do
20442  . ./conf$$subs.sh ||
20443    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20444
20445  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20446  if test $ac_delim_n = $ac_delim_num; then
20447    break
20448  elif $ac_last_try; then
20449    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20450  else
20451    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20452  fi
20453done
20454rm -f conf$$subs.sh
20455
20456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20457cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20458_ACEOF
20459sed -n '
20460h
20461s/^/S["/; s/!.*/"]=/
20462p
20463g
20464s/^[^!]*!//
20465:repl
20466t repl
20467s/'"$ac_delim"'$//
20468t delim
20469:nl
20470h
20471s/\(.\{148\}\)..*/\1/
20472t more1
20473s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20474p
20475n
20476b repl
20477:more1
20478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20479p
20480g
20481s/.\{148\}//
20482t nl
20483:delim
20484h
20485s/\(.\{148\}\)..*/\1/
20486t more2
20487s/["\\]/\\&/g; s/^/"/; s/$/"/
20488p
20489b
20490:more2
20491s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20492p
20493g
20494s/.\{148\}//
20495t delim
20496' <conf$$subs.awk | sed '
20497/^[^""]/{
20498  N
20499  s/\n//
20500}
20501' >>$CONFIG_STATUS || ac_write_fail=1
20502rm -f conf$$subs.awk
20503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20504_ACAWK
20505cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20506  for (key in S) S_is_set[key] = 1
20507  FS = ""
20508
20509}
20510{
20511  line = $ 0
20512  nfields = split(line, field, "@")
20513  substed = 0
20514  len = length(field[1])
20515  for (i = 2; i < nfields; i++) {
20516    key = field[i]
20517    keylen = length(key)
20518    if (S_is_set[key]) {
20519      value = S[key]
20520      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20521      len += length(value) + length(field[++i])
20522      substed = 1
20523    } else
20524      len += 1 + keylen
20525  }
20526
20527  print line
20528}
20529
20530_ACAWK
20531_ACEOF
20532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20533if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20534  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20535else
20536  cat
20537fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20538  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20539_ACEOF
20540
20541# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20542# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20543# trailing colons and then remove the whole line if VPATH becomes empty
20544# (actually we leave an empty line to preserve line numbers).
20545if test "x$srcdir" = x.; then
20546  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20547h
20548s///
20549s/^/:/
20550s/[	 ]*$/:/
20551s/:\$(srcdir):/:/g
20552s/:\${srcdir}:/:/g
20553s/:@srcdir@:/:/g
20554s/^:*//
20555s/:*$//
20556x
20557s/\(=[	 ]*\).*/\1/
20558G
20559s/\n//
20560s/^[^=]*=[	 ]*$//
20561}'
20562fi
20563
20564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20565fi # test -n "$CONFIG_FILES"
20566
20567# Set up the scripts for CONFIG_HEADERS section.
20568# No need to generate them if there are no CONFIG_HEADERS.
20569# This happens for instance with `./config.status Makefile'.
20570if test -n "$CONFIG_HEADERS"; then
20571cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20572BEGIN {
20573_ACEOF
20574
20575# Transform confdefs.h into an awk script `defines.awk', embedded as
20576# here-document in config.status, that substitutes the proper values into
20577# config.h.in to produce config.h.
20578
20579# Create a delimiter string that does not exist in confdefs.h, to ease
20580# handling of long lines.
20581ac_delim='%!_!# '
20582for ac_last_try in false false :; do
20583  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20584  if test -z "$ac_tt"; then
20585    break
20586  elif $ac_last_try; then
20587    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20588  else
20589    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20590  fi
20591done
20592
20593# For the awk script, D is an array of macro values keyed by name,
20594# likewise P contains macro parameters if any.  Preserve backslash
20595# newline sequences.
20596
20597ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20598sed -n '
20599s/.\{148\}/&'"$ac_delim"'/g
20600t rset
20601:rset
20602s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20603t def
20604d
20605:def
20606s/\\$//
20607t bsnl
20608s/["\\]/\\&/g
20609s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20610D["\1"]=" \3"/p
20611s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20612d
20613:bsnl
20614s/["\\]/\\&/g
20615s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20616D["\1"]=" \3\\\\\\n"\\/p
20617t cont
20618s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20619t cont
20620d
20621:cont
20622n
20623s/.\{148\}/&'"$ac_delim"'/g
20624t clear
20625:clear
20626s/\\$//
20627t bsnlc
20628s/["\\]/\\&/g; s/^/"/; s/$/"/p
20629d
20630:bsnlc
20631s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20632b cont
20633' <confdefs.h | sed '
20634s/'"$ac_delim"'/"\\\
20635"/g' >>$CONFIG_STATUS || ac_write_fail=1
20636
20637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20638  for (key in D) D_is_set[key] = 1
20639  FS = ""
20640}
20641/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20642  line = \$ 0
20643  split(line, arg, " ")
20644  if (arg[1] == "#") {
20645    defundef = arg[2]
20646    mac1 = arg[3]
20647  } else {
20648    defundef = substr(arg[1], 2)
20649    mac1 = arg[2]
20650  }
20651  split(mac1, mac2, "(") #)
20652  macro = mac2[1]
20653  prefix = substr(line, 1, index(line, defundef) - 1)
20654  if (D_is_set[macro]) {
20655    # Preserve the white space surrounding the "#".
20656    print prefix "define", macro P[macro] D[macro]
20657    next
20658  } else {
20659    # Replace #undef with comments.  This is necessary, for example,
20660    # in the case of _POSIX_SOURCE, which is predefined and required
20661    # on some systems where configure will not decide to define it.
20662    if (defundef == "undef") {
20663      print "/*", prefix defundef, macro, "*/"
20664      next
20665    }
20666  }
20667}
20668{ print }
20669_ACAWK
20670_ACEOF
20671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20672  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20673fi # test -n "$CONFIG_HEADERS"
20674
20675
20676eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20677shift
20678for ac_tag
20679do
20680  case $ac_tag in
20681  :[FHLC]) ac_mode=$ac_tag; continue;;
20682  esac
20683  case $ac_mode$ac_tag in
20684  :[FHL]*:*);;
20685  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20686  :[FH]-) ac_tag=-:-;;
20687  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20688  esac
20689  ac_save_IFS=$IFS
20690  IFS=:
20691  set x $ac_tag
20692  IFS=$ac_save_IFS
20693  shift
20694  ac_file=$1
20695  shift
20696
20697  case $ac_mode in
20698  :L) ac_source=$1;;
20699  :[FH])
20700    ac_file_inputs=
20701    for ac_f
20702    do
20703      case $ac_f in
20704      -) ac_f="$ac_tmp/stdin";;
20705      *) # Look for the file first in the build tree, then in the source tree
20706	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20707	 # because $ac_f cannot contain `:'.
20708	 test -f "$ac_f" ||
20709	   case $ac_f in
20710	   [\\/$]*) false;;
20711	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20712	   esac ||
20713	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20714      esac
20715      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20716      as_fn_append ac_file_inputs " '$ac_f'"
20717    done
20718
20719    # Let's still pretend it is `configure' which instantiates (i.e., don't
20720    # use $as_me), people would be surprised to read:
20721    #    /* config.h.  Generated by config.status.  */
20722    configure_input='Generated from '`
20723	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20724	`' by configure.'
20725    if test x"$ac_file" != x-; then
20726      configure_input="$ac_file.  $configure_input"
20727      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20728$as_echo "$as_me: creating $ac_file" >&6;}
20729    fi
20730    # Neutralize special characters interpreted by sed in replacement strings.
20731    case $configure_input in #(
20732    *\&* | *\|* | *\\* )
20733       ac_sed_conf_input=`$as_echo "$configure_input" |
20734       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20735    *) ac_sed_conf_input=$configure_input;;
20736    esac
20737
20738    case $ac_tag in
20739    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20740      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20741    esac
20742    ;;
20743  esac
20744
20745  ac_dir=`$as_dirname -- "$ac_file" ||
20746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20747	 X"$ac_file" : 'X\(//\)[^/]' \| \
20748	 X"$ac_file" : 'X\(//\)$' \| \
20749	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20750$as_echo X"$ac_file" |
20751    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20752	    s//\1/
20753	    q
20754	  }
20755	  /^X\(\/\/\)[^/].*/{
20756	    s//\1/
20757	    q
20758	  }
20759	  /^X\(\/\/\)$/{
20760	    s//\1/
20761	    q
20762	  }
20763	  /^X\(\/\).*/{
20764	    s//\1/
20765	    q
20766	  }
20767	  s/.*/./; q'`
20768  as_dir="$ac_dir"; as_fn_mkdir_p
20769  ac_builddir=.
20770
20771case "$ac_dir" in
20772.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20773*)
20774  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20775  # A ".." for each directory in $ac_dir_suffix.
20776  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20777  case $ac_top_builddir_sub in
20778  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20779  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20780  esac ;;
20781esac
20782ac_abs_top_builddir=$ac_pwd
20783ac_abs_builddir=$ac_pwd$ac_dir_suffix
20784# for backward compatibility:
20785ac_top_builddir=$ac_top_build_prefix
20786
20787case $srcdir in
20788  .)  # We are building in place.
20789    ac_srcdir=.
20790    ac_top_srcdir=$ac_top_builddir_sub
20791    ac_abs_top_srcdir=$ac_pwd ;;
20792  [\\/]* | ?:[\\/]* )  # Absolute name.
20793    ac_srcdir=$srcdir$ac_dir_suffix;
20794    ac_top_srcdir=$srcdir
20795    ac_abs_top_srcdir=$srcdir ;;
20796  *) # Relative name.
20797    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20798    ac_top_srcdir=$ac_top_build_prefix$srcdir
20799    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20800esac
20801ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20802
20803
20804  case $ac_mode in
20805  :F)
20806  #
20807  # CONFIG_FILE
20808  #
20809
20810  case $INSTALL in
20811  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20812  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20813  esac
20814  ac_MKDIR_P=$MKDIR_P
20815  case $MKDIR_P in
20816  [\\/$]* | ?:[\\/]* ) ;;
20817  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20818  esac
20819_ACEOF
20820
20821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20822# If the template does not know about datarootdir, expand it.
20823# FIXME: This hack should be removed a few years after 2.60.
20824ac_datarootdir_hack=; ac_datarootdir_seen=
20825ac_sed_dataroot='
20826/datarootdir/ {
20827  p
20828  q
20829}
20830/@datadir@/p
20831/@docdir@/p
20832/@infodir@/p
20833/@localedir@/p
20834/@mandir@/p'
20835case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20836*datarootdir*) ac_datarootdir_seen=yes;;
20837*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20838  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20839$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20840_ACEOF
20841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20842  ac_datarootdir_hack='
20843  s&@datadir@&$datadir&g
20844  s&@docdir@&$docdir&g
20845  s&@infodir@&$infodir&g
20846  s&@localedir@&$localedir&g
20847  s&@mandir@&$mandir&g
20848  s&\\\${datarootdir}&$datarootdir&g' ;;
20849esac
20850_ACEOF
20851
20852# Neutralize VPATH when `$srcdir' = `.'.
20853# Shell code in configure.ac might set extrasub.
20854# FIXME: do we really want to maintain this feature?
20855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20856ac_sed_extra="$ac_vpsub
20857$extrasub
20858_ACEOF
20859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20860:t
20861/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20862s|@configure_input@|$ac_sed_conf_input|;t t
20863s&@top_builddir@&$ac_top_builddir_sub&;t t
20864s&@top_build_prefix@&$ac_top_build_prefix&;t t
20865s&@srcdir@&$ac_srcdir&;t t
20866s&@abs_srcdir@&$ac_abs_srcdir&;t t
20867s&@top_srcdir@&$ac_top_srcdir&;t t
20868s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20869s&@builddir@&$ac_builddir&;t t
20870s&@abs_builddir@&$ac_abs_builddir&;t t
20871s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20872s&@INSTALL@&$ac_INSTALL&;t t
20873s&@MKDIR_P@&$ac_MKDIR_P&;t t
20874$ac_datarootdir_hack
20875"
20876eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20877  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20878
20879test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20880  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20881  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20882      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20883  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20884which seems to be undefined.  Please make sure it is defined" >&5
20885$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20886which seems to be undefined.  Please make sure it is defined" >&2;}
20887
20888  rm -f "$ac_tmp/stdin"
20889  case $ac_file in
20890  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20891  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20892  esac \
20893  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20894 ;;
20895  :H)
20896  #
20897  # CONFIG_HEADER
20898  #
20899  if test x"$ac_file" != x-; then
20900    {
20901      $as_echo "/* $configure_input  */" \
20902      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20903    } >"$ac_tmp/config.h" \
20904      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20905    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20906      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20907$as_echo "$as_me: $ac_file is unchanged" >&6;}
20908    else
20909      rm -f "$ac_file"
20910      mv "$ac_tmp/config.h" "$ac_file" \
20911	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20912    fi
20913  else
20914    $as_echo "/* $configure_input  */" \
20915      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20916      || as_fn_error $? "could not create -" "$LINENO" 5
20917  fi
20918# Compute "$ac_file"'s index in $config_headers.
20919_am_arg="$ac_file"
20920_am_stamp_count=1
20921for _am_header in $config_headers :; do
20922  case $_am_header in
20923    $_am_arg | $_am_arg:* )
20924      break ;;
20925    * )
20926      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20927  esac
20928done
20929echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20930$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20931	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20932	 X"$_am_arg" : 'X\(//\)$' \| \
20933	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20934$as_echo X"$_am_arg" |
20935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20936	    s//\1/
20937	    q
20938	  }
20939	  /^X\(\/\/\)[^/].*/{
20940	    s//\1/
20941	    q
20942	  }
20943	  /^X\(\/\/\)$/{
20944	    s//\1/
20945	    q
20946	  }
20947	  /^X\(\/\).*/{
20948	    s//\1/
20949	    q
20950	  }
20951	  s/.*/./; q'`/stamp-h$_am_stamp_count
20952 ;;
20953
20954  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20955$as_echo "$as_me: executing $ac_file commands" >&6;}
20956 ;;
20957  esac
20958
20959
20960  case $ac_file$ac_mode in
20961    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20962  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20963  # are listed without --file.  Let's play safe and only enable the eval
20964  # if we detect the quoting.
20965  case $CONFIG_FILES in
20966  *\'*) eval set x "$CONFIG_FILES" ;;
20967  *)   set x $CONFIG_FILES ;;
20968  esac
20969  shift
20970  for mf
20971  do
20972    # Strip MF so we end up with the name of the file.
20973    mf=`echo "$mf" | sed -e 's/:.*$//'`
20974    # Check whether this is an Automake generated Makefile or not.
20975    # We used to match only the files named `Makefile.in', but
20976    # some people rename them; so instead we look at the file content.
20977    # Grep'ing the first line is not enough: some people post-process
20978    # each Makefile.in and add a new line on top of each file to say so.
20979    # Grep'ing the whole file is not good either: AIX grep has a line
20980    # limit of 2048, but all sed's we know have understand at least 4000.
20981    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20982      dirpart=`$as_dirname -- "$mf" ||
20983$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20984	 X"$mf" : 'X\(//\)[^/]' \| \
20985	 X"$mf" : 'X\(//\)$' \| \
20986	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20987$as_echo X"$mf" |
20988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20989	    s//\1/
20990	    q
20991	  }
20992	  /^X\(\/\/\)[^/].*/{
20993	    s//\1/
20994	    q
20995	  }
20996	  /^X\(\/\/\)$/{
20997	    s//\1/
20998	    q
20999	  }
21000	  /^X\(\/\).*/{
21001	    s//\1/
21002	    q
21003	  }
21004	  s/.*/./; q'`
21005    else
21006      continue
21007    fi
21008    # Extract the definition of DEPDIR, am__include, and am__quote
21009    # from the Makefile without running `make'.
21010    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21011    test -z "$DEPDIR" && continue
21012    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21013    test -z "am__include" && continue
21014    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21015    # When using ansi2knr, U may be empty or an underscore; expand it
21016    U=`sed -n 's/^U = //p' < "$mf"`
21017    # Find all dependency output files, they are included files with
21018    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21019    # simplest approach to changing $(DEPDIR) to its actual value in the
21020    # expansion.
21021    for file in `sed -n "
21022      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21023	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21024      # Make sure the directory exists.
21025      test -f "$dirpart/$file" && continue
21026      fdir=`$as_dirname -- "$file" ||
21027$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21028	 X"$file" : 'X\(//\)[^/]' \| \
21029	 X"$file" : 'X\(//\)$' \| \
21030	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21031$as_echo X"$file" |
21032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21033	    s//\1/
21034	    q
21035	  }
21036	  /^X\(\/\/\)[^/].*/{
21037	    s//\1/
21038	    q
21039	  }
21040	  /^X\(\/\/\)$/{
21041	    s//\1/
21042	    q
21043	  }
21044	  /^X\(\/\).*/{
21045	    s//\1/
21046	    q
21047	  }
21048	  s/.*/./; q'`
21049      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21050      # echo "creating $dirpart/$file"
21051      echo '# dummy' > "$dirpart/$file"
21052    done
21053  done
21054}
21055 ;;
21056    "po-directories":C)
21057    for ac_file in $CONFIG_FILES; do
21058      # Support "outfile[:infile[:infile...]]"
21059      case "$ac_file" in
21060        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21061      esac
21062      # PO directories have a Makefile.in generated from Makefile.in.in.
21063      case "$ac_file" in */Makefile.in)
21064        # Adjust a relative srcdir.
21065        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21066        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21067        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21068        # In autoconf-2.13 it is called $ac_given_srcdir.
21069        # In autoconf-2.50 it is called $srcdir.
21070        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21071        case "$ac_given_srcdir" in
21072          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21073          /*) top_srcdir="$ac_given_srcdir" ;;
21074          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21075        esac
21076        # Treat a directory as a PO directory if and only if it has a
21077        # POTFILES.in file. This allows packages to have multiple PO
21078        # directories under different names or in different locations.
21079        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21080          rm -f "$ac_dir/POTFILES"
21081          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21082          gt_tab=`printf '\t'`
21083          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21084          POMAKEFILEDEPS="POTFILES.in"
21085          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21086          # on $ac_dir but don't depend on user-specified configuration
21087          # parameters.
21088          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21089            # The LINGUAS file contains the set of available languages.
21090            if test -n "$OBSOLETE_ALL_LINGUAS"; then
21091              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21092            fi
21093            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21094            # Hide the ALL_LINGUAS assignment from automake < 1.5.
21095            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21096            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21097          else
21098            # The set of available languages was given in configure.in.
21099            # Hide the ALL_LINGUAS assignment from automake < 1.5.
21100            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21101          fi
21102          # Compute POFILES
21103          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21104          # Compute UPDATEPOFILES
21105          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21106          # Compute DUMMYPOFILES
21107          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21108          # Compute GMOFILES
21109          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21110          case "$ac_given_srcdir" in
21111            .) srcdirpre= ;;
21112            *) srcdirpre='$(srcdir)/' ;;
21113          esac
21114          POFILES=
21115          UPDATEPOFILES=
21116          DUMMYPOFILES=
21117          GMOFILES=
21118          for lang in $ALL_LINGUAS; do
21119            POFILES="$POFILES $srcdirpre$lang.po"
21120            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21121            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21122            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21123          done
21124          # CATALOGS depends on both $ac_dir and the user's LINGUAS
21125          # environment variable.
21126          INST_LINGUAS=
21127          if test -n "$ALL_LINGUAS"; then
21128            for presentlang in $ALL_LINGUAS; do
21129              useit=no
21130              if test "%UNSET%" != "$LINGUAS"; then
21131                desiredlanguages="$LINGUAS"
21132              else
21133                desiredlanguages="$ALL_LINGUAS"
21134              fi
21135              for desiredlang in $desiredlanguages; do
21136                # Use the presentlang catalog if desiredlang is
21137                #   a. equal to presentlang, or
21138                #   b. a variant of presentlang (because in this case,
21139                #      presentlang can be used as a fallback for messages
21140                #      which are not translated in the desiredlang catalog).
21141                case "$desiredlang" in
21142                  "$presentlang"*) useit=yes;;
21143                esac
21144              done
21145              if test $useit = yes; then
21146                INST_LINGUAS="$INST_LINGUAS $presentlang"
21147              fi
21148            done
21149          fi
21150          CATALOGS=
21151          if test -n "$INST_LINGUAS"; then
21152            for lang in $INST_LINGUAS; do
21153              CATALOGS="$CATALOGS $lang.gmo"
21154            done
21155          fi
21156          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21157          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21158          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21159            if test -f "$f"; then
21160              case "$f" in
21161                *.orig | *.bak | *~) ;;
21162                *) cat "$f" >> "$ac_dir/Makefile" ;;
21163              esac
21164            fi
21165          done
21166        fi
21167        ;;
21168      esac
21169    done ;;
21170    "po/stamp-it":C)
21171    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21172       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21173    fi
21174    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21175    >"po/stamp-it.tmp"
21176    sed '/^#/d
21177	 s/^[[].*] *//
21178	 /^[ 	]*$/d
21179	'"s|^|	$ac_top_srcdir/|" \
21180      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21181
21182    sed '/^POTFILES =/,/[^\\]$/ {
21183		/^POTFILES =/!d
21184		r po/POTFILES
21185	  }
21186	 ' "po/Makefile.in" >"po/Makefile"
21187    rm -f "po/Makefile.tmp"
21188    mv "po/stamp-it.tmp" "po/stamp-it"
21189   ;;
21190
21191  esac
21192done # for ac_tag
21193
21194
21195as_fn_exit 0
21196_ACEOF
21197ac_clean_files=$ac_clean_files_save
21198
21199test $ac_write_fail = 0 ||
21200  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21201
21202
21203# configure is writing to config.log, and then calls config.status.
21204# config.status does its own redirection, appending to config.log.
21205# Unfortunately, on DOS this fails, as config.log is still kept open
21206# by configure, so config.status won't be able to write to it; its
21207# output is simply discarded.  So we exec the FD to /dev/null,
21208# effectively closing config.log, so it can be properly (re)opened and
21209# appended to by config.status.  When coming back to configure, we
21210# need to make the FD available again.
21211if test "$no_create" != yes; then
21212  ac_cs_success=:
21213  ac_config_status_args=
21214  test "$silent" = yes &&
21215    ac_config_status_args="$ac_config_status_args --quiet"
21216  exec 5>/dev/null
21217  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21218  exec 5>>config.log
21219  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21220  # would make configure fail if this is the last instruction.
21221  $ac_cs_success || as_fn_exit 1
21222fi
21223if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21224  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21225$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21226fi
21227
21228
21229with_gui=`echo $with_gui`
21230with_printer=`echo $with_printer`
21231with_exporters=`echo $with_exporters | sed 's/,/ /g'`
21232
21233expandedXDGDATADIR=`eval "echo $XDGDATADIR"`
21234expandedKDEDATADIR=`eval "echo $KDEDATADIR"`
21235
21236{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
21237** Configuration summary for $PACKAGE $VERSION:
21238
21239   Cross Compiling:          $cross_compiling
21240   CC:                       $CC
21241   CXX:                      $CXX
21242   CPPFLAGS:                 $CPPFLAGS
21243   CFLAGS:                   $CFLAGS
21244   CXXFLAGS:                 $CXXFLAGS
21245   LIBS:                     $LIBS
21246   PCB:                      $PCB
21247
21248   GUI:                      $with_gui
21249   Printer:                  $with_printer
21250   Exporters:                $with_exporters
21251   Coordinate type:          $COORD_TYPE
21252   Source tree distribution: $pcb_sources
21253   Build documentation:      $docs_yesno
21254   Build toporouter:         $enable_toporouter
21255   Enable toporouter output: $enable_toporouter_output
21256   xdg data directory:       $expandedXDGDATADIR
21257   KDE data directory:       $expandedKDEDATADIR
21258   dmalloc debugging:        $with_dmalloc
21259   ElectricFence debugging:  $with_efence
21260   Regression tests enabled: $have_test_tools
21261" >&5
21262$as_echo "
21263** Configuration summary for $PACKAGE $VERSION:
21264
21265   Cross Compiling:          $cross_compiling
21266   CC:                       $CC
21267   CXX:                      $CXX
21268   CPPFLAGS:                 $CPPFLAGS
21269   CFLAGS:                   $CFLAGS
21270   CXXFLAGS:                 $CXXFLAGS
21271   LIBS:                     $LIBS
21272   PCB:                      $PCB
21273
21274   GUI:                      $with_gui
21275   Printer:                  $with_printer
21276   Exporters:                $with_exporters
21277   Coordinate type:          $COORD_TYPE
21278   Source tree distribution: $pcb_sources
21279   Build documentation:      $docs_yesno
21280   Build toporouter:         $enable_toporouter
21281   Enable toporouter output: $enable_toporouter_output
21282   xdg data directory:       $expandedXDGDATADIR
21283   KDE data directory:       $expandedKDEDATADIR
21284   dmalloc debugging:        $with_dmalloc
21285   ElectricFence debugging:  $with_efence
21286   Regression tests enabled: $have_test_tools
21287" >&6; }
21288