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