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