1#! /bin/sh
2# From configure.in Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69.
5#
6#
7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19  emulate sh
20  NULLCMD=:
21  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in #(
27  *posix*) :
28    set -o posix ;; #(
29  *) :
30     ;;
31esac
32fi
33
34
35as_nl='
36'
37export as_nl
38# Printing a long string crashes Solaris 7 /usr/bin/printf.
39as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42# Prefer a ksh shell builtin over an external printf program on Solaris,
43# but without wasting forks for bash or zsh.
44if test -z "$BASH_VERSION$ZSH_VERSION" \
45    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46  as_echo='print -r --'
47  as_echo_n='print -rn --'
48elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='printf %s\n'
50  as_echo_n='printf %s'
51else
52  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54    as_echo_n='/usr/ucb/echo -n'
55  else
56    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57    as_echo_n_body='eval
58      arg=$1;
59      case $arg in #(
60      *"$as_nl"*)
61	expr "X$arg" : "X\\(.*\\)$as_nl";
62	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63      esac;
64      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65    '
66    export as_echo_n_body
67    as_echo_n='sh -c $as_echo_n_body as_echo'
68  fi
69  export as_echo_body
70  as_echo='sh -c $as_echo_body as_echo'
71fi
72
73# The user is always right.
74if test "${PATH_SEPARATOR+set}" != set; then
75  PATH_SEPARATOR=:
76  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78      PATH_SEPARATOR=';'
79  }
80fi
81
82
83# IFS
84# We need space, tab and new line, in precisely that order.  Quoting is
85# there to prevent editors from complaining about space-tab.
86# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87# splitting by setting IFS to empty value.)
88IFS=" ""	$as_nl"
89
90# Find who we are.  Look in the path if we contain no directory separator.
91as_myself=
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136# Use a proper internal environment variable to ensure we don't fall
137  # into an infinite loop, continuously re-executing ourselves.
138  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139    _as_can_reexec=no; export _as_can_reexec;
140    # We cannot yet assume a decent shell, so we have to provide a
141# neutralization value for shells without unset; and this also
142# works around shells that cannot unset nonexistent variables.
143# Preserve -v and -x to the replacement shell.
144BASH_ENV=/dev/null
145ENV=/dev/null
146(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147case $- in # ((((
148  *v*x* | *x*v* ) as_opts=-vx ;;
149  *v* ) as_opts=-v ;;
150  *x* ) as_opts=-x ;;
151  * ) as_opts= ;;
152esac
153exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154# Admittedly, this is quite paranoid, since all the known shells bail
155# out after a failed `exec'.
156$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157as_fn_exit 255
158  fi
159  # We don't want this to propagate to other subprocesses.
160          { _as_can_reexec=; unset _as_can_reexec;}
161if test "x$CONFIG_SHELL" = x; then
162  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163  emulate sh
164  NULLCMD=:
165  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166  # is contrary to our usage.  Disable this feature.
167  alias -g '\${1+\"\$@\"}'='\"\$@\"'
168  setopt NO_GLOB_SUBST
169else
170  case \`(set -o) 2>/dev/null\` in #(
171  *posix*) :
172    set -o posix ;; #(
173  *) :
174     ;;
175esac
176fi
177"
178  as_required="as_fn_return () { (exit \$1); }
179as_fn_success () { as_fn_return 0; }
180as_fn_failure () { as_fn_return 1; }
181as_fn_ret_success () { return 0; }
182as_fn_ret_failure () { return 1; }
183
184exitcode=0
185as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191else
192  exitcode=1; echo positional parameters were not saved.
193fi
194test x\$exitcode = x0 || exit 1
195test -x / || exit 1"
196  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="src/glib.ads"
586ac_subst_vars='LTLIBOBJS
587LIBOBJS
588EXEC_PREFIX
589BUILD_TYPE
590GTKADA_MICRO_VERSION
591GTKADA_MINOR_VERSION
592GTKADA_MAJOR_VERSION
593GTKADA_VERSION
594HAVE_GNOME
595GNOME_STATIC_LIBS
596GNOME_LIBS
597GNOME_CFLAGS
598HAVE_OPENGL
599GL_CFLAGS
600GL_LIBS
601HAVE_GETTEXT
602GETTEXT_INTL
603USE_NLS
604DEFINE_UNDERLINE_ERROR
605GTK_LIBS_FOR_GNATMAKE
606GTK_LIBS
607GTK_CFLAGS
608GTK_PREFIX
609PKG_CONFIG
610RANLIB
611INSTALL_DATA
612INSTALL_SCRIPT
613INSTALL_PROGRAM
614SET_MAKE
615PERL
616GNATMAKE
617OBJEXT
618EXEEXT
619ac_ct_CC
620CPPFLAGS
621LDFLAGS
622CFLAGS
623CC
624TARGET_LFLAGS
625FPIC
626SO_OPTS
627SO_EXT
628BUILD_SHARED
629BUILD_STATIC
630OS_SPECIFIC_LINK_OPTIONS
631DEFAULT_LIBRARY_TYPE
632target_os
633target_vendor
634target_cpu
635target
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644target_alias
645host_alias
646build_alias
647LIBS
648ECHO_T
649ECHO_N
650ECHO_C
651DEFS
652mandir
653localedir
654libdir
655psdir
656pdfdir
657dvidir
658htmldir
659infodir
660docdir
661oldincludedir
662includedir
663localstatedir
664sharedstatedir
665sysconfdir
666datadir
667datarootdir
668libexecdir
669sbindir
670bindir
671program_transform_name
672prefix
673exec_prefix
674PACKAGE_URL
675PACKAGE_BUGREPORT
676PACKAGE_STRING
677PACKAGE_VERSION
678PACKAGE_TARNAME
679PACKAGE_NAME
680PATH_SEPARATOR
681SHELL'
682ac_subst_files=''
683ac_user_opts='
684enable_option_checking
685enable_static
686enable_shared
687enable_build
688enable_nls
689with_GL
690with_GL_prefix
691'
692      ac_precious_vars='build_alias
693host_alias
694target_alias
695CC
696CFLAGS
697LDFLAGS
698LIBS
699CPPFLAGS'
700
701
702# Initialize some variables set by options.
703ac_init_help=
704ac_init_version=false
705ac_unrecognized_opts=
706ac_unrecognized_sep=
707# The variables have the same names as the options, with
708# dashes changed to underlines.
709cache_file=/dev/null
710exec_prefix=NONE
711no_create=
712no_recursion=
713prefix=NONE
714program_prefix=NONE
715program_suffix=NONE
716program_transform_name=s,x,x,
717silent=
718site=
719srcdir=
720verbose=
721x_includes=NONE
722x_libraries=NONE
723
724# Installation directory options.
725# These are left unexpanded so users can "make install exec_prefix=/foo"
726# and all the variables that are supposed to be based on exec_prefix
727# by default will actually change.
728# Use braces instead of parens because sh, perl, etc. also accept them.
729# (The list follows the same order as the GNU Coding Standards.)
730bindir='${exec_prefix}/bin'
731sbindir='${exec_prefix}/sbin'
732libexecdir='${exec_prefix}/libexec'
733datarootdir='${prefix}/share'
734datadir='${datarootdir}'
735sysconfdir='${prefix}/etc'
736sharedstatedir='${prefix}/com'
737localstatedir='${prefix}/var'
738includedir='${prefix}/include'
739oldincludedir='/usr/include'
740docdir='${datarootdir}/doc/${PACKAGE}'
741infodir='${datarootdir}/info'
742htmldir='${docdir}'
743dvidir='${docdir}'
744pdfdir='${docdir}'
745psdir='${docdir}'
746libdir='${exec_prefix}/lib'
747localedir='${datarootdir}/locale'
748mandir='${datarootdir}/man'
749
750ac_prev=
751ac_dashdash=
752for ac_option
753do
754  # If the previous option needs an argument, assign it.
755  if test -n "$ac_prev"; then
756    eval $ac_prev=\$ac_option
757    ac_prev=
758    continue
759  fi
760
761  case $ac_option in
762  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763  *=)   ac_optarg= ;;
764  *)    ac_optarg=yes ;;
765  esac
766
767  # Accept the important Cygnus configure options, so we can diagnose typos.
768
769  case $ac_dashdash$ac_option in
770  --)
771    ac_dashdash=yes ;;
772
773  -bindir | --bindir | --bindi | --bind | --bin | --bi)
774    ac_prev=bindir ;;
775  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776    bindir=$ac_optarg ;;
777
778  -build | --build | --buil | --bui | --bu)
779    ac_prev=build_alias ;;
780  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781    build_alias=$ac_optarg ;;
782
783  -cache-file | --cache-file | --cache-fil | --cache-fi \
784  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785    ac_prev=cache_file ;;
786  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788    cache_file=$ac_optarg ;;
789
790  --config-cache | -C)
791    cache_file=config.cache ;;
792
793  -datadir | --datadir | --datadi | --datad)
794    ac_prev=datadir ;;
795  -datadir=* | --datadir=* | --datadi=* | --datad=*)
796    datadir=$ac_optarg ;;
797
798  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799  | --dataroo | --dataro | --datar)
800    ac_prev=datarootdir ;;
801  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803    datarootdir=$ac_optarg ;;
804
805  -disable-* | --disable-*)
806    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809      as_fn_error $? "invalid feature name: $ac_useropt"
810    ac_useropt_orig=$ac_useropt
811    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812    case $ac_user_opts in
813      *"
814"enable_$ac_useropt"
815"*) ;;
816      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817	 ac_unrecognized_sep=', ';;
818    esac
819    eval enable_$ac_useropt=no ;;
820
821  -docdir | --docdir | --docdi | --doc | --do)
822    ac_prev=docdir ;;
823  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824    docdir=$ac_optarg ;;
825
826  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827    ac_prev=dvidir ;;
828  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829    dvidir=$ac_optarg ;;
830
831  -enable-* | --enable-*)
832    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833    # Reject names that are not valid shell variable names.
834    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835      as_fn_error $? "invalid feature name: $ac_useropt"
836    ac_useropt_orig=$ac_useropt
837    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838    case $ac_user_opts in
839      *"
840"enable_$ac_useropt"
841"*) ;;
842      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843	 ac_unrecognized_sep=', ';;
844    esac
845    eval enable_$ac_useropt=\$ac_optarg ;;
846
847  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849  | --exec | --exe | --ex)
850    ac_prev=exec_prefix ;;
851  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853  | --exec=* | --exe=* | --ex=*)
854    exec_prefix=$ac_optarg ;;
855
856  -gas | --gas | --ga | --g)
857    # Obsolete; use --with-gas.
858    with_gas=yes ;;
859
860  -help | --help | --hel | --he | -h)
861    ac_init_help=long ;;
862  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863    ac_init_help=recursive ;;
864  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865    ac_init_help=short ;;
866
867  -host | --host | --hos | --ho)
868    ac_prev=host_alias ;;
869  -host=* | --host=* | --hos=* | --ho=*)
870    host_alias=$ac_optarg ;;
871
872  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873    ac_prev=htmldir ;;
874  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875  | --ht=*)
876    htmldir=$ac_optarg ;;
877
878  -includedir | --includedir | --includedi | --included | --include \
879  | --includ | --inclu | --incl | --inc)
880    ac_prev=includedir ;;
881  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882  | --includ=* | --inclu=* | --incl=* | --inc=*)
883    includedir=$ac_optarg ;;
884
885  -infodir | --infodir | --infodi | --infod | --info | --inf)
886    ac_prev=infodir ;;
887  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888    infodir=$ac_optarg ;;
889
890  -libdir | --libdir | --libdi | --libd)
891    ac_prev=libdir ;;
892  -libdir=* | --libdir=* | --libdi=* | --libd=*)
893    libdir=$ac_optarg ;;
894
895  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896  | --libexe | --libex | --libe)
897    ac_prev=libexecdir ;;
898  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899  | --libexe=* | --libex=* | --libe=*)
900    libexecdir=$ac_optarg ;;
901
902  -localedir | --localedir | --localedi | --localed | --locale)
903    ac_prev=localedir ;;
904  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905    localedir=$ac_optarg ;;
906
907  -localstatedir | --localstatedir | --localstatedi | --localstated \
908  | --localstate | --localstat | --localsta | --localst | --locals)
909    ac_prev=localstatedir ;;
910  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912    localstatedir=$ac_optarg ;;
913
914  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915    ac_prev=mandir ;;
916  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917    mandir=$ac_optarg ;;
918
919  -nfp | --nfp | --nf)
920    # Obsolete; use --without-fp.
921    with_fp=no ;;
922
923  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924  | --no-cr | --no-c | -n)
925    no_create=yes ;;
926
927  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929    no_recursion=yes ;;
930
931  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933  | --oldin | --oldi | --old | --ol | --o)
934    ac_prev=oldincludedir ;;
935  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938    oldincludedir=$ac_optarg ;;
939
940  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941    ac_prev=prefix ;;
942  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943    prefix=$ac_optarg ;;
944
945  -program-prefix | --program-prefix | --program-prefi | --program-pref \
946  | --program-pre | --program-pr | --program-p)
947    ac_prev=program_prefix ;;
948  -program-prefix=* | --program-prefix=* | --program-prefi=* \
949  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950    program_prefix=$ac_optarg ;;
951
952  -program-suffix | --program-suffix | --program-suffi | --program-suff \
953  | --program-suf | --program-su | --program-s)
954    ac_prev=program_suffix ;;
955  -program-suffix=* | --program-suffix=* | --program-suffi=* \
956  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957    program_suffix=$ac_optarg ;;
958
959  -program-transform-name | --program-transform-name \
960  | --program-transform-nam | --program-transform-na \
961  | --program-transform-n | --program-transform- \
962  | --program-transform | --program-transfor \
963  | --program-transfo | --program-transf \
964  | --program-trans | --program-tran \
965  | --progr-tra | --program-tr | --program-t)
966    ac_prev=program_transform_name ;;
967  -program-transform-name=* | --program-transform-name=* \
968  | --program-transform-nam=* | --program-transform-na=* \
969  | --program-transform-n=* | --program-transform-=* \
970  | --program-transform=* | --program-transfor=* \
971  | --program-transfo=* | --program-transf=* \
972  | --program-trans=* | --program-tran=* \
973  | --progr-tra=* | --program-tr=* | --program-t=*)
974    program_transform_name=$ac_optarg ;;
975
976  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977    ac_prev=pdfdir ;;
978  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979    pdfdir=$ac_optarg ;;
980
981  -psdir | --psdir | --psdi | --psd | --ps)
982    ac_prev=psdir ;;
983  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984    psdir=$ac_optarg ;;
985
986  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987  | -silent | --silent | --silen | --sile | --sil)
988    silent=yes ;;
989
990  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991    ac_prev=sbindir ;;
992  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993  | --sbi=* | --sb=*)
994    sbindir=$ac_optarg ;;
995
996  -sharedstatedir | --sharedstatedir | --sharedstatedi \
997  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998  | --sharedst | --shareds | --shared | --share | --shar \
999  | --sha | --sh)
1000    ac_prev=sharedstatedir ;;
1001  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004  | --sha=* | --sh=*)
1005    sharedstatedir=$ac_optarg ;;
1006
1007  -site | --site | --sit)
1008    ac_prev=site ;;
1009  -site=* | --site=* | --sit=*)
1010    site=$ac_optarg ;;
1011
1012  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013    ac_prev=srcdir ;;
1014  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015    srcdir=$ac_optarg ;;
1016
1017  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018  | --syscon | --sysco | --sysc | --sys | --sy)
1019    ac_prev=sysconfdir ;;
1020  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022    sysconfdir=$ac_optarg ;;
1023
1024  -target | --target | --targe | --targ | --tar | --ta | --t)
1025    ac_prev=target_alias ;;
1026  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027    target_alias=$ac_optarg ;;
1028
1029  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030    verbose=yes ;;
1031
1032  -version | --version | --versio | --versi | --vers | -V)
1033    ac_init_version=: ;;
1034
1035  -with-* | --with-*)
1036    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037    # Reject names that are not valid shell variable names.
1038    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039      as_fn_error $? "invalid package name: $ac_useropt"
1040    ac_useropt_orig=$ac_useropt
1041    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042    case $ac_user_opts in
1043      *"
1044"with_$ac_useropt"
1045"*) ;;
1046      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047	 ac_unrecognized_sep=', ';;
1048    esac
1049    eval with_$ac_useropt=\$ac_optarg ;;
1050
1051  -without-* | --without-*)
1052    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055      as_fn_error $? "invalid package name: $ac_useropt"
1056    ac_useropt_orig=$ac_useropt
1057    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058    case $ac_user_opts in
1059      *"
1060"with_$ac_useropt"
1061"*) ;;
1062      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063	 ac_unrecognized_sep=', ';;
1064    esac
1065    eval with_$ac_useropt=no ;;
1066
1067  --x)
1068    # Obsolete; use --with-x.
1069    with_x=yes ;;
1070
1071  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072  | --x-incl | --x-inc | --x-in | --x-i)
1073    ac_prev=x_includes ;;
1074  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076    x_includes=$ac_optarg ;;
1077
1078  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080    ac_prev=x_libraries ;;
1081  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083    x_libraries=$ac_optarg ;;
1084
1085  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086Try \`$0 --help' for more information"
1087    ;;
1088
1089  *=*)
1090    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091    # Reject names that are not valid shell variable names.
1092    case $ac_envvar in #(
1093      '' | [0-9]* | *[!_$as_cr_alnum]* )
1094      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095    esac
1096    eval $ac_envvar=\$ac_optarg
1097    export $ac_envvar ;;
1098
1099  *)
1100    # FIXME: should be removed in autoconf 3.0.
1101    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105    ;;
1106
1107  esac
1108done
1109
1110if test -n "$ac_prev"; then
1111  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112  as_fn_error $? "missing argument to $ac_option"
1113fi
1114
1115if test -n "$ac_unrecognized_opts"; then
1116  case $enable_option_checking in
1117    no) ;;
1118    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120  esac
1121fi
1122
1123# Check all directory arguments for consistency.
1124for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125		datadir sysconfdir sharedstatedir localstatedir includedir \
1126		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127		libdir localedir mandir
1128do
1129  eval ac_val=\$$ac_var
1130  # Remove trailing slashes.
1131  case $ac_val in
1132    */ )
1133      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134      eval $ac_var=\$ac_val;;
1135  esac
1136  # Be sure to have absolute directory names.
1137  case $ac_val in
1138    [\\/$]* | ?:[\\/]* )  continue;;
1139    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140  esac
1141  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142done
1143
1144# There might be people who depend on the old broken behavior: `$host'
1145# used to hold the argument of --host etc.
1146# FIXME: To remove some day.
1147build=$build_alias
1148host=$host_alias
1149target=$target_alias
1150
1151# FIXME: To remove some day.
1152if test "x$host_alias" != x; then
1153  if test "x$build_alias" = x; then
1154    cross_compiling=maybe
1155  elif test "x$build_alias" != "x$host_alias"; then
1156    cross_compiling=yes
1157  fi
1158fi
1159
1160ac_tool_prefix=
1161test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163test "$silent" = yes && exec 6>/dev/null
1164
1165
1166ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167ac_ls_di=`ls -di .` &&
1168ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169  as_fn_error $? "working directory cannot be determined"
1170test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171  as_fn_error $? "pwd does not report name of working directory"
1172
1173
1174# Find the source files, if location was not specified.
1175if test -z "$srcdir"; then
1176  ac_srcdir_defaulted=yes
1177  # Try the directory containing this script, then the parent directory.
1178  ac_confdir=`$as_dirname -- "$as_myself" ||
1179$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180	 X"$as_myself" : 'X\(//\)[^/]' \| \
1181	 X"$as_myself" : 'X\(//\)$' \| \
1182	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1183$as_echo X"$as_myself" |
1184    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185	    s//\1/
1186	    q
1187	  }
1188	  /^X\(\/\/\)[^/].*/{
1189	    s//\1/
1190	    q
1191	  }
1192	  /^X\(\/\/\)$/{
1193	    s//\1/
1194	    q
1195	  }
1196	  /^X\(\/\).*/{
1197	    s//\1/
1198	    q
1199	  }
1200	  s/.*/./; q'`
1201  srcdir=$ac_confdir
1202  if test ! -r "$srcdir/$ac_unique_file"; then
1203    srcdir=..
1204  fi
1205else
1206  ac_srcdir_defaulted=no
1207fi
1208if test ! -r "$srcdir/$ac_unique_file"; then
1209  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1211fi
1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1215	pwd)`
1216# When building in place, set srcdir=.
1217if test "$ac_abs_confdir" = "$ac_pwd"; then
1218  srcdir=.
1219fi
1220# Remove unnecessary trailing slashes from srcdir.
1221# Double slashes in file names in object file debugging info
1222# mess up M-x gdb in Emacs.
1223case $srcdir in
1224*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225esac
1226for ac_var in $ac_precious_vars; do
1227  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228  eval ac_env_${ac_var}_value=\$${ac_var}
1229  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1231done
1232
1233#
1234# Report the --help message.
1235#
1236if test "$ac_init_help" = "long"; then
1237  # Omit some internal or obsolete options to make the list less imposing.
1238  # This message is too long to be a string in the A/UX 3.1 sh.
1239  cat <<_ACEOF
1240\`configure' configures this package to adapt to many kinds of systems.
1241
1242Usage: $0 [OPTION]... [VAR=VALUE]...
1243
1244To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245VAR=VALUE.  See below for descriptions of some of the useful variables.
1246
1247Defaults for the options are specified in brackets.
1248
1249Configuration:
1250  -h, --help              display this help and exit
1251      --help=short        display options specific to this package
1252      --help=recursive    display the short help of all the included packages
1253  -V, --version           display version information and exit
1254  -q, --quiet, --silent   do not print \`checking ...' messages
1255      --cache-file=FILE   cache test results in FILE [disabled]
1256  -C, --config-cache      alias for \`--cache-file=config.cache'
1257  -n, --no-create         do not create output files
1258      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1259
1260Installation directories:
1261  --prefix=PREFIX         install architecture-independent files in PREFIX
1262                          [$ac_default_prefix]
1263  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1264                          [PREFIX]
1265
1266By default, \`make install' will install all the files in
1267\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1268an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269for instance \`--prefix=\$HOME'.
1270
1271For better control, use the options below.
1272
1273Fine tuning of the installation directories:
1274  --bindir=DIR            user executables [EPREFIX/bin]
1275  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1276  --libexecdir=DIR        program executables [EPREFIX/libexec]
1277  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1278  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1279  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1280  --libdir=DIR            object code libraries [EPREFIX/lib]
1281  --includedir=DIR        C header files [PREFIX/include]
1282  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1283  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1284  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1285  --infodir=DIR           info documentation [DATAROOTDIR/info]
1286  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1287  --mandir=DIR            man documentation [DATAROOTDIR/man]
1288  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1289  --htmldir=DIR           html documentation [DOCDIR]
1290  --dvidir=DIR            dvi documentation [DOCDIR]
1291  --pdfdir=DIR            pdf documentation [DOCDIR]
1292  --psdir=DIR             ps documentation [DOCDIR]
1293_ACEOF
1294
1295  cat <<\_ACEOF
1296
1297System types:
1298  --build=BUILD     configure for building on BUILD [guessed]
1299  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1300  --target=TARGET   configure for building compilers for TARGET [HOST]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305
1306  cat <<\_ACEOF
1307
1308Optional Features:
1309  --disable-option-checking  ignore unrecognized --enable/--with options
1310  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1311  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1312  --disable-static        Disable building of static libraries.
1313  --enable-static         Build static libraries (default).
1314  --disable-shared        Disable building of shared libraries (default is to
1315                          build them if supported on the target)
1316  --enable-shared         Build shared libraries if supported on the target
1317                          and make them preselected in project files (static
1318                          libraries are preselected by default
1319--enable-build=<type>       Default build type for the library (Debug, Production)
1320  --disable-nls           do not use Native Language Support
1321
1322Optional Packages:
1323  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1324  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1325  --with-GL=value         Which OpenGL library to compile GtkAda with (auto,GL,GL32,MesaGL,,no)
1326  --with-GL-prefix=DIR    Prefix where GL/MesaGL is installed
1327
1328Some influential environment variables:
1329  CC          C compiler command
1330  CFLAGS      C compiler flags
1331  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1332              nonstandard directory <lib dir>
1333  LIBS        libraries to pass to the linker, e.g. -l<library>
1334  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1335              you have headers in a nonstandard directory <include dir>
1336
1337Use these variables to override the choices made by `configure' or to help
1338it to find libraries and programs with nonstandard names/locations.
1339
1340Report bugs to the package provider.
1341_ACEOF
1342ac_status=$?
1343fi
1344
1345if test "$ac_init_help" = "recursive"; then
1346  # If there are subdirs, report their specific --help.
1347  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348    test -d "$ac_dir" ||
1349      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350      continue
1351    ac_builddir=.
1352
1353case "$ac_dir" in
1354.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355*)
1356  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357  # A ".." for each directory in $ac_dir_suffix.
1358  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359  case $ac_top_builddir_sub in
1360  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362  esac ;;
1363esac
1364ac_abs_top_builddir=$ac_pwd
1365ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366# for backward compatibility:
1367ac_top_builddir=$ac_top_build_prefix
1368
1369case $srcdir in
1370  .)  # We are building in place.
1371    ac_srcdir=.
1372    ac_top_srcdir=$ac_top_builddir_sub
1373    ac_abs_top_srcdir=$ac_pwd ;;
1374  [\\/]* | ?:[\\/]* )  # Absolute name.
1375    ac_srcdir=$srcdir$ac_dir_suffix;
1376    ac_top_srcdir=$srcdir
1377    ac_abs_top_srcdir=$srcdir ;;
1378  *) # Relative name.
1379    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380    ac_top_srcdir=$ac_top_build_prefix$srcdir
1381    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382esac
1383ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385    cd "$ac_dir" || { ac_status=$?; continue; }
1386    # Check for guested configure.
1387    if test -f "$ac_srcdir/configure.gnu"; then
1388      echo &&
1389      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390    elif test -f "$ac_srcdir/configure"; then
1391      echo &&
1392      $SHELL "$ac_srcdir/configure" --help=recursive
1393    else
1394      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395    fi || ac_status=$?
1396    cd "$ac_pwd" || { ac_status=$?; break; }
1397  done
1398fi
1399
1400test -n "$ac_init_help" && exit $ac_status
1401if $ac_init_version; then
1402  cat <<\_ACEOF
1403configure
1404generated by GNU Autoconf 2.69
1405
1406Copyright (C) 2012 Free Software Foundation, Inc.
1407This configure script is free software; the Free Software Foundation
1408gives unlimited permission to copy, distribute and modify it.
1409_ACEOF
1410  exit
1411fi
1412
1413## ------------------------ ##
1414## Autoconf initialization. ##
1415## ------------------------ ##
1416
1417# ac_fn_c_try_compile LINENO
1418# --------------------------
1419# Try to compile conftest.$ac_ext, and return whether this succeeded.
1420ac_fn_c_try_compile ()
1421{
1422  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423  rm -f conftest.$ac_objext
1424  if { { ac_try="$ac_compile"
1425case "(($ac_try" in
1426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427  *) ac_try_echo=$ac_try;;
1428esac
1429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430$as_echo "$ac_try_echo"; } >&5
1431  (eval "$ac_compile") 2>conftest.err
1432  ac_status=$?
1433  if test -s conftest.err; then
1434    grep -v '^ *+' conftest.err >conftest.er1
1435    cat conftest.er1 >&5
1436    mv -f conftest.er1 conftest.err
1437  fi
1438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439  test $ac_status = 0; } && {
1440	 test -z "$ac_c_werror_flag" ||
1441	 test ! -s conftest.err
1442       } && test -s conftest.$ac_objext; then :
1443  ac_retval=0
1444else
1445  $as_echo "$as_me: failed program was:" >&5
1446sed 's/^/| /' conftest.$ac_ext >&5
1447
1448	ac_retval=1
1449fi
1450  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1451  as_fn_set_status $ac_retval
1452
1453} # ac_fn_c_try_compile
1454
1455# ac_fn_c_try_run LINENO
1456# ----------------------
1457# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1458# that executables *can* be run.
1459ac_fn_c_try_run ()
1460{
1461  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462  if { { ac_try="$ac_link"
1463case "(($ac_try" in
1464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465  *) ac_try_echo=$ac_try;;
1466esac
1467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468$as_echo "$ac_try_echo"; } >&5
1469  (eval "$ac_link") 2>&5
1470  ac_status=$?
1471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1473  { { case "(($ac_try" in
1474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475  *) ac_try_echo=$ac_try;;
1476esac
1477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478$as_echo "$ac_try_echo"; } >&5
1479  (eval "$ac_try") 2>&5
1480  ac_status=$?
1481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482  test $ac_status = 0; }; }; then :
1483  ac_retval=0
1484else
1485  $as_echo "$as_me: program exited with status $ac_status" >&5
1486       $as_echo "$as_me: failed program was:" >&5
1487sed 's/^/| /' conftest.$ac_ext >&5
1488
1489       ac_retval=$ac_status
1490fi
1491  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1492  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493  as_fn_set_status $ac_retval
1494
1495} # ac_fn_c_try_run
1496
1497# ac_fn_c_try_link LINENO
1498# -----------------------
1499# Try to link conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_link ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext conftest$ac_exeext
1504  if { { ac_try="$ac_link"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_link") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_c_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest$ac_exeext && {
1523	 test "$cross_compiling" = yes ||
1524	 test -x conftest$ac_exeext
1525       }; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1534  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1535  # interfere with the next link command; also delete a directory that is
1536  # left behind by Apple's compiler.  We do this before executing the actions.
1537  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539  as_fn_set_status $ac_retval
1540
1541} # ac_fn_c_try_link
1542cat >config.log <<_ACEOF
1543This file contains any messages produced by compilers while
1544running configure, to aid debugging if configure makes a mistake.
1545
1546It was created by $as_me, which was
1547generated by GNU Autoconf 2.69.  Invocation command line was
1548
1549  $ $0 $@
1550
1551_ACEOF
1552exec 5>>config.log
1553{
1554cat <<_ASUNAME
1555## --------- ##
1556## Platform. ##
1557## --------- ##
1558
1559hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564
1565/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1567
1568/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1569/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1570/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1571/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1572/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1573/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1574/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1575
1576_ASUNAME
1577
1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581  IFS=$as_save_IFS
1582  test -z "$as_dir" && as_dir=.
1583    $as_echo "PATH: $as_dir"
1584  done
1585IFS=$as_save_IFS
1586
1587} >&5
1588
1589cat >&5 <<_ACEOF
1590
1591
1592## ----------- ##
1593## Core tests. ##
1594## ----------- ##
1595
1596_ACEOF
1597
1598
1599# Keep a trace of the command line.
1600# Strip out --no-create and --no-recursion so they do not pile up.
1601# Strip out --silent because we don't want to record it for future runs.
1602# Also quote any args containing shell meta-characters.
1603# Make two passes to allow for proper duplicate-argument suppression.
1604ac_configure_args=
1605ac_configure_args0=
1606ac_configure_args1=
1607ac_must_keep_next=false
1608for ac_pass in 1 2
1609do
1610  for ac_arg
1611  do
1612    case $ac_arg in
1613    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615    | -silent | --silent | --silen | --sile | --sil)
1616      continue ;;
1617    *\'*)
1618      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    esac
1620    case $ac_pass in
1621    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1622    2)
1623      as_fn_append ac_configure_args1 " '$ac_arg'"
1624      if test $ac_must_keep_next = true; then
1625	ac_must_keep_next=false # Got value, back to normal.
1626      else
1627	case $ac_arg in
1628	  *=* | --config-cache | -C | -disable-* | --disable-* \
1629	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631	  | -with-* | --with-* | -without-* | --without-* | --x)
1632	    case "$ac_configure_args0 " in
1633	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1634	    esac
1635	    ;;
1636	  -* ) ac_must_keep_next=true ;;
1637	esac
1638      fi
1639      as_fn_append ac_configure_args " '$ac_arg'"
1640      ;;
1641    esac
1642  done
1643done
1644{ ac_configure_args0=; unset ac_configure_args0;}
1645{ ac_configure_args1=; unset ac_configure_args1;}
1646
1647# When interrupted or exit'd, cleanup temporary files, and complete
1648# config.log.  We remove comments because anyway the quotes in there
1649# would cause problems or look ugly.
1650# WARNING: Use '\'' to represent an apostrophe within the trap.
1651# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1652trap 'exit_status=$?
1653  # Save into config.log some information that might help in debugging.
1654  {
1655    echo
1656
1657    $as_echo "## ---------------- ##
1658## Cache variables. ##
1659## ---------------- ##"
1660    echo
1661    # The following way of writing the cache mishandles newlines in values,
1662(
1663  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1664    eval ac_val=\$$ac_var
1665    case $ac_val in #(
1666    *${as_nl}*)
1667      case $ac_var in #(
1668      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1670      esac
1671      case $ac_var in #(
1672      _ | IFS | as_nl) ;; #(
1673      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1674      *) { eval $ac_var=; unset $ac_var;} ;;
1675      esac ;;
1676    esac
1677  done
1678  (set) 2>&1 |
1679    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1680    *${as_nl}ac_space=\ *)
1681      sed -n \
1682	"s/'\''/'\''\\\\'\'''\''/g;
1683	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1684      ;; #(
1685    *)
1686      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1687      ;;
1688    esac |
1689    sort
1690)
1691    echo
1692
1693    $as_echo "## ----------------- ##
1694## Output variables. ##
1695## ----------------- ##"
1696    echo
1697    for ac_var in $ac_subst_vars
1698    do
1699      eval ac_val=\$$ac_var
1700      case $ac_val in
1701      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702      esac
1703      $as_echo "$ac_var='\''$ac_val'\''"
1704    done | sort
1705    echo
1706
1707    if test -n "$ac_subst_files"; then
1708      $as_echo "## ------------------- ##
1709## File substitutions. ##
1710## ------------------- ##"
1711      echo
1712      for ac_var in $ac_subst_files
1713      do
1714	eval ac_val=\$$ac_var
1715	case $ac_val in
1716	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717	esac
1718	$as_echo "$ac_var='\''$ac_val'\''"
1719      done | sort
1720      echo
1721    fi
1722
1723    if test -s confdefs.h; then
1724      $as_echo "## ----------- ##
1725## confdefs.h. ##
1726## ----------- ##"
1727      echo
1728      cat confdefs.h
1729      echo
1730    fi
1731    test "$ac_signal" != 0 &&
1732      $as_echo "$as_me: caught signal $ac_signal"
1733    $as_echo "$as_me: exit $exit_status"
1734  } >&5
1735  rm -f core *.core core.conftest.* &&
1736    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1737    exit $exit_status
1738' 0
1739for ac_signal in 1 2 13 15; do
1740  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1741done
1742ac_signal=0
1743
1744# confdefs.h avoids OS command line length limits that DEFS can exceed.
1745rm -f -r conftest* confdefs.h
1746
1747$as_echo "/* confdefs.h */" > confdefs.h
1748
1749# Predefined preprocessor variables.
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_NAME "$PACKAGE_NAME"
1753_ACEOF
1754
1755cat >>confdefs.h <<_ACEOF
1756#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1757_ACEOF
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_VERSION "$PACKAGE_VERSION"
1761_ACEOF
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_STRING "$PACKAGE_STRING"
1765_ACEOF
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769_ACEOF
1770
1771cat >>confdefs.h <<_ACEOF
1772#define PACKAGE_URL "$PACKAGE_URL"
1773_ACEOF
1774
1775
1776# Let the site file select an alternate cache file if it wants to.
1777# Prefer an explicitly selected file to automatically selected ones.
1778ac_site_file1=NONE
1779ac_site_file2=NONE
1780if test -n "$CONFIG_SITE"; then
1781  # We do not want a PATH search for config.site.
1782  case $CONFIG_SITE in #((
1783    -*)  ac_site_file1=./$CONFIG_SITE;;
1784    */*) ac_site_file1=$CONFIG_SITE;;
1785    *)   ac_site_file1=./$CONFIG_SITE;;
1786  esac
1787elif test "x$prefix" != xNONE; then
1788  ac_site_file1=$prefix/share/config.site
1789  ac_site_file2=$prefix/etc/config.site
1790else
1791  ac_site_file1=$ac_default_prefix/share/config.site
1792  ac_site_file2=$ac_default_prefix/etc/config.site
1793fi
1794for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1795do
1796  test "x$ac_site_file" = xNONE && continue
1797  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1799$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1800    sed 's/^/| /' "$ac_site_file" >&5
1801    . "$ac_site_file" \
1802      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1804as_fn_error $? "failed to load site script $ac_site_file
1805See \`config.log' for more details" "$LINENO" 5; }
1806  fi
1807done
1808
1809if test -r "$cache_file"; then
1810  # Some versions of bash will fail to source /dev/null (special files
1811  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1812  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1814$as_echo "$as_me: loading cache $cache_file" >&6;}
1815    case $cache_file in
1816      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817      *)                      . "./$cache_file";;
1818    esac
1819  fi
1820else
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1822$as_echo "$as_me: creating cache $cache_file" >&6;}
1823  >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
1829for ac_var in $ac_precious_vars; do
1830  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831  eval ac_new_set=\$ac_env_${ac_var}_set
1832  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833  eval ac_new_val=\$ac_env_${ac_var}_value
1834  case $ac_old_set,$ac_new_set in
1835    set,)
1836      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838      ac_cache_corrupted=: ;;
1839    ,set)
1840      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1841$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842      ac_cache_corrupted=: ;;
1843    ,);;
1844    *)
1845      if test "x$ac_old_val" != "x$ac_new_val"; then
1846	# differences in whitespace do not lead to failure.
1847	ac_old_val_w=`echo x $ac_old_val`
1848	ac_new_val_w=`echo x $ac_new_val`
1849	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1850	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1851$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852	  ac_cache_corrupted=:
1853	else
1854	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1855$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1856	  eval $ac_var=\$ac_old_val
1857	fi
1858	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1859$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1860	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1861$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1862      fi;;
1863  esac
1864  # Pass precious variables to config.status.
1865  if test "$ac_new_set" = set; then
1866    case $ac_new_val in
1867    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868    *) ac_arg=$ac_var=$ac_new_val ;;
1869    esac
1870    case " $ac_configure_args " in
1871      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1872      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1873    esac
1874  fi
1875done
1876if $ac_cache_corrupted; then
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1880$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1881  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1882fi
1883## -------------------- ##
1884## Main body of script. ##
1885## -------------------- ##
1886
1887ac_ext=c
1888ac_cpp='$CPP $CPPFLAGS'
1889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892
1893
1894
1895# Current release settings
1896GTKADA_MAJOR_VERSION=2
1897GTKADA_MINOR_VERSION=24
1898GTKADA_MICRO_VERSION=4
1899GTKADA_VERSION=$GTKADA_MAJOR_VERSION.$GTKADA_MINOR_VERSION.$GTKADA_MICRO_VERSION
1900
1901ac_aux_dir=
1902for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1903  if test -f "$ac_dir/install-sh"; then
1904    ac_aux_dir=$ac_dir
1905    ac_install_sh="$ac_aux_dir/install-sh -c"
1906    break
1907  elif test -f "$ac_dir/install.sh"; then
1908    ac_aux_dir=$ac_dir
1909    ac_install_sh="$ac_aux_dir/install.sh -c"
1910    break
1911  elif test -f "$ac_dir/shtool"; then
1912    ac_aux_dir=$ac_dir
1913    ac_install_sh="$ac_aux_dir/shtool install -c"
1914    break
1915  fi
1916done
1917if test -z "$ac_aux_dir"; then
1918  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1919fi
1920
1921# These three variables are undocumented and unsupported,
1922# and are intended to be withdrawn in a future Autoconf release.
1923# They can cause serious problems if a builder's source tree is in a directory
1924# whose full name contains unusual characters.
1925ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1926ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1927ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1928
1929
1930# Make sure we can run config.sub.
1931$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1932  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1933
1934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1935$as_echo_n "checking build system type... " >&6; }
1936if ${ac_cv_build+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  ac_build_alias=$build_alias
1940test "x$ac_build_alias" = x &&
1941  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1942test "x$ac_build_alias" = x &&
1943  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1944ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1946
1947fi
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1949$as_echo "$ac_cv_build" >&6; }
1950case $ac_cv_build in
1951*-*-*) ;;
1952*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1953esac
1954build=$ac_cv_build
1955ac_save_IFS=$IFS; IFS='-'
1956set x $ac_cv_build
1957shift
1958build_cpu=$1
1959build_vendor=$2
1960shift; shift
1961# Remember, the first character of IFS is used to create $*,
1962# except with old shells:
1963build_os=$*
1964IFS=$ac_save_IFS
1965case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1966
1967
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1969$as_echo_n "checking host system type... " >&6; }
1970if ${ac_cv_host+:} false; then :
1971  $as_echo_n "(cached) " >&6
1972else
1973  if test "x$host_alias" = x; then
1974  ac_cv_host=$ac_cv_build
1975else
1976  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1977    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1978fi
1979
1980fi
1981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1982$as_echo "$ac_cv_host" >&6; }
1983case $ac_cv_host in
1984*-*-*) ;;
1985*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1986esac
1987host=$ac_cv_host
1988ac_save_IFS=$IFS; IFS='-'
1989set x $ac_cv_host
1990shift
1991host_cpu=$1
1992host_vendor=$2
1993shift; shift
1994# Remember, the first character of IFS is used to create $*,
1995# except with old shells:
1996host_os=$*
1997IFS=$ac_save_IFS
1998case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999
2000
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2002$as_echo_n "checking target system type... " >&6; }
2003if ${ac_cv_target+:} false; then :
2004  $as_echo_n "(cached) " >&6
2005else
2006  if test "x$target_alias" = x; then
2007  ac_cv_target=$ac_cv_host
2008else
2009  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2010    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2011fi
2012
2013fi
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2015$as_echo "$ac_cv_target" >&6; }
2016case $ac_cv_target in
2017*-*-*) ;;
2018*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2019esac
2020target=$ac_cv_target
2021ac_save_IFS=$IFS; IFS='-'
2022set x $ac_cv_target
2023shift
2024target_cpu=$1
2025target_vendor=$2
2026shift; shift
2027# Remember, the first character of IFS is used to create $*,
2028# except with old shells:
2029target_os=$*
2030IFS=$ac_save_IFS
2031case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2032
2033
2034# The aliases save the names the user supplied, while $host etc.
2035# will get canonicalized.
2036test -n "$target_alias" &&
2037  test "$program_prefix$program_suffix$program_transform_name" = \
2038    NONENONEs,x,x, &&
2039  program_prefix=${target_alias}-
2040
2041
2042   SO_EXT=.so
2043   SO_OPTS=-Wl,-soname,
2044   FPIC=-fPIC
2045   TARGET_LFLAGS=
2046   DEFAULT_LIBRARY_TYPE=static
2047
2048   # Check whether --enable-static was given.
2049if test "${enable_static+set}" = set; then :
2050  enableval=$enable_static; BUILD_STATIC=$enableval
2051      if test $enableval = no; then
2052         DEFAULT_LIBRARY_TYPE=relocatable
2053      fi
2054else
2055  BUILD_STATIC=yes
2056fi
2057
2058
2059   # Check whether --enable-shared was given.
2060if test "${enable_shared+set}" = set; then :
2061  enableval=$enable_shared; CAN_BUILD_SHARED=$enableval
2062      if test $enableval = yes; then
2063         DEFAULT_LIBRARY_TYPE=relocatable
2064      fi
2065else
2066  CAN_BUILD_SHARED=yes
2067fi
2068
2069
2070   BUILD_SHARED=$CAN_BUILD_SHARED
2071
2072   case $build_os in
2073   aix*)
2074      BUILD_SHARED=no
2075      FPIC=
2076      OS_SPECIFIC_LINK_OPTIONS=-Wl,-bexpall,-berok
2077      TARGET_LFLAGS=-Wl,-bbigtoc
2078      SO_OPTS="-o "
2079      ;;
2080   hp*)
2081      SO_EXT=.sl
2082      SO_OPTS=-Wl,+h,
2083      BUILD_SHARED=no
2084      ;;
2085   *sysv4uw* | *sysv5uw*)
2086      SO_OPTS=-Wl,-h,
2087      BUILD_SHARED=no
2088      FPIC=
2089      ;;
2090   *solaris*)
2091      SO_OPTS=-Wl,-h,
2092      ;;
2093   *irix*)
2094      FPIC=
2095      ;;
2096   *osf*)
2097      OS_SPECIFIC_LINK_OPTIONS=-Wl,-expect_unresolved,\*
2098      ;;
2099   *mingw*)
2100      if test x$CAN_BUILD_SHARED = xyes ; then
2101         BUILD_SHARED=yes
2102      fi
2103      SO_EXT=.dll
2104      FPIC=
2105      ac_tmp_GNATDIR=`which gcc | sed 's,/gcc$,,'`
2106      ac_GNATDIR=`cygpath --mixed $ac_tmp_GNATDIR`
2107      count=`cd $ac_GNATDIR; ls libgnat-*.dll | wc -l`
2108      if test $count -gt 1 ; then
2109         echo "Too many libgnat.dll, in $ac_GNATDIR"
2110	 echo Found: `cd $ac_GNATDIR; ls libgnat-*.dll`
2111         exit 1
2112      fi
2113      ac_GNATLIB=`cd $ac_GNATDIR; ls libgnat-*.dll | sed 's,lib,,;s,.dll,,'`
2114      OS_SPECIFIC_LINK_OPTIONS=-Wl,-L$ac_GNATDIR,-l$ac_GNATLIB
2115      ;;
2116   *darwin*)
2117      SO_EXT=.dylib
2118      if test x$CAN_BUILD_SHARED = xyes ; then
2119         BUILD_SHARED=yes
2120      fi
2121      SO_OPTS="-Wl,-undefined,dynamic_lookup -dynamiclib -Wl,-dylib_install_name,"
2122      FPIC=-fPIC
2123      #TARGET_LFLAGS="-Wl,-flat_namespace -Wl,-undefined,suppress"
2124      ;;
2125   # ??? The following case has been introduced because of an elaboration
2126   # problem with the GtkAda dynamic library and GPS (see E511-010). This
2127   # is a workaround, and shall be removed as soon as the bug is fixed.
2128   *linux*)
2129      case $build_cpu in
2130      *ia64*)
2131         BUILD_SHARED=no
2132         FPIC=
2133         ;;
2134      esac
2135      ;;
2136   esac
2137
2138  if test x$BUILD_SHARED = xno ; then
2139     DEFAULT_LIBRARY_TYPE=static
2140  fi
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154# checking for local tools
2155ac_ext=c
2156ac_cpp='$CPP $CPPFLAGS'
2157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2159ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160if test -n "$ac_tool_prefix"; then
2161  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2162set dummy ${ac_tool_prefix}gcc; ac_word=$2
2163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2164$as_echo_n "checking for $ac_word... " >&6; }
2165if ${ac_cv_prog_CC+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  if test -n "$CC"; then
2169  ac_cv_prog_CC="$CC" # Let the user override the test.
2170else
2171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172for as_dir in $PATH
2173do
2174  IFS=$as_save_IFS
2175  test -z "$as_dir" && as_dir=.
2176    for ac_exec_ext in '' $ac_executable_extensions; do
2177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2180    break 2
2181  fi
2182done
2183  done
2184IFS=$as_save_IFS
2185
2186fi
2187fi
2188CC=$ac_cv_prog_CC
2189if test -n "$CC"; then
2190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2191$as_echo "$CC" >&6; }
2192else
2193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2194$as_echo "no" >&6; }
2195fi
2196
2197
2198fi
2199if test -z "$ac_cv_prog_CC"; then
2200  ac_ct_CC=$CC
2201  # Extract the first word of "gcc", so it can be a program name with args.
2202set dummy gcc; ac_word=$2
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2204$as_echo_n "checking for $ac_word... " >&6; }
2205if ${ac_cv_prog_ac_ct_CC+:} false; then :
2206  $as_echo_n "(cached) " >&6
2207else
2208  if test -n "$ac_ct_CC"; then
2209  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2210else
2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214  IFS=$as_save_IFS
2215  test -z "$as_dir" && as_dir=.
2216    for ac_exec_ext in '' $ac_executable_extensions; do
2217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218    ac_cv_prog_ac_ct_CC="gcc"
2219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2220    break 2
2221  fi
2222done
2223  done
2224IFS=$as_save_IFS
2225
2226fi
2227fi
2228ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229if test -n "$ac_ct_CC"; then
2230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2231$as_echo "$ac_ct_CC" >&6; }
2232else
2233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2234$as_echo "no" >&6; }
2235fi
2236
2237  if test "x$ac_ct_CC" = x; then
2238    CC=""
2239  else
2240    case $cross_compiling:$ac_tool_warned in
2241yes:)
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2244ac_tool_warned=yes ;;
2245esac
2246    CC=$ac_ct_CC
2247  fi
2248else
2249  CC="$ac_cv_prog_CC"
2250fi
2251
2252if test -z "$CC"; then
2253          if test -n "$ac_tool_prefix"; then
2254    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2255set dummy ${ac_tool_prefix}cc; ac_word=$2
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
2258if ${ac_cv_prog_CC+:} false; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  if test -n "$CC"; then
2262  ac_cv_prog_CC="$CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269    for ac_exec_ext in '' $ac_executable_extensions; do
2270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271    ac_cv_prog_CC="${ac_tool_prefix}cc"
2272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276  done
2277IFS=$as_save_IFS
2278
2279fi
2280fi
2281CC=$ac_cv_prog_CC
2282if test -n "$CC"; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2284$as_echo "$CC" >&6; }
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287$as_echo "no" >&6; }
2288fi
2289
2290
2291  fi
2292fi
2293if test -z "$CC"; then
2294  # Extract the first word of "cc", so it can be a program name with args.
2295set dummy cc; ac_word=$2
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297$as_echo_n "checking for $ac_word... " >&6; }
2298if ${ac_cv_prog_CC+:} false; then :
2299  $as_echo_n "(cached) " >&6
2300else
2301  if test -n "$CC"; then
2302  ac_cv_prog_CC="$CC" # Let the user override the test.
2303else
2304  ac_prog_rejected=no
2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH
2307do
2308  IFS=$as_save_IFS
2309  test -z "$as_dir" && as_dir=.
2310    for ac_exec_ext in '' $ac_executable_extensions; do
2311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2313       ac_prog_rejected=yes
2314       continue
2315     fi
2316    ac_cv_prog_CC="cc"
2317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2318    break 2
2319  fi
2320done
2321  done
2322IFS=$as_save_IFS
2323
2324if test $ac_prog_rejected = yes; then
2325  # We found a bogon in the path, so make sure we never use it.
2326  set dummy $ac_cv_prog_CC
2327  shift
2328  if test $# != 0; then
2329    # We chose a different compiler from the bogus one.
2330    # However, it has the same basename, so the bogon will be chosen
2331    # first if we set CC to just the basename; use the full file name.
2332    shift
2333    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334  fi
2335fi
2336fi
2337fi
2338CC=$ac_cv_prog_CC
2339if test -n "$CC"; then
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2341$as_echo "$CC" >&6; }
2342else
2343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344$as_echo "no" >&6; }
2345fi
2346
2347
2348fi
2349if test -z "$CC"; then
2350  if test -n "$ac_tool_prefix"; then
2351  for ac_prog in cl.exe
2352  do
2353    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356$as_echo_n "checking for $ac_word... " >&6; }
2357if ${ac_cv_prog_CC+:} false; then :
2358  $as_echo_n "(cached) " >&6
2359else
2360  if test -n "$CC"; then
2361  ac_cv_prog_CC="$CC" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366  IFS=$as_save_IFS
2367  test -z "$as_dir" && as_dir=.
2368    for ac_exec_ext in '' $ac_executable_extensions; do
2369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372    break 2
2373  fi
2374done
2375  done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380CC=$ac_cv_prog_CC
2381if test -n "$CC"; then
2382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2383$as_echo "$CC" >&6; }
2384else
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386$as_echo "no" >&6; }
2387fi
2388
2389
2390    test -n "$CC" && break
2391  done
2392fi
2393if test -z "$CC"; then
2394  ac_ct_CC=$CC
2395  for ac_prog in cl.exe
2396do
2397  # Extract the first word of "$ac_prog", so it can be a program name with args.
2398set dummy $ac_prog; ac_word=$2
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2400$as_echo_n "checking for $ac_word... " >&6; }
2401if ${ac_cv_prog_ac_ct_CC+:} false; then :
2402  $as_echo_n "(cached) " >&6
2403else
2404  if test -n "$ac_ct_CC"; then
2405  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410  IFS=$as_save_IFS
2411  test -z "$as_dir" && as_dir=.
2412    for ac_exec_ext in '' $ac_executable_extensions; do
2413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414    ac_cv_prog_ac_ct_CC="$ac_prog"
2415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2416    break 2
2417  fi
2418done
2419  done
2420IFS=$as_save_IFS
2421
2422fi
2423fi
2424ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425if test -n "$ac_ct_CC"; then
2426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2427$as_echo "$ac_ct_CC" >&6; }
2428else
2429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430$as_echo "no" >&6; }
2431fi
2432
2433
2434  test -n "$ac_ct_CC" && break
2435done
2436
2437  if test "x$ac_ct_CC" = x; then
2438    CC=""
2439  else
2440    case $cross_compiling:$ac_tool_warned in
2441yes:)
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444ac_tool_warned=yes ;;
2445esac
2446    CC=$ac_ct_CC
2447  fi
2448fi
2449
2450fi
2451
2452
2453test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455as_fn_error $? "no acceptable C compiler found in \$PATH
2456See \`config.log' for more details" "$LINENO" 5; }
2457
2458# Provide some information about the compiler.
2459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2460set X $ac_compile
2461ac_compiler=$2
2462for ac_option in --version -v -V -qversion; do
2463  { { ac_try="$ac_compiler $ac_option >&5"
2464case "(($ac_try" in
2465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466  *) ac_try_echo=$ac_try;;
2467esac
2468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469$as_echo "$ac_try_echo"; } >&5
2470  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2471  ac_status=$?
2472  if test -s conftest.err; then
2473    sed '10a\
2474... rest of stderr output deleted ...
2475         10q' conftest.err >conftest.er1
2476    cat conftest.er1 >&5
2477  fi
2478  rm -f conftest.er1 conftest.err
2479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480  test $ac_status = 0; }
2481done
2482
2483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484/* end confdefs.h.  */
2485
2486int
2487main ()
2488{
2489
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494ac_clean_files_save=$ac_clean_files
2495ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2496# Try to create an executable without -o first, disregard a.out.
2497# It will help us diagnose broken compilers, and finding out an intuition
2498# of exeext.
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2500$as_echo_n "checking whether the C compiler works... " >&6; }
2501ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502
2503# The possible output files:
2504ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2505
2506ac_rmfiles=
2507for ac_file in $ac_files
2508do
2509  case $ac_file in
2510    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2511    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2512  esac
2513done
2514rm -f $ac_rmfiles
2515
2516if { { ac_try="$ac_link_default"
2517case "(($ac_try" in
2518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519  *) ac_try_echo=$ac_try;;
2520esac
2521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522$as_echo "$ac_try_echo"; } >&5
2523  (eval "$ac_link_default") 2>&5
2524  ac_status=$?
2525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526  test $ac_status = 0; }; then :
2527  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2530# so that the user can short-circuit this test for compilers unknown to
2531# Autoconf.
2532for ac_file in $ac_files ''
2533do
2534  test -f "$ac_file" || continue
2535  case $ac_file in
2536    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2537	;;
2538    [ab].out )
2539	# We found the default executable, but exeext='' is most
2540	# certainly right.
2541	break;;
2542    *.* )
2543	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2544	then :; else
2545	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546	fi
2547	# We set ac_cv_exeext here because the later test for it is not
2548	# safe: cross compilers may not add the suffix if given an `-o'
2549	# argument, so we may need to know it at that point already.
2550	# Even if this section looks crufty: it has the advantage of
2551	# actually working.
2552	break;;
2553    * )
2554	break;;
2555  esac
2556done
2557test "$ac_cv_exeext" = no && ac_cv_exeext=
2558
2559else
2560  ac_file=''
2561fi
2562if test -z "$ac_file"; then :
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565$as_echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570as_fn_error 77 "C compiler cannot create executables
2571See \`config.log' for more details" "$LINENO" 5; }
2572else
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574$as_echo "yes" >&6; }
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2577$as_echo_n "checking for C compiler default output file name... " >&6; }
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2579$as_echo "$ac_file" >&6; }
2580ac_exeext=$ac_cv_exeext
2581
2582rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2583ac_clean_files=$ac_clean_files_save
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2585$as_echo_n "checking for suffix of executables... " >&6; }
2586if { { ac_try="$ac_link"
2587case "(($ac_try" in
2588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589  *) ac_try_echo=$ac_try;;
2590esac
2591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592$as_echo "$ac_try_echo"; } >&5
2593  (eval "$ac_link") 2>&5
2594  ac_status=$?
2595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596  test $ac_status = 0; }; then :
2597  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2599# work properly (i.e., refer to `conftest.exe'), while it won't with
2600# `rm'.
2601for ac_file in conftest.exe conftest conftest.*; do
2602  test -f "$ac_file" || continue
2603  case $ac_file in
2604    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606	  break;;
2607    * ) break;;
2608  esac
2609done
2610else
2611  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2614See \`config.log' for more details" "$LINENO" 5; }
2615fi
2616rm -f conftest conftest$ac_cv_exeext
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2618$as_echo "$ac_cv_exeext" >&6; }
2619
2620rm -f conftest.$ac_ext
2621EXEEXT=$ac_cv_exeext
2622ac_exeext=$EXEEXT
2623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624/* end confdefs.h.  */
2625#include <stdio.h>
2626int
2627main ()
2628{
2629FILE *f = fopen ("conftest.out", "w");
2630 return ferror (f) || fclose (f) != 0;
2631
2632  ;
2633  return 0;
2634}
2635_ACEOF
2636ac_clean_files="$ac_clean_files conftest.out"
2637# Check that the compiler produces executables we can run.  If not, either
2638# the compiler is broken, or we cross compile.
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2640$as_echo_n "checking whether we are cross compiling... " >&6; }
2641if test "$cross_compiling" != yes; then
2642  { { ac_try="$ac_link"
2643case "(($ac_try" in
2644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645  *) ac_try_echo=$ac_try;;
2646esac
2647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648$as_echo "$ac_try_echo"; } >&5
2649  (eval "$ac_link") 2>&5
2650  ac_status=$?
2651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652  test $ac_status = 0; }
2653  if { ac_try='./conftest$ac_cv_exeext'
2654  { { case "(($ac_try" in
2655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656  *) ac_try_echo=$ac_try;;
2657esac
2658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659$as_echo "$ac_try_echo"; } >&5
2660  (eval "$ac_try") 2>&5
2661  ac_status=$?
2662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663  test $ac_status = 0; }; }; then
2664    cross_compiling=no
2665  else
2666    if test "$cross_compiling" = maybe; then
2667	cross_compiling=yes
2668    else
2669	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671as_fn_error $? "cannot run C compiled programs.
2672If you meant to cross compile, use \`--host'.
2673See \`config.log' for more details" "$LINENO" 5; }
2674    fi
2675  fi
2676fi
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2678$as_echo "$cross_compiling" >&6; }
2679
2680rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2681ac_clean_files=$ac_clean_files_save
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2683$as_echo_n "checking for suffix of object files... " >&6; }
2684if ${ac_cv_objext+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688/* end confdefs.h.  */
2689
2690int
2691main ()
2692{
2693
2694  ;
2695  return 0;
2696}
2697_ACEOF
2698rm -f conftest.o conftest.obj
2699if { { ac_try="$ac_compile"
2700case "(($ac_try" in
2701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702  *) ac_try_echo=$ac_try;;
2703esac
2704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705$as_echo "$ac_try_echo"; } >&5
2706  (eval "$ac_compile") 2>&5
2707  ac_status=$?
2708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709  test $ac_status = 0; }; then :
2710  for ac_file in conftest.o conftest.obj conftest.*; do
2711  test -f "$ac_file" || continue;
2712  case $ac_file in
2713    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2714    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2715       break;;
2716  esac
2717done
2718else
2719  $as_echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error $? "cannot compute suffix of object files: cannot compile
2725See \`config.log' for more details" "$LINENO" 5; }
2726fi
2727rm -f conftest.$ac_cv_objext conftest.$ac_ext
2728fi
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2730$as_echo "$ac_cv_objext" >&6; }
2731OBJEXT=$ac_cv_objext
2732ac_objext=$OBJEXT
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2734$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2735if ${ac_cv_c_compiler_gnu+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744#ifndef __GNUC__
2745       choke me
2746#endif
2747
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753  ac_compiler_gnu=yes
2754else
2755  ac_compiler_gnu=no
2756fi
2757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758ac_cv_c_compiler_gnu=$ac_compiler_gnu
2759
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2762$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2763if test $ac_compiler_gnu = yes; then
2764  GCC=yes
2765else
2766  GCC=
2767fi
2768ac_test_CFLAGS=${CFLAGS+set}
2769ac_save_CFLAGS=$CFLAGS
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2771$as_echo_n "checking whether $CC accepts -g... " >&6; }
2772if ${ac_cv_prog_cc_g+:} false; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  ac_save_c_werror_flag=$ac_c_werror_flag
2776   ac_c_werror_flag=yes
2777   ac_cv_prog_cc_g=no
2778   CFLAGS="-g"
2779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780/* end confdefs.h.  */
2781
2782int
2783main ()
2784{
2785
2786  ;
2787  return 0;
2788}
2789_ACEOF
2790if ac_fn_c_try_compile "$LINENO"; then :
2791  ac_cv_prog_cc_g=yes
2792else
2793  CFLAGS=""
2794      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795/* end confdefs.h.  */
2796
2797int
2798main ()
2799{
2800
2801  ;
2802  return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806
2807else
2808  ac_c_werror_flag=$ac_save_c_werror_flag
2809	 CFLAGS="-g"
2810	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811/* end confdefs.h.  */
2812
2813int
2814main ()
2815{
2816
2817  ;
2818  return 0;
2819}
2820_ACEOF
2821if ac_fn_c_try_compile "$LINENO"; then :
2822  ac_cv_prog_cc_g=yes
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827fi
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829   ac_c_werror_flag=$ac_save_c_werror_flag
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2832$as_echo "$ac_cv_prog_cc_g" >&6; }
2833if test "$ac_test_CFLAGS" = set; then
2834  CFLAGS=$ac_save_CFLAGS
2835elif test $ac_cv_prog_cc_g = yes; then
2836  if test "$GCC" = yes; then
2837    CFLAGS="-g -O2"
2838  else
2839    CFLAGS="-g"
2840  fi
2841else
2842  if test "$GCC" = yes; then
2843    CFLAGS="-O2"
2844  else
2845    CFLAGS=
2846  fi
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2849$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2850if ${ac_cv_prog_cc_c89+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  ac_cv_prog_cc_c89=no
2854ac_save_CC=$CC
2855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856/* end confdefs.h.  */
2857#include <stdarg.h>
2858#include <stdio.h>
2859struct stat;
2860/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2861struct buf { int x; };
2862FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863static char *e (p, i)
2864     char **p;
2865     int i;
2866{
2867  return p[i];
2868}
2869static char *f (char * (*g) (char **, int), char **p, ...)
2870{
2871  char *s;
2872  va_list v;
2873  va_start (v,p);
2874  s = g (p, va_arg (v,int));
2875  va_end (v);
2876  return s;
2877}
2878
2879/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2880   function prototypes and stuff, but not '\xHH' hex character constants.
2881   These don't provoke an error unfortunately, instead are silently treated
2882   as 'x'.  The following induces an error, until -std is added to get
2883   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2884   array size at least.  It's necessary to write '\x00'==0 to get something
2885   that's true only with -std.  */
2886int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887
2888/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2889   inside strings and character constants.  */
2890#define FOO(x) 'x'
2891int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2892
2893int test (int i, double x);
2894struct s1 {int (*f) (int a);};
2895struct s2 {int (*f) (double a);};
2896int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897int argc;
2898char **argv;
2899int
2900main ()
2901{
2902return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2908	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2909do
2910  CC="$ac_save_CC $ac_arg"
2911  if ac_fn_c_try_compile "$LINENO"; then :
2912  ac_cv_prog_cc_c89=$ac_arg
2913fi
2914rm -f core conftest.err conftest.$ac_objext
2915  test "x$ac_cv_prog_cc_c89" != "xno" && break
2916done
2917rm -f conftest.$ac_ext
2918CC=$ac_save_CC
2919
2920fi
2921# AC_CACHE_VAL
2922case "x$ac_cv_prog_cc_c89" in
2923  x)
2924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2925$as_echo "none needed" >&6; } ;;
2926  xno)
2927    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2928$as_echo "unsupported" >&6; } ;;
2929  *)
2930    CC="$CC $ac_cv_prog_cc_c89"
2931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2932$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2933esac
2934if test "x$ac_cv_prog_cc_c89" != xno; then :
2935
2936fi
2937
2938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943
2944
2945   # Extract the first word of "gnatmake", so it can be a program name with args.
2946set dummy gnatmake; ac_word=$2
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948$as_echo_n "checking for $ac_word... " >&6; }
2949if ${ac_cv_path_GNATMAKE+:} false; then :
2950  $as_echo_n "(cached) " >&6
2951else
2952  case $GNATMAKE in
2953  [\\/]* | ?:[\\/]*)
2954  ac_cv_path_GNATMAKE="$GNATMAKE" # Let the user override the test with a path.
2955  ;;
2956  *)
2957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_path_GNATMAKE="$as_dir/$ac_word$ac_exec_ext"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972  test -z "$ac_cv_path_GNATMAKE" && ac_cv_path_GNATMAKE="no"
2973  ;;
2974esac
2975fi
2976GNATMAKE=$ac_cv_path_GNATMAKE
2977if test -n "$GNATMAKE"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
2979$as_echo "$GNATMAKE" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986
2987   if test x$GNATMAKE = xno ; then
2988      as_fn_error $? "I could not find gnatmake. See the file 'INSTALL' for more details." "$LINENO" 5
2989   fi
2990
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that your gnat compiler works with a simple example" >&5
2992$as_echo_n "checking that your gnat compiler works with a simple example... " >&6; }
2993
2994   rm -f conftest.adb
2995   cat << EOF > conftest.adb
2996with Ada.Text_IO;
2997
2998procedure Conftest is
2999   Conftest_Ok : Ada.Text_IO.File_Type;
3000begin
3001   Ada.Text_IO.Create (File => Conftest_Ok,
3002                       Name => "$conftest_ok");
3003   Ada.Text_IO.Close (Conftest_Ok);
3004end Conftest;
3005EOF
3006
3007   $GNATMAKE -q conftest > /dev/null
3008
3009   if ( test ! -x conftest ) then
3010      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
3012      as_fn_error $? "$GNATMAKE test failed at compile time! Check your configuration." "$LINENO" 5
3013   fi
3014
3015   ./conftest
3016
3017   if ( test ! -f $conftest_ok ) then
3018      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020      as_fn_error $? "$GNATMAKE test failed at run time! Check your configuration." "$LINENO" 5
3021   fi
3022
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3024$as_echo "yes" >&6; }
3025
3026
3027   for ac_prog in perl5 perl
3028do
3029  # Extract the first word of "$ac_prog", so it can be a program name with args.
3030set dummy $ac_prog; ac_word=$2
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
3033if ${ac_cv_path_PERL+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  case $PERL in
3037  [\\/]* | ?:[\\/]*)
3038  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3039  ;;
3040  *)
3041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  test -z "$as_dir" && as_dir=.
3046    for ac_exec_ext in '' $ac_executable_extensions; do
3047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053  done
3054IFS=$as_save_IFS
3055
3056  ;;
3057esac
3058fi
3059PERL=$ac_cv_path_PERL
3060if test -n "$PERL"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3062$as_echo "$PERL" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  test -n "$PERL" && break
3070done
3071
3072
3073   ### We don't really have any need for a specific version
3074   ### of perl for the moment, so we don't verify it.
3075
3076
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3078$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3079set x ${MAKE-make}
3080ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3081if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3082  $as_echo_n "(cached) " >&6
3083else
3084  cat >conftest.make <<\_ACEOF
3085SHELL = /bin/sh
3086all:
3087	@echo '@@@%%%=$(MAKE)=@@@%%%'
3088_ACEOF
3089# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3090case `${MAKE-make} -f conftest.make 2>/dev/null` in
3091  *@@@%%%=?*=@@@%%%*)
3092    eval ac_cv_prog_make_${ac_make}_set=yes;;
3093  *)
3094    eval ac_cv_prog_make_${ac_make}_set=no;;
3095esac
3096rm -f conftest.make
3097fi
3098if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100$as_echo "yes" >&6; }
3101  SET_MAKE=
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105  SET_MAKE="MAKE=${MAKE-make}"
3106fi
3107
3108# Find a good install program.  We prefer a C program (faster),
3109# so one script is as good as another.  But avoid the broken or
3110# incompatible versions:
3111# SysV /etc/install, /usr/sbin/install
3112# SunOS /usr/etc/install
3113# IRIX /sbin/install
3114# AIX /bin/install
3115# AmigaOS /C/install, which installs bootblocks on floppy discs
3116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119# OS/2's system install, which has a completely different semantic
3120# ./install, which can be erroneously created by make from ./install.sh.
3121# Reject install programs that cannot install multiple files.
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3123$as_echo_n "checking for a BSD-compatible install... " >&6; }
3124if test -z "$INSTALL"; then
3125if ${ac_cv_path_install+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    # Account for people who put trailing slashes in PATH elements.
3134case $as_dir/ in #((
3135  ./ | .// | /[cC]/* | \
3136  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3137  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3138  /usr/ucb/* ) ;;
3139  *)
3140    # OSF1 and SCO ODT 3.0 have their own names for install.
3141    # Don't use installbsd from OSF since it installs stuff as root
3142    # by default.
3143    for ac_prog in ginstall scoinst install; do
3144      for ac_exec_ext in '' $ac_executable_extensions; do
3145	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3146	  if test $ac_prog = install &&
3147	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148	    # AIX install.  It has an incompatible calling convention.
3149	    :
3150	  elif test $ac_prog = install &&
3151	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3152	    # program-specific install script used by HP pwplus--don't use.
3153	    :
3154	  else
3155	    rm -rf conftest.one conftest.two conftest.dir
3156	    echo one > conftest.one
3157	    echo two > conftest.two
3158	    mkdir conftest.dir
3159	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3160	      test -s conftest.one && test -s conftest.two &&
3161	      test -s conftest.dir/conftest.one &&
3162	      test -s conftest.dir/conftest.two
3163	    then
3164	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3165	      break 3
3166	    fi
3167	  fi
3168	fi
3169      done
3170    done
3171    ;;
3172esac
3173
3174  done
3175IFS=$as_save_IFS
3176
3177rm -rf conftest.one conftest.two conftest.dir
3178
3179fi
3180  if test "${ac_cv_path_install+set}" = set; then
3181    INSTALL=$ac_cv_path_install
3182  else
3183    # As a last resort, use the slow shell script.  Don't cache a
3184    # value for INSTALL within a source directory, because that will
3185    # break other packages using the cache if that directory is
3186    # removed, or if the value is a relative name.
3187    INSTALL=$ac_install_sh
3188  fi
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3191$as_echo "$INSTALL" >&6; }
3192
3193# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3194# It thinks the first close brace ends the variable substitution.
3195test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3196
3197test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3198
3199test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3200
3201if test -n "$ac_tool_prefix"; then
3202  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3203set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205$as_echo_n "checking for $ac_word... " >&6; }
3206if ${ac_cv_prog_RANLIB+:} false; then :
3207  $as_echo_n "(cached) " >&6
3208else
3209  if test -n "$RANLIB"; then
3210  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215  IFS=$as_save_IFS
3216  test -z "$as_dir" && as_dir=.
3217    for ac_exec_ext in '' $ac_executable_extensions; do
3218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224  done
3225IFS=$as_save_IFS
3226
3227fi
3228fi
3229RANLIB=$ac_cv_prog_RANLIB
3230if test -n "$RANLIB"; then
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3232$as_echo "$RANLIB" >&6; }
3233else
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236fi
3237
3238
3239fi
3240if test -z "$ac_cv_prog_RANLIB"; then
3241  ac_ct_RANLIB=$RANLIB
3242  # Extract the first word of "ranlib", so it can be a program name with args.
3243set dummy ranlib; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$ac_ct_RANLIB"; then
3250  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_ac_ct_RANLIB="ranlib"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3270if test -n "$ac_ct_RANLIB"; then
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3272$as_echo "$ac_ct_RANLIB" >&6; }
3273else
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278  if test "x$ac_ct_RANLIB" = x; then
3279    RANLIB=":"
3280  else
3281    case $cross_compiling:$ac_tool_warned in
3282yes:)
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285ac_tool_warned=yes ;;
3286esac
3287    RANLIB=$ac_ct_RANLIB
3288  fi
3289else
3290  RANLIB="$ac_cv_prog_RANLIB"
3291fi
3292
3293
3294# Are we in devel mode ?
3295
3296    # Check whether --enable-build was given.
3297if test "${enable_build+set}" = set; then :
3298  enableval=$enable_build; BUILD_TYPE=$enableval
3299else
3300  BUILD_TYPE=Production
3301fi
3302
3303
3304
3305
3306# checking for gtk
3307
3308  # Extract the first word of "pkg-config", so it can be a program name with args.
3309set dummy pkg-config; ac_word=$2
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311$as_echo_n "checking for $ac_word... " >&6; }
3312if ${ac_cv_path_PKG_CONFIG+:} false; then :
3313  $as_echo_n "(cached) " >&6
3314else
3315  case $PKG_CONFIG in
3316  [\\/]* | ?:[\\/]*)
3317  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3318  ;;
3319  *)
3320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  test -z "$as_dir" && as_dir=.
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3336  ;;
3337esac
3338fi
3339PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3340if test -n "$PKG_CONFIG"; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3342$as_echo "$PKG_CONFIG" >&6; }
3343else
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348
3349  min_gtk_version=2.24.0
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
3351$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
3352  no_gtk=""
3353  GTK="gtk+-2.0"
3354  if test "$PKG_CONFIG" = "no" ; then
3355    no_gtk=yes
3356  else
3357    GTK_PREFIX=`$PKG_CONFIG $GTK --variable=prefix`
3358    GTK_CFLAGS=`$PKG_CONFIG $GTK --cflags`
3359    GTK_LIBS=`$PKG_CONFIG $GTK --libs`
3360    gtk_config_major_version=`$PKG_CONFIG $GTK --modversion | \
3361           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3362    gtk_config_minor_version=`$PKG_CONFIG $GTK --modversion | \
3363           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3364    gtk_config_micro_version=`$PKG_CONFIG $GTK --modversion | \
3365           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3366
3367    GTK_LIBS_FOR_GNATMAKE=`echo $GTK_LIBS | sed -e 's/-framework \([^ ]*\)/-Wl,-framework -Wl,\1/g'`
3368
3369    ac_save_CFLAGS="$CFLAGS"
3370    ac_save_LIBS="$LIBS"
3371    CFLAGS="$CFLAGS $GTK_CFLAGS"
3372    LIBS="$LIBS $GTK_LIBS"
3373      rm -f conf.gtktest
3374      if test "$cross_compiling" = yes; then :
3375  echo $ac_n "cross compiling; assumed OK... $ac_c"
3376else
3377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379
3380#include <gtk/gtk.h>
3381#include <stdio.h>
3382
3383int
3384main ()
3385{
3386  int major, minor, micro;
3387  char *tmp_version;
3388
3389  system ("touch conf.gtktest");
3390
3391  /* HP/UX 9 (%@#!) writes to sscanf strings */
3392  tmp_version = g_strdup("$min_gtk_version");
3393  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3394     printf("%s, bad version string\n", "$min_gtk_version");
3395     exit(1);
3396   }
3397
3398  if ((gtk_major_version != $gtk_config_major_version) ||
3399      (gtk_minor_version != $gtk_config_minor_version) ||
3400      (gtk_micro_version != $gtk_config_micro_version))
3401    {
3402      printf("\n*** 'pkg-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
3403             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
3404             gtk_major_version, gtk_minor_version, gtk_micro_version);
3405      printf ("*** was found! If pkg-config was correct, then it is best\n");
3406      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
3407      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3408      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3409      printf("*** required on your system.\n");
3410    }
3411  else
3412    {
3413      if ((gtk_major_version > major) ||
3414        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
3415        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
3416      {
3417        return 0;
3418       }
3419     else
3420      {
3421        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
3422               gtk_major_version, gtk_minor_version, gtk_micro_version);
3423        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
3424	       major, minor, micro);
3425        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
3426        printf("***\n");
3427      }
3428    }
3429  return 1;
3430}
3431
3432_ACEOF
3433if ac_fn_c_try_run "$LINENO"; then :
3434
3435else
3436  no_gtk=yes
3437fi
3438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3439  conftest.$ac_objext conftest.beam conftest.$ac_ext
3440fi
3441
3442
3443    CFLAGS="$ac_save_CFLAGS"
3444    LIBS="$ac_save_LIBS"
3445  fi
3446
3447  if test "x$no_gtk" = x ; then
3448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449$as_echo "yes" >&6; }
3450     :
3451  else
3452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
3454     if test "$GTK_CONFIG" = "no" ; then
3455       echo "*** The pkg-config script could not be found"
3456       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
3457       echo "*** your path."
3458     else
3459       if test -f conf.gtktest ; then
3460        :
3461       else
3462          echo "*** Could not run GTK test program, checking why..."
3463          CFLAGS="$CFLAGS $GTK_CFLAGS"
3464          LIBS="$LIBS $GTK_LIBS"
3465          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467
3468#include <gtk/gtk.h>
3469#include <stdio.h>
3470
3471int
3472main ()
3473{
3474 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
3475  ;
3476  return 0;
3477}
3478_ACEOF
3479if ac_fn_c_try_link "$LINENO"; then :
3480   echo "*** The test program compiled, but did not run. This usually means"
3481          echo "*** that the run-time linker is not finding GTK or finding the wrong"
3482          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
3483          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3484          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3485          echo "*** is required on your system"
3486	  echo "***"
3487          echo "*** If you have an old version installed, it is best to remove it, although"
3488          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3489          echo "***"
3490          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3491          echo "*** came with the system with the command"
3492          echo "***"
3493          echo "***    rpm --erase --nodeps gtk gtk-devel"
3494else
3495   echo "*** The test program failed to compile or link. See the file config.log for the"
3496          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
3497          echo "*** or that you have moved GTK since it was installed."
3498fi
3499rm -f core conftest.err conftest.$ac_objext \
3500    conftest$ac_exeext conftest.$ac_ext
3501          CFLAGS="$ac_save_CFLAGS"
3502          LIBS="$ac_save_LIBS"
3503       fi
3504     fi
3505     GTK_CFLAGS=""
3506     GTK_LIBS=""
3507     as_fn_error $? "Test for GTK failed. See the file 'INSTALL' for help." "$LINENO" 5
3508  fi
3509
3510
3511
3512
3513  rm -f conf.gtktest
3514
3515
3516# checking for PANGO_UNDERLINE_ERROR
3517
3518  ac_save_CFLAGS="$CFLAGS"
3519  ac_save_LIBS="$LIBS"
3520  CFLAGS="$CFLAGS $GTK_CFLAGS"
3521  LIBS="$LIBS $GTK_LIBS"
3522  CFLAGS="$CFLAGS $GTK_CFLAGS"
3523  LIBS="$LIBS $GTK_LIBS"
3524  DEFINE_UNDERLINE_ERROR="#undef HAVE_PANGO_UNDERLINE_ERROR"
3525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO_UNDERLINE_ERROR" >&5
3526$as_echo_n "checking for PANGO_UNDERLINE_ERROR... " >&6; }
3527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529 #include <pango/pango.h>
3530int
3531main ()
3532{
3533 PangoUnderline underline = PANGO_UNDERLINE_ERROR;
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_link "$LINENO"; then :
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3540$as_echo "yes" >&6; }
3541      DEFINE_UNDERLINE_ERROR="#define HAVE_PANGO_UNDERLINE_ERROR"
3542else
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546rm -f core conftest.err conftest.$ac_objext \
3547    conftest$ac_exeext conftest.$ac_ext
3548
3549  CFLAGS="$ac_save_CFLAGS"
3550  LIBS="$ac_save_LIBS"
3551
3552
3553# Gettext stuff
3554ALL_LINGUAS="fr"
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3556$as_echo_n "checking whether NLS is requested... " >&6; }
3557        # Check whether --enable-nls was given.
3558if test "${enable_nls+set}" = set; then :
3559  enableval=$enable_nls; USE_NLS=$enableval
3560else
3561  USE_NLS=yes
3562fi
3563
3564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3565$as_echo "$USE_NLS" >&6; }
3566
3567
3568    GETTEXT_INTL="False"
3569    HAVE_GETTEXT="False"
3570
3571        if test "$USE_NLS" = "yes"; then
3572      $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3573
3574
3575            nls_cv_header_intl=
3576      nls_cv_header_libgt=
3577
3578      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in libc" >&5
3579$as_echo_n "checking for gettext in libc... " >&6; }
3580if ${gt_cv_func_gettext_libc+:} false; then :
3581  $as_echo_n "(cached) " >&6
3582else
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585extern int gettext(char*);
3586int
3587main ()
3588{
3589return (int) gettext ("")
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594if ac_fn_c_try_link "$LINENO"; then :
3595  gt_cv_func_gettext_libc=yes
3596else
3597  gt_cv_func_gettext_libc=no
3598fi
3599rm -f core conftest.err conftest.$ac_objext \
3600    conftest$ac_exeext conftest.$ac_ext
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gettext_libc" >&5
3603$as_echo "$gt_cv_func_gettext_libc" >&6; }
3604
3605      if test "$gt_cv_func_gettext_libc" != "yes"; then
3606        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
3607$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
3608if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
3609  $as_echo_n "(cached) " >&6
3610else
3611  ac_check_lib_save_LIBS=$LIBS
3612LIBS="-lintl  $LIBS"
3613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615
3616/* Override any GCC internal prototype to avoid an error.
3617   Use char because int might match the return type of a GCC
3618   builtin and then its argument prototype would still apply.  */
3619#ifdef __cplusplus
3620extern "C"
3621#endif
3622char bindtextdomain ();
3623int
3624main ()
3625{
3626return bindtextdomain ();
3627  ;
3628  return 0;
3629}
3630_ACEOF
3631if ac_fn_c_try_link "$LINENO"; then :
3632  ac_cv_lib_intl_bindtextdomain=yes
3633else
3634  ac_cv_lib_intl_bindtextdomain=no
3635fi
3636rm -f core conftest.err conftest.$ac_objext \
3637    conftest$ac_exeext conftest.$ac_ext
3638LIBS=$ac_check_lib_save_LIBS
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
3641$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
3642if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in libintl" >&5
3644$as_echo_n "checking for gettext in libintl... " >&6; }
3645if ${gt_cv_func_gettext_libintl+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
3649$as_echo_n "checking for gettext in -lintl... " >&6; }
3650if ${ac_cv_lib_intl_gettext+:} false; then :
3651  $as_echo_n "(cached) " >&6
3652else
3653  ac_check_lib_save_LIBS=$LIBS
3654LIBS="-lintl  $LIBS"
3655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658/* Override any GCC internal prototype to avoid an error.
3659   Use char because int might match the return type of a GCC
3660   builtin and then its argument prototype would still apply.  */
3661#ifdef __cplusplus
3662extern "C"
3663#endif
3664char gettext ();
3665int
3666main ()
3667{
3668return gettext ();
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_link "$LINENO"; then :
3674  ac_cv_lib_intl_gettext=yes
3675else
3676  ac_cv_lib_intl_gettext=no
3677fi
3678rm -f core conftest.err conftest.$ac_objext \
3679    conftest$ac_exeext conftest.$ac_ext
3680LIBS=$ac_check_lib_save_LIBS
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
3683$as_echo "$ac_cv_lib_intl_gettext" >&6; }
3684if test "x$ac_cv_lib_intl_gettext" = xyes; then :
3685  gt_cv_func_gettext_libintl=yes
3686else
3687  gt_cv_func_gettext_libintl=no
3688fi
3689
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gettext_libintl" >&5
3692$as_echo "$gt_cv_func_gettext_libintl" >&6; }
3693fi
3694
3695
3696	  if test "$gt_cv_func_gettext_libintl" = "yes"; then
3697            GETTEXT_INTL="True"
3698          fi
3699      fi
3700
3701       if test "$gt_cv_func_gettext_libc" = "yes" \
3702         || test "$gt_cv_func_gettext_libintl" = "yes"; then
3703            HAVE_GETTEXT="True"
3704       fi
3705    fi
3706
3707
3708
3709
3710
3711
3712# try to find OpenGL if present
3713
3714
3715   # checking for OpenGL libraries
3716
3717# Check whether --with-GL was given.
3718if test "${with_GL+set}" = set; then :
3719  withval=$with_GL;
3720fi
3721
3722
3723# Check whether --with-GL-prefix was given.
3724if test "${with_GL_prefix+set}" = set; then :
3725  withval=$with_GL_prefix;
3726fi
3727
3728
3729   if test "x$with_GL_prefix" = "x" ; then
3730      GL_LDOPTS=""
3731      GL_CFLAGS=""
3732   else
3733      GL_CFLAGS="-I$with_GL_prefix/include"
3734      case "${host}" in
3735         *64*)
3736            GL_LDOPTS="-L$with_GL_prefix/lib64"
3737            ;;
3738         *)
3739            GL_LDOPTS="-L$with_GL_prefix/lib"
3740            ;;
3741      esac
3742   fi
3743
3744   saved_LIBS="$LIBS"
3745
3746   if test "x$with_GL" != xno ; then
3747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL" >&5
3748$as_echo_n "checking for OpenGL... " >&6; }
3749     LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGLU -lGL"
3750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752
3753int
3754main ()
3755{
3756 char glBegin(); glBegin();
3757  ;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_link "$LINENO"; then :
3762  have_GL=yes
3763else
3764  have_GL=no
3765fi
3766rm -f core conftest.err conftest.$ac_objext \
3767    conftest$ac_exeext conftest.$ac_ext
3768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_GL" >&5
3769$as_echo "$have_GL" >&6; }
3770
3771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL32" >&5
3772$as_echo_n "checking for GL32... " >&6; }
3773     LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lglu32 -lopengl32 -lgdi32"
3774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777#include <GL/gl.h>
3778#include <windows.h>
3779int
3780main ()
3781{
3782 glBegin(0);
3783  CreateCompatibleDC(NULL);
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788if ac_fn_c_try_link "$LINENO"; then :
3789  have_GL32=yes
3790else
3791  have_GL32=no
3792fi
3793rm -f core conftest.err conftest.$ac_objext \
3794    conftest$ac_exeext conftest.$ac_ext
3795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_GL32" >&5
3796$as_echo "$have_GL32" >&6; }
3797
3798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mesa" >&5
3799$as_echo_n "checking for Mesa... " >&6; }
3800     LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL"
3801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807 char glBegin(); glBegin();
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812if ac_fn_c_try_link "$LINENO"; then :
3813  have_MesaGL=yes
3814else
3815  have_MesaGL=no
3816fi
3817rm -f core conftest.err conftest.$ac_objext \
3818    conftest$ac_exeext conftest.$ac_ext
3819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_MesaGL" >&5
3820$as_echo "$have_MesaGL" >&6; }
3821
3822     if test "x$have_MesaGL" = "xno"; then
3823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mesa with pthreads" >&5
3824$as_echo_n "checking Mesa with pthreads... " >&6; }
3825       LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
3826       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h.  */
3828
3829int
3830main ()
3831{
3832 char glBegin(); glBegin();
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837if ac_fn_c_try_link "$LINENO"; then :
3838  have_MesaGL_pthread=yes
3839else
3840  have_MesaGL_pthread=no
3841fi
3842rm -f core conftest.err conftest.$ac_objext \
3843    conftest$ac_exeext conftest.$ac_ext
3844       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_MesaGL_pthread" >&5
3845$as_echo "$have_MesaGL_pthread" >&6; }
3846     fi
3847   fi
3848
3849   LIBS="$saved_LIBS"
3850   HAVE_OPENGL="False"
3851
3852   case "x$with_GL" in
3853   x|xauto)
3854      if test "x$have_GL" = "xyes"; then
3855         GL_LIBS="$GL_LDOPTS -lGLU -lGL"
3856         HAVE_OPENGL="True"
3857      elif test "x$have_GL32" = "xyes"; then
3858         GL_LIBS="$GL_LDOPTS -lglu32 -lopengl32 -lgdi32"
3859         HAVE_OPENGL="True"
3860      elif test "x$have_MesaGL" = "xyes"; then
3861         GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL"
3862         HAVE_OPENGL="True"
3863      elif test "x$have_MesaGL_pthread" = "xyes"; then
3864         GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
3865         HAVE_OPENGL="True"
3866      fi
3867      ;;
3868   xGL)
3869      if test "x$have_GL" = "xyes"; then
3870         GL_LIBS="$GL_LDOPTS -lGLU -lGL"
3871         HAVE_OPENGL="True"
3872      else
3873         as_fn_error $? "Missing OpenGL library" "$LINENO" 5
3874      fi
3875      ;;
3876   xGL32)
3877      if test "x$have_GL" = "xyes"; then
3878         GL_LIBS="$GL_LDOPTS -lglu32 -lopengl32 -lgdi32"
3879         HAVE_OPENGL="True"
3880      else
3881         as_fn_error $? "Missing Windows OpenGL library" "$LINENO" 5
3882      fi
3883      ;;
3884   xMesaGL)
3885      if test "x$have_MesaGL" = "xyes"; then
3886         GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL"
3887         HAVE_OPENGL="True"
3888      elif test "x$have_MesaGL_pthread" = "xyes"; then
3889         GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
3890         HAVE_OPENGL="True"
3891      else
3892         as_fn_error $? "Missing Mesa library" "$LINENO" 5
3893      fi
3894      ;;
3895   xno)
3896      ;;
3897   *)
3898      as_fn_error $? "Unknown value for \"--with-GL\" option. Should be either auto, GL32, GL, MesaGL, no" "$LINENO" 5
3899      ;;
3900   esac
3901
3902   if test "x$HAVE_OPENGL" = "xFalse"; then
3903      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** OpenGL support will not be integrated into GtkAda ***" >&5
3904$as_echo "*** OpenGL support will not be integrated into GtkAda ***" >&6; }
3905   fi
3906
3907
3908
3909
3910
3911
3912
3913
3914# try to find gnome if present
3915
3916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnome2" >&5
3917$as_echo_n "checking for gnome2... " >&6; }
3918  GNOME_CFLAGS=""
3919  GNOME_LIBS=""
3920  GNOME_STATIC_LIBS=""
3921
3922  if test "$PKG_CONFIG" = "no" ; then
3923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925    HAVE_GNOME="False"
3926  else
3927    GNOMEUI="libgnomeui-2.0"
3928    GNOME_PREFIX=`$PKG_CONFIG $GNOMEUI --variable=prefix`
3929    if test "x$GNOME_PREFIX" = "x"; then
3930      HAVE_GNOME="False"
3931      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
3933    else
3934      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935$as_echo "yes" >&6; }
3936      HAVE_GNOME="True"
3937      GNOME_CFLAGS=`$PKG_CONFIG $GNOMEUI --cflags`
3938      GNOME_LIBS=`$PKG_CONFIG $GNOMEUI --libs`
3939      GNOME_STATIC_LIBS="$GNOME_PREFIX/lib/libgnomeui-2.a $GNOME_PREFIX/lib/libgnome-2.a $GNOME_PREFIX/lib/libart_lgpl.a $GNOME_PREFIX/lib/lib/libpopt.a $GNOME_PREFIX/lib/libbonoboui-2.a"
3940    fi
3941  fi
3942
3943
3944
3945
3946
3947
3948
3949# Set the version number of GtkAda
3950
3951
3952
3953
3954
3955
3956EXEC_PREFIX="$prefix"
3957
3958
3959# Ignore user's choice of libdir, as well as configure's own default,
3960# because we want GtkAda to always install in /lib (backward compatibility)
3961
3962libdir='${prefix}/lib'
3963
3964ac_config_files="$ac_config_files Makefile src/Makefile.common src/Makefile src/tools/gtkada-config src/tools/Makefile testgtk/Makefile src/gtkextra/Makefile src/opengl/Makefile src/gnome/Makefile docs/Makefile docs/gtkada_rm/Makefile po/Makefile src/config.h projects/gtkada.pc projects/gtkada_install_dynamic.gpr projects/gtkada_install_dynamic_gl.gpr"
3965
3966cat >confcache <<\_ACEOF
3967# This file is a shell script that caches the results of configure
3968# tests run on this system so they can be shared between configure
3969# scripts and configure runs, see configure's option --config-cache.
3970# It is not useful on other systems.  If it contains results you don't
3971# want to keep, you may remove or edit it.
3972#
3973# config.status only pays attention to the cache file if you give it
3974# the --recheck option to rerun configure.
3975#
3976# `ac_cv_env_foo' variables (set or unset) will be overridden when
3977# loading this file, other *unset* `ac_cv_foo' will be assigned the
3978# following values.
3979
3980_ACEOF
3981
3982# The following way of writing the cache mishandles newlines in values,
3983# but we know of no workaround that is simple, portable, and efficient.
3984# So, we kill variables containing newlines.
3985# Ultrix sh set writes to stderr and can't be redirected directly,
3986# and sets the high bit in the cache file unless we assign to the vars.
3987(
3988  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3989    eval ac_val=\$$ac_var
3990    case $ac_val in #(
3991    *${as_nl}*)
3992      case $ac_var in #(
3993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3995      esac
3996      case $ac_var in #(
3997      _ | IFS | as_nl) ;; #(
3998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3999      *) { eval $ac_var=; unset $ac_var;} ;;
4000      esac ;;
4001    esac
4002  done
4003
4004  (set) 2>&1 |
4005    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4006    *${as_nl}ac_space=\ *)
4007      # `set' does not quote correctly, so add quotes: double-quote
4008      # substitution turns \\\\ into \\, and sed turns \\ into \.
4009      sed -n \
4010	"s/'/'\\\\''/g;
4011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4012      ;; #(
4013    *)
4014      # `set' quotes correctly as required by POSIX, so do not add quotes.
4015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4016      ;;
4017    esac |
4018    sort
4019) |
4020  sed '
4021     /^ac_cv_env_/b end
4022     t clear
4023     :clear
4024     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4025     t end
4026     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4027     :end' >>confcache
4028if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4029  if test -w "$cache_file"; then
4030    if test "x$cache_file" != "x/dev/null"; then
4031      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4032$as_echo "$as_me: updating cache $cache_file" >&6;}
4033      if test ! -f "$cache_file" || test -h "$cache_file"; then
4034	cat confcache >"$cache_file"
4035      else
4036        case $cache_file in #(
4037        */* | ?:*)
4038	  mv -f confcache "$cache_file"$$ &&
4039	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4040        *)
4041	  mv -f confcache "$cache_file" ;;
4042	esac
4043      fi
4044    fi
4045  else
4046    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4047$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4048  fi
4049fi
4050rm -f confcache
4051
4052test "x$prefix" = xNONE && prefix=$ac_default_prefix
4053# Let make expand exec_prefix.
4054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4055
4056# Transform confdefs.h into DEFS.
4057# Protect against shell expansion while executing Makefile rules.
4058# Protect against Makefile macro expansion.
4059#
4060# If the first sed substitution is executed (which looks for macros that
4061# take arguments), then branch to the quote section.  Otherwise,
4062# look for a macro that doesn't take arguments.
4063ac_script='
4064:mline
4065/\\$/{
4066 N
4067 s,\\\n,,
4068 b mline
4069}
4070t clear
4071:clear
4072s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
4073t quote
4074s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
4075t quote
4076b any
4077:quote
4078s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4079s/\[/\\&/g
4080s/\]/\\&/g
4081s/\$/$$/g
4082H
4083:any
4084${
4085	g
4086	s/^\n//
4087	s/\n/ /g
4088	p
4089}
4090'
4091DEFS=`sed -n "$ac_script" confdefs.h`
4092
4093
4094ac_libobjs=
4095ac_ltlibobjs=
4096U=
4097for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4098  # 1. Remove the extension, and $U if already installed.
4099  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4100  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4101  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4102  #    will be set to the directory where LIBOBJS objects are built.
4103  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4104  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4105done
4106LIBOBJS=$ac_libobjs
4107
4108LTLIBOBJS=$ac_ltlibobjs
4109
4110
4111
4112: "${CONFIG_STATUS=./config.status}"
4113ac_write_fail=0
4114ac_clean_files_save=$ac_clean_files
4115ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4117$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4118as_write_fail=0
4119cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4120#! $SHELL
4121# Generated by $as_me.
4122# Run this file to recreate the current configuration.
4123# Compiler output produced by configure, useful for debugging
4124# configure, is in config.log if it exists.
4125
4126debug=false
4127ac_cs_recheck=false
4128ac_cs_silent=false
4129
4130SHELL=\${CONFIG_SHELL-$SHELL}
4131export SHELL
4132_ASEOF
4133cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4134## -------------------- ##
4135## M4sh Initialization. ##
4136## -------------------- ##
4137
4138# Be more Bourne compatible
4139DUALCASE=1; export DUALCASE # for MKS sh
4140if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4141  emulate sh
4142  NULLCMD=:
4143  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4144  # is contrary to our usage.  Disable this feature.
4145  alias -g '${1+"$@"}'='"$@"'
4146  setopt NO_GLOB_SUBST
4147else
4148  case `(set -o) 2>/dev/null` in #(
4149  *posix*) :
4150    set -o posix ;; #(
4151  *) :
4152     ;;
4153esac
4154fi
4155
4156
4157as_nl='
4158'
4159export as_nl
4160# Printing a long string crashes Solaris 7 /usr/bin/printf.
4161as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4162as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4163as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4164# Prefer a ksh shell builtin over an external printf program on Solaris,
4165# but without wasting forks for bash or zsh.
4166if test -z "$BASH_VERSION$ZSH_VERSION" \
4167    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4168  as_echo='print -r --'
4169  as_echo_n='print -rn --'
4170elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4171  as_echo='printf %s\n'
4172  as_echo_n='printf %s'
4173else
4174  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4175    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4176    as_echo_n='/usr/ucb/echo -n'
4177  else
4178    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4179    as_echo_n_body='eval
4180      arg=$1;
4181      case $arg in #(
4182      *"$as_nl"*)
4183	expr "X$arg" : "X\\(.*\\)$as_nl";
4184	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4185      esac;
4186      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4187    '
4188    export as_echo_n_body
4189    as_echo_n='sh -c $as_echo_n_body as_echo'
4190  fi
4191  export as_echo_body
4192  as_echo='sh -c $as_echo_body as_echo'
4193fi
4194
4195# The user is always right.
4196if test "${PATH_SEPARATOR+set}" != set; then
4197  PATH_SEPARATOR=:
4198  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4199    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4200      PATH_SEPARATOR=';'
4201  }
4202fi
4203
4204
4205# IFS
4206# We need space, tab and new line, in precisely that order.  Quoting is
4207# there to prevent editors from complaining about space-tab.
4208# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4209# splitting by setting IFS to empty value.)
4210IFS=" ""	$as_nl"
4211
4212# Find who we are.  Look in the path if we contain no directory separator.
4213as_myself=
4214case $0 in #((
4215  *[\\/]* ) as_myself=$0 ;;
4216  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4222  done
4223IFS=$as_save_IFS
4224
4225     ;;
4226esac
4227# We did not find ourselves, most probably we were run as `sh COMMAND'
4228# in which case we are not to be found in the path.
4229if test "x$as_myself" = x; then
4230  as_myself=$0
4231fi
4232if test ! -f "$as_myself"; then
4233  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4234  exit 1
4235fi
4236
4237# Unset variables that we do not need and which cause bugs (e.g. in
4238# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4239# suppresses any "Segmentation fault" message there.  '((' could
4240# trigger a bug in pdksh 5.2.14.
4241for as_var in BASH_ENV ENV MAIL MAILPATH
4242do eval test x\${$as_var+set} = xset \
4243  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4244done
4245PS1='$ '
4246PS2='> '
4247PS4='+ '
4248
4249# NLS nuisances.
4250LC_ALL=C
4251export LC_ALL
4252LANGUAGE=C
4253export LANGUAGE
4254
4255# CDPATH.
4256(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4257
4258
4259# as_fn_error STATUS ERROR [LINENO LOG_FD]
4260# ----------------------------------------
4261# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4262# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4263# script with STATUS, using 1 if that was 0.
4264as_fn_error ()
4265{
4266  as_status=$1; test $as_status -eq 0 && as_status=1
4267  if test "$4"; then
4268    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4269    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4270  fi
4271  $as_echo "$as_me: error: $2" >&2
4272  as_fn_exit $as_status
4273} # as_fn_error
4274
4275
4276# as_fn_set_status STATUS
4277# -----------------------
4278# Set $? to STATUS, without forking.
4279as_fn_set_status ()
4280{
4281  return $1
4282} # as_fn_set_status
4283
4284# as_fn_exit STATUS
4285# -----------------
4286# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4287as_fn_exit ()
4288{
4289  set +e
4290  as_fn_set_status $1
4291  exit $1
4292} # as_fn_exit
4293
4294# as_fn_unset VAR
4295# ---------------
4296# Portably unset VAR.
4297as_fn_unset ()
4298{
4299  { eval $1=; unset $1;}
4300}
4301as_unset=as_fn_unset
4302# as_fn_append VAR VALUE
4303# ----------------------
4304# Append the text in VALUE to the end of the definition contained in VAR. Take
4305# advantage of any shell optimizations that allow amortized linear growth over
4306# repeated appends, instead of the typical quadratic growth present in naive
4307# implementations.
4308if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4309  eval 'as_fn_append ()
4310  {
4311    eval $1+=\$2
4312  }'
4313else
4314  as_fn_append ()
4315  {
4316    eval $1=\$$1\$2
4317  }
4318fi # as_fn_append
4319
4320# as_fn_arith ARG...
4321# ------------------
4322# Perform arithmetic evaluation on the ARGs, and store the result in the
4323# global $as_val. Take advantage of shells that can avoid forks. The arguments
4324# must be portable across $(()) and expr.
4325if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4326  eval 'as_fn_arith ()
4327  {
4328    as_val=$(( $* ))
4329  }'
4330else
4331  as_fn_arith ()
4332  {
4333    as_val=`expr "$@" || test $? -eq 1`
4334  }
4335fi # as_fn_arith
4336
4337
4338if expr a : '\(a\)' >/dev/null 2>&1 &&
4339   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4340  as_expr=expr
4341else
4342  as_expr=false
4343fi
4344
4345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4346  as_basename=basename
4347else
4348  as_basename=false
4349fi
4350
4351if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4352  as_dirname=dirname
4353else
4354  as_dirname=false
4355fi
4356
4357as_me=`$as_basename -- "$0" ||
4358$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4359	 X"$0" : 'X\(//\)$' \| \
4360	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4361$as_echo X/"$0" |
4362    sed '/^.*\/\([^/][^/]*\)\/*$/{
4363	    s//\1/
4364	    q
4365	  }
4366	  /^X\/\(\/\/\)$/{
4367	    s//\1/
4368	    q
4369	  }
4370	  /^X\/\(\/\).*/{
4371	    s//\1/
4372	    q
4373	  }
4374	  s/.*/./; q'`
4375
4376# Avoid depending upon Character Ranges.
4377as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4378as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4379as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4380as_cr_digits='0123456789'
4381as_cr_alnum=$as_cr_Letters$as_cr_digits
4382
4383ECHO_C= ECHO_N= ECHO_T=
4384case `echo -n x` in #(((((
4385-n*)
4386  case `echo 'xy\c'` in
4387  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4388  xy)  ECHO_C='\c';;
4389  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4390       ECHO_T='	';;
4391  esac;;
4392*)
4393  ECHO_N='-n';;
4394esac
4395
4396rm -f conf$$ conf$$.exe conf$$.file
4397if test -d conf$$.dir; then
4398  rm -f conf$$.dir/conf$$.file
4399else
4400  rm -f conf$$.dir
4401  mkdir conf$$.dir 2>/dev/null
4402fi
4403if (echo >conf$$.file) 2>/dev/null; then
4404  if ln -s conf$$.file conf$$ 2>/dev/null; then
4405    as_ln_s='ln -s'
4406    # ... but there are two gotchas:
4407    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4408    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4409    # In both cases, we have to default to `cp -pR'.
4410    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4411      as_ln_s='cp -pR'
4412  elif ln conf$$.file conf$$ 2>/dev/null; then
4413    as_ln_s=ln
4414  else
4415    as_ln_s='cp -pR'
4416  fi
4417else
4418  as_ln_s='cp -pR'
4419fi
4420rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4421rmdir conf$$.dir 2>/dev/null
4422
4423
4424# as_fn_mkdir_p
4425# -------------
4426# Create "$as_dir" as a directory, including parents if necessary.
4427as_fn_mkdir_p ()
4428{
4429
4430  case $as_dir in #(
4431  -*) as_dir=./$as_dir;;
4432  esac
4433  test -d "$as_dir" || eval $as_mkdir_p || {
4434    as_dirs=
4435    while :; do
4436      case $as_dir in #(
4437      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4438      *) as_qdir=$as_dir;;
4439      esac
4440      as_dirs="'$as_qdir' $as_dirs"
4441      as_dir=`$as_dirname -- "$as_dir" ||
4442$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4443	 X"$as_dir" : 'X\(//\)[^/]' \| \
4444	 X"$as_dir" : 'X\(//\)$' \| \
4445	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4446$as_echo X"$as_dir" |
4447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4448	    s//\1/
4449	    q
4450	  }
4451	  /^X\(\/\/\)[^/].*/{
4452	    s//\1/
4453	    q
4454	  }
4455	  /^X\(\/\/\)$/{
4456	    s//\1/
4457	    q
4458	  }
4459	  /^X\(\/\).*/{
4460	    s//\1/
4461	    q
4462	  }
4463	  s/.*/./; q'`
4464      test -d "$as_dir" && break
4465    done
4466    test -z "$as_dirs" || eval "mkdir $as_dirs"
4467  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4468
4469
4470} # as_fn_mkdir_p
4471if mkdir -p . 2>/dev/null; then
4472  as_mkdir_p='mkdir -p "$as_dir"'
4473else
4474  test -d ./-p && rmdir ./-p
4475  as_mkdir_p=false
4476fi
4477
4478
4479# as_fn_executable_p FILE
4480# -----------------------
4481# Test if FILE is an executable regular file.
4482as_fn_executable_p ()
4483{
4484  test -f "$1" && test -x "$1"
4485} # as_fn_executable_p
4486as_test_x='test -x'
4487as_executable_p=as_fn_executable_p
4488
4489# Sed expression to map a string onto a valid CPP name.
4490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4491
4492# Sed expression to map a string onto a valid variable name.
4493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4494
4495
4496exec 6>&1
4497## ----------------------------------- ##
4498## Main body of $CONFIG_STATUS script. ##
4499## ----------------------------------- ##
4500_ASEOF
4501test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4502
4503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4504# Save the log message, to keep $0 and so on meaningful, and to
4505# report actual input values of CONFIG_FILES etc. instead of their
4506# values after options handling.
4507ac_log="
4508This file was extended by $as_me, which was
4509generated by GNU Autoconf 2.69.  Invocation command line was
4510
4511  CONFIG_FILES    = $CONFIG_FILES
4512  CONFIG_HEADERS  = $CONFIG_HEADERS
4513  CONFIG_LINKS    = $CONFIG_LINKS
4514  CONFIG_COMMANDS = $CONFIG_COMMANDS
4515  $ $0 $@
4516
4517on `(hostname || uname -n) 2>/dev/null | sed 1q`
4518"
4519
4520_ACEOF
4521
4522case $ac_config_files in *"
4523"*) set x $ac_config_files; shift; ac_config_files=$*;;
4524esac
4525
4526
4527
4528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4529# Files that config.status was made for.
4530config_files="$ac_config_files"
4531
4532_ACEOF
4533
4534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4535ac_cs_usage="\
4536\`$as_me' instantiates files and other configuration actions
4537from templates according to the current configuration.  Unless the files
4538and actions are specified as TAGs, all are instantiated by default.
4539
4540Usage: $0 [OPTION]... [TAG]...
4541
4542  -h, --help       print this help, then exit
4543  -V, --version    print version number and configuration settings, then exit
4544      --config     print configuration, then exit
4545  -q, --quiet, --silent
4546                   do not print progress messages
4547  -d, --debug      don't remove temporary files
4548      --recheck    update $as_me by reconfiguring in the same conditions
4549      --file=FILE[:TEMPLATE]
4550                   instantiate the configuration file FILE
4551
4552Configuration files:
4553$config_files
4554
4555Report bugs to the package provider."
4556
4557_ACEOF
4558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4559ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4560ac_cs_version="\\
4561config.status
4562configured by $0, generated by GNU Autoconf 2.69,
4563  with options \\"\$ac_cs_config\\"
4564
4565Copyright (C) 2012 Free Software Foundation, Inc.
4566This config.status script is free software; the Free Software Foundation
4567gives unlimited permission to copy, distribute and modify it."
4568
4569ac_pwd='$ac_pwd'
4570srcdir='$srcdir'
4571INSTALL='$INSTALL'
4572test -n "\$AWK" || AWK=awk
4573_ACEOF
4574
4575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4576# The default lists apply if the user does not specify any file.
4577ac_need_defaults=:
4578while test $# != 0
4579do
4580  case $1 in
4581  --*=?*)
4582    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4583    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4584    ac_shift=:
4585    ;;
4586  --*=)
4587    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4588    ac_optarg=
4589    ac_shift=:
4590    ;;
4591  *)
4592    ac_option=$1
4593    ac_optarg=$2
4594    ac_shift=shift
4595    ;;
4596  esac
4597
4598  case $ac_option in
4599  # Handling of the options.
4600  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4601    ac_cs_recheck=: ;;
4602  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4603    $as_echo "$ac_cs_version"; exit ;;
4604  --config | --confi | --conf | --con | --co | --c )
4605    $as_echo "$ac_cs_config"; exit ;;
4606  --debug | --debu | --deb | --de | --d | -d )
4607    debug=: ;;
4608  --file | --fil | --fi | --f )
4609    $ac_shift
4610    case $ac_optarg in
4611    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4612    '') as_fn_error $? "missing file argument" ;;
4613    esac
4614    as_fn_append CONFIG_FILES " '$ac_optarg'"
4615    ac_need_defaults=false;;
4616  --he | --h |  --help | --hel | -h )
4617    $as_echo "$ac_cs_usage"; exit ;;
4618  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4619  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4620    ac_cs_silent=: ;;
4621
4622  # This is an error.
4623  -*) as_fn_error $? "unrecognized option: \`$1'
4624Try \`$0 --help' for more information." ;;
4625
4626  *) as_fn_append ac_config_targets " $1"
4627     ac_need_defaults=false ;;
4628
4629  esac
4630  shift
4631done
4632
4633ac_configure_extra_args=
4634
4635if $ac_cs_silent; then
4636  exec 6>/dev/null
4637  ac_configure_extra_args="$ac_configure_extra_args --silent"
4638fi
4639
4640_ACEOF
4641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4642if \$ac_cs_recheck; then
4643  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4644  shift
4645  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4646  CONFIG_SHELL='$SHELL'
4647  export CONFIG_SHELL
4648  exec "\$@"
4649fi
4650
4651_ACEOF
4652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4653exec 5>>config.log
4654{
4655  echo
4656  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4657## Running $as_me. ##
4658_ASBOX
4659  $as_echo "$ac_log"
4660} >&5
4661
4662_ACEOF
4663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4664_ACEOF
4665
4666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4667
4668# Handling of arguments.
4669for ac_config_target in $ac_config_targets
4670do
4671  case $ac_config_target in
4672    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4673    "src/Makefile.common") CONFIG_FILES="$CONFIG_FILES src/Makefile.common" ;;
4674    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4675    "src/tools/gtkada-config") CONFIG_FILES="$CONFIG_FILES src/tools/gtkada-config" ;;
4676    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
4677    "testgtk/Makefile") CONFIG_FILES="$CONFIG_FILES testgtk/Makefile" ;;
4678    "src/gtkextra/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtkextra/Makefile" ;;
4679    "src/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/opengl/Makefile" ;;
4680    "src/gnome/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome/Makefile" ;;
4681    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
4682    "docs/gtkada_rm/Makefile") CONFIG_FILES="$CONFIG_FILES docs/gtkada_rm/Makefile" ;;
4683    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
4684    "src/config.h") CONFIG_FILES="$CONFIG_FILES src/config.h" ;;
4685    "projects/gtkada.pc") CONFIG_FILES="$CONFIG_FILES projects/gtkada.pc" ;;
4686    "projects/gtkada_install_dynamic.gpr") CONFIG_FILES="$CONFIG_FILES projects/gtkada_install_dynamic.gpr" ;;
4687    "projects/gtkada_install_dynamic_gl.gpr") CONFIG_FILES="$CONFIG_FILES projects/gtkada_install_dynamic_gl.gpr" ;;
4688
4689  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4690  esac
4691done
4692
4693
4694# If the user did not use the arguments to specify the items to instantiate,
4695# then the envvar interface is used.  Set only those that are not.
4696# We use the long form for the default assignment because of an extremely
4697# bizarre bug on SunOS 4.1.3.
4698if $ac_need_defaults; then
4699  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4700fi
4701
4702# Have a temporary directory for convenience.  Make it in the build tree
4703# simply because there is no reason against having it here, and in addition,
4704# creating and moving files from /tmp can sometimes cause problems.
4705# Hook for its removal unless debugging.
4706# Note that there is a small window in which the directory will not be cleaned:
4707# after its creation but before its name has been assigned to `$tmp'.
4708$debug ||
4709{
4710  tmp= ac_tmp=
4711  trap 'exit_status=$?
4712  : "${ac_tmp:=$tmp}"
4713  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4714' 0
4715  trap 'as_fn_exit 1' 1 2 13 15
4716}
4717# Create a (secure) tmp directory for tmp files.
4718
4719{
4720  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4721  test -d "$tmp"
4722}  ||
4723{
4724  tmp=./conf$$-$RANDOM
4725  (umask 077 && mkdir "$tmp")
4726} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4727ac_tmp=$tmp
4728
4729# Set up the scripts for CONFIG_FILES section.
4730# No need to generate them if there are no CONFIG_FILES.
4731# This happens for instance with `./config.status config.h'.
4732if test -n "$CONFIG_FILES"; then
4733
4734
4735ac_cr=`echo X | tr X '\015'`
4736# On cygwin, bash can eat \r inside `` if the user requested igncr.
4737# But we know of no other shell where ac_cr would be empty at this
4738# point, so we can use a bashism as a fallback.
4739if test "x$ac_cr" = x; then
4740  eval ac_cr=\$\'\\r\'
4741fi
4742ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4743if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4744  ac_cs_awk_cr='\\r'
4745else
4746  ac_cs_awk_cr=$ac_cr
4747fi
4748
4749echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4750_ACEOF
4751
4752
4753{
4754  echo "cat >conf$$subs.awk <<_ACEOF" &&
4755  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4756  echo "_ACEOF"
4757} >conf$$subs.sh ||
4758  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4759ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4760ac_delim='%!_!# '
4761for ac_last_try in false false false false false :; do
4762  . ./conf$$subs.sh ||
4763    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4764
4765  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4766  if test $ac_delim_n = $ac_delim_num; then
4767    break
4768  elif $ac_last_try; then
4769    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4770  else
4771    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4772  fi
4773done
4774rm -f conf$$subs.sh
4775
4776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4777cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4778_ACEOF
4779sed -n '
4780h
4781s/^/S["/; s/!.*/"]=/
4782p
4783g
4784s/^[^!]*!//
4785:repl
4786t repl
4787s/'"$ac_delim"'$//
4788t delim
4789:nl
4790h
4791s/\(.\{148\}\)..*/\1/
4792t more1
4793s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4794p
4795n
4796b repl
4797:more1
4798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4799p
4800g
4801s/.\{148\}//
4802t nl
4803:delim
4804h
4805s/\(.\{148\}\)..*/\1/
4806t more2
4807s/["\\]/\\&/g; s/^/"/; s/$/"/
4808p
4809b
4810:more2
4811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4812p
4813g
4814s/.\{148\}//
4815t delim
4816' <conf$$subs.awk | sed '
4817/^[^""]/{
4818  N
4819  s/\n//
4820}
4821' >>$CONFIG_STATUS || ac_write_fail=1
4822rm -f conf$$subs.awk
4823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4824_ACAWK
4825cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4826  for (key in S) S_is_set[key] = 1
4827  FS = ""
4828
4829}
4830{
4831  line = $ 0
4832  nfields = split(line, field, "@")
4833  substed = 0
4834  len = length(field[1])
4835  for (i = 2; i < nfields; i++) {
4836    key = field[i]
4837    keylen = length(key)
4838    if (S_is_set[key]) {
4839      value = S[key]
4840      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4841      len += length(value) + length(field[++i])
4842      substed = 1
4843    } else
4844      len += 1 + keylen
4845  }
4846
4847  print line
4848}
4849
4850_ACAWK
4851_ACEOF
4852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4853if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4854  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4855else
4856  cat
4857fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4858  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4859_ACEOF
4860
4861# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4862# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4863# trailing colons and then remove the whole line if VPATH becomes empty
4864# (actually we leave an empty line to preserve line numbers).
4865if test "x$srcdir" = x.; then
4866  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4867h
4868s///
4869s/^/:/
4870s/[	 ]*$/:/
4871s/:\$(srcdir):/:/g
4872s/:\${srcdir}:/:/g
4873s/:@srcdir@:/:/g
4874s/^:*//
4875s/:*$//
4876x
4877s/\(=[	 ]*\).*/\1/
4878G
4879s/\n//
4880s/^[^=]*=[	 ]*$//
4881}'
4882fi
4883
4884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4885fi # test -n "$CONFIG_FILES"
4886
4887
4888eval set X "  :F $CONFIG_FILES      "
4889shift
4890for ac_tag
4891do
4892  case $ac_tag in
4893  :[FHLC]) ac_mode=$ac_tag; continue;;
4894  esac
4895  case $ac_mode$ac_tag in
4896  :[FHL]*:*);;
4897  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4898  :[FH]-) ac_tag=-:-;;
4899  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4900  esac
4901  ac_save_IFS=$IFS
4902  IFS=:
4903  set x $ac_tag
4904  IFS=$ac_save_IFS
4905  shift
4906  ac_file=$1
4907  shift
4908
4909  case $ac_mode in
4910  :L) ac_source=$1;;
4911  :[FH])
4912    ac_file_inputs=
4913    for ac_f
4914    do
4915      case $ac_f in
4916      -) ac_f="$ac_tmp/stdin";;
4917      *) # Look for the file first in the build tree, then in the source tree
4918	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4919	 # because $ac_f cannot contain `:'.
4920	 test -f "$ac_f" ||
4921	   case $ac_f in
4922	   [\\/$]*) false;;
4923	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4924	   esac ||
4925	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4926      esac
4927      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4928      as_fn_append ac_file_inputs " '$ac_f'"
4929    done
4930
4931    # Let's still pretend it is `configure' which instantiates (i.e., don't
4932    # use $as_me), people would be surprised to read:
4933    #    /* config.h.  Generated by config.status.  */
4934    configure_input='Generated from '`
4935	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4936	`' by configure.'
4937    if test x"$ac_file" != x-; then
4938      configure_input="$ac_file.  $configure_input"
4939      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4940$as_echo "$as_me: creating $ac_file" >&6;}
4941    fi
4942    # Neutralize special characters interpreted by sed in replacement strings.
4943    case $configure_input in #(
4944    *\&* | *\|* | *\\* )
4945       ac_sed_conf_input=`$as_echo "$configure_input" |
4946       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4947    *) ac_sed_conf_input=$configure_input;;
4948    esac
4949
4950    case $ac_tag in
4951    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4952      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4953    esac
4954    ;;
4955  esac
4956
4957  ac_dir=`$as_dirname -- "$ac_file" ||
4958$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4959	 X"$ac_file" : 'X\(//\)[^/]' \| \
4960	 X"$ac_file" : 'X\(//\)$' \| \
4961	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4962$as_echo X"$ac_file" |
4963    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4964	    s//\1/
4965	    q
4966	  }
4967	  /^X\(\/\/\)[^/].*/{
4968	    s//\1/
4969	    q
4970	  }
4971	  /^X\(\/\/\)$/{
4972	    s//\1/
4973	    q
4974	  }
4975	  /^X\(\/\).*/{
4976	    s//\1/
4977	    q
4978	  }
4979	  s/.*/./; q'`
4980  as_dir="$ac_dir"; as_fn_mkdir_p
4981  ac_builddir=.
4982
4983case "$ac_dir" in
4984.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4985*)
4986  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4987  # A ".." for each directory in $ac_dir_suffix.
4988  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4989  case $ac_top_builddir_sub in
4990  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4991  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4992  esac ;;
4993esac
4994ac_abs_top_builddir=$ac_pwd
4995ac_abs_builddir=$ac_pwd$ac_dir_suffix
4996# for backward compatibility:
4997ac_top_builddir=$ac_top_build_prefix
4998
4999case $srcdir in
5000  .)  # We are building in place.
5001    ac_srcdir=.
5002    ac_top_srcdir=$ac_top_builddir_sub
5003    ac_abs_top_srcdir=$ac_pwd ;;
5004  [\\/]* | ?:[\\/]* )  # Absolute name.
5005    ac_srcdir=$srcdir$ac_dir_suffix;
5006    ac_top_srcdir=$srcdir
5007    ac_abs_top_srcdir=$srcdir ;;
5008  *) # Relative name.
5009    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5010    ac_top_srcdir=$ac_top_build_prefix$srcdir
5011    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5012esac
5013ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5014
5015
5016  case $ac_mode in
5017  :F)
5018  #
5019  # CONFIG_FILE
5020  #
5021
5022  case $INSTALL in
5023  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5024  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5025  esac
5026_ACEOF
5027
5028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5029# If the template does not know about datarootdir, expand it.
5030# FIXME: This hack should be removed a few years after 2.60.
5031ac_datarootdir_hack=; ac_datarootdir_seen=
5032ac_sed_dataroot='
5033/datarootdir/ {
5034  p
5035  q
5036}
5037/@datadir@/p
5038/@docdir@/p
5039/@infodir@/p
5040/@localedir@/p
5041/@mandir@/p'
5042case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5043*datarootdir*) ac_datarootdir_seen=yes;;
5044*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5046$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5047_ACEOF
5048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5049  ac_datarootdir_hack='
5050  s&@datadir@&$datadir&g
5051  s&@docdir@&$docdir&g
5052  s&@infodir@&$infodir&g
5053  s&@localedir@&$localedir&g
5054  s&@mandir@&$mandir&g
5055  s&\\\${datarootdir}&$datarootdir&g' ;;
5056esac
5057_ACEOF
5058
5059# Neutralize VPATH when `$srcdir' = `.'.
5060# Shell code in configure.ac might set extrasub.
5061# FIXME: do we really want to maintain this feature?
5062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5063ac_sed_extra="$ac_vpsub
5064$extrasub
5065_ACEOF
5066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5067:t
5068/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5069s|@configure_input@|$ac_sed_conf_input|;t t
5070s&@top_builddir@&$ac_top_builddir_sub&;t t
5071s&@top_build_prefix@&$ac_top_build_prefix&;t t
5072s&@srcdir@&$ac_srcdir&;t t
5073s&@abs_srcdir@&$ac_abs_srcdir&;t t
5074s&@top_srcdir@&$ac_top_srcdir&;t t
5075s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5076s&@builddir@&$ac_builddir&;t t
5077s&@abs_builddir@&$ac_abs_builddir&;t t
5078s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5079s&@INSTALL@&$ac_INSTALL&;t t
5080$ac_datarootdir_hack
5081"
5082eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5083  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5084
5085test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5086  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5087  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5088      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5090which seems to be undefined.  Please make sure it is defined" >&5
5091$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5092which seems to be undefined.  Please make sure it is defined" >&2;}
5093
5094  rm -f "$ac_tmp/stdin"
5095  case $ac_file in
5096  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5097  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5098  esac \
5099  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5100 ;;
5101
5102
5103
5104  esac
5105
5106done # for ac_tag
5107
5108
5109as_fn_exit 0
5110_ACEOF
5111ac_clean_files=$ac_clean_files_save
5112
5113test $ac_write_fail = 0 ||
5114  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5115
5116
5117# configure is writing to config.log, and then calls config.status.
5118# config.status does its own redirection, appending to config.log.
5119# Unfortunately, on DOS this fails, as config.log is still kept open
5120# by configure, so config.status won't be able to write to it; its
5121# output is simply discarded.  So we exec the FD to /dev/null,
5122# effectively closing config.log, so it can be properly (re)opened and
5123# appended to by config.status.  When coming back to configure, we
5124# need to make the FD available again.
5125if test "$no_create" != yes; then
5126  ac_cs_success=:
5127  ac_config_status_args=
5128  test "$silent" = yes &&
5129    ac_config_status_args="$ac_config_status_args --quiet"
5130  exec 5>/dev/null
5131  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5132  exec 5>>config.log
5133  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5134  # would make configure fail if this is the last instruction.
5135  $ac_cs_success || as_fn_exit 1
5136fi
5137if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5139$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5140fi
5141
5142