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