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