Debian Codegraph @

src/modules/rlm_json/configure

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