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