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