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